소스 검색

fix:采购合同审核退回暂存隐藏

jiand 6 달 전
부모
커밋
395484f3f1

+ 2 - 0
src/views/purchaseContractManagement/components/PurchaseContractReviewContent.vue

@@ -459,6 +459,7 @@ export default {
             this.ruleForm[key] = data[key]
           }
         })
+        this.$emit('changeResult', this.ruleForm.purchContractApproval?.approvalConclusion)
         console.log(this.ruleForm, 'ruleForm')
       })
     },
@@ -551,6 +552,7 @@ export default {
       }
     },
     setOtherInfo(val) {
+      this.$emit('changeResult', this.ruleForm.purchContractApproval.approvalConclusion)
       if(val == 'back') {
         this.ruleForm.purchContractApproval.signMode = ''
         this.ruleForm.purchContractApproval.fileStorage = []

+ 7 - 3
src/views/purchaseContractManagement/purchaseContractReview.vue

@@ -38,10 +38,10 @@
       </div>
       <div slot="bottom">
         <div class="tempalte-content" style="min-height: auto; padding: 0px 20px ">
-          <purchase-contract-review-content ref="auditInfo" />
+          <purchase-contract-review-content ref="auditInfo" @changeResult="getReviewResult" />
           <div class="submit-btn">
             <el-button style="width: 150px;" @click="() => { $router.go(-1) }">取消</el-button>
-            <el-button style="width: 150px;" @click="submit(0)">暂存</el-button>
+            <el-button style="width: 150px;" @click="submit(0)" v-show="isDisabled !== 'back'">暂存</el-button>
             <el-button type="primary" style="width: 150px;" @click="confirm">确定</el-button>
           </div>
         </div>
@@ -67,13 +67,17 @@ export default {
     return {
       stepList: [],
       activeNames: '',
-      isLoading: false
+      isLoading: false,
+      isDisabled: false
     }
   },
   mounted() {
     this.getStepList()
   },
   methods: {
+    getReviewResult(val) {
+      this.isDisabled = val
+    },
     getStepList() {
       this.isLoading = true
       request({