| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <label class="layui-form-label">éææ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HBeginDate" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¥æ</label> |
| | | <label class="layui-form-label">-</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HEndDate" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <label class="layui-form-label">æ¥åºåå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="width:190px;"> |
| | | </div> |
| | |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | <div class="layui-colla-content"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">é¨é¨</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HDeptID" id="HDeptID" style="width:190px;"> |
| | | <div class="layui-colla-content" style="margin-left: 4%;"> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç©æä»£ç </label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="MaterialNumber" name="MaterialNumber" id="MaterialNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnMaterial" id="btnMaterial" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></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;"> |
| | | <input type="text" class="layui-input" name="MaterialName" lay-verify="MaterialName" id="MaterialName" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="MaterialID" id="MaterialID" lay-verify="MaterialID" value="0"> |
| | | </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="MaterialModel" id="MaterialModel" onmouseover="this.title=this.value" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç©æä»£ç </label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="MaterialCode" id="MaterialCode" style="width:190px;"> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç产车é´</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HDeptName" lay-verify="HDeptName" id="HDeptName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDept" id="btnHDept" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">工段</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="ProcMul" lay-verify="ProcMul" id="ProcMul" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnProcMul" id="btnProcMul" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å质确认</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;width: 184px;"> |
| | | <select name="HPZStatus" lay-verify="HPZStatus" id="HPZStatus"> |
| | | <option value="å
¨é¨">å
¨é¨</option> |
| | | <option value="已确认">已确认</option> |
| | | <option value="æªç¡®è®¤">æªç¡®è®¤</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--<hr />--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç©æåç§°</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="MaterialName" id="MaterialName" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è§æ ¼åå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="SpecificationModel" id="SpecificationModel" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæä»åº</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="Warehouse" id="Warehouse" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æºååå·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HSourceBillNo" id="HSourceBillNo" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¶å人</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="Hmaker" id="Hmaker" style="width:190px;"> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä»åºæ¥æ¶</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;width: 184px;"> |
| | | <select name="HCKStatus" lay-verify="HCKStatus" id="HCKStatus"> |
| | | <option value="å
¨é¨">å
¨é¨</option> |
| | | <option value="å·²æ¥æ¶">å·²æ¥æ¶</option> |
| | | <option value="æªæ¥æ¶">æªæ¥æ¶</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-audit"><i class="layui-icon layui-icon-repeat"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Faudit"><i class="layui-icon layui-icon-refresh"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_PZQRBill"><i class="layui-icon layui-icon-set"></i>å质确认</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_CKJSBill"><i class="layui-icon layui-icon-set"></i>ä»åºæ¥æ¶</button> |
| | | </div> |
| | | </script> |
| | | </form> |
| | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //#region 头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | table.on("toolbar(mainTable)", function (obj) { |
| | | switch (obj.event) { |
| | | ////æ°å¢ |
| | | //case 'set_AddNew': set_AddNew(); |
| | | // break; |
| | | ////ç¼è¾ |
| | | //case 'set_ShowBill': set_ShowBill(); |
| | | // break; |
| | | //å é¤ |
| | | case 'set_DeleteBill': set_DeleteBill(); |
| | | break; |
| | | ////å·æ° |
| | | //case 'get_Refresh': get_Refresh(); |
| | | // break; |
| | | ////éåºæé® |
| | | //case 'get_Exit': Pub_Close(2); |
| | | // break; |
| | | }; |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) {//éæ©ä»ä½ |
| | | form.on('submit(btnSearch)', function (data) { |
| | | get_FastQuery(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //éæ©ç©æ |
| | | form.on('submit(btnMaterial)', function (data) { |
| | | btnMaterial(); |
| | | }) |
| | | |
| | | //éæ©çäº§è½¦é´ |
| | | form.on('submit(btnHDept)', function (data) { |
| | | btnHDept(); |
| | | }) |
| | | |
| | | //éæ©å·¥æ®µ |
| | | form.on('submit(btnProcMul)', function (data) { |
| | | btnProcMul(); |
| | | }) |
| | | |
| | | //éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | | set_ClearQuery(); |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-50' |
| | | , height: 570 |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | |
| | | , { field: 'å
³éç±»å', title: 'å
³éç±»å', width: 170 } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº' } |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', width: 200, templet: "<div>{{d.ä½åºæ¥æ ==null ?'':layui.util.toDateString(d.ä½åºæ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'æºåç±»å', title: 'æºåç±»å', width: 170 } |
| | | , { field: 'æºååå
ç ', title: 'æºååå
ç ', width: 170 } |
| | | , { field: 'æºåå·', title: 'æºåå·', width: 170 } |
| | | , { field: 'æå°æ¬¡æ°', title: 'æå°æ¬¡æ°', width: 170 } |
| | | , { field: 'éæäººä»£ç ', title: 'éæäººä»£ç ', width: 170 } |
| | | , { field: 'éæäºº', title: 'éæäºº', width: 170 } |
| | | , { field: 'é
é人代ç ', title: 'é
é人代ç ', width: 170 } |
| | | , { field: 'é
é人', title: 'é
é人', width: 170 } |
| | | , { field: 'ä¿ç®¡äººä»£ç ', title: 'ä¿ç®¡äººä»£ç ', width: 170 } |
| | | , { field: 'ä¿ç®¡äºº', title: 'ä¿ç®¡äºº', width: 170 } |
| | | , { field: 'éææ¨¡å¼', title: 'éææ¨¡å¼', width: 170 } |
| | | , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨', width: 170 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 170 } |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 170 } |
| | | , { field: 'é¨é¨åç§°', title: 'é¨é¨åç§°', width: 170 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 170 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 170 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 215 } |
| | | , { field: 'æ°é', title: 'æ°é', width: 170 } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ', width: 170 } |
| | | , { field: 'å·¥åºåç§°', title: 'å·¥åºåç§°', width: 170 } |
| | | , { field: 'è°å
¥ä»åºä»£ç ', title: 'è°å
¥ä»åºä»£ç ', width: 170 } |
| | | , { field: 'è°å
¥ä»åºåç§°', title: 'è°å
¥ä»åºåç§°', width: 170 } |
| | | , { field: 'è°åºä»åºä»£ç ', title: 'è°åºä»åºä»£ç ', width: 170 } |
| | | , { field: 'è°åºä»åºåç§°', title: 'è°åºä»åºåç§°', width: 170 } |
| | | , { field: 'è°å
¥ä»ä½åç§°', title: 'è°å
¥ä»ä½åç§°', width: 170 } |
| | | , { field: 'è°åºä»ä½åç§°', title: 'è°åºä»ä½åç§°', width: 170 } |
| | | , { field: 'åè´¨å¤å®', title: 'åè´¨å¤å®', width: 170 } |
| | | , { field: 'éæåå ', title: 'éæåå ', width: 170 } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 170 } |
| | | , { field: 'ä¾åºååç§°', title: 'ä¾åºååç§°', width: 170 } |
| | | , { field: 'éæäºº', title: 'éæäºº', width: 160 } |
| | | , { field: 'æ¬è¿äºº', title: 'æ¬è¿äºº', width: 160 } |
| | | , { field: 'éªæ¶äºº', title: 'éªæ¶äºº', width: 160 } |
| | | , { field: 'è°åºç»ç»', title: 'è°åºç»ç»', width: 160 } |
| | | , { field: 'è°å
¥ç»ç»', title: 'è°å
¥ç»ç»', width: 160 } |
| | | , { field: 'éææ¨¡å¼', title: 'éææ¨¡å¼', width: 160 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 160 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 160 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 160 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 160 } |
| | | , { field: 'éåæ°é', title: 'éåæ°é', width: 160 } |
| | | , { field: 'ä»åºä»£ç ', title: 'ä»åºä»£ç ', width: 160 } |
| | | , { field: 'è°å
¥ä»åº', title: 'è°å
¥ä»åº', width: 160 } |
| | | , { field: 'è°å
¥ä»ä½', title: 'è°å
¥ä»ä½', width: 160 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', width: 160 } |
| | | , { field: 'è°åºä»ä½', title: 'è°åºä»ä½', width: 160 } |
| | | , { field: '责任é¨é¨ä»£ç ', title: '责任é¨é¨ä»£ç ', width: 160 } |
| | | , { field: '责任é¨é¨åç§°', title: '责任é¨é¨åç§°', width: 160 } |
| | | ]] |
| | | }; |
| | | } |
| | | |
| | | //éæ©ç©æ |
| | | function btnMaterial() { |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç©æå表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_MaterialList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#MaterialName").val(checkStatus.data[0].HName);//ç©æåç§° |
| | | $("#MaterialModel").val(checkStatus.data[0].HModel);//ç©æè§æ ¼åå· |
| | | $("#MaterialNumber").val(checkStatus.data[0].HNumber);//ç©æä»£ç |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //éæ©çäº§è½¦é´ |
| | | function btnHDept() { |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ç产车é´å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_DepartmentList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HDeptName").val(checkStatus.data[0].HName);//é¨é¨åç§° |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //éæ©å·¥æ®µ ææ |
| | | function btnProcMul() { |
| | | layer.open({ |
| | | type: 2 //ç±»å |
| | | , skin: 'layui-layer-rim'//å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: '工段å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | //, content: ['../../Baseset/åºç¡èµæ/Gy_DepartmentList.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#ProcMul").val(checkStatus.data[0].HName);//工段åç§° |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | | }) |
| | | } |
| | | |
| | | //#region éç½®è¿æ»¤æ¡ä»¶æ¹æ³ |
| | | function set_ClearQuery() { |
| | | $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));//å¼å§æ¥æ |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));//ç»ææ¥æ |
| | | $("#HBillNo").val("");//åæ®å· |
| | | $("#HDeptID").val("");//é¨é¨ |
| | | $("#HBillNo").val("");//æ¥åºæ®å· |
| | | $("#MaterialCode").val("");//ç©æä»£ç |
| | | $("#MaterialName").val("");//ç©æåç§° |
| | | $("#SpecificationModel").val("");//è§æ ¼åå· |
| | | $("#Warehouse").val("");//åæä»åº |
| | | $("#HSourceBillNo").val("");//æºååå· |
| | | $("#Hmaker").val("");//å¶å人 |
| | | $("#MaterialModel").val("");//è§æ ¼åå· |
| | | $("#HDeptName").val("");//çäº§è½¦é´ |
| | | $("#ProcMul").val("");//工段 |
| | | |
| | | $("#btnSearch").click();//å·æ° |
| | | sWhere = ""; |
| | |
| | | |
| | | //#region å¿«éè¿æ»¤ |
| | | function get_FastQuery() { |
| | | var HBeginDate = $("#HBeginDate").val();//å¼å§æ¶é´ |
| | | var HEndDate = $("#HEndDate").val();//ç»ææ¶é´ |
| | | var HBillNo = $("#HBillNo").val();//åæ®å· |
| | | var HDeptID = $("#HDeptID").val();//é¨é¨ |
| | | var MaterialCode = $("#MaterialCode").val();//ç©æä»£ç |
| | | var HBeginDate = $("#HBeginDate").val();//éææ¥æ |
| | | var HEndDate = $("#HEndDate").val();//éæç»ææ¶é´ |
| | | var HBillNo = $("#HBillNo").val();//æ¥åºåå· |
| | | var MaterialNumber = $("#MaterialNumber").val();//ç©æä»£ç |
| | | var MaterialName = $("#MaterialName").val();//ç©æåç§° |
| | | var SpecificationModel = $("#SpecificationModel").val();//è§æ ¼åå· |
| | | var Warehouse = $("#Warehouse").val();//åæä»åº |
| | | var HSourceBillNo = $("#HSourceBillNo").val();//æºååå· |
| | | var Hmaker = $("#Hmaker").val();//å¶å人 |
| | | var MaterialModel = $("#MaterialModel").val();//è§æ ¼åå· |
| | | var HDeptName = $("#HDeptName").val();//çäº§è½¦é´ |
| | | var ProcMul = $("#ProcMul").val();//工段 |
| | | var Hmaker = sessionStorage["HUserName"];//å½åç¨æ· |
| | | var HOrgID = sessionStorage["OrganizationID"];//ç»ç» |
| | | var HPZStatus = $("#HPZStatus").val();//å质确认 |
| | | var HCKStatus = $("#HCKStatus").val();//ä»åºæ¥æ¶ |
| | | |
| | | if (HBeginDate) { |
| | | sWhere += " and CONVERT(varchar(100),æ¥æ, 23) >= '" + HBeginDate + "'"; |
| | | sWhere = { |
| | | HBeginDate: HBeginDate, |
| | | HEndDate: HEndDate, |
| | | HBillNo: HBillNo, |
| | | MaterialNumber: MaterialNumber, |
| | | MaterialName: MaterialName, |
| | | MaterialModel: MaterialModel, |
| | | HDeptName: HDeptName, |
| | | ProcMul: ProcMul, |
| | | Hmaker: Hmaker, |
| | | HOrgID: HOrgID, |
| | | HPZStatus: HPZStatus, |
| | | HCKStatus: HCKStatus |
| | | } |
| | | if (HEndDate) { |
| | | sWhere += " and CONVERT(varchar(100),æ¥æ, 23) <= '" + HEndDate + "'"; |
| | | } |
| | | if (HBillNo) { |
| | | sWhere += " and åæ®å· like '%" + HBillNo + "%'"; |
| | | } |
| | | if (HDeptID) { |
| | | sWhere += " and é¨é¨åç§° like '%" + HDeptID + "%'"; |
| | | } |
| | | if (MaterialCode) { |
| | | sWhere += " and ç©æä»£ç like '%" + MaterialCode + "%'"; |
| | | } |
| | | if (MaterialName) { |
| | | sWhere += " and ç©æåç§° like '%" + MaterialName + "%'"; |
| | | } |
| | | if (SpecificationModel) { |
| | | sWhere += " and è§æ ¼åå· like '%" + SpecificationModel + "%'"; |
| | | } |
| | | if (Warehouse) { |
| | | sWhere += " and è°å
¥ä»åºåç§° like '%" + Warehouse + "%'"; |
| | | } |
| | | if (HSourceBillNo) { |
| | | sWhere += " and æºååå· like '%" + HSourceBillNo + "%'"; |
| | | } |
| | | if (Hmaker) { |
| | | sWhere += " and å¶å人 like '%" + Hmaker + "%'"; |
| | | } |
| | | get_Display(sWhere); |
| | | |
| | | get_Display(JSON.stringify(sWhere)); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | } |
| | | //#endregion |
| | | |
| | | //å é¤ |
| | | function set_DeleteBill() { |
| | | var CheckStatus = table.checkStatus("mainTable"); |
| | | |
| | | if (CheckStatus.data.length != 1) { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®!") |
| | | } else { |
| | | layer.confirm('æ¨ç¡®å®è¦å é¤åï¼', { |
| | | btn: ['ç¡®å®', 'åæ¶'] //æé® |
| | | , btn1: function () { |
| | | var HInterID = CheckStatus.data[0].hmainid; //è·åç¼å· |
| | | var HEntryID = CheckStatus.data[0].hsubid; //è·åç¬¬å æ¡åæ°æ® |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cj_CallGoodsBillBack/DelCallGoodsBill' |
| | | , type: "GET" |
| | | , data: { "HInterID": HInterID, "HEntryID": HEntryID, "User": sessionStorage["HUserName"] } |
| | | , success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | ////éè½½tree |
| | | //tree.reload('treeDepartment', {}); |
| | | }); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | //以䏿¯layui模å |