From e9c0006ccfea8247929299cb2e5c6a91fc3c3710 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 16 Dec 2025 09:01:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=A6=85=E9=81=93231?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm/mlog6_form.vue | 41 ++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/src/views/wpm/mlog6_form.vue b/src/views/wpm/mlog6_form.vue index 364abe04..5b93a337 100644 --- a/src/views/wpm/mlog6_form.vue +++ b/src/views/wpm/mlog6_form.vue @@ -21,20 +21,22 @@ v-if="mode == 'edit'" v-model="form.batch" > - - - + + + + @@ -598,13 +600,19 @@ export default { leader_name: "", count_n_all: null, rules: {}, + selectBatch:{}, + params:{ + material__in: this.material_in, + belong_dept__name: "6车间" + }, + apiObj:this.$API.wpm.wmaterial.list, }; }, mounted() { - this.getBatchs(); + // this.getBatchs(); this.getUserList(); this.getEquipment(); - this.getWMaterial(); + // this.getWMaterial(); this.getShiftOptions(); this.form.material_out = this.material_out; this.form.handle_date = this.handle_date; @@ -653,6 +661,12 @@ export default { } }); }, + batchChange(){ + let that = this; + that.form.count_use = that.selectBatch.count_cando; + that.form.count_real = that.selectBatch.count_cando; + that.form.count_ok = that.selectBatch.count_cando; + }, //获取车间物料批次号 getBatchs() { let that = this; @@ -710,6 +724,7 @@ export default { Number(this.form.count_n_wq) + Number(this.form.count_n_qt) + Number(this.form.count_n_zw); + this.form.count_real = this.form.count_use-this.form.count_notok; }, //提交 submit() {