|
@@ -18,6 +18,8 @@ import {
|
|
|
COMPLAINT_STATUS_OPTIONS,
|
|
|
REPLY_STATUS_OPTIONS,
|
|
|
REPLY_TYPE_OPTIONS,
|
|
|
+ COMPLAINT_STATUS,
|
|
|
+ REPLY_TYPE,
|
|
|
getComplainantTypeLabel,
|
|
|
getComplaintTypeLabel,
|
|
|
getComplainantTypeType,
|
|
@@ -84,7 +86,7 @@ export default {
|
|
|
statusDialogTitle: '',
|
|
|
/** @type {StatusForm} */
|
|
|
statusForm: {
|
|
|
- status: 1,
|
|
|
+ status: COMPLAINT_STATUS.PROCESSING,
|
|
|
closeReason: ''
|
|
|
},
|
|
|
statusLoading: false,
|
|
@@ -113,7 +115,7 @@ export default {
|
|
|
addReplyVisible: false,
|
|
|
replyForm: {
|
|
|
complaintId: '',
|
|
|
- replyType: 1,
|
|
|
+ replyType: REPLY_TYPE.SYSTEM,
|
|
|
replyContent: '',
|
|
|
replyAttachUrl: ''
|
|
|
},
|
|
@@ -249,6 +251,12 @@ export default {
|
|
|
*/
|
|
|
replyTypeOptions() {
|
|
|
return REPLY_TYPE_OPTIONS
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * 投诉状态常量
|
|
|
+ */
|
|
|
+ COMPLAINT_STATUS() {
|
|
|
+ return COMPLAINT_STATUS
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -453,7 +461,7 @@ export default {
|
|
|
this.statusDialogTitle = '处理投诉'
|
|
|
this.statusForm = {
|
|
|
id: row.id,
|
|
|
- status: 1,
|
|
|
+ status: COMPLAINT_STATUS.PROCESSING,
|
|
|
closeReason: ''
|
|
|
}
|
|
|
this.currentIds = null
|
|
@@ -468,7 +476,7 @@ export default {
|
|
|
this.statusDialogTitle = '关闭投诉'
|
|
|
this.statusForm = {
|
|
|
id: row.id,
|
|
|
- status: 3,
|
|
|
+ status: COMPLAINT_STATUS.CLOSED,
|
|
|
closeReason: ''
|
|
|
}
|
|
|
this.currentIds = null
|
|
@@ -540,7 +548,7 @@ export default {
|
|
|
this.replyForm = {
|
|
|
complaintId: this.currentComplaintId,
|
|
|
complaintNo: this.currentComplaintNo,
|
|
|
- replyType: 1,
|
|
|
+ replyType: REPLY_TYPE.SYSTEM,
|
|
|
replyContent: '',
|
|
|
replyAttachUrl: ''
|
|
|
}
|
|
@@ -617,7 +625,7 @@ export default {
|
|
|
}
|
|
|
this.statusDialogTitle = '批量处理投诉'
|
|
|
this.statusForm = {
|
|
|
- status: 1,
|
|
|
+ status: COMPLAINT_STATUS.PROCESSING,
|
|
|
closeReason: ''
|
|
|
}
|
|
|
this.currentIds = this.selectionList.map(item => item.id)
|