| | |
| | | , { field: 'HQty', title: '送货数量', width: 100, edit: 'text'/*, event: "inputHQty"*/ } |
| | | , { field: 'HRQty', title: '未入库数量', width: 100 } |
| | | , { field: 'HSQty', title: '源单数量', width: 100 } |
| | | , { field: 'HBatchNo', title: '批次', width: 100} |
| | | , { field: 'HBatchNo', title: '批次', width: 120} |
| | | , { field: 'HKFDate', title: '生产日期', align: 'center', width: 150, data_field: 'HKFDate', event: "chooseHKFDate" } |
| | | , { field: 'HKFPeriod', title: '保质期', width: 100 } |
| | | , { field: 'HDate', title: '预计到货日期', align: 'center', width: 150, data_field: 'HDate', event: "chooseHDate", hide: true } |
| | |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | _cur_page = $(".layui-laypage-em").next().html(); |
| | | if (data[0]["状态"] == "未确认") { |
| | | layer.confirm('是否确认单据?', { icon: 3, title: '提示' }, function (index) { |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "POOrderAccept", |
| | | data: { "HInterID": data[0]["hmainid"].toString(), "HBillNo": data[0]["单据号"].toString(), "HUser": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说明验证成功了, |
| | | layer.msg(result.Message, { icon: 1 }); |
| | | RoadHBillNo(sql); |
| | | } |
| | | else { |
| | | // $("#verifycode").click(); |
| | | layer.msg(result.Message, { icon: 5 }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | layer.confirm('是否确认单据?', { icon: 3, title: '提示' }, function (index) { |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "POOrderAccept", |
| | | data: { "HInterID": data[0]["hmainid"].toString(), "HBillNo": data[0]["单据号"].toString(), "HUser": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说明验证成功了, |
| | | layer.msg(result.Message, { icon: 1 }); |
| | | get_FastQuery(table, option); |
| | | } |
| | | }) |
| | | else { |
| | | // $("#verifycode").click(); |
| | | layer.msg(result.Message, { icon: 5 }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | layer.close(index); |
| | | }); |
| | | |
| | | layer.close(index); |
| | | }); |
| | | |
| | | } |
| | | else { |
| | | layer.msg("必须是未确认单据才能进行确认操作!", { icon: 5 }); |
| | | } |
| | | break; |
| | | case 'btn-back': |
| | | var checkStatus = table.checkStatus('mainTable') |
| | |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说明验证成功了, |
| | | layer.msg("拒绝成功!", { icon: 1 }); |
| | | RoadHBillNo(sql); |
| | | } |
| | | else { |
| | | // $("#verifycode").click(); |
| | |
| | | success: function (data) { |
| | | if (data.code == "0") { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | get_FastQuery(table, option); |
| | | hasPrivileage = false; |
| | | table.reload('mainTable', { |
| | | height: 'full-10' |
| | | height: 'full-10' |
| | | , page: { |
| | | curr: _cur_page //必须从第 1 页开始 |
| | | } |