| | |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_export" id="get_export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-MoneyDeSave" id="MoneyDeSave"><i class="layui-icon layui-icon-circle"></i>驳å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | </div> |
| | | </script> |
| | |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container" id="toolbarDemo_ButtonSet"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn" id="HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | |
| | | </div> |
| | | </script> |
| | | </div> |
| | |
| | | //å设置 |
| | | case 'set_HideColumn': get_HideColumnNoPage(HModName, sessionStorage["HUserName"], optionNeedCheck, get_FastQuery); |
| | | break; |
| | | //è´¹ç¨åä¿åæé® |
| | | case 'btn-MoneyDeSave': |
| | | set_SaveMoneyBill(); |
| | | break; |
| | | }; |
| | | }); |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | |
| | | //#region å®¡æ ¸ |
| | | form.on('submit(btnCheckSetupMoney)', function (data) { |
| | | set_CheckBill("SetupMoneyCheck"); |
| | | set_CheckBill("OtherMoneyCheck");//å®¡æ ¸å®è£
éå±è´¹ |
| | | $('#btnCheckSetupMoney').prop('disabled', true).addClass('layui-btn-disabled'); |
| | | }); |
| | | form.on('submit(btnCheckOtherMoney)', function (data) { |
| | |
| | | $('tr').attr({ "style": "background:" }); |
| | | $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//æ¹åå½åtrèæ¯é¢è²ååä½é¢è² |
| | | //obj.tr.find('.layui-form-radio').addClass('layui-form-radioed'); |
| | | |
| | | //mainTable ä¸ºè¡¨æ ¼ID æ³¨ææ¤å¤å¦æID䏿£ç¡®å°å¯¼è´ä½ å¨çå¬å¤éæ¡æ¶è·åä¸å°ä½ éæ©çæ°æ®ï¼åé¢çåªæ¯æ·»å æå é¤é䏿ªé䏿 ·å¼ä»¥åè®¾ç½®èæ¯è²ï¼åä½é¢è² |
| | | layui.each(table.cache.mainTableNeedCheck, function (i, l) { |
| | | if (obj.tr.index() == l.LAY_TABLE_INDEX) { |
| | | l.LAY_CHECKED = flag; |
| | | } |
| | | }); |
| | | //æ¾ç¤ºé¡¹ç®ä¿¡æ¯ |
| | | RoadBillMain(obj.data["HInterID"]); |
| | | |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region è´¹ç¨åä¿åæ°æ® |
| | | function set_SaveMoneyBill() { |
| | | var checkStatus = table.checkStatus('mainTableNeedCheck') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].HInterID.toString(); |
| | | var params = get_UrlVars(); |
| | | var openType = params[params[0]]; //ä»åæ°ä¸è·å æå¼æ¹å¼ |
| | | var sql = "exec h_p_PM_ProjectBillUnSaveMoney " + HInterID + ",'" + openType+"'" |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/CommonModel/searchMethod", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "sql": sql, "user": sessionStorage["HUserName"], "ModRightNameCheck":"Pm_ProjectBill_edit" }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.data[0].message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | get_FastQuery(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®é©³åï¼'); |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //#region 夿æ¯ç´æ¥æå¼é¡µé¢è¿æ¯å
¶å®é¡µé¢éè¿éæ©æé®æå¼ï¼å¹¶æ¾ç¤ºç¸åºæ°æ® |
| | | function addSWhereByOpenType() { |
| | | //è·ååæ° |