|
|
@ -1,17 +1,17 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div> |
|
|
<div> |
|
|
<!-- 处置药剂弹窗 --> |
|
|
<!-- 处置药剂弹窗 --> |
|
|
<el-dialog :title="isBatch?$t('page.business.resource.mjy.plczyjt'):$t('page.business.resource.mjy.czyjt')" :visible.sync="open" width="1200px" append-to-body |
|
|
|
|
|
:close-on-click-modal="false"> |
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px" v-if="open"> |
|
|
|
|
|
|
|
|
<el-dialog :title="isBatch ? $t('page.business.resource.mjy.plczyjt') : $t('page.business.resource.mjy.czyjt')" |
|
|
|
|
|
:visible.sync="open" width="1200px" append-to-body :close-on-click-modal="false"> |
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" v-if="open" :label-width="$i18n.locale === 'zh_CN'?'120px':'170px'"> |
|
|
<div class="sbzdtcma"> <input type="text"> <input type="password"> </div> |
|
|
<div class="sbzdtcma"> <input type="text"> <input type="password"> </div> |
|
|
<div :style="isBatch ? 'display:block' : 'display:none'"> |
|
|
<div :style="isBatch ? 'display:block' : 'display:none'"> |
|
|
<el-row style="margin:10px 0px;"> |
|
|
<el-row style="margin:10px 0px;"> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-table :data="selectList" border> |
|
|
<el-table :data="selectList" border> |
|
|
<el-table-column :label="$t('page.business.resource.mjy.mc')" align="left" prop="mc" |
|
|
|
|
|
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.mc')" align="center" prop="mc" |
|
|
:show-overflow-tooltip="true" width="120px" /> |
|
|
:show-overflow-tooltip="true" width="120px" /> |
|
|
<el-table-column :label="$t('page.business.resource.mjy.bh')" align="left" prop="bh" |
|
|
|
|
|
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.bh')" align="center" prop="bh" |
|
|
:show-overflow-tooltip="true" width="120px" /> |
|
|
:show-overflow-tooltip="true" width="120px" /> |
|
|
<el-table-column :label="$t('page.business.resource.mjy.czfs')" align="center" width="250px"> |
|
|
<el-table-column :label="$t('page.business.resource.mjy.czfs')" align="center" width="250px"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
@ -28,7 +28,7 @@ |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-input type="text" v-model="scope.row.czl" maxlength="50" |
|
|
<el-input type="text" v-model="scope.row.czl" maxlength="50" |
|
|
:placeholder="$t('form.placeholderInput')"> <template slot="append">{{ scope.row.kcdw |
|
|
:placeholder="$t('form.placeholderInput')"> <template slot="append">{{ scope.row.kcdw |
|
|
}}</template> |
|
|
|
|
|
|
|
|
}}</template> |
|
|
</el-input> |
|
|
</el-input> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
@ -58,15 +58,15 @@ |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item :label="$t('page.business.resource.mjy.czfs')" prop="czfs"> |
|
|
<el-form-item :label="$t('page.business.resource.mjy.czfs')" prop="czfs"> |
|
|
<BusinessSelect v-model="form.czfs" dictType="business_czfs"></BusinessSelect> |
|
|
|
|
|
|
|
|
<BusinessSelect v-model="form.czfs" dictType="business_czfs"></BusinessSelect> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item :label="$t('page.business.resource.mjy.czl')" prop="czl"> |
|
|
<el-form-item :label="$t('page.business.resource.mjy.czl')" prop="czl"> |
|
|
<el-input type="text" v-model="form.czl" maxlength="50" |
|
|
|
|
|
:placeholder="$t('form.placeholderInput')"> <template slot="append">{{ form.kcdw |
|
|
|
|
|
}}</template> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
|
|
|
<el-input type="text" v-model="form.czl" maxlength="50" :placeholder="$t('form.placeholderInput')"> |
|
|
|
|
|
<template slot="append">{{ form.kcdw |
|
|
|
|
|
}}</template> |
|
|
|
|
|
</el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -131,7 +131,8 @@ |
|
|
</el-row> |
|
|
</el-row> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<div slot="footer" class="dialog-footer"> |
|
|
<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> |
|
|
<el-button @click="cancel">{{ $t('form.cancel') }}</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
@ -146,7 +147,7 @@ import BusinessSelect from '@/views/business/comps/select/BusinessSelect'; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "Czyj", |
|
|
name: "Czyj", |
|
|
components: { SelectDeptUser,BusinessSelect }, |
|
|
|
|
|
|
|
|
components: { SelectDeptUser, BusinessSelect }, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
isBatch: false, |
|
|
isBatch: false, |
|
|
@ -205,7 +206,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
...mapGetters([ |
|
|
...mapGetters([ |
|
|
'nickName','name' |
|
|
|
|
|
|
|
|
'nickName', 'name' |
|
|
]), |
|
|
]), |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
@ -282,6 +283,21 @@ export default { |
|
|
if (this.selectList.length <= 0) { |
|
|
if (this.selectList.length <= 0) { |
|
|
this.$modal.msgError("请选择要操作的麻精药") |
|
|
this.$modal.msgError("请选择要操作的麻精药") |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
//循环验证 |
|
|
|
|
|
for (var i = 0; i < params.list.length; i++) { |
|
|
|
|
|
if (!params.list[i].czfs || params.list[i].czfs == '') { |
|
|
|
|
|
this.$modal.msgError(params.list[i].mc + "处置方式不能为空") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (!params.list[i].czyy || params.list[i].czyy == '') { |
|
|
|
|
|
this.$modal.msgError(params.list[i].mc + "处置原因不能为空") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (!params.list[i].czl || params.list[i].czl == '') { |
|
|
|
|
|
this.$modal.msgError(params.list[i].mc + "处置量不能为空") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
this.$modal.loading() |
|
|
this.$modal.loading() |
|
|
plczyj(params).then(response => { |
|
|
plczyj(params).then(response => { |
|
|
this.open = false |
|
|
this.open = false |
|
|
|