From a6acf1f8924a8fabaa4b74f6771ddbe41ab6b204 Mon Sep 17 00:00:00 2001 From: haoyahui <2032914783@qq.com> Date: 星期一, 20 十一月 2023 18:47:09 +0800 Subject: [PATCH] 盘点编辑 --- admin-web/src/views/stock/inventorycount/inventorytask/edit.vue | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/admin-web/src/views/stock/inventorycount/inventorytask/edit.vue b/admin-web/src/views/stock/inventorycount/inventorytask/edit.vue index 4d9bc93..7708d9f 100644 --- a/admin-web/src/views/stock/inventorycount/inventorytask/edit.vue +++ b/admin-web/src/views/stock/inventorycount/inventorytask/edit.vue @@ -1,5 +1,5 @@ <template> - <win-sm :title="setting.title" @close="close" :width="'800px'"> + <win-sm :title="`${setting.title}鐩樼偣`" @close="close" :width="'800px'"> <el-form ref="ruleForm" :model="formData" :rules="rules" class="demo-ruleForm" label-width="100px"> <el-form-item label="鐩樼偣鍗曞悕" prop="businessFormName"> <el-input @@ -62,6 +62,7 @@ }, data() { return { + loading:true, checkAll: false, checkedList: [], warehouseOptions: [], // 浠撳簱鍒楄〃 @@ -80,8 +81,11 @@ ...mapGetters(['userInfo']), }, created() { - if (this.setting.info) { - // this.formData = Object.assign({}, JSON.parse(this.setting.info)); + if (this.setting.id) { + this.formData = Object.assign({}, JSON.parse(this.setting.info)); + this.$set(this.formData,'operatorUserId',this.formData.operatorId) + this.$set(this.formData,'monitorUserId',this.formData.operatorId2) + this.$set(this.formData,'remark',this.formData.beiz1) } else { this.formData.businessFormName = formatDate(new Date(), 'yyyy骞碝M鏈堜唤鐩樼偣'); } -- Gitblit v1.9.1