| | |
| | | <label class="layui-form-label" id="BT_HWorksNumber">å·¥å代ç </label> |
| | | <div class="layui-input-inline"> |
| | | <select name="HWorksNumber" id="HWorksNumber" lay-filter="HWorksNumber" class="layui-input" value="" style="float:left;width:150px"> |
| | | <!--<option value="0">èæ</option>--> |
| | | |
| | | </select> |
| | | </div> |
| | | </div> |
| | |
| | | <label class="layui-form-label" id="BT_HBarCodeType">æ¡ç ç±»å</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="HBarCodeType" id="HBarCodeType" lay-filter="HBarCodeType" class="layui-input" value="" style="float:left;width:150px"> |
| | | <!--<option value="11">å¯ä¸æ¡ç </option>--> |
| | | |
| | | </select> |
| | | </div> |
| | | </div> |
| | |
| | | set_HBarCodeType(); |
| | | |
| | | var rowdata = [{ |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", "HMaterSpec": "", "HBatchNo": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HBQty": 0, "HMinQty": 0, "HPackQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "", "HCoilNO": "", "HFurnaceNO": "", "HFactory": "", |
| | | "HMaterID": 0, "HSubID": 0, "HSupID": 0, "HSupNumber": "", "HSupName": "", "HMaterCode": "", "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", "HMaterSpec": "", "HBatchNo": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HBQty": 0, "HMinQty": 0, "HPackQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "", "HCoilNO": "", "HFurnaceNO": "", "HFactory": "", |
| | | "HAuxQty": 0, "HheatNO": "", "HProduceDate": Format(new Date(), "yyyy-MM-dd"), "HExpiryDate": Format(new Date(), "yyyy-MM-dd"), "HExpirationDateFlag": 0, "HEmpID": sessionStorage["HEmpID"], "HEmpNumber": sessionStorage["HEmpNumber"], "HEmpName": sessionStorage["HEmpName"], "HGroupID": 0, "HGroupNumber": "", "HGroupName": "", "HMTONo": "", "HCusModel": "", "HCusMaterName": "", "HCheckEmpName": "" |
| | | }]; |
| | | //åå§åè¡¨æ ¼ |
| | |
| | | var AddRow = table.cache['mainTable']; |
| | | |
| | | var NewRow = { |
| | | "HMaterID": 0, "HMaterCode": "", "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", "HMaterSpec": "", "HBatchNo": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HBQty": 0, "HMinQty": 0, "HPackQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "", "HCoilNO": "", "HFurnaceNO": "", "HFactory": "", |
| | | "HMaterID": 0, "HSubID": 0, "HSupID": 0,"HSupNumber": "", "HSupName": "", "HMaterCode": "", "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", "HMaterSpec": "", "HBatchNo": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0, "HQtyMust": 0, "HQty": 0, "HBQty": 0, "HMinQty": 0, "HPackQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0, "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"], "HRemark": "", "HCoilNO": "", "HFurnaceNO": "", "HFactory": "", |
| | | "HAuxQty": 0, "HheatNO": "", "HProduceDate": Format(new Date(), "yyyy-MM-dd"), "HExpiryDate": Format(new Date(), "yyyy-MM-dd"), "HExpirationDateFlag": 0, "HEmpID": sessionStorage["HEmpID"], "HEmpNumber": sessionStorage["HEmpNumber"], "HEmpName": sessionStorage["HEmpName"], "HGroupID": 0, "HGroupNumber": "", "HGroupName": "", "HMTONo": "", "HCusModel": "", "HCusMaterName": "", "HCheckEmpName": "" |
| | | }; |
| | | //console.log(NewRow); |
| | |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢æææ¹æ³ |
| | | |
| | | //åå§å表åæä»¶ |
| | | function set_InitFrom() { |
| | | laydate.render({ |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //è·åå·¥å代ç |
| | | function set_HWorksNumber() { |
| | | //è·åå·¥å代ç |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //è·åæ¡ç ç±»å |
| | | function set_HBarCodeType() { |
| | | //è·åæ¡ç ç±»å代ç |
| | |
| | | , { field: 'HGroupNumber', title: 'çç»ä»£ç ', edit: 'text', width: 200, event: 'HGroupNumber' } |
| | | , { field: 'HGroupName', title: 'çç»åç§°', width: 200 } |
| | | , { field: 'HCheckEmpName', title: 'æ£éªå', width: 200, edit: 'text' } |
| | | , { field: 'HCusID', title: '客æ·ID', width: 100, hide: true } |
| | | , { field: 'HCusNumber', title: '客æ·ä»£ç ', edit: 'text', event: 'HCusNumber', width: 120 } |
| | | , { field: 'HCusName', title: '客æ·åç§°', width: 120 } |
| | | , { field: 'HSupID', title: 'ä¾åºåid', width: 100, hide: true } |
| | | , { field: 'HSupNumber', title: 'ä¾åºå代ç ', edit: 'text', event: 'HSupNumber', width: 120 } |
| | | , { field: 'HSupName', title: 'ä¾åºååç§°', width: 120 } |
| | | , { field: 'HBatchNo', title: 'æ¹å·', edit: 'text', width: 100 } |
| | | , { field: 'HMTONo', title: '计åè·è¸ªå·', width: 100, edit: 'text' } |
| | | , { field: 'HQty', title: 'æ°é', edit: 'text', width: 100, totalRow: true } |
| | |
| | | , { field: 'HPackQty', title: 'å¤ç®±æ°', edit: 'text', width: 100, totalRow: true } |
| | | , { field: 'HCoilNO', title: 'é¢å·æå
å·', edit: 'text', width: 100 } |
| | | , { field: 'HFurnaceNO', title: 'çå·', edit: 'text', width: 100 } |
| | | , { field: 'HFactory', title: 'åå', edit: 'text', width: 100 } |
| | | , { field: 'HCusID', title: '客æ·ID', width: 100, hide: true } |
| | | , { field: 'HCusNumber', title: '客æ·ä»£ç ', edit: 'text', event: 'HCusNumber', width: 120 } |
| | | , { field: 'HCusName', title: '客æ·åç§°', width: 120 } |
| | | , { field: 'HFactory', title: 'åå', edit: 'text', width: 100 } |
| | | , { field: 'HSeOrderBillNo', title: 'éå®è®¢åå·', width: 200 } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text', width: 100 } |
| | | , { field: 'HProduceDate', title: 'çäº§æ¥æ', event: 'HProduceDate', width: 100 } |
| | |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | } |
| | | |
| | | //åå§æ¡ç ä¿¡æ¯è¡¨æ ¼ |
| | | function set_CountGrid() { |
| | | //表头 |
| | |
| | | } |
| | | }; |
| | | } |
| | | |
| | | //åå§åæ¡£æ¡å表信æ¯è¡¨æ ¼ |
| | | function set_InitGrid2() { |
| | | //表头 |
| | |
| | | } |
| | | }; |
| | | } |
| | | |
| | | //æ æºåæ°å¢ |
| | | function set_AddFNew() { |
| | | option.data = [{ |
| | | "HMainID": 0, "HSubID": 0, "HSourceBillSEQ": 0, "HBillNo": "", "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HMaterModel": "" |
| | | "HMainID": 0, "HSubID": 0, "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSourceBillSEQ": 0, "HBillNo": "", "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HMaterModel": "" |
| | | , "HAuxPropID": 0, "HAuxPropNumber": "", "HAuxPropName": "", "HUnitID": 0, "HUnitNumber": "", "HUnitName": "", "HBatchNo": "", "HGiveAwayFlag": 0 |
| | | , "HQty": 0, "HMinQty": '', "HBQty": 0, "HPackQty": 0, "HDate": "", "HCusID": 0, "HCusNumber": "", "HCusName": "", "HSeOrderBillNo": "", "HRemark": "" |
| | | , "HCoilNO": "", "HFurnaceNO": "", "HFactory": "", |
| | |
| | | table.render(option); |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | //DisPlay_HideColumn1(); |
| | | //DisPlay_HideColumn2(); |
| | | } |
| | | |
| | | function set_AddFNew1() { |
| | |
| | | }]; |
| | | table.render(option1); |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | //DisPlay_HideColumn(); |
| | | DisPlay_HideColumn1(); |
| | | //DisPlay_HideColumn2(); |
| | | } |
| | | |
| | | function set_AddFNew2() { |
| | | option2.data = []; |
| | | table.render(option2); |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | //DisPlay_HideColumn(); |
| | | //DisPlay_HideColumn1(); |
| | | DisPlay_HideColumn2(); |
| | | } |
| | | |
| | |
| | | |
| | | return [year, month, day].join('-'); |
| | | } |
| | | |
| | | //å¢å ä¸è¡ |
| | | function btnAddLine(NewRow) { |
| | | //var tableBak = table.cache["mainTable"]; //è·åä¹åç¼è¾è¿çè¡¨æ ¼æ°æ® |
| | |
| | | //rows++; |
| | | layer.msg(get_MessageError('[3899-2-005]å¢å ä¸è¡æé®ï¼', sessionStorage["HTranSlate"])) |
| | | } |
| | | |
| | | //å¤å¶ä¸è¡ |
| | | function btnCopyLine(data) { |
| | | data[0].HQty = ''; |
| | |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //è¡¨æ ¼è¡å
äºä»¶å¿«æ·é®çé |
| | | function set_GridCellCheck(obj) { |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | |
| | | |
| | | childData = null; |
| | | } |
| | | |
| | | |
| | | |
| | | childPage = null; |
| | | currRowIndex = 0; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | } |
| | | }); |
| | | } |
| | | //ä¾åºå代ç |
| | | if (obj.event === 'HSupNumber') //ä¾åºå代ç |
| | | { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ä¾åºåå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/éè´åºç¡èµæ/Gy_Supplier.html', 'yes'], |
| | | btn: [get_MessageError('[0000-2-051]ç¡®å®', sessionStorage["HTranSlate"]), get_MessageError('[0000-2-052]åæ¶', sessionStorage["HTranSlate"])] |
| | | , 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(get_MessageError('[0000-1-020]è¯·éæ©æ°æ®', sessionStorage["HTranSlate"])); |
| | | } |
| | | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HSupID: checkStatus.data[0].HItemID, |
| | | HSupNumber: checkStatus.data[0].ä¾åºå代ç , |
| | | HSupName: checkStatus.data[0].ä¾åºååç§° |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | obj.event = ""; |
| | | return false; |
| | | } |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //ç»å½æ ¹æ®icå¡å· |
| | | function loginByICCard(HBarCode) { |
| | | var index = layer.load(); |