|
|
@@ -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 })
|
|
|
}
|