1
yusijie
2024-04-25 09d13e3c27fcff85ad3fba8b228ae0c6b81bf41a
WebTM/views/WMSɨÂëÄ£¿é/ÏúÊÛ³ö¿â/Kf_SellOutBill_PDA.html
@@ -1383,14 +1383,33 @@
            form.on('submit(cmdCancel)', function () {
                layer.confirm('您确定要退出吗?', { icon: 3, title: '提示' }, function (index) {
                    if (OperationType == 2) {
                        var index = parent.layer.getFrameIndex(window.name);    //先得到当前iframe层的索引
                        parent.location.reload();                               //刷新父页面,注意一定要在关闭当前iframe层之前执行刷新
                        parent.layer.close(index);                              //再执行关闭
                    }
                    else {
                        parent.location.href = "../../../views/index_Mobile.html";
                    }
                    //更新先进先出临时表状态(更新 HlineStatus =1)
                    $.ajax({
                        type: "Get",
                        url: GetWEBURL() + "/WEBSController/set_DelPonderationBillMain_Temp_FIFO_Json",
                        async: false,    //async用于控制(false)同步和(true)异步,默认的是true,即请求默认的是异步请求
                        data: { "HInterID": HInterID, "HBillType": HBillType },
                        dataType: "json",
                        success: function (data) {
                            if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                                if (OperationType == 2) {
                                    var index = parent.layer.getFrameIndex(window.name);    //先得到当前iframe层的索引
                                    parent.location.reload();                               //刷新父页面,注意一定要在关闭当前iframe层之前执行刷新
                                    parent.layer.close(index);                              //再执行关闭
                                }
                                else {
                                    parent.location.href = "../../../views/index_Mobile.html";
                                }
                            }
                            else {
                                layer.msg(data.Message, { icon: 2, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                        },
                        complete: function (XHR, TS) { XHR = null },//回收资源
                        error: function (err) {
                            layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    });
                });
            })