| | |
| | | <input type="text" name="HInnerBillNo" id="HInnerBillNo" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">徿¥åä½</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HSupName" id="HSupName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HSupID" id="HSupID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="Customer" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">徿¥ç±»å</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="HSupTypeID" id="HSupTypeID" class="layui-input" value="" style="float:left;width:150px"> |
| | | <option value="1">ä¾åºå</option> |
| | | <option value="2">客æ·</option> |
| | | <option value="3">车é´é¨é¨</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">徿¥åä½</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HSupName" id="HSupName" readonly class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HSupID" id="HSupID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HSupList" 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 type="text" name="HSourceBillType" id="HSourceBillType" class="layui-input" value="" style="float:left;width:150px;"> |
| | |
| | | <input type="text" name="XDH" id="XDH" class="layui-input" value="" style="float:left;width:150px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æè¦</label> |
| | | <div class="layui-input-inline"> |
| | |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | function getSupType() { |
| | | var type = $("#HSupTypeID").val(); |
| | | console.log(type) |
| | | switch (type) { |
| | | case '1': |
| | | return "SupplierInformation"; |
| | | break; |
| | | case '2': |
| | | return "CustomerInformation"; |
| | | break; |
| | | case '3': |
| | | return "DeptInformation"; |
| | | break; |
| | | } |
| | | } |
| | | //表头信æ¯å¾æ¥åä½å¼¹çª |
| | | form.on('submit(Customer)', function () { |
| | | form.on('submit(HSupList)', function () { |
| | | debugger; |
| | | if ($("#HSupTypeID").val() == 0 || $("#HSupTypeID").val() == null) { |
| | | return layer.msg('è¯·éæ©å¾æ¥ç±»å'); |
| | | } |
| | | //页é¢å±-èªå®ä¹ |
| | | var url = '../../PublicPage/' + getSupType() + '.html'; |
| | | //alert(url); |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/CustomerInformation.html', 'yes'], |
| | | content: [url, 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | } |
| | | $("#HSupName").val(checkStatus.data[0].HName); |
| | | $("#HSupID").val(checkStatus.data[0].HItemID); |
| | | //console.log("aa" + checkStatus.data[0].HName);//éä¸çå¼ |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //表头信æ¯è´è´£äººå¼¹çª |
| | | form.on('submit(ZRPerson)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + sessionStorage["HUserName"]; |
| | | |
| | | if (!AllowLoadData(sSubStr))//æ°æ®éªè¯ |
| | | { |
| | | return false; |
| | | } |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | |
| | | } |
| | | }); |
| | | |
| | | function f_alert(sMsg) { |
| | | layer.alert(sMsg, { icon: 5 }); |
| | | |
| | | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æ¬é¡µé¢ææè¢«è°ç¨çæ¹æ³ |
| | |
| | | , { field: 'HMaterName', title: 'å¨å
·åç§°', edit: 'text', width: 100 } |
| | | , { field: 'HMaterSpec', title: 'è§æ ¼åå·', edit: 'text', width: 100 } |
| | | , { field: 'HPropertyID', title: 'HPropertyID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HPropertyCode', title: 'è¾
å©å±æ§ä»£ç ', edit: 'text', event: 'HPropertyCode', width: 100 } |
| | | , { field: 'HPropertyName', title: 'è¾
å©å±æ§åç§°', edit: 'text', width: 100 } |
| | | , { field: 'HPropertyCode', title: 'è¾
å©å±æ§ä»£ç ', edit: 'text', event: 'HPropertyCode', width: 120 } |
| | | , { field: 'HPropertyName', title: 'è¾
å©å±æ§åç§°', edit: 'text', width: 120 } |
| | | , { field: 'HSecUnitID', title: 'HSecUnitID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HSecUnitCode', title: 'è¾
å©è®¡éåä½ä»£ç ', edit: 'text', event: 'HSecUnitCode', width: 100 } |
| | | , { field: 'HSecUnitName', title: 'è¾
å©è®¡éåä½åç§°', edit: 'text', width: 100 } |
| | | , { field: 'HSecUnitCode', title: 'è¾
å©è®¡éåä½ä»£ç ', edit: 'text', event: 'HSecUnitCode', width: 120 } |
| | | , { field: 'HSecUnitName', title: 'è¾
å©è®¡éåä½åç§°', edit: 'text', width: 120 } |
| | | , { field: 'HSecUnitRate', title: 'æ¢ç®ç', edit: 'text', width: 100 } |
| | | , { field: 'HUnitID', title: 'HUnitID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HUnitCode', title: '计éåä½ä»£ç ', edit: 'text', event: 'HUnitCode', width: 100 } |
| | | , { field: 'HUnitName', title: '计éåä½åç§°', edit: 'text', width: 100 } |
| | | , { field: 'HUnitCode', title: '计éåä½ä»£ç ', edit: 'text', event: 'HUnitCode', width: 120 } |
| | | , { field: 'HUnitName', title: '计éåä½åç§°', edit: 'text', width: 120 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', edit: 'text', width: 100 } |
| | | , { field: 'HDesignLife', title: '设计寿å½', edit: 'text', width: 100 } |
| | | , { field: 'HLeaveLife', title: 'å©ä½å¯¿å½', edit: 'text', width: 100 } |
| | |
| | | , { field: 'HPrice', title: 'åä»·', edit: 'text', width: 100 } |
| | | , { field: 'HMoney', title: 'éé¢', edit: 'text', width: 100 } |
| | | , { field: 'HWHID', title: 'HWHID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HWHCode', title: 'åè´§ä»åºä»£ç ', edit: 'text', event: 'HWHCode', width: 100 } |
| | | , { field: 'HWHName', title: 'åè´§ä»åºåç§°', edit: 'text', width: 100 } |
| | | , { field: 'HWHCode', title: 'åè´§ä»åºä»£ç ', edit: 'text', event: 'HWHCode', width: 120 } |
| | | , { field: 'HWHName', title: 'åè´§ä»åºåç§°', edit: 'text', width: 120 } |
| | | , { field: 'HSPID', title: 'HSPID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HSPCode', title: 'ä»ä½ä»£ç ', edit: 'text', event: 'HSPCode', width: 100 } |
| | | , { field: 'HSPName', title: 'ä»ä½åç§°', edit: 'text', width: 100 } |
| | |
| | | , "XDH": "0" //éåå· |
| | | , "HExplanation": data.æè¦ //æè¦ |
| | | , "HRemark": data.夿³¨ //夿³¨ |
| | | , "HSupTypeID": data.徿¥ç±»å |
| | | , "HSupName": data.徿¥åä½ |
| | | , "HSupID": data.HSupID |
| | | }); |
| | | |
| | | } else { |
| | |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | obj.event = ""; |
| | | return false; |
| | | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // é空éªè¯ |
| | | function AllowLoadData(sSubStr) { //é空éªè¯ |
| | | var Result = true; |
| | | |
| | | return Result; |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | }); |
| | | //é空éªè¯ |
| | | function AllowLoadData(sSubStr) { //é空éªè¯ |
| | | var Result = true; |
| | | if ($("#HSupID").val() == '' || $("#HSupID").val() == null) { |
| | | layer.msg("徿¥åä½ä¸è½ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | |
| | | if ($("#HManagerID").val() == '' || $("#HManagerID").val() == null) { |
| | | layer.msg("è´è´£äººä¸è½ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | |
| | | } |
| | | if ($("#HDeptID").val() == '' || $("#HDeptID").val() == null) { |
| | | layer.msg("é¨é¨ä¸è½ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if ($("#HSupID").val() == '' || $("#HSupID").val() == null) { |
| | | layer.msg("徿¥åä½ä¸è½ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if (typeof (sSubStr) == "undefined" || sSubStr == "" || sSubStr == "[]") { |
| | |
| | | layer.msg("æç»è®°å½ç¬¬" + (i + 1) + "è¡,åè´§ä»åºä¿¡æ¯ä¸ºç©º!", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | |
| | | } |
| | | } |
| | | else { |