changjiaming 7 meses atrás
pai
commit
acf63bf120

+ 1 - 1
src/views/purchaseContractManagement/components/PurchaseContractReviewContent.vue

@@ -283,7 +283,7 @@
           <el-table-column prop="name" label="操作" width="200" v-if="!isView">
             <template slot-scope="scope">
               <el-button type="text" @click="ruleForm.purchContractApproval.uploadPurchContracts.push({contractName: '', fileId: '', fileStorages: [], id: '', personList: []})">增加</el-button>
-              <el-button v-if="scope.$index !== 0" type="text" @click="deleteContract(scope.$index)">删除</el-button>
+              <el-button v-if="ruleForm.purchContractApproval && ruleForm.purchContractApproval.uploadPurchContracts && ruleForm.purchContractApproval.uploadPurchContracts.length > 1" type="text" @click="deleteContract(scope.$index)">删除</el-button>
             </template>
           </el-table-column>
         </el-table>