| | |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HInterID" id="HInterID" value="0"> |
| | | <input type="hidden" name="HSTOCKORGID" id="HSTOCKORGID" lay-verify="HSTOCKORGID"> |
| | | <input type="hidden" name="HSTOCKORGID" id="HSTOCKORGID" lay-verify="HSTOCKORGID" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | |
| | | <input type="text" name="HManagerName" id="HManagerName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HManagerID" id="HManagerID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HManagerList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">éåå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="" id="" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="XDHList" id="XDHList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | |
| | | |
| | | var rowdata = [{ |
| | | "HMaterID": 0, "ç©æä»£ç ": "", "ç©æåç§°": "", "è§æ ¼åå·": "", "HUnitID": 0, "计éåä½": "", "HWHID": "0", "åè´§ä»åº": "", |
| | | "HQty": "0", "HPrice": "0", "HMoney": "0", "HRemark": "" |
| | | "HQty": "0", "HPrice": "0", "HMoney": "0", "HRemark": "", |
| | | "HSourceBillNo": 0, "HSourceBillType": 0, "HSourceInterID": 0, "HSourceEntryID": 0, |
| | | }]; |
| | | |
| | | // åå§åç |
| | |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { |
| | | "HMaterID": 0, "ç©æä»£ç ": "", "ç©æåç§°": "", "è§æ ¼åå·": "", "HUnitID": 0, "计éåä½": "", "HWHID": "0", "åè´§ä»åº": "", |
| | | "HQty": "0", "HPrice": "0", "HMoney": "0", "HRemark": "" |
| | | "HQty": "0", "HPrice": "0", "HMoney": "0", "HRemark": "", |
| | | "HSourceBillNo": 0, "HSourceBillType": 0, "HSourceInterID": 0, "HSourceEntryID": 0, |
| | | }; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | |
| | | } |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region 表头信æ¯éæ©åæ®å¼¹çª |
| | | form.on('submit(XDHList)', function () { |
| | | |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: 'éå®è®¢åå表' //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ["../../éå®ç®¡ç/éå®è®¢å/Xs_SeOrderBillList.html", "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //æé®ä¸ çåè° |
| | | var iframeWindow = window["layui-layer-iframe" + index];//è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//è·åéä¸çæ°æ® |
| | | |
| | | if (checkStatus.data.length == 0) { |
| | | return layer.msg("请è³å°éæ©ä¸æ¡æ°æ®!"); |
| | | } |
| | | //layer.alert("ä½ å·²éæ©" + checkStatus.data.length + "æ¡æ°æ®"); |
| | | //è·åéå®è®¢å代ç |
| | | var ProcessNumber = []; |
| | | for (var i = 0; i < checkStatus.data.length; i++) { |
| | | ProcessNumber.push(checkStatus.data[i]); |
| | | } |
| | | for (var i = 0; i < ProcessNumber.length; i++) { |
| | | option.data.push({ |
| | | "HMaterID": checkStatus.data[i].HMaterID |
| | | , "ç©æä»£ç ": checkStatus.data[i].ç©æä»£ç |
| | | , "ç©æåç§°": checkStatus.data[i].ç©æåç§° |
| | | , "è§æ ¼åå·": checkStatus.data[i].è§æ ¼åå· |
| | | , "HUnitID": checkStatus.data[i].HUnitID |
| | | , "计éåä½": checkStatus.data[i].计éåä½ |
| | | ,"HWHID": "0" |
| | | , "åè´§ä»åº": "" |
| | | , "HQty": "0", "HPrice": "0", "HMoney": "0", "HRemark": "" |
| | | |
| | | , "HSourceBillNo": checkStatus.data[i].åæ®å· |
| | | , "HSourceBillType": checkStatus.data[i].HBillType |
| | | , "HSourceInterID": checkStatus.data[i].hmainid |
| | | , "HSourceEntryID": checkStatus.data[i].hsubid |
| | | }) |
| | | } |
| | | table.render(option); |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | |
| | | }); |
| | | }); |
| | | //#endregion |
| | | |
| | | |
| | | //#endregion |
| | | |
| | | |
| | |
| | | , cols: [[ //å表 |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', width: 100, totalRow: true } |
| | | , { type: 'HSourceBillNo', title: 'æºåå·', width: 100, hide: true }//æºåå· |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100, hide: true }//æºåç±»å |
| | | , { type: 'HSourceInterID', title: 'æºå主å
ç ', width: 100, hide: true }//æºå主å
ç |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', width: 100, hide: true }//æºååå
ç |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 100, hide: true } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 150, edit: 'text', event: "HMaterID" }//f7 |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 150, } |
| | |
| | | { |
| | | "HMaterID": subdata[i].HMaterID, "ç©æä»£ç ": subdata[i].ç©æä»£ç , "ç©æåç§°": subdata[i].ç©æåç§°, "è§æ ¼åå·": subdata[i].è§æ ¼åå·, "HUnitID": subdata[i].HUnitID, "计éåä½": subdata[i].计éåä½, |
| | | "HWHID": subdata[i].HWHID, "åè´§ä»åº": subdata[i].åè´§ä»åº, "HQty": subdata[i].æ°é, "HPrice": subdata[i].åä»·, "HMoney": subdata[i].éé¢, "HRemark": subdata[i].表ä½å¤æ³¨ |
| | | , "HSourceBillNo": subdata[i].æºååå·, //æºåå· |
| | | "HSourceBillType": subdata[i].æºåç±»å, //æºåç±»å |
| | | "HSourceInterID": subdata[i].æºå主å
ç , //æºå主å
ç |
| | | "HSourceEntryID": subdata[i].æºååå
ç //æºååå
ç |
| | | } |
| | | ) |
| | | } |