瀏覽代碼

门诊个账添加共济人个账的选项

lighter 1 年之前
父節點
當前提交
ec42c16f56

+ 21 - 16
src/views/medical-insurance/outpatient/MzRegister.vue

@@ -253,6 +253,22 @@
           <el-button @click="afterChooseMdtrtGrpType" type="primary" size="default">确定</el-button>
         </div>
       </el-dialog>
+
+      <el-dialog v-model="showAcctUsedFlagPicker" width="260px" title="是否使用个账">
+        <div style="width: 100%; display: flex; align-items: center;justify-content: center">
+          <div style="width: 120px; text-align: left">
+            <el-radio label="0" v-model="acctUsedFlag">不使用个账</el-radio>
+            <div></div>
+            <el-radio label="1" v-model="acctUsedFlag">使用本人个账</el-radio>
+            <div></div>
+            <el-radio label="2" v-model="acctUsedFlag">使用共济人个账</el-radio>
+          </div>
+        </div>
+        <div style="width: 100%; text-align: center; margin-top: 30px">
+          <el-button type="primary" style="width: 120px" @click="confirmAcctUsedFlag">确定</el-button>
+        </div>
+      </el-dialog>
+
     </template>
   </page-layer>
 </template>
@@ -771,28 +787,17 @@ const mzPreSetl = () => {
   })
 }
 
+const showAcctUsedFlagPicker = ref(false)
+const acctUsedFlag = ref('0')
 const chooseWhetherUseAcctFlag = () => {
-  ElMessageBox.confirm('是否使用个人账户?', '提示', {
-    type: 'warning',
-    confirmButtonText: '不使用',
-    cancelButtonText: '使用',
-    distinguishCancelAndClose: true,
-    closeOnClickModal: false,
-    closeOnPressEscape: false,
-  }).then(() => {
-    mzSettle('0')
-  }).catch((action) => {
-    if (action === 'cancel') {
-      mzSettle('1')
-    }
-  })
+  showAcctUsedFlagPicker.value = true
 }
 
-const mzSettle = (useAcctFlag) => {
+const confirmAcctUsedFlag = () => {
   const param = {
     patNo: patientId.value,
     times: times.value,
-    acctUsedFlag: useAcctFlag,
+    acctUsedFlag: acctUsedFlag.value,
     mdtrtCertType: readCardData.mdtrtCertType,
     readCardResult: readCardData.readCardResult,
     readCardBizType: readCardData.readCardBizType,

+ 25 - 20
src/views/medical-insurance/outpatient/MzSpltryRcrd.vue

@@ -176,6 +176,21 @@
         <outpatient-diagnose-supply :med-type="medType" :mz-visit="mzVisit"
                                     @close="showInputDiags = false"></outpatient-diagnose-supply>
       </el-dialog>
+
+      <el-dialog v-model="showAcctUsedFlagPicker" width="260px" title="是否使用个账">
+        <div style="width: 100%; display: flex; align-items: center;justify-content: center">
+          <div style="width: 120px; text-align: left">
+            <el-radio label="0" v-model="acctUsedFlag">不使用个账</el-radio>
+            <div></div>
+            <el-radio label="1" v-model="acctUsedFlag">使用本人个账</el-radio>
+            <div></div>
+            <el-radio label="2" v-model="acctUsedFlag">使用共济人个账</el-radio>
+          </div>
+        </div>
+        <div style="width: 100%; text-align: center; margin-top: 30px">
+          <el-button type="primary" style="width: 120px" @click="mzSettle">确定</el-button>
+        </div>
+      </el-dialog>
     </template>
   </page-layer>
 </template>
@@ -641,7 +656,14 @@ const deleteMtFees = () => {
   })
 }
 
-const mzSettle = (useAcctFlag) => {
+
+const showAcctUsedFlagPicker = ref(false)
+const acctUsedFlag = ref('0')
+const chooseWhetherUseAcctFlag = () => {
+  showAcctUsedFlagPicker.value = true
+}
+
+const mzSettle = () => {
   if (!currentRow.value.times) {
     ElMessage({
       message: '请先选择历史处方。',
@@ -660,7 +682,7 @@ const mzSettle = (useAcctFlag) => {
     readCardBizType: readCardData.readCardBizType,
     ledgerSn: 0,
     calType: 1,
-    acctUsedFlag: useAcctFlag,
+    acctUsedFlag: acctUsedFlag.value,
   }
   if (injuryMode.value) {
     injuryOutpatientSettlement(param).then(res => {
@@ -720,7 +742,7 @@ const settlement = (command) => {
     mzPreSetl()
   } else if (command === 'fin') {
     if (injuryMode.value) {
-      mzSettle('0')
+      mzSettle()
     } else {
       chooseWhetherUseAcctFlag()
     }
@@ -729,23 +751,6 @@ const settlement = (command) => {
   }
 }
 
-const chooseWhetherUseAcctFlag = () => {
-  ElMessageBox.confirm('是否使用个人账户?', '提示', {
-    type: 'warning',
-    confirmButtonText: '不使用',
-    cancelButtonText: '使用',
-    distinguishCancelAndClose: true,
-    closeOnClickModal: false,
-    closeOnPressEscape: false,
-  }).then(() => {
-    mzSettle('0')
-  }).catch((action) => {
-    if (action === 'cancel') {
-      mzSettle('1')
-    }
-  })
-}
-
 const clearinfo = () => {
   patNo.value = ''
   medType.value = ''