阿赫 5 months ago
parent
commit
cc4cdda257

+ 3 - 2
zkqy-custom-business/src/main/resources/mapper/business/ProductInventoryMapper.xml

@@ -281,9 +281,10 @@
         ) AS bb ON a.product_colour = bb.productColour
         WHERE a.del_flag = '0'
         <if test="lotNum != null and lotNum != '' ">and lot_num = #{lotNum}</if>
+        <if test="productColour != null and productColour != ''">
+            and bb.colours = #{productColour}
+            OR a.product_colour = #{productColour}</if>
         <if test="productId != null">and a.product_id = #{productId}</if>
-        <if test="productColour != null and productColour != ''">and bb.colours LIKE concat('%', #{productColour},
-            '%')  OR a.product_colour LIKE concat('%',#{productColour},'%')</if>
         <if test="inventoryType != null and inventoryType != ''">and a.inventory_type = #{inventoryType}</if>
     </select>
 

+ 6 - 0
zkqy-ui/src/views/orderMange/oldOutStock/index.vue

@@ -30,6 +30,12 @@
                 label="客户名称"
               >
               </el-table-column>
+              <el-table-column
+                align="center"
+                prop="saleOrderNo"
+                label="销售单号"
+              >
+              </el-table-column>
               <el-table-column
                 align="center"
                 prop="noticeNumber"

+ 6 - 0
zkqy-ui/src/views/orderMange/outStock/index.vue

@@ -62,6 +62,12 @@
                 prop="customerName"
                 label="客户名称"
               ></el-table-column>
+              <el-table-column
+                align="center"
+                prop="saleOrderNo"
+                label="销售单号"
+              >
+              </el-table-column>
               <el-table-column
                 align="center"
                 prop="noticeNumber"