1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
| <template>
| <div class="cur-container-box">
| <div class="content-box">
| 审核当前项
| </div>
| <div class="footer-btn-box">
| <el-button type="primary" size="small" @click="auditPass">通 过</el-button>
| <el-button size="small" @click="auditTurnDown">驳 回</el-button>
| </div>
|
| <el-dialog append-to-body :visible.sync="auditTurnDownPopup" width="30%" :close-on-click-modal="false"
| @close="popupClose" :show-close="false">
| <avue-form ref="replyForm" :option="option" v-model="form" @submit="handleSubmit" @reset-change="handleReset">
| </avue-form>
| </el-dialog>
| </div>
| </template>
|
| <script>
| import {
| setCheckPlaceExt
| } from "@/api/place/place"
|
| export default {
| inject: ["placeElement"],
|
| data () {
| return {
| auditTurnDownPopup: false,
|
| form: {},
| option: {
| submitBtn: true,
| submitText: '确定',
| emptyBtn: true,
| emptyText: '取消',
| column: [
| {
| span: 24,
| label: "驳回原因",
| prop: "confirmNotion",
| type: 'textarea',
| minRows: 3,
| maxRows: 5,
| rules: [{
| required: true,
| message: "请输入驳回原因",
| trigger: "blur",
| }],
| }
| ]
| },
| }
| },
|
| methods: {
| popupClose () {
| this.$refs.replyForm && this.$refs.replyForm.resetForm()
| },
|
| auditPass () {
| setCheckPlaceExt({
| confirmFlag: 2,
| id: this.placeElement.curAuditRow.placeExtId
| }).then(() => {
| this.placeElement.auditBasePopup = false
| this.$message({
| type: "success",
| message: "操作成功!",
| })
|
| this.placeElement.onLoad(this.placeElement.page)
| })
| },
|
| auditTurnDown () {
| this.placeElement.auditBasePopup = false
| this.auditTurnDownPopup = true
| },
|
| handleSubmit (form, done) {
| setCheckPlaceExt({
| confirmFlag: 3,
| id: this.placeElement.curAuditRow.placeExtId,
| confirmNotion: form.confirmNotion
| }).then(() => {
| this.auditTurnDownPopup = false
| this.$message({
| type: "success",
| message: "操作成功!",
| })
|
| this.placeElement.onLoad(this.placeElement.page)
| done()
| })
| },
|
| handleReset () {
| this.auditTurnDownPopup = false
| }
| }
| }
| </script>
|
| <style lang="scss" scoped>
| .cur-container-box {
| display: flex;
| flex-direction: column;
| width: 100%;
| height: 100%;
| overflow: hidden;
|
| .content-box {
| margin: 0 4px;
| padding: 0 16px;
| height: 0;
| flex: 1;
| overflow: hidden;
| overflow-y: auto;
| }
|
| .footer-btn-box {
| margin-top: 10px;
| display: flex;
| justify-content: center;
| }
| }
| </style>
|
|