revocationDialog.vue
2.44 KB
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
<!-- 驳回 -->
<template>
<d2-dialog
title="提示"
:is-visible="visible"
@closeDialog="handleClose"
@confirmDialog="handleAddConfirm"
>
<div class="reject-dialog">
<glsx-combi-form
class="edit-form-container"
ref="formRef"
label-width="112px"
default-width="390px"
:form-ref="rejectRef"
:form-obj="infoForm"
:form-data="editFormData"
:form-rules="formRules"
></glsx-combi-form>
</div>
</d2-dialog>
</template>
<script>
// import { cancelDeduct, getScoreDetail } from "@api/point"
export default {
name: "RejectDialog",
data() {
return {
infoForm: {
remark: ""
},
dialogConfig: {
title: "提示",
width: "576px",
height: "315px"
},
rejectRef: "rejectRef",
formRules: {
// remark: [{ required: true, message: "请输入撤销原因", trigger: "blur" }]
},
editFormData: [
{
label: "撤销原因",
name: "remark",
type: "input",
maxlength: 20,
inputType: "textarea",
showLimit: true,
rows: 4
}
],
baseData: {}
}
},
props: {
visible: {
type: Boolean,
default: false
},
id: {
type: String,
default: ""
}
},
computed: {
isVisible: {
get() {
return this.visible
},
set(newVal) {}
}
},
mounted() {},
methods: {
// handleAddConfirm() {
// this.$refs.formRef.$refs[this.rejectRef].validate(async (valid) => {
// if (valid) {
// let detailData = await getScoreDetail({ id: this.id })
// let params = {}
// params.remark = this.infoForm.remark
// params.orderCode = detailData.orderCode
// params.scoreId = this.id
// cancelDeduct(params).then((res) => {
// console.log(res)
// if (res) {
// this.$emit("handleConfirm", false)
// this.notice.okTips("操作成功")
// }
// })
// }
// })
// },
handleClose() {
this.$emit("dialogClose", false)
}
}
}
</script>
<style lang="scss" scoped>
.reject-dialog {
margin: 21px 0 83px;
::v-deep .el-textarea__inner {
height: 70px;
}
::v-deep .el-input__count {
right: 15px !important;
bottom: 3px !important;
font-size: 12px;
color: #999999;
}
}
</style>