|  | @@ -553,83 +553,83 @@ export default {
 | 
	
		
			
				|  |  |              this.$refs.crud.rowAdd()
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          cnameChange(row) {
 | 
	
		
			
				|  |  | -            this.upDataOption()
 | 
	
		
			
				|  |  | -            this.goodsoptions.forEach(e => {
 | 
	
		
			
				|  |  | -                if (e.itemId == row.itemId) {
 | 
	
		
			
				|  |  | -                    row.itemId = e.itemId;
 | 
	
		
			
				|  |  | -                    row.code = e.code;
 | 
	
		
			
				|  |  | -                    row.cname = e.cname;
 | 
	
		
			
				|  |  | -                    row.ename = e.ename;
 | 
	
		
			
				|  |  | -                    row.priceCategory = e.goodsTypeName;
 | 
	
		
			
				|  |  | -                    row.purchaseCost = costCal(e.price, e.taxRate);
 | 
	
		
			
				|  |  | -                    row.purchaseAmount = e.purchaseAmount;
 | 
	
		
			
				|  |  | -                    row.itemProp = null;
 | 
	
		
			
				|  |  | -                    row.remarksOne = null;
 | 
	
		
			
				|  |  | -                    row.customTwo = null;
 | 
	
		
			
				|  |  | -                    row.customThree = null;
 | 
	
		
			
				|  |  | -                    row.customFour = null;
 | 
	
		
			
				|  |  | -                    row.customFive = null;
 | 
	
		
			
				|  |  | -                    row.customSix = null;
 | 
	
		
			
				|  |  | -                    row.customSeven = null;
 | 
	
		
			
				|  |  | -                    row.customEight = null;
 | 
	
		
			
				|  |  | -                    row.customNine = null;
 | 
	
		
			
				|  |  | -                    row.customTen = null;
 | 
	
		
			
				|  |  | -                    row.partsValveName = null;
 | 
	
		
			
				|  |  | -                    row.partsValveValue = null;
 | 
	
		
			
				|  |  | -                    row.partsValveCostPrice = 0;
 | 
	
		
			
				|  |  | -                    row.partsValveSalePrice = 0;
 | 
	
		
			
				|  |  | -                    row.partsCapName = null;
 | 
	
		
			
				|  |  | -                    row.partsCapValue = null;
 | 
	
		
			
				|  |  | -                    row.partsCapCostPrice = 0;
 | 
	
		
			
				|  |  | -                    row.partsCapSalePrice = 0;
 | 
	
		
			
				|  |  | -                    row.partsHandleName = null;
 | 
	
		
			
				|  |  | -                    row.partsHandleValue = null;
 | 
	
		
			
				|  |  | -                    row.partsHandleCostPrice = 0;
 | 
	
		
			
				|  |  | -                    row.partsHandleSalePrice = 0;
 | 
	
		
			
				|  |  | -                    row.partsColourName = null;
 | 
	
		
			
				|  |  | -                    row.partsColourValue = null;
 | 
	
		
			
				|  |  | -                    row.partsColourCostPrice = 0;
 | 
	
		
			
				|  |  | -                    row.partsColourSalePrice = 0;
 | 
	
		
			
				|  |  | -                    row.partsModeName = null;
 | 
	
		
			
				|  |  | -                    row.partsModeValue = null;
 | 
	
		
			
				|  |  | -                    row.partsModeCostPrice = 0;
 | 
	
		
			
				|  |  | -                    row.partsModeSalePrice = 0;
 | 
	
		
			
				|  |  | -                    row.partsAuthenticationName = null;
 | 
	
		
			
				|  |  | -                    row.partsAuthenticationValue = null;
 | 
	
		
			
				|  |  | -                    row.partsAuthenticationCostPrice = 0;
 | 
	
		
			
				|  |  | -                    row.partsAuthenticationSalePrice = 0;
 | 
	
		
			
				|  |  | -                    row.partsOtherName = null;
 | 
	
		
			
				|  |  | -                    row.partsOtherValue = null;
 | 
	
		
			
				|  |  | -                    row.partsOtherCostPrice = 0;
 | 
	
		
			
				|  |  | -                    row.partsOtherSalePrice = 0;
 | 
	
		
			
				|  |  | -                    row.partsCost = 0;
 | 
	
		
			
				|  |  | -                    row.corpId = e.corpId;
 | 
	
		
			
				|  |  | -                    row.corpName = e.corpCode;
 | 
	
		
			
				|  |  | -                    row.itemDescription = e.cnameDescription;
 | 
	
		
			
				|  |  | -                    row.partsPrice = 0;
 | 
	
		
			
				|  |  | -                    row.itemType = e.specs;
 | 
	
		
			
				|  |  | -                    row.tradeTerms = null;
 | 
	
		
			
				|  |  | -                    row.productPrice = productCal(e.purchaseAmount, 0, this.form.coefficient);
 | 
	
		
			
				|  |  | -                    row.outFactoryPrice = sellingCal(productCal(e.purchaseAmount, 0, this.form.coefficient), this.form.exchangeRate);
 | 
	
		
			
				|  |  | -                    row.shareAmount = 0;
 | 
	
		
			
				|  |  | -                    row.internationalAmount = 0;
 | 
	
		
			
				|  |  | -                    row.orderQuantity = 1;
 | 
	
		
			
				|  |  | -                    row.insurance = 0;
 | 
	
		
			
				|  |  | -                    row.freight = 0;
 | 
	
		
			
				|  |  | -                    row.discount = null;
 | 
	
		
			
				|  |  | -                    row.price = sellingCal(productCal(e.purchaseAmount, 0, this.form.coefficient), this.form.exchangeRate);
 | 
	
		
			
				|  |  | -                    row.amount = sellingCal(productCal(e.purchaseAmount, 0, this.form.coefficient), this.form.exchangeRate);
 | 
	
		
			
				|  |  | -                    row.taxRate = 0;
 | 
	
		
			
				|  |  | -                    row.unit = e.unit;
 | 
	
		
			
				|  |  | -                    row.itemMargin = grossProfitCal(e.purchaseAmount, 0, sellingCal(productCal(e.purchaseAmount, 0, this.form.coefficient), this.form.exchangeRate), this.form.exchangeRate);
 | 
	
		
			
				|  |  | -                    row.partsDescribe = null;
 | 
	
		
			
				|  |  | -                    row.remarks = null;
 | 
	
		
			
				|  |  | -                    row.exchangeRate = this.form.exchangeRate;
 | 
	
		
			
				|  |  | -                    row.productRemark = e.ename;
 | 
	
		
			
				|  |  | -                    row.attributeList = this.getAttribute(e.goodsSpecificationList);
 | 
	
		
			
				|  |  | -                    row.referrerReason = e.referrerReason
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -            })
 | 
	
		
			
				|  |  | +          this.upDataOption()
 | 
	
		
			
				|  |  | +          for (let e of this.goodsoptions) {
 | 
	
		
			
				|  |  | +             if (e.itemId == row.itemId) {
 | 
	
		
			
				|  |  | +              row.itemId = e.itemId;
 | 
	
		
			
				|  |  | +              row.code = e.code;
 | 
	
		
			
				|  |  | +              row.cname = e.cname;
 | 
	
		
			
				|  |  | +              row.ename = e.ename;
 | 
	
		
			
				|  |  | +              row.priceCategory = e.goodsTypeName;
 | 
	
		
			
				|  |  | +              row.purchaseCost = costCal(e.price, e.taxRate);
 | 
	
		
			
				|  |  | +              row.purchaseAmount = e.purchaseAmount;
 | 
	
		
			
				|  |  | +              row.itemProp = null;
 | 
	
		
			
				|  |  | +              row.remarksOne = null;
 | 
	
		
			
				|  |  | +              row.customTwo = null;
 | 
	
		
			
				|  |  | +              row.customThree = null;
 | 
	
		
			
				|  |  | +              row.customFour = null;
 | 
	
		
			
				|  |  | +              row.customFive = null;
 | 
	
		
			
				|  |  | +              row.customSix = null;
 | 
	
		
			
				|  |  | +              row.customSeven = null;
 | 
	
		
			
				|  |  | +              row.customEight = null;
 | 
	
		
			
				|  |  | +              row.customNine = null;
 | 
	
		
			
				|  |  | +              row.customTen = null;
 | 
	
		
			
				|  |  | +              row.partsValveName = null;
 | 
	
		
			
				|  |  | +              row.partsValveValue = null;
 | 
	
		
			
				|  |  | +              row.partsValveCostPrice = 0;
 | 
	
		
			
				|  |  | +              row.partsValveSalePrice = 0;
 | 
	
		
			
				|  |  | +              row.partsCapName = null;
 | 
	
		
			
				|  |  | +              row.partsCapValue = null;
 | 
	
		
			
				|  |  | +              row.partsCapCostPrice = 0;
 | 
	
		
			
				|  |  | +              row.partsCapSalePrice = 0;
 | 
	
		
			
				|  |  | +              row.partsHandleName = null;
 | 
	
		
			
				|  |  | +              row.partsHandleValue = null;
 | 
	
		
			
				|  |  | +              row.partsHandleCostPrice = 0;
 | 
	
		
			
				|  |  | +              row.partsHandleSalePrice = 0;
 | 
	
		
			
				|  |  | +              row.partsColourName = null;
 | 
	
		
			
				|  |  | +              row.partsColourValue = null;
 | 
	
		
			
				|  |  | +              row.partsColourCostPrice = 0;
 | 
	
		
			
				|  |  | +              row.partsColourSalePrice = 0;
 | 
	
		
			
				|  |  | +              row.partsModeName = null;
 | 
	
		
			
				|  |  | +              row.partsModeValue = null;
 | 
	
		
			
				|  |  | +              row.partsModeCostPrice = 0;
 | 
	
		
			
				|  |  | +              row.partsModeSalePrice = 0;
 | 
	
		
			
				|  |  | +              row.partsAuthenticationName = null;
 | 
	
		
			
				|  |  | +              row.partsAuthenticationValue = null;
 | 
	
		
			
				|  |  | +              row.partsAuthenticationCostPrice = 0;
 | 
	
		
			
				|  |  | +              row.partsAuthenticationSalePrice = 0;
 | 
	
		
			
				|  |  | +              row.partsOtherName = null;
 | 
	
		
			
				|  |  | +              row.partsOtherValue = null;
 | 
	
		
			
				|  |  | +              row.partsOtherCostPrice = 0;
 | 
	
		
			
				|  |  | +              row.partsOtherSalePrice = 0;
 | 
	
		
			
				|  |  | +              row.partsCost = 0;
 | 
	
		
			
				|  |  | +              row.corpId = e.corpId;
 | 
	
		
			
				|  |  | +              row.corpName = e.corpCode;
 | 
	
		
			
				|  |  | +              row.itemDescription = e.cnameDescription;
 | 
	
		
			
				|  |  | +              row.partsPrice = 0;
 | 
	
		
			
				|  |  | +              row.itemType = e.specs;
 | 
	
		
			
				|  |  | +              row.tradeTerms = null;
 | 
	
		
			
				|  |  | +              row.productPrice = productCal(e.purchaseAmount, 0, this.form.coefficient);
 | 
	
		
			
				|  |  | +              row.outFactoryPrice = sellingCal(productCal(e.purchaseAmount, 0, this.form.coefficient), this.form.exchangeRate);
 | 
	
		
			
				|  |  | +              row.shareAmount = 0;
 | 
	
		
			
				|  |  | +              row.internationalAmount = 0;
 | 
	
		
			
				|  |  | +              row.orderQuantity = 1;
 | 
	
		
			
				|  |  | +              row.insurance = 0;
 | 
	
		
			
				|  |  | +              row.freight = 0;
 | 
	
		
			
				|  |  | +              row.discount = null;
 | 
	
		
			
				|  |  | +              row.price = sellingCal(productCal(e.purchaseAmount, 0, this.form.coefficient), this.form.exchangeRate);
 | 
	
		
			
				|  |  | +              row.amount = sellingCal(productCal(e.purchaseAmount, 0, this.form.coefficient), this.form.exchangeRate);
 | 
	
		
			
				|  |  | +              row.taxRate = 0;
 | 
	
		
			
				|  |  | +              row.unit = e.unit;
 | 
	
		
			
				|  |  | +              row.itemMargin = grossProfitCal(e.purchaseAmount, 0, sellingCal(productCal(e.purchaseAmount, 0, this.form.coefficient), this.form.exchangeRate), this.form.exchangeRate);
 | 
	
		
			
				|  |  | +              row.partsDescribe = null;
 | 
	
		
			
				|  |  | +              row.remarks = null;
 | 
	
		
			
				|  |  | +              row.exchangeRate = this.form.exchangeRate;
 | 
	
		
			
				|  |  | +              row.productRemark = e.ename;
 | 
	
		
			
				|  |  | +              row.attributeList = this.getAttribute(e.goodsSpecificationList);
 | 
	
		
			
				|  |  | +              row.referrerReason = e.referrerReason
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          importLibray(rows) {
 | 
	
		
			
				|  |  |              this.upDataOption()
 |