qukaidi 4 年之前
父節點
當前提交
41075745a6

+ 1 - 9
src/views/Warehousing/cargoClearance/AddOrUpdate.vue

@@ -205,10 +205,7 @@
               maxlength="9"
               laceholder="计划件数"
               :disabled="browseStatus || current !== before"
-              @change="tfQty"
-            >
-              <template slot="append">{{ tfQtynum }}吨</template>
-            </el-input>
+              />
           </el-form-item>
         </el-col>
         <el-col :span="8">
@@ -3209,7 +3206,6 @@ export default {
       unloadModes: [],
       detailsHidden2: true,
       dataShowcar: null,
-      tfQtynum: 0,
       tfNetweightnum: 0,
       tfGrossweightnum: 0,
     };
@@ -3344,9 +3340,6 @@ export default {
         orgStorageDate: null,
       };
     },
-    tfQty(row) {
-      this.tfQtynum = (row / 1000).toFixed(2);
-    },
     tfNetweight(row) {
       this.tfNetweightnum = (row / 1000).toFixed(2);
     },
@@ -4042,7 +4035,6 @@ export default {
         this.$set(this.form, "fBstifime", Date.parse(this.form.fBstime));
         this.$set(this.form, "createTime", Date.parse(this.form.createTime));
         this.$set(this.form, "fFeetUnit", this.form.fFeetunit);
-        this.tfQtynum = (this.form.fPlanqty / 1000).toFixed(2);
         this.tfNetweightnum = (this.form.fPlannetweight / 1000).toFixed(2);
         this.tfGrossweightnum = (this.form.fPlangrossweight / 1000).toFixed(2);
         if (this.form.fCartype || this.form.fCartype == 0) {

+ 8 - 5
src/views/Warehousing/components/upLoad.vue

@@ -23,7 +23,6 @@
       :data="relevantAttachments"
       ref="table"
       tooltip-effect="dark"
-      border
       stripe
       style="width: 100%"
       height="150"
@@ -33,7 +32,6 @@
         prop="fName"
         header-align="center"
         align="center"
-        width="250px"
         label="附件名称"
       >
         <template slot-scope="scope">
@@ -49,7 +47,6 @@
         prop="createBy"
         header-align="center"
         align="center"
-        width="250px"
         label="上传人"
       >
         <template slot-scope="scope">
@@ -82,7 +79,6 @@
         prop="fUrl"
         header-align="center"
         align="center"
-        width="300px"
         label="上传附件"
       >
         <template slot-scope="scope">
@@ -115,6 +111,7 @@
         align="center"
         label="操作"
         width="130PX"
+        fixed="right"
       >
         <template slot-scope="scope">
           <el-button
@@ -143,6 +140,10 @@ export default {
       type: String,
       default: null,
     },
+    browseStatus:{
+      type: Boolean,
+      default: false,
+    }
   },
   data() {
     return {
@@ -150,7 +151,6 @@ export default {
         Authorization: "Bearer " + getToken(),
       },
       uploadImgUrl: process.env.VUE_APP_BASE_API + "/common/upload", // 上传的图片服务器地址
-      browseStatus: false,
     };
   },
   methods: {
@@ -192,6 +192,9 @@ export default {
     },
     createBy(val){
         this.createBy=val
+    },
+    browseStatus(val){
+      this.browseStatus=val
     }
   },
 };

+ 1 - 0
src/views/Warehousing/goodsTransfer/AddOrUpdate.vue

@@ -1911,6 +1911,7 @@ import Cookies from "js-cookie";
 import { getToken } from "@/utils/auth";
 import { addSet, select, resetModule } from "@/api/system/set";
 import draggable from "vuedraggable";
+import upLoad from "../components/upLoad";
 export default {
   name: "inStock",
   props: {

+ 30 - 14
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -249,10 +249,7 @@
               maxlength="9"
               laceholder="计划件数"
               :disabled="browseStatus || current !== before"
-              @change="tfQty"
-            >
-              <template slot="append">{{ tfQtynum }}吨</template>
-            </el-input>
+            />
           </el-form-item>
         </el-col>
         <el-col :span="8">
@@ -1084,6 +1081,7 @@
         <up-load
           :relevantAttachments="relevantAttachments"
           :createBy="form.createBy"
+          :browseStatus="browseStatus"
         ></up-load>
       </el-collapse-item>
 
@@ -1929,7 +1927,10 @@
                   v-input-limit="2"
                   style="width: 100%"
                   placeholder="毛重"
-                />
+                  @change="tfGrossweight2"
+                >
+                  <template slot="append">{{ tfGrossweightnum2 }}吨</template>
+                </el-input>
               </el-form-item>
             </el-col>
             <el-col :span="6">
@@ -1938,8 +1939,11 @@
                   v-model.number="importList.fNetweight"
                   v-input-limit="2"
                   style="width: 100%"
-                  placeholder="毛重"
-                />
+                  placeholder="净重"
+                  @change="tfNetweight2"
+                >
+                  <template slot="append">{{ tfNetweightnum2 }}吨</template>
+                </el-input>
               </el-form-item>
             </el-col>
           </el-row>
@@ -3580,9 +3584,10 @@ export default {
       getRowList: [],
       allCheck: false,
       showSetting: false,
-      tfQtynum: 0,
       tfNetweightnum: 0,
       tfGrossweightnum: 0,
+      tfNetweightnum2: 0,
+      tfGrossweightnum2: 0,
     };
   },
   created() {
@@ -3794,15 +3799,18 @@ export default {
         remark: null,
       };
     },
-    tfQty(row) {
-      this.tfQtynum = (row / 1000).toFixed(2);
-    },
     tfNetweight(row) {
       this.tfNetweightnum = (row / 1000).toFixed(2);
     },
+    tfNetweight2(row) {
+      this.tfNetweightnum2 = (row / 1000).toFixed(2);
+    },
     tfGrossweight(row) {
       this.tfGrossweightnum = (row / 1000).toFixed(2);
     },
+    tfGrossweight2(row) {
+      this.tfGrossweightnum2 = (row / 1000).toFixed(2);
+    },
     //列设置全选
     allChecked() {
       if (this.allCheck == true) {
@@ -4231,7 +4239,6 @@ export default {
           Date.parse(this.form.freeContainerDate)
         );
         this.$set(this.form, "fFeetUnit", this.form.fFeetunit);
-        this.tfQtynum = (this.form.fPlanqty / 1000).toFixed(2);
         this.tfNetweightnum = (this.form.fPlannetweight / 1000).toFixed(2);
         this.tfGrossweightnum = (this.form.fPlangrossweight / 1000).toFixed(2);
         if (this.form.fTrademodeid) {
@@ -4721,7 +4728,13 @@ export default {
               return prev;
             }
           }, 0);
-          sums[index] = sums[index].toFixed(2);
+          if (column.property === "fGrossweight") {
+            sums[index] = (sums[index] / 1000).toFixed(2) + "吨";
+          } else if (column.property === "fNetweight") {
+            sums[index] = (sums[index] / 1000).toFixed(2) + "吨";
+          } else {
+            sums[index] = sums[index].toFixed(2);
+          }
         }
       });
       this.sums = sums;
@@ -4740,7 +4753,6 @@ export default {
         if (
           column.property === "fUnitprice" ||
           column.property === "fAmount" ||
-          column.property === "fQty" ||
           column.property === "fQty"
         ) {
           sums[index] = values.reduce((prev, curr) => {
@@ -4763,9 +4775,11 @@ export default {
       this.importList.fNetweight = Number(
         (this.importList.fQty * Num1).toFixed(2)
       );
+      this.tfNetweightnum2 = (this.importList.fNetweight / 1000).toFixed(2);
       this.importList.fGrossweight = Number(
         (this.importList.fQty * Num2).toFixed(2)
       );
+      this.tfGrossweightnum2 = (this.importList.fGrossweight / 1000).toFixed(2);
     },
     imporComputer() {
       this.playcomputer();
@@ -5019,6 +5033,8 @@ export default {
         this.fWarehouseidOptions = response.data;
       });
       this.allfPlanqty += row.fQty;
+      this.tfNetweightnum2 = (row.fNetweight / 1000).toFixed(2);
+      this.tfGrossweightnum2 = (row.fGrossweight / 1000).toFixed(2);
       row.fBsdate = new Date(row.fBsdate).getTime();
       row.fBusinessType = row.fBusinessType.toString();
       row.fCntrtype = Number(row.fCntrtype);

+ 2 - 2
src/views/Warehousing/inStock/index.vue

@@ -876,10 +876,10 @@ export default {
             }
           }, 0);
           if (column.property === "fGrossweight") {
-            sums[index] = sums[index].toFixed(2) + "吨";
+            sums[index] = (sums[index] / 1000).toFixed(2) + "吨";
           }
           if (column.property === "fNetweight") {
-            sums[index] = sums[index].toFixed(2) + "吨";
+            sums[index] = (sums[index] / 1000).toFixed(2) + "吨";
           }
           if (column.property === "fQty") {
             sums[index] = sums[index].toFixed(2);

+ 10 - 11
src/views/Warehousing/outStock/AddOrUpdate.vue

@@ -182,10 +182,7 @@
               maxlength="9"
               laceholder="计划件数"
               :disabled="browseStatus || current !== before"
-              @change="tfQty"
-            >
-              <template slot="append">{{ tfQtynum }}吨</template>
-            </el-input>
+            />
           </el-form-item>
         </el-col>
         <el-col :span="8">
@@ -2848,6 +2845,7 @@ import UploadFile from "@/components/Uploadfile";
 import Cookies from "js-cookie";
 import { getToken } from "@/utils/auth";
 import { addSet, select, resetModule } from "@/api/system/set";
+import upLoad from "../components/upLoad";
 import draggable from "vuedraggable";
 export default {
   name: "inStock",
@@ -2867,6 +2865,7 @@ export default {
     AddOrUpdate,
     ApprovalComments,
     draggable,
+    upLoad
   },
   data() {
     return {
@@ -3305,7 +3304,6 @@ export default {
       detailsHidden2: true,
       unloadModes: [],
       dataShowcar: null,
-      tfQtynum: 0,
       tfNetweightnum: 0,
       tfGrossweightnum: 0,
     };
@@ -3462,9 +3460,6 @@ export default {
         orgStorageDate: null,
       };
     },
-    tfQty(row) {
-      this.tfQtynum = (row / 1000).toFixed(2);
-    },
     tfNetweight(row) {
       this.tfNetweightnum = (row / 1000).toFixed(2);
     },
@@ -4118,7 +4113,6 @@ export default {
         this.$set(this.form, "fBstifime", Date.parse(this.form.fBstime));
         this.$set(this.form, "createTime", Date.parse(this.form.createTime));
         this.$set(this.form, "fFeetUnit", this.form.fFeetunit);
-          this.tfQtynum = (this.form.fPlanqty / 1000).toFixed(2);
         this.tfNetweightnum = (this.form.fPlannetweight / 1000).toFixed(2);
         this.tfGrossweightnum = (this.form.fPlangrossweight / 1000).toFixed(2);
         if (this.form.fCartype || this.form.fCartype == 0) {
@@ -4575,7 +4569,13 @@ export default {
               return prev;
             }
           }, 0);
-          sums[index] = sums[index].toFixed(2);
+           if (column.property === "fGrossweight") {
+            sums[index] = (sums[index] / 1000).toFixed(2) + "吨";
+          } else if (column.property === "fNetweight") {
+            sums[index] = (sums[index] / 1000).toFixed(2) + "吨";
+          } else {
+            sums[index] = sums[index].toFixed(2);
+          }
         }
       });
       this.sums = sums;
@@ -4594,7 +4594,6 @@ export default {
         if (
           column.property === "fUnitprice" ||
           column.property === "fAmount" ||
-          column.property === "fQty" ||
           column.property === "fQty"
         ) {
           sums[index] = values.reduce((prev, curr) => {

+ 2 - 9
src/views/Warehousing/stockTransfer/AddOrUpdate.vue

@@ -205,10 +205,7 @@
               maxlength="9"
               laceholder="计划件数"
               :disabled="browseStatus || current !== before"
-              @change="tfQty"
-            >
-              <template slot="append">{{ tfQtynum }}吨</template>
-            </el-input>
+              />
           </el-form-item>
         </el-col>
         <el-col :span="8">
@@ -3051,6 +3048,7 @@ import UploadFile from "@/components/Uploadfile";
 import Cookies from "js-cookie";
 import { getToken } from "@/utils/auth";
 import { addSet, select, resetModule } from "@/api/system/set";
+import upLoad from "../components/upLoad";
 import draggable from "vuedraggable";
 export default {
   name: "inStock",
@@ -3516,7 +3514,6 @@ export default {
       unloadModes: [],
       detailsHidden2: true,
       dataShowcar: null,
-      tfQtynum: 0,
       tfNetweightnum: 0,
       tfGrossweightnum: 0,
     };
@@ -3651,9 +3648,6 @@ export default {
         orgStorageDate: null,
       };
     },
-    tfQty(row) {
-      this.tfQtynum = (row / 1000).toFixed(2);
-    },
     tfNetweight(row) {
       this.tfNetweightnum = (row / 1000).toFixed(2);
     },
@@ -4349,7 +4343,6 @@ export default {
         this.$set(this.form, "fBstifime", Date.parse(this.form.fBstime));
         this.$set(this.form, "createTime", Date.parse(this.form.createTime));
         this.$set(this.form, "fFeetUnit", this.form.fFeetunit);
-        this.tfQtynum = (this.form.fPlanqty / 1000).toFixed(2);
         this.tfNetweightnum = (this.form.fPlannetweight / 1000).toFixed(2);
         this.tfGrossweightnum = (this.form.fPlangrossweight / 1000).toFixed(2);
         if (this.form.fCartype || this.form.fCartype == 0) {