index.js 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. /**
  2. * @description: 常量
  3. */
  4. //应用编码
  5. export const APPCODE = '96H10119';
  6. //单据类型
  7. export const BILL_TYPE_CODE = 'DJSK';
  8. /**
  9. * @description: 多语
  10. * @param moduleId: 多语资源名
  11. * @param domainName: 工程名
  12. */
  13. export const MULTILANG = {
  14. moduleId: '96H10119',
  15. domainName: 'zjcmp_cd'
  16. };
  17. /**
  18. * 列表
  19. */
  20. export const LIST = {
  21. page_title: '96H10119-000011', //页面标题 /* 国际化处理: 投融资费用*/
  22. page_code: '96H10119_LIST', //页面编码
  23. search_id: 'list_query', //查询区
  24. table_id: 'list_head', //表格区
  25. head_btn_code: 'list_head', //表头按钮区
  26. body_btn_code: 'list_inner', //表体表格按钮区
  27. };
  28. /**
  29. * 卡片
  30. */
  31. export const CARD = {
  32. page_title: '96H10119-000011', //页面标题 /* 国际化处理: 投融资费用*/
  33. page_code: '96H10119_CARD', //页面编码
  34. form_id: 'card_head', //表头表单区
  35. table_code: 'card_body', //表体表格区
  36. table_edit_code: 'card_body_edit', //表体表格编辑态侧拉区
  37. table_browse_code: 'card_body_browse', //表体表格浏览态下拉区
  38. headcode: 'card_head',
  39. head_btn_code: 'card_head', //表头按钮区
  40. shoulder_btn_code: 'tabs_head', //表体肩部按钮区
  41. body_btn_code: 'tabs_body' //表体表格按钮区
  42. };
  43. //领域名.模块名.节点名.自定义名
  44. //缓存标示
  45. export const DATASOURCE = 'tm.fmc.cost.datasource';
  46. //查询区域缓存
  47. export const SEARCH_CACHE = {
  48. key: 'tm.fmc.cost.SEARCH_CACHE', //查询区域缓存Key
  49. dataSource: DATASOURCE //查询区域缓存数据的名称空间
  50. }
  51. //卡片缓存
  52. export const CARD_CACHE = {
  53. key: 'tm.fmc.cost.CARD_CACHE', //卡片区域缓存Key
  54. dataSource: DATASOURCE //卡片区域缓存数据的名称空间
  55. }
  56. //请求基础路径
  57. export const base_path = '/nccloud/zjcmp_cd/cd/';
  58. //url
  59. export const REQUEST_URL = {
  60. save: `/nccloud/zjcmp_cd/cd/savetamx_registerVO.do`, //保存
  61. delete: `/nccloud/zjcmp_cd/cd/deletetamx_registerVO.do`, //删除
  62. queryCard: `/nccloud/zjcmp_cd/cd/querycardtamx_registerVO.do`, //卡片查询
  63. queryList: `/nccloud/zjcmp_cd/cd/querypagetamx_registerVO.do`, //列表查询
  64. queryListByPks: `/nccloud/zjcmp_cd/cd/querypagebypktamx_registerVO.do`, //列表分页查询
  65. commit: `/nccloud/zjcmp_cd/cd/committamx_registerVO.do`, //提交
  66. unCommit: `/nccloud/zjcmp_cd/cd/uncommittamx_registerVO.do`, //收回
  67. logout: `/nccloud/zjcmp_cd/cd/logouttamx_registerVO.do`, //注销
  68. toCard: '/card',
  69. toList: '/list'
  70. };
  71. export const LIST_BUTTON = {
  72. create: 'AddBtn',
  73. delete: 'DelBtn',
  74. commit: 'CommitBtn',
  75. unCommit: 'UnCommitBtn',
  76. linkGroup: 'JointBtn',
  77. attachment: 'AttachmentBtn',
  78. approvalLink: 'DetailBtn',
  79. billTrack: 'TrackBtn',
  80. print: 'PrintBtn',
  81. output: 'OutputBtn',
  82. refresh: 'RefreshBtn',
  83. bodyUpdate: 'edit',
  84. bodyDelete: 'delete',
  85. bodyCommit: 'commit',
  86. bodyUnCommit: 'unCommit',
  87. copy: 'copy'
  88. };
  89. //列表默认禁用按钮
  90. export const LIST_DISABLED_BUTTON = [LIST_BUTTON.delete, LIST_BUTTON.commit, LIST_BUTTON.unCommit, LIST_BUTTON.linkGroup, LIST_BUTTON.approvalLink, LIST_BUTTON.billTrack,
  91. LIST_BUTTON.attachment, LIST_BUTTON.print, LIST_BUTTON.output];
  92. export const CARD_BUTTON = {
  93. save: 'SaveBtn',
  94. saveAdd: 'SaveAddBtn',
  95. saveCommit: 'SaveCommitBtn',
  96. cancel: 'CancelBtn',
  97. create: 'CreateBtn',
  98. update: 'UpdateBtn',
  99. delete: 'DeleteBtn',
  100. copy: 'CopyBtn',
  101. commit: 'CommitBtn',
  102. unCommit: 'UnCommitBtn',
  103. attachment: 'AttachmentBtn',
  104. approvalLink: 'DetailBtn',
  105. billTrack: 'TrackBtn',
  106. print: 'PrintBtn',
  107. output: 'OutputBtn',
  108. refresh: 'RefreshBtn',
  109. back: 'Back',
  110. Modify: 'Modify',
  111. queryVersion:"queryVersion",
  112. addRow: 'addRow',
  113. deleteRow: 'deleteRow',
  114. copyRows: 'copyRows',
  115. pasteTail: 'pasteTail',
  116. pasteCancel: 'pasteCancel',
  117. logout : 'logout',
  118. expand: 'expand',
  119. insertRow: 'insertRow',
  120. delRow: 'delRow',
  121. copyRow: 'copyRow',
  122. fold: 'fold',
  123. unfold: 'unfold',
  124. pasteHere: 'pasteHere'
  125. };
  126. //卡片默认禁用按钮
  127. export const CARD_DISABLED_BUTTON = [CARD_BUTTON.deleteRow, CARD_BUTTON.copyRows];
  128. //卡片新增禁用按钮
  129. export const CARD_ADD_DISABLED_BUTTON = [CARD_BUTTON.addRow, CARD_BUTTON.save, CARD_BUTTON.saveAdd, CARD_BUTTON.saveCommit];
  130. //字段名
  131. export const FIELD = {
  132. org: 'pk_org', //组织
  133. //orgV: 'pk_org_v', //组织多版本
  134. billStatus: 'approvestatus', //单据状态字段(用以按钮控制)
  135. ts: 'ts' //时间戳
  136. };
  137. //主属性字段名
  138. export const PRIMARY_KEY = {
  139. head_id: 'pk_register', //表头主键字段名
  140. body_id: 'pk_register_b', //表体主键字段名
  141. bill_no: 'billno', //单据编号字段名
  142. id: 'id' , //单据前端缓存标识
  143. vdef3:'vdef3', //最新版本
  144. vdef4:'vdef4', //是否注销
  145. vdef2:'vdef2', //历史版本
  146. vdef10:'vdef10' //变更状态
  147. };
  148. //状态
  149. export const STATUS = {
  150. status: 'status', //状态
  151. edit: 'edit', //编辑态
  152. browse: 'browse', //浏览态
  153. add: 'add', //新增态
  154. info: 'info', //帮助
  155. warning: 'warning', //警告
  156. success: 'success', //成功
  157. danger: 'danger', //出错
  158. NOSTATE: '-1', //自由 态
  159. NOPASS: '0', //未通过 态
  160. PASSING: '1', //通过 态
  161. GOINGON: '2', //进行中 态
  162. COMMIT: '3' //提交 态
  163. };