Browse Source

Merge branch '20220812' of http://git.shengws.com/csx/Vue_New into 20220812

XMLWAN 2 years ago
parent
commit
de991ff7e6
1 changed files with 38 additions and 1 deletions
  1. 38 1
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue

+ 38 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -189,6 +189,15 @@
189 189
                             </el-button>
190 190
                             <div style="margin-bottom:10px;float: right">
191 191
                               <div>
192
+
193
+                                <el-button
194
+                                    v-if="(hisPatientInfo.id_card_type == 4 && hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0 && org_id != 10340)"
195
+                                    size="small"
196
+                                    @click="open(50,items.med_type,items.prescriptions[0].order,items.prescriptions)"
197
+                                    type="primary"
198
+                                >读电子凭证
199
+                                </el-button>
200
+
192 201
                                 <el-button
193 202
                                     v-if="(hisPatientInfo.id_card_type != 3 && hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0 && org_id != 10340)"
194 203
                                     size="small"
@@ -3273,8 +3282,36 @@ export default {
3273 3282
             })
3274 3283
             .catch(function(error) {
3275 3284
             })
3285
+      } else if(index == 50){
3286
+        var that = this
3287
+        let params = {
3288
+          "admin_user_id":this.$store.getters.xt_user.user.id,
3289
+          'his_patient_id': this.hisPatientInfo.id,
3290
+        }
3291
+        axios.get('http://127.0.0.1:9532/api/readele', {
3292
+          params: params
3293
+        })
3294
+            .then(function(response) {
3295
+              if (response.data.state == 0) {
3296
+                that.$message.error(response.data.msg)
3297
+                return false
3298
+              } else {
3299
+                if (response.data.data.failed_code == -10) {
3300
+                  // that.$message.error(response.data.data.msg)
3301
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
3302
+                    confirmButtonText: '确 定',
3303
+                    type: 'warning'
3304
+                  }).then(() => {
3276 3305
 
3277
-
3306
+                  }).catch(() => {
3307
+                  })
3308
+                }else{
3309
+                  that.$message({ message: response.data.data.msg, type: 'success', duration: 5000 })
3310
+                }
3311
+              }
3312
+            })
3313
+            .catch(function(error) {
3314
+            })
3278 3315
       }
3279 3316
     }, getName(admin_user_id) {
3280 3317
       for (let i = 0; i < this.adminUserOptions.length; i++) {