| | |
| | | <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> |
| | | |
| | |
| | | <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" lay-event="btn-Close" id="Close"><i class="layui-icon layui-icon-radio"></i>å
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeClose" id="DeClose"><i class="layui-icon layui-icon-radio"></i>åå
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_CloseRow" id="set_CloseRow"><i class="layui-icon layui-icon-form"></i>è¡å
³é</button> |
| | |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | //#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; |
| | | //å
³éæé® ï¼1:å
³éã2:åå
³éï¼ |
| | | case 'btn-Close': |
| | |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | } else if(obj.event == 'å½åå®¡æ ¸é¡¹ç®') { |
| | | var linterid = data.hmainid.toString(); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['70%', '70%'] |
| | | , title: '忮审æ¹è¿åº¦' |
| | | , closeBtn: 1 |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: '../../ç³»ç»ç®¡ç/å¤çº§å®¡æ¹/审æ¹è¿åº¦/Xt_CheckFlowProgressList.html?linterid=' + linterid + '&HSouceBillType=' + HBillType |
| | | , resize: false, |
| | | end: function () { |
| | | ////ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | //if (get_needClose_Bar == 0) { |
| | | // $("#btnSearch").trigger('click'); |
| | | //} else if (get_needClose_Bar == 1) { |
| | | // $("#get_needClose").trigger('click'); |
| | | //} |
| | | } |
| | | , cancel: function () { |
| | | } |
| | | }) |
| | | } |
| | | }); |
| | | //è·åç»ç» |
| | |
| | | col.push({ |
| | | field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: 'åæ®å·', templet: function (d) { |
| | | return '<span style="color: blue;">' + d.åæ®å· + '</span>' |
| | | }, style: 'cursor: pointer;' |
| | | }); |
| | | } else if (data[i].name == 'å½åå®¡æ ¸é¡¹ç®') {//æ·»å è¶
龿¥ |
| | | col.push({ |
| | | field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: 'å½åå®¡æ ¸é¡¹ç®', templet: function (d) { |
| | | return '<span style="color: blue;">' + d.å½åå®¡æ ¸é¡¹ç® + '</span>' |
| | | }, style: 'cursor: pointer;' |
| | | }); |
| | | }else { |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | var HCheckFlowID = $("#HCheckFlowList").val(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cg_POOrderBill/StartCheckFlow_POOrderBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | 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'); |
| | |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | $("#btnSearch").trigger('click'); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cg_POOrderBill/AuditXs_POOrderBill_Flow", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | url: GetWEBURL() + "/Cg_POOrderBill/AuditCg_POOrderBill_Flow", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"], "CurUserID": sessionStorage["Czybm"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | if (get_needClose_Bar == 0) { |
| | | $("#btnSearch").trigger('click'); |
| | | } else if (get_needClose_Bar == 1) { |
| | | $("#get_needClose").trigger('click'); |
| | | } |
| | | $("#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(num) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cg_POOrderBill/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 }); |
| | | } |
| | |
| | | $("#ColName2").empty(); |
| | | $("#ColName2").append(Organization); |
| | | form.render('select'); |
| | | } |
| | | //#endregion |
| | | |
| | | //#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 |
| | | |