|  | @@ -793,12 +793,12 @@ export default {
 | 
	
		
			
				|  |  |                this.form.exchangeRate
 | 
	
		
			
				|  |  |              );
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  | +          let arr = []
 | 
	
		
			
				|  |  |            res.data.data.fees.forEach(e => {
 | 
	
		
			
				|  |  |              // this.orderFeesList.push({ feesType: 2, ...e, corpId: this.form.corpId, corpName: this.form.corpsName, amount: multiply(e.price, e.quantity) })
 | 
	
		
			
				|  |  | -            if (e.price > 0) {
 | 
	
		
			
				|  |  | -              this.$emit('formGoodstoFees', { feesType: 2, ...e, corpId: this.form.corpId, corpName: this.form.corpsName, amount: multiply(e.price, e.quantity) })
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | +            arr.push({ feesType: 2, ...e, corpId: this.form.corpId, corpName: this.form.corpsName, amount: multiply(e.price, e.quantity), srcType: val == 1 ? '国内费用' : '国外费用' })
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  | +          this.$emit('formGoodstoFees', arr, val == 1 ? '国内费用' : '国外费用')
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |          .finally(() => {
 | 
	
	
		
			
				|  | @@ -972,8 +972,7 @@ export default {
 | 
	
		
			
				|  |  |          let names = []
 | 
	
		
			
				|  |  |          rows.forEach(e => {
 | 
	
		
			
				|  |  |            names.push(e.goodName)
 | 
	
		
			
				|  |  | -          this.goodsForm.partsValveCostPrice = sum(this.goodsForm.partsValveCostPrice, multiply(e.partsCost, e
 | 
	
		
			
				|  |  | -            .goodNumber));
 | 
	
		
			
				|  |  | +          this.goodsForm.partsValveCostPrice = sum(this.goodsForm.partsValveCostPrice, multiply(e.partsCost, e.goodNumber));
 | 
	
		
			
				|  |  |            this.goodsForm.partsValveSalePrice = sum(this.goodsForm.partsValveSalePrice, e.amout);
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          this.goodsForm.partsValveName = names.join(" ")
 | 
	
	
		
			
				|  | @@ -985,8 +984,7 @@ export default {
 | 
	
		
			
				|  |  |          let names = []
 | 
	
		
			
				|  |  |          rows.forEach(e => {
 | 
	
		
			
				|  |  |            names.push(e.goodName)
 | 
	
		
			
				|  |  | -          this.goodsForm.partsCapCostPrice = sum(this.goodsForm.partsCapCostPrice, multiply(e.partsCost, e
 | 
	
		
			
				|  |  | -            .goodNumber));
 | 
	
		
			
				|  |  | +          this.goodsForm.partsCapCostPrice = sum(this.goodsForm.partsCapCostPrice, multiply(e.partsCost, e.goodNumber));
 | 
	
		
			
				|  |  |            this.goodsForm.partsCapSalePrice = sum(this.goodsForm.partsCapSalePrice, e.amout);
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          this.goodsForm.partsCapName = names.join(" ")
 | 
	
	
		
			
				|  | @@ -998,8 +996,7 @@ export default {
 | 
	
		
			
				|  |  |          let names = []
 | 
	
		
			
				|  |  |          rows.forEach(e => {
 | 
	
		
			
				|  |  |            names.push(e.goodName)
 | 
	
		
			
				|  |  | -          this.goodsForm.partsHandleCostPrice = sum(this.goodsForm.partsHandleCostPrice, multiply(e.partsCost, e
 | 
	
		
			
				|  |  | -            .goodNumber));
 | 
	
		
			
				|  |  | +          this.goodsForm.partsHandleCostPrice = sum(this.goodsForm.partsHandleCostPrice, multiply(e.partsCost, e.goodNumber));
 | 
	
		
			
				|  |  |            this.goodsForm.partsHandleSalePrice = sum(this.goodsForm.partsHandleSalePrice, e.amout);
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          this.goodsForm.partsHandleName = names.join(" ")
 | 
	
	
		
			
				|  | @@ -1011,8 +1008,7 @@ export default {
 | 
	
		
			
				|  |  |          let names = []
 | 
	
		
			
				|  |  |          rows.forEach(e => {
 | 
	
		
			
				|  |  |            names.push(e.goodName)
 | 
	
		
			
				|  |  | -          this.goodsForm.partsColourCostPrice = sum(this.goodsForm.partsColourCostPrice, multiply(e.partsCost, e
 | 
	
		
			
				|  |  | -            .goodNumber));
 | 
	
		
			
				|  |  | +          this.goodsForm.partsColourCostPrice = sum(this.goodsForm.partsColourCostPrice, multiply(e.partsCost, e.goodNumber));
 | 
	
		
			
				|  |  |            this.goodsForm.partsColourSalePrice = sum(this.goodsForm.partsColourSalePrice, e.amout);
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          this.goodsForm.partsColourName = names.join(" ")
 | 
	
	
		
			
				|  | @@ -1024,8 +1020,7 @@ export default {
 | 
	
		
			
				|  |  |          let names = []
 | 
	
		
			
				|  |  |          rows.forEach(e => {
 | 
	
		
			
				|  |  |            names.push(e.goodName)
 | 
	
		
			
				|  |  | -          this.goodsForm.partsModeCostPrice = sum(this.goodsForm.partsModeCostPrice, multiply(e.partsCost, e
 | 
	
		
			
				|  |  | -            .goodNumber));
 | 
	
		
			
				|  |  | +          this.goodsForm.partsModeCostPrice = sum(this.goodsForm.partsModeCostPrice, multiply(e.partsCost, e.goodNumber));
 | 
	
		
			
				|  |  |            this.goodsForm.partsModeSalePrice = sum(this.goodsForm.partsModeSalePrice, e.amout);
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          this.goodsForm.partsModeName = names.join(" ")
 | 
	
	
		
			
				|  | @@ -1037,8 +1032,7 @@ export default {
 | 
	
		
			
				|  |  |          let names = []
 | 
	
		
			
				|  |  |          rows.forEach(e => {
 | 
	
		
			
				|  |  |            names.push(e.goodName)
 | 
	
		
			
				|  |  | -          this.goodsForm.partsAuthenticationCostPrice = sum(this.goodsForm.partsAuthenticationCostPrice, multiply(
 | 
	
		
			
				|  |  | -            e.partsCost, e.goodNumber));
 | 
	
		
			
				|  |  | +          this.goodsForm.partsAuthenticationCostPrice = sum(this.goodsForm.partsAuthenticationCostPrice, multiply(e.partsCost, e.goodNumber));
 | 
	
		
			
				|  |  |            this.goodsForm.partsAuthenticationSalePrice = sum(this.goodsForm.partsAuthenticationSalePrice, e.amout);
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          this.goodsForm.partsAuthenticationName = names.join(" ")
 | 
	
	
		
			
				|  | @@ -1050,19 +1044,14 @@ export default {
 | 
	
		
			
				|  |  |          let names = []
 | 
	
		
			
				|  |  |          rows.forEach(e => {
 | 
	
		
			
				|  |  |            names.push(e.goodName)
 | 
	
		
			
				|  |  | -          this.goodsForm.partsOtherCostPrice = sum(this.goodsForm.partsOtherCostPrice, multiply(e.partsCost, e
 | 
	
		
			
				|  |  | -            .goodNumber));
 | 
	
		
			
				|  |  | +          this.goodsForm.partsOtherCostPrice = sum(this.goodsForm.partsOtherCostPrice, multiply(e.partsCost, e.goodNumber));
 | 
	
		
			
				|  |  |            this.goodsForm.partsOtherSalePrice = sum(this.goodsForm.partsOtherSalePrice, e.amout);
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          this.goodsForm.partsOtherName = names.join(" ")
 | 
	
		
			
				|  |  |          this.goodsForm.partsOtherValue = JSON.stringify(rows)
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.goodsForm.partsCost = partSum(this.goodsForm.partsValveCostPrice, this.goodsForm.partsCapCostPrice, this
 | 
	
		
			
				|  |  | -        .goodsForm.partsHandleCostPrice, this.goodsForm.partsColourCostPrice, this.goodsForm.partsModeCostPrice,
 | 
	
		
			
				|  |  | -        this.goodsForm.partsAuthenticationCostPrice, this.goodsForm.partsOtherCostPrice)
 | 
	
		
			
				|  |  | -      this.goodsForm.partsPrice = partSum(this.goodsForm.partsValveSalePrice, this.goodsForm.partsCapSalePrice, this
 | 
	
		
			
				|  |  | -        .goodsForm.partsHandleSalePrice, this.goodsForm.partsColourSalePrice, this.goodsForm.partsModeSalePrice,
 | 
	
		
			
				|  |  | -        this.goodsForm.partsAuthenticationSalePrice, this.goodsForm.partsOtherSalePrice)
 | 
	
		
			
				|  |  | +      this.goodsForm.partsCost = partSum(this.goodsForm.partsValveCostPrice, this.goodsForm.partsCapCostPrice, this.goodsForm.partsHandleCostPrice, this.goodsForm.partsColourCostPrice, this.goodsForm.partsModeCostPrice, this.goodsForm.partsAuthenticationCostPrice, this.goodsForm.partsOtherCostPrice)
 | 
	
		
			
				|  |  | +      this.goodsForm.partsPrice = partSum(this.goodsForm.partsValveSalePrice, this.goodsForm.partsCapSalePrice, this.goodsForm.partsHandleSalePrice, this.goodsForm.partsColourSalePrice, this.goodsForm.partsModeSalePrice, this.goodsForm.partsAuthenticationSalePrice, this.goodsForm.partsOtherSalePrice)
 | 
	
		
			
				|  |  |        // 销售价=(配件采购价格+产品价格)/汇率 *(1+客户FOB系数/100)
 | 
	
		
			
				|  |  |        this.goodsForm.productPrice = productCal(
 | 
	
		
			
				|  |  |          this.goodsForm.purchaseAmount,
 | 
	
	
		
			
				|  | @@ -1073,10 +1062,6 @@ export default {
 | 
	
		
			
				|  |  |          this.goodsForm.productPrice,
 | 
	
		
			
				|  |  |          this.form.exchangeRate
 | 
	
		
			
				|  |  |        );
 | 
	
		
			
				|  |  | -      this.goodsForm.totalValue = sellingCal(
 | 
	
		
			
				|  |  | -        this.goodsForm.outFactoryPrice,
 | 
	
		
			
				|  |  | -        this.goodsForm.orderQuantity,
 | 
	
		
			
				|  |  | -      );
 | 
	
		
			
				|  |  |        this.goodsForm.price = addPrice(
 | 
	
		
			
				|  |  |          this.goodsForm.outFactoryPrice,
 | 
	
		
			
				|  |  |          this.goodsForm.shareAmount,
 | 
	
	
		
			
				|  | @@ -1095,20 +1080,15 @@ export default {
 | 
	
		
			
				|  |  |          this.goodsForm.outFactoryPrice,
 | 
	
		
			
				|  |  |          this.form.exchangeRate
 | 
	
		
			
				|  |  |        );
 | 
	
		
			
				|  |  | -      const names = [this.goodsForm.partsValveName, this.goodsForm.partsCapName, this.goodsForm.partsHandleName, this
 | 
	
		
			
				|  |  | -        .goodsForm.partsColourName, this.goodsForm.partsModeName, this.goodsForm.partsAuthenticationName, this
 | 
	
		
			
				|  |  | -          .goodsForm.partsOtherName
 | 
	
		
			
				|  |  | -      ];
 | 
	
		
			
				|  |  | +      const names = [this.goodsForm.partsModeName, this.goodsForm.partsHandleName, this.goodsForm.partsCapName, this.goodsForm.partsValveName, this.goodsForm.partsColourName, this.goodsForm.partsAuthenticationName, this.goodsForm.partsOtherName];
 | 
	
		
			
				|  |  |        const name = []
 | 
	
		
			
				|  |  |        names.forEach(e => {
 | 
	
		
			
				|  |  |          if (e) {
 | 
	
		
			
				|  |  |            name.push(e)
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  | -      this.goodsForm.partsDescribe = name.join(" ");
 | 
	
		
			
				|  |  | -      // this.data[index].partsPriceDescribe = namePrices.join(";");
 | 
	
		
			
				|  |  | +      this.goodsForm.partsDescribe = name.join("; ");
 | 
	
		
			
				|  |  |        this.goodsForm.productRemark = this.getproductRemark(this.goodsForm)
 | 
	
		
			
				|  |  | -      this.priceChange(this.goodsForm);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      propsChange(row) {
 | 
	
		
			
				|  |  |        const data = {
 | 
	
	
		
			
				|  | @@ -1129,27 +1109,23 @@ export default {
 | 
	
		
			
				|  |  |            arr.push(row[key]);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.goodsForm.itemProp = arr.join(' ')
 | 
	
		
			
				|  |  | +      this.goodsForm.itemProp = arr.join(', ')
 | 
	
		
			
				|  |  | +      this.goodsForm.productRemark = this.getproductRemark(this.goodsForm)
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      editChange(row) {
 | 
	
		
			
				|  |  |        row.productRemark = this.getproductRemark(row)
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getproductRemark(row) {
 | 
	
		
			
				|  |  | -      console.log(row)
 | 
	
		
			
				|  |  |        const ename = row.ename ? row.ename : "";
 | 
	
		
			
				|  |  | -      const itemDescription = row.itemDescription ?
 | 
	
		
			
				|  |  | -        row.itemDescription :
 | 
	
		
			
				|  |  | -        "";
 | 
	
		
			
				|  |  | -      const itemProp = row.itemProp ? row.itemProp : "";
 | 
	
		
			
				|  |  | -      const partsDescribe = row.partsDescribe ? (' ' + row.partsDescribe) : "";
 | 
	
		
			
				|  |  | +      const itemDescription = row.itemDescription
 | 
	
		
			
				|  |  | +        ? row.itemDescription
 | 
	
		
			
				|  |  | +        : "";
 | 
	
		
			
				|  |  | +      const itemProp = row.itemProp ? row.itemProp : ''
 | 
	
		
			
				|  |  | +      const partsDescribe = row.partsDescribe ? row.partsDescribe : ''
 | 
	
		
			
				|  |  |        const productRemark =
 | 
	
		
			
				|  |  | -        ename +
 | 
	
		
			
				|  |  | -        "\n" +
 | 
	
		
			
				|  |  | -        itemProp +
 | 
	
		
			
				|  |  | -        " " +
 | 
	
		
			
				|  |  | -        itemDescription +
 | 
	
		
			
				|  |  | -        " " +
 | 
	
		
			
				|  |  | -        partsDescribe;
 | 
	
		
			
				|  |  | +        ename + " " + itemDescription + "\n" +
 | 
	
		
			
				|  |  | +        itemProp + "\n" +
 | 
	
		
			
				|  |  | +        partsDescribe
 | 
	
		
			
				|  |  |        return productRemark
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      beforeClose(done) {
 |