|
|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<!-- 发放弹窗 --> |
|
|
|
<el-dialog :title="$t('page.business.resource.gyzj.fafang')" :visible.sync="open" width="1200px" append-to-body |
|
|
|
<el-dialog :title="$t('page.business.resource.gyzj.fafang')" :visible.sync="open" width="80%" 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"> |
|
|
|
@ -44,7 +44,8 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column :label="$t('page.business.resource.gyzj.ckmz')" align="center" width="400px"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<SelectBalanceValue v-model="scope.row.ckmz" :dw="scope.row.kcdw" @change="tpChange"/> |
|
|
|
<SelectBalanceValue v-model="scope.row.ckmz" :dw="scope.row.kcdw" :selectkey="scope.row.id + ''" |
|
|
|
@change="tpChange" /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column :label="$t('form.remark')" align="center" width="250px"> |
|
|
|
@ -124,7 +125,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" @change="tpChange"/> |
|
|
|
<SelectBalanceValue v-model="form.ckmz" :dw="form.ckldw" @change="tpChange2" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
@ -154,12 +155,12 @@ |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.lqr2')" prop="lqr2Id"> |
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.lqr2')" > |
|
|
|
<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-form-item :label="$t('page.business.resource.gyzj.lqr2') + $t('form.password')" > |
|
|
|
<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> |
|
|
|
@ -181,12 +182,12 @@ |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ffr2')" prop="ffr2Id"> |
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ffr2')" > |
|
|
|
<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-form-item :label="$t('page.business.resource.gyzj.ffr2') + $t('form.password')" > |
|
|
|
<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> |
|
|
|
@ -325,6 +326,29 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
tpChange2(val) { |
|
|
|
let that = this |
|
|
|
if (val) { |
|
|
|
that.form.ckmz = val.tpz |
|
|
|
that.form.ckmzdw = val.dw |
|
|
|
} else { |
|
|
|
that.form.ckmz = null |
|
|
|
that.form.ckmzdw = null |
|
|
|
} |
|
|
|
}, |
|
|
|
tpChange(val) { |
|
|
|
let that = this |
|
|
|
if (val) { |
|
|
|
const _index = _.findIndex(that.selectList, function (o) { return o.id + '' === val.key }) |
|
|
|
if (_index > -1) { |
|
|
|
that.selectList[_index].ckmz = val.tpz |
|
|
|
that.selectList[_index].ckmzdw = val.dw |
|
|
|
} |
|
|
|
} else { |
|
|
|
that.selectList[_index].ckmz = null |
|
|
|
that.selectList[_index].ckmzdw = null |
|
|
|
} |
|
|
|
}, |
|
|
|
handleSc(row) { |
|
|
|
const that = this |
|
|
|
this.$modal.confirm(this.$t('form.confirmDelete')).then(() => { |
|
|
|
@ -428,24 +452,24 @@ export default { |
|
|
|
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 + "转移条件不能为空") |
|
|
|
this.$modal.msgError( "转移条件不能为空") |
|
|
|
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( "目的不能为空") |
|
|
|
this.$modal.msgError("目的不能为空") |
|
|
|
} |
|
|
|
return |
|
|
|
} |
|
|
|
if (!params.list[i].ckmz || params.list[i].ckmz == '') { |
|
|
|
// this.$modal.msgError(params.list[i].mc + "出库毛重不能为空") |
|
|
|
this.$modal.msgError( "出库毛重不能为空") |
|
|
|
this.$modal.msgError("出库毛重不能为空") |
|
|
|
return |
|
|
|
} |
|
|
|
if (!params.list[i].remark || params.list[i].remark == '') { |
|
|
|
// this.$modal.msgError(params.list[i].mc + "备注不能为空") |
|
|
|
this.$modal.msgError( "备注不能为空") |
|
|
|
this.$modal.msgError("备注不能为空") |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|