| | |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRefresh">å·æ°</button> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRescind">æ¤é</button> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">éåº</button> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | var sBillType = '1206' |
| | | //æ¸
空çé¢ new |
| | | |
| | | //卿å è½½æºåç±»åå表 new |
| | |
| | | //读ååæ®å表 |
| | | // |
| | | |
| | | |
| | | //éåº |
| | | form.on('submit(Cancel)', function () { |
| | | parent.location.href = "../../../views/index.html" |
| | | //window.close();//å
³éå½å页 |
| | | }) |
| | | |
| | | //ç¼è¾ |
| | | form.on('submit(cmdModify)', function () { |
| | | var checkStatus = table.checkStatus('dj-table') |
| | | , data = checkStatus.data; |
| | |
| | | } |
| | | }) |
| | | }); |
| | | //ç¼è¾ |
| | | //å·æ° |
| | | form.on('submit(cmdRefresh)', function () { |
| | | var sBillType = '1206' |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | , url: GetWEBURL() + '/OtherOutBill/DisBillEntryList_Mate_Webs_Json' |
| | | ,toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType,sWhere:''} |
| | | , cols: [[ |
| | |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | table.render({ |
| | | elem: '#yd-table' |
| | | , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, HMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 80 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 80 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 100 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 100 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 100 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HOrgID', title: 'ç»ç»', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | |
| | | //æ¤éåè½ |
| | | form.on('submit(cmdRescind)', function () { |
| | | var checkStatus = table.checkStatus('yd-table') |
| | | , data = checkStatus.data; |
| | | var sInterID = data[0].HInterID |
| | | var sBillNo = data[0].HBillNo |
| | | var sBillType = '1206' |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/Web/Rescind_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | //å é¤ |
| | | form.on('submit(cmdDelete)', function () { |
| | | var checkStatus = table.checkStatus('dj-table') |
| | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 80 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 80 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 100 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 100 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | |
| | | |
| | | |
| | | var sBillType = '1206' |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | ,toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType,sWhere:''} |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 80 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 80 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 100 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 100 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | //å·²ä¸ä¼ å表 |
| | | table.render({ |
| | | elem: '#yd-table' |
| | | , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, HMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 80 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 80 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 100 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 100 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 100 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HOrgID', title: 'ç»ç»', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | |
| | | |
| | | //å·æ°æç»é¡µç¾ |
| | | table.render({ |
| | | elem: '#mx-table' |
| | |
| | | |
| | | //读ååæ®å表 |
| | | // |
| | | |
| | | //éåº |
| | | form.on('submit(Cancel)', function () { |
| | | parent.location.href = "../../../views/index.html" |
| | | //window.close();//å
³éå½å页 |
| | | }) |
| | | |
| | | //ç¼è¾ |
| | | form.on('submit(cmdModify)', function () { |
| | | var checkStatus = table.checkStatus('dj-table') |
| | | , data = checkStatus.data; |
| | |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | form.on('submit(cmdRefresh)', function () {//å·æ° |
| | | //å·æ° |
| | | form.on('submit(cmdRefresh)', function () { |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/chanpinruk' |
| | |
| | | }); |
| | | |
| | | |
| | | |
| | | form.on('submit(cmdDelete)', function () {//å é¤ |
| | | //å é¤ |
| | | form.on('submit(cmdDelete)', function () { |
| | | var checkStatus = table.checkStatus('dj-table') |
| | | , data = checkStatus.data; |
| | | var sInterID = data[0].HInterID |