| | |
| | | "HMaterTypeID": row["HMaterTypeID"] || 0, |
| | | "HMaterType": row["HName"] || "", |
| | | "HWeight": row["æé"] || 0, |
| | | "HProcID": row["HProcID"] || 0, |
| | | "HProcName": row["å·¥åº"] || "", |
| | | |
| | | |
| | | |
| | | }); |
| | | } |
| | |
| | | "HWeight": "0" |
| | | , "HMaterTypeID": "0" |
| | | , "HMaterType": "" |
| | | , "HProcID": "0" |
| | | , "HProcName": "" |
| | | |
| | | |
| | | }; |
| | |
| | | , { type: 'numbers', field: 'åºå·', title: 'åºå·', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HMaterTypeID', title: 'HMaterTypeID', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HMaterType', title: 'ç©æåç±»', edit: 'text', event: "HMaterTypeList", style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HProcID', title: 'HProcID', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HProcName', title: 'å·¥åº', edit: 'text', event: "HHProcList", style: 'background-color: #f9f9f9;' } |
| | | |
| | | , { field: 'HWeight', title: 'æé', edit: 'text', style: 'background-color: #f9f9f9;' } |
| | | |
| | |
| | | window.tableEditObj = obj; |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | |
| | | |
| | | if (obj.event == "HHProcList") { |
| | | //CusType = 2; |
| | | // æ°å¢ï¼å°ç¼è¾å¯¹è±¡objèµå¼ç»å
¨å±åéï¼ä¾GetProjectMoneyValueä½¿ç¨ |
| | | //tableEditObj = obj; |
| | | // æå¼å¨å
·ç®¡çå°çªä½ï¼åæä»£ç ä¸åï¼ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', |
| | | area: ['90%', '90%'], |
| | | title: '项ç®è´¹ç¨å表', |
| | | shift: 2, |
| | | content: ["../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Process.html", "yes"], |
| | | // 以ä¸åæä»£ç å
¨é¨ä¿çï¼æ éä¿®æ¹ |
| | | btn: ['ç¡®å®', 'åæ¶'], |
| | | btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //OptionData = checkStatus.data[0]; |
| | | obj.update({ |
| | | "HProcID": checkStatus.data[0].HItemID |
| | | , "HProcName": checkStatus.data[0].å·¥åºåç§° |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | , end: function () { |
| | | //obj.update({ |
| | | // "HBeginAddr": OptionData.HItemID |
| | | // , "HBeginAddrName": OptionData.å°åºåç§° |
| | | //}) |
| | | } |
| | | }) |
| | | } |
| | | if (obj.event == "HMaterTypeList") { |
| | | //CusType = 2; |
| | | // æ°å¢ï¼å°ç¼è¾å¯¹è±¡objèµå¼ç»å
¨å±åéï¼ä¾GetProjectMoneyValueä½¿ç¨ |