columns-config.ts 890 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. export const mapProp = {
  2. value0: "companyNo",
  3. value1: "companyName",
  4. value2: "supplierNo",
  5. value3: "supplierName",
  6. value4: "payNo",
  7. value5: "invoiceType",
  8. value6: "invoiceCode",
  9. value7: "invoiceNumber",
  10. value8: "inv_subtotal_amount",
  11. value9: "inv_total",
  12. value10: "open_time",
  13. value11: "checkNumber"
  14. };
  15. export const requireHeaders = [];
  16. const columns = [
  17. {
  18. label: '购买方纳税号',
  19. prop: 'TODO1',
  20. minWidth: '100px',
  21. reuqired: true
  22. },
  23. {
  24. label: '商品编号',
  25. prop: 'TODO2',
  26. minWidth: '100px',
  27. reuqired: true
  28. },
  29. {
  30. label:'盘点数量',
  31. prop: 'TODO3',
  32. minWidth: '100px',
  33. reuqired: true
  34. }
  35. ]
  36. const orderTemplate = [columns.slice(1).reduce((prev, current) => {
  37. return { ...prev, [current.label]: current.detaultData ? current.defaultData : '' }
  38. }, {})]
  39. export { initheaders, columns, orderTemplate };