Browse Source

分配明细动态显示批次属性

k 2 years ago
parent
commit
8c7d901987
1 changed files with 21 additions and 10 deletions
  1. 21 10
      ruoyi-ui/src/views/wms/allocation/index.vue

+ 21 - 10
ruoyi-ui/src/views/wms/allocation/index.vue

@@ -108,16 +108,12 @@
       <el-table-column label="拣货数量" align="center" prop="pickQty" />
       <el-table-column label="已拣库位" align="center" prop="pickToLocation" />
       <el-table-column label="拣货事务" align="center" prop="pickTransactionId" />
-      <el-table-column label="批号" align="center" prop="lotatt01" />
-<!--      <el-table-column label="重量" align="center" prop="lotatt02" />-->
-<!--      <el-table-column label="生产日期" align="center" prop="lotatt03" />-->
-<!--      <el-table-column label="有效期" align="center" prop="lotatt04" />-->
-      <el-table-column label="质量状态" align="center" prop="lotatt05" />
-<!--      <el-table-column label="供应商" align="center" prop="lotatt06" />-->
-<!--      <el-table-column label="托盘号" align="center" prop="lotatt07" />-->
-      <el-table-column label="入库单号" align="center" prop="lotatt08" />
-<!--      <el-table-column label="拣货事务" align="center" prop="lotatt09" />-->
-<!--      <el-table-column label="拣货事务" align="center" prop="lotatt10" />-->
+      <el-table-column
+        v-for="(item, index) in tableOption"
+        :key="index"
+        :label="item.label"
+        align="center" :prop="item.prop" width="200">
+      </el-table-column>
       <el-table-column label="lotnum" align="center" prop="lotnum" />
       <!--<el-table-column label="待检库位" align="center" prop="locationId" />
       <el-table-column label="叫料待检事务id" align="center" prop="callTransactionId" />-->
@@ -241,6 +237,8 @@
 
 <script>
 import { listAllocation, getAllocation, delAllocation, addAllocation, updateAllocation } from "@/api/ams/allocation";
+import {lotattConfigList} from "@/api/ams/config";
+import {queryLocationZoneDict} from "@/api/base/locationZone";
 
 export default {
   name: "Allocation",
@@ -266,6 +264,7 @@ export default {
       // 是否显示弹出层
       open: false,
       dateRange: [],
+      tableOption: [],
       // 查询参数
       queryParams: {
         pageNum: 1,
@@ -295,9 +294,21 @@ export default {
     };
   },
   created() {
+    this.initData();
     this.getList();
   },
   methods: {
+    initData() {
+      lotattConfigList().then(response => {
+        let data = response.data
+        for(let i=0;i<data.length;i++) {
+          let obj = new Object();
+          obj.label = data[i].lotattName
+          obj.prop = data[i].lotattId
+          this.tableOption.push(obj)
+        }
+      })
+    },
     /** 查询分配查询列表 */
     getList() {
       this.loading = true;