From 3a3d89d127456281c2b0f17b0a1bcc2bdfa09385 Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 19 Jan 2024 11:11:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E5=93=81=E6=A3=80=E9=AA=8C&0119?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/route.js | 11 + src/views/inm/mioitem_check.vue | 48 ++++- src/views/qm/behavior_form.vue | 7 +- src/views/qm/first.vue | 2 +- src/views/qm/first_check.vue | 68 ++++--- src/views/qm/product.vue | 64 ++++-- src/views/qm/productCheck.vue | 346 ++++++++++++++++++++++---------- src/views/qm/product_check.vue | 245 +++++++++++++++++++--- src/views/qm/product_form.vue | 20 +- src/views/wpm/worktask_form.vue | 2 +- 10 files changed, 619 insertions(+), 194 deletions(-) diff --git a/src/config/route.js b/src/config/route.js index e081c43e..65137a0a 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -950,6 +950,17 @@ const routes = [ "perms": ["producttest"] }, "component": "qm/product" + }, + { + "name": "productDetail", + "path": "/qm/productDetail", + "meta": { + "title": "成品检验", + "icon": "el-icon-cellphone", + "perms": ["producttest"], + "hidden":true + }, + "component": "qm/productCheck" } ] }, diff --git a/src/views/inm/mioitem_check.vue b/src/views/inm/mioitem_check.vue index e1c6640a..e88888e7 100644 --- a/src/views/inm/mioitem_check.vue +++ b/src/views/inm/mioitem_check.vue @@ -45,67 +45,67 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -518,6 +518,19 @@ export default { that.form.batch = that.objitem.batch; that.form.count_bag = that.objitem.count_bag; } + if(that.type=='do_in'&&that.cate=='halfgood'){ + this.form.count_notok=0; + this.form.count_n_zw=0; + this.form.count_n_tw=0; + this.form.count_n_qp=0; + this.form.count_n_wq=0; + this.form.count_n_dl=0; + this.form.count_n_pb=0; + this.form.count_n_dxt=0; + this.form.count_n_js=0; + this.form.count_n_qx=0; + this.form.count_n_qt=0; + } }, methods: { //显示 @@ -552,6 +565,19 @@ export default { }, countChange(){ + }, + countNotOkSun() { + this.form.count_notok = + this.form.count_n_zw + + this.form.count_n_tw + + this.form.count_n_qp + + this.form.count_n_wq + + this.form.count_n_dl + + this.form.count_n_pb + + this.form.count_n_dxt + + this.form.count_n_js+ + this.form.count_n_qx+ + this.form.count_n_qt; }, //提交 submit() { diff --git a/src/views/qm/behavior_form.vue b/src/views/qm/behavior_form.vue index 9e2bd0eb..3b886bd2 100644 --- a/src/views/qm/behavior_form.vue +++ b/src/views/qm/behavior_form.vue @@ -76,6 +76,7 @@ v-model="form.test_user" placeholder="检验员" clearable + filterable style="width:100%" > { + that.$API.qm.getTestItem.get({tag:'performance',page:0}).then(res=>{ that.behaviors = res; }) }, @@ -256,8 +257,8 @@ export default { //获取员工 getUserList(){ let that = this; - this.$API.system.user.list.req({page_size:20,page:1}).then(res=>{ - that.userList = res.results; + this.$API.system.user.list.req({page:0,belong_dept__name:'检验管理部'}).then(res=>{ + that.userList = res; }); }, getProcess(){ diff --git a/src/views/qm/first.vue b/src/views/qm/first.vue index 713e5c46..d41c3605 100644 --- a/src/views/qm/first.vue +++ b/src/views/qm/first.vue @@ -15,7 +15,7 @@ - +