| 
					
				 | 
			
			
				@@ -45,13 +45,23 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <JDictSelectTag 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   v-model:value="formData.busynessType" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   placeholder="请选择" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  dictCode="	busyness_type" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  dictCode="busyness_type" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   style="width: 100%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   :disabled="notAllowEdit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </a-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </a-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-col :span="12"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <a-form-item 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                label="购方(buyer)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                v-bind="validateInfos.customerName" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                id="saleInvoiceForm-customerName" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                name="invoiceHeader" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <a-input v-model:value="formData.customerName" placeholder="请输入" allow-clear disabled /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </a-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </a-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <!-- <a-col :span="12"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <a-form-item 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 label="购方(buyer)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 v-bind="validateInfos.customer" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -72,7 +82,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   disabled 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </a-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </a-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </a-col> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-col :span="12"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <a-form-item 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 label="购方税号(buyer's tax number)" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -573,39 +583,66 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       async function addCommission(data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var arrCommissionSon = await queryCommissionDataById(data[0].id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        arrCommissionSon.map((item) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          item.sourceId = item.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          item.quantity = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          item.taxPrice = item.commission && item.commission !== '' ? item.commission : 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          item.taxMoney = item.commission && item.commission !== '' ? item.commission : 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          //暂无税率字段,设置默认为0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          item.taxRate = item.taxRate ? item.taxRate : 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          item.taxAmount = ((item.taxMoney * item.taxRate) / 100).toFixed(4); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          item.sourceType = '佣金业务'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // var arrCommissionSon = await queryCommissionDataById(data[0].id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var price = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var billCode = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        data.map((item) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if(billCode == "" || billCode == null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            billCode = item.billCode; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            billCode = billCode+","+item.billCode; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          price = price+item.commission; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // arrCommissionSon.map((item) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   // item.sourceId = item.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   // item.quantity = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   // item.taxPrice = item.commission && item.commission !== '' ? item.commission : 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   // item.taxMoney = item.commission && item.commission !== '' ? item.commission : 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   // //暂无税率字段,设置默认为0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   // item.taxRate = item.taxRate ? item.taxRate : 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   // item.taxAmount = ((item.taxMoney * item.taxRate) / 100).toFixed(4); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   // item.sourceType = '佣金业务'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   price = price+item.commission && item.commission !== '' ? item.commission : 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var detailsValue={}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        detailsValue.productId='1909891194335694849'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        detailsValue.productCode='PA00003438'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        detailsValue.chineseName='HANDLING CHARGE'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        detailsValue.englishName='HANDLING CHARGE'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        detailsValue.quantity=1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        detailsValue.taxPrice = price.toFixed(4); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        detailsValue.taxMoney = price.toFixed(4); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //暂无税率字段,设置默认为0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        detailsValue.taxRate = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        detailsValue.taxAmount = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        detailsValue.sourceType = '佣金业务'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         notAllowEdit.value = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var xTable = saleInvoiceDetailsTableRef.value!.getXTable(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        var arrSonFormCommission = xTable.data.concat(arrCommissionSon); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var arrSonFormCommission = xTable.data.concat(detailsValue); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         saleInvoiceDetailsTable.dataSource = arrSonFormCommission; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-       console.log("========================"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-       console.log(data[0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-       console.log(data[0].customerId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       // console.log("========================"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       // console.log(data[0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       // console.log(data[0].supplierId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       // console.log(data[0].supplierName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         formData.project = '';//data[0].project; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         formData.projectName = '';//data[0].projectName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        formData.customer = data[0].customerId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        formData.customerName = data[0].customerName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        formData.sourceCode2 = data[0].billCode; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        formData.customer = data[0].supplierId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        formData.customerName = data[0].supplierName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        formData.sourceCode2 = billCode; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         formData.invoiceHeader = data[0].invoiceHeader; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         formData.invoiceAddress = data[0].invoiceAddress; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         formData.currency = data[0].currency; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         formData.busynessType = '佣金业务'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        getCustomerOptions({ pageSize: -1, id: data[0].customerId }).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          formData.buyerTaxNumber = res.records[0].dutyParagraph; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          formData.buyerTelphone = res.records[0].phone; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          formData.buyerAddress = res.records[0].invoiceAddress; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // getCustomerOptions({ pageSize: -1, id: data[0].customerId }).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   formData.buyerTaxNumber = res.records[0].dutyParagraph; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   formData.buyerTelphone = res.records[0].phone; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   formData.buyerAddress = res.records[0].invoiceAddress; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       async function addSonList(data) { 
			 |