|
@ -187,6 +187,7 @@ Vue.component('server-items-detail', {
|
|
|
props: ['patientname', 'patientcode', 'planid', 'plandetailid'],
|
|
|
data: function () {
|
|
|
return {
|
|
|
scList: [],
|
|
|
ynow: currentGMT.getFullYear(), //年份
|
|
|
mnow: currentGMT.getMonth(), //月份(比实际少一个月---0开始至11)
|
|
|
dnow: currentGMT.getDate(), //当前日
|
|
@ -245,22 +246,20 @@ Vue.component('server-items-detail', {
|
|
|
vm.service = res.data
|
|
|
var isZK = vm.docInfo.doctorType == 1 ? true : false
|
|
|
vm.service.isZK = isZK
|
|
|
// if (vm.service.isMyTask == 1) {
|
|
|
// //执行者
|
|
|
// vm.service.isCK = true //无法显示按钮
|
|
|
// if (vm.docInfo.uid == vm.service.specialistDoctorCode) {
|
|
|
// //说明我自己是创建者
|
|
|
// vm.service.isCK = false
|
|
|
// vm.service.isCreate = true
|
|
|
// }
|
|
|
// } else {
|
|
|
// if (vm.docInfo.uid == vm.service.specialistDoctorCode) {
|
|
|
// //说明我自己是创建者
|
|
|
// vm.service.isCreate = true
|
|
|
// }
|
|
|
// }
|
|
|
console.log('service', vm.service)
|
|
|
|
|
|
if (vm.service.isMyTask == 1) {
|
|
|
//执行者
|
|
|
vm.service.isCK = true //无法显示按钮
|
|
|
if (vm.docInfo.uid == vm.service.specialistDoctorCode) {
|
|
|
//说明我自己是创建者
|
|
|
vm.service.isCK = false
|
|
|
vm.service.isCreate = true
|
|
|
}
|
|
|
} else {
|
|
|
if (vm.docInfo.uid == vm.service.specialistDoctorCode) {
|
|
|
//说明我自己是创建者
|
|
|
vm.service.isCreate = true
|
|
|
}
|
|
|
}
|
|
|
if (vm.service.frequencyCode) {
|
|
|
vm.islimit = true
|
|
|
vm.goToLoadData(true)
|
|
@ -979,6 +978,27 @@ Vue.component('server-items-detail', {
|
|
|
}
|
|
|
this.viewDetail(planids, type, recordId)
|
|
|
},
|
|
|
getList: function () {
|
|
|
var vm = this
|
|
|
console.log('211111111111111111111111', vm.planInfo)
|
|
|
rehaAPI
|
|
|
.getList({
|
|
|
doctor: docInfo.code,
|
|
|
diseaseType: vm.service.disease,
|
|
|
type: '',
|
|
|
patientName: '',
|
|
|
patientCode: this.patientCode,
|
|
|
isDanger: '',
|
|
|
pageNo: 1,
|
|
|
pageSize: 1,
|
|
|
filterType: 1,
|
|
|
isAscvd: vm.planInfo.disease == '3' ? 1 : ''
|
|
|
})
|
|
|
.then(function (res) {
|
|
|
vm.scList = res.data
|
|
|
console.log(res, 'dasssssssssssssssssss')
|
|
|
})
|
|
|
},
|
|
|
viewDetail: function (planids, type, recordId) {
|
|
|
var vm = this
|
|
|
if (!planids) {
|
|
@ -1021,7 +1041,18 @@ Vue.component('server-items-detail', {
|
|
|
shift: 5,
|
|
|
shadeClose: false, //点击遮罩关闭层
|
|
|
content:
|
|
|
'../../rehabilitation/html/service_item_content.html?planids=' + planids + '&planId=' + vm.planid + '&patient=' + vm.patientcode + '&patientName=' + vm.patientname,
|
|
|
'../../rehabilitation/html/service_item_content.html?planids=' +
|
|
|
planids +
|
|
|
'&planId=' +
|
|
|
vm.planid +
|
|
|
'&patient=' +
|
|
|
vm.patientcode +
|
|
|
'&patientName=' +
|
|
|
vm.patientname +
|
|
|
'&disease=' +
|
|
|
vm.service.disease +
|
|
|
'&scLenght=' +
|
|
|
vm.scList.length,
|
|
|
end: function () {
|
|
|
vm.initData()
|
|
|
}
|