瀏覽代碼

老库存动态显示批号

阿赫 4 月之前
父節點
當前提交
483642e7ad

+ 2 - 1
zkqy-custom-business/src/main/resources/mapper/business/SaleProductsMapper.xml

@@ -456,7 +456,8 @@
                sp.product_number                                    AS actualWeight,
                sp.product_weight                                    AS productWeight,
                sp.colours                                           AS productColor,
-               sp.`level`                                           AS levels
+               sp.`level`                                           AS levels,
+               sp.lot_number                                        AS lotNum
         FROM {DBNAME}.sale_products sp
                         LEFT JOIN {DBNAME}.production pt
         ON sp.product_no = pt.product_no

+ 12 - 1
zkqy-ui/src/views/orderMange/oldOutStock/index.vue

@@ -165,6 +165,8 @@
               </el-table-column>
               <el-table-column align="center" label="品名" prop="productName">
               </el-table-column>
+              <el-table-column align="center" label="批号" prop="lotNum" v-if="this.dlotNum">
+              </el-table-column>
               <el-table-column
                 align="center"
                 label="规格"
@@ -266,6 +268,7 @@ export default {
     return {
       spanArr: [], // 用于记录每个 productCode 的跨行信息
       loading: false,
+      dlotNum: false,
       currentIndex: "",
       form: {
         noticeNumber: "", //通知单号
@@ -526,7 +529,15 @@ export default {
                 ].weight.toFixed(2);
             }
           });
-
+          if(this.saleProductInfoList.length > 0){
+            if(this.saleProductInfoList[0].lotNum == null || this.saleProductInfoList[0].lotNum == '' || this.saleProductInfoList[0].lotNum == undefined){
+              this.dlotNum = false;
+            }else{
+              this.dlotNum = true;
+            }
+          }else{
+            this.dlotNum = false;
+          }
           Object.assign(this.form, {
             noticeNumber, //通知单号
             documentType, //通知单类型