Commit 3d05d1d7 authored by zhengke's avatar zhengke

1

parent ac395824
<style>
</style>
<template>
<div>
<div style="margin-top:30px;">
<div class="row wrap">
<q-input filled type="textarea" class="col-6 q-pb-lg" label="内容"></q-input>
</div>
</div>
</div>
</template>
<script>
export default {
meta: {
title: ""
},
components: {
},
props: {
},
data() {
return {
}
},
mounted() {},
methods: {
},
}
</script>
<style>
</style>
<template>
<div>
合同
</div>
</template>
<script>
export default {
meta: {
title: ""
},
components: {
},
props: {
},
data() {
return {
}
},
mounted() {},
methods: {
},
}
</script>
<style>
.TimeLineDiv {
margin-top: 20px;
overflow: auto;
height:620px;
flex: 1;
height: 100%;
padding-right: 20px;
}
</style>
<template>
<div> 我是记录
<!-- <div style="display:flex;flex:1;flex-direction: column;overflow:hidden;">
<div class="TimeLineDiv">
<q-timeline color="primary">
<q-timeline-entry v-for="(tItem,tIndex) in data.tripDataList" :key="tIndex">
<template v-slot:title>
<div style="font-size:14px;">{{ tItem.Description }}</div>
</template>
<template v-slot:subtitle>
<div class="customUpdateTime">
<div>{{ tItem.UpdateTime }}</div>
<div>{{ tItem.UpdateByName }}</div>
</div>
</template>
<div>
<div>{{ tItem.Remark }}</div>
<div class="img_box">
<img v-for="(e,i) in tItem.ImageList" :key="i" :src="e" class="img" />
</div>
<div class="file_box">
<div v-for="(e,i) in tItem.FileList" :key="i" class="flex items-center file_name">附件:<span
style="color:#000">{{ e.FileName }}</span>
<div class="del_btn" @click="DownLoadFileByUrl(e.FileUrl,e.FileName)">下载</div>
</div>
</div>
</div>
</q-timeline-entry>
</q-timeline>
</div>
</div>
<div style="margin:20px 0;">
<q-pagination class="full-width justify-end" v-model="customTripMsg.pageIndex" color="primary"
:max="data.TripPageCount" input @update:model-value="changePage" />
</div> -->
</div>
</template>
<script>
export default {
meta: {
title: ""
},
components: {
},
props: {
},
data() {
return {
}
},
mounted() {},
methods: {
},
}
</script>
<style>
</style>
<template>
<div>
<div style="overflow:auto;margin-top:30px;">
<div class="row wrap">
<q-select filled option-value="SId" class="col-6 q-pb-lg" option-label="SName" v-model="VisitMsg.School_Id"
:options="schoolList" emit-value map-options label="到访校区" />
</div>
<div class="row wrap">
<q-input filled v-model="VisitMsg.Date" class="col-6 q-pb-lg" mask="date" label="日期">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
<q-popup-proxy ref="qDateProxy1" transition-show="scale" transition-hide="scale">
<q-date v-model="VisitMsg.Date" @input="() => $refs.qDateProxy1.hide()" />
</q-popup-proxy>
</q-icon>
</template>
</q-input>
</div>
<div class="row warp">
<q-input filled mask="time" v-model="VisitMsg.VisitTime" :rules="['time']" class="col-6 q-pb-lg">
<template v-slot:append>
<q-icon name="access_time" class="cursor-pointer">
<q-popup-proxy transition-show="scale" transition-hide="scale">
<q-time v-model="VisitMsg.VisitTime">
<div class="row items-center justify-end">
<q-btn v-close-popup label="Close" color="primary" flat />
</div>
</q-time>
</q-popup-proxy>
</q-icon>
</template>
</q-input>
</div>
<div class="row wrap">
<q-input filled v-model="VisitMsg.ReceptionPersion" class="col-6 q-pb-lg" label="接待人"></q-input>
</div>
<div class="row wrap">
<q-input filled v-model="VisitMsg.ReceptionPersion" type="textarea" class="col-6 q-pb-lg" label="备注"></q-input>
</div>
<div class="row wrap">
<q-input filled v-model="VisitMsg.Feedback" type="textarea" class="col-6 q-pb-lg" label="反馈"></q-input>
</div>
<div class="row wrap" style="margin-bottom:10px;">
<q-btn label="保存" color="accent q-mb-lg" style="width:200px;" @click="saveVisit()" />
</div>
</div>
</div>
</template>
<script>
import {
getSchoolDropdown, //获取校区列表
} from '../../../api/school/index';
export default {
meta: {
title: ""
},
components: {
},
props: {
},
data() {
return {
schoolList:[],
//到访msg
VisitMsg:{
Id:0, //到访编号
StuId:0, //学员编号
School_Id:0, //到访校区
Date:'', //日期
VisitTime:'', //到访时间
ReceptionPersion:'', //接待人
Remark:'', //备注
Feedback:'' //反馈
}
}
},
mounted() {
this.getSchool();
},
methods: {
//获取校区列表
getSchool() {
getSchoolDropdown({}).then(res => {
if (res.Code == 1) {
var tempArray = res.Data;
if (!tempArray) {
tempArray = [];
}
this.schoolList = tempArray;
}
})
},
},
}
</script>
<style>
</style>
<template>
<div>
<div style="margin-top:30px;">
<div class="row wrap">
<q-input filled class="col-6 q-pb-lg" label="地点"></q-input>
</div>
<div class="row wrap">
<q-input filled class="col-6 q-pb-lg" mask="date" label="日期">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
<q-popup-proxy ref="qDateProxy1" transition-show="scale" transition-hide="scale">
<q-date @input="() => $refs.qDateProxy1.hide()" />
</q-popup-proxy>
</q-icon>
</template>
</q-input>
</div>
<div class="row wrap">
<q-input filled type="textarea" class="col-6 q-pb-lg" label="目的"></q-input>
</div>
<div class="row wrap">
<q-btn label="保存" color="accent q-mb-lg" style="width:200px;" @click="saveYuefang()" />
</div>
</div>
</div>
</template>
<script>
export default {
meta: {
title: ""
},
components: {
},
props: {
},
data() {
return {
}
},
mounted() {
},
methods: {
//保存
saveYuefang() {
},
},
}
</script>
...@@ -39,123 +39,26 @@ ...@@ -39,123 +39,26 @@
:class="{ 'ckedClass': qIndex+1 == secondType }" @click="getckedType(qItem)">{{ qItem.Name }} :class="{ 'ckedClass': qIndex+1 == secondType }" @click="getckedType(qItem)">{{ qItem.Name }}
</div> </div>
</div> </div>
<!-- 记录 -->
<template v-if="ckedTab==1"> <template v-if="ckedTab==1">
<div style="display:flex;flex:1;flex-direction: column;overflow:hidden;"> <student-record></student-record>
<div class="TimeLineDiv"> </template>
1 <!-- 操作 -->
<!-- <q-timeline color="primary"> <template v-if="ckedTab==2">
<q-timeline-entry v-for="(tItem,tIndex) in data.tripDataList" :key="tIndex"> <div style="overflow:auto;">
<template v-slot:title> <student-visit v-if="secondType==1"></student-visit>
<div style="font-size:14px;">{{ tItem.Description }}</div> <student-yuefang v-if="secondType==2"></student-yuefang>
</template> <student-genjin v-if="secondType==3"></student-genjin>
<template v-slot:subtitle> <student-hetong v-if="secondType==4"></student-hetong>
<div class="customUpdateTime">
<div>{{ tItem.UpdateTime }}</div>
<div>{{ tItem.UpdateByName }}</div>
</div>
</template>
<div>
<div>{{ tItem.Remark }}</div>
<div class="img_box">
<img v-for="(e,i) in tItem.ImageList" :key="i" :src="e" class="img" />
</div>
<div class="file_box">
<div v-for="(e,i) in tItem.FileList" :key="i" class="flex items-center file_name">附件:<span
style="color:#000">{{ e.FileName }}</span>
<div class="del_btn" @click="DownLoadFileByUrl(e.FileUrl,e.FileName)">下载</div>
</div>
</div>
</div>
</q-timeline-entry>
</q-timeline> -->
</div>
</div>
<div style="margin:20px 0;">
<!-- <q-pagination class="full-width justify-end" v-model="customTripMsg.pageIndex" color="primary"
:max="data.TripPageCount" input @update:model-value="changePage" /> -->
</div> </div>
</template> </template>
<template v-else> <!-- 订单 -->
<template v-if="secondType==1"> <template v-if="ckedTab==3">
<div style="overflow:auto;margin-top:30px;">
<div class="row wrap"> </template>
<q-select filled option-value="SId" class="col-6 q-pb-lg" option-label="SName" <!-- 合同 -->
v-model="VisitMsg.School_Id" :options="schoolList" emit-value map-options label="到访校区" /> <template v-if="ckedTab==4">
</div>
<div class="row wrap">
<q-input filled v-model="VisitMsg.Date" class="col-6 q-pb-lg" mask="date" label="日期">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
<q-popup-proxy ref="qDateProxy1" transition-show="scale" transition-hide="scale">
<q-date v-model="VisitMsg.Date" @input="() => $refs.qDateProxy1.hide()" />
</q-popup-proxy>
</q-icon>
</template>
</q-input>
</div>
<div class="row warp">
<q-input filled mask="time" v-model="VisitMsg.VisitTime" :rules="['time']" class="col-6 q-pb-lg">
<template v-slot:append>
<q-icon name="access_time" class="cursor-pointer">
<q-popup-proxy transition-show="scale" transition-hide="scale">
<q-time v-model="VisitMsg.VisitTime">
<div class="row items-center justify-end">
<q-btn v-close-popup label="Close" color="primary" flat />
</div>
</q-time>
</q-popup-proxy>
</q-icon>
</template>
</q-input>
</div>
<div class="row wrap">
<q-input filled v-model="VisitMsg.ReceptionPersion" class="col-6 q-pb-lg" label="接待人"></q-input>
</div>
<div class="row wrap">
<q-input filled v-model="VisitMsg.ReceptionPersion" type="textarea" class="col-6 q-pb-lg" label="备注"></q-input>
</div>
<div class="row wrap">
<q-input filled v-model="VisitMsg.Feedback" type="textarea" class="col-6 q-pb-lg" label="反馈"></q-input>
</div>
<div class="row wrap" style="margin-bottom:10px;">
<q-btn label="保存" color="accent q-mb-lg" style="width:200px;" @click="saveVisit()" />
</div>
</div>
</template>
<template v-if="secondType==2">
<div style="margin-top:30px;">
<div class="row wrap">
<q-input filled class="col-6 q-pb-lg" label="地点"></q-input>
</div>
<div class="row wrap">
<q-input filled class="col-6 q-pb-lg" mask="date" label="日期">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
<q-popup-proxy ref="qDateProxy1" transition-show="scale" transition-hide="scale">
<q-date @input="() => $refs.qDateProxy1.hide()" />
</q-popup-proxy>
</q-icon>
</template>
</q-input>
</div>
<div class="row wrap">
<q-input filled type="textarea" class="col-6 q-pb-lg" label="目的"></q-input>
</div>
<div class="row wrap">
<q-btn label="保存" color="accent q-mb-lg" style="width:200px;" @click="saveYuefang()" />
</div>
</div>
</template>
<template v-if="secondType==3">
<div style="margin-top:30px;">
<div class="row wrap">
<q-input filled type="textarea" class="col-6 q-pb-lg" label="内容"></q-input>
</div>
</div>
</template>
<template v-if="secondType==4">
4
</template>
</template> </template>
</div> </div>
</div> </div>
...@@ -170,16 +73,23 @@ ...@@ -170,16 +73,23 @@
</template> </template>
<script> <script>
import {
getSchoolDropdown, //获取校区列表
} from '../../../api/school/index';
import studentLeft from '../student/student-left'; import studentLeft from '../student/student-left';
import studentRecord from '../student/student-record';
import studentVisit from '../student/student-visit';
import studentYuefang from '../student/student-yuefang';
import studentGenjin from '../student/student-genjin';
import studentHetong from '../student/student-hetong';
export default { export default {
meta: { meta: {
title: "学员管理" title: "学员管理"
}, },
components: { components: {
studentLeft studentLeft,
studentRecord,
studentVisit,
studentYuefang,
studentGenjin,
studentHetong
}, },
props: { props: {
saveObj: { saveObj: {
...@@ -209,47 +119,17 @@ ...@@ -209,47 +119,17 @@
msg: { msg: {
}, },
baseObj:{}, baseObj:{},
customMsg:{
cusfrom:1,
createBy:'',
customState:1
},
schoolList:[], //到访校区下拉数据
//到访msg
VisitMsg:{
Id:0, //到访编号
StuId:0, //学员编号
School_Id:0, //到访校区
Date:'', //日期
VisitTime:'', //到访时间
ReceptionPersion:'', //接待人
Remark:'', //备注
Feedback:'' //反馈
}
} }
}, },
mounted() { mounted() {
console.log(this.saveObj,'saveObj'); console.log(this.saveObj,'saveObj');
this.baseObj = this.saveObj; this.baseObj = this.saveObj;
this.getSchool();
}, },
methods: { methods: {
closeCutomer() { closeCutomer() {
this.$emit('close') this.$emit('close')
}, },
//获取校区列表
getSchool() {
getSchoolDropdown({}).then(res => {
if (res.Code == 1) {
var tempArray = res.Data;
if (!tempArray) {
tempArray = [];
}
this.schoolList = tempArray;
}
})
},
//点击第二排 //点击第二排
getckedType(obj){ getckedType(obj){
this.secondType = obj.Id; this.secondType = obj.Id;
...@@ -410,14 +290,6 @@ ...@@ -410,14 +290,6 @@
cursor: pointer; cursor: pointer;
} }
.TimeLineDiv {
margin-top: 20px;
overflow: auto;
// height:620px;
flex: 1;
height: 100%;
padding-right: 20px;
}
.q-timeline__title { .q-timeline__title {
margin-bottom: 5px; margin-bottom: 5px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment