data.ts 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959
  1. import { FormProps, BasicColumn } from '/@/components/Table';
  2. import { FormSchema } from '/@/components/Form/index';
  3. import { adapt } from '/@/utils/adapt';
  4. import { h } from 'vue';
  5. import moment from 'moment';
  6. const adaptWidth = adapt();
  7. export const columns: BasicColumn[] = [
  8. {
  9. title: 'ID',
  10. dataIndex: 'id',
  11. editComponentProps: {
  12. prefix: '$',
  13. },
  14. width: 100,
  15. sorter: true,
  16. },
  17. {
  18. title: '企业(单位)名称',
  19. dataIndex: 'name',
  20. width: 200,
  21. sorter: true,
  22. customRender({ record }) {
  23. const dom: object[] = [];
  24. dom.push(h('span', {}, record.name));
  25. if (record.nature === 0) {
  26. dom.push(h('span', { style: { fontSize: '18px', fontWeight: 'bold', color: 'red' } }, '★'));
  27. }
  28. return dom;
  29. },
  30. },
  31. {
  32. title: '法人代表',
  33. dataIndex: 'legalman',
  34. width: 130,
  35. sorter: true,
  36. },
  37. {
  38. title: '成立时间',
  39. dataIndex: 'foundingtime',
  40. width: 150,
  41. customRender({ record }) {
  42. return moment(record.foundingtime).format('YYYY-MM-DD');
  43. },
  44. sorter: true,
  45. },
  46. {
  47. title: '工商登记号',
  48. dataIndex: 'businessNo',
  49. width: 350,
  50. sorter: true,
  51. },
  52. {
  53. title: '单位性质',
  54. dataIndex: 'nature',
  55. width: 160,
  56. customRender: ({ record }) => {
  57. const options = [
  58. '机关事业单位',
  59. '国有企业',
  60. '集体所有制',
  61. '私营企业',
  62. '股份制企业',
  63. '有限合伙企业',
  64. '联营企业',
  65. '外商投资企业',
  66. '个人独资企业',
  67. ];
  68. return options[record.nature];
  69. },
  70. sorter: true,
  71. },
  72. {
  73. title: '行业分类',
  74. dataIndex: 'job',
  75. width: 160,
  76. sorter: true,
  77. },
  78. {
  79. title: '注册资金',
  80. dataIndex: 'regMoney',
  81. width: 160,
  82. sorter: true,
  83. },
  84. {
  85. title: '职工人数',
  86. dataIndex: 'jobnum',
  87. width: 160,
  88. sorter: true,
  89. },
  90. ];
  91. export function getFormConfig(): Partial<FormProps> {
  92. return {
  93. labelWidth: 110,
  94. schemas: [
  95. {
  96. field: `id`,
  97. label: `ID`,
  98. component: 'Input',
  99. componentProps: {
  100. placeholder: 'ID',
  101. },
  102. colProps: {
  103. xl: 12,
  104. xxl: 8,
  105. },
  106. },
  107. {
  108. field: `name`,
  109. label: `企业(单位)名称`,
  110. component: 'Input',
  111. componentProps: {
  112. placeholder: '企业或单位名称',
  113. },
  114. colProps: {
  115. xl: 12,
  116. xxl: 8,
  117. },
  118. },
  119. {
  120. field: `legalman`,
  121. label: `法人代表`,
  122. component: 'Input',
  123. componentProps: {
  124. placeholder: '法人代表',
  125. },
  126. colProps: {
  127. xl: 12,
  128. xxl: 8,
  129. },
  130. },
  131. {
  132. field: `foundingtime`,
  133. label: `成立时间`,
  134. component: 'RangePicker',
  135. componentProps: {
  136. valueFormat: 'YYYY-MM-DD',
  137. },
  138. colProps: {
  139. xl: 12,
  140. xxl: 8,
  141. },
  142. },
  143. {
  144. field: `businessNo`,
  145. label: `工商登记号`,
  146. component: 'Input',
  147. componentProps: {
  148. placeholder: '工商登记号',
  149. },
  150. colProps: {
  151. xl: 12,
  152. xxl: 8,
  153. },
  154. },
  155. {
  156. field: `nature`,
  157. label: `单位性质`,
  158. component: 'Select',
  159. componentProps: {
  160. placeholder: '单位性质',
  161. options: [
  162. {
  163. label: '机关事业单位',
  164. value: 0,
  165. },
  166. {
  167. label: '国有企业',
  168. value: 1,
  169. },
  170. {
  171. label: '集体所有制',
  172. value: 2,
  173. },
  174. {
  175. label: '私营企业',
  176. value: 3,
  177. },
  178. {
  179. label: '股份制企业',
  180. value: 4,
  181. },
  182. {
  183. label: '有限合伙企业',
  184. value: 5,
  185. },
  186. {
  187. label: '联营企业',
  188. value: 6,
  189. },
  190. {
  191. label: '外商投资企业',
  192. value: 7,
  193. },
  194. {
  195. label: '个人独资企业',
  196. value: 8,
  197. },
  198. ],
  199. },
  200. colProps: {
  201. xl: 12,
  202. xxl: 8,
  203. },
  204. },
  205. {
  206. field: `job`,
  207. label: `行业分类`,
  208. component: 'Input',
  209. componentProps: {
  210. placeholder: '行业分类',
  211. },
  212. colProps: {
  213. xl: 12,
  214. xxl: 8,
  215. },
  216. },
  217. {
  218. field: `regMoney`,
  219. label: `注册资金`,
  220. component: 'RangeNumber',
  221. componentProps: {
  222. placeholder: '注册资金',
  223. },
  224. defaultValue: '',
  225. colProps: {
  226. xl: 12,
  227. xxl: 8,
  228. },
  229. },
  230. {
  231. field: `jobnum`,
  232. label: `职工人数`,
  233. component: 'RangeNumber',
  234. componentProps: {
  235. placeholder: '职工人数',
  236. },
  237. defaultValue: '',
  238. colProps: {
  239. xl: 12,
  240. xxl: 8,
  241. },
  242. },
  243. ],
  244. };
  245. }
  246. // =================popup================================
  247. export const schemas: FormSchema[] = [
  248. {
  249. field: 'name',
  250. component: 'Input',
  251. label: '企业名称',
  252. labelWidth: adaptWidth.labelWidth,
  253. colProps: {
  254. span: adaptWidth.elContainer,
  255. },
  256. componentProps: {
  257. placeholder: '企业名称',
  258. },
  259. show: ({ values }) => {
  260. if (values.nature !== 0) {
  261. return true;
  262. }
  263. return false;
  264. },
  265. required: ({ values }) => {
  266. if (values.nature !== 0) {
  267. return true;
  268. }
  269. return false;
  270. },
  271. },
  272. {
  273. field: 'name',
  274. component: 'Input',
  275. label: '单位名称',
  276. labelWidth: adaptWidth.labelWidth,
  277. colProps: {
  278. span: adaptWidth.elContainer,
  279. },
  280. componentProps: {
  281. placeholder: '单位名称',
  282. },
  283. show: ({ values }) => {
  284. if (values.nature === 0) {
  285. return true;
  286. }
  287. return false;
  288. },
  289. required: ({ values }) => {
  290. if (values.nature === 0) {
  291. return true;
  292. }
  293. return false;
  294. },
  295. },
  296. {
  297. field: 'nature',
  298. label: '单位性质',
  299. component: 'Select',
  300. componentProps: {
  301. placeholder: '单位性质',
  302. options: [
  303. {
  304. label: '机关事业单位',
  305. value: 0,
  306. },
  307. {
  308. label: '国有企业',
  309. value: 1,
  310. },
  311. {
  312. label: '集体所有制',
  313. value: 2,
  314. },
  315. {
  316. label: '私营企业',
  317. value: 3,
  318. },
  319. {
  320. label: '股份制企业',
  321. value: 4,
  322. },
  323. {
  324. label: '有限合伙企业',
  325. value: 5,
  326. },
  327. {
  328. label: '联营企业',
  329. value: 6,
  330. },
  331. {
  332. label: '外商投资企业',
  333. value: 7,
  334. },
  335. {
  336. label: '个人独资企业',
  337. value: 8,
  338. },
  339. ],
  340. },
  341. labelWidth: adaptWidth.labelWidth,
  342. colProps: {
  343. span: adaptWidth.elContainer,
  344. },
  345. required: true,
  346. },
  347. {
  348. field: 'legalman',
  349. component: 'Input',
  350. label: '法人代表',
  351. labelWidth: adaptWidth.labelWidth,
  352. colProps: {
  353. span: adaptWidth.elContainer,
  354. },
  355. componentProps: {
  356. placeholder: '法人代表',
  357. },
  358. show: ({ values }) => {
  359. if (values.nature !== 0) {
  360. return true;
  361. }
  362. return false;
  363. },
  364. required: ({ values }) => {
  365. if (values.nature !== 0) {
  366. return true;
  367. }
  368. return false;
  369. },
  370. },
  371. {
  372. field: 'level',
  373. component: 'Input',
  374. label: '行政级别',
  375. labelWidth: adaptWidth.labelWidth,
  376. colProps: {
  377. span: adaptWidth.elContainer,
  378. },
  379. componentProps: {
  380. placeholder: '行政级别',
  381. },
  382. show: ({ values }) => {
  383. if (values.nature === 0) {
  384. return true;
  385. }
  386. return false;
  387. },
  388. },
  389. {
  390. field: 'area',
  391. component: 'Input',
  392. label: '所属地区',
  393. labelWidth: adaptWidth.labelWidth,
  394. colProps: {
  395. span: adaptWidth.elContainer,
  396. },
  397. componentProps: {
  398. placeholder: '所属地区',
  399. },
  400. show: ({ values }) => {
  401. if (values.nature === 0) {
  402. return true;
  403. }
  404. return false;
  405. },
  406. },
  407. {
  408. field: 'parent',
  409. component: 'Input',
  410. label: '上级单位',
  411. labelWidth: adaptWidth.labelWidth,
  412. colProps: {
  413. span: adaptWidth.elContainer,
  414. },
  415. componentProps: {
  416. placeholder: '上级单位',
  417. },
  418. show: ({ values }) => {
  419. if (values.nature === 0) {
  420. return true;
  421. }
  422. return false;
  423. },
  424. },
  425. {
  426. field: 'businessNo',
  427. component: 'Input',
  428. label: '工商登记号',
  429. labelWidth: adaptWidth.labelWidth,
  430. colProps: {
  431. span: adaptWidth.elContainer,
  432. },
  433. componentProps: {
  434. placeholder: '工商登记号',
  435. },
  436. show: ({ values }) => {
  437. if (values.nature !== 0) {
  438. return true;
  439. }
  440. return false;
  441. },
  442. required: ({ values }) => {
  443. if (values.nature !== 0) {
  444. return true;
  445. }
  446. return false;
  447. },
  448. },
  449. {
  450. field: 'centralTax',
  451. component: 'Input',
  452. label: '国税税号',
  453. labelWidth: adaptWidth.labelWidth,
  454. colProps: {
  455. span: adaptWidth.elContainer,
  456. },
  457. componentProps: {
  458. placeholder: '国税税号',
  459. },
  460. show: ({ values }) => {
  461. if (values.nature !== 0) {
  462. return true;
  463. }
  464. return false;
  465. },
  466. },
  467. {
  468. field: 'landTax',
  469. component: 'Input',
  470. label: '地税税号',
  471. labelWidth: adaptWidth.labelWidth,
  472. colProps: {
  473. span: adaptWidth.elContainer,
  474. },
  475. componentProps: {
  476. placeholder: '地税税号',
  477. },
  478. show: ({ values }) => {
  479. if (values.nature !== 0) {
  480. return true;
  481. }
  482. return false;
  483. },
  484. },
  485. {
  486. field: 'foundingtime',
  487. component: 'DatePicker',
  488. label: '成立时间',
  489. labelWidth: adaptWidth.labelWidth,
  490. colProps: {
  491. span: adaptWidth.elContainer,
  492. },
  493. componentProps: {
  494. placeholder: '成立时间',
  495. },
  496. show: ({ values }) => {
  497. if (values.nature !== 0) {
  498. return true;
  499. }
  500. return false;
  501. },
  502. required: ({ values }) => {
  503. if (values.nature !== 0) {
  504. return true;
  505. }
  506. return false;
  507. },
  508. },
  509. {
  510. field: 'job',
  511. component: 'Input',
  512. label: '行业分类',
  513. labelWidth: adaptWidth.labelWidth,
  514. colProps: {
  515. span: adaptWidth.elContainer,
  516. },
  517. componentProps: {
  518. placeholder: '行业分类',
  519. },
  520. show: ({ values }) => {
  521. if (values.nature !== 0) {
  522. return true;
  523. }
  524. return false;
  525. },
  526. required: ({ values }) => {
  527. if (values.nature !== 0) {
  528. return true;
  529. }
  530. return false;
  531. },
  532. },
  533. {
  534. field: 'jobnum',
  535. component: 'Input',
  536. label: '职工人数',
  537. labelWidth: adaptWidth.labelWidth,
  538. colProps: {
  539. span: adaptWidth.elContainer,
  540. },
  541. componentProps: {
  542. type: 'number',
  543. placeholder: '职工人数',
  544. },
  545. },
  546. {
  547. field: 'partynum',
  548. component: 'Input',
  549. label: '党员数',
  550. labelWidth: adaptWidth.labelWidth,
  551. colProps: {
  552. span: adaptWidth.elContainer,
  553. },
  554. componentProps: {
  555. type: 'number',
  556. placeholder: '党员数',
  557. },
  558. },
  559. {
  560. field: 'tel',
  561. component: 'Input',
  562. label: '电话',
  563. labelWidth: adaptWidth.labelWidth,
  564. colProps: {
  565. span: adaptWidth.elContainer,
  566. },
  567. componentProps: {
  568. placeholder: '电话',
  569. },
  570. },
  571. {
  572. field: 'fax',
  573. component: 'Input',
  574. label: '传真',
  575. labelWidth: adaptWidth.labelWidth,
  576. colProps: {
  577. span: adaptWidth.elContainer,
  578. },
  579. componentProps: {
  580. placeholder: '传真',
  581. },
  582. },
  583. {
  584. field: 'zipcode',
  585. component: 'Input',
  586. label: '邮编',
  587. labelWidth: adaptWidth.labelWidth,
  588. colProps: {
  589. span: adaptWidth.elContainer,
  590. },
  591. componentProps: {
  592. placeholder: '邮箱',
  593. },
  594. },
  595. {
  596. field: 'address',
  597. component: 'Input',
  598. label: '地址',
  599. labelWidth: adaptWidth.labelWidth,
  600. colProps: {
  601. span: adaptWidth.elContainer,
  602. },
  603. componentProps: {
  604. placeholder: '地址',
  605. },
  606. required: true,
  607. },
  608. {
  609. field: 'culturalnum',
  610. component: 'Input',
  611. label: '大专以上文化人数',
  612. labelWidth: adaptWidth.labelWidth,
  613. colProps: {
  614. span: adaptWidth.elContainer,
  615. },
  616. componentProps: {
  617. type: 'number',
  618. placeholder: '大专以上文化人数',
  619. },
  620. show: ({ values }) => {
  621. if (values.nature !== 0) {
  622. return true;
  623. }
  624. return false;
  625. },
  626. },
  627. {
  628. field: 'laidnum',
  629. component: 'Input',
  630. label: '安置下岗人数',
  631. labelWidth: adaptWidth.labelWidth,
  632. colProps: {
  633. span: adaptWidth.elContainer,
  634. },
  635. componentProps: {
  636. type: 'number',
  637. placeholder: '安置下岗人数',
  638. },
  639. show: ({ values }) => {
  640. if (values.nature !== 0) {
  641. return true;
  642. }
  643. return false;
  644. },
  645. },
  646. {
  647. field: 'partyCase',
  648. component: 'Input',
  649. label: '党、团工会情况',
  650. labelWidth: adaptWidth.labelWidth,
  651. colProps: {
  652. span: adaptWidth.elContainer,
  653. },
  654. componentProps: {
  655. placeholder: '党、团工会情况',
  656. },
  657. show: ({ values }) => {
  658. if (values.nature !== 0) {
  659. return true;
  660. }
  661. return false;
  662. },
  663. },
  664. {
  665. field: 'web',
  666. component: 'Input',
  667. label: '网址',
  668. labelWidth: adaptWidth.labelWidth,
  669. colProps: {
  670. span: adaptWidth.elContainer,
  671. },
  672. componentProps: {
  673. placeholder: '网址',
  674. },
  675. rules: [
  676. {
  677. validator: async (_, value: any) => {
  678. const regex =
  679. /(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/;
  680. if (value && !regex.test(value)) {
  681. return Promise.reject('请填写有效的网址');
  682. }
  683. },
  684. trigger: 'blur',
  685. },
  686. ],
  687. },
  688. {
  689. field: 'email',
  690. component: 'Input',
  691. label: '电子邮箱',
  692. labelWidth: adaptWidth.labelWidth,
  693. colProps: {
  694. span: adaptWidth.elContainer,
  695. },
  696. componentProps: {
  697. placeholder: '电子邮箱',
  698. },
  699. show: ({ values }) => {
  700. if (values.nature !== 0) {
  701. return true;
  702. }
  703. return false;
  704. },
  705. },
  706. {
  707. field: 'technology',
  708. label: '高新技术企业认证',
  709. component: 'Switch',
  710. labelWidth: adaptWidth.labelWidth,
  711. colProps: {
  712. span: adaptWidth.elContainer,
  713. },
  714. componentProps: {
  715. placeholder: '高新技术企业认证',
  716. },
  717. show: ({ values }) => {
  718. if (values.nature !== 0) {
  719. return true;
  720. }
  721. return false;
  722. },
  723. },
  724. {
  725. field: 'technologyDept',
  726. component: 'Input',
  727. label: '高新技术企业认证部门',
  728. labelWidth: adaptWidth.labelWidth,
  729. colProps: {
  730. span: adaptWidth.elContainer,
  731. },
  732. show: ({ values }) => {
  733. if (values.technology && values.nature !== 0) {
  734. return true;
  735. }
  736. return false;
  737. },
  738. componentProps: {
  739. placeholder: '高新技术企业认证部门',
  740. },
  741. required: ({ values }) => {
  742. if (values.technology && values.nature !== 0) {
  743. return true;
  744. }
  745. return false;
  746. },
  747. },
  748. {
  749. field: 'foreignTrade',
  750. label: '外贸自营进出口权',
  751. component: 'Switch',
  752. labelWidth: adaptWidth.labelWidth,
  753. colProps: {
  754. span: adaptWidth.elContainer,
  755. },
  756. componentProps: {
  757. placeholder: '外贸自营进出口权',
  758. },
  759. show: ({ values }) => {
  760. if (values.nature !== 0) {
  761. return true;
  762. }
  763. return false;
  764. },
  765. },
  766. {
  767. field: 'foreignTradeDept',
  768. component: 'Input',
  769. label: '外贸自营进出口权批准部门',
  770. labelWidth: adaptWidth.labelWidth,
  771. colProps: {
  772. span: adaptWidth.elContainer,
  773. },
  774. show: ({ values }) => {
  775. if (values.foreignTrade && values.nature !== 0) {
  776. return true;
  777. }
  778. return false;
  779. },
  780. componentProps: {
  781. placeholder: '外贸自营进出口权批准部门',
  782. },
  783. required: ({ values }) => {
  784. if (values.foreignTrade && values.nature !== 0) {
  785. return true;
  786. }
  787. return false;
  788. },
  789. },
  790. {
  791. field: 'quality',
  792. label: '质量管理、质量保证系列认证标准',
  793. component: 'Switch',
  794. labelWidth: adaptWidth.labelWidth,
  795. colProps: {
  796. span: adaptWidth.elContainer,
  797. },
  798. componentProps: {
  799. placeholder: '质量管理、质量保证系列认证标准',
  800. },
  801. show: ({ values }) => {
  802. if (values.nature !== 0) {
  803. return true;
  804. }
  805. return false;
  806. },
  807. },
  808. {
  809. field: 'qualityDept',
  810. component: 'Input',
  811. label: '质量管理、质量保证系列认证标准认证部门',
  812. labelWidth: adaptWidth.labelWidth,
  813. colProps: {
  814. span: adaptWidth.elContainer,
  815. },
  816. show: ({ values }) => {
  817. if (values.quality && values.nature !== 0) {
  818. return true;
  819. }
  820. return false;
  821. },
  822. componentProps: {
  823. placeholder: '质量管理、质量保证系列认证标准认证部门',
  824. },
  825. required: ({ values }) => {
  826. if (values.quality && values.nature !== 0) {
  827. return true;
  828. }
  829. return false;
  830. },
  831. },
  832. {
  833. field: 'regMoney',
  834. component: 'Input',
  835. label: '注册资金(万元)',
  836. labelWidth: adaptWidth.labelWidth,
  837. colProps: {
  838. span: adaptWidth.elContainer,
  839. },
  840. componentProps: {
  841. type: 'number',
  842. placeholder: '注册资金(万元)',
  843. },
  844. show: ({ values }) => {
  845. if (values.nature !== 0) {
  846. return true;
  847. }
  848. return false;
  849. },
  850. rules: [
  851. {
  852. required: true,
  853. validator: async (_, value: any) => {
  854. let dealValue = '';
  855. if (value) {
  856. dealValue = value.replace(/\s*/g, '');
  857. }
  858. if (dealValue === '') {
  859. return Promise.reject('请输入注册资金');
  860. }
  861. if (value < 0) {
  862. return Promise.reject('注册资金不能小于0');
  863. }
  864. },
  865. trigger: 'blur',
  866. },
  867. ],
  868. required: ({ values }) => {
  869. if (values.nature !== 0) {
  870. return true;
  871. }
  872. return false;
  873. },
  874. },
  875. {
  876. field: 'money',
  877. component: 'Input',
  878. label: '资产(万元)',
  879. labelWidth: adaptWidth.labelWidth,
  880. colProps: {
  881. span: adaptWidth.elContainer,
  882. },
  883. componentProps: {
  884. type: 'number',
  885. placeholder: '资产(万元)',
  886. },
  887. show: ({ values }) => {
  888. if (values.nature !== 0) {
  889. return true;
  890. }
  891. return false;
  892. },
  893. },
  894. {
  895. field: 'ownerMoney',
  896. component: 'Input',
  897. label: '所有者权益(万元)',
  898. labelWidth: adaptWidth.labelWidth,
  899. colProps: {
  900. span: adaptWidth.elContainer,
  901. },
  902. componentProps: {
  903. type: 'number',
  904. placeholder: '所有者权益(万元)',
  905. },
  906. show: ({ values }) => {
  907. if (values.nature !== 0) {
  908. return true;
  909. }
  910. return false;
  911. },
  912. },
  913. {
  914. field: 'sellMoney',
  915. component: 'Input',
  916. label: '销售收入(万元)',
  917. labelWidth: adaptWidth.labelWidth,
  918. colProps: {
  919. span: adaptWidth.elContainer,
  920. },
  921. componentProps: {
  922. type: 'number',
  923. placeholder: '销售收入(万元)',
  924. },
  925. show: ({ values }) => {
  926. if (values.nature !== 0) {
  927. return true;
  928. }
  929. return false;
  930. },
  931. },
  932. {
  933. field: 'product',
  934. component: 'InputTextArea',
  935. label: '主要经营项目',
  936. labelWidth: adaptWidth.labelWidth,
  937. colProps: {
  938. span: adaptWidth.elContainer,
  939. },
  940. componentProps: {
  941. placeholder: '主要经营项目',
  942. },
  943. show: ({ values }) => {
  944. if (values.nature !== 0) {
  945. return true;
  946. }
  947. return false;
  948. },
  949. required: ({ values }) => {
  950. if (values.nature !== 0) {
  951. return true;
  952. }
  953. return false;
  954. },
  955. },
  956. ];