zzr99
2022-02-22 dd659169ca38a5842b10e28c3630d3600f94e716
盘点分析批量审核
1个文件已修改
64 ■■■■ 已修改文件
WebTM/views/基础资料/基础资料/InventoryAnalysis.html 64 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/»ù´¡×ÊÁÏ/»ù´¡×ÊÁÏ/InventoryAnalysis.html
@@ -189,7 +189,7 @@
                , laydate = layui.laydate
                , util = layui.util
            //查询条件
            var sWhere = " å®žé™…位置类型=账面位置类型 and å®žé™…位置=账面位置";
            var sWhere = " HRealPotType=HBookPotType and HRealPot=HBookPot";
            var option1 = [];
            var option2 = [];
            var option3 = [];
@@ -200,13 +200,13 @@
            var col = [
                { type: 'checkbox', fixed: 'left' }
                , { field: 'HItemID', title: 'HItemID', width: 200,hide: true}
                , { field: '条码', title: '器具条码', width: 200 }
                , { field: '器具编号', title: '器具编号', width: 200 }
                , { field: '盘点方案', title: '盘点方案', width: 200 }
                , { field: '实际位置类型', title: '实际位置类型', width: 200 }
                , { field: '实际位置', title: '实际位置', width: 200 }
                , { field: '账面位置类型', title: '账面位置类型', width: 200 }
                , { field: '账面位置', title: '账面位置', width: 200 }
                , { field: 'HBarCode', title: '器具条码', width: 200 }
                , { field: 'HMouldNo', title: '器具编号', width: 200 }
                , { field: 'HStockCheck', title: '盘点方案', width: 200 }
                , { field: 'HRealPotType', title: '实际位置类型', width: 200 }
                , { field: 'HRealPot', title: '实际位置', width: 200 }
                , { field: 'HBookPotType', title: '账面位置类型', width: 200 }
                , { field: 'HBookPot', title: '账面位置', width: 200 }
            ];
            //#endregion
@@ -614,7 +614,7 @@
            }
            //调拨查询
            function db_Display() {
                var sWhere = " å®žé™…位置类型=账面位置类型 and å®žé™…位置类型='仓库' and å®žé™…位置!=账面位置";
                var sWhere = " HRealPotType=HBookPotType and HRealPotType='仓库' and HRealPot!=HBookPot";
                var HItemID = $("#HItemID").val();//盘点
                //进入页面显示的缓存列表
                $.ajax({
@@ -635,7 +635,7 @@
            }
            //出库查询
            function ck_Display() {
                var sWhere = " è´¦é¢ä½ç½®ç±»åž‹='仓库' and isnull(账面位置,'')!='' and (实际位置类型='供应商' or å®žé™…位置类型='客户') and isnull(实际位置,'')!=''";
                var sWhere = " HBookPotType='仓库' and isnull(HBookPot,'')!='' and (HRealPotType='供应商' or HRealPotType='客户') and isnull(HRealPot,'')!=''";
                var HItemID = $("#HItemID").val();//单据类型
                //进入页面显示的缓存列表
                $.ajax({
@@ -656,7 +656,7 @@
            }
            //入库查询
            function rk_Display() {
                var sWhere = " (实际位置类型='供应商' or å®žé™…位置类型='客户') and (账面位置类型='供应商' or è´¦é¢ä½ç½®ç±»åž‹='客户') and å®žé™…位置!=账面位置";
                var sWhere = " (HRealPotType='供应商' or HRealPotType='客户') and (HBookPotType='供应商' or HBookPotType='客户') and HRealPot!=HBookPot";
                var HItemID = $("#HItemID").val();//单据类型
                //进入页面显示的缓存列表
                $.ajax({
@@ -677,7 +677,7 @@
            }
            //盘盈查询
            function py_Display() {
                var sWhere = "isnull(账面位置,'')='' and isnull(实际位置,'')!=''";
                var sWhere = "isnull(HBookPot,'')='' and isnull(HRealPot,'')!=''";
                var HItemID = $("#HItemID").val();//单据类型
                //进入页面显示的缓存列表
                $.ajax({
@@ -698,7 +698,7 @@
            }
            //盘亏查询
            function pk_Display() {
                var sWhere = "isnull(账面位置,'')!='' and isnull(实际位置,'')=''";
                var sWhere = "isnull(HBookPot,'')!='' and isnull(HRealPot,'')=''";
                var HItemID = $("#HItemID").val();//单据类型
                //进入页面显示的缓存列表
                $.ajax({
@@ -719,7 +719,7 @@
            }
            //退库查询
            function tk_Display() {
                var sWhere = " å®žé™…位置类型='仓库' and isnull(实际位置,'')!='' and  (账面位置类型='供应商' or è´¦é¢ä½ç½®ç±»åž‹='客户')";
                var sWhere = " HRealPotType='仓库' and isnull(HRealPot,'')!='' and  (HBookPotType='供应商' or HBookPotType='客户')";
                var HItemID = $("#HItemID").val();//单据类型
                //进入页面显示的缓存列表
                $.ajax({
@@ -747,12 +747,11 @@
                var checkStatus = table.checkStatus('mainTable2')
                    , data = checkStatus.data;
                if (checkStatus.data.length === 1) {
                    var HInterID = data[0].条码.toString();
                    var HItemID = data[0].HItemID.toString();
                    var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeProdMove", //方法所在页面和方法名
                        data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID},
                        data: { "msg": sSubStr },
                        success: function (result) {
                            if (result.count == 1) {
                                layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -781,12 +780,11 @@
                var checkStatus = table.checkStatus('mainTable3')
                    , data = checkStatus.data;
                if (checkStatus.data.length === 1) {
                    var HInterID = data[0].条码.toString();
                    var HItemID = data[0].HItemID.toString();
                    var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeProdOut", //方法所在页面和方法名
                        data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID},
                        data: { "msg": sSubStr },
                        success: function (result) {
                            if (result.count == 1) {
                                layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -815,12 +813,11 @@
                var checkStatus = table.checkStatus('mainTable4')
                    , data = checkStatus.data;
                if (checkStatus.data.length === 1) {
                    var HInterID = data[0].条码.toString();
                    var HItemID = data[0].HItemID.toString();
                    var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeProdOutBack", //方法所在页面和方法名
                        data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID },
                        data: { "msg": sSubStr },
                        success: function (result) {
                            if (result.count == 1) {
                                layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -849,12 +846,11 @@
                var checkStatus = table.checkStatus('mainTable5')
                    , data = checkStatus.data;
                if (checkStatus.data.length === 1) {
                    var HInterID = data[0].条码.toString();
                    var HItemID = data[0].HItemID.toString();
                    $.ajax({
                    var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];
                     $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeOtherIn", //方法所在页面和方法名
                        data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID },
                         data: { "msg": sSubStr },
                        success: function (result) {
                            if (result.count == 1) {
                                layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -882,13 +878,12 @@
            function set_CheckBill6() {
                var checkStatus = table.checkStatus('mainTable6')
                    , data = checkStatus.data;
                if (checkStatus.data.length === 1) {
                    var HInterID = data[0].条码.toString();
                    var HItemID = data[0].HItemID.toString();
                if (checkStatus.data.length >= 1) {
                    var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeScrapOut", //方法所在页面和方法名
                        data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID },
                        data: { "msg": sSubStr },
                        success: function (result) {
                            if (result.count == 1) {
                                layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -909,7 +904,7 @@
                    });
                }
                else {
                    layer.msg('请选择一行数据审核!');
                    layer.msg('请最少选择一行数据审核!');
                }
            }
            //审核 é€€åº“
@@ -917,12 +912,11 @@
                var checkStatus = table.checkStatus('mainTable7')
                    , data = checkStatus.data;
                if (checkStatus.data.length === 1) {
                    var HInterID = data[0].条码.toString();
                    var HItemID = data[0].HItemID.toString();
                    var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeProdBack", //方法所在页面和方法名
                        data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID},
                        data: { "msg": sSubStr },
                        success: function (result) {
                            if (result.count == 1) {
                                layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {