case-progress-zhencha-form.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 CaseMixins from '../case-mixins.js'
  16. import LawService from '../../law-service'
  17. import components from './_import-components/case-progress-zhencha-form-import'
  18. export default {
  19. name: 'CaseProgressZhenchaForm',
  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 === 'CASE_USERS') {
  46. // 涉案人员赋值
  47. this.$refs.webflow.setFieldValue('CASE_USERS_NAME', item.value)
  48. }
  49. })
  50. })
  51. }
  52. },
  53. },
  54. }
  55. </script>
  56. <style module lang="scss">
  57. @use '@/common/design' as *;
  58. </style>