hd 2 months ago
parent
commit
43b82b89a0

+ 1 - 1
component/statistics/CopdPatientRecord/index.js

@ -769,7 +769,7 @@ Vue.component('copd-patient-record', {
        vm.batchData = res.detailModelList
        vm.$nextTick(function () {
          vm.batchData.forEach(function (item) {
            if (item.statusName == '未分配' && item.toDoctorName && item.lastDoctor != item.toDoctorName) {
            if (item.statusName == '未分配' && item.toHospitalName && item.lastDoctor != item.toDoctorName) {
              vm.$refs.batchAllocationTable.toggleRowSelection(item, true)
            }
          })

+ 5 - 3
component/statistics/CopdPatientRecordEdit/index.js

@ -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 {