|
@@ -195,6 +195,18 @@
|
195
|
195
|
:value="item.value">
|
196
|
196
|
</el-option>
|
197
|
197
|
</el-select>
|
|
198
|
+ <label>
|
|
199
|
+ 疾病类型:
|
|
200
|
+ </label>
|
|
201
|
+ <el-select filterable v-model="sick_type" placeholder="请选择疾病类型">
|
|
202
|
+ <el-option
|
|
203
|
+ v-for="(item,index) in sick"
|
|
204
|
+ :key="index"
|
|
205
|
+ :label="item.class_name"
|
|
206
|
+ :value="item.id">
|
|
207
|
+ </el-option>
|
|
208
|
+ </el-select>
|
|
209
|
+
|
198
|
210
|
</div>
|
199
|
211
|
|
200
|
212
|
<!--<prescription-table :preTableData='preTableData'></prescription-table>-->
|
|
@@ -233,6 +245,7 @@
|
233
|
245
|
import axios from 'axios'
|
234
|
246
|
import { getUploadZuoBiaoPatientInfo, getZuoBiaoPatientInfo, getZuoBiaoPatientList } from '@/api/his/his_zuobiao'
|
235
|
247
|
import { uParseTime } from '@/utils/tools'
|
|
248
|
+import { getInitData } from '@/api/his/his'
|
236
|
249
|
|
237
|
250
|
import MonthPrescriptionTable from './componenttwo/ChargePrescriptionTable'
|
238
|
251
|
import ChargeMonthPrescriptionTable from './componenttwo/chargeMonthPrescriptionTable'
|
|
@@ -316,7 +329,9 @@ export default {
|
316
|
329
|
name: '1'
|
317
|
330
|
}],
|
318
|
331
|
tabIndex: 1,
|
|
332
|
+
|
319
|
333
|
hisPatientInfo: {},
|
|
334
|
+ prescription_info:{},
|
320
|
335
|
loadingtwo: false,
|
321
|
336
|
upload_list: [],
|
322
|
337
|
patientTableData: [{}],
|
|
@@ -372,9 +387,21 @@ export default {
|
372
|
387
|
|
373
|
388
|
// this.getInitData()
|
374
|
389
|
//获取患者信息
|
|
390
|
+ this.getInitData()
|
375
|
391
|
this.getPatientList()
|
376
|
392
|
},
|
377
|
393
|
methods: {
|
|
394
|
+ getInitData() {
|
|
395
|
+ getInitData().then(response => {
|
|
396
|
+ if (response.data.state == 0) {
|
|
397
|
+ this.$message.error(response.data.msg)
|
|
398
|
+ return false
|
|
399
|
+ } else {
|
|
400
|
+ this.sick = response.data.data.sick
|
|
401
|
+ }
|
|
402
|
+ })
|
|
403
|
+
|
|
404
|
+ },
|
378
|
405
|
changeScheduleType() {
|
379
|
406
|
|
380
|
407
|
this.getPatientList()
|
|
@@ -649,7 +676,7 @@ export default {
|
649
|
676
|
var that = this
|
650
|
677
|
let obj3 = {
|
651
|
678
|
id: this.zuobiao_info.id,
|
652
|
|
- admin_user_id: this.$store.getters.xt_user.user.id
|
|
679
|
+ admin_user_id: this.$store.getters.xt_user.user.id,
|
653
|
680
|
}
|
654
|
681
|
axios.get('http://127.0.0.1:9532' + '/nmg/coordinate/settleAccount/cancel', {
|
655
|
682
|
params: obj3
|
|
@@ -682,17 +709,23 @@ export default {
|
682
|
709
|
|
683
|
710
|
})
|
684
|
711
|
} else if (index == 1) {
|
|
712
|
+ var that = this
|
685
|
713
|
if (this.hisPatientInfo.id == 0) {
|
686
|
714
|
this.$message.error("请选择需要记账的患者")
|
687
|
715
|
return
|
688
|
716
|
}
|
|
717
|
+ if (this.sick_type == 0 || this.sick_type == "") {
|
|
718
|
+ this.$message.error("请选择疾病类型")
|
|
719
|
+ return
|
|
720
|
+ }
|
689
|
721
|
|
690
|
722
|
let obj = {
|
691
|
723
|
patient_id: this.hisPatientInfo.id,
|
692
|
724
|
diagnosis_time: this.record_date,
|
693
|
725
|
record_date: this.record_date,
|
694
|
726
|
admin_user_id: this.$store.getters.xt_user.user.id,
|
695
|
|
- org_id: this.$store.getters.xt_user.org_id
|
|
727
|
+ org_id: this.$store.getters.xt_user.org_id,
|
|
728
|
+ sick_type:this.sick_type,
|
696
|
729
|
}
|
697
|
730
|
obj['start_time'] = this.other_start_time
|
698
|
731
|
obj['end_time'] = this.other_end_time
|
|
@@ -1036,6 +1069,12 @@ export default {
|
1036
|
1069
|
this.curMonthPrescriptions = {}
|
1037
|
1070
|
this.zuobiao_info = {}
|
1038
|
1071
|
this.loading = false
|
|
1072
|
+ this.prescription_info = response.data.data.prescription_info
|
|
1073
|
+ this.sick_type = this.prescription_info.sick_type
|
|
1074
|
+ if(this.sick_type == 0){
|
|
1075
|
+ this.sick_type = ""
|
|
1076
|
+ }
|
|
1077
|
+ console.log(this.sick_type)
|
1039
|
1078
|
this.hisPatientInfo = response.data.data.patient
|
1040
|
1079
|
this.zuobiao_info = response.data.data.zuobiao_info
|
1041
|
1080
|
this.setMonthPrescription(response.data.data.month_prescriptions)
|
|
@@ -1184,6 +1223,12 @@ export default {
|
1184
|
1223
|
this.curMonthPrescriptions = {}
|
1185
|
1224
|
this.loading = false
|
1186
|
1225
|
this.hisPatientInfo = response.data.data.patient
|
|
1226
|
+ this.prescription_info = response.data.data.prescription_info
|
|
1227
|
+ this.sick_type = this.prescription_info.sick_type
|
|
1228
|
+ if(this.sick_type == 0){
|
|
1229
|
+ this.sick_type = ""
|
|
1230
|
+ }
|
|
1231
|
+ console.log(this.sick_type)
|
1187
|
1232
|
this.setMonthPrescription(response.data.data.month_prescriptions)
|
1188
|
1233
|
for (let i = 0; i < response.data.data.prescription.length; i++) {
|
1189
|
1234
|
var prescription = response.data.data.prescription[i]
|