Commit 77fbae15 authored by zhengke's avatar zhengke

修改

parent 4b906754
<style>
.Sctop_Last{
position: absolute;
right:25px;
top:16px;
}
.Sctop_Last>div{
display:inline-block;
width:112px;
height:34px;
background-color: #D4DFFF;
color:#2966FE;
text-align:center;
font-size:14px;
line-height: 34px;
border-radius: 10px;
font-weight:bold;
cursor: pointer;
}
</style>
<template>
<div class="sche_rightTop">
<div v-if="dataList.DutyStatus==1" class="sche_Topflex">
......@@ -5,16 +25,19 @@
<div class="Sctop_Color">
<span class="Scotop_little">校区</span>{{dataList.SchoolName}}
</div>
<div class="Sctop_Color" style="width:400px;">
<div class="Sctop_Color" style="width:33%;">
<span class="Scotop_little">时间</span>
<span v-if="dataList.PlanDate">{{dataList.PlanDate.replaceAll('-','.')}}</span>
<span v-if="dataList.WeekDay"> {{dataList.WeekDay.replace('星期','周')}}</span>
{{dataList.StartTime}}-{{dataList.EndTime}}
</div>
<div class="Sctop_Color">
<div class="Sctop_Color" style="width:15%">
<span class="Scotop_little">班次</span>{{dataList.ShiftName}}
</div>
</div>
<div class="Sctop_Last">
<div @click="isShowJiedai=true"><i style="margin-right:5px;" class="iconfont icon-liuchengguanliqi"></i>接待流程</div>
</div>
<table v-if="dataList.DutyStatus==2" style="width:100%;margin:0 20px;font-size:18px;color:#000000;">
<tr>
<td style="width:11%">
......@@ -50,9 +73,12 @@
</td>
</tr>
</table>
<schedulJiedai v-if="isShowJiedai" @close="closeJiedai"></schedulJiedai>
</div>
</template>
<script>
import schedulJiedai from '../../components/schedul/schedul-jiedai'
export default {
props: {
dataList: {
......@@ -60,13 +86,19 @@
default: null
},
},
components: {},
components: {
schedulJiedai
},
data() {
return {}
return {
isShowJiedai:false //是否显示接待
}
},
created() {},
methods: {
closeJiedai(){
this.isShowJiedai=false;
}
},
}
......
<style>
.Jiedai_Top {
color:#3370FF;
font-size:14px;
width:100%;
margin:20px 0;
}
.Jiedai_Line{
position: absolute;
width:115px;
height:2px;
background-color: #3370FF;
left:286px;
top:35px;
}
.Jiedai_List{
display:flex;
justify-content: space-between;
}
.Jiedai_List>div{
font-size:14px;
color:#1F2329;
background-color: #EDEDEE;
font-size: 13px;
padding:3px 10px;
border-radius: 13px;
cursor: pointer;
}
.ckedClass{
background-color: #3370FF!important;
color:#fff!important;
}
.jie_ImgDiv{
margin:25px auto 80px;
width:637px;
}
.jie_ImgDiv img{
width:100%;
}
.schedu_Title{
margin:auto;
width:140px;
position: relative;
}
.schedu_Title:after{
position: absolute;
content: "";
width: 90%;
height: 2px;
background: #3370FF;
left: 7%;
top: 35px;
}
</style>
<template>
<q-dialog v-model="persistent" maximized full-height seamless position="right" @hide="closeJiedaiForm">
<q-card style="margin-top:61px;width:700px" class="no-border-radius classinfo_Dialog">
<div class="Jiedai_Top">
<div class="schedu_Title">
培训学校前台接待流程
</div>
</div>
<div style="margin:40px 20px 0;">
<div class="Jiedai_List">
<div :class="{'ckedClass':checkIndex==1}" @click="checkIndex=1">接待流程图</div>
<div :class="{'ckedClass':checkIndex==2}" @click="checkIndex=2">日常工作流程</div>
<div :class="{'ckedClass':checkIndex==3}" @click="checkIndex=3">收费财务流程图</div>
<div :class="{'ckedClass':checkIndex==4}" @click="checkIndex=4">学员档案管理流程图</div>
<div :class="{'ckedClass':checkIndex==5}" @click="checkIndex=5">学员档案及文件管理</div>
</div>
<div class="jie_ImgDiv">
<img v-if="checkIndex==1" src="../../assets/images/myimg/jie1.png" />
<img v-if="checkIndex==2" src="../../assets/images/myimg/jie2.png" />
<img v-if="checkIndex==3" src="../../assets/images/myimg/jie3.png" />
<img v-if="checkIndex==4" src="../../assets/images/myimg/jie4.png" />
<img v-if="checkIndex==5" src="../../assets/images/myimg/jie5.png" />
</div>
</div>
</q-card>
<div class="dialog-out-close" @click="closeJiedaiForm"
style="height:40px !important;border-top-left-radius: 4px !important;border-bottom-left-radius: 4px !important;">
<q-icon name="iconfont icon-jujue1" size="26px" />
</div>
</q-dialog>
</template>
<script>
export default {
data() {
return {
persistent: true,
checkIndex:1
}
},
created() {
},
mounted() {
},
methods: {
closeJiedaiForm() {
this.persistent = false;
this.$emit('close');
},
}
}
</script>
......@@ -113,7 +113,7 @@
<div class="page-option addVisit">
<el-popover placement="left" popper-class="scheduVipop" width="300" trigger="click">
<div>
<el-form label-width="80px" :model="addMsg" ref="addMsg" :rules="rules" style="margin-top:10px;"
<el-form label-width="80px" :model="addMsg" ref="addMsg1" :rules="rules" style="margin-top:10px;"
class="visit_FORM">
<el-form-item label="姓名" prop="Name">
<el-input v-model="addMsg.Name" placeholder="请输入姓名"></el-input>
......@@ -149,7 +149,7 @@
<el-input type="textarea" v-model="addMsg.Remark" :rows="4" placeholder="请输入备注"></el-input>
</el-form-item>
</el-form>
<q-btn color="accent" size="sm" @click="SaveVisitor()" style="float:right;margin-bottom:10px;"
<q-btn color="accent" size="sm" @click="submitForm('addMsg1')" style="float:right;margin-bottom:10px;"
label="保存" />
</div>
<q-btn color="accent" slot="reference" size="sm" icon="add" @click="clearAddMsg" label="添加访客"
......@@ -177,7 +177,7 @@
<q-td :props="props">
<el-popover placement="left" popper-class="scheduVipop" width="300" ref="popover2" trigger="click">
<div>
<el-form label-width="80px" :model="addMsg" ref="addMsg" :rules="rules" style="margin-top:10px;"
<el-form label-width="80px" :model="addMsg" ref="addMsg2" :rules="rules" style="margin-top:10px;"
class="visit_FORM">
<el-form-item label="姓名" prop="Name">
<el-input v-model="addMsg.Name" placeholder="请输入姓名" maxlength="50"></el-input>
......@@ -214,7 +214,7 @@
</el-input>
</el-form-item>
</el-form>
<q-btn color="accent" size="sm" @click="SaveVisitor()" style="float:right;margin-bottom:10px;"
<q-btn color="accent" size="sm" @click="submitForm2('addMsg2')" style="float:right;margin-bottom:10px;"
label="保存" />
</div>
<q-btn flat size="xs" icon="edit" slot="reference" @click="EditVisitor(props.row.Id)" color="accent"
......@@ -429,6 +429,25 @@
this.getVisitoryPage();
},
methods: {
submitForm(addMsg1) { //提交创建、修改表单
this.$refs[addMsg1].validate((valid) => {
if (valid) {
this.SaveVisitor();
} else {
return false;
}
});
},
submitForm2(addMsg2){
this.$refs[addMsg2].validate((valid) => {
if (valid) {
this.SaveVisitor();
} else {
return false;
}
});
},
//初始化权限信息
initAuth() {
if (this.authObj) {
......@@ -511,81 +530,18 @@
this.addMsg.VisitorStatus = '';
this.addMsg.Evaluate = "";
this.addMsg.Remark = "";
this.$refs.addMsg1.resetFields();
},
//保存
SaveVisitor() {
if (this.addMsg.Name == '') {
this.$q.notify({
type: 'negative',
position: "top",
message: `请输入姓名`
})
return;
}
if (this.addMsg.Tel == '') {
this.$q.notify({
type: 'negative',
position: "top",
message: `请输入电话`
})
return;
}
if (this.addMsg.CourseName == '') {
this.$q.notify({
type: 'negative',
position: "top",
message: `请输入情趣课程`
})
return;
}
if (this.addMsg.StudyTime == '') {
this.$q.notify({
type: 'negative',
position: "top",
message: `请输入学习时间`
})
return;
}
if (this.addMsg.LevelType == '') {
this.$q.notify({
type: 'negative',
position: "top",
message: `请选择当前水平`
})
return;
}
if (this.addMsg.VisitorStatus == '') {
this.$q.notify({
type: 'negative',
position: "top",
message: `请选择状态`
})
return;
}
if (this.addMsg.Evaluate == '') {
this.$q.notify({
type: 'negative',
position: "top",
message: `请输入意向评估`
})
return;
}
if (this.addMsg.Evaluate == '') {
this.$q.notify({
type: 'negative',
position: "top",
message: `请输入意向评估`
})
return;
}
this.addMsg.PlanId = this.saveObj.Id;
setVisitor(this.addMsg).then(res => {
this.$refs.fkdj.click();
this.isShowVform = false;
this.getVisitoryPage();
this.clearAddMsg();
this.$refs.addMsg1.resetFields();
this.$refs.addMsg2.resetFields();
})
},
}
......
......@@ -111,7 +111,7 @@
},
{
name: 'PlanList',
label: '任务清单',
label: '日常工作',
align: 'left',
field: 'PlanList'
},
......
......@@ -116,6 +116,7 @@
width: 100%;
padding:20px 0;
background-color: #fff;
position: relative;
}
.schScroll {
......@@ -130,7 +131,7 @@
.Sctop_Color {
font-size: 18px;
color: #000000;
width: 246px;
width: 19%;
text-align: center;
}
......
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