| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | |
| | | <head> |
| | | <meta charset="utf-8" /> |
| | | <title>æ°å¢/ç¼è¾å¨å
·é¢ç¨åºåºå</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
| | | <meta name="viewport" |
| | | content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <style type="text/css"> |
| | |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | | <body> |
| | | |
| | | <div id="layout1" class="layui-fluid"> |
| | |
| | | <div class="layui-card-header"> |
| | | <div class="layui-btn-group"> |
| | | |
| | | <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="view">é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="print">æå°</button> |
| | | <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" |
| | | lay-submit="" lay-filter="Saver">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" |
| | | lay-filter="Checker" id="check-btn">å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" |
| | | lay-filter="Exit">éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" |
| | | lay-filter="view">é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" |
| | | lay-filter="print">æå°</button> |
| | | |
| | | </div> |
| | | |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" readonly="readonly" autocomplete="off"> |
| | | <input class="layui-input" name="HBillNo" lay-verify="HBillNo" |
| | | id="HBillNo" readonly="readonly" autocomplete="off"> |
| | | <input id="HInterID" name="HInterID" type="hidden" /> |
| | | <input id="HMaker" name="HMaker" type="hidden" /><!--å¶å人--> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HDate" id="HDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | <input class="layui-input" name="HDate" id="HDate" |
| | | autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" |
| | | placeholder="yyyy-MM-dd"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å
é¨åæ®å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HInnerBillNo" id="HInnerBillNo" class="layui-input"> |
| | | <input type="text" name="HInnerBillNo" id="HInnerBillNo" |
| | | class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¨å
·ä»åº<label style="color:red"> * </label></label> |
| | | <label class="layui-form-label">å¨å
·ä»åº<label style="color:red"> * |
| | | </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HWHName" id="HWHName" readonly class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HWHNumber" id="HWHNumber" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HWHID" id="HWHID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="WareHouse" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | <input type="text" name="HWHName" id="HWHName" readonly |
| | | class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HWHNumber" id="HWHNumber" |
| | | class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HWHID" id="HWHID" class="layui-input" |
| | | value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" |
| | | lay-filter="WareHouse" 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" style="width: 85px;">ç»ç»</label> |
| | | <div class="layui-input-block" |
| | | style="margin-left: 120px; width: 185px;"> |
| | | <select name="HOrgID" id="HOrgID" lay-verify="HOrgID" |
| | | class="ForFilteringSchemes"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">éªæ¶å<label style="color:red"> * </label></label> |
| | | <label class="layui-form-label">éªæ¶å<label style="color:red"> * |
| | | </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HSecManagerName" id="HSecManagerName" readonly class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HSecManagerID" id="HSecManagerID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HSecManagerList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | <input type="text" name="HSecManagerName" id="HSecManagerName" |
| | | readonly class="layui-input" value="" |
| | | style="float:left;width:150px;"> |
| | | <input type="hidden" name="HSecManagerID" id="HSecManagerID" |
| | | class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" |
| | | lay-filter="HSecManagerList" 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> |
| | | <label class="layui-form-label">ä¿ç®¡å<label style="color:red"> * |
| | | </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HKeeperName" id="HKeeperName" readonly class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HKeeperID" id="HKeeperID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HKeeperList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | <input type="text" name="HKeeperName" id="HKeeperName" readonly |
| | | class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HKeeperID" id="HKeeperID" |
| | | class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" |
| | | lay-filter="HKeeperList" 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> |
| | | <label class="layui-form-label">é¨é¨<label style="color:red"> * |
| | | </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HDeptName" id="HDeptName" readonly class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="Department" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | <input type="text" name="HDeptName" id="HDeptName" readonly |
| | | class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HDeptID" id="HDeptID" class="layui-input" |
| | | value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" |
| | | lay-filter="Department" 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"> |
| | | <select name="HSupTypeID" id="HSupTypeID" lay-filter="HSupTypeID" class="layui-input" value="" style="float:left;width:150px"> |
| | | <select name="HSupTypeID" id="HSupTypeID" lay-filter="HSupTypeID" |
| | | class="layui-input" value="" style="float:left;width:150px"> |
| | | <option value="1">ä¾åºå</option> |
| | | <option value="2">客æ·</option> |
| | | <option value="3">车é´é¨é¨</option> |
| | |
| | | <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> |
| | | <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"> |
| | | <div class="layui-inline" style="display: none;"> |
| | | <label class="layui-form-label">æºåç±»å</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="HSourceBillType" lay-filter="aihao" id="HSourceBillType"> |
| | | <select name="HSourceBillType" lay-filter="aihao" |
| | | id="HSourceBillType"> |
| | | <option value="ç产任å¡å">ç产任å¡å</option> |
| | | <option value="æå·¥å½å
¥">æå·¥å½å
¥</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline" style="display: none;"> |
| | | <label class="layui-form-label">éåå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="XDH" id="XDH" class="layui-input" value="" style="float:left;width:100%;"> |
| | | <input type="text" name="XDH" id="XDH" class="layui-input" value="" |
| | | style="float:left;width:100%;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æè¦</label> |
| | | <div class="layui-input-inline"> |
| | | <textarea placeholder="请è¾å
¥æè¦" class="layui-textarea" name="HExplanation" id="HExplanation"></textarea> |
| | | <textarea placeholder="请è¾å
¥æè¦" class="layui-textarea" |
| | | name="HExplanation" id="HExplanation"></textarea> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">夿³¨</label> |
| | | <div class="layui-input-inline"> |
| | | <textarea placeholder="请è¾å
¥ç»´å¤æ³¨" class="layui-textarea" name="HRemark" id="HRemark"></textarea> |
| | | <textarea placeholder="请è¾å
¥ç»´å¤æ³¨" class="layui-textarea" name="HRemark" |
| | | id="HRemark"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¶å人</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMaker" id="HMaker" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HMaker" id="HMaker" |
| | | style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å®¡æ ¸äºº</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HChecker" id="HChecker" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HChecker" id="HChecker" |
| | | style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å
³é人</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HCloseMan" id="HCloseMan" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HCloseMan" |
| | | id="HCloseMan" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä¿®æ¹äºº</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HUpDater" id="HUpDater" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HUpDater" id="HUpDater" |
| | | style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¶åæ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HMakeDate" |
| | | id="HMakeDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å®¡æ ¸æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HCheckDate" |
| | | id="HCheckDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å
³éæ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HCloseDate" |
| | | id="HCloseDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä¿®æ¹æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HUpDateDate" |
| | | id="HUpDateDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä½åºäºº</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HDeleteMan" |
| | | id="HDeleteMan" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä½åºæ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HDeleteDate" |
| | | id="HDeleteDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <script type="text/html" id="barDemo"> |
| | | <!--<a class="layui-btn layui-btn-xs" lay-event="edit">ç¼è¾</a>--> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | |
| | | var sWhere = ""; |
| | | var sBillType = "3802"; |
| | | var HModName = "Sc_MouldProdOutBillEdit"; |
| | | var cancelEditStyleList = new RegExp(/HMaterName|HMaterSpec|HUnitName|HQtyMust|HWHName|HSPName/i) |
| | | var HideColmReg = new RegExp(/HBatchNo|HDesignLife|HLeaveLife|HUseLife|HPrice|HMoney/i) |
| | | //å
¨å±åé |
| | | window.HSupType = $("#HSupTypeID").val(); |
| | | //#endregion |
| | |
| | | $("h1").html('<b>' + HPageTitle + '</b>'); |
| | | //#endregion |
| | | |
| | | //åå§åç»ç» |
| | | Organ(); |
| | | //åå§å表åæä»¶ |
| | | set_InitFrom(); |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | set_CountGrid(); |
| | | DisPlay_HideColumnEdit(HModName, sessionStorage["HUserName"], option, table); |
| | | ColumnAddNotEditableStyle(cancelEditStyleList) |
| | | ColumnHideColumnSetting(HideColmReg) |
| | | //夿æä½ç±»å |
| | | if (OperationType == 1) {//æ æºæ°å¢ |
| | | set_AddFNew(); |
| | | } |
| | | if(OperationType == 2) { |
| | | set_EditFromGrid(linterid); |
| | | get_MAXNum(); |
| | | } |
| | | else if (OperationType == 3) {//ç¼è¾ |
| | | set_EditFromGrid(linterid); |
| | |
| | | //å¤å¶ä¸è¡ |
| | | case 'btn-CopyLine': btnCopyLine(data); |
| | | break; |
| | | //å设置 |
| | | //å设置 å¯è½åå¨ä½çæ¬çæµè§å¨æ æ³ä½¿ç¨çé®é¢ |
| | | case 'set_HideColumn': |
| | | get_HideColumnEdit(HModName, sessionStorage["HUserName"], option, table); |
| | | get_HideColumnEditWithCallback(HModName, sessionStorage["HUserName"], option, table, |
| | | function () { |
| | | // è¿éè·åçoptionæ¯ SetColumn.js ä¸çoption, 䏿¬é¡µé¢ä¸çoptionæ å
³ |
| | | let opt = [option]; |
| | | ColumnAddNotEditableStyle(cancelEditStyleList, opt); |
| | | ColumnHideColumnSetting(HideColmReg, opt); |
| | | table.reload('mainTable', opt[0]); |
| | | } |
| | | ) |
| | | break; |
| | | } |
| | | }); |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html?Type=HSecManager&openType=2', 'yes'], |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html?Type=HSecManager', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper&openType=2', 'yes'], |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | }); |
| | | }); |
| | | |
| | | //å®¡æ ¸ |
| | | form.on('submit(Checker)', function (data) { |
| | | var InterID = linterid |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Sc_MouldProdOutBill/AuditMouldProdOutBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "user": sessionStorage["HUserName"], "flag": 1 }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | $("btn-check").addClass('layui-btn-disabled').attr('disabled', true) |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }) |
| | | |
| | | //çå¬åå
æ ¼ç¼è¾ |
| | | table.on('edit(mainTable)', function (obj) { |
| | | // åå
æ ¼ç¼è¾ä¹åçå¼ |
| | |
| | | , data = obj.data //å¾å°æå¨è¡ææé®å¼ |
| | | , field = obj.field; //å¾å°å段 |
| | | //layer.msg('[ID: ' + data.id + '] ' + field + ' åæ®µæ´æ¹ä¸ºï¼' + value); |
| | | // 该çå¬å½æ°çobjä¸çupdate彿°æé®é¢ï¼ä½¿ç¨è¡¨ç¼åå ç´¢å¼çæ¹å¼æ´æ°å¯¹åºåçæ°æ® |
| | | let tableCache = table.cache['mainTable'] |
| | | let index = $(obj.tr[0]).closest('tr').data('index'); |
| | | |
| | | switch (field) { |
| | | case "HDesignLife": //è®¾è®¡å¯¿å½ |
| | |
| | | case "HQty": //å®åæ°é |
| | | value = isNaN(value) ? 0 : value; |
| | | var HPrice = isNaN(data.HPrice) ? 0 : data.HPrice; |
| | | let HQtyMust_Temp = tableCache[index].HQtyMust |
| | | let HQty_Temp = Number(value) |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HMoney: value * HPrice, //éé¢=宿¶æ°é*åä»· |
| | | }); |
| | | debugger |
| | | if (HQty_Temp > HQtyMust_Temp) { |
| | | layer.msg("宿¶æ°éçå¼ä¸å¾å¤§äºåºæ¶æ°é!") |
| | | tableCache[index].HQty = HQtyMust_Temp == 0 ? 0 : 1; |
| | | } |
| | | tableCache[index].HMoney = HPrice * tableCache[index].HQty; |
| | | table.reload('mainTable', { |
| | | data: tableCache |
| | | }) |
| | | break; |
| | | case "HPrice": //åä»· |
| | | value = isNaN(value) ? 0 : value; |
| | |
| | | } |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | let disabled_color = '#dddddd' |
| | | columns = [ |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计è¡' } |
| | | , { templet: '#xuhao', field:'åºå·', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { templet: '#xuhao', field: 'åºå·', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { field: 'HMaterID', title: 'HMaterID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HMaterCode', title: 'å¨å
·ä»£ç ', edit: 'text', event: 'HMaterCode', width: 100 } |
| | | , { field: 'HMaterName', title: 'å¨å
·åç§°', edit: 'text', width: 100 } |
| | | , { field: 'HMaterSpec', title: 'è§æ ¼åå·', edit: 'text', width: 100 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', edit: 'text', width: 100 } |
| | | , { field: 'HMaterName', title: 'å¨å
·åç§°', style: 'background: ' + disabled_color, width: 100 } |
| | | , { field: 'HMaterSpec', title: 'è§æ ¼åå·', style: 'background: ' + disabled_color, width: 100 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡', edit: 'text', width: 100, hide: true } |
| | | , { 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: 'HDesignLife', title: '设计寿å½', edit: 'text', width: 100, totalRow: true } |
| | | , { field: 'HLeaveLife', title: 'å©ä½å¯¿å½', edit: 'text', width: 100, totalRow: true } |
| | | , { field: 'HUseLife', title: '累积使ç¨å¯¿å½', edit: 'text', width: 100, totalRow: true } |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', edit: 'text', width: 100, totalRow: true } |
| | | , { field: 'HUnitName', title: '计éåä½', style: 'background: ' + disabled_color, width: 100 } |
| | | , { field: 'HDesignLife', title: '设计寿å½', edit: 'text', width: 100, totalRow: true, hide: true } |
| | | , { field: 'HLeaveLife', title: 'å©ä½å¯¿å½', edit: 'text', width: 100, totalRow: true, hide: true } |
| | | , { field: 'HUseLife', title: '累积使ç¨å¯¿å½', edit: 'text', width: 100, totalRow: true, hide: true } |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', style: 'background: ' + disabled_color, width: 100, totalRow: true } |
| | | , { field: 'HQty', title: 'å®åæ°é', edit: 'text', width: 100, totalRow: true } |
| | | , { field: 'HPrice', title: 'åä»·', edit: 'text', width: 100, totalRow: true } |
| | | , { field: 'HMoney', title: 'éé¢', edit: 'text', width: 100, totalRow: true } |
| | | , { field: 'HPrice', title: 'åä»·', edit: 'text', width: 100, totalRow: true, hide: true } |
| | | , { field: 'HMoney', title: 'éé¢', edit: 'text', width: 100, totalRow: true, hide: true } |
| | | , { field: 'HWHID', title: 'HWHID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HWHCode', title: 'åæä»åºä»£ç ', edit: 'text', event: 'HWHCode', width: 120 } |
| | | , { field: 'HWHName', title: 'åæä»åº', edit: 'text', width: 120 } |
| | | , { field: 'HWHName', title: 'åæä»åº', style: 'background: ' + disabled_color, 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 } |
| | | , { field: 'HSPName', title: 'ä»ä½', style: 'background: ' + disabled_color, width: 100 } |
| | | , { field: 'HRemark', title: '表ä½å¤æ³¨', edit: 'text', width: 100 } |
| | | , { field: 'HStockOrgID', title: 'HStockOrgID', width: 100, hide: true } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | |
| | | //ç¼è¾è·å表头 |
| | | function set_EditForm(linterid) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "Sc_MouldProdOutBill/Sc_MouldProdOutBillListCheckDetai", |
| | | url: GetWEBURL() + "/Sc_MouldProdOutBill/Sc_MouldProdOutBillListCheckDetai", |
| | | type: "GET", |
| | | data: { |
| | | "HID": linterid |
| | |
| | | $("#HInterID").val(linterid);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | //ç¼è¾å è½½æ°æ® |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'Sc_MouldProdOutBill/Sc_MouldProdOutBillListProjectDetai', |
| | | url: GetWEBURL() + '/Sc_MouldProdOutBill/Sc_MouldProdOutBillListProjectDetai', |
| | | type: "GET", |
| | | data: { "sqlWhere": "and hmainid=" + linterid }, |
| | | success: function (result) { |
| | |
| | | layer.alert(sMsg, { icon: 5 }); |
| | | |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | //#region è·åç»ç» |
| | | function Organ() { |
| | | //è·åç»å½é¡µç»ç»å |
| | | $.ajax({ |
| | | type: "get", |
| | | async: false, |
| | | url: GetWEBURL() + "/Web/GetOrganizations", |
| | | success: function (result) { |
| | | var Organization = ""; |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data; |
| | | for (var i = 0; i < data.length; i++) { |
| | | Organization += '<option style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>'; |
| | | } |
| | | $("#HOrgID").append(Organization); |
| | | $("#HOrgID").val(sessionStorage["OrganizationID"]) |
| | | form.render('select'); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | // ç»ä¸å
许ç¼è¾çæ°æ®æ·»å æ ·å¼ |
| | | function ColumnAddNotEditableStyle(regExp, _option) { |
| | | let notEditableStyle = "; background: #e2e2e2;" |
| | | let opt = option |
| | | if(_option !== undefined){ |
| | | opt = _option[0] |
| | | } |
| | | for (let col of opt.cols[0]) { |
| | | if (regExp.test(col.field) === true) { |
| | | col.style += notEditableStyle; |
| | | col.edit = null |
| | | } |
| | | } |
| | | } |
| | | |
| | | // 设置åéè |
| | | function ColumnHideColumnSetting(regExp, _option) { |
| | | let opt = option |
| | | if(_option !== undefined){ |
| | | opt = _option[0] |
| | | } |
| | | for (let col of option.cols[0]) { |
| | | if (regExp.test(col.field) === true) { |
| | | col.hide = true |
| | | } |
| | | } |
| | | } |
| | | |
| | | // 以䏿¯layui模å |
| | | }); |
| | | |
| | | function GetHWHValue(obj) //è¿åä»åº |
| | |
| | | { |
| | | OptionData = obj; |
| | | } |
| | | |
| | | </script> |
| | | </body> |
| | | |
| | | </html> |