Browse Source

Merge branch 'master' of http://git.zthymaoyi.com/gdc/yiliangyiyun-pc

mxx 3 years ago
parent
commit
6aa74c0bb5
1 changed files with 22 additions and 3 deletions
  1. 22 3
      src/views/houseSelfCollect/paymentManagement.vue

+ 22 - 3
src/views/houseSelfCollect/paymentManagement.vue

@@ -5,9 +5,10 @@
       <template slot="left">
       <template slot="left">
         <ws-button type="primary" @click="screen(2)">待结算</ws-button>
         <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="screen()">全部</ws-button>
-        <ws-button type="primary" @click="reject">驳回</ws-button>
-        <ws-button type="primary" @click="adopt">通过</ws-button>
+        <ws-button type="primary"  @click="screen()">全部</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="adopt" v-if="isShowAdopt">审核</ws-button>
         <ws-button type="primary" @click="payment">付款</ws-button>
         <ws-button type="primary" @click="payment">付款</ws-button>
       </template>
       </template>
       <template slot="right">
       <template slot="right">
@@ -216,6 +217,7 @@ export default {
         amountNotPayable: 0,
         amountNotPayable: 0,
         paymentDate: ''
         paymentDate: ''
       },
       },
+      isShowAdopt:false,
       //上传截图路径
       //上传截图路径
       imageUrl: ''
       imageUrl: ''
     }
     }
@@ -287,6 +289,23 @@ export default {
           this.paymentList = response
           this.paymentList = response
           this.deptBudgetTotal = response.total
           this.deptBudgetTotal = response.total
         })
         })
+     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) {
     del(row) {
       this.$confirm(
       this.$confirm(