data.ts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  1. import { incrementUseTypeList } from '/@/api/account';
  2. import { FormSchema } from '/@/components/Form/index';
  3. import { BasicColumn, FormProps } from '/@/components/Table';
  4. import { Time } from '/@/components/Time';
  5. import { h } from 'vue';
  6. export const equitySearchForm: Partial<FormProps> = {
  7. labelWidth: 100,
  8. autoSubmitOnEnter: true,
  9. autoAdvancedLine: 1,
  10. actionColOptions: {
  11. span: 24,
  12. },
  13. schemas: [
  14. {
  15. field: 'ctivated',
  16. label: '下单时间',
  17. component: 'RangePicker',
  18. componentProps: {
  19. maxLength: 100,
  20. format: 'YYYY-MM-DD',
  21. valueFormat: 'YYYY-MM-DD',
  22. },
  23. colProps: {
  24. xl: 8,
  25. xxl: 8,
  26. },
  27. },
  28. {
  29. field: 'orderSn',
  30. label: '订单号',
  31. component: 'Input',
  32. componentProps: {
  33. maxLength: 100,
  34. },
  35. colProps: {
  36. xl: 8,
  37. xxl: 8,
  38. },
  39. },
  40. {
  41. field: 'customerType',
  42. component: 'Select',
  43. label: '客户类别',
  44. colProps: {
  45. span: 8,
  46. },
  47. componentProps: {
  48. options: [
  49. {
  50. label: '直销',
  51. value: 0,
  52. key: '0',
  53. },
  54. {
  55. label: '经销',
  56. value: 1,
  57. key: '1',
  58. },
  59. ],
  60. },
  61. },
  62. {
  63. field: 'useType',
  64. component: 'ApiSelect',
  65. label: '使用类型',
  66. componentProps: {
  67. // filterOption: onFilterOption,
  68. // showSearch: true,
  69. api: incrementUseTypeList,
  70. labelField: 'name',
  71. valueField: 'id',
  72. immediate: true,
  73. },
  74. colProps: {
  75. span: 8,
  76. },
  77. },
  78. {
  79. field: 'companyName',
  80. component: 'Select',
  81. label: '合同所属公司',
  82. colProps: {
  83. span: 8,
  84. },
  85. itemProps: {
  86. autoLink: false,
  87. },
  88. componentProps: {
  89. options: [
  90. {
  91. label: '珠海市四维时代网络科技有限公司',
  92. value: '珠海市四维时代网络科技有限公司',
  93. key: '珠海市四维时代网络科技有限公司',
  94. },
  95. {
  96. label: '广东四维看看智能设备有限公司',
  97. value: '广东四维看看智能设备有限公司',
  98. key: '广东四维看看智能设备有限公司',
  99. },
  100. {
  101. label: '四维看看(香港)有限公司',
  102. value: '四维看看(香港)有限公司',
  103. key: '四维看看(香港)有限公司',
  104. },
  105. {
  106. label: '四维看看(北京)数据科技有限公司',
  107. value: '四维看看(北京)数据科技有限公司',
  108. key: '四维看看(北京)数据科技有限公司',
  109. },
  110. ],
  111. },
  112. },
  113. {
  114. field: 'businessDept',
  115. component: 'Select',
  116. label: '业务部门',
  117. colProps: {
  118. span: 8,
  119. },
  120. itemProps: {
  121. autoLink: false,
  122. },
  123. componentProps: {
  124. options: [
  125. {
  126. label: '数字营销事业部',
  127. value: '数字营销事业部',
  128. key: '数字营销事业部',
  129. },
  130. {
  131. label: '政企事业部',
  132. value: '政企事业部',
  133. key: '政企事业部',
  134. },
  135. {
  136. label: '海外事业部',
  137. value: '海外事业部',
  138. key: '海外事业部',
  139. },
  140. {
  141. label: '市场部',
  142. value: '市场部',
  143. key: '市场部',
  144. },
  145. {
  146. label: '总经办',
  147. value: '总经办',
  148. key: '总经办',
  149. },
  150. ],
  151. },
  152. },
  153. {
  154. field: 'amount',
  155. component: 'Input',
  156. label: '订单金额',
  157. colProps: { span: 7 },
  158. componentProps: {
  159. type: 'number',
  160. },
  161. },
  162. ],
  163. };
  164. export const dowmColumns: BasicColumn[] = [
  165. {
  166. title: '下单时间',
  167. dataIndex: 'createTime',
  168. width: 150,
  169. customRender: ({ record }) => {
  170. return (
  171. record.createTime &&
  172. h(Time, {
  173. value: record.createTime,
  174. mode: 'datetime',
  175. })
  176. );
  177. },
  178. },
  179. {
  180. title: '订单号',
  181. dataIndex: 'orderSn',
  182. ellipsis: false,
  183. width: 180,
  184. },
  185. {
  186. title: '合同所属公司',
  187. dataIndex: 'companyName',
  188. ellipsis: true,
  189. width: 230,
  190. },
  191. {
  192. title: '业务部门',
  193. dataIndex: 'businessDept',
  194. ellipsis: true,
  195. width: 120,
  196. },
  197. {
  198. title: '业务员',
  199. dataIndex: 'businessName',
  200. ellipsis: true,
  201. width: 120,
  202. },
  203. {
  204. title: '客户付款时间',
  205. dataIndex: 'customerPayTime',
  206. ellipsis: true,
  207. width: 160,
  208. },
  209. {
  210. title: '客户名称',
  211. dataIndex: 'customerName',
  212. width: 100,
  213. },
  214. {
  215. title: '客户类别',
  216. dataIndex: 'customerTypeStr',
  217. width: 100,
  218. customRender: ({ record }) => {
  219. return record.customerTypeStr ? record.customerTypeStr : '直销';
  220. },
  221. },
  222. {
  223. title: '终端客户',
  224. dataIndex: 'endCustomer',
  225. width: 100,
  226. },
  227. {
  228. title: '经销商名称',
  229. dataIndex: 'agentName',
  230. width: 100,
  231. },
  232. {
  233. title: '使用类型',
  234. dataIndex: 'useTypeStr',
  235. width: 100,
  236. },
  237. {
  238. title: '权益类型',
  239. dataIndex: 'memberLevels',
  240. width: 100,
  241. },
  242. {
  243. title: '订单金额',
  244. dataIndex: 'amount',
  245. width: 80,
  246. },
  247. {
  248. title: '币种',
  249. dataIndex: 'currencySymbol',
  250. width: 80,
  251. },
  252. {
  253. title: '数量',
  254. dataIndex: 'count',
  255. width: 80,
  256. },
  257. {
  258. title: '支付方式',
  259. dataIndex: 'payType',
  260. // slots: { customRender: 'orderType' },
  261. width: 80,
  262. },
  263. {
  264. title: '交易号',
  265. dataIndex: 'number',
  266. width: 180,
  267. },
  268. {
  269. title: '付款状态',
  270. dataIndex: 'payStatus',
  271. // slots: { customRender: 'orderStatus' },
  272. customRender: ({ record }) => {
  273. return record.payStatus ? record.payStatus : '-';
  274. },
  275. width: 80,
  276. },
  277. {
  278. title: '充值方式',
  279. dataIndex: 'payMethod',
  280. width: 100,
  281. },
  282. {
  283. title: '会员服务期限',
  284. dataIndex: 'incrementTime',
  285. width: 100,
  286. },
  287. {
  288. title: 'SN码',
  289. dataIndex: 'snCode',
  290. width: 100,
  291. },
  292. {
  293. title: '项目号',
  294. dataIndex: 'projectNum',
  295. width: 100,
  296. },
  297. {
  298. title: '备注',
  299. dataIndex: 'remark',
  300. width: 100,
  301. },
  302. ];
  303. export const localCameraColumns: BasicColumn[] = [
  304. {
  305. title: '下单时间',
  306. dataIndex: 'createTime',
  307. width: 150,
  308. customRender: ({ record }) => {
  309. return (
  310. record.createTime &&
  311. h(Time, {
  312. value: record.createTime,
  313. mode: 'datetime',
  314. })
  315. );
  316. },
  317. },
  318. {
  319. title: '订单号',
  320. dataIndex: 'orderSn',
  321. ellipsis: false,
  322. width: 180,
  323. },
  324. {
  325. title: '合同所属公司',
  326. dataIndex: 'companyName',
  327. ellipsis: true,
  328. width: 230,
  329. },
  330. {
  331. title: '业务部门',
  332. dataIndex: 'businessDept',
  333. ellipsis: true,
  334. width: 120,
  335. },
  336. {
  337. title: '业务员',
  338. dataIndex: 'businessName',
  339. ellipsis: true,
  340. width: 120,
  341. },
  342. {
  343. title: '客户付款时间',
  344. dataIndex: 'customerPayTime',
  345. ellipsis: true,
  346. width: 160,
  347. },
  348. {
  349. title: '客户名称',
  350. dataIndex: 'customerName',
  351. width: 100,
  352. },
  353. {
  354. title: '客户类别',
  355. dataIndex: 'customerTypeStr',
  356. width: 100,
  357. customRender: ({ record }) => {
  358. return record.customerTypeStr ? record.customerTypeStr : '直销';
  359. },
  360. },
  361. {
  362. title: '终端客户',
  363. dataIndex: 'endCustomer',
  364. width: 100,
  365. },
  366. {
  367. title: '使用类型',
  368. dataIndex: 'useTypeStr',
  369. width: 100,
  370. },
  371. {
  372. title: '订单金额',
  373. dataIndex: 'amount',
  374. width: 80,
  375. },
  376. {
  377. title: '币种',
  378. dataIndex: 'currencySymbol',
  379. width: 80,
  380. },
  381. {
  382. title: '数量',
  383. dataIndex: 'count',
  384. width: 80,
  385. },
  386. {
  387. title: '付款状态',
  388. dataIndex: 'payStatus',
  389. // slots: { customRender: 'orderStatus' },
  390. customRender: ({ record }) => {
  391. return record.payStatus ? record.payStatus : '-';
  392. },
  393. width: 80,
  394. },
  395. {
  396. title: '充值方式',
  397. dataIndex: 'payMethod',
  398. width: 100,
  399. },
  400. {
  401. title: '客户机器码',
  402. dataIndex: 'machineCode',
  403. slots: { customRender: 'copy' },
  404. width: 120,
  405. },
  406. {
  407. title: '相机SN',
  408. dataIndex: 'snCode',
  409. width: 100,
  410. },
  411. {
  412. title: '项目号',
  413. dataIndex: 'projectNum',
  414. width: 100,
  415. },
  416. {
  417. title: '备注',
  418. dataIndex: 'remark',
  419. width: 100,
  420. },
  421. ];
  422. export const differenceColumns: BasicColumn[] = [
  423. {
  424. title: '下单时间',
  425. dataIndex: 'createTime',
  426. width: 150,
  427. customRender: ({ record }) => {
  428. return (
  429. record.createTime &&
  430. h(Time, {
  431. value: record.createTime,
  432. mode: 'datetime',
  433. })
  434. );
  435. },
  436. },
  437. {
  438. title: '订单号',
  439. dataIndex: 'orderSn',
  440. ellipsis: false,
  441. width: 180,
  442. },
  443. {
  444. title: '合同所属公司',
  445. dataIndex: 'companyName',
  446. ellipsis: true,
  447. width: 230,
  448. },
  449. {
  450. title: '业务部门',
  451. dataIndex: 'businessDept',
  452. ellipsis: true,
  453. width: 120,
  454. },
  455. {
  456. title: '业务员',
  457. dataIndex: 'businessName',
  458. ellipsis: true,
  459. width: 120,
  460. },
  461. {
  462. title: '客户付款时间',
  463. dataIndex: 'customerPayTime',
  464. ellipsis: true,
  465. width: 160,
  466. },
  467. {
  468. title: '客户名称',
  469. dataIndex: 'customerName',
  470. width: 100,
  471. },
  472. {
  473. title: '客户类别',
  474. dataIndex: 'customerTypeStr',
  475. width: 100,
  476. customRender: ({ record }) => {
  477. return record.customerTypeStr ? record.customerTypeStr : '直销';
  478. },
  479. },
  480. {
  481. title: '终端客户',
  482. dataIndex: 'endCustomer',
  483. width: 100,
  484. },
  485. {
  486. title: '使用类型',
  487. dataIndex: 'useTypeStr',
  488. width: 100,
  489. },
  490. {
  491. title: '订单金额',
  492. dataIndex: 'amount',
  493. width: 80,
  494. },
  495. {
  496. title: '币种',
  497. dataIndex: 'currencySymbol',
  498. width: 80,
  499. },
  500. {
  501. title: '数量',
  502. dataIndex: 'count',
  503. width: 80,
  504. },
  505. {
  506. title: '付款状态',
  507. dataIndex: 'payStatus',
  508. // slots: { customRender: 'orderStatus' },
  509. customRender: ({ record }) => {
  510. return record.payStatus ? record.payStatus : '-';
  511. },
  512. width: 80,
  513. },
  514. {
  515. title: '充值方式',
  516. dataIndex: 'payMethod',
  517. width: 100,
  518. },
  519. {
  520. title: '相机SN',
  521. dataIndex: 'snCode',
  522. width: 100,
  523. },
  524. {
  525. title: '板卡SN号',
  526. dataIndex: 'rtkSnCode',
  527. width: 265,
  528. },
  529. {
  530. title: '深光rtk插件SN号',
  531. ellipsis: true,
  532. dataIndex: 'sgRtkSn',
  533. customRender: ({ record }) => {
  534. return record.sgRtkSn || '-';
  535. },
  536. width: 160,
  537. },
  538. {
  539. title: '差分账号期限',
  540. ellipsis: true,
  541. dataIndex: 'sgRtkSn',
  542. customRender: ({ record }) => {
  543. return record.sgRtkSn || '-';
  544. },
  545. width: 160,
  546. },
  547. {
  548. title: '项目号',
  549. dataIndex: 'projectNum',
  550. width: 100,
  551. },
  552. {
  553. title: '备注',
  554. dataIndex: 'remark',
  555. width: 100,
  556. },
  557. ];