ITP_RTNMNG05010.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  1. require(['config'], function() {
  2. require([], function($) {
  3. listObj.init();
  4. });
  5. });
  6. /********************************************************
  7. --------------------------------------------------------
  8. - Object 목록 -
  9. --------------------------------------------------------
  10. * const gridColModel = {} : 화면 Grid Object *
  11. * let pageObj = {} : 화면공통 Object *
  12. * let listObj = {} : 목록화면 Object *
  13. * let viewObj = {} : 상세화면 Object *
  14. * let modifyObj = {} : 수정화면 Object *
  15. * let createObj = {} : 신규화면 Object *
  16. *******************************************************/
  17. /*화면 변수*/
  18. const RTNMNG05010_GRID_ID = '#ITP_RTNMNG05010_jqGrid';
  19. const RTNMNG05010_GRID_LIST = '#ITP_RTNMNG05010_jqGrid_list';
  20. const RTNMNG05010_GRID_PAGER = '#ITP_RTNMNG05010_jqGridPager';
  21. const RTNMNG05010_GRID_EMPTY = '#ITP_RTNMNG05010_jqGridEmpty';
  22. let ITP_FORM_RTNMNG05010_DETAIL_IS_WRITING = false;
  23. let RTNMNG05010_LAST_ROW_ID;
  24. /*API URL*/
  25. let API_DETAIL_GRID_LIST = '/api/rtnmng/inoutmng/retstock-target-grid-list'; // 목록
  26. let API_DETAIL_SAVE = '/api/rtnmng/inoutmng/save-retstock'; // 반품처리
  27. /*화면 Grid ColModel*/
  28. const gridColModel = {
  29. list: [
  30. {
  31. index: 'BRAND_ID', name: 'brandId',
  32. label: ITP_MSG_LOCALE.label.brandId, //브랜드아이디
  33. width: '10', fixed: false, align: 'center',
  34. sortable: false, hidden: true
  35. },
  36. {
  37. index: 'STORE_ID', name: 'storeId',
  38. label: '매장아이디',
  39. width: '10', fixed: false, align: 'center',
  40. sortable: false, hidden: true
  41. },
  42. {
  43. index: 'COL_PICK_UNQ_NO', name: 'colPickUnqNo',
  44. label: '수거서번호',
  45. width: '10', fixed: false, align: 'center',
  46. sortable: false, hidden: true
  47. },
  48. {
  49. index: 'COL_PICK_DTL_NO', name: 'colPickDtlNo',
  50. label: '수거서항번',
  51. width: '5', fixed: false, align: 'center',
  52. sortable: false, hidden: true
  53. },
  54. {
  55. index: 'RTN_PODR_UNQ_NO', name: 'rtnPodrUnqNo',
  56. label: '반품발주번호',
  57. width: '12', fixed: false, align: 'center',
  58. minwidth: 180,
  59. sortable: false, hidden: false
  60. },
  61. {
  62. index: 'RTN_PODR_DTL_NO', name: 'rtnPodrDtlNo',
  63. label: '항번',
  64. width: '5', fixed: false, align: 'center',
  65. sortable: false, hidden: false
  66. },
  67. {
  68. index: 'ITEM_ID', name: 'itemId',
  69. label: ITP_MSG_LOCALE.label.itemId, //품목아이디
  70. width: '13', fixed: false, align: 'center',
  71. minwidth: 180,
  72. sortable: false, hidden: false
  73. },
  74. {
  75. index: 'ITEM_NM', name: 'itemNm',
  76. label: ITP_MSG_LOCALE.label.itemNm, //품목명
  77. width: '7', fixed: false, align: 'left',
  78. minwidth: 190,
  79. sortable: false, hidden: false, classes: 'ui-ellipsis'
  80. },
  81. {
  82. index: 'COL_QTY', name: 'colQty',
  83. label: '수거수량', classes: 'input_color',
  84. width: '8', fixed: false, align: 'right',
  85. minwidth: 110,
  86. sortable: true, editable: true, edittype: 'text',
  87. editrules: { required: false, number: true },
  88. formatter: 'integer', formatoptions: { defaultValue: '', thousandsSeparator: ',' },
  89. editoptions: {"onKeyup": "this.value=this.value.replace(/[^0-9]/g,'');", maxlength: 10}
  90. },
  91. {
  92. index: 'COL_REQ_QTY', name: 'colReqQty',
  93. label: '수거요청수량',
  94. minwidth: 110,
  95. width: '9', fixed: false, align: 'right',
  96. sortable: false, hidden: false,
  97. formatter: 'integer', formatoptions: { defaultValue: '', thousandsSeparator: ',' }
  98. },
  99. {
  100. index: 'COL_REQ_AMT', name: 'colReqAmt',
  101. label: '수거요청금액',
  102. width: '9', fixed: false, align: 'right',
  103. minwidth: 110,
  104. sortable: false, hidden: false,
  105. formatter: 'integer', formatoptions: { defaultValue: '', thousandsSeparator: ',' }
  106. },
  107. {
  108. index: 'RODR_QTY', name: 'rodrQty',
  109. label: '반품발주수량',
  110. width: '8', fixed: false, align: 'right',
  111. sortable: false, hidden: true,
  112. formatter: 'integer', formatoptions: { defaultValue: '', thousandsSeparator: ',' }
  113. },
  114. {
  115. index: 'WHS_ID', name: 'whsId',
  116. label: '반품입고창고',
  117. width: '10', fixed: false, align: 'center',
  118. sortable: false, hidden: true
  119. },
  120. {
  121. index: 'LOCATION', name: 'location',
  122. label: '반품입고창고location',
  123. width: '10', fixed: false, align: 'center',
  124. sortable: false, hidden: true
  125. },
  126. {
  127. index: 'WHS_NM', name: 'whsNm',
  128. label: '반품입고창고',
  129. minwidth: 180,
  130. width: '10', fixed: false, align: 'center',
  131. sortable: false, hidden: false
  132. },
  133. {
  134. index: 'RTN_WHS_ID', name: 'rtnWhsId',
  135. label: '수거창고',
  136. width: '10', fixed: false, align: 'center',
  137. sortable: false, hidden: true
  138. },
  139. {
  140. index: 'RTN_LOCATION', name: 'rtnLocation',
  141. label: '수거LOCATION',
  142. width: '10', fixed: false, align: 'center',
  143. sortable: false, hidden: true
  144. },
  145. {
  146. index: 'RTN_WHS_NM', name: 'rtnWhsNm',
  147. label: '수거창고명',
  148. minwidth: 180,
  149. width: '10', fixed: false, align: 'center',
  150. sortable: false, hidden: false, classes: 'ui-ellipsis'
  151. },
  152. {
  153. index: 'COL_REQ_DT', name: 'colReqDt',
  154. label: '수거요청일',
  155. minwidth: 140,
  156. width: '8', fixed: false, align: 'center',
  157. sortable: false, hidden: false
  158. },
  159. {
  160. index: 'COL_SCH_DT', name: 'colSchDt',
  161. label: '수거예정일',
  162. minwidth: 140,
  163. width: '8', fixed: false, align: 'center',
  164. sortable: false, hidden: false
  165. },
  166. {
  167. index: 'PICK_MGR_NM', name: 'pickMgrNm',
  168. label: '수거담당자명',
  169. width: '10', fixed: false, align: 'center',
  170. sortable: false, hidden: false
  171. },
  172. {
  173. index: 'PICK_MGR_TEL_NO', name: 'pickMgrTelNo',
  174. label: '수거담당자연락처',
  175. minwidth: 140,
  176. width: '10', fixed: false, align: 'center',
  177. sortable: false, hidden: false
  178. },
  179. {
  180. index: 'SPPLY_ID', name: 'spplyId',
  181. label: '공급사아이디',
  182. width: '10', fixed: false, align: 'center',
  183. sortable: false, hidden: true
  184. },
  185. {
  186. index: 'SPPLY_NM', name: 'spplyNm',
  187. label: '공급사명',
  188. width: '10', fixed: false, align: 'center',
  189. sortable: false, hidden: true
  190. },
  191. {
  192. index: 'BRAND_NM', name: 'brandNm',
  193. label: ITP_MSG_LOCALE.label.brandNm, //브랜드명
  194. width: '10', fixed: false, align: 'left',
  195. minwidth: 190,
  196. sortable: false, hidden: false, classes: 'ui-ellipsis'
  197. }
  198. ]
  199. };
  200. /*목록화면 Object*/
  201. let listObj = {
  202. init: function() {
  203. this.view();
  204. this.action();
  205. this.setBrand();
  206. this.event.init();
  207. this.grid.init();
  208. },
  209. view: function() {
  210. // 버튼 권한설정
  211. fn_proc_btn_auth('RTNMNG05010');
  212. // 공통코드 표시
  213. $('select').each(function() {
  214. if ($(this).data('select-code')) {
  215. fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
  216. }
  217. });
  218. // 조회일자 지정
  219. var now = new Date();
  220. var fromDate = new Date(now);
  221. fromDate.setDate(now.getDate() - 7);
  222. var toDate = new Date(now);
  223. toDate.setDate(now.getDate() + 7);
  224. $('#ITP_TAB_RTNMNG05010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);
  225. $('#ITP_FORM_RTNMNG05010_SEARCH_FROM_DT').datepicker('setDate', fromDate);
  226. $('#ITP_FORM_RTNMNG05010_SEARCH_TO_DT').datepicker('setDate', toDate);
  227. $('#ITP_FORM_RTNMNG05010_SEARCH_SRTN_WHS_ID').val('xxx'); // 임시
  228. $('#ITP_BTN_RTNMNG05010_SEARCH_DEL_SRTN_WHS_NM').show();
  229. $('#ITP_BTN_RTNMNG05010_SEARCH_DEL_SSPPLY_NM').show();
  230. $('#ITP_BTN_RTNMNG05010_SEARCH_DEL_SWHS_NM').show();
  231. $('#ITP_BTN_RTNMNG05010_EXCEL').show();
  232. let authTpCd = fn_make_user_info.get('authTpCd');
  233. if (authTpCd == 50) {
  234. $('#ITP_FORM_RTNMNG05010_SEARCH_SSPPLY_DIV').hide();
  235. $('#ITP_FORM_RTNMNG05010_SEARCH_DLV_STTMT_UNQ_NO_DIV').attr('style', 'width: 253px;');
  236. $('#ITP_FORM_RTNMNG05010_SEARCH_ITEM_NM_DIV').attr('style', 'margin-left: 4px; width: 475px;');
  237. }
  238. },
  239. itp_RTNMNG05010_search: false,
  240. setBrand: function() {
  241. let authTpCd = fn_make_user_info.get('authTpCd');
  242. let URL = '/api/whs/mng/pop-whs-search';
  243. let param = {};
  244. param.sbrandId = fn_make_user_info.get('brandId');
  245. param.sstoreId = fn_make_user_info.get('storeId');
  246. if (authTpCd == 50) {
  247. param.swhsDvsn = 'W02';
  248. let answer = function(result) {
  249. $('#ITP_FORM_RTNMNG05010_SEARCH_SRTN_WHS_ID').val(result.gridRows[0].whsId);
  250. $('#ITP_FORM_RTNMNG05010_SEARCH_SRTN_WHS_NM').val(result.gridRows[0].whsNm);
  251. $('#ITP_BTN_RTNMNG05010_SEARCH_DEL_SRTN_WHS_NM').attr('disabled', true);
  252. $('#ITP_BTN_RTNMNG05010_SEARCH_POP_SRTN_WHS_NM').attr('disabled', true);
  253. }
  254. fn_ajax_call(URL, JSON.stringify(param), answer, 'POST');
  255. } else if (authTpCd == 40) {
  256. param.swhsDvsn = 'W01';
  257. let answer = function(result) {
  258. $('#ITP_FORM_RTNMNG05010_SEARCH_SRTN_WHS_ID').val(result.gridRows[0].whsId);
  259. $('#ITP_FORM_RTNMNG05010_SEARCH_SRTN_WHS_NM').val(result.gridRows[0].whsNm);
  260. }
  261. fn_ajax_call(URL, JSON.stringify(param), answer, 'POST');
  262. }
  263. },
  264. button: {
  265. search: function() {
  266. listObj.itp_RTNMNG05010_search = true;
  267. let param = $('#ITP_FORM_RTNMNG05010_SEARCH').serializeObject();
  268. param.gridSize = $.jgrid.defaults.rowNum;
  269. param.gridPage = $.jgrid.defaults.page;
  270. param.sbrandId = fn_make_user_info.get('brandId');
  271. param.sstoreId = fn_make_user_info.get('storeId');
  272. // if (param.swhsId == "") {
  273. if ($('#ITP_FORM_RTNMNG05010_SEARCH_SRTN_WHS_NM').val() == "") {
  274. itp_fn_modal_alert("수거창고를 지정해주세요!");
  275. return;
  276. }
  277. if (param.fromDt == '' || param.toDt == '') {
  278. itp_fn_modal_alert("수거요청일 기간을 지정해주세요!");
  279. return;
  280. }
  281. $(RTNMNG05010_GRID_ID).data('grid-param',param);
  282. $(RTNMNG05010_GRID_ID).setGridParam({ 'postData': JSON.stringify(param) }).trigger('reloadGrid');
  283. },
  284. save: function() {
  285. //$('body').trigger('click');
  286. var chkQtyYn1 = true;
  287. var chkQtyYn2 = true;
  288. var chkQtyYn3 = true;
  289. let gridInsertData = [];
  290. const rowData = $(RTNMNG05010_GRID_ID).getRowData();
  291. const ids = $(RTNMNG05010_GRID_ID).getGridParam('selarrrow');
  292. let selRowData = [];
  293. for (var i = 0; i < ids.length; i++) {
  294. selRowData[i] = $(RTNMNG05010_GRID_ID).getRowData(ids[i]);
  295. }
  296. var swhsId = "";
  297. var srtnWhsId = "";
  298. var storeId = "";
  299. $.each(selRowData, function(key, value) {
  300. if (value.colQty !== '') {
  301. if (parseInt(value.colQty) > parseInt(value.colReqQty)) {
  302. chkQtyYn1 = false;
  303. }
  304. if (swhsId !== "" && swhsId !== value.whsId) {
  305. chkQtyYn2 = false;
  306. }
  307. if (srtnWhsId !== "" && srtnWhsId !== value.rtnWhsId) {
  308. chkQtyYn3 = false;
  309. }
  310. swhsId = value.whsId;
  311. srtnWhsId = value.rtnWhsId;
  312. storeId = value.storeId;
  313. gridInsertData.push(value);
  314. }
  315. });
  316. if (chkQtyYn1 === false) {
  317. itp_fn_modal_alert("수거요청수량보다 수거수량이 더 많습니다.");
  318. return;
  319. }
  320. //if (chkQtyYn2 === false) {
  321. // itp_fn_modal_alert("서로 다른 반품입고창고 품목은 처리할 수 없습니다.");
  322. // return;
  323. //}
  324. if (chkQtyYn3 === false) {
  325. itp_fn_modal_alert("서로 다른 수거창고 품목은 처리할 수 없습니다.");
  326. return;
  327. }
  328. if (gridInsertData.length == 0) {
  329. itp_fn_modal_alert("반품처리할 품목을 없습니다.");
  330. return ;
  331. }
  332. var modalFn = {
  333. callBack: () => {
  334. let param = {};
  335. param.viewCd = "C";
  336. param.whsId = swhsId;
  337. param.rtnWhsId = srtnWhsId;
  338. param.brandId = fn_make_user_info.get('brandId');
  339. param.storeId = storeId;
  340. param.gridInsertData = gridInsertData;
  341. var searhFn = function () {
  342. //ITP_FORM_INOUTMNG01010_DETAIL_IS_WRITING = false;
  343. listObj.button.search();
  344. }
  345. fn_ajax_call(API_DETAIL_SAVE, JSON.stringify(param), searhFn, 'POST');
  346. }
  347. };
  348. itp_fn_modal_confirm('반품처리 하시겠습니까?', modalFn);
  349. }
  350. },
  351. action: function() {
  352. var _this = this;
  353. // 공급업체 조회 버튼 클릭
  354. $('#ITP_BTN_RTNMNG05010_SEARCH_POP_SSPPLY_NM').on('click', function() {
  355. _this.popup('spply');
  356. });
  357. // 공급업체 텍스트 삭제 버튼 클릭
  358. $('#ITP_BTN_RTNMNG05010_SEARCH_DEL_SSPPLY_NM').on('click', function() {
  359. $('#ITP_FORM_RTNMNG05010_SEARCH_SSPPLY_NM').val('');
  360. $('#ITP_FORM_RTNMNG05010_SEARCH_SSPPLY_ID').val('');
  361. });
  362. // 매장/창고 조회 버튼 클릭
  363. /*
  364. $('#ITP_BTN_RTNMNG05010_SEARCH_POP_SWHS_NM').on('click', function() {
  365. _this.popup('whs');
  366. });
  367. // 매장/창고 텍스트 삭제 버튼 클릭
  368. $('#ITP_BTN_RTNMNG05010_SEARCH_DEL_SWHS_NM').on('click', function() {
  369. $('#ITP_FORM_RTNMNG05010_SEARCH_SWHS_NM').val('');
  370. $('#ITP_FORM_RTNMNG05010_SEARCH_SWHS_ID').val('');
  371. });
  372. */
  373. // 수거창고 조회 버튼 클릭
  374. $('#ITP_BTN_RTNMNG05010_SEARCH_POP_SRTN_WHS_NM').on('click', function() {
  375. _this.popup('rwhs');
  376. });
  377. // 수거창고 텍스트 삭제 버튼 클릭
  378. $('#ITP_BTN_RTNMNG05010_SEARCH_DEL_SRTN_WHS_NM').on('click', function() {
  379. $('#ITP_FORM_RTNMNG05010_SEARCH_SRTN_WHS_NM').val('');
  380. $('#ITP_FORM_RTNMNG05010_SEARCH_SRTN_WHS_ID').val('');
  381. });
  382. },
  383. popup: function(arg) {
  384. var whsDvsn = "";
  385. if (fn_make_user_info.get('storeId') == "") { // 브랜드
  386. whsDvsn = "W01";
  387. } else {
  388. whsDvsn = "W02";
  389. }
  390. if(arg === 'spply'){
  391. var popFn = this.callback.supply;
  392. const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
  393. fn_call_popup('biz', 'BIZPOP_STORE_SPPLY', '#ITP_ASIDE', popFn, key, 'S');
  394. } else if(arg === 'rwhs'){ //수거창고
  395. var popFn = this.callback.rwhs;
  396. const key1 = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId'), whsDvsn:whsDvsn};
  397. fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key1, 'S');
  398. }
  399. },
  400. callback: {
  401. supply: function(rowDataPop) {
  402. $('#ITP_FORM_RTNMNG05010_SEARCH_SSPPLY_NM').val(rowDataPop.spplyNm);
  403. $('#ITP_FORM_RTNMNG05010_SEARCH_SSPPLY_ID').val(rowDataPop.spplyId);
  404. },
  405. rwhs: function(rowDataPop) {
  406. $('#ITP_FORM_RTNMNG05010_SEARCH_SRTN_WHS_NM').val(rowDataPop.whsNm);
  407. $('#ITP_FORM_RTNMNG05010_SEARCH_SRTN_WHS_ID').val(rowDataPop.whsId);
  408. }
  409. },
  410. event: {
  411. init: function() {
  412. this.button();
  413. },
  414. button: function() {
  415. // 버튼 클릭 이벤트
  416. $('button').each(function() {
  417. var id = $(this).attr('id');
  418. $(this).on('click', function() {
  419. switch (id) {
  420. case 'ITP_BTN_RTNMNG05010_SRH' : listObj.button.search(); break; // 조회 버튼 클릭
  421. case 'ITP_BTN_RTNMNG05010_RTN_PROC' : listObj.button.save(); break; // 반품처리 버튼
  422. case 'ITP_BTN_RTNMNG05010_EXCEL' : listObj.excelDown(); break; // 엑셀다운로드
  423. }
  424. });
  425. });
  426. $('body').on('click', function(e) {
  427. var gridId = RTNMNG05010_GRID_ID.replace('#', '');
  428. var rids = $(RTNMNG05010_GRID_ID).jqGrid('getDataIDs');
  429. var last_row_id = rids[rids.length - 1];
  430. itp_fn_grid_reset_selection(e, last_row_id, gridId, 'RTNMNG05010');
  431. });
  432. }
  433. },
  434. empty: {
  435. init: function() {
  436. },
  437. itp_RTNMNG05010_param: {},
  438. push: function() {
  439. },
  440. back: function() {
  441. }
  442. },
  443. grid: {
  444. init: function() {
  445. // 데이터 없을때
  446. itp_fn_jqgrid_resize(RTNMNG05010_GRID_ID, RTNMNG05010_GRID_LIST, 'lg');
  447. this.search();
  448. },
  449. colModel: gridColModel.list,
  450. search: function() {
  451. this.unload();
  452. this.load();
  453. },
  454. load: function() {
  455. let param = $('#ITP_FORM_RTNMNG05010_SEARCH').serializeObject();
  456. param.gridSize = $.jgrid.defaults.rowNum;
  457. param.sbrandId = fn_make_user_info.get('brandId');
  458. param.sstoreId = fn_make_user_info.get('storeId');
  459. // param.swhsId = "Order";
  460. var option = {
  461. autowidth: true,
  462. gridId: RTNMNG05010_GRID_ID,
  463. colModel: gridColModel.list,
  464. param: param,
  465. url: DOMAIN + API_DETAIL_GRID_LIST,
  466. pager: RTNMNG05010_GRID_PAGER,
  467. rownumbers: false,
  468. multiselect: true,
  469. onCellSelect: function(rowid, cellIdx, cellValue) {
  470. RTNMNG05010_LAST_ROW_ID = itp_fn_set_data_editable(rowid, cellIdx, RTNMNG05010_LAST_ROW_ID, RTNMNG05010_GRID_ID, ['pchPodrUnqNo']);
  471. },
  472. loadComplete: function(data) {
  473. itp_fn_grid_load_complete(data, RTNMNG05010_GRID_ID, true, 'number', 'RTNMNG05010', listObj.itp_RTNMNG05010_search, listObj.empty, true, data.gridRecords, true);
  474. var ids = $(RTNMNG05010_GRID_ID).jqGrid('getDataIDs');
  475. for (var i = 0; i < ids.length; i++) {
  476. var rowData = $(RTNMNG05010_GRID_ID).jqGrid('getRowData', ids[i]);
  477. var colQty = rowData.colReqQty
  478. $(RTNMNG05010_GRID_ID).jqGrid('setRowData', ids[i], {colQty: colQty});
  479. }
  480. },
  481. onPaging: function(action) {
  482. itp_fn_grid_paging(RTNMNG05010_GRID_ID, action, param);
  483. }
  484. };
  485. itp_fn_grid_make_remote(option);
  486. },
  487. button: {
  488. },
  489. unload: function() {
  490. $.jgrid.gridUnload(RTNMNG05010_GRID_ID);
  491. },
  492. clearData: function() {
  493. $(RTNMNG05010_GRID_ID).jqGrid('clearGridData', true);
  494. $(RTNMNG05010_GRID_LIST).find('.ui-jqgrid-bdiv').css('min-height', '100px');
  495. $(RTNMNG05010_GRID_EMPTY).html(ITP_MSG_LOCALE.message.grid.noData);
  496. $(RTNMNG05010_GRID_EMPTY).show();
  497. }
  498. },
  499. excelDown: function() {
  500. var excelParam = $('#ITP_FORM_RTNMNG05010_SEARCH').serializeObject();
  501. excelParam.sbrandId = fn_make_user_info.get('brandId');
  502. excelParam.sstoreId = fn_make_user_info.get('storeId');
  503. var param = {
  504. 'url': API_DETAIL_GRID_LIST,
  505. 'param': excelParam,
  506. 'gridColumns': $(RTNMNG05010_GRID_ID).jqGrid('getGridParam', 'colModel'),
  507. 'fileName': '반품처리정보.xlsx',
  508. 'sheetName': '반품처리대상리스트'
  509. };
  510. itp_fn_remote_to_excel(param);
  511. }
  512. };