其他入库单缓存列表; 网格 改为动态加载;
采购入库单缓存列表; 网格 改为动态加载;
委外入库单缓存列表; 网格 改为动态加载;
生产领料单缓存列表; 网格 改为动态加载;
生产入库单缓存列表; 网格 改为动态加载;
销售出库单缓存列表; 网格 改为动态加载;
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <NameOfLastUsedPublishProfile>JFTM</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>D:\ç½ç«åå¸\å端代ç \MES-WEB-TM\MESWMS-LayUI\WebTM\Properties\PublishProfiles\JFTM.pubxml</NameOfLastUsedPublishProfile> |
| | | <ProjectView>ProjectFiles</ProjectView> |
| | | <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> |
| | | <UseIISExpress>true</UseIISExpress> |
| | |
| | | //var WEBURL = "http://192.168.16.80:8011/"; //åå
¬å®¤æå¡å¨ |
| | | //var WEBURL = "http://localhost:8081/SWEAPI/"; //chæ¬å°*/ |
| | | //var WEBURL = "http://61.164.86.218:8099/ABAPI/"; |
| | | var WEBURL = "http://localhost:8080/API/"; //颿忬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8080/API/"; //颿忬å°é
ç½® |
| | | //var WEBURL = "http://localhost/WEBAPI/"; //é¢å®¶å°å¼æºæ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/lubao"; //颿忬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨ä¹æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBao/API/"; //æ¨ä¹æ¬å°é
ç½® |
| | | var WEBURL = "http://localhost:8082/API/"; //æè´ºæ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //ä½ææ°æ¬å°é
ç½® |
| | | //var WEBURL = "http://10.1.4.155/API/"; //æ±ä¸°å®¢æ·NEW |
| | | //var WEBURL = "http://47.96.97.237/API/"; //æºäºæå¡å¨ |
| | |
| | | }; |
| | | table.render(option); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }) |
| | | |
| | |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | , element = layui.element; |
| | | var option = {}; |
| | | //æ¸
空çé¢ new |
| | | var sBillType = '1205' |
| | | //卿å è½½æºåç±»åå表 new |
| | |
| | | }); |
| | | |
| | | form.on('submit(cmdRefresh)', function () {//å·æ° |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/chanpinruk' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }), |
| | | table.render(option); |
| | | table.render({ |
| | | elem: '#yd-table' |
| | | , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json' |
| | |
| | | }); |
| | | |
| | | |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/chanpinruk' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | //table.render({ |
| | | // elem: '#dj-table' |
| | | // , url: GetWEBURL() + '/Web/chanpinruk' |
| | | // , toolbar: '#toolbarDemo' |
| | | // , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | // , cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | // , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | // , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | // , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | // , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | // , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | // , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | // , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | // ]] |
| | | // , height: 500 |
| | | // , done: function () { |
| | | // layer.closeAll("loading"); |
| | | // } |
| | | //}) |
| | | |
| | | |
| | | //卿å |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/chanpinruk1", |
| | | type: "GET", |
| | | async: false, |
| | | data: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }, |
| | | //async: false, |
| | | success: function (data1) { |
| | | |
| | | if (data1.count == 1) { |
| | | |
| | | var data = []; |
| | | var col = []; |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in data1.list) { |
| | | data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType }); |
| | | } |
| | | //å¨å表左边添å å¾éæ¡ |
| | | col.push({ type: 'radio', fixed: 'left' }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, "") > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd HH:mm:ss')}}</div>", width: 200 }); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 }); |
| | | } |
| | | } |
| | | } |
| | | |
| | | option = { |
| | | elem: '#dj-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 500 |
| | | , page: true //å¼å¯å页 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [col] |
| | | , data: data1.data |
| | | }; |
| | | table.render(option); |
| | | } else { |
| | | option = { |
| | | elem: '#dj-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 500 |
| | | , page: true //å¼å¯å页 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | ]] |
| | | , data: [] |
| | | }; |
| | | table.render(option); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }) |
| | | |
| | | |
| | | |
| | | //å·²ä¸ä¼ å表 |
| | | table.render({ |
| | | elem: '#yd-table' |
| | |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | , element = layui.element; |
| | | var option = {}; |
| | | //æ¸
空çé¢ new |
| | | |
| | | |
| | |
| | | }); |
| | | //å·æ° |
| | | form.on('submit(cmdRefresh)', function () { |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/chanpinruk' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }), |
| | | //卿å-å·æ°ç¼åå表 |
| | | table.render(option), |
| | | //å·æ°å·²ä¸ä¼ å表 |
| | | table.render({ |
| | | elem: '#yd-table' |
| | | , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json' |
| | |
| | | } |
| | | }); |
| | | |
| | | |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/chanpinruk' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | ////ç¼åå表 |
| | | //table.render({ |
| | | // elem: '#dj-table' |
| | | // , url: GetWEBURL() + '/Web/chanpinruk' |
| | | // , toolbar: '#toolbarDemo' |
| | | // , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | // , cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | // , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | // , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | // , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | // , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | // , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | // , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | // , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | // ]] |
| | | // , height: 500 |
| | | // , done: function () { |
| | | // layer.closeAll("loading"); |
| | | // } |
| | | //}) |
| | | |
| | | |
| | | //卿å |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/chanpinruk1", |
| | | type: "GET", |
| | | async: false, |
| | | data: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }, |
| | | //async: false, |
| | | success: function (data1) { |
| | | |
| | | if (data1.count == 1) { |
| | | |
| | | var data = []; |
| | | var col = []; |
| | | layer.msg(data1.list[0].ColmCols); |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in data1.list) { |
| | | data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType }); |
| | | } |
| | | //å¨å表左边添å å¾éæ¡ |
| | | col.push({ type: 'radio', fixed: 'left' }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, "") > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd HH:mm:ss')}}</div>", width: 200 }); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 }); |
| | | } |
| | | } |
| | | } |
| | | |
| | | option = { |
| | | elem: '#dj-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 500 |
| | | , page: true //å¼å¯å页 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [col] |
| | | , data: data1.data |
| | | }; |
| | | table.render(option); |
| | | } else { |
| | | option = { |
| | | elem: '#dj-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 500 |
| | | , page: true //å¼å¯å页 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | ]] |
| | | , data: [] |
| | | }; |
| | | table.render(option); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 2000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }) |
| | | |
| | | |
| | | |
| | | //å·²ä¸ä¼ å表 |
| | | table.render({ |
| | | elem: '#yd-table' |
| | |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | var option = {} |
| | | |
| | | //æ¸
空çé¢ new |
| | | |
| | | var sBillType = '1202' |
| | |
| | | } |
| | | }) |
| | | }); |
| | | var option = { |
| | | elem: '#dj-table' |
| | | //, url: GetWEBURL() + '/ProductIn/DisBillEntryList_Json' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | } |
| | | |
| | | |
| | | table.render({ |
| | | elem: '#sy-table' |
| | |
| | | |
| | | // url: GetWEBURL() + '/Web/chanpinruk', |
| | | form.on('submit(cmdRefresh)', function () {//å·æ° |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/chanpinruk' |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }), |
| | | ////å·æ°ç¼ååè¡¨çæ¸²æ |
| | | //table.render({ |
| | | // elem: '#dj-table' |
| | | // , url: GetWEBURL() + '/Web/chanpinruk' |
| | | // , toolbar: '#toolbarDemo' |
| | | // , defaultToolbar: [] |
| | | // , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | // , cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | // , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | // , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | // , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | // , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | // , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | // , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | // , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | // ]] |
| | | // , height: 500 |
| | | // , done: function () { |
| | | // layer.closeAll("loading"); |
| | | // } |
| | | //}), |
| | | |
| | | //卿å表-å·æ°ç¼åå表 |
| | | table.render(option); |
| | | |
| | | //å·æ°å·²ä¸ä¼ å表 |
| | | table.render({ |
| | | elem: '#yd-table' |
| | | , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json' |
| | |
| | | }) |
| | | }); |
| | | |
| | | ////ç¼åå表 |
| | | //table.render({ |
| | | // elem: '#dj-table' |
| | | // , url: GetWEBURL() + '/Web/chanpinruk' |
| | | // , toolbar: '#toolbarDemo' |
| | | // , defaultToolbar: [] |
| | | // , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | // , cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | // , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | // , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | // , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | // , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | // , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | // , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | // , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | // ]] |
| | | // , height: 500 |
| | | // , done: function () { |
| | | // layer.closeAll("loading"); |
| | | // } |
| | | //}) |
| | | |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/chanpinruk' |
| | | , toolbar: '#toolbarDemo' |
| | | , defaultToolbar: [] |
| | | , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | |
| | | //卿å-ç¼åå表 |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/chanpinruk1", |
| | | type: "GET", |
| | | async: false, |
| | | data: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }, |
| | | //async: false, |
| | | success: function (data1) { |
| | | |
| | | if (data1.count == 1) { |
| | | |
| | | var data = []; |
| | | var col = []; |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in data1.list) { |
| | | data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType }); |
| | | } |
| | | //å¨å表左边添å å¾éæ¡ |
| | | col.push({ type: 'radio', fixed: 'left' }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, "") > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd HH:mm:ss')}}</div>", width: 200 }); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 }); |
| | | } |
| | | } |
| | | } |
| | | |
| | | option = { |
| | | elem: '#dj-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 500 |
| | | , page: true //å¼å¯å页 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [col] |
| | | , data: data1.data |
| | | }; |
| | | table.render(option); |
| | | } else { |
| | | option = { |
| | | elem: '#dj-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 500 |
| | | , page: true //å¼å¯å页 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | ]] |
| | | , data: [] |
| | | }; |
| | | table.render(option); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }) |
| | | |
| | | |
| | | //å·²ä¸ä¼ å表 |
| | | table.render({ |
| | |
| | | |
| | | var sBillType = '1203'; |
| | | var col = []; |
| | | var option = {} |
| | | //卿å è½½æºåç±»åå表 new |
| | | |
| | | //å è½½æºåç±»å |
| | |
| | | //åå§åçé¢ |
| | | function set_ClearBill() { |
| | | get_Display(); |
| | | |
| | | |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/chanpinruk' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, sHMaker: 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: '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(option); |
| | | //å·²ä¸ä¼ å表 |
| | | table.render({ |
| | | elem: '#yd-table' |
| | |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | time: 2000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | |
| | | } |
| | | } |
| | | |
| | | //卿æ¾ç¤ºåå |
| | | table.render({ |
| | | option = { |
| | | elem: '#dj-table' |
| | | , cols: [col] |
| | | , data: data1.data |
| | |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | }); |
| | | }; |
| | | |
| | | //卿æ¾ç¤ºåå |
| | | table.render(option); |
| | | |
| | | layer.close(ajaxLoad); |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | //å·æ°æç»é¡µç¾ |
| | | table.render({ |
| | | elem: '#mx-table' |
| | |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | var sBillType = '1201' |
| | | var option = {}; |
| | | //æ¸
空çé¢ new |
| | | |
| | | //卿å è½½æºåç±»åå表 new |
| | |
| | | //å·æ° |
| | | form.on('submit(cmdRefresh)', function () {// |
| | | var sBillType = '1201' |
| | | 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: 120 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }); |
| | | //卿å-å·æ°ç¼åå表 |
| | | table.render(option); |
| | | table.render({ |
| | | elem: '#yd-table' |
| | | , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json' |
| | |
| | | }); |
| | | }); |
| | | |
| | | ////ç¼åå表 |
| | | //table.render({ |
| | | // elem: '#dj-table' |
| | | // , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | // , toolbar: '#toolbarDemo' |
| | | // , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | // , cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | // , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | // , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | // , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | // , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | // , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | // , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | // , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | // ]] |
| | | // , height: 500 |
| | | // , done: function () { |
| | | // layer.closeAll("loading"); |
| | | // } |
| | | //}) |
| | | |
| | | //ç¼åå表 |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/chanpinruk' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | |
| | | |
| | | //卿å-ç¼åå表 |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/DisBillEntryList_Mate_Webs_Json", |
| | | type: "GET", |
| | | async: false, |
| | | data: { HBillType: sBillType, sWhere: '' }, |
| | | //async: false, |
| | | success: function (data1) { |
| | | |
| | | if (data1.count == 1) { |
| | | |
| | | var data = []; |
| | | var col = []; |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in data1.list) { |
| | | data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType }); |
| | | } |
| | | //å¨å表左边添å å¾éæ¡ |
| | | col.push({ type: 'radio', fixed: 'left' }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, "") > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd HH:mm:ss')}}</div>", width: 200 }); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 }); |
| | | } |
| | | } |
| | | } |
| | | |
| | | option = { |
| | | elem: '#dj-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 500 |
| | | , page: true //å¼å¯å页 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [col] |
| | | , data: data1.data |
| | | }; |
| | | table.render(option); |
| | | } else { |
| | | option = { |
| | | elem: '#dj-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 500 |
| | | , page: true //å¼å¯å页 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | ]] |
| | | , data: [] |
| | | }; |
| | | table.render(option); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }) |
| | | |
| | | |
| | | //å·²ä¸ä¼ å表 |
| | | table.render({ |
| | | elem: '#yd-table' |
| | |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element; |
| | | , element = layui.element; |
| | | var option = {}; |
| | | //æ¸
空çé¢ new |
| | | var sBillType = '1210' |
| | | //卿å è½½æºåç±»åå表 new |
| | |
| | | }); |
| | | //å·æ° |
| | | form.on('submit(cmdRefresh)', function () {// |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/chanpinruk' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }), |
| | | table.render(option); |
| | | table.render({ |
| | | elem: '#yd-table' |
| | | , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json' |
| | |
| | | |
| | | |
| | | |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/chanpinruk' |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | //table.render({ |
| | | // elem: '#dj-table' |
| | | // , url: GetWEBURL() + '/Web/chanpinruk' |
| | | // , toolbar: '#toolbarDemo' |
| | | // , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | // , cols: [[ |
| | | // { type: 'radio' } |
| | | // , { field: 'HInterID', title: 'åæ®å
ç ', width: 120 } |
| | | // , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | // , { field: 'HMaker', title: 'å¶å人', width: 120 } |
| | | // , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | // , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | // , { field: 'HSourceBillNo', title: 'æºååå·', width: 150 } |
| | | // , { field: 'HRedBlueFlag', title: '红èå', width: 120 } |
| | | // , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | // ]] |
| | | // , height: 500 |
| | | // , done: function () { |
| | | // layer.closeAll("loading"); |
| | | // } |
| | | //}) |
| | | |
| | | |
| | | |
| | | //卿å |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/chanpinruk1", |
| | | type: "GET", |
| | | async: false, |
| | | data: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }, |
| | | //async: false, |
| | | success: function (data1) { |
| | | |
| | | if (data1.count == 1) { |
| | | |
| | | var data = []; |
| | | var col = []; |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in data1.list) { |
| | | data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType }); |
| | | } |
| | | //å¨å表左边添å å¾éæ¡ |
| | | col.push({ type: 'radio', fixed: 'left' }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, "") > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd HH:mm:ss')}}</div>", width: 200 }); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 }); |
| | | } |
| | | } |
| | | } |
| | | |
| | | option = { |
| | | elem: '#dj-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 500 |
| | | , page: true //å¼å¯å页 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [col] |
| | | , data: data1.data |
| | | }; |
| | | table.render(option); |
| | | } else { |
| | | option = { |
| | | elem: '#dj-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 500 |
| | | , page: true //å¼å¯å页 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 150 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | ]] |
| | | , data: [] |
| | | }; |
| | | table.render(option); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }) |
| | | |
| | | |
| | | |
| | | |
| | | //å·²ä¸ä¼ å表 |
| | | table.render({ |
| | | elem: '#yd-table' |