-
-
-
-
-
-
-
{{ item.hospitalName }}
-
-
{{ item.combName }}
-
¥{{ item.setMealPrice || '0.0' }}
-
-
预约时间:{{ item.phyAppontTime }}
-
+
+
+
+
+
+
请选择体检状态
+
{{ makeStatus }}
+
-
-
+
+
+
+
+
+
+
提示:向左滑动,取消预约
+
+
+
+
+
+
+
+
+
+
+
{{ item.hospitalName }}
+
+
{{ item.combName }}
+
¥{{ item.setMealPrice || '0.0' }}
+
+
预约时间:{{ item.phyAppontTime }}
+
+
+
+
+
@@ -55,16 +58,31 @@ export default {
return {
token: '',
show: false,
- columns: [['全部', '已取消', '待体检', '已体检']],
+ columns: [
+ [
+ { label: '全部', value: 4 },
+ { label: '已取消', value: 1 },
+ { label: '待体检', value: 2 },
+ { label: '已体检', value: 3 }
+ ]
+ ],
// 体检状态
makeStatus: '',
+ makeStatusValue: 4,
// 列表
makeList: [],
+ // 全部列表
+ allList: [],
+ // 已取消列表
+ canceledList: [],
+ // 待体检列表
+ readyList: [],
+ // 已体检
+ examList: [],
isDisabled: false,
options: [
{
- text: '删除',
- // disabled: isDisabled,
+ text: '取消',
style: {
backgroundColor: '#f56c6c'
}
@@ -81,9 +99,21 @@ export default {
methods: {
handleSearch(e) {
console.log('🚀 ~ handleSearch ~ e:', e)
- this.makeStatus = e.value[0]
+ this.makeStatus = e.value[0].label
+ this.makeStatusValue = e.value[0].value
this.show = false
},
+ handleQuery(){
+ if (this.makeStatusValue == 4) {
+ this.makeList = this.allList
+ } else if (this.makeStatusValue == 1) {
+ this.makeList = this.canceledList
+ } else if (this.makeStatusValue == 2) {
+ this.makeList = this.readyList
+ } else if (this.makeStatusValue == 3) {
+ this.makeList = this.examList
+ }
+ },
// 获取列表 getpersonappointInfo
getList() {
console.log('🚀 ~ 列表 ~ this.token:', this.token)
@@ -99,7 +129,10 @@ export default {
res = res.data
console.log('🚀 ~ 列表 ~ res:', res)
if (res.res == 1) {
- this.makeList = res.obj
+ this.makeList = this.allList = res.obj
+ this.canceledList = res.obj.filter(item => item.ifCancel == 1)
+ this.readyList = res.obj.filter(item => item.ifCancel == 2)
+ this.examList = res.obj.filter(item => item.ifCancel == 3)
}
},
fail: err => {
@@ -107,23 +140,72 @@ export default {
}
})
},
- // 操作-删除
- handleDelete(item) {
- console.log('🚀 ~ handleDelete ~ item:', item)
-
- },
- //
- handleOption(item) {
- console.log('🚀 ~ handleOption ~ item:', item)
- const params = {
- id: item.id,
- combName: item.combName,
- }
- console.log('🚀 ~ handleOption ~ params:', params)
- uni.navigateTo({
- url: '/pages/HealthExaminationApp/myAppointment/healthExamDetails?params=' + JSON.stringify(params)
- })
- }
+ // 操作-删除 cancelpoint
+ handleDelete(item) {
+ console.log('🚀 ~ handleDelete ~ item:', item)
+ const params = {
+ cancelId: item.id,
+ mealType: item.setMealType,
+ token: this.token
+ }
+ // 弹框确认
+ uni.showModal({
+ title: '提示',
+ content: '确认取消预约吗?',
+ success: res => {
+ console.log('🚀 ~ handleDelete ~ res:', res)
+ if (res.confirm) {
+ uni.request({
+ url: config.tjBaseUrl + '/app/cancelpoint',
+ method: 'post',
+ data: params,
+ header: {
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ token: this.token
+ },
+ success: res => {
+ res = res.data
+ console.log('🚀 ~ 取消预约 ~ res:', res)
+ if (res.res == 1) {
+ if (item.setMealType == '2') {
+ uni.removeStorageSync('appoint')
+ } else if (item.setMealType == '3') {
+ uni.removeStorageSync('jobAppoint')
+ }
+ // 刷新 - 重定向
+ uni.redirectTo({
+ url: '/pages/HealthExaminationApp/myAppointment/myAppointment'
+ })
+ }
+ },
+ fail: err => {
+ console.log('🚀 ~ 列表 ~ err:', err)
+ }
+ })
+ }
+ },
+ fail: err => {
+ console.log('🚀 ~ handleDelete ~ err:', err)
+ }
+ })
+ },
+ //
+ handleOption(item) {
+ console.log('🚀 ~ handleOption ~ item:', item)
+ const params = {
+ id: item.id,
+ combName: item.combName
+ }
+ console.log('🚀 ~ handleOption ~ params:', params)
+ uni.navigateTo({
+ url: '/pages/HealthExaminationApp/myAppointment/healthExamDetails?params=' + JSON.stringify(params)
+ })
+ },
+ leftClick() {
+ uni.reLaunch({
+ url: '/pages/HealthExaminationApp/index/index'
+ })
+ }
}
}
diff --git a/pages/HealthExaminationApp/report/pdfView.vue b/pages/HealthExaminationApp/report/pdfView.vue
new file mode 100644
index 0000000..41088f8
--- /dev/null
+++ b/pages/HealthExaminationApp/report/pdfView.vue
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
+
diff --git a/pages/HealthExaminationApp/report/report.vue b/pages/HealthExaminationApp/report/report.vue
index 748742a..d6cf40f 100644
--- a/pages/HealthExaminationApp/report/report.vue
+++ b/pages/HealthExaminationApp/report/report.vue
@@ -1,19 +1,229 @@
-
- 提交报告
-
+
+
+
+
+
+
+
+
{{ item.fixedValue }}
+
+
{{ item.mealName }}
+
{{ item.createTime }}
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/gzt/index.vue b/pages/gzt/index.vue
index 75259dd..32e0cc0 100644
--- a/pages/gzt/index.vue
+++ b/pages/gzt/index.vue
@@ -197,7 +197,7 @@
jwtToken: uni.getStorageSync('App-Token')
}
const tjparams = {
- username: '13708411772', // 15912575796
+ username: '17681010134', // 15912575796
password: 'YNsbd@123456'
}
console.log('🚀 ~ gotoYy ~ tjparams:', tjparams)
@@ -262,7 +262,7 @@
}, 500)
} else {
uni.showToast({
- title: req.message,
+ title: res.msg,
icon: 'none'
})
}