ITP_POMNG04010.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. require(['config'], function() {
  2. require([
  3. ], function($) {
  4. pageObj.init();
  5. });
  6. });
  7. //화면변수
  8. const POMNG04010_GRID_ID = '#ITP_POMNG04010_jqGrid';
  9. const POMNG04010_GRID_LIST = '#ITP_POMNG04010_jqGrid_list';
  10. const POMNG04010_GRID_PAGER = '#ITP_POMNG04010_jqGridPager';
  11. const POMNG04010_GRID_EMPTY = '#ITP_POMNG04010_jqGridEmpty';
  12. const POMNG04010_GRID_DETAIL_ID = '#ITP_POMNG04010_DETAIL_jqGrid';
  13. const POMNG04010_GRID_DETAIL_LIST = '#ITP_POMNG04010_DETAIL_jqGrid_list';
  14. const POMNG04010_GRID_DETAIL_PAGER = '#ITP_POMNG04010_DETAIL_jqGridPager';
  15. const POMNG04010_GRID_DETAIL_EMPTY = '#ITP_POMNG04010_DETAIL_jqGridEmpty';
  16. //API URL
  17. let API_POMNG_PO_DETAIL_GRID_LIST = '/api/pomng/po/detail-grid-list';
  18. let API_POMNG_PO_INFO_PCHODR_ = '/api/pomng/po/info-pchOdr';
  19. let API_POMNG_PO_CANCEL_PCHPO = '/api/pomng/po/cancel-pchPo';
  20. //화면 grid ColModel
  21. const gridColModel = {
  22. list:[
  23. {
  24. index: 'VIEW_CD', name: 'viewCd',
  25. label: ITP_MSG_LOCALE.label.viewCd,
  26. width: '10', fixed: false, align: 'center',
  27. sortable: false, hidden: true
  28. },
  29. {
  30. index: 'BRAND_NM', name: 'brandNm',
  31. label: ITP_MSG_LOCALE.label.brandNm, // 브랜드명
  32. width: '10', fixed: false, align: 'center',
  33. sortable: false, hidden: true
  34. },
  35. {
  36. index: 'PCH_PODR_UNQ_NO', name: 'pchPodrUnqNo',
  37. label: ITP_MSG_LOCALE.label.pchPodrUnqNo, // 발주번호
  38. width: '10', fixed: false, align: 'center',
  39. sortable: false, hidden: false
  40. },
  41. {
  42. index: 'PCH_ODR_ST_NM', name: 'pchOdrStNm',
  43. label: ITP_MSG_LOCALE.label.pchOdrStNm, // 발주상태명
  44. width: '10', fixed: false, align: 'center',
  45. sortable: false, hidden: false
  46. },
  47. {
  48. index: 'PODR_DT', name: 'podrDt',
  49. label: ITP_MSG_LOCALE.label.podrDt, // 발주일자
  50. width: '10', fixed: false, align: 'center',
  51. sortable: false, hidden: false
  52. },
  53. {
  54. index: 'LOCATION_NM', name: 'locationNm',
  55. label: ITP_MSG_LOCALE.label.locationNm, // 입고처
  56. width: '10', fixed: false, align: 'center',
  57. sortable: false, hidden: false
  58. },
  59. {
  60. index: 'SPPLY_NM', name: 'spplyNm',
  61. label: ITP_MSG_LOCALE.label.spplyNm, // 공급업체명
  62. width: '10', fixed: false, align: 'center',
  63. sortable: false, hidden: false
  64. },
  65. {
  66. index: 'PODR_TOTAL_AMT', name: 'podrTotalAmt',
  67. label: ITP_MSG_LOCALE.label.podrTotalAmt, // 총 발주금액
  68. width: '10', fixed: false, align: 'center',
  69. sortable: false, hidden: false
  70. },
  71. {
  72. index: 'PODR_ITEM_QTY', name: 'podrItemQty',
  73. label: ITP_MSG_LOCALE.label.podpodrItemQtyrDt, // 발주품목수
  74. width: '10', fixed: false, align: 'center',
  75. sortable: false, hidden: false
  76. },
  77. {
  78. index: 'PODR_MGR_NM', name: 'podrMgrNm',
  79. label: ITP_MSG_LOCALE.label.podrMgrNm, // 발주담당자
  80. width: '10', fixed: false, align: 'center',
  81. sortable: false, hidden: false
  82. }
  83. ],
  84. view: [],
  85. detail: [
  86. {
  87. index: 'VIEW_CD', name: 'viewCd',
  88. label: ITP_MSG_LOCALE.label.viewCd,
  89. width: '10', fixed: false, align: 'center',
  90. sortable: false, hidden: true
  91. },
  92. {
  93. index: 'ITEM_ID', name: 'itemId',
  94. label: ITP_MSG_LOCALE.label.itemId, // 품목번호
  95. width: '5', fixed: false, align: 'center',
  96. sortable: false, hidden: false
  97. },
  98. {
  99. index: 'ITEM_NM', name: 'itemNm',
  100. label: ITP_MSG_LOCALE.label.itemNm, // 품목명
  101. width: '5', fixed: false, align: 'center',
  102. sortable: false, hidden: false
  103. },
  104. {
  105. index: 'UNIT_AMT', name: 'unitAmt',
  106. label: ITP_MSG_LOCALE.label.unitAmt, // 단가
  107. width: '5', fixed: false, align: 'center',
  108. sortable: false, hidden: false
  109. },
  110. {
  111. index: 'UNIT', name: 'unit',
  112. label: ITP_MSG_LOCALE.label.unit, // 기본단위
  113. width: '5', fixed: false, align: 'center',
  114. sortable: false, hidden: false
  115. },
  116. {
  117. index: 'PODR_QTY', name: 'podrQty',
  118. label: ITP_MSG_LOCALE.label.podrQty, // 발주수량
  119. width: '5', fixed: false, align: 'center',
  120. sortable: false, hidden: false
  121. },
  122. {
  123. index: 'PCH_PODR_DTL_NO', name: 'pchPodrDtlNo',
  124. label: ITP_MSG_LOCALE.label.pchPodrDtlNo, // 발주항번
  125. width: '5', fixed: false, align: 'center',
  126. sortable: false, hidden: false
  127. },
  128. {
  129. index: 'PODR_AMT', name: 'podrAmt',
  130. label: ITP_MSG_LOCALE.label.podrAmt, // 발주금액
  131. width: '5', fixed: false, align: 'center',
  132. sortable: false, hidden: false
  133. },
  134. {
  135. index: 'WHS_PASS_QTY', name: 'whsPassQty',
  136. label: ITP_MSG_LOCALE.label.whsPassQty, // 발주항번
  137. width: '5', fixed: false, align: 'center',
  138. sortable: false, hidden: false
  139. },
  140. {
  141. index: 'PCH_PODR_DTL_NO', name: 'pchPodrDtlNo',
  142. label: ITP_MSG_LOCALE.label.pchPodrDtlNo, // 발주항번
  143. width: '5', fixed: false, align: 'center',
  144. sortable: false, hidden: false
  145. }
  146. ]
  147. };
  148. /*화면공통 Object*/
  149. let pageObj = {
  150. init: function() {
  151. this.ui.init();
  152. this.event.init();
  153. },
  154. ui: {
  155. init: function() {
  156. }
  157. }
  158. };
  159. console.log(CONN_KEY);
  160. console.log(CODE_LIST);