修改预约筛查传值
This commit is contained in:
parent
14ed5856e9
commit
ddb5144b7f
@ -7,10 +7,13 @@ export function getPoserInfoListByType() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 获取当前预约详情
|
// 获取当前预约详情
|
||||||
export function getScreening(patientId) {
|
export function getScreening(cardNo) {
|
||||||
return request({
|
return request({
|
||||||
url: `/nurseApplet/screening/record/getScreening/${patientId}`,
|
url: `/nurseApplet/screening/record/getScreening/${cardNo}`,
|
||||||
method: 'GET'
|
method: 'GET',
|
||||||
|
header: {
|
||||||
|
region: uni.getStorageSync('region'),
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,13 @@
|
|||||||
import request from "../../request.js"
|
import request from "../../request.js"
|
||||||
// 获取预约列表
|
// 获取预约列表
|
||||||
export function getOrderList(patientId,pageNum,pageSize) {
|
export function getOrderList(cardNo,pageNum,pageSize) {
|
||||||
return request({
|
return request({
|
||||||
url: `/nurseApplet/screening/record/list?patientId=${patientId}&pageNum=${pageNum}&pageSize=${pageSize}` ,
|
url: `/nurseApplet/screening/record/list?cardNo=${cardNo}&pageNum=${pageNum}&pageSize=${pageSize}` ,
|
||||||
// data: data,
|
// data: data,
|
||||||
method: 'get'
|
method: 'get',
|
||||||
|
header: {
|
||||||
|
region: uni.getStorageSync('region'),
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// export function inviteFriends(patientId) {
|
// export function inviteFriends(patientId) {
|
||||||
|
|||||||
@ -8,7 +8,10 @@ export function screenOrder(data) {
|
|||||||
return request({
|
return request({
|
||||||
url: '/nurseApplet/screening/record/save',
|
url: '/nurseApplet/screening/record/save',
|
||||||
data: data,
|
data: data,
|
||||||
method: 'post'
|
method: 'post',
|
||||||
|
header: {
|
||||||
|
region: uni.getStorageSync('region'),
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -188,10 +191,13 @@ export function changeUserInfo(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 获取机构列表
|
// 获取机构列表
|
||||||
export function getDeptList(hospitalName) {
|
export function getDeptList(hospitalName,cardNo) {
|
||||||
return request({
|
return request({
|
||||||
url: `/nurseApplet/hospital/getList?hospitalName=${hospitalName}`,
|
url: `/nurseApplet/hospital/getList?hospitalName=${hospitalName}&cardNo=${cardNo}`,
|
||||||
method: 'get'
|
method: 'get',
|
||||||
|
header: {
|
||||||
|
region: uni.getStorageSync('region'),
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 获取筛查项目列表
|
// 获取筛查项目列表
|
||||||
@ -199,7 +205,10 @@ export function getProlist(data) {
|
|||||||
return request({
|
return request({
|
||||||
url: '/nurseApplet/screening/project/list',
|
url: '/nurseApplet/screening/project/list',
|
||||||
data: data,
|
data: data,
|
||||||
method: 'get'
|
method: 'get',
|
||||||
|
header: {
|
||||||
|
region: uni.getStorageSync('region'),
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 获取预约列表
|
// 获取预约列表
|
||||||
|
|||||||
@ -62,12 +62,14 @@
|
|||||||
patientId: '',
|
patientId: '',
|
||||||
userInfo: null,
|
userInfo: null,
|
||||||
location: null,
|
location: null,
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.pageNum = 1
|
this.pageNum = 1
|
||||||
this.patientId = uni.getStorageSync('patientId');
|
this.patientId = uni.getStorageSync('patientId');
|
||||||
this.userInfo = uni.getStorageSync('userinfo')
|
this.userInfo = uni.getStorageSync('userinfo')
|
||||||
|
this.cardNo = this.userInfo.cardNo
|
||||||
this.location = uni.getStorageSync('location')
|
this.location = uni.getStorageSync('location')
|
||||||
this.getHeathHousing();
|
this.getHeathHousing();
|
||||||
},
|
},
|
||||||
@ -95,7 +97,7 @@
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
getScreening(this.patientId).then(res => {
|
getScreening(this.cardNo).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
let userinfo = JSON.stringify(this.userInfo)
|
let userinfo = JSON.stringify(this.userInfo)
|
||||||
if (!res.data || res.data == null) {
|
if (!res.data || res.data == null) {
|
||||||
|
|||||||
@ -41,6 +41,7 @@
|
|||||||
return {
|
return {
|
||||||
pageList: [],
|
pageList: [],
|
||||||
patientId: "",
|
patientId: "",
|
||||||
|
cardNo:'',
|
||||||
userInfo: {},
|
userInfo: {},
|
||||||
pageSize:10,
|
pageSize:10,
|
||||||
pageNum:1,
|
pageNum:1,
|
||||||
@ -63,7 +64,8 @@
|
|||||||
getOrderList() {
|
getOrderList() {
|
||||||
const value= uni.getStorageSync('userinfo');
|
const value= uni.getStorageSync('userinfo');
|
||||||
this.patientId =value.id
|
this.patientId =value.id
|
||||||
getOrderList(this.patientId,this.pageNum,this.pageSize).then(res => {
|
this.cardNo=value.cardNo
|
||||||
|
getOrderList(this.cardNo,this.pageNum,this.pageSize).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.pageList = res.rows
|
this.pageList = res.rows
|
||||||
// console.log(this.pageList,'555')
|
// console.log(this.pageList,'555')
|
||||||
|
|||||||
@ -130,6 +130,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
DeptList: [],
|
DeptList: [],
|
||||||
|
cardNo:null,
|
||||||
ProList: [],
|
ProList: [],
|
||||||
hospitalId: '',
|
hospitalId: '',
|
||||||
test1: [{
|
test1: [{
|
||||||
@ -200,6 +201,7 @@
|
|||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
if (e) {
|
if (e) {
|
||||||
this.userInfo = JSON.parse(e.userinfo)
|
this.userInfo = JSON.parse(e.userinfo)
|
||||||
|
this.cardNo=this.userInfo.cardNo
|
||||||
if (this.userInfo.sex == 'MALE') {
|
if (this.userInfo.sex == 'MALE') {
|
||||||
this.userInfo.sex = '男'
|
this.userInfo.sex = '男'
|
||||||
} else if (this.userInfo.sex == 'FEMALE') {
|
} else if (this.userInfo.sex == 'FEMALE') {
|
||||||
@ -225,6 +227,7 @@
|
|||||||
console.log(e, '478')
|
console.log(e, '478')
|
||||||
},
|
},
|
||||||
input(e) {
|
input(e) {
|
||||||
|
|
||||||
if (e) {
|
if (e) {
|
||||||
this.formData.hospitalName = e
|
this.formData.hospitalName = e
|
||||||
this.formData.hospitalNameId = ''
|
this.formData.hospitalNameId = ''
|
||||||
@ -239,6 +242,7 @@
|
|||||||
this.formData.projectId = ''
|
this.formData.projectId = ''
|
||||||
this.infolist()
|
this.infolist()
|
||||||
// this.formData.hospitalName = this.DeptList.find(item => item.value == e).text
|
// this.formData.hospitalName = this.DeptList.find(item => item.value == e).text
|
||||||
|
// console.log(this.formData.hospitalName, '89')
|
||||||
this.formData.hospitalName = e.label
|
this.formData.hospitalName = e.label
|
||||||
this.formData.hospitalId = e.value
|
this.formData.hospitalId = e.value
|
||||||
},
|
},
|
||||||
@ -252,7 +256,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getDeptAndPro() {
|
getDeptAndPro() {
|
||||||
getDeptList(this.formData.hospitalName).then(res => {
|
getDeptList(this.formData.hospitalName,this.cardNo).then(res => {
|
||||||
this.DeptList = []
|
this.DeptList = []
|
||||||
res.data.map((item) => {
|
res.data.map((item) => {
|
||||||
var obj = {
|
var obj = {
|
||||||
@ -260,6 +264,7 @@
|
|||||||
value: item.id
|
value: item.id
|
||||||
};
|
};
|
||||||
this.DeptList.push(obj);
|
this.DeptList.push(obj);
|
||||||
|
console.log(obj)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -328,6 +333,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
process() {
|
process() {
|
||||||
|
|
||||||
if (!this.formData.hospitalId) {
|
if (!this.formData.hospitalId) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user