Ver código fonte

门诊统筹添加医生是否选择医保

lighter 2 anos atrás
pai
commit
09f64904ea

+ 15 - 5
src/views/medical-insurance/outpatient/MzRegister.vue

@@ -64,12 +64,17 @@
     </template>
     <template #aside>
       <div style="display: flex">
-        <div style="width: 40px">
+        <div style="width: 80px">
           <el-table ref="timesTable" :data="unPaidReceipts" highlight-current-row @row-click="clickTimes" empty-text="无">
-            <el-table-column label="次数" prop="times"></el-table-column>
+            <el-table-column label="次数" prop="times" width="40"></el-table-column>
+            <el-table-column label="诊间" width="40">
+                <template #default="scope">
+                    <span v-html="isMztczf(scope.row)"></span>
+                </template>
+            </el-table-column>
           </el-table>
         </div>
-        <div style="width: 260px">
+        <div style="width: 220px">
           <el-table ref="ordersTable" :data="orderNos" highlight-current-row @row-click="clickOrderNo" empty-text="无">
             <el-table-column label="处方" width="50">
               <template #default="scope">
@@ -83,8 +88,8 @@
             </el-table-column>
             <el-table-column label="操作">
               <template #default="scope">
-                <el-button text icon="Check" @click="markMzFees" :disabled="scope.row.status"> 生成 </el-button>
-                <el-button text icon="Delete" @click="unmarkMzFees(scope.row)" :disabled="!scope.row.status"> 撤销 </el-button>
+                <button @click="markMzFees" :disabled="scope.row.status">生成</button>
+                <button @click="unmarkMzFees(scope.row)" :disabled="!scope.row.status">撤销</button>
               </template>
             </el-table-column>
           </el-table>
@@ -422,6 +427,7 @@ const fetchReceipts = (param) => {
   clearReadCardData()
   getMzReceipts(param)
       .then((res) => {
+          res[0].zgmztczf=1
         unPaidReceipts.value = res
         setTimeout(() => {
           timesTable.value.setCurrentRow(res[0])
@@ -674,6 +680,10 @@ const revokeMzSettle = () => {
   })
 }
 
+const isMztczf = (row) => {
+    return row.zgmztczf === 1 ? `<span style="color: green">医保</span>` : `<span>自费</span>`
+}
+
 const clearinfo = () => {
   patientId.value = ''
   times.value = null

+ 13 - 5
src/views/medical-insurance/outpatient/MzSpltryRcrd.vue

@@ -64,14 +64,18 @@
     </template>
     <template #aside>
       <el-table :data="historyReceipts" stripe highlight-current-row @row-click="fetchHistoryReceiptDetail">
-        <el-table-column property="patNo" label="Id号" width="70">
+        <el-table-column property="patNo" label="ID号_次数" width="80">
           <template #default="scope">
             <span v-html="colorStatus(scope.row)"></span>
           </template>
         </el-table-column>
-        <el-table-column property="times" label="次数" width="40"></el-table-column>
-        <el-table-column property="chargeFee" label="金额" width="60"></el-table-column>
-        <el-table-column property="chargeDate" label="时间" width="130"></el-table-column>
+        <el-table-column label="诊间" width="40">
+            <template #default="scope">
+                <span v-html="isMztczf(scope.row)"></span>
+            </template>
+        </el-table-column>
+        <el-table-column property="chargeFee" label="金额" width="50"></el-table-column>
+        <el-table-column property="chargeDate" label="时间" width="125"></el-table-column>
       </el-table>
     </template>
     <template #main>
@@ -210,7 +214,10 @@ export default {
     const showInputDiags = ref(false)
     const dateRange = ref(shortcuts[2].value)
     const colorStatus = (row) => {
-      return row.status > 0 ? `<span style="color: green">${row.patNo}</span>` : `<span style="color: red">${row.patNo}</span>`
+      return row.status > 0 ? `<span style="color: green">${row.patNo}_${row.times}</span>` : `<span style="color: red">${row.patNo}_${row.times}</span>`
+    }
+    const isMztczf = (row) => {
+      return row.zgmztczf === 1 ? `<span style="color: green">医保</span>` : `<span>自费</span>`
     }
     const nullPatNo = () => {
       if (patNo.value) {
@@ -620,6 +627,7 @@ export default {
       mzVisit,
       showInputDiags,
       mzSettled,
+      isMztczf,
       afterReadCard,
       colorStatus,
       fetchHistoryReceipts,