| | |
| | | <Content Include="views\车é´ç®¡ç\å·¥åºæµè½¬\MES_StationInBill_PDA_QiaoYi.html" /> |
| | | <Content Include="views\车é´ç®¡ç\å·¥åºæµè½¬\MES_StationOutBill_PDA_QiaoYi.html" /> |
| | | <Content Include="views\车é´ç®¡ç\å·¥åºæµè½¬\MES_StationOutBill_PDA_Detail.html" /> |
| | | <Content Include="views\车é´ç®¡ç\å·¥åºæµè½¬å¡\Gy_ProcessBatchReport.html" /> |
| | | <Content Include="views\车é´ç®¡ç\å·¥åºæµè½¬å¡\Sc_ProcExchRecordBackBillList.html" /> |
| | | <Content Include="views\车é´ç®¡ç\å·¥åºæµè½¬å¡\Sc_ProcExchRecordBackBillEdit.html" /> |
| | | <Content Include="views\车é´ç®¡ç\å·¥åºæµè½¬å¡\Sc_ProcessSendWorkEdit.html" /> |
| | |
| | | <Content Include="views\颿åè´§\颿åºåº\Kf_MateOutBill_Check_New.html" /> |
| | | <Content Include="views\颿åè´§\颿åºåº\Kf_StockOutRequestBill.html" /> |
| | | <Content Include="views\颿åè´§\颿åºåº\Kf_StockOutRequestBillList.html" /> |
| | | <Content Include="views\éªæ¶å
¥åº\Kf_OtherInBill_Fast.html" /> |
| | | <Content Include="views\éªæ¶å
¥åº\产åå
¥åº\Kf_ICStockBillSub_WMS_List.html" /> |
| | | <Content Include="views\éªæ¶å
¥åº\产åå
¥åº\Kf_ProductInBillList.html" /> |
| | | <Content Include="views\éªæ¶å
¥åº\å
¶ä»å
¥åº\Kf_OtherInBillList.html" /> |
| | |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <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="get_Refresh">å·æ°</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="Exit">éåº</button> |
| | | |
| | |
| | | } |
| | | }); |
| | | |
| | | //å·æ°æé® |
| | | form.on('submit(get_Refresh)', function () {//æäº¤ |
| | | layer.confirm('ç»§ç»å¯¹å½åæéç¨æ·è¿è¡æ´æ¹æéï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('PowerInformation.html?OperationType=3&linterid=' + linterid + '&HSouceBillType='); |
| | | }); |
| | | }) |
| | | |
| | | //çå¬é䏿°æ® |
| | | table.on('checkbox(mainTable)', function (obj) { |
| | | //console.log(obj.checked); //å½åæ¯å¦éä¸ç¶æ |
| | |
| | | <a><i class="layui-icon layui-icon-set"></i><cite>车é´ç®¡ç</cite></a> |
| | | <dl class="layui-nav-child"> |
| | | <dd> |
| | | <a>å·¥åºæµè½¬</a> |
| | | <a>å·¥åºæ´¾å·¥</a> |
| | | <dl class="layui-nav-child"> |
| | | <!--<dd><a lay-href="车é´ç®¡ç/å·¥åºæµè½¬å¡/WindowPrint.html">æµè¯æå°</a></dd>--> |
| | | <dd><a lay-href="车é´ç®¡ç/å·¥åºæµè½¬å¡/Sc_ProcessExchangeBill.html">å·¥åºæ´¾å·¥å</a></dd> |
| | |
| | | <form id="form0" 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">æ°å¢</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="Exit">éåº</button> |
| | | </div> |
| | |
| | | } |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | | form.on('submit(set_AddNew)', function () {//æäº¤ |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('Gy_UserByOrg.html?OperationType=1&linterid=0&HSouceBillType=&closeType=2'); |
| | | }); |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢æææ¹æ³ |
| | |
| | | <form id="form0" 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">æ°å¢</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="Exit">éåº</button> |
| | | </div> |
| | |
| | | } |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | | form.on('submit(set_AddNew)', function () {//æäº¤ |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('Gy_UserByUser.html?OperationType=1&linterid=0&HSouceBillType=&closeType=2'); |
| | | }); |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢æææ¹æ³ |
| | |
| | | <form id="form0" 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">æ°å¢</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="Exit">éåº</button> |
| | | </div> |
| | |
| | | } |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | | form.on('submit(set_AddNew)', function () {//æäº¤ |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('Gy_UserByWorkStation.html?OperationType=1&linterid=0&HSouceBillType=&closeType=2'); |
| | | }); |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢æææ¹æ³ |
| | |
| | | <form id="form0" 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">æ°å¢</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="Exit">éåº</button> |
| | | </div> |
| | |
| | | } |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | | form.on('submit(set_AddNew)', function () {//æäº¤ |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('Gy_UserCustomer.html?OperationType=1&linterid=0&HSouceBillType=&closeType=2'); |
| | | }); |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢æææ¹æ³ |
| | |
| | | <form id="form0" 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">æ°å¢</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="Exit">éåº</button> |
| | | </div> |
| | |
| | | } |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | | form.on('submit(set_AddNew)', function () {//æäº¤ |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('Gy_UserDept.html?OperationType=1&linterid=0&HSouceBillType=&closeType=2'); |
| | | }); |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢æææ¹æ³ |
| | |
| | | <form id="form0" 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">æ°å¢</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="Exit">éåº</button> |
| | | </div> |
| | |
| | | } |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | | form.on('submit(set_AddNew)', function () {//æäº¤ |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('Gy_UserEmployee.html?OperationType=1&linterid=0&HSouceBillType=&closeType=2'); |
| | | }); |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢æææ¹æ³ |
| | |
| | | <form id="form0" 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">æ°å¢</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="Exit">éåº</button> |
| | | </div> |
| | |
| | | } |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | | form.on('submit(set_AddNew)', function () {//æäº¤ |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('Gy_UserGroup.html?OperationType=1&linterid=0&HSouceBillType=&closeType=2'); |
| | | }); |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢æææ¹æ³ |
| | |
| | | <form id="form0" 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">æ°å¢</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="Exit">éåº</button> |
| | | </div> |
| | |
| | | } |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | | form.on('submit(set_AddNew)', function () {//æäº¤ |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('Gy_UserMater.html?OperationType=1&linterid=0&HSouceBillType=&closeType=2'); |
| | | }); |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢æææ¹æ³ |
| | |
| | | <form id="form0" 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">æ°å¢</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="Exit">éåº</button> |
| | | </div> |
| | |
| | | } |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | | form.on('submit(set_AddNew)', function () {//æäº¤ |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('Gy_UserProcess.html?OperationType=1&linterid=0&HSouceBillType=&closeType=2'); |
| | | }); |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢æææ¹æ³ |
| | |
| | | <form id="form0" 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">æ°å¢</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="Exit">éåº</button> |
| | | </div> |
| | |
| | | } |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | | form.on('submit(set_AddNew)', function () {//æäº¤ |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('Gy_UserStock.html?OperationType=1&linterid=0&HSouceBillType=&closeType=2'); |
| | | }); |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢æææ¹æ³ |
| | |
| | | <form id="form0" 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">æ°å¢</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="Exit">éåº</button> |
| | | </div> |
| | |
| | | } |
| | | }); |
| | | |
| | | //æ°å¢æé® |
| | | form.on('submit(set_AddNew)', function () {//æäº¤ |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('Xt_UserSuplies.html?OperationType=1&linterid=0&HSouceBillType=&closeType=2'); |
| | | }); |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢æææ¹æ³ |
| | |
| | | layer.msg("è§æ ¼åå·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | if ($("#HUnitName").val() == "") { |
| | | layer.msg("计éå使²¡æéæ©"); |
| | | return false; |
| | | } |
| | | //if ($("#HUnitName").val() == "") { |
| | | // layer.msg("计éå使²¡æéæ©"); |
| | | // return false; |
| | | //} |
| | | //if ($("#HMainProcIDName").val() == "") { |
| | | // layer.msg("å·¥åºæ²¡æéæ©"); |
| | | // return false; |
| | |
| | | layer.msg("第" + (i + 1) + "è¡:å·¥åºä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | //å¤åæ è®° |
| | | if (option.data[i]["HSupFlag"]) { |
| | | if (option.data[i]["HSupID"] == "0") { |
| | | layer.msg("第" + (i + 1) + "è¡:ä¾åºåä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | } |
| | | ////å¤åæ è®° |
| | | //if (option.data[i]["HSupFlag"]) { |
| | | // if (option.data[i]["HSupID"] == "0") { |
| | | // layer.msg("第" + (i + 1) + "è¡:ä¾åºåä¸è½ä¸ºç©º!"); |
| | | // return false; |
| | | // } |
| | | //} |
| | | //else { |
| | | // if (option.data[i]["HCenterID"] == "0") { |
| | | // layer.msg("第" + (i + 1) + "è¡:å·¥ä½ä¸å¿ä¸è½ä¸ºç©º!"); |
| | |
| | | //} |
| | | |
| | | //è¯ç 大äº0 å°äºçäº100 |
| | | if (parseInt(option.data[i]["HPassRate"]) <= 0) { |
| | | layer.msg("第" + (i + 1) + "è¡:è¯çå¿
须大äº0!"); |
| | | return false; |
| | | } |
| | | if (parseInt(option.data[i]["HPassRate"]) > 100) { |
| | | layer.msg("第" + (i + 1) + "è¡:è¯çå¿
é¡»å°äºçäº100!"); |
| | | return false; |
| | | } |
| | | //if (parseInt(option.data[i]["HPassRate"]) <= 0) { |
| | | // layer.msg("第" + (i + 1) + "è¡:è¯çå¿
须大äº0!"); |
| | | // return false; |
| | | //} |
| | | //if (parseInt(option.data[i]["HPassRate"]) > 100) { |
| | | // layer.msg("第" + (i + 1) + "è¡:è¯çå¿
é¡»å°äºçäº100!"); |
| | | // return false; |
| | | //} |
| | | |
| | | |
| | | //ä»åºéå¤ |
| | | if (option.data[i]["HBadWHID"] != 0 && option.data[i]["HWasterWHID"] != 0) { |
| | | //if (option.data[i]["HBadWHID"] != 0 && option.data[i]["HWasterWHID"] != 0) { |
| | | |
| | | if (option.data[i]["HBadWHID"] == option.data[i]["HWasterWHID"]) { |
| | | layer.msg("第" + (i + 1) + "è¡:ä¸è¯åä»åæ¥åºåä»éå¤!"); |
| | | return false; |
| | | } |
| | | } |
| | | if (option.data[i]["HBadWHID"] != 0 && option.data[i]["HWHID"] != 0) { |
| | | if (option.data[i]["HBadWHID"] == option.data[i]["HWHID"]) { |
| | | layer.msg("第" + (i + 1) + "è¡:ä¸è¯åä»åè¯åä»éå¤!"); |
| | | return false; |
| | | } |
| | | } |
| | | if (option.data[i]["HWasterWHID"] != 0 && option.data[i]["HWHID"] != 0) { |
| | | if (option.data[i]["HWasterWHID"] == option.data[i]["HWHID"]) { |
| | | layer.msg("第" + (i + 1) + "è¡:æ¥åºåä»åè¯åä»éå¤!"); |
| | | return false; |
| | | } |
| | | } |
| | | // if (option.data[i]["HBadWHID"] == option.data[i]["HWasterWHID"]) { |
| | | // layer.msg("第" + (i + 1) + "è¡:ä¸è¯åä»åæ¥åºåä»éå¤!"); |
| | | // return false; |
| | | // } |
| | | //} |
| | | //if (option.data[i]["HBadWHID"] != 0 && option.data[i]["HWHID"] != 0) { |
| | | // if (option.data[i]["HBadWHID"] == option.data[i]["HWHID"]) { |
| | | // layer.msg("第" + (i + 1) + "è¡:ä¸è¯åä»åè¯åä»éå¤!"); |
| | | // return false; |
| | | // } |
| | | //} |
| | | //if (option.data[i]["HWasterWHID"] != 0 && option.data[i]["HWHID"] != 0) { |
| | | // if (option.data[i]["HWasterWHID"] == option.data[i]["HWHID"]) { |
| | | // layer.msg("第" + (i + 1) + "è¡:æ¥åºåä»åè¯åä»éå¤!"); |
| | | // return false; |
| | | // } |
| | | //} |
| | | } |
| | | } |
| | | |
| | |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSave" id="btnSave">导å
¥æ°æ®</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="Cancel" id="Cancel">éåº</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="UpLoad" id="UpLoad">æä»¶ä¸ä¼ </button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="DownLoad" id="DownLoad">模æ¿ä¸è½½</button> |
| | | </div> |
| | | <div class="layui-collapse"> |
| | | <div class="layui-colla-item"> |
| | |
| | | debugger |
| | | layer.alert('导å
¥åºç°å¼å¸¸', { icon: 2 }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //ä¸è½½ |
| | | form.on('submit(DownLoad)', function () { |
| | | window.open("/files/å·¥èºè·¯çº¿å¯¼å
¥æ¨¡æ¿/导å
¥æ¨¡æ¿.xlsx"); |
| | | }) |
| | | |
| | | //éåº |
| | | form.on('submit(Cancel)', function () { |
| | |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå' } |
| | | , { field: 'è®¡åæ°é', title: 'è®¡åæ°é' } |
| | | , { field: 'è¿ç«æ°é', title: 'è¿ç«æ°é', edit: 'text' } |
| | | , { field: 'åºç«æ°é', title: 'åºç«æ°é' } |
| | | , { field: 'åºç«æ°é', title: 'å·²æ±æ¥æ°é' } |
| | | ]; |
| | | option = { |
| | | id: 'mainTable' |
| | |
| | | //console.log(d.data); |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | PicUpload(); |
| | | } |
| | | }); |
| | | $('#set_CheckBill').addClass("layui-btn-disabled").attr("disabled", true);//å®¡æ ¸æé®é»è®¤ç¦ç¨ |
| | |
| | | , { field: 'æµè½¬å¡æ°é', title: 'æ´¾å·¥åæ°é',width:103 } |
| | | , { field: 'æµæ°´å·', title: 'æµæ°´å·',width:50 } |
| | | , { field: 'å·¥åºåç§°', title: 'å·¥åºåç§°',width:135 } |
| | | , { field: 'åºç«æ°é', title: 'åºç«æ°é',width:90 } |
| | | , { field: 'åºç«æ°é', title: 'å·²æ±æ¥æ°é',width:95 } |
| | | , { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿',width:145 } |
| | | , { field: 'HOrderProcNO', title: '订åè·è¸ªå·', hide: true } |
| | | , { field: 'hbillno', title: '派工åå·', hide: true } |
| | |
| | | option.cols[0][i + 1]["width"] = 135; |
| | | break; |
| | | case 'åºç«æ°é': |
| | | option.cols[0][i + 1]["width"] = 90; |
| | | option.cols[0][i + 1]["width"] = 102; |
| | | break; |
| | | case 'å·¥ä½ä¸å¿': |
| | | option.cols[0][i + 1]["width"] = 145; |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8" /> |
| | | <title>æ¹éæ±æ¥</title> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <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/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <style> |
| | | .main-btn { /*头é¨ä¸»æé®*/ |
| | | padding: 0 2px; /*è°æ´æé®å·¦å³ç©ºé大å°*/ |
| | | height: 30px; |
| | | line-height: 30px; |
| | | } |
| | | |
| | | .btn-title { |
| | | font-size: 16px; |
| | | } |
| | | /* 鲿¢ä¸ææ¡ç䏿å表被éè---å¿
须设置--- */ |
| | | .layui-table-cell { |
| | | overflow: visible !important; |
| | | } |
| | | /* 使å¾ä¸ææ¡ä¸åå
æ ¼å好åé */ |
| | | td .layui-form-select { |
| | | margin-top: -10px; |
| | | margin-left: -15px; |
| | | margin-right: -15px; |
| | | } |
| | | |
| | | .layui-form-item .layui-inline { |
| | | margin-top: 5px; |
| | | margin-bottom: 5px; |
| | | margin-right: 0px; |
| | | } |
| | | |
| | | .layui-form-label { |
| | | width: 25%; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid" style="padding: 0;"> |
| | | <div class="layui-card" style="padding: 15px;"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" lay-filter="component-form-group" action=""> |
| | | <div class="layui-card-header"> |
| | | <div class="layui-btn-group"> |
| | | <button type="button" id="btnSave" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="btnSave">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Cancel">éåº</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="btn_print">æå°</button>--> |
| | | <!--<button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="HideColumn" id="HideColumn">éèå设置</button>--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li lay-id="1" style="padding:1px;" class="layui-this">åºæ¬ä¿¡æ¯</li> |
| | | <li lay-id="2" style="padding:1px;">å
¶ä»ä¿¡æ¯</li> |
| | | </ul> |
| | | <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-col-xs3 layui-inline"> |
| | | <label class="layui-form-label">æ±æ¥æ¥æ</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="date" class="layui-input" name="HDate" id="HDate"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs6 layui-inline"> |
| | | <label class="layui-form-label" style="width:12.5%">夿³¨</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" class="layui-input" name="HRemark" id="HRemark" style="width:600px;"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--å
¶ä»ä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item"> |
| | | <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="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> |
| | | <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="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> |
| | | <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> |
| | | <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> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="layui-hide" 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="btn-AddLine"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | </div>--> |
| | | </script> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </body> |
| | | </html> |
| | | <script type="text/html" id="barDemo"> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <!--è¡ä¸æéæ©(æ¯å¦å§å¤)--> |
| | | <script type="text/html" id="HSupFlag"> |
| | | <select name="HSupFlag" lay-filter="HSupFlag" id="HSupFlag{{d.LAY_TABLE_INDEX+1}}"> |
| | | <option value="false">å¦</option> |
| | | <option value="true">æ¯</option> |
| | | </select> |
| | | </script> |
| | | <script> |
| | | 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; |
| | | var option; |
| | | var StationOutID = []; |
| | | var StationOutBillNo = []; |
| | | |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | |
| | | //è·åç»ç» |
| | | Organ(); |
| | | |
| | | 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 HEntryID = params[params[2]];//æºååid |
| | | var HIeID = params[params[3]]; //æºåid + æºååid |
| | | var HReportNum = params[params[4]]; //æ±æ¥æ°é |
| | | } |
| | | |
| | | //å·¥åºæ´¾å·¥æ°å¢ |
| | | if (OperationType == 1) { |
| | | for (let i = 0; i < HReportNum; i++) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3791' }, |
| | | async: false, |
| | | success: function (d) { |
| | | StationOutID.push(d.data[0].HInterID); |
| | | StationOutBillNo.push(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss")); |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | //æ¥è¯¢å·¥åºæµè½¬å¡ |
| | | get_ProcessExchange(); |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | } else if (OperationType == 3) { |
| | | //ç¦ç¨ç»ç»é项 |
| | | $("#HUSEORGID").attr("disabled", true); |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | RoadBillMain(linterid); |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { |
| | | "lngBillKey": 0, "lngBillSubKey": 0, "HProcExchBillNo": "", "HSourceBillType": "", |
| | | "HProcNo": 0, "HProcName": "", "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", |
| | | "HSourceID": 0, "HSourceNumber": "", "HSourceName": "", "HEmpID": 0, "HEmpNumber": "", "HEmpName": "", |
| | | "HPlanQty": 0, "HQty": 0, "HWasterQty": 0, "HICMOBillNo": "", "HICMOInterID": 0, "HICMOEntryID": 0, |
| | | "HInterID": 0, "HBillNo": "", "HProcID": 0, "HCenterID": 0, "HWorkCenterNumber": "", "HWorkCenterName": "", |
| | | "HICMOQty": 0, "HPlanQty": 0 |
| | | }; |
| | | |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | | table.cache["mainTable"].push(NewRow); |
| | | option.data = table.cache["mainTable"]; |
| | | table.render(option); |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HSupFlag' + i + '').find("option[value='" + option.data[i - 1].HSupFlag + "']").attr("selected", true); |
| | | } |
| | | form.render('select'); |
| | | break; |
| | | case 'btn-CopyLine': |
| | | var copydata = JSON.stringify(data); |
| | | if (data.length <= 0) { |
| | | layer.msg("è¯·éæ©éè¦å¤å¶çä¸è¡ï¼"); |
| | | } |
| | | else if (data.length > 1) { |
| | | layer.msg("åªè½éæ©å¤å¶ä¸è¡ï¼"); |
| | | } |
| | | else { |
| | | var copydata2 = copydata.substring(1, copydata.length);//å»é¤é¦è¡å符'[' |
| | | var copyrow = copydata2.substring(0, copydata2.length - 1);//å»é¤æ«å°¾å符']' |
| | | table.cache["mainTable"].push(JSON.parse(copyrow));//å°å¤å¶çè¡å¼ºè½¬æjson追å å°è¡¨æ ¼ä¸ |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(option);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HSupFlag' + i + '').find("option[value='" + option.data[i - 1].HSupFlag + "']").attr("selected", true); |
| | | } |
| | | form.render('select'); |
| | | } |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | var data = obj.data; |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡åï¼', function (index) { |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | obj.del(); |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } else if (obj.event == 'inputHQty') { |
| | | $(obj.tr).find(".layui-table-edit").keyup(function () { |
| | | var $input = $(this), val = $input.val(); |
| | | if (!val) { |
| | | val = "0"; |
| | | } |
| | | if (val.length > 1) { |
| | | var firstNum = val.substring(0, 1); //æªåå符串第ä¸ä½æ°ï¼å¤ææ¯å¦ä¸º0ï¼ |
| | | if (firstNum == 0) { //å¦æç¬¬ä¸ä½æ°ä¸º0ï¼åå é¤ç¬¬ä¸ä½æ° |
| | | val = val.substring(1, val.length); |
| | | } |
| | | } |
| | | $input.val(val.replace(/[^\d]/g, '')); |
| | | }); |
| | | } else if (obj.event == 'inputWasterHQty') { |
| | | $(obj.tr).find(".layui-table-edit").keyup(function () { |
| | | var $input = $(this), val = $input.val(); |
| | | if (!val) { |
| | | val = "0"; |
| | | } |
| | | if (val.length > 1) { |
| | | var firstNum = val.substring(0, 1); //æªåå符串第ä¸ä½æ°ï¼å¤ææ¯å¦ä¸º0ï¼ |
| | | if (firstNum == 0) { //å¦æç¬¬ä¸ä½æ°ä¸º0ï¼åå é¤ç¬¬ä¸ä½æ° |
| | | val = val.substring(1, val.length); |
| | | } |
| | | } |
| | | $input.val(val.replace(/[^\d]/g, '')); |
| | | }); |
| | | } |
| | | |
| | | //#region [ 表ä½F7äºä»¶ ] |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | if (obj.event == 'HSourceCheck') { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'çäº§èµæºå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../../views/åºç¡èµæ/ç产åºç¡èµæ/Gy_Source.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index]; |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable'); |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | obj.update({ |
| | | HSourceName: checkStatus.data[0].çäº§èµæºåç§° |
| | | , HSourceID: checkStatus.data[0].HItemID |
| | | , HSourceNumber: checkStatus.data[0].çäº§èµæºä»£ç |
| | | }); |
| | | |
| | | layer.close(layer.index); |
| | | } |
| | | , btn2: function (index, layero) { |
| | | }, |
| | | end: function () { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | if (obj.event == 'HEmpNumber') { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æä½åå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index]; |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable'); |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | obj.update({ |
| | | HEmpName: checkStatus.data[0].HName |
| | | , HEmpID: checkStatus.data[0].HItemID |
| | | , HEmpNumber: checkStatus.data[0].HNumber |
| | | }); |
| | | |
| | | layer.close(layer.index); |
| | | } |
| | | , btn2: function (index, layero) { |
| | | }, |
| | | end: function () { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | obj.event = ""; |
| | | return false; |
| | | } |
| | | }) |
| | | //#endregion |
| | | |
| | | }); |
| | | |
| | | //ä¿åæäº¤ |
| | | form.on('submit(btnSave)', function (data) {//æäº¤ |
| | | if (AllowLoadData(data)) { |
| | | set_AddNew(data); |
| | | } |
| | | }); |
| | | |
| | | //éåº |
| | | form.on('submit(Cancel)', function (data) { |
| | | if (OperationType != "") { |
| | | Pub_Close(1); |
| | | } |
| | | }); |
| | | |
| | | //æå° |
| | | form.on('submit(btn_print)', function (data) { |
| | | get_print(data); |
| | | }); |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | | // åå§åçé¢ |
| | | function set_ClearBill() { |
| | | $("#HDate").val(Format(new Date(new Date()), "yyyy-MM-dd"));//å¼å§æ¥æ |
| | | $("#HPlanBeginDate").val(Format(new Date(new Date()), "yyyy-MM-dd"));//å·¥åºè®¡åå¼å·¥æ¥æ |
| | | $("#HPlanEndDate").val(Format(new Date().setMonth(new Date().getMonth() + 1), "yyyy-MM-dd"));//å·¥åºè®¡åå®å·¥æ¥æ |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | } |
| | | |
| | | //è·åç»ç» |
| | | function Organ() { |
| | | //è·åç»å½é¡µç»ç»å |
| | | var Organization = ''; |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Web/GetOrganizations", |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data; |
| | | for (var i = 0; i < data.length; i++) { |
| | | Organization += '<option style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>'; |
| | | } |
| | | $("#HUSEORGID").append(Organization); |
| | | $("#HUSEORGID").val(sessionStorage["OrganizationID"]) |
| | | form.render('select'); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | //表头 |
| | | columns = [ //表头 |
| | | { type: 'checkbox', totalRowText: 'å计è¡' } |
| | | , { type: 'numbers', title: 'åºå·', totalRow: true } |
| | | , { field: 'lngBillKey', title: 'æµè½¬å¡ID', hide: true } |
| | | , { field: 'lngBillSubKey', title: 'æµè½¬å¡åID', hide: true } |
| | | , { field: 'HCenterID', title: 'å·¥ä½ä¸å¿ID', hide: true } |
| | | , { field: 'HWorkCenterName', title: 'å·¥ä½ä¸å¿åç§°' } |
| | | , { field: 'HProcExchBillNo', title: '派工åå·', width: 150 } |
| | | , { field: 'HSourceBillType', title: 'åæ®ç±»å', hide: true } |
| | | , { field: 'HProcNo', title: 'æµæ°´å·', width: 80 } |
| | | , { field: 'HICMOQty', title: 'ä»»å¡åæ°é', hide: true } |
| | | , { field: 'HPlanQty', title: 'è®¡åæ°é', hide: true } |
| | | , { field: 'HProcID', title: 'å·¥åºID', hide: true } |
| | | , { field: 'HProcName', title: 'å·¥åºåç§°' } |
| | | , { field: 'HMaterID', title: '产åID', hide: true } |
| | | , { field: 'HMaterNumber', title: '产å代ç '} |
| | | , { field: 'HMaterName', title: '产ååç§°' } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·' } |
| | | , { field: 'HQty', title: 'åæ ¼æ°é', edit: 'text', width: 90, event:"inputHQty" } |
| | | , { field: 'HWasterQty', title: 'æ¥åºæ°é', edit: 'text', width: 90, event: "inputWasterHQty" } |
| | | , { field: 'HEmpID', title: 'æä½åID', hide: true } |
| | | , { field: 'HEmpNumber', title: 'æä½å代ç ', edit: 'text', event: "HEmpNumber" } |
| | | , { field: 'HEmpName', title: 'æä½ååç§°' } |
| | | , { field: 'HPlanQty', title: 'æµè½¬å¡æ°é', width: 100 } |
| | | , { field: 'HInterID', title: 'å·¥åºæ±æ¥ID', hide: true } |
| | | , { field: 'HBillNo', title: 'å·¥åºæ±æ¥åå·', width: 195 } |
| | | , { field: 'HWorkCenterNumber', title: 'å·¥ä½ä¸å¿ä»£ç ', edit: 'text'} |
| | | , { field: 'HSourceID', title: 'çäº§èµæºID', hide: true } |
| | | , { field: 'HSourceNumber', title: 'çäº§èµæºä»£ç ', edit: 'text', event: "HSourceCheck" } |
| | | , { field: 'HSourceName', title: 'çäº§èµæºåç§°' } |
| | | , { field: 'HICMOBillNo', title: 'ä»»å¡åå·', hide: true } |
| | | , { field: 'HICMOInterID', title: 'ä»»å¡åID', hide: true } |
| | | , { field: 'HICMOEntryID', title: 'ä»»å¡ååå
ç ', hide: true } |
| | | //, { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]; |
| | | option = { |
| | | id: 'mainTable' |
| | | , elem: '#mainTable' |
| | | //, toolbar: '#toolbarDemo' |
| | | , page: false |
| | | , cellMinWidth: 120 |
| | | , height: 400 |
| | | , cols: [columns] |
| | | , limit: Number.MAX_VALUE//é»è®¤æ¾ç¤ºå
¨é¨ |
| | | , done: function (res, curr, count) { |
| | | option.data = res.data; |
| | | //廿䏿æ¡å¤±ç¦äºä»¶å¦åå¨ä¸ææ¡éè¾å
¥å¼ |
| | | $('.layui-form-select').find('input').unbind("blur"); |
| | | //è¡¨æ ¼éè½½åæ¾ä¸ææ¡éçæ°æ® |
| | | $('tr').each(function (e) { |
| | | var $cr = $(this); |
| | | var dataIndex = $cr.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TNDEX == dataIndex) { |
| | | $cr.find('input').val(value.HSupFlag); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | , done: function (res, curr, count) { |
| | | |
| | | } |
| | | }; |
| | | option.data = [{ |
| | | "lngBillKey": 0, "lngBillSubKey": 0, "HProcExchBillNo": "", "HSourceBillType": "", |
| | | "HProcNo": 0, "HProcName": "", "HMaterID": 0, "HMaterNumber": "", "HMaterName": "", "HMaterModel": "", |
| | | "HSourceID": 0, "HSourceNumber": "", "HSourceName": "", "HEmpID": 0, "HEmpNumber": "", "HEmpName": "", |
| | | "HPlanQty": 0, "HQty": 0, "HWasterQty": 0, "HICMOBillNo": "", "HICMOInterID": 0, "HICMOEntryID": 0, "HInterID": 0, |
| | | "HBillNo": "", "HProcID": 0, "HCenterID": 0, "HWorkCenterNumber": "", "HWorkCenterName": "", "HICMOQty": 0, "HPlanQty": 0 |
| | | }]; |
| | | table.render(option); |
| | | |
| | | } |
| | | |
| | | //æ¥è¯¢å·¥åºæµè½¬å¡ |
| | | function get_ProcessExchange() { |
| | | var sWhere = " where hmainid in (" + linterid + ") and HEntryID in (" + HEntryID + ") and ieid in (" + HIeID + ")"; |
| | | //ç¼è¾å è½½æ°æ® |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'Sc_ProcExchSendWorkBill/GetProcessExchangeBillSub', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var rowdata = []; |
| | | for (var i = 0; i < result.data.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "lngBillKey": result.data[i]["hmainid"], "lngBillSubKey": result.data[i]["HEntryID"], "HProcExchBillNo": result.data[i]["åæ®å·"], "HSourceBillType": result.data[i]["HBillType"], |
| | | "HProcNo": result.data[i]["æµæ°´å·"], "HProcName": result.data[i]["å·¥åºåç§°"], "HMaterID": result.data[i]["HMaterID"], "HMaterNumber": result.data[i]["产å代ç "], "HMaterName": result.data[i]["产ååç§°"], "HMaterModel": result.data[i]["è§æ ¼åå·"], |
| | | "HSourceID": result.data[i]["HSourceID"], "HSourceNumber": result.data[i]["çäº§èµæºä»£ç "], "HSourceName": result.data[i]["çäº§èµæº"], "HEmpID": result.data[i]["HWorkerID"], "HEmpNumber": result.data[i]["æä½å·¥ä»£ç "], "HEmpName": result.data[i]["æä½å·¥"], |
| | | "HPlanQty": result.data[i]["æµè½¬å¡æ°é"], "HQty": 0, "HWasterQty": 0, "HICMOBillNo": result.data[i]["ä»»å¡åå·"], "HICMOInterID": result.data[i]["hicmointerid"], "HICMOEntryID": result.data[i]["HICMOEntryID"], "HBillNo": StationOutBillNo[i], "HInterID": StationOutID[i], "HProcID": result.data[i]["HProcID"], "HCenterID": result.data[i]["HCenterID"], "HWorkCenterNumber": result.data[i]["å·¥ä½ä¸å¿ä»£ç "], "HWorkCenterName": result.data[i]["å·¥ä½ä¸å¿"] |
| | | } |
| | | ) |
| | | } |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | form.render('select'); |
| | | } else { |
| | | layer.msg(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(index0); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |
| | | //é空éªè¯ |
| | | function AllowLoadData(data) { |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | |
| | | if (option.data[i] != "") { |
| | | //æµæ°´å·ä¸ä¸ºç©º |
| | | if (option.data[i]["HProcNo"] == "") { |
| | | layer.msg("第" + (i + 1) + "è¡:æµæ°´å·ä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | //å·¥åºä¸ä¸ºç©º |
| | | if (option.data[i]["HProcID"] == "0") { |
| | | layer.msg("第" + (i + 1) + "è¡:å·¥åºä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | //æä½åä¸ä¸ºç©º |
| | | if (option.data[i]["HEmpID"] == "0") { |
| | | layer.msg("第" + (i + 1) + "è¡:æä½åä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | //派工åå·ä¸ä¸ºç©º |
| | | if (option.data[i]["lngBillKey"] == "0") { |
| | | layer.msg("第" + (i + 1) + "è¡:派工åä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | //ç©æä¸ä¸ºç©º |
| | | if (option.data[i]["HMaterID"] == "0") { |
| | | layer.msg("第" + (i + 1) + "è¡:ç©æä¸è½ä¸ºç©º!"); |
| | | return false; |
| | | } |
| | | //åæ ¼æ°é+æ¥åºæ°éå¿
须大äº0 |
| | | if (option.data[i]["HQty"] + option.data[i]["HWasterQty"] == "0") { |
| | | layer.msg("第" + (i + 1) + "è¡:åæ ¼æ°é+æ¥åºæ°éå¿
须大äº0!"); |
| | | return false; |
| | | } |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | //ä¿åHMaker |
| | | function set_AddNew(data) { |
| | | var num_1 = []; |
| | | for (var i = 0; i < table.cache["mainTable"].length; i++) { |
| | | if (table.cache["mainTable"][i] != "") { |
| | | table.cache["mainTable"][i].LAY_TABLE_INDEX = i; |
| | | num_1.push(table.cache["mainTable"][i]) |
| | | } |
| | | } |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(num_1); |
| | | var sMainSub = sMainStr + ';' + sessionStorage["HUserName"] + ';' + sSubStr + ";" + OperationType; |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Cj_StationOutBill/BatchAddBill", |
| | | async: true, |
| | | data: { "oMain": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true); |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function get_UrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | | for (var i = 0; i < hashes.length; i++) { |
| | | hash = hashes[i].split('='); |
| | | vars.push(hash[0]); |
| | | vars[hash[0]] = hash[1]; |
| | | } |
| | | return vars; |
| | | } |
| | | |
| | | //#endregion |
| | | }) |
| | | </script> |
| | |
| | | // |
| | | var HModName = "Sc_ProcessExchangeBillList"; |
| | | //ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± ï¼ä¸»è¡¨ï¼ |
| | | var titleData = ["HEntryID", "HWorkShopID", "HMaterID", "HSupID", "HPRDORGID", "HEquipMentID", "hsubid", "HICMOEntryID", "HDeptID", "hmainid", "hicmointerid", "HMaterID2", "HUnitID", "HBillType", "HRoutingBillID", "HAuxUnit", "ç产车é´ä»£ç ", "ç产车é´", "æè´¨", "æåç¼å·", "çæ¬", "æ»è£
å¾å·", "å¾å·çæ¬", "å件代ç ", "åä»¶åç§°", "åä»¶è§æ ¼", "æ¹å·", "å§å¤å å·¥åä½ä»£ç ", "å§å¤å å·¥åä½", "设å¤åç§°", "设å¤ä»£ç ", "åææ¹æ¬¡", "è¡¥ææ è®°", "项ç®ç¼å·", "ä¸»è¦ææ", "å
³é®ææ", "产åCODE", "éå®è®¢åå·", "客æ·ç®ç§°", "客æ·è¦æ±æææå", "产ååç§°2", "客æ·åç§°", "çäº§å¤æ³¨", "éè¦æç¤º", "åææç¼å·A", "åææç¼å·B", "åææç¼å·C", "åææç¼å·D", "åææå
ç A", "åææå
ç B", "åææå
ç C", "åææå
ç D", "æ¥è®¡åå·¥åå·", "客æ·ç¼ç ", "è¯ä½è§æ ¼åå·", "è¯ä½ç©æä»£ç ", "æºå客æ·ä»£ç ", "HEmpID","HCusID"]; |
| | | var titleData = ["HEntryID", "HWorkShopID", "HMaterID", "HSupID", "HPRDORGID", "HEquipMentID", "hsubid", "HICMOEntryID", "HDeptID", "hmainid", "hicmointerid", "HMaterID2", "HUnitID", "HBillType", "HRoutingBillID", "HAuxUnit", "ç产车é´ä»£ç ", "æè´¨", "æåç¼å·", "çæ¬", "æ»è£
å¾å·", "å¾å·çæ¬", "å件代ç ", "åä»¶åç§°", "åä»¶è§æ ¼", "æ¹å·", "å§å¤å å·¥åä½ä»£ç ", "å§å¤å å·¥åä½", "设å¤åç§°", "设å¤ä»£ç ", "åææ¹æ¬¡", "è¡¥ææ è®°", "项ç®ç¼å·", "ä¸»è¦ææ", "å
³é®ææ", "产åCODE", "éå®è®¢åå·", "客æ·ç®ç§°", "客æ·è¦æ±æææå", "产ååç§°2", "客æ·åç§°", "çäº§å¤æ³¨", "éè¦æç¤º", "åææç¼å·A", "åææç¼å·B", "åææç¼å·C", "åææç¼å·D", "åææå
ç A", "åææå
ç B", "åææå
ç C", "åææå
ç D", "æ¥è®¡åå·¥åå·", "客æ·ç¼ç ", "è¯ä½è§æ ¼åå·", "è¯ä½ç©æä»£ç ", "æºå客æ·ä»£ç ", "HEmpID","HCusID"]; |
| | | //ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± ï¼å·¥èºæµç¨ï¼ |
| | | var titleData2 = ["å·¥åºå·", "åºç«æ¥åºå
³èæ°é", "HProcID", "å·¥åºä»£ç ", "HBackProc", "å 工说æ", "模å
·ç¼å·", "HCenterID", "å·¥ä½ä¸å¿ä»£ç ", "HDeptID", "å 工车é´ä»£ç ", "å 工车é´", "HGroupID", "çç»ä»£ç ", "çç»", "HWorkerID", "æä½å·¥ä»£ç f", "æä½å·¥", "HSourceID", "çäº§èµæºä»£ç ", "çäº§èµæº", "è®¡åæ°é", "hmainid", "åæ®å·", "hicmointerid", "ä»»å¡åå·", "HICMOEntryID", "HWorkShopID", "ç产车é´ä»£ç ", "ç产车é´", "HMaterID", "产å代ç ", "产ååç§°", "è§æ ¼åå·", "æ¹å·", "HUnitID", "åä½ä»£ç ", "åä½", "ç产æ°é", "计åå¼å·¥æ¥æ", "计åå®å·¥æ¥æ", "æè¦", "å
é¨åæ®å·", "å§å¤è®¢åå
ç ", "å§å¤è®¢ååå
ç ", "å§å¤è®¢åå·", "HSupID", "ä¾åºå", "ä¾åºå代ç ", "è¡¨å¤´å¤æ³¨", "HBillType", "isEntrust", "æ¶é´åä½", "å·¥åºè®¡åå å·¥æ¶é´", "å计åå¼å·¥æ¥æ", "å计åå®å·¥æ¥æ", "å®é
å¼å·¥æ¥æ", "å®é
å®å·¥æ¥æ", "å¼å·¥ä½é天æ°", "å¼å·¥ä½éåºæ°", "ä¸éåºå®å¤©æ°", "çäº§å¨æ", "å å·¥åä»·", "æåæ±æ¥æ¥æ", "å 工费ç¨éé¢", "æ«éå·¥åº", "é¦éå·¥åº", "è¡å
³é人", "å
³éç±»å", "æµè½¬å¡æ°é", "å§å¤å·¥åæ°é", "ä¸åæ ¼æ°é", "è¶
颿¯ä¾", "è¯ç", "累计è¯ç", "å¾çº¸ç¼å·", "æ¬å·¥åºç¡®è®¤è®°å½", "æºå主å
ç ", "æºååå
ç ", "æºååå·", "æºåç±»å", "æ±æ¥æ°é", "HEntryID", "hsubid", "HPRDORGID", "ç»ç»", "HOrderProcNO"]; |
| | | //ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± ï¼å¨å
·æ¸
åï¼ |
| | |
| | | <div class="layui-btn-container"> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_Issue"><i class="layui-icon layui-icon-file-b"></i>ä¸è¾¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_CancelIssue"><i class="layui-icon layui-icon-file-b"></i>åä¸è¾¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_SendWork"><i class="layui-icon layui-icon-file-b"></i>å·¥åºæ´¾å·¥</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_PlanDate"><i class="layui-icon layui-icon-file-b"></i>ææ´¾æ¥æ</button>--> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_SendWork"><i class="layui-icon layui-icon-file-b"></i>å·¥åºæ´¾å·¥</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_BatchReport"><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-file-b"></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_Print_Convenient"><i class="layui-icon layui-icon-print"></i>ä¸é®æå°</button> |
| | |
| | | //å·¥åºæ´¾å·¥ |
| | | case 'set_SendWork': set_SendWork(); |
| | | break; |
| | | //æ¹éæ±æ¥ |
| | | case 'set_BatchReport': set_BatchReport(); |
| | | break; |
| | | //ææ´¾æ¥æ |
| | | case 'set_PlanDate': set_PlanDate(); |
| | | break; |
| | |
| | | } |
| | | var HEntryID = array.join(",");//ç¨éå·å岿°ç» |
| | | var HInterID = interid.join(","); |
| | | var HIeID = ieid.join(","); |
| | | var HIeID = ieid.join(","); |
| | | if (checkStatus.data.length >= 1) { |
| | | if (checkStatus.data[0]["æµæ°´å·"] != "9999") { |
| | | layer.open({ |
| | |
| | | } |
| | | } |
| | | |
| | | //æ¹éæ±æ¥ |
| | | function set_BatchReport() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | var array = []; |
| | | var interid = []; |
| | | var ieid = []; |
| | | for (let i = 0; i < data.length; i++) { |
| | | array.push(checkStatus.data[i]["HEntryID"]); //è·åæµè½¬å¡å表ID |
| | | interid.push(checkStatus.data[i]["hmainid"]); |
| | | ieid.push(checkStatus.data[i]["hmainid"].toString() + checkStatus.data[i]["HEntryID"].toString()); |
| | | } |
| | | var HEntryID = array.join(",");//ç¨éå·å岿°ç» |
| | | var HInterID = interid.join(","); |
| | | var HIeID = ieid.join(","); |
| | | var HReportNum = checkStatus.data.length;//éæ©æ¹éæ±æ¥æ°é |
| | | if (checkStatus.data.length >= 1) { |
| | | if (checkStatus.data[0]["æµæ°´å·"] != "9999") { |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "æ¹éæ±æ¥" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["100%", "100%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: ['../../车é´ç®¡ç/å·¥åºæµè½¬å¡/Gy_ProcessBatchReport.html?OperationType=1&linterid=' + HInterID.toString() + '&HEntryID=' + HEntryID.toString() + '&HIeID=' + HIeID + '&HReportNum=' + HReportNum, "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('æ±æ¥å·¥åºä¸è½æ¯è½¬å·¥åºï¼'); |
| | | } |
| | | } else { |
| | | layer.msg('è¯·éæ©æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | |
| | | //#region ææ´¾æ¥æ |
| | | function set_PlanDate() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Mes_OrderProcFlowAllReport/EmployeePiecePayReport', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | var col = []; |
| | | if (data1.count == 1) { |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Mes_OrderProcFlowAllReport/EmployeePiecePaySumReport', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | var col = []; |
| | | if (data1.count == 1) { |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Mes_OrderProcFlowAllReport/EmployeePieceWorkReport', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | var col = []; |
| | | if (data1.count == 1) { |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Mes_OrderProcFlowAllReport/WorkShopProcessWIPReport', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | var col = []; |
| | | if (data1.count == 1) { |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Mes_OrderProcFlowAllReport/WorkShopProcessWIPSumReport', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | var col = []; |
| | | if (data1.count == 1) { |