case-progress-ktsl-form.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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-ktsl-form-import'
  18. export default {
  19. name: 'caseProgressKtslForm',
  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. const caseId = this.$route.query.id
  39. // 获取案件信息
  40. LawService.findByCase(caseId).then((res) => {
  41. this.$refs.webflow.setFieldValue('ORG_TYPE', res.data[0].COURT_TYPE)
  42. this.$refs.webflow.setFieldValue('ACCEPT_ORG_ID', res.data[0].COURT_ID)
  43. this.$refs.webflow.setFieldValue('ACCEPT_ORG_CODE', res.data[0].COURT_ID)
  44. this.$refs.webflow.setFieldValue('ACCEPT_ORG_NAME', res.data[0].COURT)
  45. })
  46. }
  47. },
  48. },
  49. }
  50. </script>
  51. <style module lang="scss">
  52. @use '@/common/design' as *;
  53. </style>