Kaynağa Gözat

添加撤销审核通过的功能

lighter 1 yıl önce
ebeveyn
işleme
a490073b97

+ 8 - 0
src/api/case-front-sheet/index.js

@@ -354,6 +354,14 @@ export function executeAudit(data) {
     })
 }
 
+export function revokeApprovedAudit(data) {
+    return request({
+        url: '/caseFrontSheet/revokeApprovedAudit',
+        method: 'post',
+        data
+    })
+}
+
 export function fetchAuditHistories(data) {
     return request({
         url: '/caseFrontSheet/fetchAuditHistories',

+ 1 - 2
src/views/clinic/WxPayRefund.vue

@@ -181,8 +181,7 @@ const doRefund = (row) => {
         showClose: true,
       })
     })
-  }).catch(() => {
-  })
+  }).catch(() => {})
 }
 
 function initTradeStates() {

+ 22 - 1
src/views/hospitalization/case-front-sheet/FrontSheetQuality.vue

@@ -43,6 +43,9 @@
           <el-button icon="Check" type="success" @click="approveAudit">审核通过</el-button>
           <el-button icon="Close" type="danger" @click="rejectAudit">审核不通过</el-button>
         </span>
+        <span v-if="auditInquiryRequest.state === 'APPROVED'" style="margin: 0 12px">
+          <el-button icon="Refresh" type="danger" @click="beforeRevokeApprove">撤销审核</el-button>
+        </span>
       </div>
     </template>
     <CyFlex tab-position="vertical">
@@ -128,7 +131,7 @@ import {
   fetchQualityVerifications,
   getAllDictionary,
   getSheetInfo,
-  getAllSmallDept
+  getAllSmallDept, revokeApprovedAudit
 } from '@/api/case-front-sheet'
 import maleIcon from '@/assets/male-icon.png'
 import femaleIcon from '@/assets/female-icon.png'
@@ -292,6 +295,24 @@ function rejectAudit() {
   })
 }
 
+function beforeRevokeApprove() {
+  if (nullPatient()) {
+    return
+  }
+  CyMessageBox.confirm({
+    message: '撤销审核后,病案将回到未审核状态,确认撤销吗?',
+    type: 'warning'
+  }).then(() => {
+    executeRevoke()
+  }).catch(() => {});
+}
+
+function executeRevoke() {
+  revokeApprovedAudit(currentRow.value).then(res => {
+    xcMessage.success(res)
+  })
+}
+
 function viewAuditHistory(row) {
   useDialogToJs(AuditHistory, { patinfo: row })
 }