| 
					
				 | 
			
			
				@@ -239,17 +239,18 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </avue-crud> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </basic-container> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <fee-info 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          ref="feeInfo" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          :orderFeesList="advantageProjectData" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          :disabled="detailData.seeDisabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          feeUrl="/trade-purchase/purchase-order/removeByFees" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          optionType="GN" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          itemType="采购" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          @beforeFinance="beforeFinance" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          :corpId="form.corpId" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          :tabShow="3" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--        注释,怕再次需要--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--        <fee-info--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--          ref="feeInfo"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--          :orderFeesList="advantageProjectData"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--          :disabled="detailData.seeDisabled"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--          feeUrl="/trade-purchase/purchase-order/removeByFees"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--          optionType="GN"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--          itemType="采购"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--          @beforeFinance="beforeFinance"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--          :corpId="form.corpId"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--          :tabShow="3"--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--        />--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <containerTitle title="附件上传"></containerTitle> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <c-upload 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           :data="bankOfDepositData" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -383,9 +384,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <financial-account 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         v-if="financialAccountDialog" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :billType="billType" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        :billData="{}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        :billData="billData" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :arrList="applyPaymentList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :checkData="financeData" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        tradeType="GN" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         @choceFun="choceFun" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         @submit="feeSubmit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       > 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1442,7 +1444,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           //商品信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.form.itemsVOList = this.contactsData 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           // this.form.orderFeesList = this.advantageProjectData 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.form.orderFeesList = this.$refs.feeInfo.submitData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // this.form.orderFeesList = this.$refs.feeInfo.submitData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.form.orderFilesList = this.bankOfDepositData 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (typeof this.form.corpsTypeId == 'object') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.form.corpsTypeId = this.form.corpsTypeId.join(",") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1499,59 +1501,89 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         pageLabel:"付费申请", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         checkType: 'ffsq' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let amount = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let quantity = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.contactsData.map(e => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (e.submitPay != 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          const form = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            belongCompany: this.form.belongCompany, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            srcOrderno:this.form.orderNo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            itemType:"采购", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            corpsName:this.form.corpsName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            corpId:this.form.corpId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            srcParentId: this.form.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            currency: 'CNY', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            exchangeRate: '1', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            taxRate: '0', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            accDate: this.form.businesDate, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            srcType: 1, // 1.采购or销售主表货款申请 2. 采购or销售-费用明细申请  3.收发货-费用明细 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            tradeType: 'GN', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            optionType: 'GN', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            amount: e.amount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            goodName: e.cname, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            price: e.purchaseAmount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            unit: e.unit, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            quantity: e.orderQuantity, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            srcFeesId: e.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            costType: this.feesOption.find(e => e.cname == '货款')? this.feesOption.find(e => e.cname == '货款').id: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          arr.push(form) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          amount += Number(e.amount) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          quantity += Number(e.orderQuantity) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      let getFeeList = this.$refs.feeInfo.submitData().filter(item => item.feesType == 2 && item.submitPay != 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      getFeeList.forEach(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        let form = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          srcOrderno:this.form.orderNo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          itemType:"采购", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          corpsName:item.corpName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          corpId: item.corpId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          srcParentId: this.form.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          currency: 'CNY', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          exchangeRate: '1', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          taxRate: '0', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          accDate: this.form.businesDate, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          srcType: 2, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          tradeType: 'GN', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          optionType: 'GN', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          chargeMember: this.form.chargeMember, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          parentId: this.form.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          amount: item.amount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          costType: item.itemId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          srcFeesId: item.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          quantity: item.quantity, // 数量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          price: item.price, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        arr.push(form) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.applyPaymentList = [...arr] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const price = quantity === 0? 0: Number(amount) / Number(quantity) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.billData = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        belongCompany: this.form.belongCompany, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        srcOrderno:this.form.orderNo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        itemType:"采购", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        corpsName:this.form.corpsName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        corpId:this.form.corpId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        srcParentId: this.form.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        currency: 'CNY', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        exchangeRate: '1', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        taxRate: '0', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        accDate: this.form.businesDate, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        srcType: 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        tradeType: 'GN', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        optionType: 'GN', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        costType: this.feesOption.find(e => e.cname == '货款')? this.feesOption.find(e => e.cname == '货款').id: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        amount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        quantity, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        price, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        unit: '条', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        remarks: this.form.orderRemark, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // this.contactsData.map(e => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //   if (e.submitPay != 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     const form = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       belongCompany: this.form.belongCompany, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       srcOrderno:this.form.orderNo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       itemType:"采购", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       corpsName:this.form.corpsName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       corpId:this.form.corpId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       srcParentId: this.form.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       currency: 'CNY', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       exchangeRate: '1', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       taxRate: '0', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       accDate: this.form.businesDate, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       srcType: 1, // 1.采购or销售主表货款申请 2. 采购or销售-费用明细申请  3.收发货-费用明细 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       tradeType: 'GN', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       optionType: 'GN', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       amount: e.amount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       goodName: e.cname, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       price: e.purchaseAmount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       unit: e.unit, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       quantity: e.orderQuantity, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       srcFeesId: e.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //       costType: this.feesOption.find(e => e.cname == '货款')? this.feesOption.find(e => e.cname == '货款').id: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     arr.push(form) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // let getFeeList = this.$refs.feeInfo.submitData().filter(item => item.feesType == 2 && item.submitPay != 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // getFeeList.forEach(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //   let form = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     srcOrderno:this.form.orderNo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     itemType:"采购", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     corpsName:item.corpName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     corpId: item.corpId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     srcParentId: this.form.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     currency: 'CNY', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     exchangeRate: '1', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     taxRate: '0', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     accDate: this.form.businesDate, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     srcType: 2, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     tradeType: 'GN', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     optionType: 'GN', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     chargeMember: this.form.chargeMember, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     parentId: this.form.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     amount: item.amount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     costType: item.itemId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     srcFeesId: item.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     quantity: item.quantity, // 数量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     price: item.price, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //   arr.push(form) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // this.applyPaymentList = [...arr] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if(bool){ //申请货款 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // this.billData.srcId = -1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 |