flow-service-mock.js 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549
  1. import FlowService from '@/webflow/flow-service'
  2. // 写死一个流程数据并返回
  3. function getDataMock(params) {
  4. return new Promise((resolve) => {
  5. resolve({
  6. instId: 404,
  7. activeStepId: 404,
  8. mode: 'EDIT',
  9. processId: 'G_1_FWGS',
  10. flowFormModelRelationId: 0,
  11. processFormData: {
  12. pageId: 'vue:doc/flowFormExample' + params.scopeId,
  13. formId: 'entity:oaDocDispatch',
  14. beanId: '404',
  15. mode: 'EDIT',
  16. processFormPropertyValues: [
  17. {
  18. name: 'docIdentifier',
  19. caption: '公文标识',
  20. dataType: 'string',
  21. specType: 'XcoaSpec',
  22. value: null,
  23. defaultValue: null,
  24. htmlType: null,
  25. mutable: true,
  26. idProperty: false,
  27. mobileVisible: false,
  28. required: false,
  29. readonly: false,
  30. attr: {
  31. controlType: 'StringType',
  32. field: 'docIdentifier',
  33. mandatory: 'false',
  34. maxLength: '2000',
  35. },
  36. index: 1,
  37. controlCat: -1,
  38. },
  39. {
  40. name: 'mainSendUnit',
  41. caption: '主送单位',
  42. dataType: 'selectperson',
  43. specType: 'XcoaSpec',
  44. value: '[{"type":"GROUP","code":"20020","name":"中国慧科集团","attrNames":[]}]',
  45. defaultValue: null,
  46. htmlType: null,
  47. mutable: true,
  48. idProperty: false,
  49. mobileVisible: true,
  50. required: true,
  51. readonly: false,
  52. attr: {
  53. displayValue: '中国慧科集团',
  54. selectionType: 'GROUP',
  55. controlType: 'GroupSelectType',
  56. field: 'mainSendUnit',
  57. rootId: 'G-1',
  58. rootName: '中国慧科集团',
  59. mandatory: 'true',
  60. },
  61. index: 2,
  62. controlCat: -1,
  63. },
  64. {
  65. name: 'numberYear',
  66. caption: '年份',
  67. dataType: 'string',
  68. specType: 'XcoaSpec',
  69. value: null,
  70. defaultValue: null,
  71. htmlType: null,
  72. mutable: true,
  73. idProperty: false,
  74. mobileVisible: false,
  75. required: false,
  76. readonly: false,
  77. attr: {
  78. controlType: 'StringType',
  79. field: 'numberYear',
  80. mandatory: 'false',
  81. maxLength: '4',
  82. },
  83. index: 3,
  84. controlCat: -1,
  85. },
  86. {
  87. name: 'creationTime',
  88. caption: '拟稿日期',
  89. dataType: 'date',
  90. specType: 'XcoaSpec',
  91. value: 1603702168132,
  92. defaultValue: null,
  93. htmlType: null,
  94. mutable: true,
  95. idProperty: false,
  96. mobileVisible: true,
  97. required: false,
  98. readonly: true,
  99. attr: {
  100. displayValue: '2020-10-26',
  101. controlType: 'SignType',
  102. field: 'creationTime',
  103. type: 'date',
  104. },
  105. index: 4,
  106. controlCat: -1,
  107. },
  108. {
  109. name: 'docNumber',
  110. caption: '发文字号',
  111. dataType: 'string',
  112. specType: 'XcoaSpec',
  113. value: null,
  114. defaultValue: null,
  115. htmlType: null,
  116. mutable: true,
  117. idProperty: false,
  118. mobileVisible: true,
  119. required: false,
  120. readonly: false,
  121. attr: {
  122. controlType: 'StringType',
  123. field: 'docNumber',
  124. mandatory: 'false',
  125. maxLength: '100',
  126. },
  127. index: 5,
  128. controlCat: -1,
  129. },
  130. {
  131. name: 'jiontlyOpinion',
  132. caption: '会签',
  133. dataType: 'OpinionView',
  134. specType: 'XcoaSpec',
  135. value: null,
  136. defaultValue: null,
  137. htmlType: null,
  138. mutable: false,
  139. idProperty: false,
  140. mobileVisible: true,
  141. required: false,
  142. readonly: true,
  143. attr: {
  144. controlType: 'OpinionViewType',
  145. field: 'jiontlyOpinion',
  146. dataType: 'opinionView',
  147. opinions: [],
  148. },
  149. index: 6,
  150. controlCat: -1,
  151. },
  152. {
  153. name: 'dispatchUnit',
  154. caption: '发文单位',
  155. dataType: 'string',
  156. specType: 'XcoaSpec',
  157. value: '综合部(办公室)',
  158. defaultValue: null,
  159. htmlType: null,
  160. mutable: true,
  161. idProperty: false,
  162. mobileVisible: true,
  163. required: false,
  164. readonly: true,
  165. attr: {
  166. signFieldType: 'name',
  167. controlType: 'SignType',
  168. field: 'dispatchUnit',
  169. type: 'group',
  170. },
  171. index: 7,
  172. controlCat: -1,
  173. },
  174. {
  175. name: 'creatorName',
  176. caption: '拟稿人',
  177. dataType: 'string',
  178. specType: 'XcoaSpec',
  179. value: '唐纯',
  180. defaultValue: null,
  181. htmlType: null,
  182. mutable: true,
  183. idProperty: false,
  184. mobileVisible: true,
  185. required: false,
  186. readonly: true,
  187. attr: {
  188. signFieldType: 'name',
  189. controlType: 'SignType',
  190. field: 'creatorName',
  191. type: 'user',
  192. },
  193. index: 8,
  194. controlCat: -1,
  195. },
  196. {
  197. name: 'copySendUnit',
  198. caption: '抄送单位',
  199. dataType: 'selectperson',
  200. specType: 'XcoaSpec',
  201. value: '[]',
  202. defaultValue: null,
  203. htmlType: null,
  204. mutable: true,
  205. idProperty: false,
  206. mobileVisible: true,
  207. required: false,
  208. readonly: false,
  209. attr: {
  210. displayValue: '',
  211. selectionType: 'GROUP',
  212. controlType: 'GroupSelectType',
  213. field: 'copySendUnit',
  214. rootId: 'G-1',
  215. rootName: '中国慧科集团',
  216. },
  217. index: 9,
  218. controlCat: -1,
  219. },
  220. {
  221. name: 'copyLeader',
  222. caption: '抄送领导',
  223. dataType: 'selectperson',
  224. specType: 'XcoaSpec',
  225. value: '[]',
  226. defaultValue: null,
  227. htmlType: null,
  228. mutable: true,
  229. idProperty: false,
  230. mobileVisible: true,
  231. required: false,
  232. readonly: false,
  233. attr: {
  234. displayValue: '',
  235. selectionType: 'USER',
  236. controlType: 'GroupSelectType',
  237. field: 'copyLeader',
  238. rootId: 'G-1',
  239. rootName: '中国慧科集团',
  240. },
  241. index: 10,
  242. controlCat: -1,
  243. },
  244. {
  245. name: 'title',
  246. caption: '标题',
  247. dataType: 'title',
  248. specType: 'XcoaSpec',
  249. value: '测试流程',
  250. defaultValue: null,
  251. htmlType: null,
  252. mutable: true,
  253. idProperty: false,
  254. mobileVisible: true,
  255. required: true,
  256. readonly: false,
  257. attr: {
  258. controlType: 'StringType',
  259. field: 'title',
  260. mandatory: 'true',
  261. maxLength: '100',
  262. },
  263. index: 11,
  264. controlCat: -1,
  265. },
  266. {
  267. name: 'items',
  268. caption: '物品详情',
  269. dataType: 'collection',
  270. attr: {
  271. dync: [
  272. {
  273. specType: 'hdTextField',
  274. dataType: 'string',
  275. name: 'name',
  276. caption: '名称',
  277. },
  278. {
  279. specType: 'hdTextField',
  280. dataType: 'number',
  281. name: 'price',
  282. caption: '价格',
  283. },
  284. ],
  285. },
  286. value: '[{"name": "铅笔","price": 2},{"name": "记事本","price": 5}]',
  287. },
  288. {
  289. name: 'urgencyLevel',
  290. caption: '缓急',
  291. dataType: 'selectlist',
  292. specType: 'XcoaSpec',
  293. value: '1',
  294. defaultValue: null,
  295. htmlType: null,
  296. mutable: true,
  297. idProperty: false,
  298. mobileVisible: true,
  299. required: true,
  300. readonly: false,
  301. attr: {
  302. displayValue: '加急',
  303. controlType: 'DictType',
  304. field: 'urgencyLevel',
  305. multiple: 'false',
  306. mandatory: 'true',
  307. selectListItem: [
  308. {
  309. label: '无',
  310. value: '0',
  311. },
  312. {
  313. label: '加急',
  314. value: '1',
  315. },
  316. {
  317. label: '特急',
  318. value: '2',
  319. },
  320. ],
  321. },
  322. index: 12,
  323. controlCat: -1,
  324. },
  325. {
  326. name: 'numberWord',
  327. caption: '代字',
  328. dataType: 'string',
  329. specType: 'XcoaSpec',
  330. value: null,
  331. defaultValue: null,
  332. htmlType: null,
  333. mutable: true,
  334. idProperty: false,
  335. mobileVisible: false,
  336. required: false,
  337. readonly: false,
  338. attr: {
  339. controlType: 'StringType',
  340. field: 'numberWord',
  341. mandatory: 'false',
  342. maxLength: '20',
  343. },
  344. index: 13,
  345. controlCat: -1,
  346. },
  347. {
  348. name: 'relatedDoc',
  349. caption: '关联文档',
  350. dataType: 'relateddoc',
  351. specType: 'XcoaSpec',
  352. value: 'ec33420cc3574ee5850',
  353. defaultValue: null,
  354. htmlType: null,
  355. mutable: true,
  356. idProperty: false,
  357. mobileVisible: false,
  358. required: false,
  359. readonly: false,
  360. attr: {
  361. relatedDoc: '[]',
  362. controlType: 'RelatedDocType',
  363. field: 'relatedDoc',
  364. readonly: true,
  365. },
  366. index: 14,
  367. controlCat: -1,
  368. },
  369. {
  370. name: 'attachment',
  371. caption: '正文附件',
  372. dataType: 'attachment',
  373. specType: 'XcoaSpec',
  374. value: '{"value":"61847"}',
  375. defaultValue: null,
  376. htmlType: null,
  377. mutable: true,
  378. idProperty: false,
  379. mobileVisible: true,
  380. required: false,
  381. readonly: false,
  382. attr: {
  383. renamable: false,
  384. downloadable: true,
  385. filenameMaxLength: '80',
  386. attachments: [
  387. {
  388. name: '发函.docx',
  389. code: '7683',
  390. groupCode: '61847',
  391. size: '22.0KB',
  392. fileSize: 23118,
  393. creationTime: 0,
  394. lastModifiedTime: 0,
  395. catNum: '-6',
  396. attr: null,
  397. },
  398. {
  399. name: '痕迹稿2_test.doc',
  400. code: '8722',
  401. groupCode: '61847',
  402. size: '179.0KB',
  403. fileSize: 183808,
  404. creationTime: 0,
  405. lastModifiedTime: 0,
  406. catNum: '-3',
  407. attr: null,
  408. },
  409. {
  410. name: '痕迹稿1_test.doc',
  411. code: '8695',
  412. groupCode: '61847',
  413. size: '180.0KB',
  414. fileSize: 184320,
  415. creationTime: 0,
  416. lastModifiedTime: 0,
  417. catNum: '-3',
  418. attr: null,
  419. },
  420. {
  421. name: 'test.doc',
  422. code: '8742',
  423. groupCode: '61847',
  424. size: '179.0KB',
  425. fileSize: 183808,
  426. creationTime: 0,
  427. lastModifiedTime: 0,
  428. catNum: '-1',
  429. attr: null,
  430. },
  431. {
  432. name: '痕迹稿3_test.doc',
  433. code: '8736',
  434. groupCode: '61847',
  435. size: '180.0KB',
  436. fileSize: 184320,
  437. creationTime: 0,
  438. lastModifiedTime: 0,
  439. catNum: '-1',
  440. attr: null,
  441. },
  442. ],
  443. uploadable: false,
  444. controlType: 'AttachmentType',
  445. field: 'attachment',
  446. editable: false,
  447. deletable: false,
  448. maxFileSize: '10',
  449. },
  450. index: 15,
  451. controlCat: -1,
  452. },
  453. {
  454. name: 'businessTypeName',
  455. caption: '业务类型名称',
  456. dataType: 'string',
  457. specType: 'XcoaSpec',
  458. value: '集团发文',
  459. defaultValue: null,
  460. htmlType: null,
  461. mutable: true,
  462. idProperty: false,
  463. mobileVisible: false,
  464. required: false,
  465. readonly: false,
  466. attr: {
  467. controlType: 'StringType',
  468. field: 'businessTypeName',
  469. mandatory: 'false',
  470. },
  471. index: 16,
  472. controlCat: -1,
  473. },
  474. {
  475. name: 'id',
  476. caption: 'ID',
  477. dataType: 'id',
  478. specType: 'XcoaSpec',
  479. value: 2472,
  480. defaultValue: null,
  481. htmlType: null,
  482. mutable: false,
  483. idProperty: false,
  484. mobileVisible: false,
  485. required: true,
  486. readonly: true,
  487. attr: {
  488. controlType: 'NumberType',
  489. field: 'id',
  490. mandatory: 'true',
  491. },
  492. index: 17,
  493. controlCat: -1,
  494. },
  495. {
  496. name: 'issueDate',
  497. caption: '成文日期',
  498. dataType: 'date',
  499. specType: 'XcoaSpec',
  500. value: 1603702061948,
  501. defaultValue: null,
  502. htmlType: null,
  503. mutable: true,
  504. idProperty: false,
  505. mobileVisible: true,
  506. required: false,
  507. readonly: true,
  508. attr: {
  509. displayValue: '2020-10-26',
  510. controlType: 'SignType',
  511. field: 'issueDate',
  512. type: 'date',
  513. },
  514. index: 18,
  515. controlCat: -1,
  516. },
  517. {
  518. name: 'mainSend',
  519. caption: '主送语',
  520. dataType: 'string',
  521. specType: 'XcoaSpec',
  522. value: null,
  523. defaultValue: null,
  524. htmlType: null,
  525. mutable: true,
  526. idProperty: false,
  527. mobileVisible: false,
  528. required: false,
  529. readonly: false,
  530. attr: {
  531. controlType: 'StringType',
  532. field: 'mainSend',
  533. mandatory: 'false',
  534. maxLength: '2000',
  535. },
  536. index: 19,
  537. controlCat: -1,
  538. },
  539. {
  540. name: 'issueUserName',
  541. caption: '签发人',
  542. dataType: 'string',
  543. specType: 'XcoaSpec',
  544. value: '唐纯',
  545. defaultValue: null,
  546. htmlType: null,
  547. mutable: true,
  548. idProperty: false,
  549. mobileVisible: true,
  550. required: false,
  551. readonly: true,
  552. attr: {
  553. signFieldType: 'name',
  554. controlType: 'SignType',
  555. field: 'issueUserName',
  556. type: 'user',
  557. },
  558. index: 20,
  559. controlCat: -1,
  560. },
  561. {
  562. name: 'createDeptName',
  563. caption: '拟稿处室',
  564. dataType: 'string',
  565. specType: 'XcoaSpec',
  566. value: '综合部(办公室)',
  567. defaultValue: null,
  568. htmlType: null,
  569. mutable: true,
  570. idProperty: false,
  571. mobileVisible: true,
  572. required: false,
  573. readonly: true,
  574. attr: {
  575. signFieldType: 'name',
  576. controlType: 'SignType',
  577. field: 'createDeptName',
  578. type: 'group',
  579. },
  580. index: 21,
  581. controlCat: -1,
  582. },
  583. {
  584. name: 'serialNumber',
  585. caption: '流水号',
  586. dataType: 'number',
  587. specType: 'XcoaSpec',
  588. value: null,
  589. defaultValue: null,
  590. htmlType: null,
  591. mutable: true,
  592. idProperty: false,
  593. mobileVisible: false,
  594. required: false,
  595. readonly: false,
  596. attr: {
  597. controlType: 'StringType',
  598. field: 'serialNumber',
  599. mandatory: 'false',
  600. },
  601. index: 22,
  602. controlCat: -1,
  603. },
  604. {
  605. name: 'docType',
  606. caption: '公文类型',
  607. dataType: 'selectlist',
  608. specType: 'XcoaSpec',
  609. value: '02',
  610. defaultValue: null,
  611. htmlType: null,
  612. mutable: true,
  613. idProperty: false,
  614. mobileVisible: true,
  615. required: true,
  616. readonly: false,
  617. attr: {
  618. displayValue: '决定',
  619. controlType: 'DictType',
  620. field: 'docType',
  621. multiple: 'false',
  622. mandatory: 'true',
  623. selectListItem: [
  624. {
  625. label: '决议',
  626. value: '01',
  627. },
  628. {
  629. label: '决定',
  630. value: '02',
  631. },
  632. {
  633. label: '命令(令)',
  634. value: '03',
  635. },
  636. {
  637. label: '公报',
  638. value: '04',
  639. },
  640. {
  641. label: '公告',
  642. value: '05',
  643. },
  644. {
  645. label: '通告',
  646. value: '06',
  647. },
  648. {
  649. label: '意见',
  650. value: '07',
  651. },
  652. {
  653. label: '通知',
  654. value: '08',
  655. },
  656. {
  657. label: '通报',
  658. value: '09',
  659. },
  660. {
  661. label: '报告',
  662. value: '0A',
  663. },
  664. {
  665. label: '请示',
  666. value: '0B',
  667. },
  668. {
  669. label: '批复',
  670. value: '0C',
  671. },
  672. {
  673. label: '议案',
  674. value: '0D',
  675. },
  676. {
  677. label: '函',
  678. value: '0E',
  679. },
  680. {
  681. label: '纪要',
  682. value: '0F',
  683. },
  684. {
  685. label: '其他',
  686. value: '0Z',
  687. },
  688. ],
  689. },
  690. index: 23,
  691. controlCat: -1,
  692. },
  693. {
  694. name: 'printDate',
  695. caption: '印发日期',
  696. dataType: 'date',
  697. specType: 'XcoaSpec',
  698. value: null,
  699. defaultValue: null,
  700. htmlType: null,
  701. mutable: true,
  702. idProperty: false,
  703. mobileVisible: true,
  704. required: false,
  705. readonly: false,
  706. attr: {
  707. controlType: 'DateType',
  708. field: 'printDate',
  709. dateFormat: 'yyyy-MM-dd',
  710. showTime: 'false',
  711. showDate: 'true',
  712. mandatory: 'false',
  713. },
  714. index: 24,
  715. controlCat: -1,
  716. },
  717. {
  718. name: 'reviewer',
  719. caption: '核稿',
  720. dataType: 'string',
  721. specType: 'XcoaSpec',
  722. value: '唐纯',
  723. defaultValue: null,
  724. htmlType: null,
  725. mutable: true,
  726. idProperty: false,
  727. mobileVisible: true,
  728. required: false,
  729. readonly: true,
  730. attr: {
  731. signFieldType: 'name',
  732. controlType: 'SignType',
  733. field: 'reviewer',
  734. type: 'user',
  735. },
  736. index: 25,
  737. controlCat: -1,
  738. },
  739. {
  740. name: 'secretLevel',
  741. caption: '密级',
  742. dataType: 'selectlist',
  743. specType: 'XcoaSpec',
  744. value: '1',
  745. defaultValue: null,
  746. htmlType: null,
  747. mutable: true,
  748. idProperty: false,
  749. mobileVisible: true,
  750. required: true,
  751. readonly: false,
  752. attr: {
  753. displayValue: '秘密',
  754. controlType: 'DictType',
  755. field: 'secretLevel',
  756. multiple: 'false',
  757. mandatory: 'true',
  758. selectListItem: [
  759. {
  760. label: '无',
  761. value: '0',
  762. },
  763. {
  764. label: '秘密',
  765. value: '1',
  766. },
  767. {
  768. label: '机密',
  769. value: '2',
  770. },
  771. {
  772. label: '绝密',
  773. value: '3',
  774. },
  775. ],
  776. },
  777. index: 26,
  778. controlCat: -1,
  779. },
  780. {
  781. name: 'printCopies',
  782. caption: '份数',
  783. dataType: 'number',
  784. specType: 'XcoaSpec',
  785. value: null,
  786. defaultValue: null,
  787. htmlType: null,
  788. mutable: true,
  789. idProperty: false,
  790. mobileVisible: true,
  791. required: false,
  792. readonly: false,
  793. attr: {
  794. controlType: 'StringType',
  795. field: 'printCopies',
  796. mandatory: 'false',
  797. },
  798. index: 27,
  799. controlCat: -1,
  800. },
  801. {
  802. name: 'businessTypeId',
  803. caption: '业务类型ID',
  804. dataType: 'number',
  805. specType: 'XcoaSpec',
  806. value: 91,
  807. defaultValue: null,
  808. htmlType: null,
  809. mutable: true,
  810. idProperty: false,
  811. mobileVisible: false,
  812. required: false,
  813. readonly: false,
  814. attr: {
  815. controlType: 'NumberType',
  816. field: 'businessTypeId',
  817. mandatory: 'false',
  818. },
  819. index: 28,
  820. controlCat: -1,
  821. },
  822. {
  823. name: 'phoneNumber',
  824. caption: '联系电话',
  825. dataType: 'string',
  826. specType: 'XcoaSpec',
  827. value: null,
  828. defaultValue: '1233333',
  829. htmlType: null,
  830. mutable: true,
  831. idProperty: false,
  832. mobileVisible: true,
  833. required: false,
  834. readonly: false,
  835. attr: {
  836. controlType: 'StringType',
  837. field: 'phoneNumber',
  838. defaultValue: '1233333',
  839. mandatory: 'false',
  840. maxLength: '20',
  841. },
  842. index: 29,
  843. controlCat: -1,
  844. },
  845. {
  846. name: 'issueOpinion',
  847. caption: '签发',
  848. dataType: 'OpinionView',
  849. specType: 'XcoaSpec',
  850. value: null,
  851. defaultValue: null,
  852. htmlType: null,
  853. mutable: false,
  854. idProperty: false,
  855. mobileVisible: true,
  856. required: false,
  857. readonly: true,
  858. attr: {
  859. controlType: 'OpinionViewType',
  860. field: 'issueOpinion',
  861. dataType: 'opinionView',
  862. opinions: [
  863. {
  864. id: 6936,
  865. formId: 'oaDocDispatch',
  866. field: 'issueOpinion',
  867. beanId: '2472',
  868. flowInstanceId: 5238,
  869. stepSerialNumber: 4,
  870. operator: {
  871. type: 'User',
  872. code: 'hdadmin',
  873. name: '系统管理员',
  874. attrs: {
  875. signature: '621',
  876. },
  877. },
  878. signer: {
  879. userAccount: 'hdadmin',
  880. userName: '系统管理员',
  881. },
  882. signDate: 1603702309216,
  883. content: {
  884. signContent: '',
  885. signUserName: '系统管理员',
  886. signDeptName: '系统管理员',
  887. signDate: 1603702309216,
  888. attrs: {
  889. attachment: '61860',
  890. attachments: [],
  891. },
  892. },
  893. },
  894. ],
  895. },
  896. index: 30,
  897. controlCat: -1,
  898. },
  899. {
  900. name: 'approveOpinion',
  901. caption: '意见',
  902. dataType: 'opinion',
  903. specType: 'XcoaSpec',
  904. value: '{"value":{"attrs":{"attachment":"76630"}}}',
  905. defaultValue: null,
  906. htmlType: null,
  907. mutable: true,
  908. idProperty: false,
  909. mobileVisible: true,
  910. required: false,
  911. readonly: true,
  912. attr: {
  913. controlType: 'OpinionType',
  914. field: 'approveOpinion',
  915. opinions: [
  916. {
  917. id: 6932,
  918. formId: 'oaDocDispatch',
  919. field: 'approveOpinion',
  920. beanId: '2472',
  921. flowInstanceId: 5238,
  922. stepSerialNumber: 0,
  923. operator: {
  924. type: 'User',
  925. code: 'tangchun',
  926. name: '唐纯',
  927. attrs: null,
  928. },
  929. signer: {
  930. userAccount: 'tangchun',
  931. userName: '唐纯',
  932. },
  933. signDate: 1603702168123,
  934. content: {
  935. signContent: '',
  936. signUserName: '唐纯',
  937. signDeptName: '综合部(办公室)',
  938. signDate: 1603702168123,
  939. attrs: {
  940. attachment: '61848',
  941. attachments: [],
  942. },
  943. },
  944. },
  945. {
  946. id: 6933,
  947. formId: 'oaDocDispatch',
  948. field: 'approveOpinion',
  949. beanId: '2472',
  950. flowInstanceId: 5238,
  951. stepSerialNumber: 1,
  952. operator: {
  953. type: 'User',
  954. code: 'tangchun',
  955. name: '唐纯',
  956. attrs: null,
  957. },
  958. signer: {
  959. userAccount: 'tangchun',
  960. userName: '唐纯',
  961. },
  962. signDate: 1603702216885,
  963. content: {
  964. signContent: '',
  965. signUserName: '唐纯',
  966. signDeptName: '综合部(办公室)',
  967. signDate: 1603702216885,
  968. attrs: {
  969. attachment: '61855',
  970. attachments: [],
  971. },
  972. },
  973. },
  974. {
  975. id: 6934,
  976. formId: 'oaDocDispatch',
  977. field: 'approveOpinion',
  978. beanId: '2472',
  979. flowInstanceId: 5238,
  980. stepSerialNumber: 2,
  981. operator: {
  982. type: 'User',
  983. code: 'tangchun',
  984. name: '唐纯',
  985. attrs: null,
  986. },
  987. signer: {
  988. userAccount: 'tangchun',
  989. userName: '唐纯',
  990. },
  991. signDate: 1603702250202,
  992. content: {
  993. signContent: '',
  994. signUserName: '唐纯',
  995. signDeptName: '综合部(办公室)',
  996. signDate: 1603702250202,
  997. attrs: {
  998. attachment: '61857',
  999. attachments: [],
  1000. },
  1001. },
  1002. },
  1003. {
  1004. id: 6935,
  1005. formId: 'oaDocDispatch',
  1006. field: 'approveOpinion',
  1007. beanId: '2472',
  1008. flowInstanceId: 5238,
  1009. stepSerialNumber: 3,
  1010. operator: {
  1011. type: 'User',
  1012. code: 'hdadmin',
  1013. name: '系统管理员',
  1014. attrs: {
  1015. signature: '621',
  1016. },
  1017. },
  1018. signer: {
  1019. userAccount: 'hdadmin',
  1020. userName: '系统管理员',
  1021. },
  1022. signDate: 1603702293810,
  1023. content: {
  1024. signContent: '',
  1025. signUserName: '系统管理员',
  1026. signDeptName: '系统管理员',
  1027. signDate: 1603702293810,
  1028. attrs: {
  1029. attachment: '61858',
  1030. attachments: [],
  1031. },
  1032. },
  1033. },
  1034. ],
  1035. },
  1036. index: 31,
  1037. controlCat: -1,
  1038. },
  1039. {
  1040. name: 'belongedOrgId',
  1041. caption: '所属分级机构ID',
  1042. dataType: 'default',
  1043. specType: 'XcoaSpec',
  1044. value: -1,
  1045. defaultValue: null,
  1046. htmlType: null,
  1047. mutable: true,
  1048. idProperty: false,
  1049. mobileVisible: false,
  1050. required: false,
  1051. readonly: false,
  1052. attr: {
  1053. controlType: 'NumberType',
  1054. field: 'belongedOrgId',
  1055. },
  1056. index: 32,
  1057. controlCat: -1,
  1058. },
  1059. {
  1060. name: 'open',
  1061. caption: '是否公开',
  1062. dataType: 'selectlist',
  1063. specType: 'XcoaSpec',
  1064. value: null,
  1065. defaultValue: '0',
  1066. htmlType: null,
  1067. mutable: true,
  1068. idProperty: false,
  1069. mobileVisible: true,
  1070. required: false,
  1071. readonly: false,
  1072. attr: {
  1073. controlType: 'DictType',
  1074. field: 'open',
  1075. defaultValue: '0',
  1076. multiple: 'false',
  1077. mandatory: 'false',
  1078. selectListItem: [
  1079. {
  1080. label: '公开',
  1081. value: '1',
  1082. },
  1083. {
  1084. label: '不公开',
  1085. value: '0',
  1086. },
  1087. ],
  1088. },
  1089. index: 33,
  1090. controlCat: -1,
  1091. },
  1092. {
  1093. name: 'remarks',
  1094. caption: '备注说明',
  1095. dataType: 'string',
  1096. specType: 'XcoaSpec',
  1097. value: null,
  1098. defaultValue: null,
  1099. htmlType: null,
  1100. mutable: true,
  1101. idProperty: false,
  1102. mobileVisible: true,
  1103. required: false,
  1104. readonly: false,
  1105. attr: {
  1106. controlType: 'StringType',
  1107. field: 'remarks',
  1108. mandatory: 'false',
  1109. maxLength: '2000',
  1110. },
  1111. index: 34,
  1112. controlCat: -1,
  1113. },
  1114. ],
  1115. },
  1116. processLogInfo: [
  1117. {
  1118. index: 1,
  1119. operator: '唐纯',
  1120. operatorAccount: 'tangchun',
  1121. opinion: null,
  1122. signDate: 1603702168123,
  1123. finishDate: 1603702169970,
  1124. actionName: '部门领导审核',
  1125. stepName: '拟稿',
  1126. processLogAttachments: [],
  1127. stepSerialNumber: 0,
  1128. subFlowLogInfo: null,
  1129. props: {
  1130. source: 'WE.OFFICE',
  1131. opinionId: '6932',
  1132. stepNameOfSubmit: '拟稿',
  1133. stepIdOfSubmit: 'G_1_FWGS.1',
  1134. stepTypeOfSubmit: '起始',
  1135. },
  1136. instId: 5238,
  1137. actionId: 'G_1_FWGS.1',
  1138. stepId: 'G_1_FWGS.1',
  1139. stepType: '起始',
  1140. trustor: null,
  1141. trustorName: null,
  1142. subInstId: 0,
  1143. processTime: null,
  1144. importOpinion: null,
  1145. },
  1146. {
  1147. index: 2,
  1148. operator: '唐纯',
  1149. operatorAccount: 'tangchun',
  1150. opinion: null,
  1151. signDate: 1603702216885,
  1152. finishDate: 1603702217187,
  1153. actionName: '送起草人',
  1154. stepName: '部门领导审核',
  1155. processLogAttachments: [],
  1156. stepSerialNumber: 1,
  1157. subFlowLogInfo: null,
  1158. props: {
  1159. source: 'WE.OFFICE',
  1160. opinionId: '6933',
  1161. stepNameOfSubmit: '部门领导审核',
  1162. stepIdOfSubmit: 'G_1_FWGS.2',
  1163. stepTypeOfSubmit: '一般',
  1164. },
  1165. instId: 5238,
  1166. actionId: 'G_1_FWGS.2',
  1167. stepId: 'G_1_FWGS.2',
  1168. stepType: '一般',
  1169. trustor: null,
  1170. trustorName: null,
  1171. subInstId: 0,
  1172. processTime: null,
  1173. importOpinion: null,
  1174. },
  1175. {
  1176. index: 3,
  1177. operator: '唐纯',
  1178. operatorAccount: 'tangchun',
  1179. opinion: null,
  1180. signDate: 1603702250202,
  1181. finishDate: 1603702250506,
  1182. actionName: '核稿',
  1183. stepName: '送起草人',
  1184. processLogAttachments: [],
  1185. stepSerialNumber: 2,
  1186. subFlowLogInfo: null,
  1187. props: {
  1188. source: 'WE.OFFICE',
  1189. opinionId: '6934',
  1190. stepNameOfSubmit: '送起草人',
  1191. stepIdOfSubmit: 'G_1_FWGS.3',
  1192. stepTypeOfSubmit: '一般',
  1193. },
  1194. instId: 5238,
  1195. actionId: 'G_1_FWGS.5',
  1196. stepId: 'G_1_FWGS.3',
  1197. stepType: '一般',
  1198. trustor: null,
  1199. trustorName: null,
  1200. subInstId: 0,
  1201. processTime: null,
  1202. importOpinion: null,
  1203. },
  1204. {
  1205. index: 4,
  1206. operator: '系统管理员',
  1207. operatorAccount: 'hdadmin',
  1208. opinion: null,
  1209. signDate: 1603702293810,
  1210. finishDate: 1603702294122,
  1211. actionName: '领导签发',
  1212. stepName: '核稿',
  1213. processLogAttachments: [],
  1214. stepSerialNumber: 3,
  1215. subFlowLogInfo: null,
  1216. props: {
  1217. source: 'WE.OFFICE',
  1218. opinionId: '6935',
  1219. stepNameOfSubmit: '核稿',
  1220. stepIdOfSubmit: 'G_1_FWGS.4',
  1221. stepTypeOfSubmit: '一般',
  1222. },
  1223. instId: 5238,
  1224. actionId: 'G_1_FWGS.6',
  1225. stepId: 'G_1_FWGS.4',
  1226. stepType: '一般',
  1227. trustor: null,
  1228. trustorName: null,
  1229. subInstId: 0,
  1230. processTime: null,
  1231. importOpinion: null,
  1232. },
  1233. {
  1234. index: 5,
  1235. operator: '系统管理员',
  1236. operatorAccount: 'hdadmin',
  1237. opinion: null,
  1238. signDate: 1603702309216,
  1239. finishDate: 1603702309502,
  1240. actionName: '核稿',
  1241. stepName: '领导签发',
  1242. processLogAttachments: [],
  1243. stepSerialNumber: 4,
  1244. subFlowLogInfo: null,
  1245. props: {
  1246. source: 'WE.OFFICE',
  1247. opinionId: '6936',
  1248. stepNameOfSubmit: '领导签发',
  1249. stepIdOfSubmit: 'G_1_FWGS.6',
  1250. stepTypeOfSubmit: '一般',
  1251. },
  1252. instId: 5238,
  1253. actionId: 'G_1_FWGS.7',
  1254. stepId: 'G_1_FWGS.6',
  1255. stepType: '一般',
  1256. trustor: null,
  1257. trustorName: null,
  1258. subInstId: 0,
  1259. processTime: null,
  1260. importOpinion: null,
  1261. },
  1262. ],
  1263. communicationLogInfo: [],
  1264. informLogInfo: [],
  1265. reminderLogInfo: [],
  1266. lockId: 0,
  1267. buttons: [
  1268. {
  1269. buttonId: 'we-doc$print',
  1270. buttonName: '打印',
  1271. },
  1272. {
  1273. buttonId: 'we-doc$close',
  1274. buttonName: '退出',
  1275. },
  1276. {
  1277. buttonId: 'workflow$inform',
  1278. buttonName: '知会',
  1279. attrs: null,
  1280. rollbackSteps: null,
  1281. },
  1282. {
  1283. buttonId: 'workflow$turnToDo',
  1284. buttonName: '转办',
  1285. attrs: null,
  1286. rollbackSteps: null,
  1287. },
  1288. {
  1289. buttonId: 'workflow$comm',
  1290. buttonName: '沟通',
  1291. attrs: null,
  1292. rollbackSteps: null,
  1293. },
  1294. {
  1295. buttonId: 'workflow$interfere',
  1296. buttonName: '驳回',
  1297. attrs: null,
  1298. rollbackSteps: [
  1299. {
  1300. historyStepId: 9671,
  1301. historyStepName: '开始',
  1302. userAccount: 'hdadmin',
  1303. userName: '系统管理员',
  1304. },
  1305. ],
  1306. },
  1307. ],
  1308. saveButtons: [
  1309. {
  1310. buttonId: 'save_G_1_FWGS.4',
  1311. buttonName: '保存',
  1312. attrs: null,
  1313. rollbackSteps: null,
  1314. },
  1315. ],
  1316. pushButtons: [
  1317. {
  1318. buttonId: 'G_1_FWGS.6',
  1319. buttonName: '领导签发',
  1320. attrs: null,
  1321. rollbackSteps: null,
  1322. },
  1323. {
  1324. buttonId: 'G_1_FWGS.8',
  1325. buttonName: '文书',
  1326. attrs: null,
  1327. rollbackSteps: null,
  1328. },
  1329. ],
  1330. processActiveLogInfo: [
  1331. {
  1332. index: 1,
  1333. operator: '系统管理员',
  1334. operatorCode: 'hdadmin',
  1335. operatorType: 'User',
  1336. status: '处理中',
  1337. stepName: '核稿',
  1338. users: [
  1339. {
  1340. account: 'hdadmin',
  1341. name: '系统管理员',
  1342. },
  1343. ],
  1344. },
  1345. ],
  1346. opinions: [
  1347. {
  1348. id: 6932,
  1349. formId: 'oaDocDispatch',
  1350. field: 'approveOpinion',
  1351. beanId: '2472',
  1352. flowInstanceId: 5238,
  1353. stepSerialNumber: 0,
  1354. operator: {
  1355. type: 'User',
  1356. code: 'tangchun',
  1357. name: '唐纯',
  1358. attrs: null,
  1359. attrNames: [],
  1360. },
  1361. signer: {
  1362. account: 'tangchun',
  1363. name: '唐纯',
  1364. },
  1365. signDate: 1603702168123,
  1366. content: {
  1367. signContent: '',
  1368. signUserName: '唐纯',
  1369. signDeptName: '综合部(办公室)',
  1370. signDate: 1603702168123,
  1371. attrs: {
  1372. attachment: '61848',
  1373. },
  1374. },
  1375. opinionType: 0,
  1376. props: null,
  1377. },
  1378. {
  1379. id: 6933,
  1380. formId: 'oaDocDispatch',
  1381. field: 'approveOpinion',
  1382. beanId: '2472',
  1383. flowInstanceId: 5238,
  1384. stepSerialNumber: 1,
  1385. operator: {
  1386. type: 'User',
  1387. code: 'tangchun',
  1388. name: '唐纯',
  1389. attrs: null,
  1390. attrNames: [],
  1391. },
  1392. signer: {
  1393. account: 'tangchun',
  1394. name: '唐纯',
  1395. },
  1396. signDate: 1603702216885,
  1397. content: {
  1398. signContent: '',
  1399. signUserName: '唐纯',
  1400. signDeptName: '综合部(办公室)',
  1401. signDate: 1603702216885,
  1402. attrs: {
  1403. attachment: '61855',
  1404. },
  1405. },
  1406. opinionType: 0,
  1407. props: null,
  1408. },
  1409. {
  1410. id: 6934,
  1411. formId: 'oaDocDispatch',
  1412. field: 'approveOpinion',
  1413. beanId: '2472',
  1414. flowInstanceId: 5238,
  1415. stepSerialNumber: 2,
  1416. operator: {
  1417. type: 'User',
  1418. code: 'tangchun',
  1419. name: '唐纯',
  1420. attrs: null,
  1421. attrNames: [],
  1422. },
  1423. signer: {
  1424. account: 'tangchun',
  1425. name: '唐纯',
  1426. },
  1427. signDate: 1603702250202,
  1428. content: {
  1429. signContent: '',
  1430. signUserName: '唐纯',
  1431. signDeptName: '综合部(办公室)',
  1432. signDate: 1603702250202,
  1433. attrs: {
  1434. attachment: '61857',
  1435. },
  1436. },
  1437. opinionType: 0,
  1438. props: null,
  1439. },
  1440. {
  1441. id: 6935,
  1442. formId: 'oaDocDispatch',
  1443. field: 'approveOpinion',
  1444. beanId: '2472',
  1445. flowInstanceId: 5238,
  1446. stepSerialNumber: 3,
  1447. operator: {
  1448. type: 'User',
  1449. code: 'hdadmin',
  1450. name: '系统管理员',
  1451. attrs: null,
  1452. attrNames: [],
  1453. },
  1454. signer: {
  1455. account: 'hdadmin',
  1456. name: '系统管理员',
  1457. },
  1458. signDate: 1603702293810,
  1459. content: {
  1460. signContent: '',
  1461. signUserName: '系统管理员',
  1462. signDeptName: '系统管理员',
  1463. signDate: 1603702293810,
  1464. attrs: {
  1465. attachment: '61858',
  1466. },
  1467. },
  1468. opinionType: 0,
  1469. props: null,
  1470. },
  1471. {
  1472. id: 6936,
  1473. formId: 'oaDocDispatch',
  1474. field: 'issueOpinion',
  1475. beanId: '2472',
  1476. flowInstanceId: 5238,
  1477. stepSerialNumber: 4,
  1478. operator: {
  1479. type: 'User',
  1480. code: 'hdadmin',
  1481. name: '系统管理员',
  1482. attrs: null,
  1483. attrNames: [],
  1484. },
  1485. signer: {
  1486. account: 'hdadmin',
  1487. name: '系统管理员',
  1488. },
  1489. signDate: 1603702309216,
  1490. content: {
  1491. signContent: '',
  1492. signUserName: '系统管理员',
  1493. signDeptName: '系统管理员',
  1494. signDate: 1603702309216,
  1495. attrs: {
  1496. attachment: '61860',
  1497. },
  1498. },
  1499. opinionType: 0,
  1500. props: null,
  1501. },
  1502. ],
  1503. remindOpinions: [],
  1504. communicationOpinions: [],
  1505. attrs: {
  1506. isSubflow: false,
  1507. workflowStatus: 'ACTIVATED',
  1508. 'we-doc$changeFileFormat': 'true',
  1509. 'we-doc$redheader': 'true',
  1510. stepN: 5,
  1511. 'we-doc$cleanCopy': 'true',
  1512. 'we-doc$putSealOn': 'true',
  1513. auditElement: [],
  1514. },
  1515. optimistic: true,
  1516. pageTitle: '表单样例(操作按钮点击会报错)',
  1517. rollbackType: ['workflow$interfere', 'workflow$return_interfere'],
  1518. rollbackSteps: [
  1519. {
  1520. historyStepId: 7841,
  1521. historyStepName: '领导签发',
  1522. userAccount: 'hdadmin',
  1523. userName: '系统管理员',
  1524. },
  1525. {
  1526. historyStepId: 7839,
  1527. historyStepName: '送起草人',
  1528. userAccount: 'tangchun',
  1529. userName: '唐纯',
  1530. },
  1531. {
  1532. historyStepId: 7838,
  1533. historyStepName: '部门领导审核',
  1534. userAccount: 'tangchun',
  1535. userName: '唐纯',
  1536. },
  1537. {
  1538. historyStepId: 7837,
  1539. historyStepName: '拟稿',
  1540. userAccount: 'tangchun',
  1541. userName: '唐纯',
  1542. },
  1543. ],
  1544. })
  1545. })
  1546. }
  1547. FlowService.getData = getDataMock