From 49522fcc80c31225bcd7bab78315206567e84146 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期六, 16 十一月 2024 09:26:55 +0800
Subject: [PATCH] 优化

---
 company/src/components/business/modification.vue |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/company/src/components/business/modification.vue b/company/src/components/business/modification.vue
index 6bcff4c..081cdb9 100644
--- a/company/src/components/business/modification.vue
+++ b/company/src/components/business/modification.vue
@@ -23,8 +23,7 @@
                 align="center"
                 label="淇濋櫓鏂规">
                 <template slot-scope="scope">
-<!--                    :value="{ id:item.id, baseId: item.baseId }"-->
-                    <el-select v-model="scope.row.solution.id" filterable @change="changeSolution($event, scope.$index)" placeholder="璇烽�夋嫨">
+                    <el-select v-model="scope.row.solution.id" :disabled="scope.row.disabled" filterable @change="changeSolution($event, scope.$index)" placeholder="璇烽�夋嫨">
                         <el-option
                             v-for="item in programme"
                             :key="item.id"
@@ -38,7 +37,7 @@
               align="center"
               label="濮旀墭鍟嗘埛">
             <template slot-scope="scope">
-              <el-select :ref="'shopSelect'+scope.$index" :disabled="scope.row.solution.type ==1" v-model="scope.row.shopId" clearable value-key="id" placeholder="璇烽�夋嫨">
+              <el-select :ref="'shopSelect'+scope.$index" disabled v-model="scope.row.shopId" clearable value-key="id" placeholder="璇烽�夋嫨">
                 <el-option
                     v-for="item in shops"
                     :key="item.id"
@@ -61,7 +60,7 @@
                 label="绛剧讲鐘舵��">
                 <template slot-scope="{row}">
                     <template v-if="row.signStatus === 0">寰呯绔�</template>
-                    <template v-if="row.signStatus === 1">宸茬绔�</template>
+                    <template v-else-if="row.signStatus === 1">宸茬绔�</template>
                 </template>
             </el-table-column>
             <el-table-column
@@ -69,7 +68,7 @@
                 align="center"
                 width="100">
                 <template slot-scope="scope">
-                    <el-button type="text" size="small" style="color: red;" @click="dele(scope.$index)" v-if="scope.row.signStatus === 0 || !scope.row.signStatus">鍒犻櫎</el-button>
+                    <el-button type="text" size="small" style="color: red;" @click="dele(scope.$index)">鍒犻櫎</el-button>
                 </template>
             </el-table-column>
         </el-table>
@@ -171,18 +170,20 @@
         .then(resa => {
           resa.forEach(item => {
             this.form.solutionList.push({
+              disabled: true,
               solution: { id: item.solutionId, baseId: item.solutionBaseId,type:item.solutionType },
               shopId: item.shopId,
               canAdd: 1,
-              canReduce: 1
+              canReduce: 1,
+              signStatus: item.signStatus
             })
           })
-          console.log(this.form.solutionList)
           that.visible = true
         })
     },
     add () {
       this.form.solutionList.push({
+        disabled: false,
         solution: { id: null, baseId: null },
         shopId: null,
         canAdd: 1,

--
Gitblit v1.9.3