case-progress-sqccbq-form.vue 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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-sqccbq-form-import'
  17. export default {
  18. name: 'CaseProgressSqccbqForm',
  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. // 财产
  47. _this.$refs.webflow.setFieldValue('title', CASE_NAME + '-' + CASE_STAGE_NAME + mmc)
  48. }
  49. }
  50. }, 1000)
  51. },
  52. methods: {
  53. initDatap() {
  54. if (this.create) {
  55. this.initData()
  56. const _this = this
  57. const ini = setInterval(() => {
  58. if (
  59. _this.$refs.webflow &&
  60. (_this.$refs.webflow.$refs.form || _this.$refs.webflow.$refs.sdForm)
  61. ) {
  62. clearInterval(ini)
  63. const mmc = _this.$refs.webflow.getFieldValue('STEP_NAME')
  64. if (mmc) {
  65. document.querySelector('.toptitle_sd-header_common').innerHTML = mmc
  66. // 案件名称
  67. const CASE_NAME = _this.$refs.webflow.getFieldValue('CASE_NAME')
  68. // 案件阶段中文名
  69. const CASE_STAGE_NAME = _this.$refs.webflow.getFieldValue('CASE_STAGE_NAME')
  70. // 财产
  71. _this.$refs.webflow.setFieldValue('title', CASE_NAME + '-' + CASE_STAGE_NAME + mmc)
  72. }
  73. }
  74. }, 1000)
  75. }
  76. },
  77. },
  78. }
  79. </script>
  80. <style module lang="scss">
  81. @use '@/common/design' as *;
  82. </style>