case-progress-sshf-form.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <sd-webflow
  3. ref="webflow"
  4. @afterDispatch="afterDispatch"
  5. @saveproject="save"
  6. @sdFormReady="initDatap"
  7. @actionBtnClick="actionBtnClick"
  8. >
  9. <template v-slot:form="{ model, FlowData }">
  10. <sd-form-by-builder ref="builderform" :form-data="FlowData.processFormData" />
  11. </template>
  12. </sd-webflow>
  13. </template>
  14. <script>
  15. import LawService from '../../law-service'
  16. import CaseMixins from '../case-mixins.js'
  17. import components from './_import-components/case-progress-sshf-form-import'
  18. export default {
  19. name: 'CaseProgressSshfForm',
  20. metaInfo: {
  21. title: '案件进展-诉讼恢复',
  22. },
  23. components,
  24. mixins: [CaseMixins],
  25. data() {
  26. return {}
  27. },
  28. created() {
  29. this.type = 'progress'
  30. },
  31. mounted() {
  32. this.type = 'progress'
  33. },
  34. methods: {
  35. initDatap() {
  36. if (this.create) {
  37. this.initData()
  38. // 获取案件信息
  39. LawService.getBeanByFormId(
  40. this.$route.query.id,
  41. 'onl:d0bb8202233c48f0b5148776754461e1'
  42. ).then((res) => {
  43. const obj = res.data.pageFormData.pageFieldInfos
  44. obj.forEach((item) => {
  45. if (item.name === 'REPORT_USER_OPT') {
  46. var userObj = JSON.parse(item.value)
  47. this.$refs.webflow.setFieldValue('APPLY_USER_NAME', userObj)
  48. }
  49. if (item.name === 'REPORT_USER_ID') {
  50. this.$refs.webflow.setFieldValue('APPLY_USER_ID', item.value)
  51. }
  52. if (item.name === 'REPORT_USER_CODE') {
  53. this.$refs.webflow.setFieldValue('APPLY_USER_CODE', item.value)
  54. }
  55. })
  56. })
  57. }
  58. },
  59. },
  60. }
  61. </script>
  62. <style module lang="scss">
  63. @use '@/common/design' as *;
  64. </style>