Kaynağa Gözat

提交代码

陈少旭 10 ay önce
ebeveyn
işleme
75b419851c

+ 63 - 3
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Dosyayı Görüntüle

@@ -89,7 +89,7 @@
89 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 93
             <el-button  size="small"
94 94
                         @click="openZb(1)"
95 95
                         v-if=" this.order.id == 0"
@@ -101,7 +101,7 @@
101 101
             </el-button>
102 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 105
             <!--            <el-button size="small"-->
106 106
             <!--                       @click="openZb(1)"-->
107 107
             <!--                       type="primary">登记-->
@@ -913,6 +913,8 @@
913 913
     <register-dialog ref='register' :doctors="doctors" :departments="department" :sick="sick" :diagnoses="diagnoses"
914 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 918
     <register-dialog9504 ref='register9504' :doctors="doctors" :departments="department" :sick="sick"
917 919
                          :diagnoses="diagnoses"
918 920
                          v-on:confirm="registerConfirm" v-on:cancel="registerCancel"></register-dialog9504>
@@ -1012,10 +1014,13 @@ import NewStatementPrintTwo from './newStatementPrintTwo'
1012 1014
 import RegisterDialog9504 from './components/registerDialog9504'
1013 1015
 import cryptoJs from 'crypto-js'
1014 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 1020
 const moment = require('moment')
1017 1021
 export default {
1018 1022
   components: {
1023
+    CallUnAssociationPrescription,
1019 1024
     NewStatementPrintThree,
1020 1025
     RegisterDialog9504,
1021 1026
     NewStatementPrintTwo,
@@ -1162,6 +1167,8 @@ export default {
1162 1167
       info: {},
1163 1168
       curPrescriptions: {},
1164 1169
       prescriptions: [],
1170
+      association_prescriptions: [],
1171
+
1165 1172
       big_prescriptions: [],
1166 1173
       big_prescriptions_two: [],
1167 1174
       check: 11,
@@ -1260,6 +1267,35 @@ export default {
1260 1267
     this.getPatientList()
1261 1268
   },
1262 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 1299
     comfirmFaPiaoCode(){
1264 1300
       var  that = this
1265 1301
       let params = {
@@ -1723,6 +1759,22 @@ export default {
1723 1759
     registerCancel() {
1724 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 1779
     registerConfirm(forms) {
1728 1780
       forms['record_time'] = this.record_date
@@ -1745,6 +1797,9 @@ export default {
1745 1797
             this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1746 1798
             this.$refs.register9504.hide()
1747 1799
             this.loadingone = false
1800
+
1801
+            this.CheckHISPatient()
1802
+
1748 1803
           }
1749 1804
         })
1750 1805
       } else {
@@ -1776,6 +1831,8 @@ export default {
1776 1831
                   that.changeRadio(1)
1777 1832
                   that.$refs.register9504.hide()
1778 1833
                   that.$message({ message: '挂号成功', type: 'success' })
1834
+                  that.CheckHISPatient()
1835
+
1779 1836
                 }
1780 1837
               }
1781 1838
             })
@@ -1804,6 +1861,9 @@ export default {
1804 1861
             this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1805 1862
             this.$refs.register.hide()
1806 1863
             this.loadingone = false
1864
+
1865
+            this.CheckHISPatient(this.record_date,this.patientInfo.id)
1866
+
1807 1867
           }
1808 1868
         })
1809 1869
       } else {
@@ -3215,7 +3275,7 @@ export default {
3215 3275
         }
3216 3276
 
3217 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 3279
             this.pwdFormVisible = true
3220 3280
             this.pwd = ''
3221 3281
           } else {