Blame view

src/components/community/RoomToExamine.vue 2.28 KB
e4e31451   wuxw   完成物业首页功能
1
  <template>
8fc7c791   wuxw   测试完成房屋装修模块
2
    <el-dialog :title="$t('roomRenovationManage.review')" :visible.sync="visible" width="40%" @close="resetForm">
e4e31451   wuxw   完成物业首页功能
3
4
      <el-form :model="form" ref="form" label-width="120px">
        <el-form-item :label="$t('roomRenovationManage.room')" prop="roomName">
8fc7c791   wuxw   测试完成房屋装修模块
5
          <el-input v-model.trim="form.roomName" disabled />
e4e31451   wuxw   完成物业首页功能
6
        </el-form-item>
8fc7c791   wuxw   测试完成房屋装修模块
7
  
e4e31451   wuxw   完成物业首页功能
8
9
        <el-form-item :label="$t('roomRenovationManage.status')" prop="state" required>
          <el-select v-model="form.state">
8fc7c791   wuxw   测试完成房屋装修模块
10
11
            <el-option :label="$t('roomRenovationManage.reviewPass')" value="3000" />
            <el-option :label="$t('roomRenovationManage.reviewReject')" value="2000" />
e4e31451   wuxw   完成物业首页功能
12
13
          </el-select>
        </el-form-item>
8fc7c791   wuxw   测试完成房屋装修模块
14
  
e4e31451   wuxw   完成物业首页功能
15
        <el-form-item :label="$t('roomRenovationManage.reviewOpinion')" prop="examineRemark" required>
8fc7c791   wuxw   测试完成房屋装修模块
16
          <el-input v-model.trim="form.examineRemark" type="textarea" />
e4e31451   wuxw   完成物业首页功能
17
18
        </el-form-item>
      </el-form>
8fc7c791   wuxw   测试完成房屋装修模块
19
  
e4e31451   wuxw   完成物业首页功能
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
      <div slot="footer" class="dialog-footer">
        <el-button @click="visible = false">
          {{ $t('roomRenovationManage.cancel') }}
        </el-button>
        <el-button type="primary" @click="saveRoomToExamine">
          {{ $t('roomRenovationManage.save') }}
        </el-button>
      </div>
    </el-dialog>
  </template>
  
  <script>
  import { updateRoomToExamine } from '@/api/community/roomRenovationManageApi'
  
  export default {
    name: 'RoomToExamine',
    data() {
      return {
        visible: false,
        form: {
          rId: '',
          roomName: '',
          state: '',
          examineRemark: '',
          communityId: ''
        }
      }
    },
    methods: {
      open(row) {
        this.form = {
          rId: row.rId,
          roomName: row.roomName,
          state: '',
          examineRemark: '',
81955f61   wuxw   优化房屋页面
55
          communityId: this.getCommunityId()
e4e31451   wuxw   完成物业首页功能
56
57
58
        }
        this.visible = true
      },
8fc7c791   wuxw   测试完成房屋装修模块
59
  
e4e31451   wuxw   完成物业首页功能
60
61
62
63
64
65
66
67
68
      resetForm() {
        this.form = {
          rId: '',
          roomName: '',
          state: '',
          examineRemark: '',
          communityId: ''
        }
      },
8fc7c791   wuxw   测试完成房屋装修模块
69
  
e4e31451   wuxw   完成物业首页功能
70
71
72
73
74
75
76
77
78
79
80
81
82
83
      async saveRoomToExamine() {
        try {
          await updateRoomToExamine(this.form)
          this.$message.success(this.$t('common.operationSuccess'))
          this.visible = false
          this.$emit('success')
        } catch (error) {
          console.error('保存审核信息失败:', error)
          this.$message.error(error.message || this.$t('common.operationFailed'))
        }
      }
    }
  }
  </script>