yantian yue
2023-10-23 0d7d6a88080dc8759ef84ed5ad7875f25642df6c
guns-vip-main/src/main/webapp/assets/modular/pm/workOrder/workOrder_add.js
@@ -100,6 +100,23 @@
        }
    });
    $('#productCode').click(function () {
        layer.open({
            type: 2,
            area: ['1000px', '600px'],
            title: '物料信息',
            content: Feng.ctxPath + '/workOrder/productListing',
            success: function (layero, index) {
                window.materialType = '产品';
            },
            end: function () {
                let msg = JSON.parse(window.localStorage.getItem('message'));
                $('#productCode').val(msg.materialCode);
                $('#productName').val(msg.materialName);
            }
        });
    });
    //表单提交事件
    form.on('submit(btnSubmit)', function (data) {
        var ajax = new $ax(Feng.ctxPath + "/workOrder/addItem", function (data) {