| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">客æ·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HCusName" id="HCusName" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;"> |
| | | <input type="hidden" name="HCusID" id="HCusID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HCusList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">éå®å¸å«<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HCurName" id="HCurName" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;"> |
| | |
| | | <label class="layui-form-label">æ±ç<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HExRate" id="HExRate" autocomplete="off" value="0" style="background-color: #efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width:900px;"> |
| | | <label class="layui-form-label">客æ·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-inline" style="width:700px;"> |
| | | <input type="text" name="HCusName" id="HCusName" class="layui-input" value="" style="float: left; width: 465px; background-color: #efefef4d;" readonly> |
| | | <input type="hidden" name="HCusID" id="HCusID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HCusList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æè¦</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HExplanation" id="HExplanation" autocomplete="off" style="width: 501px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">éå®ä¸»ç®¡</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HManagerName" id="HManagerName" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | <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-inline"> |
| | | <label class="layui-form-label">è系人</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HLinkMan" id="HLinkMan" autocomplete="off" value=""> |
| | |
| | | <input class="layui-input" name="HLinkPhone" id="HLinkPhone" autocomplete="off" value=""> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å
é¨è®¢åå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HInnerBillNo" id="HInnerBillNo" style="background-color: #efefef4d;" autocomplete="off" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">夿³¨</label> |
| | |
| | | </div> |
| | | |
| | | <!--éèåæ®µï¼ææ¶æ²¡æç¨å¤--> |
| | | <div class="layui-row" style="display:none;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">éå®ä¸»ç®¡</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HManagerName" id="HManagerName" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly> |
| | | <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-inline"> |
| | | <label class="layui-form-label">å
é¨è®¢åå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HInnerBillNo" id="HInnerBillNo" style="background-color: #efefef4d;" autocomplete="off" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æè¦</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HExplanation" id="HExplanation" autocomplete="off" style="width: 501px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="display:none;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ç®æ¥æ</label> |
| | |
| | | "HMaterID": "0", |
| | | "ç©æä»£ç ": "", |
| | | "ç©æåç§°": "", |
| | | "HItemID": "0", |
| | | "订åç级代ç ": "", |
| | | "订åç级åç§°": "", |
| | | "è§æ ¼åå·": "", |
| | | "HUnitID": "0", |
| | | "计éåä½": "", |
| | |
| | | "HDate": Format(new Date(), 'yyyy-MM-dd'), |
| | | "HOutStockQty": "0", |
| | | "HInvoiceQty": "0", |
| | | "HRemark": "" |
| | | "HRemark": "", |
| | | "HCusMaterNumber": "", |
| | | "HCusModel": "", |
| | | "HCusMaterName": "" |
| | | }; |
| | | switch (obj.event) { |
| | | //æ°å¢ä¸è¡ |
| | |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 150, edit: 'text', event: "HMaterID" }//f7 |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 150, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HOrderLevID', title: 'HOrderLevID', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: '订åç级代ç ', title: '订åç级代ç ', width: 150, edit: 'text', event: "HOrderLevID" }//f7 |
| | | , { field: '订åç级åç§°', title: '订åç级åç§°', width: 150, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HCusMaterNumber', title: '客æ·ç©æç¼ç ', width: 100, edit: 'text' } |
| | | , { field: 'HCusModel', title: '客æ·è§æ ¼åå·', width: 100, edit: 'text' } |
| | | , { field: 'HCusMaterName', title: '客æ·ç©æåç§°', width: 100, edit: 'text' } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HUnitID', title: 'HUnitID', width: 100, hide: true, style: 'background-color:#efefef4d;' } |
| | | , { field: '计éåä½', title: '计éåä½', width: 100, style: 'background-color:#efefef4d;' }//f7 |
| | |
| | | , { field: 'HlineTotal', title: 'ä»·ç¨å计', width: 100, totalRow: true, style: 'background-color:#efefef4d;' } |
| | | , { field: 'HDate', title: 'äº¤è´§æ¥æ', event: "HDate", width: 120 } |
| | | , { field: 'HRemark', title: '夿³¨', width: 100, edit: 'text' } |
| | | |
| | | |
| | | , { field: 'HDiscountRate', title: 'ææ£ç', width: 100, edit: 'text', hide: true } |
| | | , { field: 'HRelTaxPrice', title: 'å®é
å«ç¨åä»·', width: 110, hide: true } |
| | | , { field: 'HTaxMoney', title: 'ç¨é¢', width: 100, hide: true } |
| | |
| | | "HMaterID": "0", |
| | | "ç©æä»£ç ": "", |
| | | "ç©æåç§°": "", |
| | | "HOrderLevID": "0", |
| | | "订åç级代ç ": "", |
| | | "订åç级åç§°": "", |
| | | "è§æ ¼åå·": "", |
| | | "HUnitID": "0", |
| | | "计éåä½": "", |
| | |
| | | "HDate": Format(new Date(),'yyyy-MM-dd'), |
| | | "HOutStockQty": "0", |
| | | "HInvoiceQty": "0", |
| | | "HRemark": "" |
| | | "HRemark": "", |
| | | "HCusMaterNumber": "", |
| | | "HCusModel": "", |
| | | "HCusMaterName": "" |
| | | }]; |
| | | |
| | | option.data = rowdata; |
| | |
| | | "HMaterID": result.data[i]["HMaterID"], |
| | | "ç©æä»£ç ": result.data[i]["ç©æä»£ç "], |
| | | "ç©æåç§°": result.data[i]["ç©æåç§°"], |
| | | "HOrderLevID": result.data[i]["HOrderLevID"], |
| | | "订åç级代ç ": result.data[i]["订åç级代ç "], |
| | | "订åç级åç§°": result.data[i]["订åç级åç§°"], |
| | | "è§æ ¼åå·": result.data[i]["è§æ ¼åå·"], |
| | | "HUnitID": result.data[i]["HUnitID"], |
| | | "计éåä½": result.data[i]["计éåä½"], |
| | |
| | | "HRelTaxPrice": result.data[i]["å®é
å«ç¨åä»·"], |
| | | "HTaxRate": result.data[i]["ç¨ç"], |
| | | "HTaxMoney": result.data[i]["ç¨é¢"], |
| | | "HlineTotal": dealDoubleToFixed(result.data[i]["ä»·ç¨å计"],2), |
| | | "HlineTotal": dealDoubleToFixed(result.data[i]["ä»·ç¨å计"], 2), |
| | | "HlineTotalBB": result.data[i]["æ¬ä½å¸ä»·ç¨å计"], |
| | | "HDate": formatDate(result.data[i]["äº¤è´§æ¥æ"]), |
| | | "HOutStockQty": result.data[i]["åºåºæ°é"], |
| | | "HInvoiceQty": result.data[i]["å¼ç¥¨æ°é"], |
| | | "HRemark": result.data[i]["表ä½å¤æ³¨"] |
| | | "HRemark": result.data[i]["表ä½å¤æ³¨"], |
| | | "HCusMaterNumber": result.data[i]["客æ·ç©æç¼ç "], |
| | | "HCusModel": result.data[i]["客æ·è§æ ¼åå·"], |
| | | "HCusMaterName": result.data[i]["客æ·ç©æåç§°"] |
| | | } |
| | | ); |
| | | } |
| | | option.data = rowdata; |
| | | |
| | | //åºåºæ°éãå¼ç¥¨æ°éä¸å¯ç¼è¾ |
| | | option.cols[0][19].edit = null; |
| | | option.cols[0][20].edit = null; |
| | | option.cols[0][22].edit = null; |
| | | option.cols[0][23].edit = null; |
| | | |
| | | table.render(option); |
| | | |
| | |
| | | var NewRow = { |
| | | "HMaterID": "0", "ç©æä»£ç ": "", "ç©æåç§°": "", "è§æ ¼åå·": "", "HUnitID": "0", "计éåä½": "", "HQty": "0", "HPrice": "0", "HTaxPrice": "0" |
| | | , "HMoney": "0", "HDiscountRate": "0", "HRelTaxPrice": "0", "HTaxRate": "0", "HTaxMoney": "0", "HlineTotal": "0", "HlineTotalBB": "0" |
| | | , "HDate": Format(new Date(), 'yyyy-MM-dd'), "HOutStockQty": "0", "HInvoiceQty": "0", "HRemark": "" |
| | | , "HDate": Format(new Date(), 'yyyy-MM-dd'), "HOutStockQty": "0", "HInvoiceQty": "0", "HRemark": "", "HCusMaterNumber": "", |
| | | "HCusModel": "","HCusMaterName": "" |
| | | } |
| | | btnAddLine(NewRow); |
| | | } |
| | |
| | | } |
| | | }) |
| | | } |
| | | //订åç级 |
| | | if (obj.event == "HOrderLevID") { |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "订åç级å表" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["90%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_OrderLev.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 != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | obj.update({ |
| | | "订åç级åç§°": checkStatus.data[0].订åç级 |
| | | , "订åç级代ç ": checkStatus.data[0].订åç级代ç |
| | | , "HOrderLevID": checkStatus.data[0].HItemID |
| | | }) |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | |
| | | obj.event = ""; |
| | | return false; |
| | | } |