FreightPurOrderForm.data.ts 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. import {BasicColumn} from '/@/components/Table';
  2. import {FormSchema} from '/@/components/Table';
  3. import { rules} from '/@/utils/helper/validator';
  4. import { render } from '/@/utils/common/renderUtils';
  5. import {JVxeTypes,JVxeColumn} from '/@/components/jeecg/JVxeTable/types'
  6. import { getWeekMonthQuarterYear } from '/@/utils';
  7. //列表数据
  8. export const columns: BasicColumn[] = [
  9. {
  10. title: '编号(bill code)',
  11. align:"center",
  12. dataIndex: 'billCode',
  13. width:140,
  14. },
  15. {
  16. title: '申请日期(bill date)',
  17. align:"center",
  18. width:200,
  19. dataIndex: 'billDate',
  20. customRender:({text}) =>{
  21. text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
  22. return text;
  23. },
  24. },
  25. {
  26. title: '预付款日期(expected payment date)',
  27. align:"center",
  28. dataIndex: 'expectedPaymentDate',
  29. width:235,
  30. ellipsis:true
  31. },
  32. {
  33. title: '供应商(supplier)',
  34. align:"center",
  35. width:200,
  36. dataIndex: 'supplierName'
  37. },
  38. {
  39. title: '类型(type)',
  40. align:"center",
  41. ellipsis:true,
  42. width:150,
  43. dataIndex: 'type'
  44. },
  45. {
  46. title: '申请金额(approve money)',
  47. align:"center",
  48. ellipsis:true,
  49. width:200,
  50. dataIndex: 'approveMoney'
  51. },
  52. {
  53. title: '币种(cerrency)',
  54. align:"center",
  55. width:140,
  56. dataIndex: 'currency_dictText'
  57. },
  58. // {
  59. // title: '开户行(opening bank)',
  60. // align:"center",
  61. // dataIndex: 'openingBank'
  62. // },
  63. // {
  64. // title: '户名(opening name)',
  65. // align:"center",
  66. // dataIndex: 'openingName'
  67. // },
  68. // {
  69. // title: '银行代码(swift code)',
  70. // align:"center",
  71. // dataIndex: 'swiftCode'
  72. // },
  73. // {
  74. // title: '银行账号(bank account)',
  75. // align:"center",
  76. // dataIndex: 'bankAccount'
  77. // },
  78. // {
  79. // title: '备注(notes)',
  80. // align:"center",
  81. // dataIndex: 'notes',
  82. // },
  83. // {
  84. // title: '关闭原因(close reason)',
  85. // align:"center",
  86. // dataIndex: 'closeReason'
  87. // },
  88. {
  89. title: '提交(submit)',
  90. align:"center",
  91. width:140,
  92. dataIndex: 'submit_dictText',
  93. },
  94. // {
  95. // title: '关闭(close)',
  96. // align:"center",
  97. // dataIndex: 'close_dictText',
  98. // },
  99. // {
  100. // title: '确认(confirm)',
  101. // align:"center",
  102. // dataIndex: 'status_dictText',
  103. // },
  104. {
  105. title: '付款(payment)',
  106. align:"center",
  107. width:140,
  108. dataIndex: 'payment_dictText',
  109. },
  110. {
  111. title: '创建人',
  112. align:"center",
  113. width:140,
  114. dataIndex: 'createBy',
  115. },
  116. {
  117. title: '创建时间',
  118. align:"center",
  119. width:200,
  120. dataIndex: 'createTime',
  121. },
  122. ];
  123. //子表表格配置
  124. export const ShippingNoticeColumns: JVxeColumn[] = [
  125. {
  126. title: '通知单号(bill code)',
  127. key: 'billCode',
  128. type: JVxeTypes.normal,
  129. placeholder: '请输入${title}',
  130. defaultValue:'',
  131. },
  132. // {
  133. // title: '合同编号(contract code)',
  134. // key: 'contractCode',
  135. // type: JVxeTypes.normal,
  136. // placeholder: '请输入${title}',
  137. // defaultValue:'',
  138. // },
  139. {
  140. title: '项目(project)',
  141. key: 'projectName',
  142. type: JVxeTypes.normal,
  143. placeholder: '请输入${title}',
  144. defaultValue:'',
  145. },
  146. {
  147. title: '客户(customer)',
  148. key: 'customerName',
  149. type: JVxeTypes.normal,
  150. placeholder: '请输入${title}',
  151. defaultValue:'',
  152. },
  153. {
  154. title: '操作(operation)',
  155. key: 'action',
  156. width:"400px",
  157. // 固定在右侧
  158. fixed: 'right',
  159. // 对齐方式为居中
  160. align: 'center',
  161. // 组件类型定义为【插槽】
  162. type: JVxeTypes.slot,
  163. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  164. slotName: 'action',
  165. },
  166. ]
  167. export const FreightProDetailsColumns: JVxeColumn[] = [
  168. {
  169. title: '产品分类(product class)',
  170. key: 'productClass',
  171. type: JVxeTypes.normal,
  172. placeholder: '请输入${title}',
  173. defaultValue:'',
  174. },
  175. {
  176. title: '产品编码(product code)',
  177. key: 'productCode',
  178. type: JVxeTypes.normal,
  179. placeholder: '请输入${title}',
  180. defaultValue:'',
  181. },
  182. {
  183. title: '产品中文名(chinese name)',
  184. key: 'chineseName',
  185. type: JVxeTypes.normal,
  186. placeholder: '请输入${title}',
  187. defaultValue:'',
  188. },
  189. {
  190. title: '产品英文名(english name)',
  191. key: 'englishName',
  192. type: JVxeTypes.normal,
  193. placeholder: '请输入${title}',
  194. defaultValue:'',
  195. },
  196. {
  197. title: '运费金额(amount)',
  198. key: 'taxAmount',
  199. type: JVxeTypes.inputNumber,
  200. validateRules: [{ required: true, message: '' }],
  201. placeholder: '请输入${title}',
  202. defaultValue:'',
  203. },
  204. {
  205. title: '操作(operation)',
  206. key: 'action',
  207. width:"300px",
  208. // 固定在右侧
  209. fixed: 'right',
  210. // 对齐方式为居中
  211. align: 'center',
  212. // 组件类型定义为【插槽】
  213. type: JVxeTypes.slot,
  214. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  215. slotName: 'action',
  216. },
  217. ]