api.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. export const MOD = '/order'
  2. export const IMPOERMOD = 'Order'
  3. export const GETSYSFILED = "/sys-dict/getListByCode";
  4. export const GETPERSONNEL = "/user/getSimpleActiveUserList";
  5. export const GETGENERATEFOEM = `/sys-form/getListByCode${MOD}`
  6. export const GETALLPRODUCT = `/sys-form/getListByCode/Order`
  7. export const GETTABLELIST = `${MOD}/list`
  8. export function useBtn<T extends ()=>string>(fun: T) {
  9. fun && fun();
  10. }
  11. export type ActionButton<Fun=(f:()=>void)=>void> = { text: string, event?:Fun };
  12. export const actionButtons: ActionButton[] = [
  13. { text: '新建订单', event: useBtn },
  14. { text: '批量转移' },
  15. { text: '批量删除' },
  16. { text: '回收站' },
  17. { text: '导入' },
  18. { text: '导出' },
  19. ]
  20. export const tableColumns: TableColumn[] = [
  21. { prop: 'orderCode', label: '订单编号', event: 'toDetali', width: '150' },
  22. { prop: 'orderName', label: '订单名称', width: '150' },
  23. { prop: 'customName', label: '客户名称', width: '200' },
  24. { prop: 'businessOpportunityName', label: '商机名称', width: '200' },
  25. { prop: 'price', label: '订单金额', width: '100' },
  26. { prop: 'receivedPayment', label: '已回款', width: '100' },
  27. { prop: 'unReceivedPayment', label: '未回款', width: '100' },
  28. { prop: 'status', label: '回放状态', width: '100' },
  29. { prop: 'typeName', label: '订单类型', width: '200' },
  30. { prop: 'placeTime', label: '下单时间', width: '200' },
  31. { prop: 'orderStartDate', label: '订单开始时间', width: '200' },
  32. { prop: 'orderEndDate', label: '订单结束时间', width: '200' },
  33. { prop: 'customSigner', label: '客户签的人', width: '200' },
  34. { prop: 'companySigner', label: '公司签的人', width: '200' },
  35. { prop: 'inchargerName', label: '负责人', width: '200' },
  36. { prop: 'creatorName', label: '创建人', width: '200' },
  37. { prop: 'createTime', label: '创建时间', width: '200' },
  38. ]