Commit 34c93edf authored by zhengke's avatar zhengke

1

parent 8d0924e8
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<div class="drawerTop"> <div class="drawerTop">
<div style="display:flex;align-items:center;margin:20px 0 0 20px;"> <div style="display:flex;align-items:center;margin:20px 0 0 20px;">
<span class="drawer_Span"> <span class="drawer_Span">
{{saveObj.Type==1?'留学':'就业'}}详情 {{saveObj.Type==1?'留学':'就业'}}审核
</span> </span>
</div> </div>
</div> </div>
...@@ -267,6 +267,7 @@ ...@@ -267,6 +267,7 @@
position: 'top' position: 'top'
}) })
this.closeperForm(); this.closeperForm();
this.$emit("success")
} else { } else {
this.$q.notify({ this.$q.notify({
icon: 'iconfont icon-chenggong', icon: 'iconfont icon-chenggong',
...@@ -291,6 +292,7 @@ ...@@ -291,6 +292,7 @@
position: 'top' position: 'top'
}) })
this.closeperForm(); this.closeperForm();
this.$emit("success")
} else { } else {
this.$q.notify({ this.$q.notify({
icon: 'iconfont icon-chenggong', icon: 'iconfont icon-chenggong',
......
<style>
.studyproauditInfo {
margin: 20px;
}
.studyproauditInfo .row {
margin-bottom: 20px;
}
.studyproauditInfo .border-bottom {
border-bottom: 1px dashed #EEE;
padding-bottom: 5px;
margin-bottom: 5px;
}
.studyproauditInfo .q-radio {
margin-bottom: 0 !important
}
.studyproauditInfo .audit_List:last-child {
margin-bottom: 10px;
}
.studyPass {
color: #fff;
padding: 1px 3px;
border-radius: 3px;
margin-left: 10px;
font-size: 12px;
background-color: #2BBB7E;
}
.DirectYijian {
width: 100%;
min-height: 50px;
padding: 10px;
background-color: #F5F5F5;
border-radius: 5px;
position: relative;
}
.DirTriggle {
width: 0;
height: 0;
border-right: 7px solid transparent;
border-left: 7px solid transparent;
border-bottom: 8px solid #f5f5f5;
position: absolute;
top: -8px;
}
</style>
<template>
<q-dialog v-model="persistent" persistent maximized full-height seamless position="right" @hide="closeperForm">
<q-card style="margin-top:61px;width:500px" class="no-border-radius classinfo_Dialog">
<div class="drawerTop">
<div style="display:flex;align-items:center;margin:20px 0 0 20px;">
<span class="drawer_Span">
{{saveObj.Type==1?'留学':'就业'}}详情
</span>
</div>
</div>
<div class="studyproauditInfo">
<div class="row">
<div class="col-12">
<span>项目名称:{{saveObj.Name}}</span>
</div>
</div>
<div class="row">
<div class="col-6">
<span>创建人:{{saveObj.CreateByName}}</span>
</div>
<div class="col-6">
<span>创建时间:{{saveObj.CreateTimeStr}}</span>
</div>
</div>
<div class="row">
<div class="col-6">
<div>供应商:{{saveObj.SupplierName}}</div>
<div>
<a style="margin-left:57px;text-decoration:none;color:#2961fe;font-size:12px;"
:href="saveObj.SupplierContract" target="_blank">查看合同</a>
</div>
</div>
<div class="col-6">
<span>状态:{{saveObj.SaleStateName}}</span>
</div>
</div>
<div class="row">
<div class="col-6">
<span>建议卖价:{{saveObj.SuggestPrice}}</span>
</div>
<div class="col-6">
<span>实际卖价:{{saveObj.SellPrice}}</span>
</div>
</div>
<div class="row">
<div class="col-12">
<span>备注:{{saveObj.Remark}}</span>
</div>
</div>
<div class="row" style="border-top:1px dashed #EEE;padding-top:5px;">
<div class="col-4">
优惠政策
</div>
<div class="col-4">
销售佣金
</div>
<div class="col-4">
同行佣金
</div>
</div>
<div class="row audit_List" v-for="(x,index) in saveObj.PreferentialList" :key="index">
<div class="col-4">
<template v-if="saveObj.PreferentialList.length>0">
<div class="border-bottom" v-if="x.PriceDiscountType == 1">
{{ x.BuyNum }}{{ x.SendNum }}
</div>
<div class="border-bottom" v-if="x.PriceDiscountType == 2">
单人报名享{{ 100 - x.PriceMoney }}折优惠
</div>
<div class="border-bottom" v-if="x.PriceDiscountType == 3">
双人报名享{{ 100 - x.PriceMoney }}折优惠
</div>
<div class="border-bottom" v-if="x.PriceDiscountType == 4">
续费享{{ 100 - x.PriceMoney }}折优惠
</div>
<div class="remark-font" v-if="x.PriceDiscountType == 0">
暂无优惠政策
</div>
</template>
<template v-else>
<span>暂无优惠政策</span>
</template>
</div>
<div class="col-4">
<template v-if="saveObj.PreferentialList.length>0">
<div class="border-bottom" style="padding-left: 16px;padding-right: 16px"
:class="{ 'text-red': x.SaleCommissionType == 1 }" v-if="x.PriceDiscountType != 0">
{{ x.SaleCommissionType == 1 ? "¥" : ""
}}{{ x.SaleCommissionMoney
}}{{ x.SaleCommissionType == 0 ? "%" : "" }}
</div>
<div v-if="x.PriceDiscountType == 0">
<div class="remark-font">暂无佣金信息</div>
</div>
</template>
<template v-else>
<span>暂无优惠政策</span>
</template>
</div>
<div class="col-4">
<template v-if="saveObj.PreferentialList.length>0">
<div class="border-bottom" style="padding-left: 16px" :class="{ 'text-red': x.B2BCommissionType == 1 }"
v-if="x.PriceDiscountType != 0">
{{ x.B2BCommissionType == 1 ? "¥" : ""
}}{{ x.B2BCommissionMoney
}}{{ x.B2BCommissionType == 0 ? "%" : "" }}
</div>
<div v-if="x.PriceDiscountType == 0">
<div class="remark-font">暂无佣金信息</div>
</div>
</template>
<template v-else>
<span>暂无优惠政策</span>
</template>
</div>
</div>
<template v-if="saveObj.DirectorStatus>0">
<div class="drawerTop">
<div style="display:flex;align-items:center;margin:20px 0">
<span class="drawer_Span">
部门主管审核
</span>
</div>
</div>
<div class="row" style="margin-bottom:10px;">
<div class="col-6">
<span>审核人:{{saveObj.DirectorName}}</span>
<span class="studyPass" v-if="saveObj.DirectorStatus==1">通过</span>
<span class="studyPass" v-if="saveObj.DirectorStatus==2" style="background-color:red;">拒绝</span>
</div>
<div class="col-6" style="text-align:right;">
<span>{{saveObj.DirectorAuditTimeStr}}</span>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="DirectYijian">
<div class="DirTriggle"></div>
{{saveObj.DirectorOpinion==''?'无':saveObj.DirectorOpinion}}
</div>
</div>
</div>
</template>
<template v-if="saveObj.ManagerStatus>0">
<div class="drawerTop">
<div style="display:flex;align-items:center;margin:20px 0">
<span class="drawer_Span">
部门负责人审核
</span>
</div>
</div>
<div class="row" style="margin-bottom:10px;">
<div class="col-6">
<span>审核人:{{saveObj.ManagerName}}</span>
<span class="studyPass" v-if="saveObj.ManagerStatus==1">通过</span>
<span class="studyPass" v-if="saveObj.ManagerStatus==2" style="background-color:red;">拒绝</span>
</div>
<div class="col-6" style="text-align:right;">
<span>{{saveObj.ManagerAuditTimeStr}}</span>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="DirectYijian">
<div class="DirTriggle"></div>
{{saveObj.ManagerOpinion==''?'无':saveObj.ManagerOpinion}}
</div>
</div>
</div>
</template>
</div>
</q-card>
<div class="dialog-out-close" @click="closeperForm"
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>
import {
queryStudyAbroadInfo,
} from "../../api/studyabroad/index";
export default {
meta: {
title: "留学详情"
},
props: {
Id: {
type: Number,
default: null
}
},
data() {
return {
persistent: true,
saveObj: {},
msg: {
Id: 0,
IsGetPrice: 1
}
}
},
mounted() {
this.msg.Id = this.Id;
this.initObj();
},
created() {},
methods: {
//获取数据
initObj() {
queryStudyAbroadInfo(this.msg).then(res => {
this.saveObj = res.Data;
})
.catch(() => {});
},
closeperForm() {
this.$emit("close");
this.persistent = false;
}
}
}
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
</style>
...@@ -93,10 +93,10 @@ ...@@ -93,10 +93,10 @@
</template> </template>
<template v-slot:body-cell-Id="props"> <template v-slot:body-cell-Id="props">
<q-td :props="props"> <q-td :props="props">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="详情" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="审核"
@click="EditStudy(props.row)" /> @click="EditStudy(props.row)" />
<q-btn v-if="props.row.SaleState==2&&msg.AuditType>0" flat size="xs" icon="edit" color="accent" <q-btn v-if="props.row.SaleState==2&&msg.AuditType>0" flat size="xs" icon="edit" color="accent"
style="font-weight:400" label="审核" @click="applyApply(props.row)" /> style="font-weight:400" label="详情" @click="getviewInfo(props.row)" />
</q-td> </q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
...@@ -104,8 +104,9 @@ ...@@ -104,8 +104,9 @@
:input="true" @input="changePage" /> :input="true" @input="changePage" />
</template> </template>
</q-table> </q-table>
<studyproaudit-form v-if="isShowStudy" :Id="Id" @close="closeStudyForm"> <studyproaudit-form v-if="isShowStudy" :Id="Id" @close="closeStudyForm" @success="refreshPage()">
</studyproaudit-form> </studyproaudit-form>
<studyproauditinfo-form v-if="isShowInfo" :Id="Id" @close="closeStudyInfo"></studyproauditinfo-form>
</div> </div>
</div> </div>
</template> </template>
...@@ -115,13 +116,15 @@ ...@@ -115,13 +116,15 @@
queryStudyAbroadPage queryStudyAbroadPage
} from '../../api/studyabroad/index' } from '../../api/studyabroad/index'
import studyproauditForm from '../../components/studyAbroad/studyproaudit-form' import studyproauditForm from '../../components/studyAbroad/studyproaudit-form'
import studyproauditinfoForm from '../../components/studyAbroad/studyproauditinfo-form'
export default { export default {
meta: { meta: {
title: "留学产品审核" title: "留学产品审核"
}, },
components: { components: {
studyproauditForm studyproauditForm,
studyproauditinfoForm
}, },
data() { data() {
return { return {
...@@ -212,6 +215,7 @@ ...@@ -212,6 +215,7 @@
isShowStudy: false, //是否显示留学弹窗 isShowStudy: false, //是否显示留学弹窗
Id: 0, Id: 0,
currentUserId: 0,//当前用户登录Id currentUserId: 0,//当前用户登录Id
isShowInfo:false
} }
}, },
mounted() { mounted() {
...@@ -233,7 +237,7 @@ ...@@ -233,7 +237,7 @@
//重新查询 //重新查询
resetSearch() { resetSearch() {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.getsupplierpage(); this.getList();
}, },
//获取留学分页列表 //获取留学分页列表
getList() { getList() {
...@@ -255,14 +259,21 @@ ...@@ -255,14 +259,21 @@
closeStudyForm() { closeStudyForm() {
this.isShowStudy = false; this.isShowStudy = false;
}, },
closeStudyInfo(){
this.isShowInfo = false;
},
//编辑留学 //编辑留学
EditStudy(obj) { EditStudy(obj) {
this.Id = obj.Id; this.Id = obj.Id;
this.isShowStudy = true; this.isShowStudy = true;
}, },
refreshPage(){
this.getList();
},
//申请审核 //申请审核
applyApply(obj) { getviewInfo(obj) {
this.Id = obj.Id;
this.isShowInfo = true;
} }
} }
} }
......
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