|
@ -67,6 +67,9 @@ Vue.component('copd-patient-record-edit', {
|
|
|
deep: true,
|
|
|
immediate: true
|
|
|
},
|
|
|
addressVal(value){
|
|
|
console.log(value,'0000000000000000000000')
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
var vm=this
|
|
@ -293,36 +296,60 @@ Vue.component('copd-patient-record-edit', {
|
|
|
}else{
|
|
|
vm.formData.sex=2
|
|
|
}
|
|
|
vm.addressVal.forEach(function(item,index){
|
|
|
if(index==0){
|
|
|
vm.formData.liveProvince=item
|
|
|
vm.formData.liveProvinceName=vm.$refs.cascader.currentLabels[index]
|
|
|
}else if(index==1){
|
|
|
vm.formData.liveCity=item
|
|
|
vm.formData.liveCityName=vm.$refs.cascader.currentLabels[index]
|
|
|
}else if(index==2){
|
|
|
vm.formData.liveTown=item
|
|
|
vm.formData.liveTownName=vm.$refs.cascader.currentLabels[index]
|
|
|
}else if(index==3){
|
|
|
vm.formData.liveStreet=item
|
|
|
vm.formData.liveStreetName=vm.$refs.cascader.currentLabels[index]
|
|
|
}
|
|
|
})
|
|
|
vm.resiginAddressVal.forEach(function(item,index){
|
|
|
if(index==0){
|
|
|
vm.formData.registProvince=item
|
|
|
vm.formData.registProvinceName=vm.$refs.cas.currentLabels[index]
|
|
|
}else if(index==1){
|
|
|
vm.formData.registCity=item
|
|
|
vm.formData.registCityName=vm.$refs.cas.currentLabels[index]
|
|
|
}else if(index==2){
|
|
|
vm.formData.registTown=item
|
|
|
vm.formData.registTownName=vm.$refs.cas.currentLabels[index]
|
|
|
}else if(index==3){
|
|
|
vm.formData.registStreet=item
|
|
|
vm.formData.registStreetName=vm.$refs.cas.currentLabels[index]
|
|
|
}
|
|
|
})
|
|
|
if(vm.addressVal.length){
|
|
|
|
|
|
vm.addressVal.forEach(function(item,index){
|
|
|
if(index==0){
|
|
|
vm.formData.liveProvince=item
|
|
|
vm.formData.liveProvinceName=vm.$refs.cascader.currentLabels[index]
|
|
|
}else if(index==1){
|
|
|
vm.formData.liveCity=item
|
|
|
vm.formData.liveCityName=vm.$refs.cascader.currentLabels[index]
|
|
|
}else if(index==2){
|
|
|
vm.formData.liveTown=item
|
|
|
vm.formData.liveTownName=vm.$refs.cascader.currentLabels[index]
|
|
|
}else if(index==3){
|
|
|
vm.formData.liveStreet=item
|
|
|
vm.formData.liveStreetName=vm.$refs.cascader.currentLabels[index]
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
|
vm.formData.liveProvince=''
|
|
|
vm.formData.liveProvinceName=''
|
|
|
vm.formData.liveCity=''
|
|
|
vm.formData.liveCityName=''
|
|
|
vm.formData.liveTown=''
|
|
|
vm.formData.liveTownName=''
|
|
|
vm.formData.liveStreet=''
|
|
|
vm.formData.liveStreetName=''
|
|
|
}
|
|
|
if(vm.resiginAddressVal.length){
|
|
|
|
|
|
vm.resiginAddressVal.forEach(function(item,index){
|
|
|
if(index==0){
|
|
|
vm.formData.registProvince=item
|
|
|
vm.formData.registProvinceName=vm.$refs.cas.currentLabels[index]
|
|
|
}else if(index==1){
|
|
|
vm.formData.registCity=item
|
|
|
vm.formData.registCityName=vm.$refs.cas.currentLabels[index]
|
|
|
}else if(index==2){
|
|
|
vm.formData.registTown=item
|
|
|
vm.formData.registTownName=vm.$refs.cas.currentLabels[index]
|
|
|
}else if(index==3){
|
|
|
vm.formData.registStreet=item
|
|
|
vm.formData.registStreetName=vm.$refs.cas.currentLabels[index]
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
|
vm.formData.registProvince=''
|
|
|
vm.formData.registProvinceName=''
|
|
|
vm.formData.registCity=''
|
|
|
vm.formData.registCityName=''
|
|
|
vm.formData.registTown=''
|
|
|
vm.formData.registTownName=''
|
|
|
vm.formData.registStreet=''
|
|
|
vm.formData.registStreetName=''
|
|
|
}
|
|
|
statisticAPI.updJkCopdPatient({jsonData:JSON.stringify(vm.formData),doctor:vm.docInfo.code}).then(
|
|
|
function(res){
|
|
|
if(res.status==200){
|