From fae4543ea2610775df543125d685783bf687108d Mon Sep 17 00:00:00 2001 From: zuowenwen Date: Thu, 16 Dec 2021 15:07:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=85=B7=E6=96=87=E4=BB=B6=E5=AF=BC?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/common/excelUpload.vue | 62 +++++++++++++++++++ .../toolMan/repairReturnInspection.vue | 35 +++++++++++ src/views/modules/toolMan/tool-info.vue | 7 ++- 3 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 src/views/modules/common/excelUpload.vue diff --git a/src/views/modules/common/excelUpload.vue b/src/views/modules/common/excelUpload.vue new file mode 100644 index 00000000..475f9f61 --- /dev/null +++ b/src/views/modules/common/excelUpload.vue @@ -0,0 +1,62 @@ + + + + + diff --git a/src/views/modules/toolMan/repairReturnInspection.vue b/src/views/modules/toolMan/repairReturnInspection.vue index d22484ac..f8258dd7 100644 --- a/src/views/modules/toolMan/repairReturnInspection.vue +++ b/src/views/modules/toolMan/repairReturnInspection.vue @@ -80,6 +80,17 @@ + + + + + + + + + + + @@ -142,17 +153,29 @@ import { modelInput : { label1 : '审核信息', label2 : '不合格原因', + label3 : '责任类型', }, }, setUp :{ modelFlag : false, saveModelFlag : false, }, + selectList: { + select1: [{ + value: '内部责任', + label: '内部责任' + }, { + value: '供应商责任', + label: '供应商责任' + }], + }, currentData : {}, remark : '', flag : '', site : this.$store.state.user.site, userName : this.$store.state.user.name, + //责任类型 + defectCode : '', // table高度 height:450, // 是否收藏 @@ -552,6 +575,16 @@ import { }); return false } + // if(this.defectCode.trim() == ''){ + // this.$alert('请选择责任类型!', '操作提示', { + // confirmButtonText: '确定', + // type :"warning", + // callback: action => { + // this.saveModelFlag = false + // } + // }); + // return false + // } this.saveModelFlag = false this.setUp.modelFlag = false this.saveToolInspection(this.currentData ,this.flag) @@ -590,6 +623,7 @@ import { this.currentData = row this.flag = passFlag this.remark = '' + this.defectCode = '' if(passFlag == 'G'){ this.setUp.modelFlag = true }else { @@ -625,6 +659,7 @@ import { checkBy : this.userName, newApplyType : newApplyType, remark : this.remark, + defectCode : this.defectCode, } saveList.push(saveData) updateSoToolInspectionApplyList(saveList).then(({data}) => { diff --git a/src/views/modules/toolMan/tool-info.vue b/src/views/modules/toolMan/tool-info.vue index 6c9be3c1..bae3fe57 100644 --- a/src/views/modules/toolMan/tool-info.vue +++ b/src/views/modules/toolMan/tool-info.vue @@ -57,6 +57,9 @@ + + + @@ -376,10 +379,12 @@ flagAdd, updateSoToolInspectionApplyList, } from '@/api/toolMan/tool-info.js' + import upload from "../common/excelUpload"; export default { components: { - column + column, + upload }, data() { return {