| | |
| | | <Content Include="views\模治å
·ç®¡ç\模治å
·ä»åºç®¡ç\Sc_MouldScrapOutBillList.html" /> |
| | | <Content Include="views\模治å
·ç®¡ç\模治å
·ç¹æ£ä¿å
»\Sc_MouldDotCheckBill_PDA.html" /> |
| | | <Content Include="views\模治å
·ç®¡ç\模治å
·ç¹æ£ä¿å
»\Sc_MouldMaintainBill_PDA.html" /> |
| | | <Content Include="views\模治å
·ç®¡ç\模治å
·ç®¡ç\BatchGen_MouldFile.html" /> |
| | | <Content Include="views\模治å
·ç®¡ç\模治å
·ç®¡ç\Gy_CheckToolsFileMainList.html" /> |
| | | <Content Include="views\模治å
·ç®¡ç\模治å
·ç®¡ç\Gy_MouldFileList.html" /> |
| | | <Content Include="views\模治å
·ç®¡ç\模治å
·ç®¡ç\Gy_MouldFile.html" /> |
| | |
| | | form.on('submit(cmdDelete)', function () {//å é¤ |
| | | var checkStatus = table.checkStatus('dj-table') |
| | | , data = checkStatus.data; |
| | | var sInterID = data[0].HInterID |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductInBillList/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº, |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | if (checkStatus.data.length === 1) { |
| | | var sInterID = data[0].HInterID; |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductInBillList/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº, |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | |
| | | }); |
| | | |
| | | |
| | |
| | | <script type="text/html" id="toolbarDemo2"> |
| | | <div class="layui-btn-container"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Check2"><i class="layui-icon layui-icon-delete"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Check2" id="btn-Check2"><i class="layui-icon layui-icon-delete"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Refresh2"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Exit2"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | </div> |
| | |
| | | <script type="text/html" id="toolbarDemo3"> |
| | | <div class="layui-btn-container"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Check3"><i class="layui-icon layui-icon-delete"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Check3" id="btn-Check3"><i class="layui-icon layui-icon-delete"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Refresh3"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Exit3"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | </div> |
| | |
| | | <script type="text/html" id="toolbarDemo4"> |
| | | <div class="layui-btn-container"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Check4"><i class="layui-icon layui-icon-delete"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Check4" id="btn-Check4"><i class="layui-icon layui-icon-delete"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Refresh4"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Exit4"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | </div> |
| | |
| | | <script type="text/html" id="toolbarDemo5"> |
| | | <div class="layui-btn-container"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Check5"><i class="layui-icon layui-icon-delete"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Check5" id="btn-Check5"><i class="layui-icon layui-icon-delete"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Refresh5"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Exit5"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | </div> |
| | |
| | | <script type="text/html" id="toolbarDemo6"> |
| | | <div class="layui-btn-container"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Check6"><i class="layui-icon layui-icon-delete"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Check6" id="btn-Check6"><i class="layui-icon layui-icon-delete"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Refresh6"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Exit6"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | </div> |
| | |
| | | <script type="text/html" id="toolbarDemo7"> |
| | | <div class="layui-btn-container"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Check7"><i class="layui-icon layui-icon-delete"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Check7" id="btn-Check7"><i class="layui-icon layui-icon-delete"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Refresh7"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Exit7"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | </div> |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length >= 1) { |
| | | var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"]; |
| | | $('#btn-Check2').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeProdMove", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | $('#btn-Check1').addClass("layui-btn-disabled").attr("disabled", true); |
| | | window.location.reload(); |
| | | }); |
| | | |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length >= 1) { |
| | | var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"]; |
| | | $('#btn-Check3').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeProdOut", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length >= 1) { |
| | | var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"]; |
| | | $('#btn-Check4').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeProdOutBack", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length >= 1) { |
| | | var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"]; |
| | | $('#btn-Check5').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeOtherIn", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length >= 1) { |
| | | var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"]; |
| | | $('#btn-Check6').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeScrapOut", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length >= 1) { |
| | | var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"]; |
| | | $('#btn-Check7').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeProdBack", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| New file |
| | |
| | | <!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"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | | <div class="layui-card" style="padding: 2px;background-color: #efefef;"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" style="background-color:white;"> |
| | | <div style="padding: 10px;"> |
| | | <button type="button" id="btnSave" class="layui-btn layui-btn-normal" style="margin-left: 0px" lay-submit="" lay-filter="btnSave">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" style="margin-left: 0px" lay-filter="Exit">éåº</button> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <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="StarNum" id="StarNum" placeholder="èµ·å§æµæ°´å·"> |
| | | <span>~</span> |
| | | <input type="text" class="layui-input" name="EndNum" id="EndNum" placeholder="ç»ææµæ°´å·"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/layui/lay/modules/util.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script> |
| | | var Stverf = ""; |
| | | //è·å页é¢è·³è½¬åæ° |
| | | var params = get_UrlVars(); |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | | var OperationType = 1;//æä½ç±»å |
| | | } else { |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | } |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , laydate = layui.laydate |
| | | , element = layui.element |
| | | , util = layui.util |
| | | ; |
| | | //#endregion |
| | | |
| | | |
| | | //#region 页颿é®è§¦åäºä»¶ |
| | | //ä¿å |
| | | $("#btnSave").click(function () { |
| | | if (!AllowLoadData())//æ°æ®éªè¯ |
| | | { |
| | | return false; |
| | | } |
| | | var StarNum = $("#StarNum").val(); |
| | | var EndNum = $("#EndNum").val(); |
| | | //æ°å¢ |
| | | $.ajax({ |
| | | type: "Get", |
| | | url: GetWEBURL() + "/Gy_Mould/SaveBatchGen_MouldFile", |
| | | async: true, |
| | | data: { "HInterID": linterid, "StarNum": StarNum, "EndNum": EndNum }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | if (linterid == undefined) { |
| | | $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true); |
| | | } |
| | | else { |
| | | var index = parent.layer.getFrameIndex(window.name); //å
å¾å°å½åiframeå±çç´¢å¼ |
| | | parent.layer.close(index); //åæ§è¡å
³é |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //éåºæé® |
| | | form.on('submit(Exit)', function () { |
| | | if (linterid == undefined) { |
| | | Pub_Close(2); |
| | | } |
| | | else { |
| | | Pub_Close(1); |
| | | } |
| | | }) |
| | | //#endregion |
| | | |
| | | |
| | | function AllowLoadData() { //é空éªè¯ |
| | | var Result = true; |
| | | if ($("#StarNum").val() == '' || $("#StarNum").val() == null) { |
| | | layer.msg("èµ·å§æµæ°´å·ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | if ($("#EndNum").val() == '' || $("#EndNum").val() == null) { |
| | | layer.msg("ç»ææµæ°´å·ä¸è½ä¸ºç©ºï¼", { icon: 5, btn: ['确认'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return Result = false; |
| | | } |
| | | return Result; |
| | | } |
| | | }) |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | <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="get_Initialize"><i class="layui-icon layui-icon-share"></i>åå§å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_BatchGen"><i class="layui-icon layui-icon-add-1"></i>æ¹éçæ</button> |
| | | </div> |
| | | </script> |
| | | </form> |
| | |
| | | break; |
| | | //åå§åæé® |
| | | case 'get_Initialize': get_Initialize(); |
| | | break; |
| | | case 'get_BatchGen': get_BatchGen(); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | } |
| | | |
| | | //æ¹éçæ |
| | | function get_BatchGen() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].hmainid.toString(); |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æ¹éæ°å¢å¨å
·æ¡£æ¡', |
| | | closeBtn: false, |
| | | shift: 2, |
| | | area: ['70%', '70%'], |
| | | maxmin: true, |
| | | content: 'BatchGen_MouldFile.html?OperationType=3&linterid=' + HInterID + '&HSouceBillType=', |
| | | end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ï¼'); |
| | | } |
| | | } |
| | | //以䏿¯layui模å |
| | | }); |
| | | |
| | |
| | | |
| | | $('#HMaterCode').attr("disabled", false); |
| | | $('#HMaterCode').attr("readonly", true); |
| | | $('#HMaterList').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#HMaterList').addClass("layui-btn-disabled").attr("disabled", false); |
| | | $('#HMaterName').attr("readonly", true); |
| | | $('#HMaterSpec').attr("readonly", true); |
| | | $('#HSourceName').attr("disabled", false); |
| | |
| | | //å é¤ |
| | | form.on('submit(cmdDelete)', function () { |
| | | var checkStatus = table.checkStatus('dj-table') |
| | | , data = checkStatus.data; |
| | | // console.log(data); |
| | | // var sInterID = $('#HInterID').val() |
| | | var sInterID = data[0].HInterID |
| | | //var sMaterID = data[0].HMaterID |
| | | //var sBillType = $('#HBillType').val() |
| | | //var sAuxPropID = data[0].HAuxPropID |
| | | ////var sMTONo = data[0].HMTONo |
| | | //var sMTONo = 0 |
| | | //var sSourceInterID = data[0].HSourceInterID |
| | | //var sSourceEntryID = data[0].HSourceEntryID |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/Web/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //layer.msg(data.Message, { icon: 1 }); |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | , cellMinWidth: 80 |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: '1206', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 80 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 80 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 100 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 100 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var sInterID = data[0].HInterID; |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/Web/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //layer.msg(data.Message, { icon: 1 }); |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | , cellMinWidth: 80 |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: '1206', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 80 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 80 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 100 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 100 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | }); |
| | | |
| | | table.render({ |
| | |
| | | form.on('submit(cmdDelete)', function () {//å é¤ |
| | | var checkStatus = table.checkStatus('dj-table') |
| | | , data = checkStatus.data; |
| | | var sInterID = data[0].HInterID |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductInBillList/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº, |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | if (checkStatus.data.length === 1) { |
| | | var sInterID = data[0].HInterID |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var wait = layer.load(); |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductInBillList/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº, |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | |
| | | }); |
| | | |
| | | |
| | |
| | | form.on('submit(cmdDelete)', function () { |
| | | var checkStatus = table.checkStatus('dj-table') |
| | | , data = checkStatus.data; |
| | | var sInterID = data[0].HInterID |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductInBillList/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº, |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | if (checkStatus.data.length === 1) { |
| | | var sInterID = data[0].HInterID; |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductInBillList/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº, |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | }); |
| | | |
| | | |
| | |
| | | |
| | | form.on('submit(cmdDelete)', function () {//å é¤ |
| | | var checkStatus = table.checkStatus('dj-table') |
| | | , data = checkStatus.data; |
| | | var sInterID = data[0].HInterID |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductInBillList/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº, |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var sInterID = data[0].HInterID |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductInBillList/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº, |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | |
| | | }); |
| | | |
| | | |
| | |
| | | |
| | | form.on('submit(cmdDelete)', function () {//å é¤ |
| | | var checkStatus = table.checkStatus('dj-table') |
| | | , data = checkStatus.data; |
| | | // console.log(data); |
| | | // var sInterID = $('#HInterID').val() |
| | | var sInterID = data[0].HInterID |
| | | //var sMaterID = data[0].HMaterID |
| | | //var sBillType = $('#HBillType').val() |
| | | //var sAuxPropID = data[0].HAuxPropID |
| | | ////var sMTONo = data[0].HMTONo |
| | | //var sMTONo = 0 |
| | | //var sSourceInterID = data[0].HSourceInterID |
| | | //var sSourceEntryID = data[0].HSourceEntryID |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/Web/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //layer.msg(data.Message, { icon: 1 }); |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | , cellMinWidth: 80 |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: '1203', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 80 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 80 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 100 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 100 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var sInterID = data[0].HInterID |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/Web/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | //layer.msg(data.Message, { icon: 1 }); |
| | | table.render({ |
| | | elem: '#dj-table' |
| | | , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json' |
| | | , cellMinWidth: 80 |
| | | , toolbar: '#toolbarDemo' |
| | | , where: { HBillType: '1203', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 80 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 80 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 100 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 100 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | }); |
| | | |
| | | |
| | |
| | | }); |
| | | }); |
| | | |
| | | |
| | | form.on('submit(cmdDelete)', function () {//å é¤ |
| | | //å é¤ |
| | | form.on('submit(cmdDelete)', function () { |
| | | var checkStatus = table.checkStatus('dj-table') |
| | | , data = checkStatus.data; |
| | | var sInterID = data[0].HInterID |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/Web/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.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(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var sInterID = data[0].HInterID |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/Web/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.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(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | |
| | | }); |
| | | |
| | | |
| | |
| | | }); |
| | | |
| | | |
| | | /æ¤éåè½ |
| | | //æ¤éåè½ |
| | | form.on('submit(cmdRescind)', function () { |
| | | var checkStatus = table.checkStatus('yd-table') |
| | | , data = checkStatus.data; |
| | |
| | | form.on('submit(cmdDelete)', function () {//å é¤ |
| | | var checkStatus = table.checkStatus('dj-table') |
| | | , data = checkStatus.data; |
| | | var sInterID = data[0].HInterID |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductInBillList/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº, |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | if (checkStatus.data.length === 1) { |
| | | var sInterID = data[0].HInterID; |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax( |
| | | { |
| | | type: "Get", |
| | | url: GetWEBURL() + "/ProductInBillList/Delete_Json", |
| | | async: true, |
| | | data: { "sHInterID": sInterID }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäº, |
| | | layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 2 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | |
| | | }); |
| | | |
| | | |