工资管理相关新增、列表模块修改,乔一销售出库扫码模块优化
| | |
| | | //var WEBURL = "http://192.168.16.80:8011/"; //åå
¬å®¤æå¡å¨ |
| | | //var WEBURL = "http://localhost:8081/SWEAPI/"; //chæ¬å°*/ |
| | | //var WEBURL = "http://61.164.86.218:8099/ABAPI/"; |
| | | //var WEBURL = "http://localhost/API/"; //颿忬å°é
ç½® |
| | | var WEBURL = "http://localhost/API/"; //颿忬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨ä¹æ¬å°é
ç½® |
| | | var WEBURL = "http://localhost:8082/API/"; //æè´ºæ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/API/"; //æè´ºæ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:81/API/"; //éé¯éæ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //ä½ææ°æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8088/ARAPI/"; //ä½ææ°æ¬å°é
ç½®(å®ç) |
| | |
| | | <button type="button" lay-submit="" lay-filter="cmdAdd" class="layui-btn" id="cmdAdd">æ°å¢</button> |
| | | <button type="button" lay-submit="" lay-filter="cmdSaver" class="layui-btn" id="cmdSaver">æäº¤</button> |
| | | <!--<button type="button" lay-submit="" lay-filter="cmdModify" class="layui-btn" id="cmdModify">ç¼è¾</button>--> |
| | | <button type="button" lay-submit="" lay-filter="cmdDelete" class="layui-btn" id="cmdDelete">å é¤</button> |
| | | <button type="button" lay-submit="" lay-filter="cmdDelete" class="layui-btn" id="cmdDelete">æ¸
空</button> |
| | | <button type="button" lay-submit="" lay-filter="cmdCancel" class="layui-btn" id="cmdCancel">éåº</button> |
| | | </div> |
| | | </div> |
| | |
| | | parent.location.href = "../../WMSæ«ç 模å/éå®åºåº/Kf_SellOutBillList_QiaoYi_PDA.html"; |
| | | } |
| | | else { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | parent.location.href = "../../../views/index_Mobile_QiaoYi.html"; |
| | | } |
| | | }//å
³é |
| | | } |
| | |
| | | |
| | | //#endregion |
| | | |
| | | //#region å é¤ |
| | | //#region æ¸
空 |
| | | |
| | | form.on('submit(cmdDelete)', function () { |
| | | var checkStatus = table.checkStatus('wl-table') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length == 1) { |
| | | layer.confirm("确认è¦å é¤éä¸è¡æææ«ç è®°å½ï¼å é¤åå°ä¸å¯æ¢å¤ï¼", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | layer.confirm("ç¡®è®¤è¦æ¸
空éä¸è¡æææ«ç è®°å½ï¼æ¸
空åå°ä¸å¯æ¢å¤ï¼", { title: "æ¸
空确认" }, function (index) { |
| | | var sMaterID = data[0].HMaterID |
| | | var sAuxPropID = data[0].HAuxPropID |
| | | var sMTONo = data[0].HMTONo |
| | |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡è®°å½ï¼è¿è¡å é¤ï¼'); |
| | | layer.msg('è¯·éæ©ä¸è¡è®°å½ï¼è¿è¡æ¸
空ï¼'); |
| | | } |
| | | }); |
| | | |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].hmainid.toString(); |
| | | var HBillNo = data[0].åæ®å·.toString(); |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var wait = layer.load(); |
| | | //é»è¾å 餿¹æ³ |
| | |
| | | success: function (result) { |
| | | console.log('gouba' + result); |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { icon: 1 }, function () { |
| | | layer.msg("åæ®å·ï¼" + HBillNo + " å 餿åï¼", { icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].hmainid.toString(); |
| | | var HBillNo = data[0].åæ®å·.toString(); |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var wait = layer.load(); |
| | | //é»è¾å 餿¹æ³ |
| | |
| | | success: function (result) { |
| | | console.log('gouba' + result); |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { icon: 1 }, function () { |
| | | layer.msg("åæ®å·ï¼" + HBillNo + " å 餿åï¼", { icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].hmainid.toString(); |
| | | var HBillNo = data[0].åæ®å·.toString(); |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var wait = layer.load(); |
| | | //é»è¾å 餿¹æ³ |
| | |
| | | success: function (result) { |
| | | console.log('gouba' + result); |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { icon: 1 }, function () { |
| | | layer.msg("åæ®å·ï¼" + HBillNo+" å 餿åï¼", { icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å®¡æ ¸äºº</label> |
| | | <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="HUpdater" id="HUpdater" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å
³é人</label> |
| | | <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="HChecker" id="HChecker" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å®¡æ ¸æ¥æ</label> |
| | | <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="HUpdaterDate" id="HUpdaterDate" 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="HCheckerDate" id="HCheckerDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="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="HBacker" id="HBacker" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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> |
| | | <div class="layui-row"> |
| | | <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 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 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="HBackerDate" id="HBackerDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HBackRemark" id="HBackRemark" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | if (OperationType == 1) { |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HCheckDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HChecker").val(sessionStorage["HUserName"]); |
| | | $("#HUpDateDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HUpDater").val(sessionStorage["HUserName"]); |
| | | $("#HCloseDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HDeleteDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //åå§å è½½è¡¨æ ¼{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } |
| | | option.data = [{ |
| | | "HEmpID": "", "HEmpNumber": "", "HEmpName": "", "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HProcID": "", "HProcNumber": "", "HProcName": "" |
| | |
| | | , "HExplanation": data.æè¦ //æè¦ |
| | | , "HRemark": data.è¡¨å¤´å¤æ³¨ //夿³¨ |
| | | , "HMaker": data.å¶å人 |
| | | , "HUpdater": data.ä¿®æ¹äºº |
| | | , "HChecker": data.å®¡æ ¸äºº |
| | | , "HCloseMan": data.å
³é人 |
| | | , "HMakeDate": data.å¶åæ¥æ |
| | | , "HCheckDate": data.å®¡æ ¸æ¥æ |
| | | , "HCloseDate": data.å
³éæ¥æ |
| | | , "HUpDateDate": data.ä¿®æ¹æ¥æ |
| | | , "HDeleteDate": data.ä½åºæ¥æ |
| | | , "HDeleteMan": data.ä½åºäºº |
| | | , "HMakeDate": data.å¶åæ¥æ == null ? "" : Format(data.å¶åæ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HUpdaterDate": data.ä¿®æ¹æ¥æ == null ? "" : Format(data.ä¿®æ¹æ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HCheckerDate": data.å®¡æ ¸æ¥æ == null ? "" : Format(data.å®¡æ ¸æ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HCloseDate": data.å
³éæ¥æ == null ? "" : Format(data.å
³éæ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HDeleteDate": data.ä½åºæ¥æ == null ? "" : Format(data.ä½åºæ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | }); |
| | | |
| | | } else { |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | var HBillNo = data[0].åæ®å·.toString(); |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax({ |
| | |
| | | data: { "HInterID": InterID, "user": sessionStorage["HUserName"]}, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | layer.msg("åæ®å·ï¼" + HBillNo + " å 餿åï¼", { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].hmainid.toString(); |
| | | var HBillNo = data[0].åæ®å·.toString(); |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var wait = layer.load(); |
| | | //é»è¾å 餿¹æ³ |
| | |
| | | success: function (result) { |
| | | console.log('gouba' + result); |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { icon: 1 }, function () { |
| | | layer.msg("åæ®å·ï¼" + HBillNo + " å 餿åï¼", { icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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 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="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å®¡æ ¸æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-row"> |
| | | <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 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> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ä¿®æ¹æ¥æ</label> |
| | |
| | | if (OperationType == 1) { |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | $("#HCheckDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HChecker").val(sessionStorage["HUserName"]); |
| | | $("#HUpDateDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HUpDater").val(sessionStorage["HUserName"]); |
| | | $("#HCloseDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HDeleteDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HDeleteMan").val(sessionStorage["HUserName"]); |
| | | $("#HCloseMan").val(sessionStorage["HUserName"]); |
| | | //åå§å è½½è¡¨æ ¼{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } |
| | | option.data = [{ |
| | | "HEmpID": "", "HEmpNumber": "", "HEmpName": "", "HEmpID": "", "HEmpRate": 0 |
| | |
| | | , "HMaker": data.å¶å人 |
| | | , "HChecker": data.å®¡æ ¸äºº |
| | | , "HCloseMan": data.å
³é人 |
| | | , "HMakeDate": data.å¶åæ¥æ |
| | | , "HCheckDate": data.å®¡æ ¸æ¥æ |
| | | , "HCloseDate": data.å
³éæ¥æ |
| | | , "HUpDateDate": data.ä¿®æ¹æ¥æ |
| | | , "HDeleteDate": data.ä½åºæ¥æ |
| | | , "HUpDater": data.ä¿®æ¹äºº |
| | | , "HDeleteMan": data.ä½åºäºº |
| | | , "HMakeDate": data.å¶åæ¥æ == null ? "" : Format(data.å¶åæ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HCheckDate": data.å®¡æ ¸æ¥æ == null ? "" : Format(data.å®¡æ ¸æ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HCloseDate": data.å
³éæ¥æ == null ? "" : Format(data.å
³éæ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HUpDateDate": data.ä¿®æ¹æ¥æ == null ? "" : Format(data.ä¿®æ¹æ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | , "HDeleteDate": data.ä½åºæ¥æ == null ? "" : Format(data.ä½åºæ¥æ, "yyyy-MM-dd hh:mm:ss") |
| | | }); |
| | | |
| | | } else { |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | var HBillNo = data[0].åæ®å·.toString(); |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax({ |
| | |
| | | data: { "HInterID": InterID, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | layer.msg("åæ®å·ï¼" + HBillNo + " å 餿åï¼", { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |