|
@ -1131,15 +1131,22 @@
|
|
|
methods: {
|
|
|
getData: function () {
|
|
|
var vm = this
|
|
|
// var vmP = this.postpartumVisitDetails
|
|
|
// var vmP = this.postpartumVisitDetails Request['id']||'1'
|
|
|
fangshiAPI.getPhthisis({ followupId: Request['id']||'1' }).then(function (res) {
|
|
|
if (res.status == 200 && res.data[0]) {
|
|
|
console.log("获取肺结核信息")
|
|
|
console.log(res)
|
|
|
vm.parient = res.data[0]
|
|
|
//转换用药数据
|
|
|
vm.yongyao1 = vm.parient.data[0].drug_use.dosage_form?vm.parient.data[0].drug_use.dosage_form.split(','):[]
|
|
|
vm.yongyao2 = vm.parient.data[1].drug_use.dosage_form?vm.parient.data[1].drug_use.dosage_form.split(','):[]
|
|
|
vm.yongyao3 = vm.parient.data[2].drug_use.dosage_form?vm.parient.data[2].drug_use.dosage_form.split(','):[]
|
|
|
vm.yongyao4 = vm.parient.data[3].drug_use.dosage_form?vm.parient.data[3].drug_use.dosage_form.split(','):[]
|
|
|
//转换体征信息
|
|
|
vm.tizheng = vm.parient.data[0].symptom?vm.parient.data[0].symptom.split(','):[]
|
|
|
|
|
|
console.log(vm.parient)
|
|
|
for(var i=0;i<4;i++){
|
|
|
console.log(111)
|
|
|
vm.parient.data[i].superviser.superviser_type = vm.parient.data[i].superviser.superviser_type.toString()
|
|
|
vm.parient.data[i].way = vm.parient.data[i].way.toString()
|
|
|
vm.parient.data[i].drug_use.method = vm.parient.data[i].drug_use.method.toString()
|
|
@ -1154,14 +1161,6 @@
|
|
|
// console.log(item.superviser.superviser_type)
|
|
|
// return item
|
|
|
// })
|
|
|
//转换用药数据
|
|
|
vm.yongyao1 = vm.parient.data[0].drug_use.dosage_form?vm.parient.data[0].drug_use.dosage_form.split(','):[]
|
|
|
vm.yongyao2 = vm.parient.data[1].drug_use.dosage_form?vm.parient.data[1].drug_use.dosage_form.split(','):[]
|
|
|
vm.yongyao3 = vm.parient.data[2].drug_use.dosage_form?vm.parient.data[2].drug_use.dosage_form.split(','):[]
|
|
|
vm.yongyao4 = vm.parient.data[3].drug_use.dosage_form?vm.parient.data[3].drug_use.dosage_form.split(','):[]
|
|
|
|
|
|
//转换体征信息
|
|
|
vm.tizheng = vm.parient.data[0].symptom?vm.parient.data[0].symptom.split(','):[]
|
|
|
} else {
|
|
|
top.toastr.error(res.msg);
|
|
|
}
|