commissionOrderForm.data.ts 5.0 KB

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