瀏覽代碼

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

高敬炎 2 年之前
父節點
當前提交
92f2921d36
共有 1 個文件被更改,包括 5 次插入0 次删除
  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) {
         if (this.contractList[i].contractNo == e) {
           this.deptBudgetList.contractId = this.contractList[i].id
           this.deptBudgetList.contractId = this.contractList[i].id
           this.signingDate = this.contractList[i].signingDate
           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()
           getpayeeinfo({ compId: localStorage.getItem('ws-pf_compId'), contractNo: e }).toPromise()
             .then((response1) => {
             .then((response1) => {
               this.deptBudgetList.payee = response1.customerType == '企业客户' ? response1.compName : response1.customerName
               this.deptBudgetList.payee = response1.customerType == '企业客户' ? response1.compName : response1.customerName