xuechunyuan 3 years ago
commit 8fcab7fed4
  1. 5
      src/views/examProject.vue
  2. 149
      src/views/examination.vue

@ -129,7 +129,10 @@ export default {
clickFail(){
this.$router.replace({
name:'examination'
name:'examination',
query:{
id:this.proData.createDept
}
})
},
clickSucc(){

@ -200,6 +200,10 @@ export default {
})
},
getList(){
this.$toast.loading({
message:'加载中',
duration: 0,
})
queryList(
{
createDept:this.hospitalId,
@ -208,111 +212,68 @@ export default {
}
).then(res =>{
if(res.data.length == 0){
this.examData = [
// {
// project:'',cuAddr:'',apmDay: "2023-03-12",
// totalNum : 10, totalApmNum: 0,
// detailList: [
// {
// period:"",
// timeFrame: "9:00-9:30",
// numberNum: 5,
// apmNum: 0,
// residueNum: 0,
// enableApm: 0
// },
// {
// period:"",
// timeFrame: "9:30-10:00",
// numberNum: 5,
// apmNum: 0,
// residueNum: 0, //
// enableApm: 0 //
// },
// {
// period:"",
// timeFrame: "10:30-11:00",
// numberNum: 5,
// apmNum: 0,
// residueNum: 0, //
// enableApm: 0 //
// }
// ]
// },
// {
// project:'',cuAddr:'',apmDay: "2023-03-12",
// totalNum : 10, totalApmNum: 0,
// detailList: [
// {
// period:"",
// timeFrame: "9:00-9:30",
// numberNum: 5,
// apmNum: 0,
// residueNum: 0,
// enableApm: 0
// },
// {
// period:"",
// timeFrame: "9:30-10:00",
// numberNum: 5,
// apmNum: 0,
// residueNum: 0, //
// enableApm: 0 //
// },
// {
// period:"",
// timeFrame: "10:30-11:00",
// numberNum: 5,
// apmNum: 0,
// residueNum: 0, //
// enableApm: 0 //
// }
// ]
// },
// {
// project:'',cuAddr:'',apmDay: "2023-03-12",
// totalNum : 10, totalApmNum: 0,
// detailList: [
// {
// period:"",
// timeFrame: "9:00-9:30",
// numberNum: 5,
// apmNum: 0,
// residueNum: 0,
// enableApm: 0
// },
// {
// period:"",
// timeFrame: "9:30-10:00",
// numberNum: 5,
// apmNum: 0,
// residueNum: 0, //
// enableApm: 0 //
// },
// {
// period:"",
// timeFrame: "10:30-11:00",
// numberNum: 5,
// apmNum: 0,
// residueNum: 0, //
// enableApm: 0 //
// }
// ]
// }
];
lightAppJssdk.notification.alert({
lightAppJssdk.notification.alert({
message: "当前时间无体检项目",
title: "提示",//
buttonName: "收到",
success: function (data) {
success: (data) => {
if(JSON.parse(data).buttonIndex == 1){
this.examData = [
{
project:'单眼视力',cuAddr:'',
totalNum : 0, totalApmNum: 0,
apmDay: new Date().getFullYear() + '-' + new Date().getMonth() < 10 ? '0' + parseInt(new Date().getMonth() + 1) : new Date().getMonth() + '-' + new Date().getDate(),
detailList: []
},
{
project:'听力',cuAddr:'',
totalNum : 0, totalApmNum: 0,
apmDay: new Date().getFullYear() + '-' + new Date().getMonth() < 10 ? '0' + parseInt(new Date().getMonth() + 1) : new Date().getMonth() + '-' + new Date().getDate(),
detailList: []
},
{
project:'四肢',cuAddr:'',
totalNum : 0, totalApmNum: 0,
apmDay: new Date().getFullYear() + '-' + new Date().getMonth() < 10 ? '0' + parseInt(new Date().getMonth() + 1) : new Date().getMonth() + '-' + new Date().getDate(),
detailList: [
]
}
];
this.examData.map(item =>{
item.detailList.push(
{period:"上午",timeFrame: "08:00-08:30",numberNum: 5,apmNum: 0,
residueNum: 0,enableApm: 0
},
{period:"上午",timeFrame: "08:30-09:00",numberNum: 5,apmNum: 0,
residueNum: 0,enableApm: 0
},{period:"上午",timeFrame: "09:00-09:30",numberNum: 5,apmNum: 0,
residueNum: 0,enableApm: 0
},{period:"上午",timeFrame: "09:30-10:00",numberNum: 5,apmNum: 0,
residueNum: 0,enableApm: 0
},{period:"下午",timeFrame: "01:00-01:30",numberNum: 5,apmNum: 0,
residueNum: 0,enableApm: 0
},{period:"下午",timeFrame: "01:30-02:00",numberNum: 5,apmNum: 0,
residueNum: 0,enableApm: 0
},{period:"下午",timeFrame: "02:00-02:30",numberNum: 5,apmNum: 0,
residueNum: 0,enableApm: 0
},{period:"下午",timeFrame: "02:30-03:00",numberNum: 5,apmNum: 0,
residueNum: 0,enableApm: 0
},
)
})
this.$toast.clear();
}
// console.log(this.examData)
},
fail: function (data) { //
}
})
}else{
this.examData = res.data;
this.$toast.clear();
}
console.log(this.examData)
this.examData.map(item =>{
item.detailList.map(item1 =>{
item1.isSelect = false

Loading…
Cancel
Save