#
zhou zhou
2026-01-05 b4a8d50e3d97fc9e893b554a60134e4eceb012eb
src/main/webapp/views/pda/combPro.html
@@ -110,7 +110,7 @@
<div id="modify" style="display: none; text-align: center;padding-top: 10px">
    <div class="form-box">
        <div class="form-item">
            <table style="display: inline">
            <table style="display: none">
                <tr>
                    <td>
                        <span style="width: 35px; margin-right: 5px">物料</span>
@@ -128,7 +128,7 @@
                        <span style="width: 35px; margin-right: 5px">名称</span>
                    </td>
                    <td style="text-align: left">
                    <textarea rows="3" style="resize: none; width: 165px" id="matName" type="text" disabled="disabled"
                    <textarea rows="2" style="resize: none; width: 165px" id="matName" type="text" disabled="disabled"
                              readonly="readonly"></textarea>
                    </td>
                </tr>
@@ -166,6 +166,8 @@
    }
    var tableIns;
    var countLayer;
    var matData = [];
    var sourceData = [];
    layui.use(['table', 'laydate', 'form'], function () {
        var table = layui.table;
        var $ = layui.jquery;
@@ -179,8 +181,8 @@
            limit: 500,
            cellMinWidth: 50,
            cols: [[
                {field: 'matNo', align: 'center', title: '物料编码',event: 'modify',},
                {field: 'mnemonic', align: 'center', title: '生产单号',event: 'modify',},
                {field: 'matNo', align: 'center', title: '物料编码', event: 'modify',},
                {field: 'mnemonic', align: 'center', title: '生产单号', event: 'modify',},
                {
                    align: 'center',
                    field: 'count',
@@ -189,7 +191,7 @@
                    style: 'cursor: pointer;color: blue',
                    width: 50
                },
                {field: 'matName', align: 'center', title: '物料名称',event: 'modify',}
                {field: 'matName', align: 'center', title: '物料名称', event: 'modify',}
            ]],
            done: function (res, curr, count) {
            }
@@ -241,6 +243,12 @@
            }
            if (toPush) {
                matData.push(data[i]);
                sourceData.push({
                    matNo: data[i].matNo,
                    count: data[i].count,
                    supplier: data[i].supplier,
                    mnemonic: data[i].mnemonic,
                });
            }
        }
        tableIns.reload({data: matData});
@@ -263,20 +271,25 @@
            return;
        }
        // 赋值前清空表格
        matData = [];
       matData = [];
        tableIns.reload({data: matData});
        $.ajax({
            url: baseUrl + "/mobile/bill/query/auth",
            headers: {'token': localStorage.getItem('token')},
            data: {
                billNo: billNo
                billNo: billNo,
                mnemonic: '',
            },
            method: 'POST',
            success: function (res) {
                if (res.code === 200) {
                    if (res.data != null) {
                        addTableData(res.data);
                        // 延迟1秒后清空通知单号
                        // setTimeout(function () {
                        //     $('#billNo').val("");
                        // }, 500);
                    }
                } else if (res.code === 403) {
                    top.location.href = baseUrl + "/pda";
@@ -345,6 +358,7 @@
        $('#code').val("");
        $('#billNo').val("");
        matData = [];
        sourceData = [];
        tableIns.reload({data: matData});
    }
@@ -364,16 +378,12 @@
            tips("请提取物料", true);
            return;
        }
        var billNo = $('#billNo').val();
        var mnemonic = $('#mnemonic').val();
        $.ajax({
            url: baseUrl + "/mobile/comb/auth",
            url: baseUrl + "/mobile/comb/auth/batch",
            headers: {'token': localStorage.getItem('token')},
            data: JSON.stringify({
                barcode: barcode,
                combMats: matData,
                billNo: billNo,
                mnemonic: mnemonic,
            }),
            contentType: 'application/json;charset=UTF-8',
            method: 'POST',