From 7e15a84f1f30803d32c12afe3f80ac24c12b2e46 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期三, 25 十二月 2024 13:14:48 +0800
Subject: [PATCH] 修改历史记录按钮权限

---
 src/components/view/a7-sample-registration.vue                    |   10 ++--------
 src/components/view/a8-periodic-document-review-records.vue       |   10 ++--------
 src/main.js                                                       |    6 +++---
 src/components/view/a7-sample-disposal.vue                        |   10 ++--------
 src/components/view/a8-external-document-confirmation-records.vue |    6 ------
 5 files changed, 9 insertions(+), 33 deletions(-)

diff --git a/src/components/view/a7-sample-disposal.vue b/src/components/view/a7-sample-disposal.vue
index b133500..2a01a48 100644
--- a/src/components/view/a7-sample-disposal.vue
+++ b/src/components/view/a7-sample-disposal.vue
@@ -8,7 +8,7 @@
     </el-row>
     <el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="tabClick">
       <el-tab-pane label="濉啓" name="濉啓" style="height: 100%;" :key="1">
-        <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower&&currentInfo.examineState!='閫氳繃'">鏂板</el-button>
+        <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower&&currentInfo.submitState!='宸叉彁浜�'">鏂板</el-button>
         <div class="table" style="height: calc(100% - 200px)" v-if="activeName=='濉啓'">
           <ValueTable ref="ValueTable0" :url="$api.processTotaldeal.pageProcessDeal"
       :componentData="componentData0" :key="upIndex0" :delUrl="$api.processTotaldeal.delProcessDeal" />
@@ -300,17 +300,11 @@
             font: '淇敼',
             type: 'text',
             method: 'handleAdd0',
-            disabFun: (row, index) => {
-						  return !this.addPower||this.currentInfo.examineState=='閫氳繃'
-            }
           },{
             id: 'delete',
             font: '鍒犻櫎',
             type: 'text',
             method: 'doDiy',
-            disabFun: (row, index) => {
-						  return !this.addPower||this.currentInfo.examineState=='閫氳繃'
-            }
           }],
           tagField: {},
           selectField: {},
@@ -336,7 +330,7 @@
       if(val1=='濉啓'){
         this.componentData0.do.forEach((item)=>{
           item.disabFun = (row, index) => {
-            return !this.addPower||this.currentInfo.examineState=='閫氳繃'
+            return !this.addPower||this.currentInfo.submitState=='宸叉彁浜�'
           }
         })
       }
diff --git a/src/components/view/a7-sample-registration.vue b/src/components/view/a7-sample-registration.vue
index 83360af..0c59dc9 100644
--- a/src/components/view/a7-sample-registration.vue
+++ b/src/components/view/a7-sample-registration.vue
@@ -5,7 +5,7 @@
     </el-row>
     <el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="tabClick">
       <el-tab-pane label="濉啓" name="濉啓" style="height: 100%;" :key="1">
-        <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower&&currentInfo.examineState!='閫氳繃'">鏂板</el-button>
+        <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower&&currentInfo.submitState!='宸叉彁浜�'">鏂板</el-button>
         <div class="table" style="height: calc(100% - 200px)" v-if="activeName=='濉啓'">
           <ValueTable ref="ValueTable0" :url="$api.processSample.pageProcessSample"
       :componentData="componentData0" :key="upIndex0" :delUrl="$api.processSample.delProcessSample" />
@@ -326,17 +326,11 @@
             font: '淇敼',
             type: 'text',
             method: 'handleAdd0',
-            disabFun:(row, index) => {
-              return !this.addPower||this.currentInfo.examineState=='閫氳繃'
-            }
           },{
             id: 'delete',
             font: '鍒犻櫎',
             type: 'text',
             method: 'doDiy',
-            disabFun:(row, index) => {
-              return !this.addPower||this.currentInfo.examineState=='閫氳繃'
-            }
           }],
           tagField: {},
           selectField: {},
@@ -362,7 +356,7 @@
       if(val1=='濉啓'){
         this.componentData0.do.forEach((item)=>{
           item.disabFun = (row, index) => {
-            return !this.addPower||this.currentInfo.examineState=='閫氳繃'
+            return !this.addPower||this.currentInfo.submitState=='宸叉彁浜�'
           }
         })
       }
diff --git a/src/components/view/a8-external-document-confirmation-records.vue b/src/components/view/a8-external-document-confirmation-records.vue
index 8402380..6bcf9f1 100644
--- a/src/components/view/a8-external-document-confirmation-records.vue
+++ b/src/components/view/a8-external-document-confirmation-records.vue
@@ -142,17 +142,11 @@
             font: '淇敼',
             type: 'text',
             method: 'doDiy',
-            disabFun:(row, index) => {
-              return !this.addPower||!!this.currentInfo.ratifyUserName
-            }
           },{
             id: 'delete',
             font: '鍒犻櫎',
             type: 'text',
             method: 'doDiy',
-            disabFun:(row, index) => {
-              return !this.addPower||!!this.currentInfo.ratifyUserName
-            }
           }],
           tagField: {},
           selectField: {},
diff --git a/src/components/view/a8-periodic-document-review-records.vue b/src/components/view/a8-periodic-document-review-records.vue
index 99c45b6..09781c4 100644
--- a/src/components/view/a8-periodic-document-review-records.vue
+++ b/src/components/view/a8-periodic-document-review-records.vue
@@ -188,19 +188,13 @@
           id: 'delete',
           font: '鍒犻櫎',
           type: 'text',
-          method: 'doDiy',
-          disabFun:(row, index) => {
-            return !this.addPower||!!this.currentInfo.ratifyUserName
-          }
+          method: 'doDiy'
         }, {
           id: 'handleEdit',
           font: '淇敼',
           type: 'text',
           method: 'handleEdit',
-          field:[],
-          disabFun:(row, index) => {
-            return !this.addPower||!!this.currentInfo.ratifyUserName
-          }
+          field:[]
         }],
         tagField: {
           // documentType:{
diff --git a/src/main.js b/src/main.js
index 092cd83..dbe1adf 100644
--- a/src/main.js
+++ b/src/main.js
@@ -22,11 +22,11 @@
 //鏈湴
 // Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80";
 // const javaApi = 'http://127.0.0.1:8001';
-const javaApi = 'http://172.20.10.5:8001';
+// const javaApi = 'http://172.20.10.5:8001';
 
 //閫氫俊娴嬭瘯搴�
-// Vue.prototype.LOCATIONVUE = "http://10.1.13.77:8080";
-// const javaApi = 'http://10.1.13.77:8001';
+Vue.prototype.LOCATIONVUE = "http://10.1.13.77:8080";
+const javaApi = 'http://10.1.13.77:8001';
 
 // 閫氫俊姝e紡搴�
 // Vue.prototype.LOCATIONVUE = "https://ztwxlims.ztt.cn:7443";

--
Gitblit v1.9.3