Browse Source

fix all

dev
刘嘉炜 4 years ago
parent
commit
525e0e5737
  1. 2
      src/pages/course/offer_info/offer_info.vue
  2. 35
      src/pages/shift/application/application.vue
  3. 2
      src/pages/shift/record/record.vue

2
src/pages/course/offer_info/offer_info.vue

@ -10,7 +10,7 @@
<view class="i-setion">
<view class="s-line"><text>课程名称</text>{{offerInfo.course.name || '-'}}</view>
<view class="s-line"><text>上课用户</text>{{offerInfo.name || '-'}}</view>
<view class="s-line"><text>课程次数</text>{{offerInfo.number || '0'}}</view>
<view class="s-line"><text>课程次数</text>{{offerInfo.offer_number || '0'}}</view>
<view class="s-line"><text>课程报价</text>{{offerInfo.offer_price || '0'}}</view>
</view>
</view>

35
src/pages/shift/application/application.vue

@ -81,9 +81,6 @@ export default {
coachInfo: {
name: ''
},
dateInfo: {
_time: ''
}
}
}
},
@ -92,7 +89,7 @@ export default {
},
methods: {
submitBtn: util.debounce(function(){
let { courseInfo, classInfo, coachInfo, dateInfo } = this.selectInfo;
let { courseInfo, classInfo, coachInfo } = this.selectInfo;
let { selectTimeIDS } = this;
if(!courseInfo.id || !classInfo.id || !coachInfo.id || selectTimeIDS.length<=0 )return util.showNone('请选择完整!');
util.showLoad();
@ -141,28 +138,16 @@ export default {
this.selectTimeIDS = [...this.tempSelectTimeID];
this.isShowTimeModal = false;
},
//
timeChange(e){
console.warn(e)
let { timeList, selectInfo } = this;
if(!selectInfo.coachInfo.id)return util.showNone('请选择教练!');
let _timeInfo = timeList[e.detail.value] || {};
this.selectInfo = {
...selectInfo,
dateInfo: _timeInfo
};
},
//
coachChange(e){
let { coachList, selectInfo } = this;
if(!selectInfo.classInfo.id)return util.showNone('请选择班级!');
let _coachInfo = coachList[e.detail.value] || {};
this.timeList = [];
this.selectTimeIDS = [];
this.selectInfo = {
...selectInfo,
coachInfo: _coachInfo,
dateInfo: {
_time: ''
}
coachInfo: _coachInfo
};
this.getShiftWorkClassTimes(selectInfo.courseInfo.id);
@ -172,14 +157,13 @@ export default {
let { classList, selectInfo } = this;
if(!selectInfo.courseInfo.id)return util.showNone('请选择课程!');
let _classInfo = classList[e.detail.value] || {};
this.timeList = [];
this.selectTimeIDS = [];
this.selectInfo = {
...selectInfo,
classInfo: _classInfo,
coachInfo: {
name: ''
},
dateInfo: {
_time: ''
}
};
this.getCoachList();
@ -188,6 +172,8 @@ export default {
courseChange(e){
let { courseList } = this;
let _courseInfo = courseList[e.detail.value] || {};
this.timeList = [];
this.selectTimeIDS = [];
this.selectInfo = {
courseInfo: _courseInfo,
classInfo: {
@ -195,9 +181,6 @@ export default {
},
coachInfo: {
name: ''
},
dateInfo: {
_time: ''
}
};
this.getClassList( _courseInfo.id );
@ -219,7 +202,7 @@ export default {
this.timeList = _list.map(e=>{
return {
...e,
_time: `${e.date} ${e.start_duration}`
_time: `${e.date} ${e.start_duration}~${e.end_duration}`
}
});
})

2
src/pages/shift/record/record.vue

@ -33,7 +33,7 @@
<view class="i-line">
<view>换班时间:</view>
<view>
<view v-for="(k,j) in e.duration_data" :key="j">{{k.date || '-'}} {{k.start_duration || '-'}}</view>
<view v-for="(k,j) in e.duration_data" :key="j">{{k.date || '-'}} {{k.start_duration || '-'}}~{{k.end_duration || '-'}}</view>
</view>
</view>
</view>

Loading…
Cancel
Save