From 1118cd3db57dc4b72508d4872a5c3688c27a67a1 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期一, 22 七月 2024 18:17:19 +0800 Subject: [PATCH] 修改数采检验bug --- src/components/view/b1-inspect-order-plan.vue | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/components/view/b1-inspect-order-plan.vue b/src/components/view/b1-inspect-order-plan.vue index ed93408..ca954d6 100644 --- a/src/components/view/b1-inspect-order-plan.vue +++ b/src/components/view/b1-inspect-order-plan.vue @@ -233,7 +233,10 @@ font: '妫�楠�', type: 'text', method: 'handleInspection', - disabFun: (row, index) => { + // disabFun: (row, index) => { + // return row.userId == null || row.insState == 3 || row.insState == 5||JSON.parse(localStorage.getItem("user")).name != row.userName + // } + disabFun: (row, index) => { return row.userId == null || row.insState == 3 || row.insState == 5 } }, { @@ -242,7 +245,7 @@ type: 'text', method: 'handleConnect', disabFun: (row, index) => { - return row.userId == null || row.orderUserId == null || row.insState == 5 || row.insState == 3 + return row.userId == null || row.orderUserId == null || row.insState == 5 || row.insState == 3||JSON.parse(localStorage.getItem("user")).name != row.userName } }, { @@ -251,7 +254,7 @@ type: 'text', method: 'handleReview', disabFun: (row, index) => { - return row.userId == null || row.insState != 3 || row.verifyUser != 1 + return row.userId == null || row.insState != 3 || row.verifyUser != 1||JSON.parse(localStorage.getItem("user")).name != row.userName } }, { id: '', @@ -388,15 +391,15 @@ this.loading = false; this.$message.success("璁ら鎴愬姛") this.claimVisible = false - this.refreshTable() + this.refreshTable('page') } }).catch(error => { console.error(error) this.loading = false; }) }, - refreshTable() { - this.$refs.insOrderPlan.selectList() + refreshTable(e) { + this.$refs.insOrderPlan.selectList(e) }, changeRowClass({ row, @@ -491,7 +494,7 @@ }, goback() { this.state = 0 - this.refreshTable() + this.refreshTable('page') }, handleInspection(row){ this.state = 1; @@ -511,7 +514,7 @@ if (res.code === 200) { this.loading = false; this.$message.success("鎿嶄綔鎴愬姛") - this.refreshTable() + this.refreshTable('page') } this.connectVisible = false }).catch(error => { -- Gitblit v1.9.3