1
black-goat-me
2023-04-26 f14ec361fc553c81c108b46a193aeb4f5bec355b
WebTM/views/ÑéÊÕÈë¿â/²úÆ·Èë¿â/Kf_ProductInBill_Fast.html
@@ -19,7 +19,7 @@
<body>
    <div class="layui-fluid" style="padding:0">
        <div class="layui-card">
            <div class="layui-card-body" style="padding: 5px; height:800px;">
            <div class="layui-card-body" style="padding: 0px; height:800px;">
                <form class="layui-form" action="" lay-filter="component-form-group">
                    <div style="background-color:#0085E8;">
                        <span style="color: white;"><i class="layui-icon layui-icon-form"></i>产品入库单</span>
@@ -210,13 +210,6 @@
                                    </div>
                                </div>
                            </div>
                            <div class="layui-tab-item">
                                <!--<div class="layui-form-item" style="padding:0px;margin:0px">
            <div class="layui-row">
@@ -250,7 +243,7 @@
                                <div class="layui-form-item" style="padding: 0px; margin: 0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:40px;padding-left:0px;">条码数</label>
                                            <label class="layui-form-label" style="width:50px;padding-left:0px;">条码数</label>
                                        </div>
                                        <div class="layui-col-xs8">
                                            <input type="text" name="HBarCodeQtys" id="HBarCodeQtys" lay-verify="HBarCodeQtys" autocomplete="off" class="layui-input">
@@ -260,7 +253,7 @@
                                <div class="layui-form-item" style="padding: 0px; margin: 0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:40px;padding-left:0px;">总数量</label>
                                            <label class="layui-form-label" style="width:50px;padding-left:0px;">总数量</label>
                                        </div>
                                        <div class="layui-col-xs8">
                                            <input type="text" name="HSumQtys" id="HSumQtys" lay-verify="HSumQtys" autocomplete="off" class="layui-input">
@@ -398,8 +391,8 @@
                option = {
                    id: 'wl-table'
                    , elem: '#wl-table'
                    , toolbar: '#toolbarDemo'
                    , page: false
                    //, toolbar: '#toolbarDemo'
                    , page: true
                    , cellMinWidth: 120
                    , height: 500
                    , cols: [columns]
@@ -421,7 +414,7 @@
                return vars;
            }
            ////判断是否登录 æœªç™»å½•则跳到登录页
            //判断是否登录 æœªç™»å½•则跳到登录页
            //if (sessionStorage.login != "login") {
            //    layer.confirm("登录失效,请重新登录!", {
            //        icon: 4, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['重新登录']
@@ -507,7 +500,7 @@
                table.render({
                    elem: '#wl-table' 
                    , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    //, toolbar: '#toolbarDemo'
                    , defaultToolbar: []
                    , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
                    , cols: [[
@@ -523,7 +516,8 @@
                        //, { field: 'HBatchNo', title: '批次', width: 150 }
                    ]]
                    // , data: [linterid]
                    // , page: true
                    , page: true
                    , limie: 100
                    , height: 500
                    , done: function () {
                        layer.closeAll("loading");
@@ -629,7 +623,7 @@
                    }
                })
            });
            ////选择仓库
            //选择仓库
            //form.on('submit(HWHID-BT)', function () {//选择仓库
            //    layer.open({
            //        type: 2
@@ -807,9 +801,11 @@
                            elem: '#wl-table'
                            //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json'
                            , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                            , toolbar: '#toolbarDemo'
                            //, toolbar: '#toolbarDemo'
                            , defaultToolbar: []
                            , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
                            , page: true
                            , limit: 100
                            , cols: [[
                                { type: 'radio' }
                                , { field: 'HQty', title: '数量', width: 150 }
@@ -841,7 +837,7 @@
                });
            })
            ////删除
            //删除
            //form.on('submit(cmdDelete)', function () {//删除
            //    var checkStatus = table.checkStatus('wl-table')
            //        , data = checkStatus.data;
@@ -894,7 +890,7 @@
            //                        elem: '#wl-table'
            //                        //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json'
            //                        , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
            //                        , toolbar: '#toolbarDemo'
            //                        //, toolbar: '#toolbarDemo'
            //                        , defaultToolbar: []
            //                        , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
            //                        , cols: [[
@@ -1194,6 +1190,7 @@
                    , { field: 'HMaterID', title: '物料ID', width: 100, hide: true }
                ]]
                , page: true
                , limit: 100
                , height: 500
                , done: function () {
                }
@@ -1234,8 +1231,10 @@
                                    table.render({
                                        elem: '#wl-table' 
                                        , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                                        , toolbar: '#toolbarDemo'
                                        //, toolbar: '#toolbarDemo'
                                        , defaultToolbar: []
                                        , page: true
                                        , limit: 100
                                        , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
                                        , cols: [[
                                            { type: 'radio' }
@@ -1306,34 +1305,37 @@
                        //data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": HSourceFlag, "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] },  //旧
                        success: function (result) {
                            //debugger;
                            playSound1();
                            if (result.count == 1) {
                                if (result.data.HBarType == '仓库条码') {
                                    $("#HWHNAME").val(result.data.HWhName);
                                    $("#HWHID").val(result.data.HWhID);
                                playSound1();
                                if (result.data.hBarTypeField == '仓库条码') {
                                    $("#HWHNAME").val(result.data.hWhNameField);
                                    $("#HWHID").val(result.data.hWhIDField);
                                    $("#HStockPlaceName").val("");
                                    $("#HNote").val(";一键扫码仓库条码");
                                    element.tabChange('tab-ProductlnBill', '2');  //跳转页签
                                    return;
                                }
                                else if (result.data.HBarType == '仓位条码') {
                                    $("#HStockPlaceName").val(result.data.HSPName);
                                    $("#HStockPlaceID").val(result.data.HSPID);
                                    $("#HWHNAME").val(result.data.HWhName);
                                    $("#HWHID").val(result.data.HWhID);
                                else if (result.data.hBarTypeField == '仓位条码') {
                                    $("#HStockPlaceName").val(result.data.hSPNameField);
                                    $("#HStockPlaceID").val(result.data.hSPIDField);
                                    $("#HWHNAME").val(result.data.hWhNameField);
                                    $("#HWHID").val(result.data.hWhIDField);
                                    $("#HNote").val(";一键扫码仓位条码");
                                    element.tabChange('tab-ProductlnBill', '2');//跳转页签
                                    return;
                                }
                                else if (result.data.HBarType == '部门条码') {
                                    $("#HDeptName").val(result.data.HDeptName);
                                    $("#HDeptID").val(result.data.HDeptID);
                                else if (result.data.hBarTypeField == '部门条码') {
                                    $("#HDeptName").val(result.data.hDeptNameField);
                                    $("#HDeptID").val(result.data.hDeptIDField);
                                    $("#HNote").val(";一键扫码部门条码");
                                    element.tabChange('tab-ProductlnBill', '2');//跳转页签
                                    return;
                                }
                                else if (result.data.HBarType == '源单条码') {
                                    //$("#HSupName").val(result.data.HSupName);
                                    //$("#HSupID").val(result.data.HSupID);
                                    //$("#HDeptName").val(result.data.HDeptName);
                                    //$("#HDeptID").val(result.data.HDeptID);
                                else if (result.data.hBarTypeField == '源单条码') {
                                    //$("#HSupName").val(result.data.hSupName);
                                    //$("#HSupID").val(result.data.hSupID);
                                    //$("#HDeptName").val(result.data.hDeptName);
                                    //$("#HDeptID").val(result.data.hDeptID);
                                    if (result.data.hDeptIDField != 0) {
                                        $("#HDeptID").val(result.data.hDeptIDField);
                                        $("#HDeptName").val(result.data.hDeptNameField);
@@ -1412,7 +1414,7 @@
                                //    elem: '#wl-table'
                                //    //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json'
                                //    , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                                //    , toolbar: '#toolbarDemo'
                                //    //, toolbar: '#toolbarDemo'
                                //    , defaultToolbar: []
                                //    , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
                                //    , cols: [[
@@ -1487,9 +1489,11 @@
            var listOption = {
                elem: '#wl-table'
                , toolbar: '#toolbarDemo'
                //, toolbar: '#toolbarDemo'
                , totalRow: true
                , cellMinWidth: 90
                , page: true
                ,limit: 100
                , cols: [[
                    { type: 'radio' }
                    , { field: 'HQty', title: '数量', width: 150, totalRow: true}
@@ -1510,7 +1514,7 @@
            }
            var listOption1 = {
                elem: '#mx-table'
                , toolbar: '#toolbarDemo'
                //, toolbar: '#toolbarDemo'
                , cellMinWidth: 90
                , cols: [[
                    { type: 'radio' }
@@ -1576,9 +1580,11 @@
                            table.render({
                                elem: '#wl-table' 
                                , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                                , toolbar: '#toolbarDemo'
                                //, toolbar: '#toolbarDemo'
                                , totalRow: true
                                , defaultToolbar: []
                                , page: true
                                , limit: 100
                                , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
                                , cols: [[
                                    { type: 'radio' }
@@ -1594,7 +1600,6 @@
                                    , { field: 'HPieceQty', title: '条码数量', width: 150 }
                                ]]
                                // , data: [linterid]
                                // , page: true
                                , height: 500
                                , done: function () {
                                    layer.closeAll("loading");