修改了销售出库单据、缓存列表 产品入库单据、缓存列表 外购入库单据
| | |
| | | //var WEBURL = "http://localhost:8080/API/"; //颿忬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/lubao"; //颿忬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨é²æ¬å°é
ç½® |
| | | var WEBURL = "http://localhost:8082/LuBaoAPI/"; //ç« ç´«ææ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //ç« ç´«ææ¬å°é
ç½® |
| | | //var WEBURL = "http://10.1.4.155/API/"; //æ±ä¸°å®¢æ·NEW |
| | | //var WEBURL = "http://47.96.97.237/API/"; //æºäºæå¡å¨ |
| | | var WEBURL = "http://47.96.97.237/API/"; //æºäºæå¡å¨ |
| | | //var WEBURL = "http://183.129.128.86:9090/API/"; //å¯è´å¥ç¹å®¢æ·æå¡å¨å¤ç½ |
| | | //var WEBURL = "http://192.168.1.253:8080/API/"; //å¯è´å¥ç¹å®¢æ·æå¡å¨å
ç½ |
| | | //var WEBURL = "http://220.189.218.154:8092/API/"; //丸äºåç»´å°æå¡å¨ |
| | |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | |
| | | |
| | | |
| | | var option = []; |
| | | |
| | | //æºåæ¾è´§å表 |
| | | var ZHOption = { |
| | | elem: '#zh-table' |
| | |
| | | $("#HBillerID").hide(); |
| | | var HSourceFlag = sessionStorage["SourceFlag"]; |
| | | |
| | | |
| | | //åå§åæç»è¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | columns = [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HInterID', title: '忮ID', width: 150, hide: true } |
| | | , { field: 'HBilltype', title: 'åæ®ç±»å', width: 150, hide: true } |
| | | , { field: 'Hbarcode', title: 'æ¡ç ç¼å·', width: 150, hide: true } |
| | | , { field: 'HSCWHID', title: 'è°åºä»åºID', width: 150, hide: true } |
| | | , { field: 'HSCSPID', title: 'è°åºä»ä½ID', width: 150, hide: true } |
| | | , { field: 'HAuxPropID', title: 'è¾
å©å±æ§ID', width: 150, hide: true } |
| | | , { field: 'HMTONo', title: 'MTOå·', width: 150, hide: true } |
| | | , { field: 'HMaterID', title: 'ç©æID', width: 150, hide: true } |
| | | ]; |
| | | option = { |
| | | id: 'wl-table' |
| | | , elem: '#wl-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , page: false |
| | | , cellMinWidth: 120 |
| | | , height: 500 |
| | | , cols: [columns] |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | , done: function (res, curr, count) { |
| | | } |
| | | }; |
| | | } |
| | | |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | if (sessionStorage.login != "login") { |
| | | layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HBillType").val(d.data[0].HSourceBillType); |
| | | $("#HSourceBillNo").val(d.data[0].HSourceBillNo); |
| | | //$("#HWHID").val(d.data[0].HWhID); |
| | | //$("#HKeeperID").val(d.data[0].HKeeperID); |
| | | //$("#HSecManagerID").val(d.data[0].HSecManagerID); |
| | | //$("#HDeptID").val(d.data[0].HDeptID); |
| | | //$("#HBarCode").val(d.data[0].HBarCode); |
| | | //$("#HQty").val(d.data[0].HQty); |
| | | $("#HWHID").val(d.data[0].HWhID); |
| | | $("#HStockPlaceID").val(d.data[0].HSPID); |
| | | $("#HKeeperID").val(d.data[0].HKeeperID); |
| | | $("#HSecManagerID").val(d.data[0].HSecManagerID); |
| | | RoadSup(); |
| | | } |
| | | }) |
| | |
| | | $("#HSupID").val(result.data[0].HSupID); |
| | | $("#HSupName").val(result.data[0].HSupName); |
| | | $("#HDeptID").val(result.data[0].HDeptID); |
| | | //$("#HDeptName").val(result.data[0].HDeptName); |
| | | $("#HDeptName").val(result.data[0].HDeptName); |
| | | //sessionStorage["SourceFlag"] = true; |
| | | element.tabChange('tab-SellOutBill', '2'); |
| | | layer.load(3); |
| | |
| | | |
| | | function RoadBillSub(linterid)//å 载表ä½-----ä¸ä¼èµ° |
| | | { |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json' |
| | | , cellMinWidth: 80 |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: linterid, HBillType: '1205', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 80 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 80 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 100 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 100 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 100 } |
| | | , { field: 'HAuxPropID', title: 'è¾
å©å±æ§', width: 100 } |
| | | , { field: 'HMTONo', title: '计åè·è¸ªå·', width: 100 } |
| | | ]] |
| | | //, height: 500 |
| | | }) |
| | | $("#HInterID").val(linterid);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | //ç¼è¾å è½½æ°æ® |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'SellOut/SellOutDetaiNew', |
| | | type: "GET", |
| | | data: { "HInterID": linterid }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | option.data = result.list[0]; |
| | | table.render(option); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(index0); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | //table.render({ |
| | | // elem: '#wl-table' |
| | | // , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json' |
| | | // , cellMinWidth: 80 |
| | | // , toolbar: '#toolbarDemo' |
| | | // , where: { HBillID: linterid, HBillType: '1205', sWhere: '' } |
| | | // , cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HQty', title: 'æ°é', width: 80 } |
| | | // , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 80 } |
| | | // , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 100 } |
| | | // , { field: 'HMaterName', title: 'ç©æåç§°', width: 100 } |
| | | // , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 100 } |
| | | // , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 100 } |
| | | // , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 100 } |
| | | // , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | // , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 100 } |
| | | // , { field: 'HAuxPropID', title: 'è¾
å©å±æ§', width: 100 } |
| | | // , { field: 'HMTONo', title: '计åè·è¸ªå·', width: 100 } |
| | | // ]] |
| | | // //, height: 500 |
| | | //}) |
| | | } |
| | | |
| | | //卿å è½½æºåç±»åå表 new |
| | |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | //$("#HInterID").val('132522535'); |
| | | //$("#HBillNo").val('421458026'); |
| | | set_InitGrid(); |
| | | } |
| | | }); |
| | | } |
| | |
| | | <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"> |
| | |
| | | |
| | | |
| | | |
| | | //æ¤éåè½ |
| | | 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 = '1205' |
| | | $.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(result.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') |
| | | , data = checkStatus.data; |
| | |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //layer.msg(data.Message, { icon: 1 }); |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | , cellMinWidth: 80 |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: '1205', 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 |
| | | }) |
| | | layer.msg(result.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 }); |
| | |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | |
| | | //å·²ä¸ä¼ å表 |
| | | var |
| | | 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' |
| | |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">åæ®ç±»å</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input type="text" value="ç产订å" name="HBillTypeCHN" id="HBillTypeCHN" lay-verify="HBillTypeCHN" autocomplete="off" class="layui-input" readonly> |
| | | <input type="hidden" value="3710" name="HBillType" id="HBillType" lay-verify="HBillType" autocomplete="off" class="layui-input"> |
| | | <!--<input type="text" value="çäº§æ±æ¥å" name="HBillTypeCHN" id="HBillTypeCHN" lay-verify="HBillTypeCHN" autocomplete="off" class="layui-input" readonly> |
| | | <input type="hidden" value="3711" name="HBillType" id="HBillType" lay-verify="HBillType" autocomplete="off" class="layui-input">--> |
| | | <!--<input type="text" value="ç产订å" name="HBillTypeCHN" id="HBillTypeCHN" lay-verify="HBillTypeCHN" autocomplete="off" class="layui-input" readonly> |
| | | <input type="hidden" value="3710" name="HBillType" id="HBillType" lay-verify="HBillType" autocomplete="off" class="layui-input">--> |
| | | <input type="text" value="çäº§æ±æ¥å" name="HBillTypeCHN" id="HBillTypeCHN" lay-verify="HBillTypeCHN" autocomplete="off" class="layui-input" readonly> |
| | | <input type="hidden" value="3711" name="HBillType" id="HBillType" lay-verify="HBillType" autocomplete="off" class="layui-input"> |
| | | <!--<select name="HBillType" id="HBillType"> |
| | | <option value="3711">çäº§æ±æ¥å</option> |
| | | </select>--> |
| | |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | |
| | | |
| | | var option = []; |
| | | |
| | | |
| | | //æ¸
空çé¢ new |
| | | |
| | | //表头åå§åèµå¼ï¼æ ¹æ®ç»å½ç¨æ·è·å é»è®¤ä»åºãé¨é¨ãéªæ¶ãä¿ç®¡ãéè¶ç¨æ·ï¼ new |
| | |
| | | //é»è®¤å¸¦å
¥çä»åºï¼å¦æå¯ç¨ä»ä½åä»ä½ææï¼å¦ææ²¡æå¯ç¨åä»ä½ç°åº¦ new |
| | | |
| | | $("#HBarCode").focus(); |
| | | |
| | | |
| | | |
| | | //åå§åæç»è¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | columns = [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 150 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 150 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { field: 'HInterID', title: '忮ID', width: 150, hide: true } |
| | | , { field: 'HBilltype', title: 'åæ®ç±»å', width: 150, hide: true } |
| | | , { field: 'Hbarcode', title: 'æ¡ç ç¼å·', width: 150, hide: true } |
| | | , { field: 'HSCWHID', title: 'è°åºä»åºID', width: 150, hide: true } |
| | | , { field: 'HSCSPID', title: 'è°åºä»ä½ID', width: 150, hide: true } |
| | | , { field: 'HAuxPropID', title: 'è¾
å©å±æ§ID', width: 150, hide: true } |
| | | , { field: 'HMTONo', title: 'MTOå·', width: 150, hide: true } |
| | | , { field: 'HMaterID', title: 'ç©æID', width: 150, hide: true } |
| | | ]; |
| | | option = { |
| | | id: 'wl-table' |
| | | , elem: '#wl-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , page: false |
| | | , cellMinWidth: 120 |
| | | , height: 500 |
| | | , cols: [columns] |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | , done: function (res, curr, count) { |
| | | } |
| | | }; |
| | | } |
| | | |
| | | //è·ååæ° |
| | | function getUrlVars() { |
| | |
| | | // console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | //$("#HBillType").val(d.data[0].HSourceBillType); |
| | | $("#HBillType").val(d.data[0].HSourceBillType); |
| | | $("#HSourceBillNo").val(d.data[0].HSourceBillNo); |
| | | //$("#HWHID").val(d.data[0].HWhID); |
| | | //$("#HKeeperID").val(d.data[0].HKeeperID); |
| | | //$("#HSecManagerID").val(d.data[0].HSecManagerID); |
| | | //$("#HDeptID").val(d.data[0].HDeptID); |
| | | //$("#HBarCode").val(d.data[0].HBarCode); |
| | | //$("#HQty").val(d.data[0].HQty); |
| | | $("#HWHID").val(d.data[0].HWhID); |
| | | $("#HStockPlaceID").val(d.data[0].HSPID); |
| | | $("#HKeeperID").val(d.data[0].HKeeperID); |
| | | $("#HSecManagerID").val(d.data[0].HSecManagerID); |
| | | } |
| | | }) |
| | | } |
| | |
| | | |
| | | function RoadBillSub(linterid)//å è½½è¡¨ä½ |
| | | { |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json' |
| | | , cellMinWidth: 80 |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillID: linterid, HBillType: '1202', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', width: 80 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 80 } |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 100 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'HSourceInterID', title: 'æºå主å
ç ', width: 100 } |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 100 } |
| | | , { field: 'HAuxPropID', title: 'è¾
å©å±æ§', width: 100 } |
| | | , { field: 'HMTONo', title: '计åè·è¸ªå·', width: 100 } |
| | | , { field: 'HMaterID', title: 'ç©æID', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | }) |
| | | $("#HInterID").val(linterid);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | //ç¼è¾å è½½æ°æ® |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'ProdIn/ProdInDetaiNew', |
| | | type: "GET", |
| | | data: { "HInterID": linterid }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | option.data = result.list[0]; |
| | | table.render(option); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(index0); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //卿å è½½æºåç±»åå表 new |
| | |
| | | //console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | set_InitGrid(); |
| | | } |
| | | }); |
| | | } |
| | |
| | | <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"> |
| | |
| | | }); |
| | | |
| | | |
| | | //æ¤éåè½ |
| | | 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 = '1205' |
| | | $.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(result.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') |
| | |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //layer.msg(data.Message, { icon: 1 }); |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Mate_Webs_Json' |
| | | //, url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Mate_Webs_Json' |
| | | , url: GetWEBURL() + '/ProductInBillList/DisBillEntryList_Mate_Webs_Json' |
| | | , cellMinWidth: 80 |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: '1202', 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 |
| | | }) |
| | | layer.msg(result.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 }); |
| | |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | |
| | | |
| | | //å·²ä¸ä¼ å表 |
| | | var |
| | | 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' |
| | |
| | | <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"> |
| | |
| | | }); |
| | | |
| | | |
| | | //æ¤éåè½ |
| | | 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 = '1201' |
| | | $.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(result.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') |
| | |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //layer.msg(data.Message, { icon: 1 }); |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | , cellMinWidth: 80 |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: '1201', 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 |
| | | }) |
| | | layer.msg(result.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 }); |
| | |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | |
| | | //å·²ä¸ä¼ å表 |
| | | var |
| | | 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' |