From d725fa8d75443fe4b5e95e61d64c6adfa5d31b52 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期一, 20 五月 2024 18:18:43 +0800
Subject: [PATCH] 部分修复

---
 src/components/do/b1-ins-order/add.vue        |   10 +++++-----
 src/components/view/b1-report-preparation.vue |   26 ++++++++++++++++----------
 index.html                                    |    2 +-
 src/components/view/a6-device-management.vue  |    2 +-
 4 files changed, 23 insertions(+), 17 deletions(-)

diff --git a/index.html b/index.html
index 93c7f79..f59f294 100644
--- a/index.html
+++ b/index.html
@@ -21,7 +21,7 @@
 	</head>
 	<body>
 		<div id="app"></div>
-		<script type='text/javascript' src='http://192.168.73.130:9001/web-apps/apps/api/documents/api.js'></script>
+		<!-- <script type='text/javascript' src='http://192.168.73.130:9001/web-apps/apps/api/documents/api.js'></script> -->
 		<script src="<%= htmlWebpackPlugin.options.url %>/static/luckysheet/plugins/js/plugin.js"></script>
 		<script src="<%= htmlWebpackPlugin.options.url %>/static/luckysheet/luckysheet.umd.js"></script>
 	</body>
diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue
index 6cd0389..279d71a 100644
--- a/src/components/do/b1-ins-order/add.vue
+++ b/src/components/do/b1-ins-order/add.vue
@@ -272,7 +272,7 @@
         <el-table-column prop="model" label="鏍峰搧鍨嬪彿" align="center" min-width="100">
           <template slot-scope="scope">
             <el-select v-model="scope.row.model" filterable allow-create default-first-option placeholder="鏍峰搧鍨嬪彿"
-              size="small" @change="handleChangeModel" :disabled="active>1" style="width: 100%;" disabled>
+              size="small" @change="handleChangeModel" :disabled="active>1" style="width: 100%;">
               <el-option v-for="item in models" :key="item.value" :label="item.label" :value="item.value">
               </el-option>
             </el-select>
@@ -348,7 +348,7 @@
         <el-table-column prop="section" label="鍖洪棿" width="120" show-overflow-tooltip></el-table-column>
         <el-table-column prop="ask" label="瑕佹眰鍊�" min-width="220px">
           <template slot-scope="scope">
-            <el-input size="small" placeholder="瑕佹眰鍊�" v-model="scope.row.ask" clearable type="textarea"
+            <el-input size="small" placeholder="瑕佹眰鍊�" v-model="scope.row.ask" clearable type="textarea" readonly
               :autosize="{ minRows: 1, maxRows: 3}" @change="e=>requestChange(e,scope.row)" :readonly="active>1"></el-input>
           </template>
         </el-table-column>
@@ -876,8 +876,8 @@
       },
       activeStandardTree() {
         let trees = this.selectTree.split(" - ")
-        if (trees.length < 5) {
-          this.$message.error('鏈�夋嫨鍨嬪彿')
+        if (trees.length < 4) {
+          this.$message.error('鏈�夋嫨浜у搧')
           return
         }
         this.addObj.factory = trees[0]
@@ -1144,7 +1144,7 @@
         if(val===null||val==='')return
         this.getProductLoad = true
         this.$axios.post(this.$api.standardTree.selectStandardProductList, {
-          model: this.addObj.model + '-' + row.modelNum,
+          model: row.model + '-' + row.modelNum,
           standardMethodListId: val
         }, {
           headers: {
diff --git a/src/components/view/a6-device-management.vue b/src/components/view/a6-device-management.vue
index 7fc51d6..24d2283 100644
--- a/src/components/view/a6-device-management.vue
+++ b/src/components/view/a6-device-management.vue
@@ -687,7 +687,7 @@
           this.$message.error('鏈緭鍏ュ惎鐢ㄦ棩鏈�')
           return
         }
-        if(!this.formData.deviceStatus){
+        if(this.formData.deviceStatus==='' || this.formData.deviceStatus===null){
           this.$message.error('鏈�夋嫨褰撳墠鐘舵��')
           return
         }
diff --git a/src/components/view/b1-report-preparation.vue b/src/components/view/b1-report-preparation.vue
index 5bfb65e..ffe8dc1 100644
--- a/src/components/view/b1-report-preparation.vue
+++ b/src/components/view/b1-report-preparation.vue
@@ -181,9 +181,9 @@
           showSelect: false,
           select: false,
           do: [
-              {
+            {
               id: 'handleWeave',
-              font: '鍦ㄧ嚎缂栧埗',
+              font: '缂栧埗',
               type: 'text',
               method: 'handleWeave',
               disabFun: (row, index) => {
@@ -383,25 +383,31 @@
           if (power[i].menuMethod == 'writeReport') {
             sub = true
           }
+          if (power[i].menuMethod == 'ratifyReport') {
+            approve = true
+          }
+          if (power[i].menuMethod == 'examineReport') {
+            issued = true
+          }
         }
         if (!approve) {
-          this.componentData.do.splice(5, 1)
+          this.componentData.do.splice(6, 1)
         }
         if (!issued) {
-          this.componentData.do.splice(4, 1)
+          this.componentData.do.splice(5, 1)
         }
         if (!sub) {
-          this.componentData.do.splice(3, 1)
+          this.componentData.do.splice(4, 1)
         }
         if (!res) {
-          this.componentData.do.splice(2, 1)
+          this.componentData.do.splice(3, 1)
         }
         if (!up) {
-          this.componentData.do.splice(1, 1)
+          this.componentData.do.splice(2, 1)
         }
-        // if (!edit) {
-        //   this.componentData.do.splice(0, 1)
-        // }
+        if (!edit) {
+          this.componentData.do.splice(0, 1)
+        }
       },
       confirmClaim() {
         // console.log(this.$refs.Word.getValue())

--
Gitblit v1.9.3