Prechádzať zdrojové kódy

打印日志隐藏修改/补码初始化产品数据

lph 1 rok pred
rodič
commit
f192260bb2

+ 2 - 2
zkqy-ui/src/views/orderMange/codeListManage/index.vue

@@ -141,7 +141,7 @@
                 操作<i class="el-icon-arrow-down el-icon--right"></i>
               </el-button>
               <el-dropdown-menu slot="dropdown">
-                <el-dropdown-item>
+                <!-- <el-dropdown-item>
                   <el-button
                     size="mini"
                     type="text"
@@ -150,7 +150,7 @@
                     v-hasPermi="['system:productCodeList:edit']"
                     >修改
                   </el-button>
-                </el-dropdown-item>
+                </el-dropdown-item> -->
                 <el-dropdown-item>
                   <el-button
                     size="mini"

+ 7 - 3
zkqy-ui/src/views/orderMange/codeListManage/printIndex.vue

@@ -1592,7 +1592,7 @@ export default {
           this.form = response.data[0];
           this.tableData = response.data;
 
-          await this.getAllBatchData(); //获取所有产品数据
+          await this.getAllBatchData(this.form.machineTool); //获取所有产品数据
           await this.getLineOptionLsit(); //获取机台选项数据
           await this.getSelectOptions();
           this.initProductData();
@@ -1611,7 +1611,7 @@ export default {
         this.printAuto = false;
         this.form = response.data[0];
         this.tableData = response.data;
-        await this.getAllBatchData(); //获取所有产品数据
+        await this.getAllBatchData(this.form.machineTool); //获取所有产品数据
         await this.getLineOptionLsit(); //获取机台选项数据
         await this.getSelectOptions();
         this.initProductData();
@@ -1622,7 +1622,11 @@ export default {
     // 初始化产品相关数据
     initProductData() {
       this.batchNum = this.form.lotNum;
-      this.batchNumChange();
+      // this.batchNumChange();
+      console.log(this.batchData);
+      this.batchTableData = this.batchData.filter(
+        (item) => item.productId == this.tableData[0].productId
+      );
       if (this.batchTableData.length) {
         let {
           machineTool,