소스 검색

fix(complaint): 修复新增回复按钮在关闭或取消状态下显示问题

yz 3 주 전
부모
커밋
8ad8a436c3
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/views/complaint/complaintMixin.js
  2. 1 0
      src/views/complaint/index.vue

+ 3 - 0
src/views/complaint/complaintMixin.js

@@ -114,6 +114,8 @@ export default {
       currentComplaintNo: '',
       /** @type {number} */
       currentComplaintReplyStatus: 0,
+      /** @type {number} */
+      currentComplaintStatus: 0,
       // 新增回复相关数据
       addReplyVisible: false,
       replyForm: {
@@ -494,6 +496,7 @@ export default {
       this.currentComplaintId = row.id
       this.currentComplaintNo = row.complaintNo
       this.currentComplaintReplyStatus = row.replyStatus
+      this.currentComplaintStatus = row.status
       this.replyListVisible = true
       this.replyPage.current = 1
       await this.loadReplyList()

+ 1 - 0
src/views/complaint/index.vue

@@ -259,6 +259,7 @@
           type="primary"
           size="small"
           icon="el-icon-plus"
+          v-if="currentComplaintStatus !== COMPLAINT_STATUS.CLOSED && currentComplaintStatus !== COMPLAINT_STATUS.CANCELLED"
           @click="handleAddReply"
         >
           新增回复