From 404b2b71cb7a03880002d144e5fd24e8f9659fe6 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 13 Aug 2024 13:51:17 +0800 Subject: [PATCH] fix:chengpinjianyan --- src/views/qm/products_form.vue | 15 ++++++++++----- src/views/wpm_gx/handover.vue | 12 ++++++------ src/views/wpm_gx/handover_form.vue | 23 +++++++++++++++++------ src/views/wpm_gx/inm.vue | 12 ++++++------ 4 files changed, 39 insertions(+), 23 deletions(-) diff --git a/src/views/qm/products_form.vue b/src/views/qm/products_form.vue index 5ec0fa14..30cb17ea 100644 --- a/src/views/qm/products_form.vue +++ b/src/views/qm/products_form.vue @@ -89,6 +89,7 @@ + @@ -335,6 +336,7 @@ export default { }, loading: false, form: { + type2:20, test_date: "", batch: "", count: null, @@ -389,13 +391,14 @@ export default { }; }, mounted() { - this.getMaterialBatch(); + }, methods: { //显示 open(mode = "sizeAdd") { this.mode = mode; this.visible = true; + this.getMaterialBatch(); return this; }, handleCheckChange(){ @@ -445,10 +448,12 @@ export default { //获取物料批次 getMaterialBatch() { let that = this; - let obj = {page: 0, count__gte: 0}; - if(that.mode == "sizeAdd"||that.mode == "sizeEdit"){ + let obj = {page: 0, count__gte: 0, count_xtest__gte: 0}; + if(that.mode == "sizeAdd"||that.mode == "sizeEdit"||that.mode == "sizeShow"){ + console.log('sizeAdd') obj.material__process__name = '一次超洗' - }else{ + }else { + console.log('facadeAdd') obj.material__process__name = '二次超洗' } that.$API.wpm.wmaterial.list @@ -462,7 +467,7 @@ export default { console.log(val); that.options.forEach((item) => { if (item.id == val) { - that.form.count = that.formCount = item.count; + that.form.count =that.form.count_ok = that.formCount = item.count; that.form.batch = item.batch; that.form.material = item.material; that.form.wm = item.id; diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue index 701027cd..16cf8479 100644 --- a/src/views/wpm_gx/handover.vue +++ b/src/views/wpm_gx/handover.vue @@ -183,6 +183,7 @@ v-if="dialog.save" ref="saveDialog" :type="type" + :mgroupName="mgroupName" :mgroupId="mgroupId" @success="handleSaveSuccess" @closed="dialog.save = false" @@ -221,8 +222,7 @@ export default { permission: false, }, params: { - mgroup: "", - count_xtest__gte: 0, + // count_xtest__gte: 0, }, query: { send_mgroup: "", @@ -249,12 +249,12 @@ export default { mounted() { let that = this; if(that.mgroupName=="size"){ - that.params.type=30; - that.params.send_mgroup__name="一次超洗"; + // that.params.type=30; + that.params.material__process__name="一次超洗"; that.apiObj = that.$API.wpm.handover.list; }else if(that.mgroupName=="facade"){ - that.params.type=30; - that.params.send_mgroup__name="二次超洗"; + // that.params.type=30; + that.params.material__process__name="二次超洗"; that.apiObj = that.$API.wpm.handover.list; }else{ that.printer_name = localStorage.getItem("printer_name"); diff --git a/src/views/wpm_gx/handover_form.vue b/src/views/wpm_gx/handover_form.vue index dac1620d..e438445e 100644 --- a/src/views/wpm_gx/handover_form.vue +++ b/src/views/wpm_gx/handover_form.vue @@ -161,6 +161,10 @@ export default { type: String, default: "", }, + mgroupName: { + type: String, + default: "", + }, }, data() { return { @@ -281,13 +285,20 @@ export default { mgroupx: that.mgroupId, page: 0, }; - if (this.type == 10) { - req.notok_sign__isnull = 1; - } else if (this.type == 20) { - req.notok_sign__isnull = 0;} - else if (this.type == 30) { - req.notok_sign__isnull = 1; + if(that.mgroupName=="size"){ + req.material__process__name="一次超洗"; + }else if(that.mgroupName=="facade"){ + req.material__process__name="二次超洗"; + }else{ + if (this.type == 10) { + req.notok_sign__isnull = 1; + } else if (this.type == 20) { + req.notok_sign__isnull = 0;} + else if (this.type == 30) { + req.notok_sign__isnull = 1; + } } + this.$API.wpm.wmaterial.list .req(req) .then((res) => { diff --git a/src/views/wpm_gx/inm.vue b/src/views/wpm_gx/inm.vue index 01bb22ec..7c266c93 100644 --- a/src/views/wpm_gx/inm.vue +++ b/src/views/wpm_gx/inm.vue @@ -85,24 +85,24 @@ prop="create_time" width="150" > - +