浏览代码

修改bug

QuKatie 3 年之前
父节点
当前提交
a7841e1b4d
共有 2 个文件被更改,包括 13 次插入5 次删除
  1. 7 0
      src/api/otherFinancial/index.js
  2. 6 5
      src/views/Warehousing/inStock/AddOrUpdate.vue

+ 7 - 0
src/api/otherFinancial/index.js

@@ -55,3 +55,10 @@ export function submit(data) {
         data: data
     })
 }
+// 基础资料
+export function allInformation() {
+    return request({
+        url: '/warehouseBusiness/containerPort/selectBasicInformation',
+        method: 'get',
+    })
+}

+ 6 - 5
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -8678,21 +8678,22 @@ export default {
             this.allfPlanqty = 0;
             this.allfNetweight = 0;
             this.allfQty = 0;
+            console.log(this.Printinglist)
             this.Printinglist.map((e) => {
               if (e.fCntqty) {
-                this.allfCntqty += e.fCntqty;
+                this.allfCntqty += Number(e.fCntqty);
               }
               if (e.fGrossweight) {
-                this.allfGrossweight += e.fGrossweight;
+                this.allfGrossweight += Number(e.fGrossweight);
               }
               if (e.fPlanqty) {
-                this.allfPlanqty += e.fPlanqty;
+                this.allfPlanqty += Number(e.fQty);
               }
               if (e.fNetweight) {
-                this.allfNetweight += e.fNetweight;
+                this.allfNetweight += Number(e.fNetweight);
               }
               if (e.fQty) {
-                this.allfQty += e.fQty;
+                this.allfQty += Number(e.fQty);
               }
               if (e.fBsdate) {
                 // let date = new Date(this.Printinglist[0].fBsdate);