Browse Source

提交代码

陈少旭 9 months ago
parent
commit
75b419851c
1 changed files with 63 additions and 3 deletions
  1. 63 3
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue

+ 63 - 3
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

89
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
89
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
90
 
90
 
91
 
91
 
92
-          <div v-if="org_id == 10206  || org_id == 0">
92
+          <div v-if="org_id == 10206  ">
93
             <el-button  size="small"
93
             <el-button  size="small"
94
                         @click="openZb(1)"
94
                         @click="openZb(1)"
95
                         v-if=" this.order.id == 0"
95
                         v-if=" this.order.id == 0"
101
             </el-button>
101
             </el-button>
102
           </div>
102
           </div>
103
 
103
 
104
-          <div  v-if="org_id != 10206 && org_id != 10340 && org_id != 0">
104
+          <div  v-if="org_id != 10206 && org_id != 10340 ">
105
             <!--            <el-button size="small"-->
105
             <!--            <el-button size="small"-->
106
             <!--                       @click="openZb(1)"-->
106
             <!--                       @click="openZb(1)"-->
107
             <!--                       type="primary">登记-->
107
             <!--                       type="primary">登记-->
913
     <register-dialog ref='register' :doctors="doctors" :departments="department" :sick="sick" :diagnoses="diagnoses"
913
     <register-dialog ref='register' :doctors="doctors" :departments="department" :sick="sick" :diagnoses="diagnoses"
914
                      v-on:confirm="confirm" v-on:cancel="cancel"></register-dialog>
914
                      v-on:confirm="confirm" v-on:cancel="cancel"></register-dialog>
915
 
915
 
916
+    <call-un-association-prescription ref='call_prescription' v-on:call="call" v-on:call-cancel="callCancel"></call-un-association-prescription>
917
+
916
     <register-dialog9504 ref='register9504' :doctors="doctors" :departments="department" :sick="sick"
918
     <register-dialog9504 ref='register9504' :doctors="doctors" :departments="department" :sick="sick"
917
                          :diagnoses="diagnoses"
919
                          :diagnoses="diagnoses"
918
                          v-on:confirm="registerConfirm" v-on:cancel="registerCancel"></register-dialog9504>
920
                          v-on:confirm="registerConfirm" v-on:cancel="registerCancel"></register-dialog9504>
1012
 import RegisterDialog9504 from './components/registerDialog9504'
1014
 import RegisterDialog9504 from './components/registerDialog9504'
1013
 import cryptoJs from 'crypto-js'
1015
 import cryptoJs from 'crypto-js'
1014
 import NewStatementPrintThree from './newStatementPrintThree.vue'
1016
 import NewStatementPrintThree from './newStatementPrintThree.vue'
1017
+import CallUnAssociationPrescription from './components/callUnAssociationPrescription.vue'
1018
+import { associationprescription, checkHISPatient } from '../../api/his/his_tools'
1015
 
1019
 
1016
 const moment = require('moment')
1020
 const moment = require('moment')
1017
 export default {
1021
 export default {
1018
   components: {
1022
   components: {
1023
+    CallUnAssociationPrescription,
1019
     NewStatementPrintThree,
1024
     NewStatementPrintThree,
1020
     RegisterDialog9504,
1025
     RegisterDialog9504,
1021
     NewStatementPrintTwo,
1026
     NewStatementPrintTwo,
1162
       info: {},
1167
       info: {},
1163
       curPrescriptions: {},
1168
       curPrescriptions: {},
1164
       prescriptions: [],
1169
       prescriptions: [],
1170
+      association_prescriptions: [],
1171
+
1165
       big_prescriptions: [],
1172
       big_prescriptions: [],
1166
       big_prescriptions_two: [],
1173
       big_prescriptions_two: [],
1167
       check: 11,
1174
       check: 11,
1260
     this.getPatientList()
1267
     this.getPatientList()
1261
   },
1268
   },
1262
   methods: {
1269
   methods: {
1270
+    call(val,his_patient_id,patient_id) {
1271
+      this.association_prescriptions = []
1272
+      this.association_prescriptions = val
1273
+      var ids  = []
1274
+      for (let i = 0; i < this.prescriptions.length; i++) {
1275
+        ids.push(this.prescriptions[i].id)
1276
+      }
1277
+      //上传关联数据
1278
+      let params = {
1279
+        'record_date': this.record_date,
1280
+        'his_patient_id':his_patient_id,
1281
+        'patient_id':patient_id,
1282
+        'p_ids': ids.join(","),
1283
+      }
1284
+      associationprescription(params).then(response => {
1285
+        if (response.data.state == 0) {
1286
+          this.$message.error(response.data.msg)
1287
+          this.loadingone = false
1288
+          return false
1289
+        } else {
1290
+          this.$message.success("关联成功")
1291
+        }
1292
+      })
1293
+      this.getPatientList()
1294
+      this.$refs.call_prescription.close()
1295
+    },
1296
+    callCancel() {
1297
+      this.$refs.call_prescription.close()
1298
+    },
1263
     comfirmFaPiaoCode(){
1299
     comfirmFaPiaoCode(){
1264
       var  that = this
1300
       var  that = this
1265
       let params = {
1301
       let params = {
1723
     registerCancel() {
1759
     registerCancel() {
1724
       this.$refs.register9504.hide()
1760
       this.$refs.register9504.hide()
1725
 
1761
 
1762
+    },CheckHISPatient(){
1763
+      let params ={
1764
+        record_date:this.record_date,
1765
+        patient_id:this.patientInfo.id
1766
+      }
1767
+      checkHISPatient(params).then(response => {
1768
+        if (response.data.state == 0) {
1769
+          this.$message.error(response.data.msg)
1770
+          this.loadingone = false
1771
+          return false
1772
+        } else {
1773
+          if(response.data.data.status = 1){
1774
+            this.$refs.call_prescription.show(this.patientInfo.name, this.patientInfo.id,  this.record_date, this.record_date,response.data.data.ps,response.data.data.his_patient_id,response.data.data.patient_id)
1775
+          }
1776
+        }
1777
+      })
1726
     },
1778
     },
1727
     registerConfirm(forms) {
1779
     registerConfirm(forms) {
1728
       forms['record_time'] = this.record_date
1780
       forms['record_time'] = this.record_date
1745
             this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1797
             this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1746
             this.$refs.register9504.hide()
1798
             this.$refs.register9504.hide()
1747
             this.loadingone = false
1799
             this.loadingone = false
1800
+
1801
+            this.CheckHISPatient()
1802
+
1748
           }
1803
           }
1749
         })
1804
         })
1750
       } else {
1805
       } else {
1776
                   that.changeRadio(1)
1831
                   that.changeRadio(1)
1777
                   that.$refs.register9504.hide()
1832
                   that.$refs.register9504.hide()
1778
                   that.$message({ message: '挂号成功', type: 'success' })
1833
                   that.$message({ message: '挂号成功', type: 'success' })
1834
+                  that.CheckHISPatient()
1835
+
1779
                 }
1836
                 }
1780
               }
1837
               }
1781
             })
1838
             })
1804
             this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1861
             this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1805
             this.$refs.register.hide()
1862
             this.$refs.register.hide()
1806
             this.loadingone = false
1863
             this.loadingone = false
1864
+
1865
+            this.CheckHISPatient(this.record_date,this.patientInfo.id)
1866
+
1807
           }
1867
           }
1808
         })
1868
         })
1809
       } else {
1869
       } else {
3215
         }
3275
         }
3216
 
3276
 
3217
         if (this.hisPatientInfo.id_card_type == 1) {
3277
         if (this.hisPatientInfo.id_card_type == 1) {
3218
-          if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10510 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id !=  10318 && this.$store.getters.xt_user.org_id !=  10210) {
3278
+          if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10510 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id !=  10318 && this.$store.getters.xt_user.org_id !=  10210 && this.$store.getters.xt_user.org_id !=  10375 &&  this.$store.getters.xt_user.org_id !=  10480) {
3219
             this.pwdFormVisible = true
3279
             this.pwdFormVisible = true
3220
             this.pwd = ''
3280
             this.pwd = ''
3221
           } else {
3281
           } else {