From 890cd9ab8cfbd642c7240413a2f2f51b7f6f0fa5 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期四, 21 三月 2024 13:37:26 +0800 Subject: [PATCH] 完善下单 --- src/components/view/b1-inspection-order.vue | 57 +++++++++++++++++++++++++++++++-------------------------- 1 files changed, 31 insertions(+), 26 deletions(-) diff --git a/src/components/view/b1-inspection-order.vue b/src/components/view/b1-inspection-order.vue index 563273b..1ee114e 100644 --- a/src/components/view/b1-inspection-order.vue +++ b/src/components/view/b1-inspection-order.vue @@ -54,7 +54,7 @@ border-radius: 8px 0 0 8px; } - .tab li:nth-child(4) { + .tab li:nth-child(5) { border-radius: 0 8px 8px 0; } @@ -86,9 +86,9 @@ v-model="componentData.entity.entrustCode" @keyup.enter.native="refreshTable()"></el-input></div> </div> <div class="search_thing"> - <div class="search_label">鏍峰搧鍚嶇О锛�</div> + <div class="search_label">鏍峰搧绫诲瀷锛�</div> <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable - v-model="componentData.entity.sample" @keyup.enter.native="refreshTable()"></el-input></div> + v-model="componentData.entity.sampleType" @keyup.enter.native="refreshTable()"></el-input></div> </div> <div class="search_thing" style="padding-left: 30px;"> <el-button size="small" @click="refresh()">閲� 缃�</el-button> @@ -217,8 +217,8 @@ componentData: { entity: { entrustCode: null, - sample: null, - state: 1, + sampleType: null, + state: 0, orderBy: { field: 'id', order: 'asc' @@ -241,7 +241,7 @@ type: 'text', method: 'download', disabFun: (row, index) => { - return row.state != 1 + return row.state != 1 || row.reportId == null } }, { id: 'verify', @@ -255,19 +255,22 @@ id: 'quash', font: '鎾ら攢', type: 'text', - method: 'handlEquash' + method: 'handlEquash', + disabFun: (row, index) => { + return row.state == 2 || row.state == 3 + } }, { - font: '涓嬪彂', + font: '鍒嗛厤', type: 'text', method: 'handleIssued', disabFun: (row, index) => { return row.state != 1 || row.sendTime != null } }], - linkEvent:{ - entrustCode:{ - method:'selectAllByOne' - } + linkEvent: { + entrustCode: { + method: 'selectAllByOne' + } }, tagField: { type: { @@ -330,12 +333,15 @@ addPower: true, upLoad: false, tabList: [{ - label: '妫�楠屽鐞�', + label: '寰呭鏍�', + value: 0 + }, { + label: '寰呮楠�', value: 1 }, { - label: '寰呭鏍�', - value: 0 + label: '宸叉楠�', + value: 4 }, { label: '閫�鍥�', @@ -347,8 +353,8 @@ }, ], tabIndex: 0, - active: 0,//1锛氫笅鍗曪紝2锛氭煡鐪嬶紝3锛氬鏍� - currentId:null + active: 0, //1锛氫笅鍗曪紝2锛氭煡鐪嬶紝3锛氬鏍� + currentId: null } }, mounted() { @@ -412,27 +418,26 @@ }, // 璇︽儏 selectAllByOne(row) { - this.active = 2; + this.active = 2; // console.log(row); // //鎵撳紑寮规 // this.dialogVisible = true; // //row = 鐐瑰嚮瀵瑰簲琛屽�� // //澶嶅埗缁檉ormData // this.formData = this.HaveJson(row); - this.currentId = row.id + this.currentId = row.id }, // 鏁版嵁鏌ョ湅 handleDataLook(row) { this.dataDialogVisible = true; }, // 涓嬭浇鎶ュ憡 - download(row) { - }, + download(row) {}, // 瀹℃牳 handleVerify(row) { // this.verifyDialogVisible = true; - this.active = 3; - this.currentId = row.id + this.active = 3; + this.currentId = row.id }, // 鎾ら攢 handlEquash(row) { @@ -441,9 +446,9 @@ // 涓嬪彂 handleIssued(row) { this.issuedDialogVisible = true; - this.$axios.post(this.$api.insOrder.selectOrderManDay,{ + this.$axios.post(this.$api.insOrder.selectOrderManDay, { id: row.sampleId - }).then(res=>{ + }).then(res => { this.distributeData.orderId = row.id this.distributeData.sampleId = row.sampleId this.distributeData.appointed = res.data @@ -451,7 +456,7 @@ }) }, submitForm2() { - if(this.distributeData.appointed==null||this.distributeData.appointed==''){ + if (this.distributeData.appointed == null || this.distributeData.appointed == '') { this.$message.error('绾﹀畾鏃堕棿鏈~鍐�') return } -- Gitblit v1.9.3