SaleContract.data.ts 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. import { BasicColumn } from '/@/components/Table';
  2. import { FormSchema } from '/@/components/Table';
  3. import { JVxeTypes, JVxeColumn } from '/@/components/jeecg/JVxeTable/types';
  4. import { defHttp } from '/@/utils/http/axios';
  5. import { ProjectOption, CustomerOption } from './SaleContract.api';
  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. sorter: true,
  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: '项目(Project)',
  25. align: 'center',
  26. dataIndex: 'quotationProjectName',
  27. },
  28. {
  29. title: '客户(Customer)',
  30. align: 'center',
  31. dataIndex: 'quotationCustomerName',
  32. },
  33. {
  34. title: '优先级(priority)',
  35. align: 'center',
  36. dataIndex: 'priority_dictText',
  37. },
  38. {
  39. title: '产品分类(production class)',
  40. align: 'center',
  41. dataIndex: 'productionClass_dictText',
  42. },
  43. {
  44. title: '机型(model)',
  45. align: 'center',
  46. dataIndex: 'model',
  47. },
  48. {
  49. title: '厂家(maker)',
  50. align: 'center',
  51. dataIndex: 'maker',
  52. },
  53. // {
  54. // title: '业务类型(busyness type)',
  55. // align:"center",
  56. // dataIndex: 'busynessType',
  57. // // width:250,
  58. // },
  59. {
  60. title: '销售部门(sale department)',
  61. align: 'center',
  62. dataIndex: 'saleDepartmentName',
  63. },
  64. {
  65. title: '业务员(salesman)',
  66. align: 'center',
  67. dataIndex: 'saleDepartmentName',
  68. },
  69. {
  70. title: '关闭(close)',
  71. align: 'center',
  72. dataIndex: 'isClose_dictText',
  73. },
  74. {
  75. title: '提交(submit)',
  76. align: 'center',
  77. dataIndex: 'status_dictText',
  78. },
  79. {
  80. title: '版本号',
  81. align: 'center',
  82. dataIndex: 'version',
  83. },
  84. ];
  85. //查询数据
  86. export const searchFormSchema: FormSchema[] = [
  87. {
  88. label: '单据编码(bill code)',
  89. field: 'billCode',
  90. component: 'JInput',
  91. labelWidth: 150,
  92. componentProps: {
  93. AutoComplete: 'off',
  94. },
  95. //colProps: {span: 6},
  96. },
  97. {
  98. label: '单据日期(bill date)',
  99. field: 'billDate',
  100. component: 'RangePicker',
  101. labelWidth: 150,
  102. componentProps: {
  103. valueType: 'Date',
  104. },
  105. //colProps: {span: 6},
  106. },
  107. {
  108. label: '客户(Customer)',
  109. field: 'quotationCustomer',
  110. labelWidth: 150,
  111. component: 'ApiSelect',
  112. componentProps: {
  113. // mode: 'multiple',//multiple: 多选;不填写为单选
  114. //请求api,返回结果{ result: { records: [{'id':'1',name:'scott'},{'id':'2',name:'小张'}] }}
  115. api: CustomerOption,
  116. //数值转成String
  117. numberToString: false,
  118. //标题字段
  119. labelField: 'abbreviation',
  120. //值字段
  121. valueField: 'id',
  122. //请求参数
  123. params: { pageSize: -1 },
  124. //返回结果字段
  125. resultField: 'records',
  126. filterOption: 'true',
  127. showSearch: 'true',
  128. optionFilterProp: 'label',
  129. },
  130. //colProps: {span: 6},
  131. },
  132. {
  133. label: '项目(Project)',
  134. field: 'quotationProject',
  135. labelWidth: 150,
  136. component: 'ApiSelect',
  137. componentProps: {
  138. // mode: 'multiple',//multiple: 多选;不填写为单选
  139. //请求api,返回结果{ result: { records: [{'id':'1',name:'scott'},{'id':'2',name:'小张'}] }}
  140. api: ProjectOption,
  141. //数值转成String
  142. numberToString: false,
  143. //标题字段
  144. labelField: 'name',
  145. //值字段
  146. valueField: 'id',
  147. //请求参数
  148. params: { pageSize: -1 },
  149. //返回结果字段
  150. resultField: 'records',
  151. filterOption: 'true',
  152. showSearch: 'true',
  153. optionFilterProp: 'label',
  154. },
  155. //colProps: {span: 6},
  156. },
  157. {
  158. label: '优先级(priority)',
  159. field: 'priority',
  160. labelWidth: 150,
  161. component: 'JDictSelectTag',
  162. componentProps: {
  163. dictCode: 'priority',
  164. },
  165. //colProps: {span: 6},
  166. },
  167. {
  168. label: '产品分类(production class)',
  169. field: 'productionClass',
  170. labelWidth: 180,
  171. component: 'ApiSelect',
  172. componentProps: {
  173. // mode: 'multiple',//multiple: 多选;不填写为单选
  174. //请求api,返回结果{ result: { records: [{'id':'1',name:'scott'},{'id':'2',name:'小张'}] }}
  175. api: () => defHttp.get({ url: 'baseCode/baseProductClass/list?pageSize=-1' }),
  176. //数值转成String
  177. numberToString: false,
  178. //标题字段
  179. labelField: 'name',
  180. //值字段
  181. valueField: 'id',
  182. //请求参数
  183. params: {},
  184. //返回结果字段
  185. resultField: 'records',
  186. filterOption: 'true',
  187. showSearch: 'true',
  188. optionFilterProp: 'label',
  189. },
  190. //colProps: {span: 6},
  191. },
  192. {
  193. label: '机型(model)',
  194. field: 'model',
  195. labelWidth: 150,
  196. component: 'JDictSelectTag',
  197. componentProps: {
  198. dictCode: 'model_typer',
  199. },
  200. //colProps: {span: 6},
  201. },
  202. {
  203. label: '厂家(maker)',
  204. field: 'maker',
  205. labelWidth: 150,
  206. component: 'JDictSelectTag',
  207. componentProps: {
  208. dictCode: 'factory',
  209. },
  210. //colProps: {span: 6},
  211. },
  212. {
  213. label: '提交(submit)',
  214. field: 'status',
  215. labelWidth: 150,
  216. component: 'JDictSelectTag',
  217. componentProps: {
  218. dictCode: 'yes_or_no',
  219. },
  220. //colProps: {span: 6},
  221. },
  222. {
  223. label: '关闭(close)',
  224. field: 'isClose',
  225. labelWidth: 150,
  226. component: 'JDictSelectTag',
  227. componentProps: {
  228. dictCode: 'yes_or_no',
  229. },
  230. //colProps: {span: 6},
  231. },
  232. ];
  233. //表单数据
  234. export const formSchema: FormSchema[] = [
  235. {
  236. label: '合同编号(bill code)',
  237. field: 'billCode',
  238. labelWidth: 200,
  239. component: 'Input',
  240. dynamicDisabled: true,
  241. componentProps: {
  242. placeholder: '自动生成',
  243. },
  244. },
  245. {
  246. label: '单据日期(bill date)',
  247. field: 'billDate',
  248. component: 'DatePicker',
  249. componentProps: {
  250. valueFormat: 'YYYY-MM-DD',
  251. },
  252. dynamicDisabled: true,
  253. labelWidth: 200,
  254. },
  255. {
  256. label: '报价项目(quotation project)',
  257. labelWidth: 200,
  258. field: 'quotationProjectName',
  259. component: 'InputSearch',
  260. slot: 'quotationProjectName',
  261. dynamicRules: ({ model, schema }) => {
  262. return [{ required: true, message: '请输入报价项目名称!' }];
  263. },
  264. },
  265. {
  266. label: '客户(customer)',
  267. labelWidth: 200,
  268. field: 'quotationCustomerName',
  269. component: 'Input',
  270. dynamicDisabled: true,
  271. componentProps: {
  272. AutoComplete: 'off',
  273. },
  274. },
  275. {
  276. label: '业务类型(busyness type)',
  277. labelWidth: 200,
  278. field: 'busynessType',
  279. component: 'JDictSelectTag',
  280. componentProps: {
  281. dictCode: 'busyness_type',
  282. },
  283. },
  284. {
  285. label: '优先级(priority)',
  286. labelWidth: 200,
  287. field: 'priority',
  288. component: 'JDictSelectTag',
  289. componentProps: {
  290. dictCode: 'priority',
  291. },
  292. },
  293. {
  294. label: '产品分类(production class)',
  295. labelWidth: 200,
  296. field: 'productionClass',
  297. component: 'ApiSelect',
  298. componentProps: {
  299. // mode: 'multiple',//multiple: 多选;不填写为单选
  300. //请求api,返回结果{ result: { records: [{'id':'1',name:'scott'},{'id':'2',name:'小张'}] }}
  301. api: () => defHttp.get({ url: 'baseCode/baseProductClass/list?pageSize=-1' }),
  302. //数值转成String
  303. numberToString: false,
  304. //标题字段
  305. labelField: 'name',
  306. //值字段
  307. valueField: 'id',
  308. //请求参数
  309. params: {},
  310. //返回结果字段
  311. resultField: 'records',
  312. filterOption: 'true',
  313. showSearch: 'true',
  314. optionFilterProp: 'label',
  315. },
  316. },
  317. {
  318. label: '机型(model)',
  319. field: 'model',
  320. labelWidth: 200,
  321. component: 'JDictSelectTag',
  322. componentProps: {
  323. dictCode: 'model_typer',
  324. },
  325. },
  326. {
  327. label: '厂家(maker)',
  328. labelWidth: 200,
  329. field: 'maker',
  330. component: 'JDictSelectTag',
  331. componentProps: {
  332. dictCode: 'factory',
  333. },
  334. },
  335. {
  336. label: '币种(currency)',
  337. labelWidth: 200,
  338. field: 'currency',
  339. component: 'JDictSelectTag',
  340. dynamicDisabled: true,
  341. dynamicRules: ({ model, schema }) => {
  342. return [{ required: true, message: '请输入币种!' }];
  343. },
  344. componentProps: {
  345. dictCode: 'currency',
  346. },
  347. },
  348. {
  349. label: '交货条款(delivery terms)',
  350. labelWidth: 200,
  351. field: 'deliveryTerms',
  352. component: 'JDictSelectTag',
  353. componentProps: {
  354. dictCode: 'delivery_terms',
  355. },
  356. },
  357. {
  358. label: '付款条件(payment terms)',
  359. field: 'paymentTerms',
  360. labelWidth: 200,
  361. component: 'JDictSelectTag',
  362. componentProps: {
  363. dictCode: 'payment_terms',
  364. },
  365. },
  366. {
  367. label: '付款条件2',
  368. field: 'paymentInfo',
  369. labelWidth: 200,
  370. component: 'Input',
  371. componentProps: {
  372. AutoComplete: 'off',
  373. },
  374. },
  375. {
  376. label: '销售部门(sale department)',
  377. field: 'saleDepartmentName',
  378. labelWidth: 200,
  379. component: 'Input',
  380. dynamicDisabled: true,
  381. componentProps: {},
  382. },
  383. {
  384. label: '',
  385. field: 'saleDepartment',
  386. component: 'Input',
  387. show: false,
  388. },
  389. {
  390. label: '业务员(salesman)',
  391. field: 'salesmanName',
  392. labelWidth: 200,
  393. component: 'Input',
  394. dynamicDisabled: true,
  395. componentProps: {},
  396. },
  397. {
  398. label: '',
  399. field: 'salesman',
  400. component: 'Input',
  401. show: false,
  402. },
  403. {
  404. label: '汇率(exchange rate)',
  405. field: 'exchangeRate',
  406. labelWidth: 200,
  407. component: 'Input',
  408. dynamicDisabled: true,
  409. componentProps: {
  410. AutoComplete: 'off',
  411. },
  412. },
  413. {
  414. label: '备注(notes)',
  415. field: 'notes',
  416. labelWidth: 200,
  417. component: 'Input',
  418. componentProps: {
  419. AutoComplete: 'off',
  420. },
  421. },
  422. {
  423. label: '附件(attachs)',
  424. field: 'attachs',
  425. labelWidth: 200,
  426. component: 'JUpload',
  427. },
  428. {
  429. label: '',
  430. field: 'id',
  431. component: 'Input',
  432. show: false,
  433. },
  434. {
  435. label: '',
  436. field: 'quotationCustomer',
  437. component: 'Input',
  438. show: false,
  439. },
  440. {
  441. label: '',
  442. field: 'quotationProject',
  443. component: 'Input',
  444. show: false,
  445. },
  446. {
  447. label: '',
  448. field: 'status',
  449. component: 'Input',
  450. show: false,
  451. },
  452. {
  453. label: '',
  454. field: 'sourceCode',
  455. component: 'Input',
  456. show: false,
  457. },
  458. ];
  459. //子表单数据
  460. //子表表格配置
  461. export const saleContractShipColumns: JVxeColumn[] = [
  462. {
  463. title: '船名(ship name)',
  464. key: 'shipName',
  465. type: JVxeTypes.normal,
  466. placeholder: '请输入${title}',
  467. defaultValue: '',
  468. },
  469. {
  470. title: '主机号(hostN number)',
  471. key: 'hostNumber',
  472. type: JVxeTypes.input,
  473. placeholder: '请输入${title}',
  474. defaultValue: '',
  475. },
  476. {
  477. title: '工程编号(project No)',
  478. key: 'projectNo',
  479. type: JVxeTypes.input,
  480. placeholder: '请输入${title}',
  481. defaultValue: '',
  482. },
  483. {
  484. title: '船厂(ship factory)',
  485. key: 'shipFactory',
  486. type: JVxeTypes.normal,
  487. width: '200px',
  488. placeholder: '请输入${title}',
  489. defaultValue: '',
  490. },
  491. {
  492. title: '船东(shipowner)',
  493. key: 'shipowner',
  494. type: JVxeTypes.normal,
  495. placeholder: '请输入${title}',
  496. defaultValue: '',
  497. },
  498. {
  499. title: '操作(operation)',
  500. key: 'action',
  501. width: '400px',
  502. // 固定在右侧
  503. fixed: 'right',
  504. // 对齐方式为居中
  505. align: 'center',
  506. // 组件类型定义为【插槽】
  507. type: JVxeTypes.slot,
  508. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  509. slotName: 'action',
  510. },
  511. ];
  512. export const saleContractProductColumns: JVxeColumn[] = [
  513. {
  514. title: '交期(delivery time)',
  515. key: 'deliveryTime',
  516. type: JVxeTypes.date,
  517. width: '200px',
  518. placeholder: '请输入${title}',
  519. defaultValue: '',
  520. },
  521. {
  522. title: '产品分类(product class)',
  523. key: 'productClass',
  524. type: JVxeTypes.normal,
  525. width: '200px',
  526. placeholder: '请输入${title}',
  527. defaultValue: '',
  528. },
  529. {
  530. title: '产品编码(product code)',
  531. key: 'productCode',
  532. type: JVxeTypes.normal,
  533. width: '200px',
  534. placeholder: '请输入${title}',
  535. defaultValue: '',
  536. },
  537. {
  538. title: '产品中文名chinese name)',
  539. key: 'chineseName',
  540. type: JVxeTypes.normal,
  541. width: '200px',
  542. placeholder: '请输入${title}',
  543. defaultValue: '',
  544. },
  545. {
  546. title: '产品英文名(english name)',
  547. key: 'englishName',
  548. type: JVxeTypes.normal,
  549. width: '200px',
  550. placeholder: '请输入${title}',
  551. defaultValue: '',
  552. },
  553. {
  554. title: '型号(model)',
  555. key: 'model',
  556. type: JVxeTypes.normal,
  557. width: '200px',
  558. placeholder: '请输入${title}',
  559. defaultValue: '',
  560. },
  561. {
  562. title: '备件号(partno)',
  563. key: 'partno',
  564. type: JVxeTypes.normal,
  565. width: '200px',
  566. placeholder: '请输入${title}',
  567. defaultValue: '',
  568. },
  569. {
  570. title: '图号(drawingno)',
  571. key: 'drawingno',
  572. type: JVxeTypes.normal,
  573. width: '200px',
  574. placeholder: '请输入${title}',
  575. defaultValue: '',
  576. },
  577. {
  578. title: '订货号(orderno)',
  579. key: 'orderno',
  580. type: JVxeTypes.normal,
  581. width: '200px',
  582. placeholder: '请输入${title}',
  583. defaultValue: '',
  584. },
  585. // {
  586. // title: '厂家(factory)',
  587. // key: 'factory',
  588. // type: JVxeTypes.normal,
  589. // width: '200px',
  590. // placeholder: '请输入${title}',
  591. // defaultValue: '',
  592. // },
  593. {
  594. title: '质量等级(quality grade)',
  595. key: 'qualityGrade',
  596. type: JVxeTypes.normal,
  597. width: '200px',
  598. placeholder: '请输入${title}',
  599. defaultValue: '',
  600. },
  601. {
  602. title: '数量(quantity)',
  603. key: 'quantity',
  604. type: JVxeTypes.normal,
  605. width: '200px',
  606. placeholder: '请输入${title}',
  607. defaultValue: '',
  608. },
  609. {
  610. title: '税率(tax rate)',
  611. key: 'taxRate',
  612. type: JVxeTypes.normal,
  613. width: '200px',
  614. placeholder: '请输入${title}',
  615. defaultValue: '',
  616. },
  617. {
  618. title: '折扣(discount)',
  619. key: 'discount',
  620. type: JVxeTypes.normal,
  621. width: '200px',
  622. placeholder: '请输入${title}',
  623. defaultValue: '',
  624. },
  625. {
  626. title: '单价(price)',
  627. key: 'taxPrice',
  628. type: JVxeTypes.normal,
  629. width: '200px',
  630. placeholder: '请输入${title}',
  631. defaultValue: '',
  632. },
  633. {
  634. title: '金额(amount)',
  635. key: 'taxAmount',
  636. type: JVxeTypes.normal,
  637. width: '200px',
  638. placeholder: '请输入${title}',
  639. defaultValue: '',
  640. },
  641. {
  642. title: '备注(notes)',
  643. key: 'notes',
  644. type: JVxeTypes.input,
  645. width: '200px',
  646. placeholder: '请输入${title}',
  647. defaultValue: '',
  648. },
  649. {
  650. title: '操作(operation)',
  651. key: 'action',
  652. width: '200px',
  653. // 固定在右侧
  654. fixed: 'right',
  655. // 对齐方式为居中
  656. align: 'center',
  657. // 组件类型定义为【插槽】
  658. type: JVxeTypes.slot,
  659. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  660. slotName: 'action',
  661. },
  662. ];
  663. // 高级查询数据
  664. export const superQuerySchema = {
  665. hisId: { title: '历史主键', order: 0, view: 'text', type: 'string' },
  666. status: { title: '状态(1-已提交,0-未提交)', order: 1, view: 'number', type: 'number' },
  667. billDate: { title: '单据日期', order: 2, view: 'date', type: 'string' },
  668. billCode: { title: '单据编码', order: 3, view: 'text', type: 'string' },
  669. quotationProject: { title: '报价项目', order: 4, view: 'text', type: 'string' },
  670. quotationProjectName: { title: '报价项目名称', order: 5, view: 'text', type: 'string' },
  671. quotationCustomer: { title: '报价客户', order: 6, view: 'text', type: 'string' },
  672. quotationCustomerName: { title: '报价客户名称', order: 7, view: 'text', type: 'string' },
  673. busynessType: { title: '业务类型(busyness type)', order: 8, view: 'text', type: 'string' },
  674. priority: { title: '优先级(priority)', order: 9, view: 'text', type: 'string' },
  675. productionClass: { title: '产品分类(production class)', order: 10, view: 'text', type: 'string' },
  676. model: { title: '机型(model)', order: 11, view: 'text', type: 'string' },
  677. maker: { title: '厂家(maker)', order: 12, view: 'text', type: 'string' },
  678. currency: { title: '币种(currency)', order: 13, view: 'text', type: 'string' },
  679. deliveryTerms: { title: '交货条款(delivery terms)', order: 14, view: 'text', type: 'string' },
  680. paymentTerms: { title: '付款条件(payment terms)', order: 15, view: 'text', type: 'string' },
  681. paymentInfo: { title: '付款条件2', order: 16, view: 'text', type: 'string' },
  682. saleDepartment: { title: '销售部门(sale department)', order: 17, view: 'sel_depart', type: 'string' },
  683. salesman: { title: '业务员(salesman)', order: 18, view: 'sel_user', type: 'string' },
  684. exchangeRate: { title: '汇率(exchange rate)', order: 19, view: 'text', type: 'string' },
  685. notes: { title: '备注(notes)', order: 20, view: 'text', type: 'string' },
  686. attachs: { title: '附件(attachs)', order: 21, view: 'text', type: 'string' },
  687. version: { title: '版本号', order: 22, view: 'text', type: 'string' },
  688. isClose: { title: '关闭(1-是,0-否)', order: 23, view: 'number', type: 'number' },
  689. //子表高级查询
  690. saleContractShip: {
  691. title: '销售合同-船明细',
  692. view: 'table',
  693. fields: {
  694. status: { title: '状态(1-启用,0-停用)', order: 0, view: 'number', type: 'number' },
  695. headId: { title: '表头主键(销售合同)', order: 2, view: 'text', type: 'string' },
  696. shipId: { title: '船id', order: 3, view: 'text', type: 'string' },
  697. shipName: { title: '船名', order: 4, view: 'text', type: 'string' },
  698. hostNumber: { title: '主机号', order: 5, view: 'text', type: 'string' },
  699. projectNo: { title: '工程编号', order: 6, view: 'text', type: 'string' },
  700. shipFactory: { title: '船厂', order: 7, view: 'text', type: 'string' },
  701. shipowner: { title: '船东', order: 8, view: 'text', type: 'string' },
  702. },
  703. },
  704. saleContractProduct: {
  705. title: '销售合同-产品明细',
  706. view: 'table',
  707. fields: {
  708. status: { title: '状态(1-启用,0-停用)', order: 0, view: 'number', type: 'number' },
  709. headId: { title: '表头主键(销售报价单)', order: 2, view: 'text', type: 'string' },
  710. deliveryTime: { title: '交期', order: 3, view: 'datetime', type: 'string' },
  711. productId: { title: '产品id', order: 4, view: 'text', type: 'string' },
  712. productClass: { title: '产品分类', order: 5, view: 'text', type: 'string' },
  713. productCode: { title: '产品编码', order: 6, view: 'text', type: 'string' },
  714. chineseName: { title: '产品中文名', order: 7, view: 'text', type: 'string' },
  715. englishName: { title: '产品英文名', order: 8, view: 'text', type: 'string' },
  716. specifications: { title: '规格', order: 9, view: 'text', type: 'string' },
  717. model: { title: '型号', order: 10, view: 'text', type: 'string' },
  718. partno: { title: '备件号', order: 11, view: 'text', type: 'string' },
  719. drawingno: { title: '图号', order: 12, view: 'text', type: 'string' },
  720. orderno: { title: '订货号', order: 13, view: 'text', type: 'string' },
  721. factory: { title: '厂家', order: 14, view: 'text', type: 'string' },
  722. qualityGrade: { title: '质量等级', order: 15, view: 'text', type: 'string' },
  723. quantity: { title: '数量', order: 16, view: 'number', type: 'number' },
  724. unit: { title: '单位', order: 17, view: 'text', type: 'string' },
  725. taxRate: { title: '税率(tax rate)', order: 18, view: 'number', type: 'number' },
  726. discount: { title: '折扣(discount)', order: 19, view: 'text', type: 'string' },
  727. taxPrice: { title: '单价(price)', order: 20, view: 'number', type: 'number' },
  728. taxAmount: { title: '金额(amount)', order: 21, view: 'number', type: 'number' },
  729. notes: { title: '备注(notes)', order: 22, view: 'text', type: 'string' },
  730. },
  731. },
  732. };
  733. /**
  734. * 流程表单调用这个方法获取formSchema
  735. * @param param
  736. */
  737. export function getBpmFormSchema(_formData): FormSchema[] {
  738. // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
  739. return formSchema;
  740. }