From 208c0aee5cc91b97ac1b6082b9c02c4ac17cf033 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 27 Nov 2024 14:28:27 +0800 Subject: [PATCH 1/5] =?UTF-8?q?fix:coding#560=E4=BA=8C=E3=80=811=E6=80=A7?= =?UTF-8?q?=E8=83=BD=E6=A3=80=E9=AA=8C=E6=94=B9=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qm/behavior.vue | 360 ++++++++++++++++----------------- src/views/qm/behavior_form.vue | 14 +- 2 files changed, 183 insertions(+), 191 deletions(-) diff --git a/src/views/qm/behavior.vue b/src/views/qm/behavior.vue index 866669eb..2a0280bf 100644 --- a/src/views/qm/behavior.vue +++ b/src/views/qm/behavior.vue @@ -11,16 +11,31 @@ >
+ + + +
- - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -287,7 +269,6 @@ export default { }, ], }, - activeId: "3442815297965547520", activeName: "折射率", visible: false, isSaveing: false, @@ -311,11 +292,14 @@ export default { that.apiObj = that.$API.qm.ptest.list; }); }, - handleClick(val) { - this.activeId = val.props.name; - this.activeName = val.props.label; - this.query.testitem = val.props.name; - this.$refs.table.refresh(); + testitemChange(){ + let that = this; + that.behaviors.forEach((item) => { + if(item.id==that.query.testitem){ + that.activeName = item.name; + } + that.$refs.table.refresh(); + }) }, add() { this.visible = true; diff --git a/src/views/qm/behavior_form.vue b/src/views/qm/behavior_form.vue index 6b95f43b..aba5e66f 100644 --- a/src/views/qm/behavior_form.vue +++ b/src/views/qm/behavior_form.vue @@ -7,7 +7,7 @@ @closed="$emit('closed')" > - + { + if(item.id==that.form.testitem){ + that.activeName = item.name; + } + }) + }, handleClick() {}, //提交 submit() { From f079ad9144f0ed3fc26c87bf4250d91d8916267f Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 27 Nov 2024 14:29:26 +0800 Subject: [PATCH 2/5] fix:coding#608 --- src/views/inm/helpso_mio.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/inm/helpso_mio.vue b/src/views/inm/helpso_mio.vue index b26f9ad5..8f371074 100644 --- a/src/views/inm/helpso_mio.vue +++ b/src/views/inm/helpso_mio.vue @@ -165,15 +165,18 @@ export default { { id: 10, name: "创建中" }, { id: 20, name: "已提交" }, ], - typeDict: { pur_in: "采购入库" }, - cateOptions: [{ id: "pur_in", name: "采购入库" }], + typeDict: { + pur_in: "采购入库", + do_out: "领料出库", + }, + cateOptions: [{ id: "pur_in", name: "采购入库" }, { id: "do_out", name: "领料出库" }], dialog: { save: false, record: false, }, query: {}, params: { - type__in: "pur_in", + type__in: "pur_in,do_out", materials__type__in: "40, 50, 60, 70", }, form: {}, From fe312b455c2f9f81c49ca2c96eeb9ca8ed667900 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 27 Nov 2024 17:14:08 +0800 Subject: [PATCH 3/5] fix:coding#628 --- src/views/wpm_gx/f_mlogs_form.vue | 14 ++++++++------ src/views/wpm_gx/mlog_form.vue | 16 +++++++++++++--- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/src/views/wpm_gx/f_mlogs_form.vue b/src/views/wpm_gx/f_mlogs_form.vue index 3b3f6e25..16d2043b 100644 --- a/src/views/wpm_gx/f_mlogs_form.vue +++ b/src/views/wpm_gx/f_mlogs_form.vue @@ -59,18 +59,18 @@ - + { that.deptId = res.belong_dept; + that.mgroupName = res.name; that.process = res.process; that.getEquipment(); }); diff --git a/src/views/wpm_gx/mlog_form.vue b/src/views/wpm_gx/mlog_form.vue index f4719102..6282588f 100644 --- a/src/views/wpm_gx/mlog_form.vue +++ b/src/views/wpm_gx/mlog_form.vue @@ -35,7 +35,7 @@ - + - - + + + + + Date: Thu, 28 Nov 2024 08:55:59 +0800 Subject: [PATCH 4/5] =?UTF-8?q?fix:=E6=A3=80=E9=AA=8C=E5=90=88=E6=A0=BCB?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qm/products_form.vue | 376 +++++++++++++++++++++------------ 1 file changed, 240 insertions(+), 136 deletions(-) diff --git a/src/views/qm/products_form.vue b/src/views/qm/products_form.vue index 898503e3..b62f1c0e 100644 --- a/src/views/qm/products_form.vue +++ b/src/views/qm/products_form.vue @@ -78,6 +78,17 @@ > + + + + + +
合格B类
+ + + + + + + + + + +
+ +
合格B类
+ + + + + + + + + + + + + + + +
+ + +
不合格
@@ -175,7 +254,7 @@ v-model="count_notok_json.count_n_hqnjyd" style="width: 100%" precision="0" - :disabled="mode=='sizeShow'||mode=='facadeShow'" + :disabled="mode=='sizeShow'" @change="handleCountChange" >
@@ -187,7 +266,7 @@ v-model="count_notok_json.count_n_hqwj" style="width: 100%" precision="0" - :disabled="mode=='sizeShow'||mode=='facadeShow'" + :disabled="mode=='sizeShow'" @change="handleCountChange" > @@ -199,7 +278,7 @@ v-model="count_notok_json.count_n_hqwjyd" style="width: 100%" precision="0" - :disabled="mode=='sizeShow'||mode=='facadeShow'" + :disabled="mode=='sizeShow'" @change="handleCountChange" > @@ -211,19 +290,19 @@ v-model="count_notok_json.count_n_wj" style="width: 100%" precision="0" - :disabled="mode=='sizeShow'||mode=='facadeShow'" + :disabled="mode=='sizeShow'" @change="handleCountChange" >
- + @@ -235,7 +314,7 @@ v-model="count_notok_json.count_n_txd" style="width: 100%" precision="0" - :disabled="mode=='sizeShow'||mode=='facadeShow'" + :disabled="mode=='sizeShow'" @change="handleCountChange" > @@ -247,37 +326,26 @@ v-model="count_notok_json.count_n_hd" style="width: 100%" precision="0" - :disabled="mode=='sizeShow'||mode=='facadeShow'" - @change="handleCountChange" - > - - - - - - - - - -
+
不合格
+ @@ -297,79 +365,7 @@ v-model="count_notok_json.count_n_qp" style="width: 100%" precision="0" - :disabled="mode=='sizeShow'||mode=='facadeShow'" - @change="handleCountChange" - > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -381,7 +377,45 @@ v-model="count_notok_json.count_n_hqbx" style="width: 100%" precision="0" - :disabled="mode=='sizeShow'||mode=='facadeShow'" + :disabled="mode=='facadeShow'" + @change="handleCountChange" + > + + + + + + + + + + + + + + + + + @@ -393,19 +427,31 @@ v-model="count_notok_json.count_n_dj" style="width: 100%" precision="0" - :disabled="mode=='sizeShow'||mode=='facadeShow'" + :disabled="mode=='facadeShow'" @change="handleCountChange" > - + + + + + + @@ -417,7 +463,43 @@ v-model="count_notok_json.count_n_lq" style="width: 100%" precision="0" - :disabled="mode=='sizeShow'||mode=='facadeShow'" + :disabled="mode=='facadeShow'" + @change="handleCountChange" + > + + + + + + + + + + + + + + + @@ -462,7 +544,14 @@ export default { count_notok: 0, count_notok_json:{} }, + count_ok_b:0, count_notok_json:{ + //合格B类 + count_n_zhg: 0,//准合格 + count_n_yz: 0,//圆准 + count_n_xbb: 0,//小崩边 + count_n_qsw: 0,//浅水纹 + count_n_qhm: 0,//浅划麻 //尺寸 count_n_hqnj: 0, count_n_hqnjyd: 0, @@ -472,21 +561,20 @@ export default { count_n_yd: 0, count_n_txd: 0, count_n_hd: 0, - count_n_zhg: 0, - count_n_yz: 0, //外观和内质 count_n_z:0, count_n_qp: 0, - count_n_swen: 0, - count_n_bb: 0, - count_n_zb: 0, - count_n_zq: 0, - count_n_hs: 0, - count_n_md: 0, count_n_hqbx: 0, + count_n_hs: 0,//双面划麻 + count_n_swen: 0,//重水纹 + count_n_zb: 0,//棕边、棕点 count_n_dj: 0, - count_n_ps: 0, + count_n_bb: 0,//大崩 + count_n_zq: 0,//棕圈 count_n_lq: 0, + count_n_ps: 0, + count_n_lg: 0,//漏光 + count_n_ccx: 0,//尺寸小 }, rules: { test_date: [ @@ -536,7 +624,6 @@ export default { }, getUsers(){ let that = this; - let userList = []; that.$API.system.user.list .req({ page: 0, posts__code__contains: "check" }) .then((res) => { @@ -552,6 +639,15 @@ export default { handleCheckChange(){ this.form.count_ok = this.form.count-this.form.count_notok; }, + handleCountbChange(){ + this.count_ok_b = + this.count_notok_json.count_n_zhg+ + this.count_notok_json.count_n_yz+ + this.count_notok_json.count_n_xbb+ + this.count_notok_json.count_n_qsw+ + this.count_notok_json.count_n_qhm; + this.count_notok_json.count_ok = this.form.count-this.form.count_notok; + }, handleCountChange(type){ if(type == 'notok'){ this.count_notok_json.count_n_hqnj= @@ -562,17 +658,20 @@ export default { this.count_notok_json.count_n_yd= this.count_notok_json.count_n_txd= this.count_notok_json.count_n_hd= + + this.count_notok_json.count_n_z= this.count_notok_json.count_n_qp= + this.count_notok_json.count_n_hqbx= + this.count_notok_json.count_n_hs= this.count_notok_json.count_n_swen= this.count_notok_json.count_n_zb= + this.count_notok_json.count_n_dj= this.count_notok_json.count_n_bb= this.count_notok_json.count_n_zq= - this.count_notok_json.count_n_hs= - this.count_notok_json.count_n_md= - this.count_notok_json.count_n_hqbx= - this.count_notok_json.count_n_dj= + this.count_notok_json.count_n_lq= this.count_notok_json.count_n_ps= - this.count_notok_json.count_n_lq=0; + this.count_notok_json.count_n_lg= + this.count_notok_json.count_n_ccx=0; }else{ this.form.count_notok = this.count_notok_json.count_n_hqnj+ @@ -583,20 +682,19 @@ export default { this.count_notok_json.count_n_yd+ this.count_notok_json.count_n_txd+ this.count_notok_json.count_n_hd+ - this.count_notok_json.count_n_zhg+ - this.count_notok_json.count_n_yz+ - this.count_notok_json.count_n_qp+ this.count_notok_json.count_n_z+ + this.count_notok_json.count_n_qp+ + this.count_notok_json.count_n_hqbx+ + this.count_notok_json.count_n_hs+ this.count_notok_json.count_n_swen+ this.count_notok_json.count_n_zb+ + this.count_notok_json.count_n_dj+ this.count_notok_json.count_n_bb+ this.count_notok_json.count_n_zq+ - this.count_notok_json.count_n_hs+ - this.count_notok_json.count_n_md+ - this.count_notok_json.count_n_hqbx+ - this.count_notok_json.count_n_dj+ + this.count_notok_json.count_n_lq+ this.count_notok_json.count_n_ps+ - this.count_notok_json.count_n_lq; + this.count_notok_json.count_n_lg+ + this.count_notok_json.count_n_ccx; } this.form.count_ok = this.form.count - this.form.count_notok; }, @@ -694,6 +792,12 @@ export default { Object.assign(this.form, data); this.formCount = this.form.count; this.form.count_notok = data.count_notok; + this.count_ok_b = + data.count_notok_json.count_n_zhg + + data.count_notok_json.count_n_yz + + data.count_notok_json.count_n_qsw + + data.count_notok_json.count_n_xbb + + data.count_notok_json.count_n_qhm ; this.count_notok_json = data.count_notok_json; }, scanClose(data){ From ffc95890fa4aceb9c0fa6b5d9e6c5f765ce1e000 Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 28 Nov 2024 09:59:57 +0800 Subject: [PATCH 5/5] fix:coding#594 --- src/views/wpm/worktask_form.vue | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/src/views/wpm/worktask_form.vue b/src/views/wpm/worktask_form.vue index b47aa7c9..3301120c 100644 --- a/src/views/wpm/worktask_form.vue +++ b/src/views/wpm/worktask_form.vue @@ -547,6 +547,21 @@ + + + + + + - + @@ -981,7 +996,9 @@ export default { count_n_zw: 0, count_n_tw: 0, count_n_qp: 0, - count_n_wq: 0, + count_n_wq:0, + count_n_zt: 0, + count_n_b: 0, count_n_dl: 0, count_n_pb: 0, count_n_dxt: 0, @@ -1263,7 +1280,8 @@ export default { this.form.count_n_zw + this.form.count_n_tw + this.form.count_n_qp + - this.form.count_n_wq + + this.form.count_n_zt + + this.form.count_n_b + this.form.count_n_qt; } else if (this.activeType == "10车间") { this.form.count_notok = @@ -1312,7 +1330,8 @@ export default { this.form.count_n_zw + this.form.count_n_tw + this.form.count_n_qp + - this.form.count_n_wq + + this.form.count_n_zt + + this.form.count_n_b + this.form.count_n_qt; } else if (this.activeType == "10车间") { this.form.mtask = this.mtask;