case-progress-sqsfjd-form.vue 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 components from './_import-components/case-progress-sqsfjd-form-import'
  17. export default {
  18. name: 'CaseProgressSqsfjdForm',
  19. metaInfo: {
  20. title: '案件进展-诉前司法鉴定',
  21. },
  22. components,
  23. mixins: [CaseMixins],
  24. data() {
  25. return {}
  26. },
  27. created() {
  28. this.type = 'progress'
  29. },
  30. mounted() {
  31. this.type = 'progress'
  32. const _this = this
  33. const ini = setInterval(() => {
  34. if (
  35. _this.$refs.webflow &&
  36. (_this.$refs.webflow.$refs.form || _this.$refs.webflow.$refs.sdForm)
  37. ) {
  38. clearInterval(ini)
  39. const mmc = _this.$refs.webflow.getFieldValue('STEP_NAME')
  40. if (mmc) {
  41. document.querySelector('.toptitle_sd-header_common').innerHTML = mmc
  42. // 案件名称
  43. const CASE_NAME = _this.$refs.webflow.getFieldValue('CASE_NAME')
  44. // 案件阶段中文名
  45. const CASE_STAGE_NAME = _this.$refs.webflow.getFieldValue('CASE_STAGE_NAME')
  46. _this.$refs.webflow.setFieldValue('title', CASE_NAME + '-' + CASE_STAGE_NAME + mmc)
  47. }
  48. }
  49. }, 100)
  50. },
  51. methods: {
  52. initDatap() {
  53. if (this.create) {
  54. this.initData()
  55. const _this = this
  56. const ini = setInterval(() => {
  57. if (
  58. _this.$refs.webflow &&
  59. (_this.$refs.webflow.$refs.form || _this.$refs.webflow.$refs.sdForm)
  60. ) {
  61. clearInterval(ini)
  62. const mmc = _this.$refs.webflow.getFieldValue('STEP_NAME')
  63. if (mmc) {
  64. document.querySelector('.toptitle_sd-header_common').innerHTML = mmc
  65. // 案件名称
  66. const CASE_NAME = _this.$refs.webflow.getFieldValue('CASE_NAME')
  67. // 案件阶段中文名
  68. const CASE_STAGE_NAME = _this.$refs.webflow.getFieldValue('CASE_STAGE_NAME')
  69. _this.$refs.webflow.setFieldValue('title', CASE_NAME + '-' + CASE_STAGE_NAME + mmc)
  70. }
  71. }
  72. }, 1000)
  73. }
  74. },
  75. },
  76. }
  77. </script>
  78. <style module lang="scss">
  79. @use '@/common/design' as *;
  80. </style>