| | |
| | | <!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"> |
| | | .layui-form-label { |
| | | width: 85px; |
| | | } |
| | | |
| | | /* 鲿¢ä¸ææ¡ç䏿å表被éè---å¿
须设置--- */ |
| | | .layui-table-cell { |
| | | overflow: visible !important; |
| | | } |
| | | |
| | | /* 使å¾ä¸ææ¡ä¸åå
æ ¼å好åé */ |
| | | td .layui-form-select { |
| | | margin-top: -10px; |
| | |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | | <body> |
| | | <div id="layout1" class="layui-fluid"> |
| | | <div class="layui-row layui-col-space15"> |
| | |
| | | <form id="component-form-group" class="layui-form" lay-filter="component-form-group" action=""> |
| | | <div class="layui-card-header"> |
| | | <div class="layui-btn-group"> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_AddNew" id="set_AddNew">æ°å¢</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="view">é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="print">æå°</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="set_AddNew" id="set_AddNew">æ°å¢</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" id="check-btn" class="layui-btn layui-btn-normal layui-btn-radius" |
| | | lay-submit="" lay-filter="Checker">å®¡æ ¸</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" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" |
| | | lay-filter="Exit">éåº</button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief"> |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">åºæ¬ä¿¡æ¯</li> |
| | | <li>éä»¶ä¿¡æ¯</li> |
| | | <li>å¶åä¿¡æ¯</li> |
| | | </ul> |
| | | <h1 style="text-align:center;"><b>å¨å
·ç¹æ£è®°å½è¡¨</b></h1> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | |
| | | <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" /> |
| | | </div> |
| | | </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="HMouldName" id="HMouldName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMouldID" id="HMouldID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HMouldList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | <input type="text" name="HMouldName" id="HMouldName" |
| | | class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMouldID" id="HMouldID" |
| | | class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" |
| | | lay-filter="HMouldList" 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"> |
| | | <label class="layui-form-label">ç¹æ£è®¡åç¼å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HPlanNo" id="HPlanNo" class="layui-input"> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">ç¹æ£è®¡åç¼å·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HPlanNo" id="HPlanNo" 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="HPlanNo" id="HPlanNo" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HPlanInterID" id="HPlanInterID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HPlanInterList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | <input type="text" name="HPlanNo" id="HPlanNo" class="layui-input" |
| | | value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HPlanInterID" id="HPlanInterID" |
| | | class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMouldDotCheckPlanEntryID" |
| | | id="HMouldDotCheckPlanEntryID" class="layui-input" value="0" |
| | | style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMouldDotCheckPlanInterID" |
| | | id="HMouldDotCheckPlanInterID" class="layui-input" value="0" |
| | | style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" |
| | | lay-filter="HPlanInterList" 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="HBeginDate" id="HBeginDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | <input class="layui-input" name="HBeginDate" id="HBeginDate" |
| | | 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 class="layui-input" name="HEndDate" id="HEndDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd"> |
| | | <input class="layui-input" name="HEndDate" id="HEndDate" |
| | | autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" |
| | | placeholder="yyyy-MM-dd"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width:95px;">å¨å
·ç¹æ£è§ç¨<label style="color:red"> * </label></label> |
| | | <label class="layui-form-label" style="width:95px;">å¨å
·ç¹æ£è§ç¨<label |
| | | style="color:red"> * </label></label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HMouldDotCheckRuleName" id="HMouldDotCheckRuleName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMouldDotCheckRuleID" id="HMouldDotCheckRuleID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnHMouldDotCheckRule" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | <input type="text" name="HMouldDotCheckRuleName" |
| | | id="HMouldDotCheckRuleName" class="layui-input" value="" |
| | | style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMouldDotCheckRuleID" |
| | | id="HMouldDotCheckRuleID" class="layui-input" value="0" |
| | | style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" |
| | | lay-filter="btnHMouldDotCheckRule" 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="HErrNote" id="HErrNote" class="layui-input"> |
| | | <input type="text" name="HErrNote" id="HErrNote" |
| | | class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">é大å®å
¨<br />éæ£è®°å½</label> |
| | | <div class="layui-input-inline" style="margin-top:10px;"> |
| | | <input type="text" name="HBigSafeNote" id="HBigSafeNote" class="layui-input"> |
| | | <input type="text" name="HBigSafeNote" id="HBigSafeNote" |
| | | class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç¹æ£æ°æ®</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HDotCheckNote" id="HDotCheckNote" class="layui-input"> |
| | | <input type="text" name="HDotCheckNote" id="HDotCheckNote" |
| | | class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">çäº§çæ¬¡</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="hidden" name="HShiftsID" id="HShiftsID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="text" name="HShiftsName" id="HShiftsName" class="layui-input" value="" style="float:left;width:150px;background-color:#efefef4d;" readonly="readonly"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="btnHShifts" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | <input type="hidden" name="HShiftsID" id="HShiftsID" |
| | | class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <input type="text" name="HShiftsName" id="HShiftsName" |
| | | class="layui-input" value="" |
| | | style="float:left;width:150px;background-color:#efefef4d;" |
| | | readonly="readonly"> |
| | | <button type="button" lay-submit="" class="layui-btn" |
| | | lay-filter="btnHShifts" 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"> |
| | | <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 class="layui-inline"> |
| | | <label class="layui-form-label">æç»ç»è®º</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="radio" name="HLastResult" id="HLastResult" value="OK" title="OK" checked> |
| | | <input type="radio" name="HLastResult" id="HLastResult" value="NG" title="NG"> |
| | | <input type="radio" name="HLastResult" id="HLastResult" value="OK" |
| | | title="OK" checked> |
| | | <input type="radio" name="HLastResult" id="HLastResult" value="NG" |
| | | title="NG"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--éä»¶ä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-upload"> |
| | | <button type="button" class="layui-btn" |
| | | id="testList">éæ©æä»¶</button><input class="layui-upload-file" |
| | | type="file" accept="" name="file" multiple=""> |
| | | <div class="layui-upload-list"> |
| | | <table class="layui-table" lay-filter="fileTable"> |
| | | <thead> |
| | | <tr> |
| | | <th>æä»¶å</th> |
| | | <th>å¾ç</th> |
| | | <th>大å°</th> |
| | | <th>ç¶æ</th> |
| | | <th>æä½</th> |
| | | </tr> |
| | | </thead> |
| | | <tbody id="ProImgByList" class="ProImgByList"> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--å¶åä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item"> |
| | | <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> |
| | | </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> |
| | | </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> |
| | | </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> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <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> |
| | | </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> |
| | | </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> |
| | | </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> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <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> |
| | | </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> |
| | | </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 type="text/html" id="barDemo1"> |
| | | <!--<a class="layui-btn layui-btn-xs" lay-event="edit">ç¼è¾</a>--> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del1">å é¤</a> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del1">å é¤</a> |
| | | </script> |
| | | <!--è¡ä¸æéæ©(ç¹æ£ç»æ)--> |
| | | <script type="text/html" id="HDotCheckResult"> |
| | |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/PageTitle.js"></script> |
| | | <script src="../../../layuiadmin/common.js"></script> |
| | | <script> |
| | | var optionData = [] |
| | | //è·å页é¢è·³è½¬åæ° |
| | | var params = get_UrlVars(); |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | }).use(['index', 'form', 'laydate', 'table', 'element', 'upload'], function () { |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , laydate = layui.laydate |
| | | , upload = layui.upload |
| | | , element = layui.element; |
| | | var option = [];//ç¹æ£ |
| | | var option1 = [];//é
ä»¶ |
| | |
| | | //夿æä½ç±»å |
| | | if (OperationType == 1) {//æ æºå |
| | | set_AddFNew(); |
| | | //æä»¶éæ©åå§å |
| | | PicUpload(); |
| | | } |
| | | else if (OperationType == 3) {//ç¼è¾ |
| | | |
| | | set_EditFromGrid(); |
| | | //æä»¶éæ©åå§å |
| | | PicUpload(); |
| | | getFile(); |
| | | } |
| | | else { |
| | | layer.alert("æªç¥æä½ç±»åï¼", { icon: 5 }); |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../模治å
·ç®¡ç/Sc_MouldDotCheckPlanBillList.html', 'yes'], |
| | | content: ['../模治å
·ç®¡ç/Sc_MouldDotCheckPlanBillList.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | $("#HMouldName").val(checkStatus.data[0].äº§åæ¨¡å
·); |
| | | $("#HMouldDotCheckRuleID").val(checkStatus.data[0].HMouldDotCheckRuleID); |
| | | $("#HMouldDotCheckRuleName").val(checkStatus.data[0].HMouldDotCheckRuleNo); |
| | | $("#HMouldDotCheckPlanInterID").val(checkStatus.data[0].hmainid); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | //$.ajax({ |
| | | // url: GetWEBURL() + 'Sc_MouldDotCheckBill/Sc_MouldDotCheckSubBillListByPlan', |
| | | // type: "GET", |
| | | // data: { "HPlanInterID": $("#HPlanInterID").val() }, |
| | | // success: function (result) { |
| | | // if (result.count == 1) { |
| | | // option.data = result.data; |
| | | // table.render(option); |
| | | |
| | | // } else { |
| | | // layer.alert(result.code + result.Message, { icon: 5 }); |
| | | // } |
| | | // }, error: function () { |
| | | // layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | // } |
| | | //}); |
| | | get_DocCheckItem(checkStatus.data[0].hmainid); |
| | | //get_DocCheckItem(checkStatus.data[0].hmainid); |
| | | get_DocCheckItem3(); |
| | | |
| | | } |
| | | }); |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true |
| | | , content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_ShiftsList.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_ShiftsList.html?openType=HShiftsList&OperationType=2 ', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../模治å
·ç®¡ç/模治å
·ç®¡ç/Gy_MouldFileList.html', 'yes'], |
| | | content: ['../../模治å
·ç®¡ç/模治å
·ç®¡ç/Gy_MouldFileList.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../模治å
·ç®¡ç/å¨å
·ç¹æ£è§ç¨å/Sc_MouldDotCheckRuleBillList.html', 'yes'], |
| | | content: ['../../模治å
·ç®¡ç/å¨å
·ç¹æ£è§ç¨å/Sc_MouldDotCheckRuleBillList.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html?Type=HManager', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | if (optionData.length > 0) { |
| | | obj.update({ |
| | | HManagerID: optionData[0].HItemID, |
| | | HManagerNumber: optionData[0].èå代ç , |
| | | HManagerName: optionData[0].èååç§°, |
| | | }); |
| | | optionData = [] |
| | | } |
| | | } |
| | | }); |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/åºç¡èµæ/Gy_DotCheckList.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/åºç¡èµæ/Gy_DotCheckList.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HDotCheckItemID: checkStatus.data[0].HItemID, |
| | | HDotCheckItem: checkStatus.data[0].ç¹æ£é¡¹ç®åç§° |
| | | HDotCheckItem: checkStatus.data[0].ç¹æ£é¡¹ç®åç§°, |
| | | HDotCheckItemClassID: checkStatus.data[0].HDotCheckItemClassID, |
| | | HDotCheckItemClassName: checkStatus.data[0].ç¹æ£é¡¹ç®åç±»åç§° |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | if (optionData.length > 0) { |
| | | obj.update({ |
| | | HDotCheckItemID: optionData[0].HItemID, |
| | | HDotCheckItem: optionData[0].ç¹æ£é¡¹ç®åç§°, |
| | | HDotCheckItemClassID: optionData[0].HDotCheckItemClassID, |
| | | HDotCheckItemClassName: optionData[0].ç¹æ£é¡¹ç®åç±»åç§° |
| | | }); |
| | | optionData = [] |
| | | } |
| | | } |
| | | }); |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true |
| | | , content: ['../../åºç¡èµæ/åºç¡èµæ/Gy_DotCheckItemClassList.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/åºç¡èµæ/Gy_DotCheckItemClassList.html?openType=2', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true |
| | | , content: ['../../åºç¡èµæ/åºç¡èµæ/Gy_DotCheckItemMethodList.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/åºç¡èµæ/Gy_DotCheckItemMethodList.html?openType=2', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, end: function () { |
| | | if (optionData.length > 0) { |
| | | obj.update({ |
| | | HDotCheckItemMethodID: optionData[0].HItemID, |
| | | HDotCheckItemMethodName: optionData[0].ç¹æ£æ¹æ³åç§° |
| | | }); |
| | | optionData = [] |
| | | } |
| | | } |
| | | }); |
| | | } |
| | |
| | | window.open("../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/HBarPlanPrint.html?linterid=" + linterid + "&Type=HMouldDotCheckBill&OpenTmp=å¨å
·ç¹æ£è®°å½æ¡ç "); |
| | | |
| | | }); |
| | | |
| | | // å®¡æ ¸ |
| | | form.on('submit(Checker)', function (data) { |
| | | layer.confirm("确认è¦å®¡æ ¸å?", function (index) { |
| | | var wait = layer.load(); |
| | | var HInterID = linterid; |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MouldDotCheckBill/CheckSc_MouldDotCheckBill', |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "Type": 1, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | $('#add-btn').addClass('layui-btn-disabled').attr('disabled', true) |
| | | $('#check-btn').addClass('layui-btn-disabled').attr('disabled', true) |
| | | layer.msg(result.Message, { icon: 1 }); |
| | | layer.close(wait); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }); |
| | | }) |
| | | }) |
| | | |
| | | //éåº |
| | | form.on('submit(Exit)', function (data) {// |
| | | if (linterid == undefined) { |
| | |
| | | laydate.render({ |
| | | elem: '#HEndDate' |
| | | }); |
| | | |
| | | $('#check-btn').addClass('layui-btn-disabled').attr('disabled', true) |
| | | } |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | //表头 |
| | | let hiddenStyle = 'background: #eeeeee;' |
| | | columns = [ |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计è¡' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe" } |
| | | , { templet: '#xuhao', title: 'åºå·', style: hiddenStyle, sort: true, fixed: 'left', event: "qwe" } |
| | | , { field: 'HDotCheckItemID', title: 'ç¹æ£ID', edit: 'text', hide: true } |
| | | , { field: 'HDotCheckItem', title: 'ç¹æ£é¡¹ç®', edit: 'text', event: 'HDotCheckItem' } |
| | | , { field: 'HDotCheckItemClassID', title: 'ç¹æ£é¡¹ç®åç±»ID', edit: 'text', hide: true } |
| | |
| | | , { field: 'HClaim', title: 'å
·ä½è¦æ±', edit: 'text' } |
| | | , { field: 'HManagerID', title: 'è´è´£äººID', edit: 'text', hide: true } |
| | | , { field: 'HManagerNumber', title: 'è´è´£äººä»£ç ', edit: 'text', event: 'HManagerNumber' } |
| | | , { field: 'HManagerName', title: 'è´è´£äººåç§°', edit: 'text' } |
| | | , { field: 'HManagerName', title: 'è´è´£äººåç§°', style: hiddenStyle } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 150 } |
| | | ]; |
| | |
| | | id: 'mainTable' |
| | | , elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , page: false |
| | | , limit: 50 |
| | | , totalRow: true |
| | | , cellMinWidth: 120 |
| | | , height: 500 |
| | |
| | | }) |
| | | } |
| | | |
| | | function get_DocCheckItem3() { |
| | | var HPlanID = $("#HMouldDotCheckPlanInterID").val() //ç¹æ£è®¡åID |
| | | var HDate = $("#HDate").val(); //å½å¤©æ¥æ |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_MouldDotCheckPlanBill/Sc_MouldDotCheckPlanBill_PlanList", |
| | | type: "GET", |
| | | data: { "HInterID": HPlanID, "HDate": HDate }, |
| | | success: function (result) { |
| | | if (result != null) { |
| | | if (result.count == 1) { |
| | | var DJData = result.data;// |
| | | var rowdate1 = layui.table.cache["mainTable"]; |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckItem": " ", "HDotCheckPart": " ", "HClaim": " ", "HManagerID": 0, "HManagerNumber": " ", "HManagerName": " ", "HRemark": " ", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" }]; |
| | | table.render(option); |
| | | |
| | | if (DJData.length != 0) //è¡¨ä½æ°æ®ä¸ºç©ºæ¶ |
| | | { |
| | | $("#HMouldDotCheckPlanEntryID").val(DJData[0].HPlanEntryID); |
| | | buttonArr = [];//æ¸
空æ°ç» |
| | | for (var i = 0; i < DJData.length; i++) { |
| | | var checkrow = { |
| | | "HDotCheckItemID": DJData[i].HDotCheckID, "HDotCheckItem": DJData[i].ç¹æ£é¡¹ç®, |
| | | "HDotCheckPart": DJData[i].ç¹æ£é¨ä½, "HClaim": DJData[i].å
·ä½è¦æ±, "HManagerID": DJData[i].HEmployeeID, |
| | | "HManagerNumber": DJData[i].è´è´£äººä»£ç , "HManagerName": DJData[i].è´è´£äººåç§°, "HRemark": DJData[i].HRemark, |
| | | "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" |
| | | }; |
| | | |
| | | buttonArr.push(checkrow); //å°ä¹åçæ°æ®åå¨ |
| | | } |
| | | option.data = buttonArr; |
| | | table.render(option); |
| | | //table.reload("mainTable", { |
| | | // data: buttonArr //å°æ°æ®éæ°è½½å
¥è¡¨æ ¼ |
| | | //}) |
| | | } else { |
| | | layer.alert("ç¹åæ¶é´æ®µææ éè¦ç¹æ£çè§å", { icon: 5 }); |
| | | } |
| | | } |
| | | else { |
| | | option.data = [{ "HDotCheckItemID": 0, "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": 0, "HManagerNumber": "", "HManagerName": "", "HRemark": "", "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y" }]; |
| | | table.render(option); |
| | | //layer.alert("è¯¥è®¾å¤ææ é»è®¤ç¹æ£è®°å½", { icon: 5 }); |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //ç¼è¾è·å表头 |
| | | function set_EditForm(linterid) { |
| | | |
| | | //æ¥è¯¢æ£éªæ¹æ¡åæ¯å¦åå¨ |
| | | $.ajax({ |
| | | url: GetWEBURL() + "Sc_MouldDotCheckBill/Sc_MouldDotCheckBillListCheckDetai", |
| | | url: GetWEBURL() + "/Sc_MouldDotCheckBill/Sc_MouldDotCheckBillListCheckDetai", |
| | | type: "GET", |
| | | data: { |
| | | "HID": linterid |
| | | }, |
| | | async: false, |
| | | success: function (result) { |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data.h_v_Sc_MouldDotCheckBillList[0]; |
| | | var data = result.data.h_v_Sc_MouldDotCheckBillMain_Edit[0]; |
| | | form.val("component-form-group", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HBillNo": data.åæ®å· |
| | | , "HDate": formatDate(data.æ¥æ) |
| | |
| | | , "HPlanNo": data.ç¹æ£è®¡åå
ç |
| | | , "HMouldID": data.HMouldID == undefined ? 0 : data.HPlanInterID |
| | | , "HMouldDotCheckRuleName": data.å¨å
·ç¹æ£è§ç¨åæ®å· |
| | | , "HMouldDotCheckRuleID": data.HMouldDotCheckRuleID == undefined ? 0 : data.HPlanInterID |
| | | , "HMouldDotCheckRuleID": data.HMouldDotCheckRuleID == undefined ? 0 : data.HMouldDotCheckRuleID |
| | | , "HErrNote": data.å¼å¸¸æ
åµè®°å½ //å¼å¸¸æ
åµè®°å½ |
| | | , "HBigSafeNote": data.é大å®å
¨éæ£è®°å½ //é大å®å
¨éæ£è®°å½ |
| | | , "HDotCheckNote": data.ç¹æ£æ°æ® //ç¹æ£æ°æ® |
| | | , "HShiftsID": data.HShiftsID == undefined ? 0 : data.HPlanInterID |
| | | , "HShiftsID": data.HShiftsID == undefined ? 0 : data.HShiftsID |
| | | , "HShiftsName": data.çæ¬¡åç§° //çæ¬¡åç§° |
| | | , "HMaker": data.å¶å人 |
| | | , "HMakeDate": data.å¶åæ¥æ == null ? "" : Format(new Date(data.å¶åæ¥æ), "yyyy-MM-dd") |
| | | , "HChecker": data.å®¡æ ¸äºº |
| | | , "HCheckDate": data.å®¡æ ¸æ¥æ == null ? "" : Format(new Date(data.å®¡æ ¸æ¥æ), "yyyy-MM-dd") |
| | | , "HUpDater": data.ä¿®æ¹äºº |
| | | , "HUpDateDate": data.ä¿®æ¹æ¥æ == null ? "" : Format(new Date(data.ä¿®æ¹æ¥æ), "yyyy-MM-dd") |
| | | , "HCloseMan": data.å
³é人 |
| | | , "HCloseDate": data.å
³éæ¥æ == null ? "" : Format(new Date(data.å
³éæ¥æ), "yyyy-MM-dd") |
| | | , "HDeleteMan": data.ä½åºäºº |
| | | , "HDeleteDate": data.ä½åºæ¥æ == null ? "" : Format(new Date(data.ä½åºæ¥æ), "yyyy-MM-dd") |
| | | }); |
| | | |
| | | if (isEmpty(data.å®¡æ ¸äºº) == false) { |
| | | $("#add-btn").addClass('layui-btn-disabled').attr('disabled', true) |
| | | } else { |
| | | $("#check-btn").removeClass('layui-btn-disabled').attr('disabled', false) |
| | | } |
| | | if (data.æç»ç»è®º == "ä¸åæ ¼") { |
| | | document.querySelectorAll("[name='HLastResult']")[0].removeAttribute('checked'); //å é¤éæ©å±æ§ |
| | | $("input:radio[name=HLastResult][value=" + "NG" + "]").attr("checked", "true"); //æ·»å 鿩屿§ |
| | |
| | | $("#HInterID").val(linterid);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | //ç¼è¾å è½½æ°æ® |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'Sc_MouldDotCheckBill/Sc_MouldDotCheckBillListProjectDetai', |
| | | url: GetWEBURL() + '/Sc_MouldDotCheckBill/Sc_MouldDotCheckBillListProjectDetai', |
| | | type: "GET", |
| | | data: { "sqlWhere": "and HInterID=" + linterid }, |
| | | success: function (result) { |
| | |
| | | var data = result.data; |
| | | var subarr = []; |
| | | for (var i = 0; i < data.length; i++) { |
| | | subarr.push({ "HDotCheckItemID": data[i].ç¹æ£é¡¹ç®ID, "HDotCheckItem": data[i].ç¹æ£é¡¹ç®, "HDotCheckPart": data[i].ç¹æ£é¨ä½, "HClaim": data[i].å
·ä½è¦æ±, "HManagerID": data[i].è´è´£äººID, "HManagerNumber": data[i].è´è´£äººä»£ç , "HManagerName": data[i].è´è´£äººåç§°, "HRemark": data[i].å夿³¨2, "HDotCheckItemClassID": data[i].HDotCheckItemClassID, "HDotCheckItemClassName": data[i].ç¹æ£é¡¹ç®åç±»åç§°, "HDotCheckItemMethodID": data[i].HDotCheckItemMethodID, "HDotCheckItemMethodName": data[i].ç¹æ£æ¹æ³åç§°, "HDotCheckResult": data[i].ç¹æ£ç»æ == "åæ ¼" ? 'Y' : 'X' }); |
| | | subarr.push({ "HDotCheckItemID": data[i].ç¹æ£é¡¹ç®ID, "HDotCheckItem": data[i].ç¹æ£é¡¹ç®, "HDotCheckPart": data[i].ç¹æ£é¨ä½, "HClaim": data[i].å
·ä½è¦æ±, "HManagerID": data[i].è´è´£äººID, "HManagerNumber": data[i].è´è´£äººä»£ç , "HManagerName": data[i].è´è´£äººåç§°, "HRemark": data[i].å夿³¨2, "HDotCheckItemClassID": data[i].HDotCheckItemClassID, "HDotCheckItemClassName": data[i].ç¹æ£é¡¹ç®åç±»åç§°, "HDotCheckItemMethodID": data[i].HDotCheckItemMethodID, "HDotCheckItemMethodName": data[i].ç¹æ£æ¹æ³åç§°, "HDotCheckResult": data[i].ç¹æ£ç»æ == "åæ ¼" ? 'Y' : 'X' }); |
| | | } |
| | | |
| | | option.data = subarr; |
| | |
| | | return Result; |
| | | } |
| | | |
| | | //#region æä»¶ä¸ä¼ |
| | | function PicUpload() { |
| | | //å¤å¾çä¸ä¼ |
| | | //夿件åè¡¨ç¤ºä¾ |
| | | var ProImgByList = $('#ProImgByList') |
| | | , uploadListIns = upload.render({ |
| | | elem: '#testList' |
| | | |
| | | , url: GetWEBURL() + "/Sc_MouldDotCheckBill/UploadFile" |
| | | , accept: 'file' |
| | | , multiple: true |
| | | , auto: false |
| | | //, bindAction: '#testListAction' //ææç»å® |
| | | , data: { "HBillNo": $("#HBillNo").val(), "HRemark": $("#HRemark").val(), "HUserName": sessionStorage["HUserName"] } |
| | | , choose: function (obj) { |
| | | var files = this.files = obj.pushFile(); //å°æ¯æ¬¡éæ©çæä»¶è¿½å å°æä»¶éå |
| | | //è¯»åæ¬å°æä»¶ |
| | | obj.preview(function (index, file, result) { |
| | | var tr = $(['<tr id="upload-' + index + '">' |
| | | , '<td>' + file.name + '</td>' |
| | | , '<td>' + '<img onclick=\"previewImg(this)\" id="showImg" class="ImgClass" style="width: 150px; margin:10px;cursor:pointer;"src="' + result + '" alt="' + file.name + '">' + '</td>' |
| | | , '<td>' + (file.size / 1014).toFixed(1) + 'kb</td>' |
| | | , '<td>çå¾
ä¸ä¼ </td>' |
| | | , '<td>' |
| | | , '<button class="layui-btn layui-btn-xs demo-reload ">ä¸ä¼ </button>' |
| | | , '<button class="layui-btn layui-btn-xs layui-btn-danger demo-delete">å é¤</button>' |
| | | , '</td>' |
| | | , '</tr>'].join('')); |
| | | |
| | | |
| | | //å个éä¼ |
| | | tr.find('.demo-reload').on('click', function () { |
| | | obj.upload(index, file); |
| | | return false; |
| | | }); |
| | | |
| | | //å é¤ |
| | | tr.find('.demo-delete').on('click', function () { |
| | | delete files[index]; //å é¤å¯¹åºçæä»¶ |
| | | tr.remove(); |
| | | uploadListIns.config.elem.next()[0].value = ''; //æ¸
空 input file å¼ï¼ä»¥å
å é¤ååºç°ååæä»¶ä¸å¯é |
| | | }); |
| | | |
| | | ProImgByList.append(tr); |
| | | |
| | | }); |
| | | } |
| | | , done: function (res, index, upload) { |
| | | if (res.code == 1) { //ä¸ä¼ æå |
| | | var tr = ProImgByList.find('tr#upload-' + index) |
| | | , tds = tr.children(); |
| | | tds.eq(3).html('<span style="color: #5FB878;">ä¸ä¼ æå</span>'); |
| | | tds.eq(4).html(''); //æ¸
空æä½ |
| | | |
| | | return delete this.files[index]; //å 餿件éåå·²ç»ä¸ä¼ æåçæä»¶ |
| | | } |
| | | this.error(index, upload); |
| | | } |
| | | , error: function (index, upload) { |
| | | var tr = ProImgByList.find('tr#upload-' + index) |
| | | , tds = tr.children(); |
| | | tds.eq(2).html('<span style="color: #FF5722;">ä¸ä¼ 失败[æ£æ¥æä»¶ååæä»¶æ ¼å¼]</span>'); |
| | | tds.eq(3).find('.demo-reload').removeClass('layui-hide'); //æ¾ç¤ºä¸ä¼ |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region ç¼è¾æ¶,è·åå·²ä¸ä¼ çæä»¶å表 |
| | | function getFile() { |
| | | var ProImgByList = $('#ProImgByList') |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MouldDotCheckBill/Filelist', |
| | | type: "GET", |
| | | data: { "HBillNo": $("#HBillNo").val() }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | var index = 0; |
| | | for (var i = 0; i < data1.data.length; i++) { |
| | | var tr = $(['<tr id="upload-' + i + '">' |
| | | , '<td style="display:none">' + data1.data[i].HItemID + '</td>' |
| | | , '<td style="display:none">' + data1.data[i].HSourceBillNo + '</td>' |
| | | , '<td>' + data1.data[i].HFileName + '</td>' |
| | | , '<td>' + '<img onclick=\"previewImg(this)\" id="showImg' + i + '" class="ImgClass" style="width: 150px; margin:10px;cursor:pointer;"src="' + data1.data[i].HFilePath + '" alt="' + data1.data[i].HFileName + '">' + '</td>' |
| | | , '<td>' + (data1.data[i].HFileSize / 1014).toFixed(1) + 'kb</td>' |
| | | , '<td style="color: #5FB878;">ä¸ä¼ æå</td>' |
| | | , '<td style="display:none">' + data1.data[i].url + '</td>' |
| | | , '<td>' |
| | | , '<button class="layui-btn layui-btn-xs demo-dowload" type="button" id="deltefile" onclick="javascript:dowload(this)"><i class="layui-icon layui-icon-download-circle layuiadmin-button-btn"></i>ä¸è½½</button>' |
| | | , '<button class="layui-btn layui-btn-xs layui-btn-danger demo-delete" type="button" id="deltefile" onclick="javascript:toManager(this)"><i class="layui-icon layui-icon-delete layuiadmin-button-btn"></i>å é¤</button>' |
| | | , '</td>' |
| | | , '</tr>'].join('')); |
| | | |
| | | $('#ProImgByList').append(tr); |
| | | } |
| | | |
| | | } else { |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | }); |
| | | |
| | |
| | | $("#HPlanNo").val(obj[0].åæ®å·); |
| | | $("#HPlanInterID").val(obj[0].hmainid); |
| | | get_DocCheckItem(obj[0].hmainid); |
| | | |
| | | } |
| | | |
| | | function GetMouldDotCheckRuleValue(obj) { //å¨å
·ç¹æ£è§ç¨ |
| | |
| | | get_DocCheckItem2(obj[0].hmainid); |
| | | } |
| | | |
| | | function GetHShiftsListValue(obj) { |
| | | $("#HShiftsID").val(obj.HItemID); |
| | | $("#HShiftsName").val(obj.çæ¬¡åç§°); |
| | | } |
| | | |
| | | |
| | | function previewImg(obj) { |
| | | var img = new Image(); |
| | | img.src = obj.src; |
| | | var height = img.height * 1.2; //è·åå¾çé«åº¦ |
| | | var width = img.width * 1.2; //è·åå¾ç宽度 |
| | | var imgHtml = "<img src='" + obj.src + "' width='100%' height='100%'/>"; |
| | | //å¼¹åºå± |
| | | layer.open({ |
| | | type: 1, |
| | | shade: 0.8, |
| | | offset: 'auto', |
| | | area: ['80%', '80%'], |
| | | shadeClose: true, |
| | | scrollbar: false, |
| | | title: "å¾çé¢è§", //䏿¾ç¤ºæ é¢ |
| | | content: imgHtml, //æè·çå
ç´ ï¼æ³¨æï¼æå¥½è¯¥æå®çå
ç´ è¦åæ¾å¨bodyæå¤å±ï¼å¦åå¯è½è¢«å
¶å®çç¸å¯¹å
ç´ æå½±å |
| | | cancel: function () { |
| | | //layer.msg('æè·å°±æ¯ä»é¡µé¢å·²ç»åå¨çå
ç´ ä¸ï¼å
裹layerçç»æ', { time: 5000, icon: 6 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //#region ä¸è½½å·²ä¸ä¼ çæä»¶ |
| | | function dowload(r) { |
| | | //å¾å°å½åæå¨è¡ |
| | | var rows = r.parentNode.parentNode.rowIndex; |
| | | //å¾å°æå¨è¡ç第äºåçå
容:æä»¶å°å |
| | | var url = $("#ProImgByList tr:eq(" + (rows - 1) + ") td:eq(6)").html(); |
| | | /*window.location.href = url;*/ |
| | | window.open(url) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å é¤å·²ä¸ä¼ çæä»¶ |
| | | function toManager(r) { |
| | | //å¾å°å½åæå¨è¡ |
| | | var rows = r.parentNode.parentNode.rowIndex; |
| | | //å¾å°æå¨è¡ç第ä¸åçå
容:主é®ID |
| | | var HItemID = $("#ProImgByList tr:eq(" + (rows - 1) + ") td:eq(0)").html(); |
| | | //å¾å°æå¨è¡ç第äºåçå
容:åæ®å· |
| | | var HSourceBillNo = $("#ProImgByList tr:eq(" + (rows - 1) + ") td:eq(1)").html(); |
| | | //å¾å°æå¨è¡ç第ä¸åçå
容:æä»¶åç§° |
| | | var HFileName = $("#ProImgByList tr:eq(" + (rows - 1) + ") td:eq(2)").html(); |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | |
| | | //å é¤å·²ä¸ä¼ æä»¶ |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_MouldDotCheckBill/DeleteFilelist', |
| | | type: "GET", |
| | | data: { "HItemID": HItemID, "HSourceBillNo": HSourceBillNo, "HFileName": HFileName }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | layer.alert(data1.Message, { icon: 1 }); |
| | | $("#ProImgByList tr").eq((rows - 1)).remove(); |
| | | } |
| | | else { |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | //#region åå»è¿å åè°å½æ° |
| | | function GetDotCheckListValue(data) { |
| | | optionData[0] = data |
| | | } |
| | | |
| | | function GetDotCheckItemMethodListValue(data) { |
| | | optionData[0] = data |
| | | } |
| | | |
| | | function GetHManagerValue(data) { |
| | | optionData = data |
| | | } |
| | | //#endregion |
| | | </script> |
| | | </body> |
| | | |
| | | </html> |