CuspSupplierProfile.data.ts 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  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 { defHttp } from '/@/utils/http/axios';
  7. import { getWeekMonthQuarterYear } from '/@/utils';
  8. import { uploadUrl } from '/@/api/common/api';
  9. //列表数据
  10. export const columns: BasicColumn[] = [
  11. {
  12. title: '编码(code)',
  13. align: 'center',
  14. dataIndex: 'code',
  15. },
  16. {
  17. title: '名称(name)',
  18. align: 'center',
  19. dataIndex: 'name',
  20. width: 350,
  21. },
  22. {
  23. title: '简称(abbreviation)',
  24. align: 'center',
  25. dataIndex: 'abbreviation',
  26. },
  27. {
  28. title: '供应商性质(supplier nature)',
  29. align: 'center',
  30. dataIndex: 'supplierNature_dictText',
  31. width: 200,
  32. },
  33. {
  34. title: '税号(duty paragraph)',
  35. align: 'center',
  36. dataIndex: 'dutyParagraph',
  37. width: 200,
  38. },
  39. {
  40. title: '法人(legal person)',
  41. align: 'center',
  42. dataIndex: 'legalPerson',
  43. },
  44. {
  45. title: '联系人(contacts)',
  46. align: 'center',
  47. dataIndex: 'contacts',
  48. },
  49. {
  50. title: '联系电话(phone)',
  51. align: 'center',
  52. dataIndex: 'phone',
  53. },
  54. {
  55. title: '国家(country)',
  56. align: 'center',
  57. dataIndex: 'country',
  58. },
  59. {
  60. title: '币种(currency)',
  61. align: 'center',
  62. dataIndex: 'currency_dictText',
  63. },
  64. {
  65. title: '付款条件(payment terms)',
  66. align: 'center',
  67. dataIndex: 'paymentTerms_dictText',
  68. width: 200,
  69. },
  70. {
  71. title: '原厂(original factory)',
  72. align: 'center',
  73. dataIndex: 'originalFactory_dictText',
  74. width: 180,
  75. },
  76. {
  77. title: '隶属部门(Subordinate)',
  78. align: 'center',
  79. dataIndex: 'subordinateDepart_dictText',
  80. },
  81. {
  82. title: '状态(status)',
  83. align: 'center',
  84. dataIndex: 'status_dictText',
  85. },
  86. {
  87. title: '考评等级(evaluation level)',
  88. align: 'center',
  89. dataIndex: 'evaluationLevel_dictText',
  90. width: 200,
  91. },
  92. {
  93. title: '临时供应商(temporary supplier)',
  94. align: 'center',
  95. dataIndex: 'temporarySupplier',
  96. width: 300,
  97. customRender: function (t, r, index) {
  98. if (t.text == 1) {
  99. return '申请中(application in progress)';
  100. } else if (t.text == 0) {
  101. return '是(yes)';
  102. } else if (t.text == 2) {
  103. return '否';
  104. }
  105. },
  106. },
  107. {
  108. title: '修改人',
  109. key: 'updateBy',
  110. dataIndex: 'updateBy',
  111. align: 'center',
  112. },
  113. {
  114. title: '修改时间',
  115. key: 'updateTime',
  116. dataIndex: 'updateTime',
  117. align: 'center',
  118. },
  119. ];
  120. //查询数据
  121. export const searchFormSchema: FormSchema[] = [
  122. {
  123. label: '编码(code)',
  124. field: 'code',
  125. component: 'JInput',
  126. labelWidth: 150,
  127. componentProps: {
  128. AutoComplete: 'off',
  129. },
  130. //colProps: {span: 6},
  131. },
  132. {
  133. label: '名称(name)',
  134. field: 'name',
  135. component: 'JInput',
  136. labelWidth: 150,
  137. componentProps: {
  138. AutoComplete: 'off',
  139. },
  140. //colProps: {span: 6},
  141. },
  142. {
  143. label: '简称(abbreviation)',
  144. field: 'abbreviation',
  145. component: 'JInput',
  146. labelWidth: 180,
  147. //colProps: {span: 6},
  148. },
  149. {
  150. label: '税号(dutyParagraph)',
  151. field: 'dutyParagraph',
  152. component: 'JInput',
  153. labelWidth: 150,
  154. //colProps: {span: 6},
  155. },
  156. {
  157. label: '联系人(contacts)',
  158. field: 'contacts',
  159. component: 'JInput',
  160. labelWidth: 150,
  161. //colProps: {span: 6},
  162. },
  163. {
  164. label: '联系电话(phone)',
  165. field: 'phone',
  166. component: 'JInput',
  167. labelWidth: 150,
  168. //colProps: {span: 6},
  169. },
  170. {
  171. label: '付款条件(payment terms)',
  172. field: 'paymentTerms',
  173. component: 'JDictSelectTag',
  174. // component: 'JSelectMultiple',
  175. labelWidth: 180,
  176. componentProps: {
  177. dictCode: 'payment_terms',
  178. },
  179. //colProps: {span: 6},
  180. },
  181. {
  182. label: '国家(country)',
  183. field: 'country',
  184. component: 'JDictSelectTag',
  185. labelWidth: 150,
  186. componentProps: {
  187. dictCode: 'country',
  188. showSearch: true,
  189. },
  190. //colProps: {span: 6},
  191. },
  192. {
  193. label: '考评评级(evaluation level)',
  194. field: 'evaluationLevel',
  195. component: 'JDictSelectTag',
  196. labelWidth: 180,
  197. componentProps: {
  198. dictCode: 'grade',
  199. },
  200. //colProps: {span: 6},
  201. },
  202. {
  203. label: '原厂(original factory)',
  204. field: 'originalFactory',
  205. component: 'JDictSelectTag',
  206. labelWidth: 150,
  207. componentProps: {
  208. dictCode: 'yes_or_no',
  209. },
  210. //colProps: {span: 6},
  211. },
  212. {
  213. label: '供应商性质(supplier nature)',
  214. field: 'supplierNature',
  215. component: 'JDictSelectTag',
  216. labelWidth: 180,
  217. componentProps: {
  218. dictCode: 'supplier_nature',
  219. },
  220. //colProps: {span: 6},
  221. },
  222. {
  223. label: '状态(status)',
  224. field: 'status',
  225. labelWidth: 150,
  226. component: 'JDictSelectTag',
  227. componentProps: {
  228. dictCode: 'valid_status',
  229. },
  230. //colProps: {span: 6},
  231. },
  232. {
  233. label: '临时供应商(temporary supplier)',
  234. field: 'temporarySupplier',
  235. component: 'JDictSelectTag',
  236. labelWidth: 210,
  237. componentProps: {
  238. dictCode: 'should_apply',
  239. },
  240. //colProps: {span: 6},
  241. },
  242. ];
  243. //表单数据
  244. export const formSchema: FormSchema[] = [
  245. {
  246. label: '编码(code)',
  247. field: 'code',
  248. component: 'Input',
  249. labelWidth: 200,
  250. colProps: { span: 12 },
  251. componentProps: {
  252. placeholder: '自动生成',
  253. },
  254. dynamicDisabled: true,
  255. },
  256. {
  257. label: '名称(name)',
  258. field: 'name',
  259. colProps: { span: 12 },
  260. component: 'Input',
  261. labelWidth: 200,
  262. required: true,
  263. componentProps: ({ formModel }) => {
  264. return {
  265. AutoComplete: 'off',
  266. onblur: ({ currentTarget }) => {
  267. const stringLog = currentTarget.value;
  268. let newString = '';
  269. for (let i = 0; i < stringLog.length; i++) {
  270. if (/^[A-Za-z]$/.test(stringLog[i]) && /^[a-z]$/.test(stringLog[i])) {
  271. newString = newString + stringLog[i].toUpperCase();
  272. } else {
  273. newString = newString + stringLog[i];
  274. }
  275. }
  276. formModel.name = newString;
  277. },
  278. };
  279. },
  280. },
  281. {
  282. label: '简称(abbreviation)',
  283. field: 'abbreviation',
  284. colProps: { span: 12 },
  285. labelWidth: 200,
  286. component: 'Input',
  287. componentProps: ({ formModel }) => {
  288. return {
  289. AutoComplete: 'off',
  290. onblur: ({ currentTarget }) => {
  291. const stringLog = currentTarget.value;
  292. let newString = '';
  293. for (let i = 0; i < stringLog.length; i++) {
  294. if (/^[A-Za-z]$/.test(stringLog[i]) && /^[a-z]$/.test(stringLog[i])) {
  295. newString = newString + stringLog[i].toUpperCase();
  296. } else {
  297. newString = newString + stringLog[i];
  298. }
  299. }
  300. formModel.abbreviation = newString;
  301. },
  302. };
  303. },
  304. },
  305. {
  306. label: '曾用名(name used before)',
  307. field: 'nameUsedBefore',
  308. colProps: { span: 12 },
  309. component: 'Input',
  310. labelWidth: 200,
  311. componentProps: {
  312. AutoComplete: 'off',
  313. },
  314. },
  315. {
  316. label: '税号(duty paragraph)',
  317. field: 'dutyParagraph',
  318. colProps: { span: 12 },
  319. labelWidth: 200,
  320. component: 'Input',
  321. componentProps: {
  322. AutoComplete: 'off',
  323. },
  324. },
  325. {
  326. label: '法人(legal person)',
  327. field: 'legalPerson',
  328. colProps: { span: 12 },
  329. component: 'Input',
  330. labelWidth: 200,
  331. componentProps: {
  332. AutoComplete: 'off',
  333. },
  334. },
  335. {
  336. label: '联系人(contacts)',
  337. field: 'contacts',
  338. colProps: { span: 12 },
  339. labelWidth: 200,
  340. component: 'Input',
  341. componentProps: {
  342. AutoComplete: 'off',
  343. },
  344. },
  345. {
  346. label: '联系电话(phone)',
  347. field: 'phone',
  348. colProps: { span: 12 },
  349. component: 'Input',
  350. labelWidth: 200,
  351. componentProps: {
  352. AutoComplete: 'off',
  353. },
  354. },
  355. {
  356. label: '邮箱(email)',
  357. field: 'email',
  358. colProps: { span: 12 },
  359. labelWidth: 200,
  360. component: 'Input',
  361. componentProps: {
  362. AutoComplete: 'off',
  363. },
  364. },
  365. {
  366. label: '注册地址(register address)',
  367. field: 'registerAddress',
  368. colProps: { span: 12 },
  369. component: 'Input',
  370. labelWidth: 200,
  371. componentProps: {
  372. AutoComplete: 'off',
  373. },
  374. },
  375. {
  376. label: '公司地址(address)',
  377. field: 'address',
  378. colProps: { span: 12 },
  379. labelWidth: 200,
  380. component: 'Input',
  381. componentProps: {
  382. AutoComplete: 'off',
  383. },
  384. },
  385. {
  386. label: '供应商性质(supplier nature)',
  387. field: 'supplierNature',
  388. colProps: { span: 12 },
  389. labelWidth: 200,
  390. component: 'JDictSelectTag',
  391. componentProps: {
  392. dictCode: 'supplier_nature',
  393. },
  394. },
  395. {
  396. label: '国家(country)',
  397. field: 'country',
  398. colProps: { span: 12 },
  399. labelWidth: 200,
  400. component: 'JDictSelectTag',
  401. componentProps: {
  402. dictCode: 'country',
  403. },
  404. },
  405. {
  406. label: '国外供应商(abroad supplier)',
  407. field: 'abroadSupplier',
  408. colProps: { span: 12 },
  409. component: 'JDictSelectTag',
  410. componentProps: {
  411. dictCode: 'yes_or_no',
  412. stringToNumber: true,
  413. },
  414. labelWidth: 200,
  415. },
  416. {
  417. label: '币种(currency)',
  418. field: 'currency',
  419. colProps: { span: 12 },
  420. labelWidth: 200,
  421. component: 'JDictSelectTag',
  422. componentProps: {
  423. dictCode: 'currency ',
  424. },
  425. },
  426. {
  427. label: '原厂(original factory)',
  428. field: 'originalFactory',
  429. colProps: { span: 12 },
  430. labelWidth: 200,
  431. component: 'JDictSelectTag',
  432. componentProps: {
  433. dictCode: 'yes_or_no',
  434. stringToNumber: true,
  435. },
  436. },
  437. {
  438. label: '开户行(opening bank)',
  439. field: 'openingBank',
  440. labelWidth: 200,
  441. colProps: { span: 12 },
  442. component: 'Input',
  443. componentProps: {
  444. AutoComplete: 'off',
  445. },
  446. },
  447. {
  448. label: '付款条件(payment terms)',
  449. field: 'paymentTerms',
  450. colProps: { span: 12 },
  451. labelWidth: 200,
  452. component: 'JDictSelectTag',
  453. componentProps: {
  454. dictCode: 'supplier_payment_terms',
  455. },
  456. },
  457. {
  458. label: '户名(opening name)',
  459. field: 'openingName',
  460. colProps: { span: 12 },
  461. labelWidth: 200,
  462. component: 'Input',
  463. componentProps: {
  464. AutoComplete: 'off',
  465. },
  466. },
  467. {
  468. label: '银行代码(swift code)',
  469. field: 'swiftCode',
  470. labelWidth: 200,
  471. colProps: { span: 12 },
  472. component: 'Input',
  473. componentProps: {
  474. AutoComplete: 'off',
  475. },
  476. },
  477. {
  478. label: '银行帐号(bank account)',
  479. field: 'bankAccount',
  480. colProps: { span: 12 },
  481. labelWidth: 200,
  482. component: 'Input',
  483. componentProps: {
  484. AutoComplete: 'off',
  485. },
  486. },
  487. {
  488. label: '状态(status)',
  489. field: 'status',
  490. colProps: { span: 12 },
  491. labelWidth: 200,
  492. component: 'JDictSelectTag',
  493. defaultValue: 1,
  494. componentProps: {
  495. dictCode: 'valid_status',
  496. stringToNumber: true,
  497. },
  498. },
  499. {
  500. label: '营业执照(business license)',
  501. field: 'businessLicense',
  502. colProps: { span: 6 },
  503. labelWidth: 200,
  504. component: 'JUpload',
  505. componentProps: {
  506. //是否显示选择按钮
  507. text: '上传',
  508. //最大上传数
  509. maxCount: 1,
  510. //是否显示下载按钮
  511. download: true,
  512. },
  513. },
  514. {
  515. label: '其他文件(other files)',
  516. field: 'otherFiles',
  517. colProps: { span: 6 },
  518. labelWidth: 200,
  519. component: 'JUpload',
  520. },
  521. {
  522. label: '隶属部门(subordinate)',
  523. field: 'subordinateDepart',
  524. colProps: { span: 12 },
  525. labelWidth: 200,
  526. component: 'ApiSelect',
  527. componentProps: {
  528. mode: 'multiple',//multiple: 多选;不填写为单选
  529. //请求api,返回结果{ result: { records: [{'id':'1',name:'scott'},{'id':'2',name:'小张'}] }}
  530. api: () => defHttp.get({ url: '/sys/sysDepart/listAll',params:{pageSize: -1}}),
  531. //数值转成String
  532. numberToString: false,
  533. //标题字段
  534. labelField: 'departName',
  535. //值字段
  536. valueField: 'id',
  537. //请求参数
  538. params: { pageSize: -1, status: 1 },
  539. //返回结果字段
  540. resultField: 'records',
  541. filterOption: 'true',
  542. optionFilterProp: 'label',
  543. showSearch: 'true',
  544. },
  545. },
  546. // {
  547. // label: '隶属部门(subordinate)',
  548. // field: 'subordinateDepart',
  549. // component: 'JSelectDept',colProps: { span: 12 },
  550. // labelWidth: 200,
  551. // componentProps: ({ formActionType, formModel }) => {
  552. // return {
  553. // // sync: false,
  554. // // checkStrictly: true,
  555. // defaultExpandLevel: 2,
  556. // // onSelect: (options, values) => {
  557. // // const { updateSchema } = formActionType;
  558. // // //所属部门修改后更新负责部门下拉框数据
  559. // // updateSchema([
  560. // // {
  561. // // field: 'departIds',
  562. // // componentProps: { options },
  563. // // },
  564. // // ]);
  565. // // //update-begin---author:wangshuai---date:2024-05-11---for:【issues/1222】用户编辑界面“所属部门”与“负责部门”联动出错整---
  566. // // if(!values){
  567. // // formModel.departIds = [];
  568. // // return;
  569. // // }
  570. // // //update-end---author:wangshuai---date:2024-05-11---for:【issues/1222】用户编辑界面“所属部门”与“负责部门”联动出错整---
  571. // // //所属部门修改后更新负责部门数据
  572. // // formModel.departIds && (formModel.departIds = formModel.departIds.filter((item) => values.value.indexOf(item) > -1));
  573. // // },
  574. // };
  575. // },
  576. // },
  577. {
  578. label: '备注(notes)',
  579. field: 'notes',
  580. colProps: { span: 24 },
  581. labelWidth: 200,
  582. component: 'Input',
  583. componentProps: {
  584. AutoComplete: 'off',
  585. },
  586. },
  587. // TODO 主键隐藏字段,目前写死为ID
  588. {
  589. label: '',
  590. field: 'id',
  591. component: 'Input',
  592. show: false,
  593. },
  594. ];
  595. //子表单数据
  596. //子表表格配置
  597. export const cuspSupplierProfileManColumns: JVxeColumn[] = [
  598. {
  599. title: '姓名(name)',
  600. key: 'name',
  601. type: JVxeTypes.input,
  602. placeholder: '请输入${title}',
  603. defaultValue: '',
  604. },
  605. {
  606. title: '电话(mobile)',
  607. key: 'mobile',
  608. type: JVxeTypes.input,
  609. placeholder: '请输入${title}',
  610. defaultValue: '',
  611. },
  612. {
  613. title: '邮箱(email)',
  614. key: 'email',
  615. type: JVxeTypes.input,
  616. placeholder: '请输入${title}',
  617. defaultValue: '',
  618. },
  619. {
  620. title: '职位(position)',
  621. key: 'position',
  622. type: JVxeTypes.input,
  623. placeholder: '请输入${title}',
  624. defaultValue: '',
  625. },
  626. {
  627. title: '备注(notes)',
  628. key: 'notes',
  629. type: JVxeTypes.input,
  630. placeholder: '请输入${title}',
  631. defaultValue: '',
  632. },
  633. {
  634. title: '操作(operation)',
  635. key: 'action',
  636. width: '200px',
  637. // 固定在右侧
  638. fixed: 'right',
  639. // 对齐方式为居中
  640. align: 'center',
  641. // 组件类型定义为【插槽】
  642. type: JVxeTypes.slot,
  643. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  644. slotName: 'action',
  645. },
  646. ];
  647. export const cuspSupplierProfileQualificationColumns: JVxeColumn[] = [
  648. {
  649. title: '资质证书名称(qualification certificate name)',
  650. key: 'qualificationCertificateName',
  651. type: JVxeTypes.input,
  652. placeholder: '请输入${title}',
  653. defaultValue: '',
  654. },
  655. {
  656. title: '有效期始(valid begin)',
  657. key: 'validBegin',
  658. type: JVxeTypes.date,
  659. width: '200px',
  660. placeholder: '请输入${title}',
  661. defaultValue: '',
  662. },
  663. {
  664. title: '有效期止(valid end)',
  665. key: 'validEnd',
  666. // type: JVxeTypes.datetime,
  667. type: JVxeTypes.date,
  668. width: '200px',
  669. placeholder: '请输入${title}',
  670. defaultValue: '',
  671. },
  672. {
  673. title: '资质证书附件(qualification certificate)',
  674. key: 'qualificationCertificate',
  675. type: JVxeTypes.upload,
  676. btnText: '点击上传',
  677. token: true,
  678. responseName: 'message',
  679. action: uploadUrl,
  680. },
  681. {
  682. title: '临期提醒',
  683. key: 'deadlineReminder',
  684. type: JVxeTypes.select,
  685. options: [],
  686. dictCode: 'yes_or_no',
  687. stringToNumber: true,
  688. placeholder: '请选择',
  689. },
  690. {
  691. title: '是否有ISO资质',
  692. key: 'isIos',
  693. type: JVxeTypes.select,
  694. options: [],
  695. dictCode: 'yes_or_no',
  696. stringToNumber: true,
  697. placeholder: '请选择',
  698. },
  699. {
  700. title: '操作(operation)',
  701. key: 'action',
  702. width: '200px',
  703. // 固定在右侧
  704. fixed: 'right',
  705. // 对齐方式为居中
  706. align: 'center',
  707. // 组件类型定义为【插槽】
  708. type: JVxeTypes.slot,
  709. // slot 的名称,对应 v-slot 冒号后面和等号前面的内容
  710. slotName: 'action',
  711. },
  712. ];
  713. // 高级查询数据
  714. export const superQuerySchema = {
  715. status: { title: '状态(1-启用,0-停用)', order: 0, view: 'number', type: 'number', dictCode: '' },
  716. code: { title: '编码', order: 2, view: 'text', type: 'string' },
  717. name: { title: '名称', order: 3, view: 'text', type: 'string' },
  718. abbreviation: { title: '简称', order: 4, view: 'text', type: 'string' },
  719. nameUsedBefore: { title: '曾用名', order: 5, view: 'text', type: 'string' },
  720. dutyParagraph: { title: '税号', order: 6, view: 'text', type: 'string' },
  721. legalPerson: { title: '法人', order: 7, view: 'text', type: 'string' },
  722. contacts: { title: '联系人', order: 8, view: 'text', type: 'string' },
  723. phone: { title: '联系电话', order: 9, view: 'text', type: 'string' },
  724. email: { title: '邮箱', order: 10, view: 'text', type: 'string' },
  725. registerAddress: { title: '注册地址', order: 11, view: 'text', type: 'string' },
  726. address: { title: '公司地址', order: 12, view: 'text', type: 'string' },
  727. supplierNature: { title: '供应商性质', order: 13, view: 'list', type: 'string', dictCode: '' },
  728. country: { title: '国家', order: 14, view: 'list', type: 'string', dictCode: '' },
  729. currency: { title: '币种', order: 15, view: 'text', type: 'string' },
  730. abroadSupplier: { title: '国外供应商', order: 16, view: 'number', type: 'number' },
  731. originalFactory: { title: '原厂', order: 17, view: 'number', type: 'number', dictCode: '' },
  732. openingBank: { title: '开户行', order: 18, view: 'text', type: 'string' },
  733. paymentTerms: { title: '付款条件', order: 19, view: 'list', type: 'string', dictCode: '' },
  734. swiftCode: { title: '银行代码', order: 20, view: 'text', type: 'string' },
  735. bankAccount: { title: '银行帐号', order: 21, view: 'text', type: 'string' },
  736. businessLicense: { title: '营业执照', order: 22, view: 'text', type: 'string' },
  737. otherFiles: { title: '其他文件', order: 23, view: 'text', type: 'string' },
  738. notes: { title: '备注', order: 24, view: 'text', type: 'string' },
  739. temporarySupplier: { title: '临时供应商', order: 25, view: 'number', type: 'number', dictCode: '' },
  740. evaluationLevel: { title: '供应商等级', order: 26, view: 'list', type: 'string', dictCode: '' },
  741. //子表高级查询
  742. cuspSupplierProfileMan: {
  743. title: '供应商档案-联系人',
  744. view: 'table',
  745. fields: {
  746. status: { title: '状态(1-启用,0-停用)', order: 0, view: 'number', type: 'number' },
  747. headId: { title: '主表主键(供应商档案)', order: 2, view: 'text', type: 'string' },
  748. code: { title: '编码', order: 3, view: 'text', type: 'string' },
  749. name: { title: '姓名', order: 4, view: 'text', type: 'string' },
  750. mobile: { title: '电话', order: 5, view: 'text', type: 'string' },
  751. email: { title: '邮箱', order: 6, view: 'text', type: 'string' },
  752. position: { title: '职位', order: 7, view: 'text', type: 'string' },
  753. },
  754. },
  755. cuspSupplierProfileQualification: {
  756. title: '供应商档案-资质信息',
  757. view: 'table',
  758. fields: {
  759. status: { title: '状态(1-启用,0-停用)', order: 0, view: 'number', type: 'number' },
  760. headId: { title: '主表主键(供应商档案)', order: 2, view: 'text', type: 'string' },
  761. qualificationCertificateName: { title: '资质证书名称', order: 3, view: 'text', type: 'string' },
  762. qualificationCertificateCode: { title: '资质证书编码', order: 4, view: 'text', type: 'string' },
  763. validBegin: { title: '有效期始', order: 5, view: 'datetime', type: 'string' },
  764. validEnd: { title: '有效期止', order: 6, view: 'datetime', type: 'string' },
  765. qualificationCertificate: { title: '资质证书附件', order: 7, view: 'text', type: 'string' },
  766. deadlineReminder: { title: '临期提醒', order: 8, view: 'number', type: 'number' },
  767. },
  768. },
  769. };
  770. /**
  771. * 流程表单调用这个方法获取formSchema
  772. * @param param
  773. */
  774. export function getBpmFormSchema(_formData): FormSchema[] {
  775. // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
  776. return formSchema;
  777. }