|
@ -1,3 +1,4 @@
|
|
|
|
|
|
function showSuccessMessage(msg) {
|
|
function showSuccessMessage(msg) {
|
|
layer.msg(msg, {
|
|
layer.msg(msg, {
|
|
icon: 1
|
|
icon: 1
|
|
@ -22,7 +23,7 @@ function showInfoMessage(msg) {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var httpData=GetRequest();
|
|
new Vue({
|
|
new Vue({
|
|
el: '#app',
|
|
el: '#app',
|
|
data: {
|
|
data: {
|
|
@ -38,7 +39,9 @@ new Vue({
|
|
tablelist: [],
|
|
tablelist: [],
|
|
types: [],
|
|
types: [],
|
|
Statics: {},
|
|
Statics: {},
|
|
|
|
scListItem:'',
|
|
wujilu: false,
|
|
wujilu: false,
|
|
|
|
value1:'',
|
|
datamodelshow: true,
|
|
datamodelshow: true,
|
|
centerDialogVisible: false,
|
|
centerDialogVisible: false,
|
|
surveyResultCode:"",
|
|
surveyResultCode:"",
|
|
@ -46,13 +49,76 @@ new Vue({
|
|
docInfo:JSON.parse(window.localStorage.getItem('docInfo')),
|
|
docInfo:JSON.parse(window.localStorage.getItem('docInfo')),
|
|
jiayiShow:false,
|
|
jiayiShow:false,
|
|
doctorMobile:'',
|
|
doctorMobile:'',
|
|
|
|
newDropdownItems: [
|
|
|
|
],
|
|
|
|
selectedNewDropdown: ''
|
|
},
|
|
},
|
|
created:function() {
|
|
created:function() {
|
|
|
|
|
|
|
|
},
|
|
|
|
watch:{
|
|
},
|
|
},
|
|
mounted: function () {
|
|
mounted: function () {
|
|
var vm = this
|
|
var vm = this
|
|
|
|
// vm.scListItem={
|
|
|
|
// id: 3297,
|
|
|
|
// code: "e95d50219c71401ba4fb52a63faf821f",
|
|
|
|
// templateCode: "6bcd306aaafb4e4381071346d86fadbb1",
|
|
|
|
// templateTitle: "ASCVD风险评估",
|
|
|
|
// disease: 3,
|
|
|
|
// doctor: "361aef4891de492cb0e6a47cf9fe31f3",
|
|
|
|
// doctorMobile: "15200000001",
|
|
|
|
// patientCode: "0fab4dd67e074e16ac86db6b6c15233e",
|
|
|
|
// photo: "group1/M01/23/EF/Cl8WjGUL6EeAUdSeAATf8kYXf5o571.png",
|
|
|
|
// openId: null,
|
|
|
|
// patientName: "黄小蕾",
|
|
|
|
// screenResultCode: "1",
|
|
|
|
// screenResultScore: -1,
|
|
|
|
// screenResult: "超高危",
|
|
|
|
// isDanger: 1,
|
|
|
|
// isOrder: 0,
|
|
|
|
// following: 0,
|
|
|
|
// isEducate: 0,
|
|
|
|
// over: 1,
|
|
|
|
// reservationCode: null,
|
|
|
|
// czrq: "2024-10-18 15:04:50",
|
|
|
|
// isAgain: 1,
|
|
|
|
// parentCode: null,
|
|
|
|
// originCode: "e95d50219c71401ba4fb52a63faf821f",
|
|
|
|
// adviceCode: null,
|
|
|
|
// otherAdvice: null,
|
|
|
|
// source: 1,
|
|
|
|
// updateTime: null,
|
|
|
|
// idcard: "650101198007121633",
|
|
|
|
// sex: "1",
|
|
|
|
// age: 44,
|
|
|
|
// level: 0,
|
|
|
|
// doctorName: null,
|
|
|
|
// isThird: null,
|
|
|
|
// thirdId: null,
|
|
|
|
// thirdSource: "4",
|
|
|
|
// thirdAdvice: "应定期到医院进行检查,积极采取各类措施,并服用一些必要的药物进行预防。针对超高危人群的低密度脂蛋白胆固醇推荐目标值为<1.4mmol/L",
|
|
|
|
// doctorNameReservation: null,
|
|
|
|
// czrqReservation: null,
|
|
|
|
// startTimeReservation: null,
|
|
|
|
// surveyStatus: null,
|
|
|
|
// hospitalName: null,
|
|
|
|
// value1: null,
|
|
|
|
// value2: null,
|
|
|
|
// doctorIdcard: null,
|
|
|
|
// hospital: null,
|
|
|
|
// town: null,
|
|
|
|
// mobile: null,
|
|
|
|
// birthday: null
|
|
|
|
// }
|
|
|
|
vm.name=vm.scListItem.patientName
|
|
|
|
if(httpData.scListItem){
|
|
|
|
vm.scListItem=JSON.parse(decodeURIComponent(httpData.scListItem))
|
|
|
|
vm.name=vm.scListItem.patientName
|
|
|
|
console.log('3333333333333333',JSON.parse(decodeURIComponent(httpData.scListItem)))
|
|
|
|
}
|
|
vm.getModal()
|
|
vm.getModal()
|
|
|
|
// 初始化Bootstrap下拉菜单
|
|
// 专科
|
|
// 专科
|
|
if(vm.docInfo.level == '1') {
|
|
if(vm.docInfo.level == '1') {
|
|
vm.getList()
|
|
vm.getList()
|
|
@ -60,6 +126,7 @@ new Vue({
|
|
vm.getDatas()
|
|
vm.getDatas()
|
|
}
|
|
}
|
|
vm.gettypes()
|
|
vm.gettypes()
|
|
|
|
vm.getDraopDown()
|
|
parent.eventBuss.$on('guan_results',function(index){
|
|
parent.eventBuss.$on('guan_results',function(index){
|
|
top.layer.close(index)
|
|
top.layer.close(index)
|
|
if(vm.docInfo.level == '1') {
|
|
if(vm.docInfo.level == '1') {
|
|
@ -71,6 +138,10 @@ new Vue({
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
selectTemplate: function (template) {
|
|
|
|
this.templateCode = template.code
|
|
|
|
$('#TemplateCode').val(template.name)
|
|
|
|
},
|
|
lianxijiayi:function(data) {
|
|
lianxijiayi:function(data) {
|
|
this.doctorMobile = data.doctorMobile
|
|
this.doctorMobile = data.doctorMobile
|
|
this.jiayiShow = true
|
|
this.jiayiShow = true
|
|
@ -114,12 +185,17 @@ new Vue({
|
|
getDatas: function () {
|
|
getDatas: function () {
|
|
var vm = this
|
|
var vm = this
|
|
var params = {
|
|
var params = {
|
|
diseaseType: vm.type, //疾病类型
|
|
|
|
|
|
diseaseType:vm.scListItem?'3': vm.type, //疾病类型
|
|
dealType: vm.status, //处理方式(全部为空 1已预约 2已跟踪 3已接诊4待处理)
|
|
dealType: vm.status, //处理方式(全部为空 1已预约 2已跟踪 3已接诊4待处理)
|
|
patientName: vm.name, //搜索居民的姓名
|
|
patientName: vm.name, //搜索居民的姓名
|
|
isDanger: vm.isDanger, //是否高危预警(0否 1是)
|
|
isDanger: vm.isDanger, //是否高危预警(0否 1是)
|
|
pageNo: vm.currentPage,
|
|
pageNo: vm.currentPage,
|
|
pageSize: vm.pagesize
|
|
|
|
|
|
pageSize: vm.pagesize,
|
|
|
|
templateCode: vm.scListItem?'6bcd306aaafb4e4381071346d86fadbb1': vm.selectedNewDropdown,
|
|
|
|
startDate:vm.value1[0],
|
|
|
|
endDate:vm.value1[1],
|
|
|
|
patient:vm.scListItem?vm.scListItem.patientCode:"",
|
|
|
|
onlyPatient:vm.scListItem? '1':''
|
|
}
|
|
}
|
|
jbscAPI.getResultList(params).then(function (res) {
|
|
jbscAPI.getResultList(params).then(function (res) {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
@ -160,6 +236,48 @@ new Vue({
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
getDraopDown:function(diseaseType){
|
|
|
|
var vm=this
|
|
|
|
console.log(diseaseType,'asdddddddddddd')
|
|
|
|
jbscAPI.getScreenList({pageNo:1,pageSize:1000,labelType:'5',title:'',diseaseType:diseaseType}).then(function (res) {
|
|
|
|
if (res.status == 200) {
|
|
|
|
vm.newDropdownItems = _.map(res.data, function (v) {
|
|
|
|
return {
|
|
|
|
code: v.code,
|
|
|
|
name: v.title
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
)
|
|
|
|
if(vm.newDropdownItems.length>1){
|
|
|
|
|
|
|
|
vm.newDropdownItems=[
|
|
|
|
{
|
|
|
|
code: 'all',
|
|
|
|
name: '全部'
|
|
|
|
}
|
|
|
|
].concat(vm.newDropdownItems)
|
|
|
|
}
|
|
|
|
}})
|
|
|
|
},
|
|
|
|
exportScreenResultList:function(){
|
|
|
|
var vm=this
|
|
|
|
if(vm.selectedNewDropdown==''||vm.selectedNewDropdown=='all'){
|
|
|
|
showErrorMessage('请选中筛查表单!')
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
jbscAPI.exportScreenResultList({
|
|
|
|
diseaseType: vm.type, //疾病类型
|
|
|
|
dealType: vm.status? vm.status:'', //处理方式(全部为空 1已预约 2已跟踪 3已接诊4待处理)
|
|
|
|
patientName: vm.name, //搜索居民的姓名
|
|
|
|
isDanger: vm.isDanger, //是否高危预警(0否 1是)
|
|
|
|
pageNo: vm.currentPage,
|
|
|
|
pageSize: vm.pagesize,
|
|
|
|
templateCode:vm.selectedNewDropdown,
|
|
|
|
startDate:vm.value1[0]?vm.value1[0]:'',
|
|
|
|
endDate:vm.value1[1]?vm.value1[1]:''
|
|
|
|
},'筛查表单.xls')
|
|
|
|
},
|
|
gettypes: function () {
|
|
gettypes: function () {
|
|
var vm = this
|
|
var vm = this
|
|
var search = true
|
|
var search = true
|
|
@ -227,8 +345,12 @@ new Vue({
|
|
getDataMethod: 'data',
|
|
getDataMethod: 'data',
|
|
effectiveFields: ['name'],
|
|
effectiveFields: ['name'],
|
|
idField: 'code',
|
|
idField: 'code',
|
|
keyField: 'name'
|
|
|
|
})
|
|
|
|
|
|
keyField: 'name',
|
|
|
|
}).on('onSetSelectValue', function (e, selectedData, selectedRawData) {
|
|
|
|
vm.getDraopDown(selectedData.id)
|
|
|
|
vm.selectedNewDropdown=''
|
|
|
|
console.log('onSetSelectValue: ', e.target.value, selectedData, selectedRawData);
|
|
|
|
})
|
|
vm.types = res.data
|
|
vm.types = res.data
|
|
} else {
|
|
} else {
|
|
showErrorMessage(res.msg)
|
|
showErrorMessage(res.msg)
|
|
@ -258,6 +380,7 @@ new Vue({
|
|
vm.isDanger = type
|
|
vm.isDanger = type
|
|
vm.search(1)
|
|
vm.search(1)
|
|
},
|
|
},
|
|
|
|
|
|
//页面跳转
|
|
//页面跳转
|
|
search: function (page) {
|
|
search: function (page) {
|
|
var vm = this
|
|
var vm = this
|