search.config.ts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. import { FormConfig } from "/@/components/PageSearch";
  2. import { useTypeOptions } from "/@/utils/status";
  3. export const USE_STATUS = [
  4. {
  5. value: "0",
  6. label: "未对账"
  7. },
  8. {
  9. value: "1",
  10. label: "参与对账"
  11. },
  12. {
  13. value: "2",
  14. label: "参与核销对账"
  15. }
  16. ];
  17. export const inv_open_status = [
  18. {
  19. value: "1",
  20. label: "未开票"
  21. },
  22. {
  23. value: "2",
  24. label: "部分开票"
  25. },
  26. {
  27. value: "3",
  28. label: "已开票"
  29. }
  30. ];
  31. export const retrun_status = [
  32. {
  33. value: "1",
  34. label: "未回款"
  35. },
  36. {
  37. value: "2",
  38. label: "部分回款"
  39. },
  40. {
  41. value: "3",
  42. label: "已回款"
  43. }
  44. ];
  45. export const good_type = [
  46. {
  47. value: "1",
  48. label: "库存品"
  49. },
  50. {
  51. value: "2",
  52. label: "非库存"
  53. },
  54. {
  55. value: "3",
  56. label: "咨询"
  57. }
  58. ];
  59. export const good_source = [
  60. {
  61. value: "1",
  62. label: "直接下单"
  63. },
  64. {
  65. value: "2",
  66. label: "咨询"
  67. },
  68. {
  69. value: "3",
  70. label: "项目"
  71. },
  72. {
  73. value: "4",
  74. label: "平台"
  75. },
  76. {
  77. value: "5",
  78. label: "有赞"
  79. },
  80. {
  81. value: "6",
  82. label: "售后补换货"
  83. },
  84. { value: "7", label: "报备转单" },
  85. { value: "8", label: "支付渠道" }
  86. ];
  87. export const seend_type = [
  88. {
  89. value: "1",
  90. label: "未发货"
  91. },
  92. {
  93. value: "2",
  94. label: "部分发货"
  95. },
  96. {
  97. value: "3",
  98. label: "已发货"
  99. }
  100. ];
  101. export const cat_status = [
  102. {
  103. value: "0",
  104. label: "未设置"
  105. },
  106. {
  107. value: "1",
  108. label: "已设置"
  109. }
  110. ];
  111. const tag_type = [
  112. {
  113. value: "1",
  114. label: "开票标签"
  115. },
  116. {
  117. value: "2",
  118. label: "回款标签"
  119. },
  120. {
  121. value: "3",
  122. label: "开票或回款标签最少有一个"
  123. },
  124. {
  125. value: "4",
  126. label: "开票和回款标签同时有"
  127. }
  128. ];
  129. const searchFormConfig: FormConfig = {
  130. formItems: [
  131. {
  132. field: "order_timer",
  133. type: "date_picker",
  134. otherOptions: {
  135. type: "daterange",
  136. startProp: "start",
  137. endProp: "end",
  138. startPlaceholder: "下单起始时间",
  139. endPlaceholder: "下单结束时间"
  140. }
  141. },
  142. {
  143. field: "qrdsource",
  144. type: "select",
  145. placeholder: "订单来源",
  146. options: good_source,
  147. span: 4
  148. },
  149. {
  150. field: "qrdtype",
  151. type: "select",
  152. placeholder: "商品类型",
  153. options: good_type,
  154. span: 4
  155. },
  156. {
  157. field: "inv_status",
  158. type: "select",
  159. placeholder: "开票状态",
  160. options: inv_open_status,
  161. span: 4
  162. },
  163. {
  164. field: "pay_status",
  165. type: "select",
  166. placeholder: "回款状态",
  167. options: retrun_status,
  168. span: 4
  169. },
  170. {
  171. field: "group",
  172. type_field: "group_type",
  173. type: "input_group",
  174. span: 8,
  175. otherOptions: {
  176. inputGroupOptions: [
  177. { value: "sequenceNo", label: "订单编码" },
  178. { value: "cxCode", label: "销售订单主编码" },
  179. { value: "customerNo", label: "客户编码" },
  180. { value: "customer", label: "客户名称" },
  181. { value: "platName", label: "平台名称" },
  182. { value: "department", label: "部门" },
  183. { value: "saler", label: "销售员" }
  184. ]
  185. }
  186. },
  187. {
  188. field: "sendstatus",
  189. type: "select",
  190. placeholder: "发货状态",
  191. options: seend_type,
  192. span: 4
  193. },
  194. {
  195. field: "cat_status",
  196. type: "select",
  197. placeholder: "是否设置类目",
  198. options: cat_status,
  199. span: 4
  200. },
  201. {
  202. field: "platform_type",
  203. type: "select",
  204. placeholder: "平台类型",
  205. options: useTypeOptions,
  206. span: 4
  207. },
  208. {
  209. field: "tag_id",
  210. type: "select",
  211. placeholder: "标签类型",
  212. options: tag_type,
  213. span: 4
  214. }
  215. ]
  216. };
  217. export default searchFormConfig;