qukaidi 4 年之前
父节点
当前提交
f7b496d045

+ 51 - 21
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -742,6 +742,13 @@
                 @click="saveForm"
                 >保 存</el-button
               >
+              <el-button
+                :disabled="browseStatus || Printinglist.length != 1"
+                type="primary"
+                size="small"
+                @click="addRelevant('copy')"
+                >复制录入</el-button
+              >
             </el-col>
             <el-col style="display: flex; justify-content: flex-end">
               <el-button
@@ -3183,6 +3190,7 @@ export default {
       approVal: false,
       approvalStatus: false,
       doNot: false,
+      stockoi: null,
     };
   },
   created() {
@@ -3209,6 +3217,9 @@ export default {
       this.fStorageTypeOptions = response.data;
       localStorage.setItem("fStorageTypeList", JSON.stringify(response.data));
     });
+    this.getConfigKey("stockoi").then((response) => {
+      this.stockoi = response.msg;
+    });
     listWarehousesss({ fStatus: 0, delFlag: 0 }).then((response) => {
       this.warehouseOptions = response.rows;
     });
@@ -3362,7 +3373,10 @@ export default {
           if (this.Printinglist[item].fBillstatus === 10) {
             return this.$message.error("请先打印作业单");
           }
-          if (this.Printinglist[item].fBillstatus >= 30) {
+          if (
+            this.Printinglist[item].fBillstatus >= 30 &&
+            this.stockoi == "0"
+          ) {
             return this.$message.error("请勿重复卸货");
           }
         }
@@ -3452,10 +3466,10 @@ export default {
         if (!this.Printinglist[item].fId) {
           return this.$message.error("请存在未保存的数据");
         }
-        if (this.Printinglist[item].fBillstatus == 10) {
+        if (this.Printinglist[item].fBillstatus == 10 && this.stockoi == "0") {
           return this.$message.error("请存在未打印的作业单");
         }
-        if (this.Printinglist[item].fBillstatus == 20) {
+        if (this.Printinglist[item].fBillstatus == 20 && this.stockoi == "0") {
           return this.$message.error("请存在未卸货的数据");
         }
       }
@@ -4021,6 +4035,11 @@ export default {
     imporTable() {
       this.$refs["importList"].validate((valid) => {
         if (valid) {
+          for (let item in this.detailList) {
+            if (this.importList.fCntrno == this.detailList[item].fCntrno) {
+              return this.$message.error("箱号不能重复");
+            }
+          }
           this.detailList.push({
             fBillstatus: 10,
             fMblno: this.form.fMblno,
@@ -4067,14 +4086,14 @@ export default {
       this.Printinglist = selection;
       //允许确认入库list
       this.dataListSelection = [];
-      this.dataListSelection = selection.filter((e) => e.fBillstatus == 30);
+      if (this.stockoi == "0") {
+        this.dataListSelection = selection.filter((e) => e.fBillstatus == 30);
+      } else {
+        this.dataListSelection = selection;
+      }
       //允许撤销入库list
       this.dataWithdrawList = [];
       this.dataWithdrawList = selection.filter((e) => e.fBillstatus == 40);
-      console.log("ruku");
-      console.log(this.dataListSelection);
-      console.log("chexiao");
-      console.log(this.dataWithdrawList);
     },
     // 合计
     getSummaries(param) {
@@ -4172,18 +4191,7 @@ export default {
       );
     },
     imporComputer() {
-      if (this.importList.fQty > this.allfPlanqty) {
-        return this.$alert("计划件数不能超过" + this.allfPlanqty, "提示", {
-          confirmButtonText: "确定",
-          type: "warning",
-          callback: (action) => {
-            this.importList.fQty = this.allfPlanqty;
-            this.playcomputer();
-          },
-        });
-      } else {
-        this.playcomputer();
-      }
+      this.playcomputer();
     },
     // 库存总账多选框
     whgenlegSelectionChange(selection) {
@@ -4248,7 +4256,7 @@ export default {
       });
     },
     // 入库明细新增list
-    addRelevant() {
+    addRelevant(status) {
       this.$refs["form"].validate((valid) => {
         if (valid) {
           this.title = "新增";
@@ -4295,6 +4303,28 @@ export default {
           treeselect(this.form.fWarehouseid).then((response) => {
             this.fWarehouseidOptions = response.data;
           });
+          if (status == "copy") {
+            this.importList.fBsdate = Date.parse(this.Printinglist[0].fBsdate);
+            this.importList.fGoodsid = this.Printinglist[0].fGoodsid;
+            this.importList.fBusinessType = this.Printinglist[0].fBusinessType.toString();
+            this.importList.fMarks = this.Printinglist[0].fMarks;
+            this.importList.fWarehouselocid = this.Printinglist[0].fWarehouselocid;
+            this.importList.fWarehouseInformation = this.Printinglist[0].fWarehouseInformation;
+            this.importList.fPackagespecs = this.Printinglist[0].fPackagespecs;
+            this.importList.fCntrtype = Number(this.Printinglist[0].fCntrtype);
+            this.importList.fCntqty = this.Printinglist[0].fCntqty;
+            this.importList.fTruckno = this.Printinglist[0].fTruckno;
+            this.importList.fDriverName = this.Printinglist[0].fDriverName;
+            this.importList.fDriverTel = this.Printinglist[0].fDriverTel;
+            this.importList.fDriverIdCar = this.Printinglist[0].fDriverIdCar;
+            this.importList.fSerialNumber = this.Printinglist[0].fSerialNumber;
+            this.importList.fGoodsval = this.Printinglist[0].fGoodsval;
+            this.importList.remark = this.Printinglist[0].remark;
+            this.importList.fQty = this.Printinglist[0].fQty;
+            this.importList.fGrossweight = this.Printinglist[0].fGrossweight;
+            this.importList.fNetweight = this.Printinglist[0].fNetweight;
+          }
+          console.log(this.importList);
           this.weightList = true;
         }
       });

+ 20 - 5
src/views/Warehousing/outStock/AddOrUpdate.vue

@@ -2838,6 +2838,7 @@ export default {
         fWarehouseid: null,
         fTruckno: null,
       },
+      stockoi: null,
     };
   },
   created() {
@@ -2867,6 +2868,9 @@ export default {
     this.getDicts("data_ifdamage_status").then((response) => {
       this.fIfdamageOptions = response.data;
     });
+    this.getConfigKey("stockoi").then((response) => {
+      this.stockoi = response.msg;
+    });
     listWarehousesss({ fStatus: 0, delFlag: 0 }).then((response) => {
       this.warehouseOptions = response.rows;
     });
@@ -3063,7 +3067,10 @@ export default {
           if (this.Printinglist[item].fBillstatus === 10) {
             return this.$message.error("请先打印作业单");
           }
-          if (this.Printinglist[item].fBillstatus >= 30) {
+          if (
+            this.Printinglist[item].fBillstatus >= 30 &&
+            this.stockoi == "0"
+          ) {
             return this.$message.error("请勿重复卸货");
           }
         }
@@ -3153,18 +3160,21 @@ export default {
       }
     },
     creditClick() {
-      console.log(this.Printinglist)
+      console.log(this.Printinglist);
       for (let item in this.Printinglist) {
         if (!this.Printinglist[item].fId) {
           return this.$message.error("请存在未保存的数据");
         }
-        if (this.Printinglist[item].fBillstatus == 10) {
+        if (this.Printinglist[item].fBillstatus == 10 && this.stockoi == "0") {
           return this.$message.error("请存在未打印的作业单");
         }
+        if (this.Printinglist[item].fBillstatus == 20 && this.stockoi == "0") {
+          return this.$message.error("请存在未卸货的数据");
+        }
         if (!this.Printinglist[item].fTruckno) {
           return this.$message.error("车号不能为空");
         }
-           if (this.Printinglist[item].fIsPass == "F") {
+        if (this.Printinglist[item].fIsPass == "F") {
           return this.$message.error("未放行,不能出库");
         }
       }
@@ -3769,7 +3779,12 @@ export default {
       this.Printinglist = selection;
       //允许确认入库list
       this.dataListSelection = [];
-      this.dataListSelection = selection.filter((e) => e.fBillstatus == 30);
+      if (this.stockoi == "0") {
+        this.dataListSelection = selection.filter((e) => e.fBillstatus == 30);
+      } else {
+        this.dataListSelection = selection;
+      }
+
       //允许撤销入库list
       this.dataWithdrawList = [];
       this.dataWithdrawList = selection.filter((e) => e.fBillstatus == 40);

+ 7 - 7
src/views/Warehousing/outStock/index.vue

@@ -216,7 +216,7 @@
             icon="el-icon-plus"
             size="mini"
             @click="handleAdd"
-            v-hasPermi="['warehouseBusiness:inStock:add']"
+            v-hasPermi="['warehouseBusiness:outStock:add']"
             >新增
           </el-button>
         </el-col>
@@ -227,7 +227,7 @@
             size="mini"
             :disabled="single"
             @click="handleUpdate"
-            v-hasPermi="['warehouseBusiness:inStock:edit']"
+            v-hasPermi="['warehouseBusiness:outStock:edit']"
             >修改
           </el-button>
         </el-col>
@@ -237,7 +237,7 @@
             icon="el-icon-download"
             size="mini"
             @click="handleExport"
-            v-hasPermi="['warehouseBusiness:inStock:export']"
+            v-hasPermi="['warehouseBusiness:outStock:export']"
             >导出
           </el-button>
         </el-col>
@@ -248,7 +248,7 @@
             size="mini"
             @click="handleExport"
             :disabled="multiple"
-            v-hasPermi="['warehouseBusiness:inStock:export']"
+            v-hasPermi="['warehouseBusiness:outStock:export']"
             >导入
           </el-button>
         </el-col>
@@ -434,7 +434,7 @@
               type="text"
               icon="el-icon-edit"
               @click="handleUpdate(scope.row, true)"
-              v-hasPermi="['warehouseBusiness:inStock:edit']"
+              v-hasPermi="['warehouseBusiness:outStock:edit']"
               >查看
             </el-button>
             <el-button
@@ -447,7 +447,7 @@
                 scope.row.fBillstatus == '驳回'
               "
               @click="handleUpdate(scope.row, false)"
-              v-hasPermi="['warehouseBusiness:inStock:edit']"
+              v-hasPermi="['warehouseBusiness:outStock:edit']"
               >修改
             </el-button>
             <el-button
@@ -456,7 +456,7 @@
               icon="el-icon-delete"
               v-if="scope.row.fItemsStatus == '计划'"
               @click="handleDelete(scope.row)"
-              v-hasPermi="['warehouseBusiness:inStock:remove']"
+              v-hasPermi="['warehouseBusiness:outStock:remove']"
               >删除
             </el-button>
             <el-button

+ 76 - 46
src/views/fleet/fleetStatistics/index.vue

@@ -61,6 +61,33 @@
             </el-select>
           </el-form-item>
         </el-col>
+        <el-col :span="6">
+          <el-form-item label-width="100px" label="接单时间">
+            <el-date-picker type="date" placeholder="选择日期">
+            </el-date-picker>
+          </el-form-item>
+        </el-col>
+      </el-row>
+      <el-row>
+        <el-col :span="6">
+          <el-form-item label-width="100px" label="结算中心">
+            <el-select placeholder="请选择">
+              <!-- <el-option
+                v-for="item in options"
+                :key="item.value"
+                :label="item.label"
+                :value="item.value"
+              >
+              </el-option> -->
+            </el-select>
+          </el-form-item>
+        </el-col>
+        <el-col :span="6">
+          <el-form-item label="对账时间">
+            <el-date-picker type="date" placeholder="选择日期">
+            </el-date-picker>
+          </el-form-item>
+        </el-col>
       </el-row>
     </el-form>
     <el-row :gutter="10" class="mb8">
@@ -87,9 +114,7 @@
             >重置</el-button
           >
         </div>
-        <right-toolbar
-          @queryTable="getList"
-        ></right-toolbar>
+        <right-toolbar @queryTable="getList"></right-toolbar>
         <div style="margin: 0 12px">
           <el-tooltip
             class="item"
@@ -159,11 +184,7 @@
         <el-button type="primary" @click="save">确 定</el-button>
       </span>
     </el-dialog>
-    <el-table
-      v-loading="loading"
-      :data="tabularData"
-      id="out-table"
-    >
+    <el-table v-loading="loading" :data="tabularData" id="out-table">
       <el-table-column type="selection" width="55" align="center" />
       <el-table-column
         label="提单号"
@@ -204,13 +225,13 @@
 </template>
 
 <script>
-  import { addSet, select, resetModule } from "@/api/system/set";
-  import { queryLedgerList, ledgerListExport } from "@/api/fleet/fleetStatistics";
-  import Cookies from "js-cookie";
-  import draggable from "vuedraggable";
-  import AddOrUpdate from "../scheduling/AddOrUpdate";
+import { addSet, select, resetModule } from "@/api/system/set";
+import { queryLedgerList, ledgerListExport } from "@/api/fleet/fleetStatistics";
+import Cookies from "js-cookie";
+import draggable from "vuedraggable";
+import AddOrUpdate from "../scheduling/AddOrUpdate";
 
-  export default {
+export default {
   name: "plans",
   data() {
     return {
@@ -218,27 +239,36 @@
       total: 0,
       show: false,
       allCheck: false,
-      stlStatusOptions: [{
-        id: 'T',
-        name: '已结算'
-      }, {
-        id: 'F',
-        name: '未结算'
-      }],
-      accchkOptions: [{
-        id: 'T',
-        name: '已对账'
-      }, {
-        id: 'F',
-        name: '未对账'
-      }],
-      invOptions: [{
-        id: 'T',
-        name: '已开票'
-      }, {
-        id: 'F',
-        name: '未开票'
-      }],
+      stlStatusOptions: [
+        {
+          id: "T",
+          name: "已结算",
+        },
+        {
+          id: "F",
+          name: "未结算",
+        },
+      ],
+      accchkOptions: [
+        {
+          id: "T",
+          name: "已对账",
+        },
+        {
+          id: "F",
+          name: "未对账",
+        },
+      ],
+      invOptions: [
+        {
+          id: "T",
+          name: "已开票",
+        },
+        {
+          id: "F",
+          name: "未开票",
+        },
+      ],
       drag: false,
       loading: false,
       // 查询参数
@@ -247,7 +277,7 @@
         pageSize: 10,
         stlStatus: null,
         accchkStatus: null,
-        invStatus: null
+        invStatus: null,
       },
       tableDate: [
         {
@@ -558,11 +588,11 @@
       showSetting: false,
     };
   },
-    // 使用子组件
-    components: {
-      AddOrUpdate,
-      draggable,
-    },
+  // 使用子组件
+  components: {
+    AddOrUpdate,
+    draggable,
+  },
   created() {
     this.setRowList = this.tableDate;
     this.getRowList = this.tableDate;
@@ -682,11 +712,11 @@
       this.resetForm("queryForm");
       this.queryParams = {
         pageNum: 1,
-          pageSize: 10,
-          stlStatus: null,
-          accchkStatus: null,
-          invStatus: null
-      }
+        pageSize: 10,
+        stlStatus: null,
+        accchkStatus: null,
+        invStatus: null,
+      };
       this.handleQuery();
     },
   },