|
@ -98,14 +98,20 @@
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="目前服用药物" required>
|
|
<el-form-item label="目前服用药物" required>
|
|
<el-checkbox-group v-model="takingListChecked" :disabled="!editable">
|
|
|
|
|
|
<el-checkbox-group v-model="takingListChecked" :disabled="!editable" v-if="selectTak.length==0">
|
|
<el-checkbox v-for="(item,index) in takingList" :key="item.code" :label="index">{{ item.value }}</el-checkbox>
|
|
<el-checkbox v-for="(item,index) in takingList" :key="item.code" :label="index">{{ item.value }}</el-checkbox>
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
|
|
<el-checkbox-group v-model="takingListChecked" :disabled="!editable" v-else>
|
|
|
|
<el-checkbox v-for="(item,index) in selectTak" :key="item.code" :label="item.index">{{ item.value }}</el-checkbox>
|
|
|
|
</el-checkbox-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="不良事件种类">
|
|
<el-form-item label="不良事件种类">
|
|
<el-checkbox-group v-model="adverseEventArr" :disabled="!editable">
|
|
|
|
|
|
<el-checkbox-group v-model="adverseEventArr" :disabled="!editable" v-if="selectAdverse.length==0">
|
|
<el-checkbox v-for="(item,index) in badEventList1" :key="item.key" :label="index">{{ item.name }}</el-checkbox>
|
|
<el-checkbox v-for="(item,index) in badEventList1" :key="item.key" :label="index">{{ item.name }}</el-checkbox>
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
|
|
<el-checkbox-group v-model="adverseEventArr" :disabled="!editable" v-else>
|
|
|
|
<el-checkbox v-for="(item,index) in selectAdverse" :key="item.key" :label="item.index">{{ item.name }}</el-checkbox>
|
|
|
|
</el-checkbox-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="其他事件">
|
|
<el-form-item label="其他事件">
|
|
<el-input type="textarea" v-model="form.otherEvents" placeholder="请输入其他事件情况" :rows="3" :maxlength="200" show-word-limit :readonly="!editable"></el-input>
|
|
<el-input type="textarea" v-model="form.otherEvents" placeholder="请输入其他事件情况" :rows="3" :maxlength="200" show-word-limit :readonly="!editable"></el-input>
|
|
@ -190,6 +196,8 @@
|
|
var vm = this
|
|
var vm = this
|
|
return {
|
|
return {
|
|
takingListChecked: [],
|
|
takingListChecked: [],
|
|
|
|
selectTak:[],
|
|
|
|
selectAdverse:[],
|
|
adverseEventArr: [],
|
|
adverseEventArr: [],
|
|
docInfo: JSON.parse(localStorage.docInfo),
|
|
docInfo: JSON.parse(localStorage.docInfo),
|
|
badEventListChecked: [],
|
|
badEventListChecked: [],
|
|
@ -327,7 +335,7 @@
|
|
}
|
|
}
|
|
this.form.patientName = vm.serviceInfo.patientName
|
|
this.form.patientName = vm.serviceInfo.patientName
|
|
this.form.followId = vm.serviceInfo.relationCode
|
|
this.form.followId = vm.serviceInfo.relationCode
|
|
|
|
|
|
|
|
vm.form.followupDate = new Date(vm.serviceInfo.executeTime).format('yyyy-MM-dd HH:mm')
|
|
this.form.followHospital = this.docInfo.hospitalName
|
|
this.form.followHospital = this.docInfo.hospitalName
|
|
this.form.doctorName = this.docInfo.name
|
|
this.form.doctorName = this.docInfo.name
|
|
this.form.doctorCode = this.docInfo.code
|
|
this.form.doctorCode = this.docInfo.code
|
|
@ -347,8 +355,16 @@
|
|
vm.$set(vm, 'takingListChecked', res.data.content && res.data.content.takeMedicine.split(','))
|
|
vm.$set(vm, 'takingListChecked', res.data.content && res.data.content.takeMedicine.split(','))
|
|
vm.$set(vm, 'adverseEventArr', res.data.content && res.data.content.adverseEvent.split(','))
|
|
vm.$set(vm, 'adverseEventArr', res.data.content && res.data.content.adverseEvent.split(','))
|
|
vm.flag = '2'
|
|
vm.flag = '2'
|
|
|
|
vm.selectTak=vm.takingListChecked.map(function(index){
|
|
|
|
vm.takingList[index].index=index
|
|
|
|
return vm.takingList[index]
|
|
|
|
})
|
|
|
|
vm.selectAdverse=vm.adverseEventArr.map(function(index){
|
|
|
|
vm.badEventList1[index].index=index
|
|
|
|
return vm.badEventList1[index]
|
|
|
|
})
|
|
}
|
|
}
|
|
console.log(vm.form, '122222222222', vm.takingListChecked, vm.adverseEventArr, vm.takingList)
|
|
|
|
|
|
console.log(vm.form, '122222222222', vm.selectTak, vm.selectAdverse)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@ -359,7 +375,6 @@
|
|
var data = res.data
|
|
var data = res.data
|
|
vm.followData = res.data
|
|
vm.followData = res.data
|
|
vm.form.sex = data.sex
|
|
vm.form.sex = data.sex
|
|
vm.form.followupDate = data.followupDate
|
|
|
|
vm.followup = {
|
|
vm.followup = {
|
|
followup_id: code,
|
|
followup_id: code,
|
|
// status: data.status,
|
|
// status: data.status,
|
|
@ -490,6 +505,7 @@
|
|
})
|
|
})
|
|
.then(function (res) {
|
|
.then(function (res) {
|
|
console.log(res, '我是完成随访')
|
|
console.log(res, '我是完成随访')
|
|
|
|
vm.close()
|
|
})
|
|
})
|
|
top.layer.close(loadding)
|
|
top.layer.close(loadding)
|
|
})
|
|
})
|