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: {}, 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() { 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){ 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; 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 @@ - + -
- + + + + +