case-progress-ssxx-form.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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-ssxx-form-import'
  18. export default {
  19. name: 'caseProgressSsxxForm',
  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('CASE_NAME', res.data[0].CASE_NAME)
  42. this.$refs.webflow.setFieldValue('CASE_TYPE', res.data[0].CASE_TYPE)
  43. this.$refs.webflow.setFieldValue('COURT_TYPE', res.data[0].COURT_TYPE)
  44. this.$refs.webflow.setFieldValue('CASE_NO', res.data[0].CURRENTNUMBER)
  45. this.$refs.webflow.setFieldValue('COURT_ID', res.data[0].COURT_ID)
  46. this.$refs.webflow.setFieldValue('COURT_NAME', res.data[0].COURT)
  47. })
  48. }
  49. },
  50. },
  51. }
  52. </script>
  53. <style module lang="scss">
  54. @use '@/common/design' as *;
  55. </style>