zrg
2025-12-18 509d7655f43706ec844a356f3c4bca55bca753bd
上模单 凯贝扫码取消校验模具数量
1个文件已修改
36 ■■■■ 已修改文件
pages/MJGL/shangmudan/MouldUpperBill.vue 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/shangmudan/MouldUpperBill.vue
@@ -939,25 +939,25 @@
                    })
                }
                // 如果是事业一处组织,校验器具数量
                if (uni.getStorageSync('OrganizationID') === "100007" && uni.getStorageSync('Organization') === "事业一处") {
                    const zeroQtyItem = this.listData.find(item => {
                      // 考虑0、null、undefined等异常情况
                      const qty = Number(item.器具数量) || 0;
                      return qty <= 0;
                    });
                // if (uni.getStorageSync('OrganizationID') === "100007" && uni.getStorageSync('Organization') === "事业一处") {
                //     const zeroQtyItem = this.listData.find(item => {
                //         // 考虑0、null、undefined等异常情况
                //         const qty = Number(item.器具数量) || 0;
                //         return qty <= 0;
                //     });
                    
                    if (zeroQtyItem) {
                      // 找到第一个数量异常项的位置(索引+1)
                      const index = this.listData.indexOf(zeroQtyItem) + 1;
                      const code = zeroQtyItem.器具编码 || '未知编码';
                      uni.showToast({
                        title: `第${index}行【${code}】器具数量为0,请检查`,
                        icon: 'none',
                        duration: 3000
                      });
                      return;
                    }
                }
                //     if (zeroQtyItem) {
                //         // 找到第一个数量异常项的位置(索引+1)
                //         const index = this.listData.indexOf(zeroQtyItem) + 1;
                //         const code = zeroQtyItem.器具编码 || '未知编码';
                //         uni.showToast({
                //             title: `第${index}行【${code}】器具数量为0,请检查`,
                //             icon: 'none',
                //             duration: 3000
                //         });
                //         return;
                //     }
                // }
                if (!this.hform.HEmpName) {
                    uni.showToast({
                        title: '请选择操作员',