WebTM/views/WMSɨÂëÄ£¿é/ÏúÊÛ³ö¿â/Kf_SellOutBill_QiaoYi_PDA.html
@@ -87,6 +87,7 @@
                                                <select name="HMainSourceBillType" id="HMainSourceBillType">
                                                    <option value="1401">销售订单</option>
                                                    <option value="1402">发货通知单</option>
                                                    <option value="-1">手工录入</option>
                                                </select>
                                            </div>
                                        </div>
@@ -1072,13 +1073,33 @@
            form.on('submit(cmdCancel)', function () {
                layer.confirm('您确定要退出吗?', { icon: 3, title: '提示' }, function (index) {
                    if (OperationType == 2) {
                        var index = parent.layer.getFrameIndex(window.name);
                        parent.layer.close(index);
                    }
                    else {
                        parent.location.href = "../../../views/index_Mobile_QiaoYi.html";
                    }
                    //更新先进先出临时表状态(更新 HlineStatus =1)
                    $.ajax({
                        type: "Get",
                        url: GetWEBURL() + "/WEBSController/set_DelPonderationBillMain_Temp_FIFO_New_Json",
                        async: false,    //async用于控制(false)同步和(true)异步,默认的是true,即请求默认的是异步请求
                        data: { "HInterID": HInterID, "HBillType": HBillType, "HStockOrgID": HStockOrgID },
                        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_QiaoYi.html";
                                }
                            }
                            else {
                                layer.msg(data.Message, { icon: 2, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                        },
                        complete: function (XHR, TS) { XHR = null },//回收资源
                        error: function (err) {
                            layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    });
                });
            })