Browse Source

添加手术操作收费项目匹配的导出

lighter 2 years ago
parent
commit
f536f6aada
1 changed files with 23 additions and 2 deletions
  1. 23 2
      src/views/dictionary/HisWjwMatch.vue

+ 23 - 2
src/views/dictionary/HisWjwMatch.vue

@@ -59,9 +59,19 @@
               </div>
               <div v-else class="code">{{ hisWjwMatchEntity.wjwCode }}</div>
             </div>
-            <el-button v-if="currentHisRow.wjwCode || (currentHisRow.chargeCode && currentHisRow.chargeCode.length > 0)" icon="Close" type="danger" @click="revokeMatch">撤销匹配</el-button>
+            <el-button v-if="currentHisRow.wjwCode || (currentHisRow.chargeCode && currentHisRow.chargeCode.length > 0)"
+                       icon="Close" type="danger"
+                       @click="revokeMatch">
+              撤销匹配
+            </el-button>
+            <div style="margin-top: 4px"></div>
+            <el-button v-if="!currentHisRow.wjwCode" icon="Check" type="success" @click="executeMatch" :disabled="manageMatchState">
+              匹配
+            </el-button>
             <div style="margin-top: 4px"></div>
-            <el-button v-if="!currentHisRow.wjwCode" icon="Check" type="success" @click="executeMatch" :disabled="manageMatchState">匹配
+            <el-button v-if="hisWjwMatchEntity.label === 'surgery_chargeCode' && currentStatus === 1"
+                       icon="Download" type="warning" @click="exportExcel">
+              导出
             </el-button>
           </div>
         </div>
@@ -105,6 +115,7 @@
 import {selectMatchableDataByLabel, executeMatchAction, fetchSimilarities} from '@/api/dictionary/his-wjw-match'
 import {ElMessage} from 'element-plus'
 import PageLayer from "@/layout/PageLayer";
+import {Export} from "@/utils/ExportExcel";
 
 let wjwTableRef = $ref(null)
 
@@ -295,6 +306,16 @@ const revokeMatch = () => {
   })
 }
 
+const exportExcel = () => {
+  const fields = {
+    code: '手术操作编码',
+    name: '手术操作名称',
+    chargeCodeString: '匹配收费编码',
+    chargeNameString: '匹配收费名称',
+  }
+  Export(filterHisList.value, fields, '已匹配数据')
+}
+
 onMounted(() => {
   fetchDataByLabel()
 })