iam-dm-finsystem-form.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <audit-form-top-banner :handel-save-form="saveForm" :form-data="mode" @handelSaveForm="saveForm">
  3. <sd-detail-form
  4. ref="docform"
  5. form-id="iamFinFinancialSystem"
  6. page-id="dm/finsystem/iamFinFinancialSystem"
  7. :record-id="this.$route.query.record ? parseInt(this.$route.query.record) : null"
  8. :class="$style.form"
  9. :read-only="!saveFlag"
  10. @close="close(true)"
  11. @saved="saved"
  12. @sdFormReady="sdFormReady"
  13. >
  14. <template v-slot="{ model, fields }">
  15. <table>
  16. <tr>
  17. <td style="padding-left:5px;border:none">
  18. <audit-advanced-group
  19. :expand="basicExpand"
  20. :expand-str="'basicExpand'"
  21. :group-label="'基本信息'"
  22. tablestyle="''"
  23. @changedClick="changedClick"
  24. ></audit-advanced-group>
  25. </td>
  26. </tr>
  27. </table>
  28. <table v-show="basicExpand">
  29. <tr>
  30. <!-- 财务系统名称 -->
  31. <sd-form-item-td name="financialSystemName" />
  32. <!-- 财务系统版本 -->
  33. <sd-form-item-td name="financialSystemVersion" />
  34. </tr>
  35. <tr>
  36. <!-- 账套查询SQL -->
  37. <sd-form-item-td name="bookSetQuerySql" :colspan="3">
  38. <a-textarea v-model="model.bookSetQuerySql" :auto-size="{ minRows: 3, maxRows: 3 }" />
  39. </sd-form-item-td>
  40. </tr>
  41. <tr>
  42. <!-- 维护人员 -->
  43. <sd-form-item-td name="creatorName" />
  44. <!-- 维护日期 -->
  45. <sd-form-item-td name="creationTime" />
  46. </tr>
  47. </table>
  48. </template>
  49. </sd-detail-form>
  50. </audit-form-top-banner>
  51. </template>
  52. <script>
  53. import axios from '@/common/services/axios-instance'
  54. import { message } from '@/common/one-ui'
  55. import crossWindowWatcher from '@/common/services/cross-window-watcher'
  56. import auditFormTopBanner from '@product/iam/components/audit-form-top-banner'
  57. import auditAdvancedGroup from '@product/iam//components/audit-advanced-group.vue'
  58. import auditAdvancedGroupMixins from '@product/iam//components/audit-advanced-group-mixins'
  59. import components from './_import-components/iam-dm-finsystem-form-import'
  60. export default {
  61. name: 'IamDmFinsystemForm',
  62. metaInfo: {
  63. title: '财务系统版本',
  64. },
  65. components: {
  66. ...components,
  67. auditAdvancedGroup,
  68. auditFormTopBanner,
  69. },
  70. mixins: [auditAdvancedGroupMixins],
  71. data() {
  72. return {
  73. saveFlag: true,
  74. mode: null,
  75. basicExpand: true,
  76. }
  77. },
  78. methods: {
  79. // 页面加载完成后
  80. sdFormReady() {
  81. this.mode = this.$refs.docform.formData.mode
  82. },
  83. // 保存
  84. saveForm() {
  85. this.$refs.docform.saveBtnClick()
  86. },
  87. saved() {
  88. message.success({ content: '保存成功' }).then(() => {
  89. this.close(true)
  90. })
  91. },
  92. close(flag) {
  93. crossWindowWatcher.notifyChange(this.$route.fullPath, flag)
  94. window.close()
  95. },
  96. },
  97. }
  98. </script>
  99. <style module lang="scss">
  100. @use '@/common/design' as *;
  101. @import '@/webflow/sd-flow-form.scss';
  102. </style>