From 51030dc9974d417485de349a51cd3dc12f8850d7 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 1 Mar 2022 14:43:13 +0800 Subject: [PATCH] jiacengbanchengpinjianyan --- hb_client/src/views/wpm/need.vue | 326 +++++++++++++++---------------- 1 file changed, 158 insertions(+), 168 deletions(-) diff --git a/hb_client/src/views/wpm/need.vue b/hb_client/src/views/wpm/need.vue index f85c028..9609745 100644 --- a/hb_client/src/views/wpm/need.vue +++ b/hb_client/src/views/wpm/need.vue @@ -1,38 +1,38 @@ - + + :filter-method="filterTag"> @@ -206,37 +205,37 @@ 批量入库 - - 搜索 - - 重置 - + + 搜索 + + 重置 + - + @@ -259,15 +258,15 @@ {{ actstate_[scope.row.act_state] }} - + + :filter-method="filterTag"> @@ -297,36 +296,36 @@ - - 搜索 - - 重置 - + + 搜索 + + 重置 + @@ -341,14 +340,14 @@ {{ actstate_[scope.row.act_state] }} - + + :filter-method="filterTag"> @@ -356,7 +355,7 @@ {{ ng_sign_[scope.row.ng_sign] }} - + @@ -390,26 +389,23 @@ - - - - + @@ -417,26 +413,25 @@ {{ actstate_[scope.row.act_state] }} - + - + { text: '夹层', value: '夹层' }, { text: '包边', value: '包边' }]" :filter-method="filterTag"> @@ -779,8 +774,8 @@ import checkPermission from "@/utils/permission"; import customForm from '@/components/customForm/index'; import reviewForm from '@/components/customForm/review'; - import { createTicket, getWorkflowInit} from "@/api/workflow"; - import { getrecordformList, getrffieldList} from "@/api/mtm"; + import {createTicket, getWorkflowInit} from "@/api/workflow"; + import {getrecordformList, getrffieldList} from "@/api/mtm"; import {getwproductList, wproductPutin, createputins, testInit, scrap, getRetrial} from "@/api/wpm"; import {getTestRecord, getTestRecordItem, putTestRecordItem, delTestRecordItem, subTestRecordItem} from "@/api/qm"; // import {genTree} from "@/utils"; @@ -829,7 +824,7 @@ page: 1, page_size: 20, }, - activeName: "1", + activeName: "1", create_by_: '', update_time: '', formLabelWidth: '', @@ -943,30 +938,21 @@ }, methods: { checkPermission, - handleClick(tab) { + handleClick(tab) { this.listLoading = true; this.listQuery.type = tab.name; - if(tab.name==1) - { - this.getList(); + if (tab.name == 1) { + this.getList(); + } else if (tab.name == 2) { + this.getList2(); + } else if (tab.name == 3) { + this.getList1(); + } else if (tab.name == 4) { + this.getList4(); + } else if (tab.name == 5) { + this.getList3(); } - else if(tab.name==2) - { - this.getList2(); - } - else if(tab.name==3) - { - this.getList1(); - } - else if(tab.name==4) - { - this.getList4(); - } - else if(tab.name==5) - { - this.getList3(); - } - + }, //待检半成品列表 getList() { @@ -979,12 +965,12 @@ this.listLoading = false; }); }, - handleFilter1() { + handleFilter1() { this.listQuery.page = 1; this.getList(); }, resetFilter1() { - + this.listQuery = { page: 1, page_size: 20, @@ -1019,12 +1005,12 @@ } }); }, - handleFilter2() { + handleFilter2() { this.listQuery2.page = 1; this.getList2(); }, resetFilter2() { - + this.listQuery2 = { page: 1, page_size: 20, @@ -1042,12 +1028,12 @@ }); }, - handleFilter3() { + handleFilter3() { this.listQuery1.page = 1; this.getList1(); }, resetFilter3() { - + this.listQuery1 = { page: 1, page_size: 20, @@ -1065,12 +1051,12 @@ }); }, - handleFilter4() { + handleFilter4() { this.listQuery4.page = 1; this.getList4(); }, resetFilter4() { - + this.listQuery4 = { page: 1, page_size: 20, @@ -1152,7 +1138,7 @@ }); }, //筛选 - filterTag(value, row) { + filterTag(value, row) { return row.step_.name === value; }, //夹层半成品列表 @@ -1204,7 +1190,11 @@ // this.outerVisible = true; that.wproduct = scope.row.id;//半成品ID that.listQueryrecordform.material = scope.row.material; - that.listQueryrecordform.type = 20; + if (index === '3') { + that.listQueryrecordform.type = 40; + } else { + that.listQueryrecordform.type = 20; + } that.listQueryrecordform.enabled = true; that.recordform = null; getrecordformList(that.listQueryrecordform).then((response) => { @@ -1251,8 +1241,8 @@ that.recordId = scope.row.id; that.recordform = scope.row.form; that.formName = scope.row.form_.name; - if(that.innerIndex==='1'){//非复检 - getrffieldList({form: this.recordform,enabled:true, page: 1, page_size: 100}).then((response) => { + if (that.innerIndex === '1') {//非复检 + getrffieldList({form: this.recordform, enabled: true, page: 1, page_size: 100}).then((response) => { if (response.data) { that.hasPicture = false; let fieldList = response.data.results; @@ -1378,7 +1368,7 @@ this.outerVisible = false; that.fieldList = []; if (that.recordform != "") { - if (index === '1') {//非复检 + if (index !== '2') {//非复检 testInit({wproduct: that.wproduct, form: that.recordform}).then((response) => { if (response.data) { that.hasPicture = false;