| | |
| | | function GetWEBURL() { |
| | | //var WEBURL = "http://192.168.16.80:8011/"; //åå
¬å®¤æå¡å¨ |
| | | //var WEBURL = "http://localhost:8081/SWEAPI/"; //chæ¬å° |
| | | //var WEBURL = "http://localhost:8085/API/"; //zgqæ¬å° |
| | | var WEBURL = "http://localhost:8085/API/"; //zgqæ¬å° |
| | | //var WEBURL = "http://localhost:8080/API/"; //颿忬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/lubao"; //颿忬å°é
ç½® |
| | | //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/"; //å¯è´å¥ç¹å®¢æ·æå¡å¨ |
| | | return WEBURL |
| | | } |
| | |
| | | elem: '#mainTable' |
| | | // , url: '/demo/table/user/' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-1000' |
| | | , data: [] |
| | | , cellMinWidth: 80 //å
¨å±å®ä¹å¸¸è§åå
æ ¼çæå°å®½åº¦ï¼layui 2.2.1 æ°å¢ |
| | | , cols: [[ |
| | |
| | | , { field: 'HQtyMust', width: 150, title: 'åºæ¶æ°é' } |
| | | , { field: 'HBatchNo', width: 150, title: 'æ¹æ¬¡' } |
| | | , { field: 'HPieceQty', width: 150, title: 'ä»¶æ°' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | , { fixed: 'right', width: 70, title: 'æä½', toolbar: '#barDemo' } |
| | | ]] |
| | | , page: true |
| | | }); |
| | |
| | | ajaxReturnData = JSON.parse(JSON.stringify(result)).data; |
| | | table.reload('mainTable', { |
| | | data: ajaxReturnData |
| | | , height: 'full-10' |
| | | , height: 'full-1000' |
| | | , loading: false |
| | | , done: function (index, res) { |
| | | |
| | |
| | | , { field: 'HMaterID', title: 'ç©æå
ç ', width: 150, hide: true } |
| | | , { field: 'HAuxPropID', title: '', width: 150, hide: true } |
| | | , { field: 'HMTONo', title: '计åè·è¸ªå·', width: 150, hide: true } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 70 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | |
| | | } |
| | | }); |
| | | |
| | | //æµè¯æ°æ®begin |
| | | var rowdata = [{ |
| | | "æ°é": "", "ä»¶æ°": "", "åºæ¶æ°é": "0", "ç©æä»£ç ": "", "ç©æåç§°": "" |
| | | , "è§æ ¼åå·": "0" |
| | | , "æºå主å
ç ": "367", "æºååå
ç ": "false", "æºååå·": "", "æ¹æ¬¡": "", "ç©æå
ç ": "" |
| | | }]; |
| | | var option = { |
| | | elem: '#wl-table' |
| | | , height: 'full-150' |
| | | , cols: [[ |
| | | { type: 'radio', totalRowText: 'å计' } |
| | | , { field: 'HQty', title: 'æ°é', width: 150, totalRow: true } |
| | | , { field: 'ä»¶æ°', title: 'ä»¶æ°', width: 150, totalRow: true } |
| | | , { 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: 'HMaterID', title: 'ç©æå
ç ', width: 150 } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 90 } |
| | | ]] |
| | | , page: true |
| | | }; |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | //æµè¯æ°æ®end |
| | | |
| | | //æ«æ¡ç |
| | | $('#HBarCode').on('keydown', function (event) { //æ«æ¡ç |
| | |
| | | , { field: 'HMaterID', title: 'ç©æå
ç ', width: 150, hide: true } |
| | | , { field: 'HAuxPropID', title: '', width: 150, hide: true } |
| | | , { field: 'HMTONo', title: '计åè·è¸ªå·', width: 150, hide: true } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 70 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 150 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', width: 150 } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 70 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(wl-table)', function (obj) { |
| | | var data = obj.data; |
| | | console.log(data.æºå主å
ç ); |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'edit') { |
| | | var _obj = obj; |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , area: ['90%', '90%'] |
| | | , title: 'æ«ç 详æ
å表' |
| | | , shade: 0.6 |
| | | , maxmin: true |
| | | , anim: 0 |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/WMSBarCodeDetailsList.html?HInterID=' + data.æºå主å
ç + '&HBillType=3789', 'yes'] |
| | | , resize: false |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/WMSBarCodeDetailsList.html?HInterID=' + data.HSourceInterID + '&HBillType=3789', 'yes'] |
| | | , end: function () { |
| | | |
| | | } |