From 677d8205512324f338fd0b9ee800fff721a8e7ef Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期六, 09 十二月 2023 17:16:13 +0800 Subject: [PATCH] 产品检验修改 --- src/views/plan/customerorder/customerorder-form.vue | 46 ++++++++++++++++++++++++++-------------------- 1 files changed, 26 insertions(+), 20 deletions(-) diff --git a/src/views/plan/customerorder/customerorder-form.vue b/src/views/plan/customerorder/customerorder-form.vue index 9427657..f131c55 100644 --- a/src/views/plan/customerorder/customerorder-form.vue +++ b/src/views/plan/customerorder/customerorder-form.vue @@ -209,13 +209,12 @@ <el-input v-model="dataForm.partNo" placeholder="" - disabled > <el-button slot="append" icon="el-icon-search" - @click="openSalesPartDialog()" - v-show="dataForm.id" + @click="openPartDialog()" + ></el-button> </el-input> </el-form-item> @@ -828,6 +827,7 @@ productName: '', productType: '', partNo: '', + technologyDocumentId: '', docNumber: '', docName: '', shippingAddress: '', @@ -1051,7 +1051,7 @@ // } else { // console.log('2') this.dataForm = response.data.data - + // } // this.fileList = response.data.data.customerOrderAttachmentList const sourceId = response.data.data.sourceId @@ -1193,25 +1193,35 @@ } }) }, - // 闆朵欢閫夋嫨 + // 闆朵欢閫夋嫨 openPartDialog() { - if ( - this.dataForm.coState === '01partUnCheck' || - this.dataForm.coState === '02technologyUnCheck' - ) { - this.showPart = true - } else { - this.$message.warning( - '璁㈠崟鍙湁鍦ㄣ�愰浂浠跺緟閫夈�戙�併�愬伐鑹烘枃浠跺緟閫夈�戠姸鎬佷笅锛屾墠鑳借繘琛岄浂浠朵慨鏀�' - ) - } + this.showPart = true }, selectPart(part) { + console.log(part); if (part) { this.dataForm.partNo = part.partNo - this.$refs.dataForm.validateField('partNo', (valid) => {}) } }, + // 闆朵欢閫夋嫨 + // openPartDialog() { + // if ( + // this.dataForm.coState === '01partUnCheck' || + // this.dataForm.coState === '02technologyUnCheck' + // ) { + // this.showPart = true + // } else { + // this.$message.warning( + // '璁㈠崟鍙湁鍦ㄣ�愰浂浠跺緟閫夈�戙�併�愬伐鑹烘枃浠跺緟閫夈�戠姸鎬佷笅锛屾墠鑳借繘琛岄浂浠朵慨鏀�' + // ) + // } + // }, + // selectPart(part) { + // if (part) { + // this.dataForm.partNo = part.partNo + // this.$refs.dataForm.validateField('partNo', (valid) => {}) + // } + // }, // 鍏ㄥ睆 fullscreen() { this.isFullScreen = !this.isFullScreen @@ -1298,9 +1308,6 @@ this.getConfigFiles() }, delProcessConfigFile(row) { - if (row.lineNumber !== this.dataForm.otcLineNo) { - this.$message.error('涓婁紶鏂囦欢琛屽彿涓庡綋鍓嶉攢鍞鍗曡鍙蜂笉涓�鑷达紝涓嶅厑璁稿垹闄�') - } else { this.$confirm('鏄惁鍒犻櫎宸ヨ壓閰嶇疆鏂囦欢', '鎻愮ず', { confirmButtonText: '纭畾', cancelButtonText: '鍙栨秷', @@ -1313,7 +1320,6 @@ .then((data) => { this.getConfigFiles() }) - } }, downloadProcessConfigFile(row) { downloadProcessConfigFile( -- Gitblit v1.9.3