| | |
| | | <div style="padding: 2px; "> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Cancel" id="Cancel">éåº</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btn-Print" id="btn-Print">æå°ç å</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btn-PrintByCusDefine" id="btn-PrintByCusDefine">æå°ç å(客æ·ç©æ)</button> |
| | | </div> |
| | | |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | |
| | | }) |
| | | //#endregion |
| | | |
| | | //#region æå°ç å(客æ·èªå®ä¹) |
| | | form.on('submit(btn-PrintByCusDefine)', function () { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | | , title: 'æå°æ¨¡çéæ©' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + linterid + '&MyMsg=' + linterid + '&Type=Kf_SellOutBillList_BarCodeNote_ByCusDefine', 'yes'] |
| | | , resize: false |
| | | }) |
| | | }) |
| | | //#endregion |
| | | |
| | | //#region å表0ï¼å¤´å·¥å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable0)', function (obj) { |
| | | switch (obj.event) { |
| | |
| | | , height: 550 |
| | | //, page: true |
| | | , cellMinWidth: 90 |
| | | //, limit: 50 |
| | | , limit: 5000 |
| | | , totalRow: true |
| | | //, limits: [50, 500, 5000, 20000] |
| | | }; |
| | | |
| | |
| | | , height: 550 |
| | | //, page: true |
| | | , cellMinWidth: 90 |
| | | //, limit: 50 |
| | | , limit: 5000 |
| | | , totalRow: true |
| | | //, limits: [50, 500, 5000, 20000] |
| | | }; |
| | | |
| | |
| | | , height: 550 |
| | | //, page: true |
| | | , cellMinWidth: 90 |
| | | //, limit: 50 |
| | | , limit: 5000 |
| | | , totalRow: true |
| | | //, limits: [50, 500, 5000, 20000] |
| | | }; |
| | | } |
| | |
| | | if ($.inArray(data[i].name, titleData0) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else if ($.inArray(data[i].name, totalArray) > -1) { |
| | | else if ($.inArray(data[i].name, totalArray) > -1 || (data[i].Type == "Decimal" || data[i].Type == "Int32")) { //计ç®å |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 }); |
| | | } else { |
| | | switch (data[i].Type) { |
| | |
| | | //#region 渲æè¡¨1 |
| | | function setInit_mainTable1(data1) { |
| | | //éè¦è®¾ç½®å计è¡çå |
| | | var totalArray = []; |
| | | var totalArray = ["æ¬è²å计"]; |
| | | |
| | | //æ´çå表çå |
| | | var data = []; |
| | |
| | | if ($.inArray(data[i].name, titleData1) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else if ($.inArray(data[i].name, totalArray) > -1) { |
| | | else if ($.inArray(data[i].name, totalArray) > -1 || (data[i].Type == "Decimal" || data[i].Type == "Int32")) { //计ç®å |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 }); |
| | | } else { |
| | | switch (data[i].Type) { |
| | |
| | | if ($.inArray(data[i].name, titleData2) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else if ($.inArray(data[i].name, totalArray) > -1) { |
| | | else if ($.inArray(data[i].name, totalArray) > -1 || (data[i].Type == "Decimal" || data[i].Type == "Int32")) { //计ç®å |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 }); |
| | | } else { |
| | | switch (data[i].Type) { |