cnf
2025-08-14 e09cd73da898d33a58eb533802aab352e3a32be0
领料模块
已修改2个文件
31 ■■■■■ 文件已修改
H5/Js/Scllhb.js 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Scllhb.aspx 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/Scllhb.js
@@ -37,8 +37,8 @@
        getModel() {
            var that = this;
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/GetItemsByDaa001', {
                daa001: that.modeInfo.daa001,
            that.AxiosHttp("post", 'Womdaahb/GetItemsByDaa001', {
                hbNo: that.modeInfo.daa001,
                userName: that.userInfo.loginAccount
            }, false)
                .then(function (res) {
@@ -75,7 +75,7 @@
            var that = this;
            if (that.modeInfo.daa001.length <= 0) {
                that.$toast.fail("工单单号不能为空!");
                that.$toast.fail("汇报单号不能为空!");
                return;
            }
            if (that.scanInfo.barcode.length * 1 <= 0) {
@@ -84,8 +84,8 @@
            }
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/ScanCode', {
                daa001: that.modeInfo.daa001,
            that.AxiosHttp("post", 'Womdaahb/ScanCode', {
                hbNo: that.modeInfo.daa001,
                userName: that.userInfo.loginAccount,
                barcode: that.scanInfo.barcode,
            }, false)
@@ -151,7 +151,7 @@
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/ScanCodeCF', {
                daa001: that.modeInfo.daa001,
                hbNo: that.modeInfo.daa001,
                userName: that.userInfo.loginAccount,
                barcode: that.scanInfo.barcode,
                Num: that.scanInfo.splitNum,
@@ -340,10 +340,10 @@
            console.log(item);
            // 正则匹配第一个方括号内容
            const regex = /\[([^\]]+)\]/;
            const matchResult = item.name.match(regex);
            const matchResult = item.name;
            if (matchResult && matchResult[1]) {
                this.modeInfo.daa001 = matchResult[1]; // PPBOM00000088-1
            if (matchResult) {
                this.modeInfo.daa001 = matchResult; // PPBOM00000088-1
                console.log('提取的DAA001:', this.modeInfo.daa001);
            } else {
                this.$toast.fail('工单号格式异常');
H5/Scllhb.aspx
@@ -32,22 +32,13 @@
                <van-field 
                    ref="daa001"
                    v-model="modeInfo.daa001"
                    label="工单单号"
                    label="合并单号"
                    clearable 
                    placeholder="请扫码"
                    :right-icon-size="19"
                    v-focus.noKeyboard
                    @keyup.enter.native="getModel" 
                    autofocus="true">
                </van-field>
                <van-field
                    v-model="modeInfo.planNo"
                    label="任务单号"
                    clearable
                    :right-icon-size="19"
                    placeholder="任务单号"
                    disabled>
                </van-field>
                
                <van-field
@@ -138,5 +129,5 @@
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
    <script src="Js/Scll.js?<%=123336162 %>"></script>
    <script src="Js/Scllhb.js?<%=1234 %>"></script>
</asp:Content>