|
|
|
@ -3,8 +3,10 @@ |
|
|
|
<!-- 发放弹窗 --> |
|
|
|
<el-dialog :title="$t('page.business.resource.gyzj.fafang')" :visible.sync="open" width="1200px" append-to-body |
|
|
|
:close-on-click-modal="false"> |
|
|
|
<el-form ref="form" :model="form" :rules="rules" :label-width="$i18n.locale === 'zh_CN'?'120px':'170px'" v-if="open"> |
|
|
|
<div class="sbzdtcma"> <input type="text"> <input type="password" @contextmenu.native.prevent @copy.native.prevent @cut.native.prevent show-password> </div> |
|
|
|
<el-form ref="form" :model="form" :rules="rules" :label-width="$i18n.locale === 'zh_CN' ? '120px' : '170px'" |
|
|
|
v-if="open"> |
|
|
|
<div class="sbzdtcma"> <input type="text"> <input type="password" @contextmenu.native.prevent |
|
|
|
@copy.native.prevent @cut.native.prevent show-password> </div> |
|
|
|
<div :style="isBatch ? 'display:block' : 'display:none'"> |
|
|
|
<el-row style="margin:10px 0px;"> |
|
|
|
<el-col :span="24"> |
|
|
|
@ -83,7 +85,7 @@ |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.nd')"> |
|
|
|
<el-input type="text" v-model="form.nd" maxlength="50" disabled> <template slot="append">{{ form.nddw |
|
|
|
}}</template> |
|
|
|
}}</template> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -104,7 +106,7 @@ |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ckl')"> |
|
|
|
<el-input type="text" v-model="form.ckl" maxlength="50" disabled> <template slot="append">{{ form.ckldw |
|
|
|
}}</template> |
|
|
|
}}</template> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -122,7 +124,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ckmz')" prop="ckmz"> |
|
|
|
<SelectBalanceValue v-model="form.ckmz" :dw="form.ckmzdw" /> |
|
|
|
<SelectBalanceValue v-model="form.ckmz" :dw="form.ckmzdw" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
@ -140,26 +142,26 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.lqr1')" prop="lqr1Id"> |
|
|
|
<SelectDeptUser v-model="form.lqr1Id" key="lqr1Id" /> |
|
|
|
<SelectDeptUser v-model="form.lqr1Id" key="lqr1Id" @change="validateForm" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.lqr1') + $t('form.password')" prop="lqr1mm"> |
|
|
|
<el-input type="password" @contextmenu.native.prevent @copy.native.prevent @cut.native.prevent show-password v-model="form.lqr1mm" maxlength="20" |
|
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
|
<el-input type="password" @contextmenu.native.prevent @copy.native.prevent @cut.native.prevent |
|
|
|
show-password v-model="form.lqr1mm" maxlength="20" :placeholder="$t('form.placeholderInput')" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.lqr2')" prop="lqr2Id"> |
|
|
|
<SelectDeptUser v-model="form.lqr2Id" key="lqr2Id" /> |
|
|
|
<SelectDeptUser v-model="form.lqr2Id" key="lqr2Id" @change="validateForm" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.lqr2') + $t('form.password')" prop="lqr2mm"> |
|
|
|
<el-input type="password" @contextmenu.native.prevent @copy.native.prevent @cut.native.prevent show-password v-model="form.lqr2mm" maxlength="20" |
|
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
|
<el-input type="password" @contextmenu.native.prevent @copy.native.prevent @cut.native.prevent |
|
|
|
show-password v-model="form.lqr2mm" maxlength="20" :placeholder="$t('form.placeholderInput')" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
@ -172,21 +174,21 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ffr1') + $t('form.password')" prop="ffr1mm"> |
|
|
|
<el-input type="password" @contextmenu.native.prevent @copy.native.prevent @cut.native.prevent show-password v-model="form.ffr1mm" maxlength="20" |
|
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
|
<el-input type="password" @contextmenu.native.prevent @copy.native.prevent @cut.native.prevent |
|
|
|
show-password v-model="form.ffr1mm" maxlength="20" :placeholder="$t('form.placeholderInput')" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ffr2')" prop="ffr2Id"> |
|
|
|
<SelectDeptUser v-model="form.ffr2Id" key="ffr2Id" /> |
|
|
|
<SelectDeptUser v-model="form.ffr2Id" key="ffr2Id" @change="validateForm" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ffr2') + $t('form.password')" prop="ffr2mm"> |
|
|
|
<el-input type="password" @contextmenu.native.prevent @copy.native.prevent @cut.native.prevent show-password v-model="form.ffr2mm" maxlength="20" |
|
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
|
<el-input type="password" @contextmenu.native.prevent @copy.native.prevent @cut.native.prevent |
|
|
|
show-password v-model="form.ffr2mm" maxlength="20" :placeholder="$t('form.placeholderInput')" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
@ -200,7 +202,8 @@ |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="save" :disabled="isBatch && selectList.length == 0">{{ $t('form.confirm') }}</el-button> |
|
|
|
<el-button type="primary" @click="save" :disabled="isBatch && selectList.length == 0">{{ $t('form.confirm') |
|
|
|
}}</el-button> |
|
|
|
<el-button @click="cancel">{{ $t('form.cancel') }}</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
@ -218,7 +221,7 @@ import SelectBalanceValue from '@/views/business/comps/select/SelectBalanceValue |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "Ff", |
|
|
|
components: { SelectList, SelectDeptUser, SelectStudy, BusinessSelect,SelectBalanceValue }, |
|
|
|
components: { SelectList, SelectDeptUser, SelectStudy, BusinessSelect, SelectBalanceValue }, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
isBatch: false, |
|
|
|
@ -298,17 +301,27 @@ export default { |
|
|
|
created() { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
validateForm() { |
|
|
|
setTimeout(() => { |
|
|
|
this.$refs["form"].validate(valid => { |
|
|
|
if (valid) { } |
|
|
|
}) |
|
|
|
}, 200) |
|
|
|
}, |
|
|
|
selectStudyChange(val) { |
|
|
|
this.form.mdMcs = val.name |
|
|
|
this.form.mdOther = val.mdOther |
|
|
|
}, |
|
|
|
selectStudyChangeBatch(val) { |
|
|
|
let that = this |
|
|
|
if (val && val.id && val.id !== '') { |
|
|
|
const _index = _.findIndex(that.selectList, function (o) { return o.id + '' === val.key }) |
|
|
|
if (_index > -1) { |
|
|
|
const _index = _.findIndex(that.selectList, function (o) { return o.id + '' === val.key }) |
|
|
|
if (_index > -1) { |
|
|
|
if (val && val.id && val.id !== '') { |
|
|
|
that.selectList[_index].mdMcs = val.name |
|
|
|
that.selectList[_index].mdOther = val.mdOther |
|
|
|
} else { |
|
|
|
that.selectList[_index].mdMcs = null |
|
|
|
that.selectList[_index].mdOther = null |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -340,7 +353,7 @@ export default { |
|
|
|
sxrq: item.sxrq, |
|
|
|
ccwz: item.ccwz, |
|
|
|
zytj: null, |
|
|
|
ckmz:null, |
|
|
|
ckmz: null, |
|
|
|
mdIds: null, |
|
|
|
ckmz: null, |
|
|
|
mdMcs: null, |
|
|
|
@ -375,8 +388,8 @@ export default { |
|
|
|
ffr1mm: null, |
|
|
|
ffr2Id: null, |
|
|
|
ffr2Mc: null, |
|
|
|
ckmz:null, |
|
|
|
ckl:null, |
|
|
|
ckmz: null, |
|
|
|
ckl: null, |
|
|
|
ffr2mm: null, |
|
|
|
qmyy: this.$t('page.business.resource.gyzj.lqff'), |
|
|
|
qmrmm: null, |
|
|
|
@ -412,23 +425,27 @@ export default { |
|
|
|
if (this.selectList.length <= 0) { |
|
|
|
this.$modal.msgError("请选择要操作的给药制剂") |
|
|
|
} else { |
|
|
|
for (var i = 0; i < params.list.length; i++) { |
|
|
|
for (var i = 0; i < params.list.length; i++) { |
|
|
|
if (!params.list[i].zytj || params.list[i].zytj == '') { |
|
|
|
this.$modal.msgError(params.list[i].mc + "转移条件不能为空") |
|
|
|
return |
|
|
|
} |
|
|
|
if (!params.list[i].ckmz || params.list[i].ckmz == '') { |
|
|
|
this.$modal.msgError(params.list[i].mc + "出库毛重不能为空") |
|
|
|
// this.$modal.msgError(params.list[i].mc + "转移条件不能为空") |
|
|
|
this.$modal.msgError( "转移条件不能为空") |
|
|
|
return |
|
|
|
} |
|
|
|
if (!params.list[i].mdMcs || params.list[i].mdMcs == '') { |
|
|
|
if (!params.list[i].mdOther || params.list[i].mdOther == '') { |
|
|
|
this.$modal.msgError(params.list[i].mc + "目的不能为空") |
|
|
|
// this.$modal.msgError(params.list[i].mc + "目的不能为空") |
|
|
|
this.$modal.msgError( "目的不能为空") |
|
|
|
} |
|
|
|
return |
|
|
|
} |
|
|
|
if (!params.list[i].ckmz || params.list[i].ckmz == '') { |
|
|
|
// this.$modal.msgError(params.list[i].mc + "出库毛重不能为空") |
|
|
|
this.$modal.msgError( "出库毛重不能为空") |
|
|
|
return |
|
|
|
} |
|
|
|
if (!params.list[i].remark || params.list[i].remark == '') { |
|
|
|
this.$modal.msgError(params.list[i].mc + "备注不能为空") |
|
|
|
// this.$modal.msgError(params.list[i].mc + "备注不能为空") |
|
|
|
this.$modal.msgError( "备注不能为空") |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|