commissionOrderForm.data.ts 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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. //列表数据
  7. export const columns: BasicColumn[] = [
  8. {
  9. title: '订单编号(bill code)',
  10. align:"center",
  11. width:150,
  12. dataIndex: 'billCode'
  13. },
  14. {
  15. title: '单据日期(bill date)',
  16. align:"center",
  17. dataIndex: 'billDate',
  18. customRender:({text}) =>{
  19. text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
  20. return text;
  21. },
  22. },
  23. {
  24. title: '客户(customer)',
  25. align:"center",
  26. width:250,
  27. dataIndex: 'customerName'
  28. },
  29. {
  30. title: '供应商(supplier)',
  31. align:"center",
  32. width:250,
  33. dataIndex: 'supplierName'
  34. },
  35. {
  36. title: '销售部门(saleDepartment)',
  37. align:"center",
  38. dataIndex: 'saleDepartmenName'
  39. },
  40. {
  41. title: '佣金(commission)',
  42. align:"center",
  43. dataIndex: 'commission'
  44. },
  45. {
  46. title: '业务员(salesman)',
  47. align:"center",
  48. dataIndex: 'salesmanName',
  49. width:250,
  50. },
  51. {
  52. title: '提交(submit)',
  53. align:"center",
  54. dataIndex: 'submit_dictText'
  55. },
  56. {
  57. title: '关闭(close)',
  58. align:"center",
  59. dataIndex: 'close_dictText'
  60. },
  61. {
  62. title: '开票申请(apply invoice)',
  63. align:"center",
  64. dataIndex: 'applyInvoice_dictText'
  65. },
  66. {
  67. title: '供应商回款(supplier payment)',
  68. align:"center",
  69. dataIndex: 'supplierPayment'
  70. },
  71. {
  72. title: '组织(organize)',
  73. align:"center",
  74. dataIndex: 'organize'
  75. },
  76. ];
  77. export const ProductColumns: JVxeColumn[] = [
  78. {
  79. title: '产品分类(product class)',
  80. key: 'productClass',
  81. type: JVxeTypes.normal,
  82. placeholder: '请输入${title}',
  83. width:"200px",
  84. defaultValue:'',
  85. },
  86. {
  87. title: '产品编码(product code)',
  88. key: 'productCode',
  89. type: JVxeTypes.normal,
  90. placeholder: '请输入${title}',
  91. width:"200px",
  92. defaultValue:'',
  93. },
  94. {
  95. title: '产品中文名(chinese name)',
  96. key: 'chineseName',
  97. type: JVxeTypes.normal,
  98. placeholder: '请输入${title}',
  99. width:"200px",
  100. defaultValue:'',
  101. },
  102. {
  103. title: '产品英文名(english name)',
  104. key: 'englishName',
  105. type: JVxeTypes.normal,
  106. placeholder: '请输入${title}',
  107. width:"200px",
  108. defaultValue:'',
  109. },
  110. {
  111. title: '型号(model)',
  112. key: 'model',
  113. type: JVxeTypes.normal,
  114. placeholder: '请输入${title}',
  115. width:"200px",
  116. defaultValue:'',
  117. },
  118. {
  119. title: '备件号(partno)',
  120. key: 'partno',
  121. type: JVxeTypes.normal,
  122. placeholder: '请输入${title}',
  123. width:"200px",
  124. defaultValue:'',
  125. },
  126. {
  127. title: '订货号(orderno)',
  128. key: 'orderno',
  129. type: JVxeTypes.normal,
  130. placeholder: '请输入${title}',
  131. width:"200px",
  132. defaultValue:'',
  133. },
  134. {
  135. title: '图号(drawingno)',
  136. key: 'drawingno',
  137. type: JVxeTypes.normal,
  138. placeholder: '请输入${title}',
  139. width:"200px",
  140. defaultValue:'',
  141. },
  142. // {
  143. // title: '厂家(factory)',
  144. // key: 'factory',
  145. // placeholder: '请输入${title}',
  146. // width:"200px",
  147. // defaultValue:'',
  148. // type: JVxeTypes.normal,
  149. // dictCode: 'factory',
  150. // },
  151. {
  152. title: '质量等级(quality grade)',
  153. key: 'qualityGrade',
  154. type: JVxeTypes.select,
  155. options: [],
  156. dictCode: 'quality_grade',
  157. placeholder: '请输入${title}',
  158. width:"200px",
  159. defaultValue:'',
  160. },
  161. {
  162. title: '数量(quantity)',
  163. key: 'quantity',
  164. type: JVxeTypes.inputNumber,
  165. validateRules: [{ required: true, message: '' }],
  166. placeholder: '请输入${title}',
  167. width:"200px",
  168. defaultValue:'',
  169. },
  170. {
  171. title: '含税单价(tax price)',
  172. key: 'taxPrice',
  173. type: JVxeTypes.inputNumber,
  174. validateRules: [{ required: true, message: '' }],
  175. placeholder: '请输入${title}',
  176. width:"200px",
  177. defaultValue:'',
  178. },
  179. {
  180. title: '含税金额(tax money)',
  181. key: 'taxMoney',
  182. type: JVxeTypes.normal,
  183. placeholder: '请输入${title}',
  184. width:"200px",
  185. defaultValue:'',
  186. },
  187. {
  188. title: '佣金率(commission rate)',
  189. key: 'commissionRateChild',
  190. type: JVxeTypes.inputNumber,
  191. placeholder: '请输入${title}',
  192. width:"200px",
  193. defaultValue:'',
  194. },
  195. {
  196. title: '佣金(commission)',
  197. key: 'commission',
  198. type: JVxeTypes.normal,
  199. placeholder: '请输入${title}',
  200. width:"200px",
  201. defaultValue:'',
  202. },
  203. {
  204. title: '备注(note)',
  205. key: 'notesChild',
  206. width:"200px",
  207. type: JVxeTypes.input,
  208. placeholder: '请输入${title}',
  209. defaultValue:'',
  210. },
  211. {
  212. title: '操作(operation)',
  213. key: 'action',
  214. width:"200px",
  215. // 固定在右侧
  216. fixed: 'right',
  217. // 对齐方式为居中
  218. align: 'center',
  219. // 组件类型定义为【插槽】
  220. type: JVxeTypes.slot,
  221. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  222. slotName: 'action',
  223. },
  224. ]