| | |
| | | <input type="text" class="layui-input ForFilteringSchemes" value="" name="ColContent2" id="ColContent2"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-row" style=" margin-top: 10px; margin-left: 70px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å®¡æ¹æµ</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HCheckFlowList" id="HCheckFlowList" class="ForFilteringSchemes" lay-filter="HCheckFlowList" style="width:190px;"> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="get_CheckFlowInfo" id="get_CheckFlowInfo"><i class="layui-icon layui-icon-form"></i>æ¥ç审æ¹è¿åº¦</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_CheckBill_Flow" id="CheckBill_Flow"><i class="layui-icon layui-icon-form"></i>å¤çº§å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_AbandonCheck_Flow" id="AbandonCheck_Flow"><i class="layui-icon layui-icon-form"></i>å¤çº§åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_RejectCheck_Flow" id="RejectCheck_Flow"><i class="layui-icon layui-icon-form"></i>驳å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_CheckBill" id="CheckBill"><i class="layui-icon layui-icon-form"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_AbandonCheck" id="AbandonCheck"><i class="layui-icon layui-icon-form"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_CloseBill" id="set_CloseBill"><i class="layui-icon layui-icon-form"></i>å
³é</button> |
| | |
| | | //#endregion |
| | | |
| | | //#region å è½½é¡µé¢ |
| | | //#region å è½½å®¡æ¹æµ |
| | | HCheckFlowList_Filter(); |
| | | //#endregion |
| | | |
| | | //#region åå§åçé¢ |
| | | set_ClearBill(); |
| | | //#endregion |
| | |
| | | break; |
| | | //å¤çº§åå®¡æ ¸ |
| | | case 'set_AbandonCheck_Flow': set_CheckBill_Flow(1); |
| | | break; |
| | | //驳å |
| | | case 'set_RejectCheck_Flow': set_RejectCheck_Flow(); |
| | | break; |
| | | //å®¡æ ¸ |
| | | case 'set_CheckBill': set_CheckBill(0); |
| | |
| | | var InterID = data[0].hmainid.toString(); |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Xs_SeOrderBill/DropXs_SeOrderBill", |
| | | data: { "HInterID": InterID, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | ////ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | //if (get_needClose_Bar == 0) { |
| | | // $("#btnSearch").trigger('click'); |
| | | //} else if (get_needClose_Bar == 1) { |
| | | // $("#get_needClose").trigger('click'); |
| | | //} |
| | | }); |
| | | if (data[0].ç¶æ == "å建") { |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Xs_SeOrderBill/DropXs_SeOrderBill", |
| | | data: { "HInterID": InterID, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | ////ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | //if (get_needClose_Bar == 0) { |
| | | // $("#btnSearch").trigger('click'); |
| | | //} else if (get_needClose_Bar == 1) { |
| | | // $("#get_needClose").trigger('click'); |
| | | //} |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }); |
| | | } else { |
| | | layer.msg('è¯¥æ¡æ°æ®ä¸æ¯åå»ºç¶æ,æ æ³å é¤ï¼'); |
| | | |
| | | } |
| | | }) |
| | | } |
| | | else { |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | var HCheckFlowID = $("#HCheckFlowList").val(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Xs_SeOrderBill/StartCheckFlow_SeOrderBIll", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "HCheckFlowID_select": HCheckFlowID, "CurUserName": sessionStorage["HUserName"] }, |
| | | data: { "HInterID": InterID,"CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | |
| | | |
| | | |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | if (get_needClose_Bar == 0) { |
| | | $("#btnSearch").trigger('click'); |
| | |
| | | } |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //#region 驳å |
| | | function set_RejectCheck_Flow() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Xs_SeOrderBill/RejectCheckFlow_POOrderBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "CurUserID": sessionStorage["Czybm"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | }); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | $("#btnSearch").trigger('click'); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Xs_SeOrderBill/DeleteXs_SeOrderBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | url: GetWEBURL() + "/Xs_SeOrderBill/CancellXs_SeOrderBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //#region å®¡æ¹æµæ¾ç¤ºä¸ææ¡ |
| | | function HCheckFlowList_Filter() { |
| | | sWhere_CheckFlowList = " and a.HBillTypeID='" + HBillType + "' and c.HUserID = '" + sessionStorage["Czybm"] + "' "; |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_CheckFlowProgressBill/getList_CheckFlowList', |
| | | async: false, |
| | | type: "GET", |
| | | data: { "sWhere": sWhere_CheckFlowList, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | var data = data1.data; |
| | | if (data1.count == 1) { |
| | | var Organization = '<option value="' + data[0]["HInterID"] + '" selected="selected" >' + data[0]["å®¡æ¹æµ"] + '</option>'; |
| | | for (var i = 1; i < data.length; i++) { |
| | | Organization += '<option style="color:blue;" value="' + data[i]["HInterID"] + '">' + data[i]["å®¡æ¹æµ"] + '</option>'; |
| | | } |
| | | $("#HCheckFlowList").empty(); |
| | | $("#HCheckFlowList").append(Organization); |
| | | form.render('select'); |
| | | } else { |
| | | |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region åææ¾ç¤ºä¸ææ¡ |
| | | function ColFilter() { |