浏览代码

内贸修改

lichao 3 年之前
父节点
当前提交
a959b4b06a

+ 1 - 0
src/views/businessManagement/deliveryNotice/configuration/advantageProject.json

@@ -1,4 +1,5 @@
 {
+  "align": "center",
   "lazy": true,
   "tip": false,
   "simplePage": true,

+ 1 - 0
src/views/businessManagement/deliveryNotice/configuration/bankOfDeposit.json

@@ -1,4 +1,5 @@
 {
+  "align": "center",
   "lazy": true,
   "addBtnText": "录入明细",
   "tip": false,

+ 1 - 1
src/views/businessManagement/deliveryNotice/configuration/commodity.json

@@ -1,5 +1,5 @@
-
 {
+  "align": "center",
   "height": "auto",
   "calcHeight": 80,
   "tip": false,

+ 1 - 0
src/views/businessManagement/deliveryNotice/configuration/customerContact.json

@@ -1,4 +1,5 @@
 {
+  "align": "center",
   "lazy": true,
   "tip": false,
   "simplePage": true,

+ 1 - 0
src/views/businessManagement/deliveryNotice/configuration/mainList.json

@@ -1,4 +1,5 @@
 {
+  "align": "center",
   "lazy": true,
   "tip": false,
   "addBtnText": "创建单据",

+ 32 - 16
src/views/businessManagement/inventoryAccount/configuration/mainList.json

@@ -25,70 +25,80 @@
       "prop": "code",
       "search": true,
       "index": 1,
-      "width": 120
+      "width": 120,
+      "overHidden": true
     },
     {
       "label": "名称",
       "prop": "cname",
       "search": true,
       "index": 1,
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "花纹",
       "prop": "brandItem",
       "search": true,
       "index": 1,
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "产地",
       "prop": "placeProduction",
       "search": true,
       "index": 1,
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "规格",
       "prop": "typeno",
       "search": true,
       "index": 1,
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "规格1",
       "prop": "typenoOne",
       "search": true,
       "index": 1,
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "规格型号",
       "prop": "itemType",
       "search": true,
       "index": 1,
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "仓库名称",
       "prop": "stockName",
       "search": true,
       "index": 1,
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "供应商",
       "prop": "corpName",
       "search": false,
       "index": 1,
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "品牌",
       "prop": "brand",
       "search": true,
       "index": 1,
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "总库存",
@@ -96,7 +106,8 @@
       "search": false,
       "index": 1,
       "width": 100,
-      "cell": true
+      "cell": true,
+      "overHidden": true
     },
     {
       "label": "内贸锁定",
@@ -104,7 +115,8 @@
       "search": false,
       "index": 1,
       "width": 100,
-      "cell": true
+      "cell": true,
+      "overHidden": true
     },
     {
       "label": "可用库存",
@@ -112,7 +124,8 @@
       "search": false,
       "index": 1,
       "width": 100,
-      "cell": true
+      "cell": true,
+      "overHidden": true
     },
     {
       "label": "创建日期",
@@ -133,21 +146,24 @@
       "prop": "createUserName",
       "search": false,
       "index": 1,
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "更新日期",
       "prop": "updateTime",
       "search": false,
       "index": 1,
-      "width": 100
+      "width": 100,
+      "overHidden": true
     },
     {
       "label": "更新人",
       "prop": "updateUserName",
       "search": false,
       "index": 1,
-      "width": 100
+      "width": 100,
+      "overHidden": true
     }
   ]
 }

+ 1 - 1
src/views/businessManagement/purchaseOrder/configuration/commodity.json

@@ -1,5 +1,5 @@
-
 {
+  "align": "center",
   "height": "auto",
   "calcHeight": 80,
   "tip": false,

+ 1 - 0
src/views/businessManagement/purchaseOrder/configuration/mainList.json

@@ -1,4 +1,5 @@
 {
+  "align": "center",
   "lazy": true,
   "tip": false,
   "addBtnText": "创建单据",

+ 2 - 1
src/views/businessManagement/purchaseOrder/detailsPageEdit.vue

@@ -1436,7 +1436,8 @@ export default {
         taxRate: '0',
         accDate: this.form.businesDate,
         srcType: 1,
-        tradeType: 'GN'
+        tradeType: 'GN',
+        optionType: 'GN'
       }
       if(bool){ //申请货款
         this.billData.srcId = -1

+ 1 - 1
src/views/businessManagement/receipt/configuration/commodity.json

@@ -1,5 +1,5 @@
-
 {
+  "align": "center",
   "height": "auto",
   "calcHeight": 80,
   "tip": false,

+ 1 - 0
src/views/businessManagement/receipt/configuration/mainList.json

@@ -1,4 +1,5 @@
 {
+  "align": "center",
   "lazy": true,
   "tip": false,
   "addBtnText": "创建单据",

+ 1 - 0
src/views/businessManagement/receipt/configuration/mainListCost.json

@@ -1,4 +1,5 @@
 {
+  "align": "center",
   "height": "auto",
   "calcHeight": 80,
   "headerAlign": "center",

+ 1 - 0
src/views/businessManagement/salesOrder/configuration/BuyFree.json

@@ -1,4 +1,5 @@
 {
+  "align": "center",
   "lazy": true,
   "tip": false,
   "menu": false,

+ 1 - 1
src/views/businessManagement/salesOrder/configuration/commodity.json

@@ -1,5 +1,5 @@
-
 {
+  "align": "center",
   "height": "auto",
   "calcHeight": 80,
   "tip": false,

+ 1 - 0
src/views/businessManagement/salesOrder/configuration/mainList.json

@@ -1,4 +1,5 @@
 {
+  "align": "center",
   "height": "auto",
   "addBtnText": "创建单据",
   "lazy": true,

+ 1 - 0
src/views/businessManagement/salesOrder/configuration/mainListCost.json

@@ -1,4 +1,5 @@
 {
+  "align": "center",
   "height": "auto",
   "calcHeight": 80,
   "headerAlign": "center",

+ 1 - 0
src/views/businessManagement/salesOrder/configuration/optionPolicy.json

@@ -1,4 +1,5 @@
 {
+  "align": "center",
   "lazy": true,
   "tip": false,
   "menu": false,

+ 47 - 15
src/views/businessManagement/salesOrder/detailsPageEdit.vue

@@ -1466,6 +1466,7 @@ export default {
     this.$set(this.form, 'predictOceanFreight', 0)
     this.$set(this.form, 'presenterIntegral' , 0)
     this.$set(this.form, 'convertIntegral' , 0)
+    this.$set(this.form, 'paymentType', '预付')
     let date = new Date();
     let year = date.getFullYear();
     let month = date.getMonth() + 1;
@@ -1872,7 +1873,8 @@ export default {
         taxRate: '0',
         accDate: this.form.businesDate,
         srcType: 1,
-        tradeType: 'GN'
+        tradeType: 'GN',
+        optionType: 'GN'
       }
       if(bool){ //申请货款
         this.billData.srcId = -1
@@ -2062,6 +2064,7 @@ export default {
           } else {
             this.$set(this.goodsListSave[item], 'price', '0')
           }
+          this.priceChange(this.goodsListSave[item])
         })
         getPurchasePrice({code: this.goodsListSave[item].code}).then(res => {
           if (res.data.data.length > 0) {
@@ -2125,6 +2128,7 @@ export default {
           } else {
             this.$set(this.tableData[item], 'price', '0')
           }
+          this.priceChange(this.tableData[item])
         })
         getPurchasePrice({code: this.tableData[item].code}).then(res => {
           if (res.data.data.length > 0) {
@@ -2191,7 +2195,6 @@ export default {
     closePolicy() {
       this.treePolicyId = '';
       this.dataPolicy = [];
-      this.policyForm = {};
       this.contactsDataBuyFree = [];
       this.policyData = []
       this.policyDataTwo = []
@@ -2314,6 +2317,9 @@ export default {
           this.$set(list[item], 'cname', list[item].productCategory)
           this.$set(list[item], 'sort', this.maxGoodsNum + 1)
           this.$set(list[item], 'purchaseAmount', list[item].purchasePrice)
+          // 积分
+          this.$set(list[item], 'integralMultiples', 0)
+          this.$set(list[item], 'integral', 0)
 
           if (listLength != 0) {
             this.$set(buyFree[item], 'actualQuantity', 0)
@@ -2324,6 +2330,9 @@ export default {
             this.$set(buyFree[item], 'cname', list[item].productCategory)
             this.$set(buyFree[item], 'sort', this.maxGoodsNum + 2)
             this.$set(buyFree[item], 'purchaseAmount', list[item].purchasePrice)
+            // 积分
+            this.$set(buyFree[item], 'integralMultiples', 0)
+            this.$set(buyFree[item], 'integral', 0)
             this.maxGoodsNum++
           }
           delete list[item].id
@@ -2418,6 +2427,7 @@ export default {
     },
     policyOnLoad(params = {}) {
       // this.policyLoading = true;
+      this.policyForm = {};
       detailList(this.treePolicyId).then(res => {
         this.policyForm = res.data.data
         //特价促销
@@ -2563,16 +2573,6 @@ export default {
           this.$set(this.form, 'orderAmount', 0)
           // 成本价
           let purchaseAmount = 0
-          // 销售金额
-          this.form.orderAmount = 0;
-          // 计算销售金额
-          this.contactsData.forEach(item => {
-            if (item.purchaseAmount) {
-              purchaseAmount += (Number(item.purchaseAmount) * Number(item.orderQuantity)).toFixed(2)
-            }
-            this.form.orderAmount = (Number(this.form.orderAmount) + Number(item.amount)).toFixed(2)
-          })
-          this.computedCost()
           if (this.form.orderAmount && this.form.settlmentAmount) {
             this.$set(this.form, "balanceAmount", (Number(this.form.orderAmount) - Number(this.form.settlmentAmount)).toFixed(2));
           }
@@ -2582,6 +2582,18 @@ export default {
           } else {
             this.form.orderItemsList = this.goodsShowData.concat(this.giftData)
           }
+          // 销售金额
+          this.form.orderAmount = 0;
+          // 计算销售金额
+          this.goodsShowData.forEach(item => {
+            if (item.goodType == 0) {
+              if (item.purchaseAmount) {
+                purchaseAmount += (Number(item.purchaseAmount) * Number(item.orderQuantity)).toFixed(2)
+              }
+              this.form.orderAmount = (Number(this.form.orderAmount) + Number(item.amount)).toFixed(2)
+            }
+          })
+          this.computedCost()
           // 判断订货数量不能小于等于0
           for (let item in this.form.orderItemsList) {
             if (Number(this.form.orderItemsList[item].orderQuantity) <= 0) {
@@ -2667,7 +2679,6 @@ export default {
       this.$set(this.form, 'debitAmount', ((Number(orderAmount) - Number(caseOverPayment)).toFixed(2)))
     },
     quantityChange(row) {
-      console.log(row)
       if (!row.orderQuantity) {
         row.orderQuantity = 0;
       } else {
@@ -2680,9 +2691,12 @@ export default {
       row.integral = (Number(row.orderQuantity) * Number(row.integralMultiples)).toFixed(2)
 
       if (this.goodsActives == 'goods') {
-        // this.$set(this.form, 'presenterIntegral' , 0)
+        // 计算销售金额
+        this.form.orderAmount = 0
+        // 计算赠送积分
         this.form.presenterIntegral = 0;
         this.goodsShowData.forEach(item => {
+          this.form.orderAmount = (Number(this.form.orderAmount) + Number(item.amount)).toFixed(2)
           this.form.presenterIntegral = (Number(this.form.presenterIntegral) + Number(item.integral)).toFixed(2)
         })
       } else {
@@ -2693,12 +2707,18 @@ export default {
       }
     },
     priceChange(row) {
-      console.log(row.price)
       if (!row.price) {
         row.price = 0;
       } else {
         row.amount = (row.price * row.orderQuantity).toFixed(2)
       }
+      if (this.goodsActives == 'goods') {
+        // 计算销售金额
+        this.form.orderAmount = 0
+        this.goodsShowData.forEach(item => {
+          this.form.orderAmount = (Number(this.form.orderAmount) + Number(item.amount)).toFixed(2)
+        })
+      }
     },
     //返回列表
     backToList() {
@@ -2749,6 +2769,18 @@ export default {
         }
       }
     },
+    async resetColumn() {
+      const inSave = await this.delColumnData(
+        this.getColumnName(15),
+        customerContact
+      );
+      if (inSave) {
+        this.$message.success("重置成功");
+        this.option = option;
+        //关闭窗口
+        this.$refs.crud.$refs.dialogColumn.columnBox = false;
+      }
+    },
     returnBack(row) {
       getlistBankBy(row.id).then(res =>{
         this.$set(this.form, 'banks', null)