Bladeren bron

前端 sdy

zhongtianhaoyuan 3 jaren geleden
bovenliggende
commit
ce9d65694e
1 gewijzigde bestanden met toevoegingen van 20 en 2 verwijderingen
  1. 20 2
      src/views/houseSelfCollect/paymentManagement.vue

+ 20 - 2
src/views/houseSelfCollect/paymentManagement.vue

@@ -6,8 +6,8 @@
         <ws-button type="primary" @click="screen(2)">待结算</ws-button>
         <ws-button type="primary" @click="screen()">待审核</ws-button>
         <ws-button type="primary"  @click="screen()">全部</ws-button>
-        <ws-button type="primary" @click="reject">驳回</ws-button>
-        <ws-button type="primary" @click="adopt">通过</ws-button>
+        <ws-button type="primary" @click="reject" v-if="isShowAdopt">驳回</ws-button>
+        <ws-button type="primary" @click="adopt" v-if="isShowAdopt">通过</ws-button>
         <ws-button type="primary" @click="payment">付款</ws-button>
       </template>
       <template slot="right">
@@ -276,6 +276,7 @@ export default {
         amountNotPayable: 0,
         paymentDate:"",
       },
+      isShowAdopt:false,
       //上传截图路径
       imageUrl: '',
     }
@@ -338,6 +339,23 @@ export default {
            this.deptBudgetTotal = response.total
            this.WAREHOUSE.payname = this.warehouseName 
         })
+     getpayment({
+        currentPage: 1,
+        pageSize: 99999,
+        warehouseName: this.warehouseName,
+        managementType : 1 
+      })
+        .toPromise()
+        .then((response) => {
+          for(let i = 0 ; i < response.length ; i++){
+            if(response[i].taskId){
+              this.isShowAdopt = true
+              return
+            }
+       
+          }
+       
+        })
     },
     del(row) {
       this.$confirm(