Qukatie vor 2 Jahren
Ursprung
Commit
4639341231

+ 63 - 5
src/views/exportTrade/customerInquiry/components/goodsInfo.vue

@@ -529,7 +529,7 @@ export default {
                     row.cname = e.cname;
                     row.ename = e.ename;
                     row.priceCategory = e.goodsTypeName;
-                    row.purchaseCost = costCal(e.outFactoryPrice, e.taxRate);
+                    row.purchaseCost = costCal(e.price, e.taxRate);
                     row.purchaseAmount = e.purchaseAmount;
                     row.itemProp = null;
                     row.remarksOne = null;
@@ -542,6 +542,35 @@ export default {
                     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;
@@ -577,7 +606,7 @@ export default {
                     cname: e.cname,
                     ename: e.ename,
                     priceCategory: e.goodsTypeName,
-                    purchaseCost: costCal(e.outFactoryPrice, e.taxRate),
+                    purchaseCost: costCal(e.price, e.taxRate),
                     purchaseAmount: e.purchaseAmount,
                     itemProp: null,
                     remarksOne: null,
@@ -590,10 +619,39 @@ export default {
                     customEight: null,
                     customNine: null,
                     customTen: null,
+                    partsValveName: null,
+                    partsValveValue: null,
+                    partsValveCostPrice: 0,
+                    partsValveSalePrice: 0,
+                    partsCapName: null,
+                    partsCapValue: null,
+                    partsCapCostPrice: 0,
+                    partsCapSalePrice: 0,
+                    partsHandleName: null,
+                    partsHandleValue: null,
+                    partsHandleCostPrice: 0,
+                    partsHandleSalePrice: 0,
+                    partsColourName: null,
+                    partsColourValue: null,
+                    partsColourCostPrice: 0,
+                    partsColourSalePrice: 0,
+                    partsModeName: null,
+                    partsModeValue: null,
+                    partsModeCostPrice: 0,
+                    partsModeSalePrice: 0,
+                    partsAuthenticationName: null,
+                    partsAuthenticationValue: null,
+                    partsAuthenticationCostPrice: 0,
+                    partsAuthenticationSalePrice: 0,
+                    partsOtherName: null,
+                    partsOtherValue: null,
+                    partsOtherCostPrice: 0,
+                    partsOtherSalePrice: 0,
                     corpId: e.corpId,
                     corpName: e.corpCode,
                     itemDescription: e.cnameDescription,
                     partsPrice: 0,
+                    partsCost:0,
                     itemType: e.specs,
                     tradeTerms: null,
                     productPrice: productCal(e.purchaseAmount, 0, this.form.coefficient),
@@ -706,14 +764,14 @@ export default {
                 this.form.totalValue = sum(multiply(e.outFactoryPrice, e.orderQuantity), this.form.totalValue)
             })
             calculationDomesticFees({ ...this.form, orderItemsList: this.data, }).then(res => {
-                this.$confirm("总费用为:"+res.data.data.amount+",单项运费为" + res.data.data.amountF + ",是否继续更新?", {
+                this.$confirm("总费用为:" + res.data.data.amount + ",单项运费为" + res.data.data.amountF + ",是否继续更新?", {
                     confirmButtonText: "确定",
                     cancelButtonText: "取消",
                     type: "warning"
                 }).then(() => {
                     this.data.forEach(e => {
-                        e.shareAmount =multiply(res.data.data.amountF,e.outFactoryPrice) 
-                        e.price = addPrice(e.outFactoryPrice, multiply(res.data.data.amountF,e.outFactoryPrice))
+                        e.shareAmount = multiply(res.data.data.amountF, e.outFactoryPrice)
+                        e.price = addPrice(e.outFactoryPrice, multiply(res.data.data.amountF, e.outFactoryPrice))
                         e.amount = amountCal(
                             addPrice(e.outFactoryPrice, res.data.data.amountF),
                             e.orderQuantity,

+ 8 - 0
src/views/exportTrade/customerInquiry/config/customerContact.json

@@ -279,6 +279,8 @@
             "align": "right",
             "span": 6,
             "disabled": true,
+            "display":false,
+            "hide":true,
             "overHidden": true
         },
         {
@@ -289,6 +291,8 @@
             "align": "right",
             "span": 6,
             "disabled": true,
+            "display":false,
+            "hide":true,
             "overHidden": true
         },
         {
@@ -299,6 +303,8 @@
             "align": "right",
             "span": 6,
             "disabled": true,
+            "display":false,
+            "hide":true,
             "overHidden": true
         },
         {
@@ -327,6 +333,8 @@
             "width": 200,
             "span": 6,
             "disabled": true,
+            "display":false,
+            "hide":true,
             "overHidden": true
         },
         {

+ 84 - 26
src/views/exportTrade/salesContract/components/goodsInfo.vue

@@ -522,7 +522,7 @@ export default {
           row.cname = e.cname;
           row.ename = e.ename;
           row.priceCategory = e.goodsTypeName;
-          row.purchaseCost = costCal(e.outFactoryPrice, e.taxRate);
+          row.purchaseCost = costCal(e.price, e.taxRate);
           row.purchaseAmount = e.purchaseAmount;
           row.itemProp = null;
           row.remarksOne = null;
@@ -535,6 +535,35 @@ export default {
           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;
@@ -572,7 +601,7 @@ export default {
           cname: e.cname,
           ename: e.ename,
           priceCategory: e.goodsTypeName,
-          purchaseCost: costCal(e.outFactoryPrice, e.taxRate),
+          purchaseCost: costCal(e.price, e.taxRate),
           purchaseAmount: e.purchaseAmount,
           itemProp: null,
           remarksOne: null,
@@ -585,10 +614,39 @@ export default {
           customEight: null,
           customNine: null,
           customTen: null,
+          partsValveName: null,
+          partsValveValue: null,
+          partsValveCostPrice: 0,
+          partsValveSalePrice: 0,
+          partsCapName: null,
+          partsCapValue: null,
+          partsCapCostPrice: 0,
+          partsCapSalePrice: 0,
+          partsHandleName: null,
+          partsHandleValue: null,
+          partsHandleCostPrice: 0,
+          partsHandleSalePrice: 0,
+          partsColourName: null,
+          partsColourValue: null,
+          partsColourCostPrice: 0,
+          partsColourSalePrice: 0,
+          partsModeName: null,
+          partsModeValue: null,
+          partsModeCostPrice: 0,
+          partsModeSalePrice: 0,
+          partsAuthenticationName: null,
+          partsAuthenticationValue: null,
+          partsAuthenticationCostPrice: 0,
+          partsAuthenticationSalePrice: 0,
+          partsOtherName: null,
+          partsOtherValue: null,
+          partsOtherCostPrice: 0,
+          partsOtherSalePrice: 0,
           corpId: e.corpId,
           corpName: e.corpCode,
           itemDescription: e.cnameDescription,
           partsPrice: 0,
+          partsCost: 0,
           itemType: e.specs,
           tradeTerms: null,
           productPrice: productCal(e.purchaseAmount, 0, this.form.coefficient),
@@ -686,30 +744,30 @@ export default {
         this.form.totalValue = sum(multiply(e.outFactoryPrice, e.orderQuantity), this.form.totalValue)
       })
       calculationDomesticFees({ ...this.form, orderItemsList: this.data, }).then(res => {
-                this.$confirm("总费用为:"+res.data.data.amount+",单项运费为" + res.data.data.amountF + ",是否继续更新?", {
-                    confirmButtonText: "确定",
-                    cancelButtonText: "取消",
-                    type: "warning"
-                }).then(() => {
-                    this.data.forEach(e => {
-                        e.shareAmount =multiply(res.data.data.amountF,e.outFactoryPrice) 
-                        e.price = addPrice(e.outFactoryPrice, multiply(res.data.data.amountF,e.outFactoryPrice))
-                        e.amount = amountCal(
-                            addPrice(e.outFactoryPrice, res.data.data.amountF),
-                            e.orderQuantity,
-                            e.freight,
-                            e.insurance,
-                            e.discount
-                        );
-                        e.itemMargin = grossProfitCal(
-                            e.purchaseAmount,
-                            e.partsPrice,
-                            e.outFactoryPrice,
-                            this.form.exchangeRate
-                        );
-                    })
-                });
-            })
+        this.$confirm("总费用为:" + res.data.data.amount + ",单项运费为" + res.data.data.amountF + ",是否继续更新?", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(() => {
+          this.data.forEach(e => {
+            e.shareAmount = multiply(res.data.data.amountF, e.outFactoryPrice)
+            e.price = addPrice(e.outFactoryPrice, multiply(res.data.data.amountF, e.outFactoryPrice))
+            e.amount = amountCal(
+              addPrice(e.outFactoryPrice, res.data.data.amountF),
+              e.orderQuantity,
+              e.freight,
+              e.insurance,
+              e.discount
+            );
+            e.itemMargin = grossProfitCal(
+              e.purchaseAmount,
+              e.partsPrice,
+              e.outFactoryPrice,
+              this.form.exchangeRate
+            );
+          })
+        });
+      })
     },
     khEdit(status) {
       if (status == 'cname') {

+ 8 - 0
src/views/exportTrade/salesContract/config/customerContact.json

@@ -284,6 +284,8 @@
             "align": "right",
             "span": 6,
             "disabled": true,
+            "display":false,
+            "hide":true,
             "overHidden": true
         },
         {
@@ -294,6 +296,8 @@
             "align": "right",
             "span": 6,
             "disabled": true,
+            "display":false,
+            "hide":true,
             "overHidden": true
         },
         {
@@ -304,6 +308,8 @@
             "align": "right",
             "span": 6,
             "disabled": true,
+            "display":false,
+            "hide":true,
             "overHidden": true
         },
         {
@@ -332,6 +338,8 @@
             "width": 200,
             "span": 6,
             "disabled": true,
+            "display":false,
+            "hide":true,
             "overHidden": true
         },
         {