1
zhang
2025-08-06 3e6bdea98a22477d305e63cc286be5b37fc07668
1
1个文件已修改
25 ■■■■■ 已修改文件
pages/pakin/review.vue 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/pakin/review.vue
@@ -262,10 +262,10 @@
                    model: /卷号[::]\s*([^\s<]+)/,
                    batch: /箱号[::]\s*([^\s<]+)/,
                    specs: /规格[::]\s*([^\s<]+)/,
                    length: /长度[::]\s*([\d.]+)\s*&nbsp;?m/,
                    anfme: /净重[::]\s*([\d.]+)\s*&nbsp;?kg/,
                    qty: /毛重[::]\s*([\d.]+)\s*&nbsp;?kg/,
                    volume: /接头[::]\s*([\d.]+)\s*&nbsp;?个/
                    length: /长度[::]\s*([\d.]+)\s*m/,
                    anfme: /净重[::]\s*([\d.]+)\s*kg/,
                    qty: /毛重[::]\s*([\d.]+)\s*kg/,
                    volume: /接头[::]\s*([\d.]+)\s*个/
                };
                // 提取各字段信息
@@ -273,7 +273,7 @@
                    const match = this.matnr.match(patterns[key]);
                    if (match && match[1]) {
                        if (['length', 'anfme', 'qty', 'volume'].includes(key)) {
                            productInfo[key] = parseFloat(match[1]);
                            productInfo[key] = parseFloat(match[1].trim());
                        } else {
                            productInfo[key] = match[1].trim();
                        }
@@ -320,7 +320,10 @@
                if (!flag) {
                    this.msgType = 'warn'
                    this.title = '警告'
                    this.content = '箱号:' + data.batch + '规格:' + data.specs + '净重:' + data.anfme + '  不存在,请检查!'
                    this.content = "箱号:" + data.batch + "\n"
                    + "规格:"+ data.specs + "\n"
                    + "净重:"+ data.anfme + "\n"
                    + '不存在,请检查!'
                    this.$refs.combConfirm2.open()
                }
                this.focuss()
@@ -350,11 +353,11 @@
            comb() {
                let _this = this
                
                if (!_this.memo) {
                    this.messageText = "请选择复核备注"
                    this.messageToggle('error')
                    return;
                }
                // if (!_this.memo) {
                //     this.messageText = "请选择复核备注"
                //     this.messageToggle('error')
                //     return;
                // }
                if (!_this.threeCode) {
                    this.messageText = "请选择复核人"
                    this.messageToggle('error')