common.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. /**
  2. * @desc : 共同方法
  3. * @author : 周兴
  4. * @date : 2022/12/13 14:59
  5. */
  6. export default {
  7. commonService: {
  8. prefix: 'mdm-server/mst/common/',
  9. getBasicData: 'get_basic_data',
  10. getCustomTag: 'get_customtag',
  11. getCustomTagByPage: 'get_customtag_by_page',
  12. getWebInitData: 'get_web_init_data',
  13. getUser: 'get_user',
  14. getUserByPage: 'get_user_by_page',
  15. selectById: '',
  16. // 查导航菜单(自定义报表用)
  17. getMenuNavigation: 'get_menu_navigation',
  18. // 获取最大显示顺序
  19. getMaxDisplayNo: 'get_max_display_no',
  20. // 获取系统表数据种类
  21. getDataKind: 'get_data_kind',
  22. // 获取型号分类
  23. getModelCategory: 'get_model_category',
  24. //获取组织部门
  25. getOrg: 'get_org',
  26. // 分页获取部门
  27. getOrgByPage: 'get_org_by_page',
  28. //获取品牌
  29. getBrand: 'get_brand',
  30. // 品牌分页
  31. getBrandByPage: 'get_goods_brand_list_by',
  32. // 获取角色
  33. getRole: 'get_role',
  34. // 获取员工
  35. getStaff: 'get_staff',
  36. // 分页获取员工
  37. getStaffByPage: 'get_staff_by_page',
  38. // 获取系统参数
  39. getSettingValue: 'get_setting_value',
  40. // 获取系统参数种类
  41. getSettingKind: 'get_setting_kind',
  42. //组织机构
  43. getOrganization: 'get_organization',
  44. // 分页获取组织部门
  45. getOrganizationByPage: 'get_organization_by_page',
  46. // 获取数据字典
  47. getDictionaryData: 'get_dictionary_data',
  48. // 获取数据字典项目
  49. getDictionaryItemData: 'get_dictionary_item_data',
  50. //刷新基础数据
  51. refreshBasicData: 'refresh_basic_data',
  52. // 获取数据类型
  53. getValueKind: 'get_value_kind',
  54. // 获取应用
  55. getApplication: 'get_application',
  56. // 获取仓库
  57. getWarehouse: 'get_warehouse',
  58. // 获取仓位(分页)
  59. getWarehouseByPage: 'get_warehouse_by_page',
  60. // 获取单据
  61. getDoc: 'get_doc',
  62. // 获取商品
  63. getGoods: 'get_goods',
  64. // 获取商品(分页)
  65. getGoodsPage: 'get_goods_by_page',
  66. // 获取商品(销售订单开单用)
  67. getGoodsForOrder: 'get_goods_for_order',
  68. // 获取商品(销售订单开单用)(分页)
  69. getGoodsForOrderByPage: 'get_goods_for_order_by_page',
  70. // 获取商品(采购订单开单用)
  71. getGoodsForPurchase: 'get_goods_for_purchase',
  72. // 获取商品(采购订单开单用)(分页)
  73. getGoodsForPurchaseByPage: 'get_goods_for_purchase_by_page',
  74. //获取供应商
  75. getSupplier: 'get_supplier',
  76. //获取供应商分页
  77. getSupplierByPage: 'get_supplier_by_page',
  78. // 获取客户
  79. getCustomer: 'get_customer',
  80. // 获取客户(分页)
  81. getCustomerByPage: 'get_customer_by_page',
  82. // 获取渠道
  83. getChannel: 'get_channel',
  84. // 获取客户
  85. getInventory: 'get_inventory',
  86. // 获取客户(分页)
  87. getInventoryByPage: 'get_inventory_by_page',
  88. // 获取供应商和客户
  89. getSupplierAndCustomer: 'get_supplier_and_customer',
  90. // 获取供应商和客户(分页)
  91. getSupplierAndCustomerByPage: 'get_supplier_and_customer_by_page',
  92. // 获取资金账户(下拉)
  93. getMac: 'get_mac',
  94. // 获取资金账户(放大镜)
  95. getMoneyAccount: 'get_money_account',
  96. // 获取资金账户(放大镜分页)
  97. getMoneyAccountByPage: 'get_money_account_by_page',
  98. // 获取多业务部门
  99. getMultiOrg: 'get_multi_org',
  100. // 获取多业务员
  101. getMultiStaff: 'get_multi_staff',
  102. // 获取组织仓库
  103. getMultiWarehouse: 'get_multi_warehouse',
  104. // 获取组织资金账户
  105. getMultiMoneyAccount: 'get_multi_moneyAccount',
  106. //采购退货查询库存商品
  107. getGoodsForPurchaseReturn:'get_goods_for_purchase_return',
  108. //采购退货查询库存商品(分页)
  109. getGoodsForPurchaseReturnByPage:'get_goods_for_purchase_return_by_page',
  110. //获取员工的范围权限类型
  111. getPurviewType:'get_purview_type',
  112. //查询标签打印项目
  113. getLabelPrintItem: 'get_label_print_item',
  114. //获取基础数据
  115. getInitData:'get_init_data',
  116. // 获取组织仓库
  117. getOrgWh:'get_org_wh',
  118. //获取商品(其他入库开单用)
  119. getGoodsForInto: 'get_goods_for_into',
  120. ///获取商品(其他入库开单用)(分页)
  121. getGoodsForIntoByPage: 'get_goods_for_into_by_page',
  122. // 获取首页实时数据
  123. getRealTimeData: 'get_real_time_data',
  124. },
  125. fileService:{
  126. prefix: 'mdm-server/file/',
  127. }
  128. }
  129. /**
  130. * @desc : 路由
  131. * @author : 周兴
  132. * @date : 2022/12/13 15:44
  133. */
  134. export const routeUrl = {
  135. // 清空条件
  136. clear: {key: 'clear'},
  137. // 编辑 initFlag(是否进入加载基础数据的方法)
  138. edit: {key: 'edit', method: 'edit', initFlag: true},
  139. // 新建 initFlag(是否进入加载基础数据的方法)
  140. add: {key: 'add', method: 'add', initFlag: true},
  141. // 停用
  142. disable: {key: 'disable', method: 'disable'},
  143. // 启用
  144. enable: {key: 'enable', method: 'enable'},
  145. // 操作日志
  146. log: {key: 'log', method: 'log'},
  147. //打印
  148. print:{key: 'print', method: 'print'},
  149. }