|
|
|
@ -1,7 +1,7 @@ |
|
|
|
G<template> |
|
|
|
<div> |
|
|
|
<!-- 发放弹窗 --> |
|
|
|
<el-dialog :title="$t('page.business.zykgl.mjy.fafang')" :visible.sync="open" width="800px" append-to-body |
|
|
|
<el-dialog :title="$t('page.business.zykgl.mjy.fafang')" :visible.sync="open" width="1200px" append-to-body |
|
|
|
:close-on-click-modal="false"> |
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> |
|
|
|
<div :style="isBatch ? 'display:block' : 'display:none'"> |
|
|
|
@ -12,19 +12,32 @@ G |
|
|
|
:show-overflow-tooltip="true" width="120px" /> |
|
|
|
<el-table-column :label="$t('page.business.zykgl.mjy.bh')" align="left" prop="bh" |
|
|
|
:show-overflow-tooltip="true" width="120px" /> |
|
|
|
<el-table-column :label="$t('page.business.zykgl.mjy.czfs')" align="center" width="250px"> |
|
|
|
<el-table-column :label="$t('page.business.zykgl.mjy.zytj')" align="center" width="250px"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input type="text" v-model="scope.row.czfs" maxlength="50" |
|
|
|
<el-input type="text" v-model="scope.row.zytj" maxlength="50" |
|
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column :label="$t('page.business.zykgl.mjy.yuanyin')" align="center"> |
|
|
|
<el-table-column :label="$t('page.business.zykgl.mjy.ckmz')" align="center" width="250px"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input type="text" v-model="scope.row.czyy" maxlength="50" |
|
|
|
<el-input type="text" v-model="scope.row.ckmz" maxlength="50" |
|
|
|
:placeholder="$t('form.placeholderInput')"><template slot="append">{{ scope.row.ckmzdw }}</template> |
|
|
|
</el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column :label="$t('page.business.zykgl.mjy.md')" align="center" width="250px"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input type="text" v-model="scope.row.xmId" maxlength="50" |
|
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column :label="$t('form.remark')" align="center" width="250px"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input type="text" v-model="scope.row.remark" maxlength="50" |
|
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column :label="$t('form.operate')" align="center" width="150px"> |
|
|
|
<el-table-column :label="$t('form.operate')" align="center" width="100px" fixed="right"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button size="mini" type="text" @click="handleSc(scope.row)">{{ |
|
|
|
$t('form.delete') }}</el-button> |
|
|
|
@ -34,7 +47,7 @@ G |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
|
<div :style="!isBatch ? 'display:block' : 'display:none'"> |
|
|
|
<div v-if="!isBatch"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="$t('page.business.zykgl.mjy.mc')" prop="mc"> |
|
|
|
@ -51,37 +64,38 @@ G |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.zykgl.mjy.zytj')" prop="zytj"> |
|
|
|
<el-input type="text" v-model="form.zytj" maxlength="50" :placeholder="$t('form.placeholderInput')" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.zykgl.mjy.ckmz')" prop="ckmz"> |
|
|
|
<el-input type="number" v-model="form.ckmz" maxlength="20" :placeholder="$t('form.placeholderInput')"> |
|
|
|
<template slot="append">{{ form.ckmzdw }}</template> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="$t('page.business.zykgl.mjy.md')" prop="xmId"> |
|
|
|
<el-input type="text" v-model="form.xmId" maxlength="50" :placeholder="$t('form.placeholderInput')" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="$t('form.remark')" prop="remark"> |
|
|
|
<el-input type="textarea" v-model="form.remark" :rows="2" maxlength="500" |
|
|
|
:placeholder="$t('form.placeholderInput')"> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.zykgl.mjy.zytj')" prop="zytj"> |
|
|
|
<el-input type="text" v-model="form.zytj" maxlength="50" :placeholder="$t('form.placeholderInput')" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.zykgl.mjy.ckmz')" prop="ckmz"> |
|
|
|
<el-input type="number" v-model="form.ckmz" maxlength="20" :placeholder="$t('form.placeholderInput')"> |
|
|
|
<template slot="append">{{ form.kcdw }}</template> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="$t('page.business.zykgl.mjy.md')" prop="xmId"> |
|
|
|
<el-input type="text" v-model="form.xmId" maxlength="50" :placeholder="$t('form.placeholderInput')" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="$t('form.remark')" prop="remark"> |
|
|
|
<el-input type="textarea" v-model="form.remark" :rows="2" maxlength="500" |
|
|
|
:placeholder="$t('form.placeholderInput')"> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.zykgl.mjy.lqr1')" prop="lqr1Id"> |
|
|
|
@ -272,8 +286,11 @@ export default { |
|
|
|
id: item.id, |
|
|
|
mc: item.mc, |
|
|
|
bh: item.bh, |
|
|
|
czyy: null, |
|
|
|
czfs: null, |
|
|
|
ckmzdw: item.kcdw, |
|
|
|
zytj: null, |
|
|
|
ckmz: null, |
|
|
|
xmId: null, |
|
|
|
remark: null, |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.selectList = tmp |
|
|
|
@ -288,11 +305,10 @@ export default { |
|
|
|
ids: null, |
|
|
|
mc: null, |
|
|
|
bh: null, |
|
|
|
kcdw: null, |
|
|
|
ckmzdw: null, |
|
|
|
zytj: null, |
|
|
|
xmId: null, |
|
|
|
ckmz: null, |
|
|
|
ckmzdw: null, |
|
|
|
lqr1Id: null, |
|
|
|
lqr2Id: null, |
|
|
|
lqr1mm: null, |
|
|
|
@ -303,7 +319,8 @@ export default { |
|
|
|
ffr2mm: null, |
|
|
|
xmId: null, |
|
|
|
qmyy: '领取发放', |
|
|
|
sdrmm: null |
|
|
|
sdrmm: null, |
|
|
|
remark: null |
|
|
|
} |
|
|
|
this.resetForm("form") |
|
|
|
}, |
|
|
|
@ -315,24 +332,29 @@ export default { |
|
|
|
this.form.id = row.id |
|
|
|
this.form.mc = row.mc |
|
|
|
this.form.bh = row.bh |
|
|
|
this.form.kcdw = row.kcdw |
|
|
|
this.form.ckmzdw = row.kcdw |
|
|
|
this.open = true |
|
|
|
}, |
|
|
|
save() { |
|
|
|
this.$refs["form"].validate(valid => { |
|
|
|
if (valid) { |
|
|
|
let params = this.form |
|
|
|
if (this.isBatch) { |
|
|
|
mjy_jdBatch(this.form).then(response => { |
|
|
|
this.open = false |
|
|
|
this.$emit('callback') |
|
|
|
}) |
|
|
|
params.list = this.selectList |
|
|
|
if (this.selectList.length <= 0) { |
|
|
|
this.$modal.msgError("请选择要操作的麻精药") |
|
|
|
} else { |
|
|
|
mjy_plff(params).then(response => { |
|
|
|
this.open = false |
|
|
|
this.$emit('callback') |
|
|
|
}) |
|
|
|
} |
|
|
|
} else { |
|
|
|
mjy_jd(this.form).then(response => { |
|
|
|
mjy_ff(params).then(response => { |
|
|
|
this.open = false |
|
|
|
this.$emit('callback') |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|