物料:表格单选框改为复选框
生产领料单:更改选择物料时访问的弹窗页面,重量根据新的物料重新计算
生产领料单列表:相关操作后的刷新操作由页面刷新变为根据过滤条件查询,列设置最后一列不能设置问题修正
| | |
| | | <publishTime>08/16/2021 17:24:30</publishTime> |
| | | </File> |
| | | <File Include="views/颿åè´§/颿åºåº/Kf_MateOutBillLEdit.html"> |
| | | <publishTime>09/22/2023 14:02:53</publishTime> |
| | | <publishTime>09/22/2023 15:25:25</publishTime> |
| | | </File> |
| | | <File Include="views/颿åè´§/颿åºåº/Kf_MateOutBillList.html"> |
| | | <publishTime>09/22/2023 14:35:16</publishTime> |
| | |
| | | , data: [] |
| | | , cellMinWidth: 80 //å
¨å±å®ä¹å¸¸è§åå
æ ¼çæå°å®½åº¦ï¼layui 2.2.1 æ°å¢ |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | { type: 'checkbox' } |
| | | , { field: 'HItemID', title: 'ç©æID', hide: true } |
| | | , { field: 'HNumber', title: 'ç©æä»£ç ' } |
| | | , { field: 'HName', title: 'ç©æåç§°', sort: true } |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/PartInformation.html', 'yes'], |
| | | content: ['../../../views/Baseset/åºç¡èµæ/Gy_MaterialList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | |
| | | option.data[rowIndex + i].HDesignLife = 0; |
| | | option.data[rowIndex + i].HLeaveLife = 0; |
| | | option.data[rowIndex + i].HQty = 1; |
| | | option.data[rowIndex + i].HMoney = 0; |
| | | |
| | | |
| | | //æ ¹æ®ç©æç ç©æå
¬å¼ è®¡ç® éé |
| | | var HWeight = $("#HWeight").val(); |
| | | var HWaterQty = $("#HWaterQty").val(); |
| | | if (option.data[rowIndex + i].HMaterRuleType == "ææ") { |
| | | option.data[rowIndex + i].HQty = option.data[rowIndex + i].HRate * HWeight; |
| | | } else if (option.data[rowIndex + i].HMaterRuleType == "å©å") { |
| | | option.data[rowIndex + i].HQty = option.data[rowIndex + i].HRate * HWaterQty; |
| | | } |
| | | } |
| | | table.render(option); |
| | | |
| | |
| | | case 'btn-print': get_PrintReport(); |
| | | break; |
| | | //å·æ° |
| | | case 'get_Refresh': set_Refresh(); |
| | | case 'btn-reload': set_Refresh(); |
| | | break; |
| | | //å®¡æ ¸æé® ï¼0:å®¡æ ¸ã1:åå®¡æ ¸ï¼ |
| | | case 'btn-Audit': |
| | |
| | | content: '../颿åºåº/Kf_MateOutBillLEdit.html?OperationType=1&linterid=&HSouceBillType=0&closeType=1', |
| | | end: function () { |
| | | //å·æ°é¡µé¢, |
| | | get_FastQuery(table, option); |
| | | /*get_FastQuery(table, option);*/ |
| | | $("#btnSearch").trigger('click'); |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | |
| | | , content: '../颿åºåº/Kf_MateOutBillLEdit.html?OperationType=2&linterid=' + linterid + '&HSouceBillType=0&closeType=1' |
| | | , resize: false, |
| | | end: function () { |
| | | get_FastQuery(table, option); |
| | | //get_FastQuery(table, option); |
| | | $("#btnSearch").trigger('click'); |
| | | } |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | |
| | | , content: '../颿åºåº/Kf_MateOutBillLEdit.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0&closeType=1' |
| | | , resize: false, |
| | | end: function () { |
| | | get_FastQuery(table, option); |
| | | //get_FastQuery(table, option); |
| | | $("#btnSearch").trigger('click'); |
| | | } |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | $("#btnSearch").trigger('click'); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | |
| | | |
| | | //#region å·æ° |
| | | function set_Refresh() { |
| | | $("#btnSearch").click(); |
| | | $("#btnSearch").trigger('click'); |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | //#region éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | for (var i = 1; i < option.cols[0].length; i++) { |
| | | colName += option.cols[0][i]["title"] + ","; |
| | | } |
| | | |
| | |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option.cols[0].length - 2; i++) { |
| | | for (var i = 0; i < option.cols[0].length - 1; i++) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | //éèå |
| | | if (dataCols[1] == 1) { |