Browse Source

费用请款付款方名头根据合同变化

高敬炎 2 years ago
parent
commit
92f2921d36
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/views/profitable/cashout.vue

+ 5 - 0
src/views/profitable/cashout.vue

@@ -652,6 +652,11 @@ export default {
         if (this.contractList[i].contractNo == e) {
           this.deptBudgetList.contractId = this.contractList[i].id
           this.signingDate = this.contractList[i].signingDate
+          if(this.contractList[i].agreementType=='采购合同'){
+            this.deptBudgetList.payerHeader=this.contractList[i].buyer
+          }else if(this.contractList[i].agreementType=='销售合同'){
+            this.deptBudgetList.payerHeader=this.contractList[i].seller
+          }
           getpayeeinfo({ compId: localStorage.getItem('ws-pf_compId'), contractNo: e }).toPromise()
             .then((response1) => {
               this.deptBudgetList.payee = response1.customerType == '企业客户' ? response1.compName : response1.customerName