|
@ -273,11 +273,11 @@ Vue.component('copd-patient-record-edit', {
|
|
|
if (res.status == 200) {
|
|
|
var detailModelList = res.list
|
|
|
|
|
|
if (val[1] == '350200'&& id == 3) {
|
|
|
if (val[1] == '350200'&& num == 3) {
|
|
|
var detailModelList = res.list.concat({ code: '350299', name: '不详区', city: '350200', province: '350000', id: 99999 })
|
|
|
}
|
|
|
for(let item of detailModelList){
|
|
|
if(id == 3){
|
|
|
if(num == 3){
|
|
|
|
|
|
item.children = null
|
|
|
}else{
|
|
@ -289,7 +289,7 @@ Vue.component('copd-patient-record-edit', {
|
|
|
if (arr[provinceIndex].children[activeIndex]) {
|
|
|
arr[provinceIndex].children[activeIndex].children = detailModelList
|
|
|
|
|
|
if(id == 3)return
|
|
|
if(num == 3)return
|
|
|
|
|
|
if (vm.addressVal.length && id == 1) {
|
|
|
vm.stressList([vm.addressVal[0], vm.addressVal[1], vm.addressVal[2]],id)
|
|
@ -434,6 +434,8 @@ Vue.component('copd-patient-record-edit', {
|
|
|
statisticAPI.updJkCopdPatient({ jsonData: JSON.stringify(vm.formData), doctor: vm.docInfo.code }).then(function (res) {
|
|
|
if (res.status == 200) {
|
|
|
EventBus.$emit('copd-reset-save')
|
|
|
}else{
|
|
|
vm.$message.error(res.message)
|
|
|
}
|
|
|
})
|
|
|
} else {
|