salesInvoiceForm.data.ts 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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. ellipsis:true,
  12. dataIndex: 'billCode'
  13. },
  14. {
  15. title: '发票日期(delivert date)',
  16. align:"center",
  17. dataIndex: 'deliveryDate',
  18. customRender:({text}) =>{
  19. text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
  20. return text;
  21. },
  22. },
  23. {
  24. title: '项目(project)',
  25. align:"center",
  26. ellipsis:true,
  27. dataIndex: 'projectName'
  28. },
  29. {
  30. title: '客户订单号(customer order number)',
  31. align:"center",
  32. width:250,
  33. dataIndex: 'customerOrderNumber'
  34. },
  35. {
  36. title: '购方(buyer)',
  37. align:"center",
  38. ellipsis:true,
  39. dataIndex: 'buyer'
  40. },
  41. {
  42. title: '购方税号(buyer tax number)',
  43. align:"center",
  44. dataIndex: 'buyerTaxNumber',
  45. width:250,
  46. ellipsis:true,
  47. },
  48. {
  49. title: '销售订单(sale order)',
  50. align:"center",
  51. dataIndex: 'saleOrder',
  52. },
  53. {
  54. title: '采购订单(purchase order)',
  55. align:"center",
  56. dataIndex: 'purchaseOrder'
  57. },
  58. {
  59. title: '销售合同(sale contract)',
  60. align:"center",
  61. dataIndex: 'saleContract'
  62. },
  63. {
  64. title: '签单/提单(sign/bill of lading)',
  65. align:"center",
  66. dataIndex: 'sign',
  67. width:300,
  68. },
  69. {
  70. title: '价税合计(tax money)',
  71. align:"center",
  72. dataIndex: 'taxMoney',
  73. ellipsis:true,
  74. },
  75. {
  76. title: '盖章发票(stapm invoice)',
  77. align:"center",
  78. dataIndex: 'stapmInvoice',
  79. },
  80. {
  81. title: '提交(submit)',
  82. align:"center",
  83. dataIndex: 'submit_dictText',
  84. },
  85. ];
  86. //子表表格配置
  87. export const saleInvoiceShipColumns: JVxeColumn[] = [
  88. {
  89. title: '船名(ship name)',
  90. key: 'shipName',
  91. type: JVxeTypes.normal,
  92. placeholder: '请输入${title}',
  93. defaultValue:'',
  94. },
  95. {
  96. title: '主机号(host number)',
  97. key: 'hostNumber',
  98. type: JVxeTypes.input,
  99. placeholder: '请输入${title}',
  100. defaultValue:'',
  101. },
  102. {
  103. title: '工程编号(project No)',
  104. key: 'projectNo',
  105. type: JVxeTypes.input,
  106. placeholder: '请输入${title}',
  107. defaultValue:'',
  108. },
  109. {
  110. title: '船厂(ship factory)',
  111. key: 'shipFactory',
  112. type: JVxeTypes.normal,
  113. placeholder: '请输入${title}',
  114. defaultValue:'',
  115. },
  116. {
  117. title: '船东(shipowner)',
  118. key: 'shipowner',
  119. type: JVxeTypes.normal,
  120. placeholder: '请输入${title}',
  121. defaultValue:'',
  122. },
  123. {
  124. title: '操作(operation)',
  125. key: 'action',
  126. width:"400px",
  127. // 固定在右侧
  128. fixed: 'right',
  129. // 对齐方式为居中
  130. align: 'center',
  131. // 组件类型定义为【插槽】
  132. type: JVxeTypes.slot,
  133. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  134. slotName: 'action',
  135. },
  136. ]
  137. export const saleInvoiceDetailColumns: JVxeColumn[] = [
  138. {
  139. title: '产品编码(product code)',
  140. key: 'productCode',
  141. type: JVxeTypes.normal,
  142. placeholder: '请输入${title}',
  143. width:"200px",
  144. defaultValue:'',
  145. },
  146. {
  147. title: '产品名称(product name)',
  148. key: 'ProductName',
  149. type: JVxeTypes.normal,
  150. placeholder: '请输入${title}',
  151. width:"200px",
  152. defaultValue:'',
  153. },
  154. {
  155. title: '数量(quantity)',
  156. key: 'quantity',
  157. type: JVxeTypes.inputNumber,
  158. placeholder: '请输入${title}',
  159. width:"200px",
  160. defaultValue:'',
  161. },
  162. {
  163. title: '单价(price)',
  164. key: 'taxPrice',
  165. type: JVxeTypes.inputNumber,
  166. placeholder: '请输入${title}',
  167. defaultValue:'',
  168. width:"200px",
  169. },
  170. {
  171. title: '金额(money)',
  172. key: 'taxMoney',
  173. type: JVxeTypes.normal,
  174. placeholder: '请输入${title}',
  175. width:"200px",
  176. defaultValue:'',
  177. },
  178. {
  179. title: '税额(tax amount)',
  180. key: 'taxAmount',
  181. type: JVxeTypes.inputNumber,
  182. placeholder: '请输入${title}',
  183. width:"200px",
  184. defaultValue:'',
  185. },
  186. {
  187. title: '备注(notes)',
  188. key: 'notes',
  189. type: JVxeTypes.normal,
  190. placeholder: '请输入${title}',
  191. width:"200px",
  192. defaultValue:'',
  193. },
  194. {
  195. title: '操作(operation)',
  196. key: 'action',
  197. width:"200px",
  198. // 固定在右侧
  199. fixed: 'right',
  200. // 对齐方式为居中
  201. align: 'center',
  202. // 组件类型定义为【插槽】
  203. type: JVxeTypes.slot,
  204. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  205. slotName: 'action',
  206. },
  207. ]
  208. // 高级查询数据
  209. export const superQuerySchema = {
  210. status: {title: '状态(1-已报价,0-已报价)',order: 0,view: 'number', type: 'number',},
  211. otherStatus: {title: '其他状态(other status)',order: 2,view: 'text', type: 'string',},
  212. submit: {title: '提交(1是 0否)',order: 3,view: 'text', type: 'string',},
  213. billDate: {title: '单据日期(bill date)',order: 4,view: 'date', type: 'string',},
  214. billCode: {title: '询价单号(bill code)',order: 5,view: 'text', type: 'string',},
  215. inquiryProject: {title: '询价项目(inquiry project)',order: 6,view: 'text', type: 'string',},
  216. inquiryCustomer: {title: '询价客户(inquiry customer)',order: 7,view: 'text', type: 'string',},
  217. inquiryPlatform: {title: '询价平台(inquiry platform)',order: 8,view: 'text', type: 'string',},
  218. customerInquiryNumber: {title: '客户询价单号(customer inquiry number)',order: 9,view: 'text', type: 'string',},
  219. inquiryPeriodEnd: {title: '询价有效期(inquiry period)止',order: 10,view: 'date', type: 'string',},
  220. inquiryPeriodBegin: {title: '询价有效期(inquiry period)始',order: 11,view: 'date', type: 'string',},
  221. busynessType: {title: '业务类型(busyness type)',order: 12,view: 'text', type: 'string',},
  222. priority: {title: '优先级(priority)',order: 13,view: 'text', type: 'string',},
  223. productionClass: {title: '产品分类(production class)',order: 14,view: 'text', type: 'string',},
  224. model: {title: '机型(model)',order: 15,view: 'text', type: 'string',},
  225. maker: {title: '厂家(maker)',order: 16,view: 'text', type: 'string',},
  226. saleDepartment: {title: '销售部门(sale department)',order: 17,view: 'text', type: 'string',},
  227. salesman: {title: '业务员(salesman)',order: 18,view: 'text', type: 'string',},
  228. inquiryTeam: {title: '采购询价组(procurement inquiry team)',order: 19,view: 'text', type: 'string',},
  229. deliveryTime: {title: '交期(delivery time)',order: 20,view: 'datetime', type: 'string',},
  230. attachs: {title: '附件(attachs)',order: 21,view: 'text', type: 'string',},
  231. inquiryNotes: {title: '询价备注(inquiry notes)',order: 22,view: 'text', type: 'string',},
  232. //子表高级查询
  233. saleInquiryFormShip: {
  234. title: '销售询价单子表 - 船明细',
  235. view: 'table',
  236. fields: {
  237. shipId: {title: '船id',order: 0,view: 'text', type: 'string',},
  238. shipName: {title: '船名',order: 1,view: 'text', type: 'string',},
  239. hostNumber: {title: '主机号',order: 2,view: 'text', type: 'string',},
  240. projectNo: {title: '工程编号',order: 3,view: 'text', type: 'string',},
  241. shipFactory: {title: '船厂',order: 4,view: 'text', type: 'string',},
  242. shipowner: {title: '船东',order: 5,view: 'text', type: 'string',},
  243. }
  244. },
  245. saleInquiryFormProduct: {
  246. title: '销售询价单子表 - 产品明细',
  247. view: 'table',
  248. fields: {
  249. productId: {title: '产品id',order: 0,view: 'number', type: 'number',},
  250. deliveryTime: {title: '交期',order: 1,view: 'date', type: 'string',},
  251. productClass: {title: '产品分类',order: 2,view: 'text', type: 'string',},
  252. productCode: {title: '产品编码',order: 3,view: 'text', type: 'string',},
  253. chineseName: {title: '产品中文名',order: 4,view: 'text', type: 'string',},
  254. englishName: {title: '产品英文名',order: 5,view: 'text', type: 'string',},
  255. specifications: {title: '规格',order: 6,view: 'text', type: 'string',},
  256. model: {title: '型号',order: 7,view: 'text', type: 'string',},
  257. factory: {title: '厂家',order: 8,view: 'text', type: 'string',},
  258. qualityGrade: {title: '质量等级',order: 9,view: 'text', type: 'string',},
  259. quantity: {title: '数量',order: 10,view: 'number', type: 'number',},
  260. unit: {title: '单位',order: 11,view: 'text', type: 'string',},
  261. needShip: {title: '需要船检证书(1是 0否)',order: 12,view: 'text', type: 'string',},
  262. shipInspection: {title: '船检证书',order: 13,view: 'text', type: 'string',},
  263. notes: {title: '备注',order: 14,view: 'text', type: 'string',},
  264. }
  265. },
  266. };