Commit f877b55b authored by 黄奎's avatar 黄奎

页面修改

parent 04e371d2
......@@ -24,8 +24,9 @@
<div>您的退款协议《{{ProtocolNum}}</div>
<div>请长按识别二维码,查阅并签字</div>
</div>
<q-table :pagination="pageMsg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table sticky-right-column-table"
separator="none" title="退课协议" :data="dataList" :columns="columns" row-key="name">
<q-table :pagination="pageMsg" :loading="loading" no-data-label="暂无相关数据" flat
class="sticky-column-table sticky-right-column-table" separator="none" title="退课协议" :data="dataList"
:columns="columns" row-key="name">
<template v-slot:top="props">
<div class="col-2 q-table__title">退课协议</div>
<q-space />
......@@ -193,7 +194,21 @@
billObj: {},
imgUrl: '',
getBlob: '',
ProtocolNum: ''
ProtocolNum: '',
//添加常用付款对象
clientMsg: {
Id: '0',
ObjID: '-1',
BankId: '-1',
OpenBankName: '',
BankName: '',
AccountHolder: '',
CardNum: '',
AccountAlias: '',
AccountType: '1',
AccountClassify: 2,
Type: '10',
},
}
},
created() {
......@@ -241,7 +256,12 @@
},
//确认退课协议
SureProtocol(item) {
let that = this
let that = this;
this.clientMsg.ObjID = item.GuestId;
this.clientMsg.BankName = item.BackAccountName;
this.clientMsg.OpenBankName = item.BackAccountName;
this.clientMsg.CardNum = item.BackAccount;
this.clientMsg.AccountAlias = item.BackAccountName;
this.$q.dialog({
title: "提示信息",
message: "你正在进行确认退课协议,是否确认执行",
......@@ -256,22 +276,27 @@
focus: true
}
}).onOk(() => {
that.apipost("admin_post_SetEmpBankAccount", this.clientMsg, res => {
if (res.data.resultCode == 1) {
var postMsg = {
Id: item.Id,
IsSure: 1
IsSure: 1,
ClientId: res.data.data
};
SetBackClassProtocolSure(postMsg).then(res => {
if (res.Code == 1) {
this.$q.notify({
that.$q.notify({
icon: "iconfont icon-chenggong",
color: "accent",
timeout: 2000,
message: "退课协议确认成功!",
position: "top",
});
this.$emit("success");
that.$emit("success");
}
});
}
})
})
},
//复制生成二维码
......@@ -317,8 +342,7 @@
});
}, 1000);
tipLoadding.hide();
}
else{
} else {
tipLoadding.hide();
}
});
......
<!--退课表单审核信息-->
<style>
.backbill-Dialog .drawerTop {
.backbill-Dialog .drawerTop {
width: 100%;
height: 50px;
display: flex;
......@@ -8,137 +8,135 @@
background-color: #f0f5fb;
padding: 5px 10px;
align-items: center;
}
}
.backbill-Dialog .classFirst {
.backbill-Dialog .classFirst {
color: #000000;
font-weight: bold;
}
}
.backbill-Dialog .className {
.backbill-Dialog .className {
margin-left: 10px;
}
}
.backbill-Dialog .classStatus {
.backbill-Dialog .classStatus {
padding: 3px 8px;
background-color: #c8d7fc;
color: #2961fe;
font-size: 12px;
border-radius: 2px;
margin-left: 20px;
}
}
.backbill-Dialog .normalName {
.backbill-Dialog .normalName {
color: #999999;
}
}
.backbill-Dialog .normalInner {
.backbill-Dialog .normalInner {
color: #111111;
}
}
.drop_NameDown {
.drop_NameDown {
margin-top: 20px;
width: 300px;
}
}
.backinfoContent {
.backinfoContent {
margin: 10px;
padding-bottom: 80px;
}
}
.backinfoContent .role_Line {
.backinfoContent .role_Line {
width: 3px;
height: 11px;
margin-right: 10px;
background-color: #3fc4ff;
display: inline-block;
}
}
.backinfoContent .backinfo_Item {
.backinfoContent .backinfo_Item {
color: #000000;
font-weight: bold;
}
}
.backinfoContent .backInfo_One {
.backinfoContent .backInfo_One {
margin: 20px 0;
}
}
.backinfoContent .backOtherInfo {
.backinfoContent .backOtherInfo {
color: #111111;
}
}
.backinfoContent .backInfo_Title {
.backinfoContent .backInfo_Title {
display: inline-block;
width: 75px;
text-align: left;
color: #999999;
}
}
.backinfoContent .replayReason {
.backinfoContent .replayReason {
width: 100%;
min-height: 100px;
background-color: #f0f5fb;
border-radius: 3px;
padding: 20px;
margin: 20px 0;
}
}
.backinfoContent .replay_Title {
.backinfoContent .replay_Title {
font-weight: bold;
color: #111111;
}
}
.backinfoContent .chaosong_Peo {
.backinfoContent .chaosong_Peo {
display: inline-block;
padding: 2px 3px;
color: #fff;
border-radius: 3px;
margin: 0 5px 5px 0;
background-color: #9cf;
}
}
.backinfoContent .topBaseInfo {
.backinfoContent .topBaseInfo {
/* height: 300px; */
overflow: auto;
}
}
.topBaseInfo::-webkit-scrollbar {
.topBaseInfo::-webkit-scrollbar {
width: 3px;
height: 3px;
background-color: #f5f5f5;
}
}
/*!*定义滚动条轨道 内阴影+圆角*!*/
.topBaseInfo::-webkit-scrollbar-track {
/*!*定义滚动条轨道 内阴影+圆角*!*/
.topBaseInfo::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
border-radius: 10px;
background-color: #f5f5f5;
}
}
/*!*定义滑块 内阴影+圆角*!*/
.topBaseInfo::-webkit-scrollbar-thumb {
/*!*定义滑块 内阴影+圆角*!*/
.topBaseInfo::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: -webkit-gradient(
linear,
-webkit-box-shadow: -webkit-gradient(linear,
0 0,
0 100%,
color-stop(0.5, rgba(255, 255, 255, 0.2)),
color-stop(0.5, transparent),
to(transparent)
);
to(transparent));
background-color: #0ae;
}
}
._addUpload_box {
._addUpload_box {
display: block;
margin-top: 15px;
}
}
._addUpload_box img {
._addUpload_box img {
width: 100%;
}
}
._addUpload_box > div {
._addUpload_box>div {
float: left;
width: 138px;
height: 92px;
......@@ -150,21 +148,21 @@
margin-right: 10px;
position: relative;
text-align: center;
}
}
._addUpload_box > div:hover {
._addUpload_box>div:hover {
background-color: #f5f5f5;
}
}
._addFile_name {
._addFile_name {
padding-left: 15px;
max-width: 450px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
._addUpload_box .icon-guanbi1 {
._addUpload_box .icon-guanbi1 {
font-size: 12px;
color: white;
display: inline-block;
......@@ -178,31 +176,31 @@
width: 20px;
text-align: center;
line-height: 20px;
}
}
._addUpload_box .icon-guanbi1:hover {
._addUpload_box .icon-guanbi1:hover {
font-size: 12px;
color: #c94052;
}
._addUpload_box .icon-excel,
._addUpload_box .icon-pdf,
._addUpload_box .icon-txt,
._addUpload_box .icon-wenjian,
._addUpload_box .icon-yasuobao,
._addUpload_box .icon-shipin,
._addUpload_box .icon-word {
}
._addUpload_box .icon-excel,
._addUpload_box .icon-pdf,
._addUpload_box .icon-txt,
._addUpload_box .icon-wenjian,
._addUpload_box .icon-yasuobao,
._addUpload_box .icon-shipin,
._addUpload_box .icon-word {
text-align: center;
font-size: 38px;
color: green;
line-height: 75px;
}
}
._addUpload_box .icon-yasuobao {
._addUpload_box .icon-yasuobao {
color: gray;
}
}
._show_img_box {
._show_img_box {
position: fixed;
background: rgba(0, 0, 0, 0.6);
left: 0;
......@@ -211,35 +209,26 @@
height: 100%;
z-index: 999;
text-align: center;
}
}
._addUpload_tips {
._addUpload_tips {
font-size: 12px;
color: #999999;
}
}
._jump_page {
._jump_page {
cursor: pointer;
text-decoration: underline;
}
}
._jump_page:hover {
._jump_page:hover {
color: #c94052;
}
}
</style>
<template>
<q-dialog
v-model="persistent"
maximized
full-height
seamless
position="right"
@hide="closeShenheForm"
>
<q-card
style="margin-top: 61px; width: 850px"
class="no-border-radius backbill-Dialog"
>
<q-dialog v-model="persistent" maximized full-height seamless position="right" @hide="closeShenheForm">
<q-card style="margin-top: 61px; width: 850px" class="no-border-radius backbill-Dialog">
<div class="drawerTop">
<div style="display: flex; align-items: center">
<div class="className">
......@@ -247,14 +236,7 @@
</div>
</div>
</div>
<q-tabs
style="margin: 15px"
v-model="tabCheck"
narrow-indicator
dense
align="left"
class="text-primary"
>
<q-tabs style="margin: 15px" v-model="tabCheck" narrow-indicator dense align="left" class="text-primary">
<q-tab :ripple="false" name="first" label="详细信息" />
<q-tab :ripple="false" name="second" label="审批记录" />
</q-tabs>
......@@ -294,23 +276,23 @@
<div class="row backInfo_One">
<div class="col-6">
<span class="backInfo_Title">合同信息:</span>
<span
class="backOtherInfo"
style="cursor: pointer; text-decoration: underline"
@click="getlookContractNo(setingObj.DataObj.ContractId)"
v-if="
<span class="backOtherInfo" style="cursor: pointer; text-decoration: underline"
@click="getlookContractNo(setingObj.DataObj.ContractId)" v-if="
setingObj.DataObj.ContractNo &&
setingObj.DataObj.ContractNo != ''
"
>
">
{{ setingObj.DataObj.ContractNo }}
</span>
<span v-else></span>
</div>
<div class="col-6">
<span class="backInfo_Title">退课协议:</span>
<span class="backOtherInfo" style="cursor: pointer; text-decoration: underline"
@click="goToBackProtocol(setingObj.DataObj.BackClassProtocolId)">{{ setingObj.DataObj.ProtocolNum }}</span>
</div>
</div>
<div class="backinfo_Item">
<span class="role_Line" style="background-color: #f28c1d"></span
>教学信息
<span class="role_Line" style="background-color: #f28c1d"></span>教学信息
</div>
<div class="row backInfo_One">
<div class="col-6">
......@@ -323,11 +305,8 @@
<span class="backInfo_Title">班级信息:</span>
<span class="backOtherInfo">
{{ setingObj.DataObj.ClassName }}
<span
style="color: #2961fe; cursor: pointer"
@click="goClassManage(setingObj.DataObj.ClassName)"
>{{ setingObj.DataObj.ClassNo }}</span
>
<span style="color: #2961fe; cursor: pointer"
@click="goClassManage(setingObj.DataObj.ClassName)">{{ setingObj.DataObj.ClassNo }}</span>
</span>
</div>
</div>
......@@ -346,8 +325,7 @@
</div>
</div>
<div class="backinfo_Item">
<span class="role_Line" style="background-color: #02c499"></span
>学习信息
<span class="role_Line" style="background-color: #02c499"></span>学习信息
</div>
<div class="row backInfo_One">
<div class="col-6">
......@@ -356,11 +334,8 @@
</div>
<div class="col-6">
<span class="backInfo_Title">已学课时:</span>
<span
class="backOtherInfo"
style="cursor: pointer; text-decoration: underline"
@click="getlookFinishHours()"
>
<span class="backOtherInfo" style="cursor: pointer; text-decoration: underline"
@click="getlookFinishHours()">
{{ setingObj.DataObj.CompleteHours }} 课时
</span>
</div>
......@@ -373,49 +348,29 @@
<div class="col-6"></div>
</div>
<div class="backinfo_Item">
<span class="role_Line" style="background-color: #8175fb"></span
>其他信息
<span class="role_Line" style="background-color: #8175fb"></span>其他信息
</div>
<div class="row backInfo_One">
<div class="col-6">
<span class="backInfo_Title">关联单号:</span>
<span
class="backOtherInfo"
style="color: #2961fe; cursor: pointer"
@click="goOrderStatic(setingObj.DataObj.OrderId)"
>{{ setingObj.DataObj.OrderId }}</span
>
<span class="backOtherInfo" style="color: #2961fe; cursor: pointer"
@click="goOrderStatic(setingObj.DataObj.OrderId)">{{ setingObj.DataObj.OrderId }}</span>
</div>
<div class="col-6">
<span class="backInfo_Title">预计退费:</span>
<span class="backOtherInfo" style="color: #f72e52"
>¥{{ setingObj.DataObj.BackMoney }}</span
>
<span class="backOtherInfo" style="color: #f72e52">¥{{ setingObj.DataObj.BackMoney }}</span>
</div>
</div>
</div>
<div class="row">
<span class="backInfo_Title"
>附件:<span v-if="fj.length === 0"></span></span
>
<span class="backInfo_Title">附件:<span v-if="fj.length === 0"></span></span>
</div>
<div class="row flex" v-if="fj.length > 0">
<div class="_addUpload_box clearfix flex">
<template v-for="(item, index) in fj">
<div
style="width: 138px; height: 92px; overflow: hidden"
:key="index"
@click="showUpLoadFile(item)"
>
<img
:src="item.url"
v-if="item.type === 2"
style="width: 100%; height: auto; overflow: hidden"
/>
<span
v-if="item.type === 1"
class="iconfont"
:class="
<div style="width: 138px; height: 92px; overflow: hidden" :key="index" @click="showUpLoadFile(item)">
<img :src="item.url" v-if="item.type === 2" style="width: 100%; height: auto; overflow: hidden" />
<span v-if="item.type === 1" class="iconfont" :class="
item.suffix == 'PDF'
? 'icon-pdf'
: item.suffix == 'TXT'
......@@ -423,20 +378,10 @@
: item.suffix == 'DOCX' || item.suffix == 'DOC'
? 'icon-word'
: 'icon-excel'
"
></span>
<span
v-if="item.type === 3"
class="iconfont icon-yasuobao"
></span>
<span
v-if="item.type === 4"
class="iconfont icon-shipin"
></span>
<span
v-if="item.type === 5"
class="iconfont icon-wenjian"
></span>
"></span>
<span v-if="item.type === 3" class="iconfont icon-yasuobao"></span>
<span v-if="item.type === 4" class="iconfont icon-shipin"></span>
<span v-if="item.type === 5" class="iconfont icon-wenjian"></span>
</div>
</template>
</div>
......@@ -449,14 +394,8 @@
</div>
<template v-if="setingObj.SpecialNode == 1">
<span>
<q-input
filled
stack-label
:dense="false"
v-model="backBillMsg.BackMoney"
class="col-12"
label="退课金额"
/>
<q-input filled stack-label :dense="false" v-model="backBillMsg.BackMoney" class="col-12"
label="退课金额" />
</span>
<span>
系统计算课时费为:{{
......@@ -468,97 +407,55 @@
</span>
</template>
<div v-if="showType == 2">
<div
style="
<div style="
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 20px;
"
>
">
<div>审批意见</div>
<div>
<q-radio
v-model="backBillMsg.AuditStatus"
:val="2"
label="通过"
/>
<q-radio
v-model="backBillMsg.AuditStatus"
:val="3"
label="驳回"
/>
</div>
</div>
<q-input
filled
stack-label
:dense="false"
v-model="backBillMsg.Description"
type="textarea"
label="审批意见"
/>
<q-radio v-model="backBillMsg.AuditStatus" :val="2" label="通过" />
<q-radio v-model="backBillMsg.AuditStatus" :val="3" label="驳回" />
</div>
</div>
<q-input filled stack-label :dense="false" v-model="backBillMsg.Description" type="textarea"
label="审批意见" />
</div>
<div style="margin-top: 20px">
<div class="row">
<div class="col-6" style="display: flex; align-items: top">
<template v-if="tempPeople.length > 0">
<div style="display: inline-block; width: 45px">抄送:</div>
<div
style="
<div style="
display: inline-block;
margin-left: 5px;
width: 340px;
"
>
<span
class="chaosong_Peo"
v-for="(childItem, cindex) in tempPeople"
>
">
<span class="chaosong_Peo" v-for="(childItem, cindex) in tempPeople">
{{ getName(childItem) }}
</span>
</div>
</template>
</div>
<div
class="col-6"
style="
<div class="col-6" style="
justify-content: flex-end;
display: flex;
align-items: center;
"
>
<i
class="iconfont icon-aite"
style="
">
<i class="iconfont icon-aite" style="
font-size: 20px;
margin: 7px 20px 0 0;
cursor: pointer;
"
v-if="showType == 2"
>
" v-if="showType == 2">
<q-popup-proxy>
<q-banner>
<div style="width: 350px">
<div style="margin: 10px 0 15px 0">抄送</div>
<q-select
class="col-6 q-pb-lg q-pr-lg"
multiple
clearable
filled
stack-label
use-input
option-value="Id"
option-label="EmployeeName"
v-model="tempPeople"
ref="ManagerId"
:options="EmployeeList"
label="选择人员"
:dense="false"
emit-value
map-options
@filter="filterFn"
>
<q-select class="col-6 q-pb-lg q-pr-lg" multiple clearable filled stack-label use-input
option-value="Id" option-label="EmployeeName" v-model="tempPeople" ref="ManagerId"
:options="EmployeeList" label="选择人员" :dense="false" emit-value map-options
@filter="filterFn">
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
......@@ -572,12 +469,7 @@
</q-popup-proxy>
</i>
<q-btn class="q-mr-md" label="关闭" @click="closeBackInfo" />
<q-btn
v-if="showType == 2"
color="accent q-px-md"
label="确认"
@click="saveBackClassInfo()"
/>
<q-btn v-if="showType == 2" color="accent q-px-md" label="确认" @click="saveBackClassInfo()" />
</div>
</div>
</div>
......@@ -585,33 +477,19 @@
</div>
</div>
<div v-if="tabCheck == 'second'">
 <flowinfoForm
:seting-obj="setingObj"
:showType="showType"
@close="closeShenheForm"
@success="refreshPage"
>
 <flowinfoForm :seting-obj="setingObj" :showType="showType" @close="closeShenheForm" @success="refreshPage">
</flowinfoForm>
</div>
</q-card>
<div
class="dialog-out-close"
@click="closeShenheForm"
style="
<div class="dialog-out-close" @click="closeShenheForm" 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>
<div
v-if="picIsShow"
class="_show_img_box"
@click="(picIsShow = false), (picObj = [])"
>
<div
style="
<div v-if="picIsShow" class="_show_img_box" @click="(picIsShow = false), (picObj = [])">
<div style="
position: absolute;
max-width: 800px;
height: auto;
......@@ -619,16 +497,9 @@
top: 50%;
margin-left: -400px;
transform: translateY(-50%);
"
>
<el-image
style="width: 100%; height: 100%"
fit="cover"
v-for="(item, index) in picObj"
:key="index"
:src="item"
:preview-src-list="picObj"
>
">
<el-image style="width: 100%; height: 100%" fit="cover" v-for="(item, index) in picObj" :key="index" :src="item"
:preview-src-list="picObj">
</el-image>
</div>
</div>
......@@ -636,11 +507,16 @@
</template>
<script>
import flowinfoForm from "../sale/flowinfo-form";
import { saveBackBillAduit, queryBackBillMoney } from "../../api/sale/bill";
import { queryEmployee } from "../../api/users/user";
export default {
import flowinfoForm from "../sale/flowinfo-form";
import {
saveBackBillAduit,
queryBackBillMoney
} from "../../api/sale/bill";
import {
queryEmployee
} from "../../api/users/user";
export default {
props: {
setingObj: {
type: Object,
......@@ -828,7 +704,6 @@ export default {
},
getlookContractNo(ContractId) {
//跳转合同管理
let routeUrl = this.$router.resolve({
path: "/contractView",
query: {
......@@ -837,6 +712,12 @@ export default {
});
window.open(routeUrl.href, "_blank");
},
//跳转到退课协议
goToBackProtocol(Id) {
this.OpenNewUrl("/courseRefund", {
Id: Id,
});
},
getlookFinishHours() {
//跳转学员消耗课时明细
let StartMonth = "";
......@@ -880,5 +761,6 @@ export default {
a.click();
},
},
};
};
</script>
......@@ -486,9 +486,6 @@
}).catch(() => {
})
// this.apipost('WorkFlow_get_GetDepartMentPost', {}, res => {
// this.roleList = res.data.data
// }, err => {})
},
handleNodeChange1(data, checked) {
data.IsCheck = checked;
......
......@@ -302,13 +302,6 @@
}).catch(() => {
})
// this.apipost('app_user_workflow_GetAuditInfo',{WorkFlowId:id,TemplateType:type},res=>{
// if(res.data.resultCode == 1) {
// this.outerVisible=true;
// this.dialogTitle='审批详情'
// this.detailList=res.data.data
// }
// },err=>{})
},
getAppAuditStatus() {
getMyInitiateAuditStatus({}).then(res => {
......@@ -380,14 +373,6 @@
}).catch(() => {
})
// this.apipost('WorkFlow_get_GetOAPageList',this.msg,res=>{
// if(res.data.resultCode==1){
// this.list=res.data.data.pageData;
// this.total=res.data.data.count;
// this.loading=false
//
// }else{}
// },err=>{})
},
handleCurrentChange(val) {
this.msg.PageIndex = val;
......
......@@ -14,7 +14,7 @@
</div>
<div class="col-3">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.ProtocolNum"
label="合同编号" @clear="resetSearch" maxlength="30" />
label="协议编号" @clear="resetSearch" maxlength="30" />
</div>
<div class="col-3">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.PartyAName"
......@@ -59,6 +59,7 @@
ProtocolNum: '',
IsQueryAll: 1,
QCreateBy:"",//业务员
Id:"",//退课协议编号
},
pageCount: 0,
dataList: [],
......@@ -97,6 +98,9 @@
};
},
created() {
if (this.$route.query.Id) {
this.msg.Id = this.$route.query.Id;
}
this.getEmployee()
},
mounted() {
......
......@@ -423,11 +423,6 @@
}).catch(() => {
})
// this.apipost('WorkFlow_get_GetDepartMentEmployee', {}, res => {
// if(res.data.resultCode == 1) {
// this.memberList = res.data.data
// }
// }, err => {})
},
clearTransferDialog(done){
done()
......
......@@ -266,13 +266,6 @@
}).catch(() => {
})
// this.apipost(this.cmd, {
// workFlowId: this.workFlowId
// }, res => {
// if(res.data.resultCode == 1) {
//
// }
// }, err => {})
},
getDuration(obj, index) {
let starTime = ''
......
......@@ -417,11 +417,6 @@
}).catch(() => {
})
// this.apipost('WorkFlow_get_GetDepartMentEmployee', {}, res => {
// if(res.data.resultCode == 1) {
// this.memberList = res.data.data
// }
// }, err => {})
},
clearTransferDialog(){
this.filterText=''
......
......@@ -1418,23 +1418,11 @@
}
}, err => {})
},
getCompanyList(){ //获取公司列表
// this.apipost('admin_get_BranchGetList',this.getCompanyMsg,res=>{
// if(res.data.resultCode==1){
// this.CompanyList=res.data.data;
// }else{}
// },err=>{})
//获取公司列表
getCompanyList(){
getSchoolDropdown({}).then(res => {
if (res.Code == 1) {
var tempArray = res.Data;
// if (!tempArray) {
// tempArray = [];
// }
// tempArray.unshift({
// SId: 0,
// SName: "不限"
// })
this.CompanyList = tempArray;
}
})
......
......@@ -812,16 +812,6 @@
}).catch(() => {
})
// this.apipost(
// 'admin_get_EmployeeGetList', {},
// res => {
// if (res.data.resultCode == 1) {
// this.EmployeeList = res.data.data
// }
// },
// err => {}
// )
},
AuditSort() {
let sum = 0;
......@@ -1139,18 +1129,9 @@
}
this.myAuditUserList1.push(obj)
})
},
addAuditUser() { // 抄送人
// let _arr = this.sysUserKeys.concat(this.memberSetCheckedUserKeys)
// this.dialogTitle = this.$t('fnc.xzrenyuan');
// this.outerVisible2 = true;
// let _this = this;
// this.apipost('WorkFlow_get_GetTempLateDepartMentEmployee', {}, res => {
// if (res.data.resultCode == 1) {
// this.userList = res.data.data
// }
// }, err => {})
// 抄送人
addAuditUser() {
this.dialogTitle = this.$t('fnc.xzrenyuan');
this.outerVisible2 = true;
var arr=[];
......
......@@ -853,16 +853,6 @@
}).catch(() => {
})
// this.apipost(
// 'admin_get_EmployeeGetList', {},
// res => {
// if (res.data.resultCode == 1) {
// this.EmployeeList = res.data.data
// }
// },
// err => {}
// )
},
AuditSort() {
let sum = 0;
......@@ -1181,16 +1171,8 @@
})
},
addAuditUser() { // 抄送人
// let _arr = this.sysUserKeys.concat(this.memberSetCheckedUserKeys)
// this.dialogTitle = this.$t('fnc.xzrenyuan');
// this.outerVisible2 = true;
// let _this = this;
// this.apipost('WorkFlow_get_GetTempLateDepartMentEmployee', {}, res => {
// if (res.data.resultCode == 1) {
// this.userList = res.data.data
// }
// }, err => {})
addAuditUser() {
// 抄送人
this.dialogTitle = this.$t('fnc.xzrenyuan');
this.outerVisible2 = true;
var arr = [];
......
......@@ -937,20 +937,6 @@
this.peopleData = [];
}
},
// addnewpoint(id){
// this.apipost('Financial_post_AppointPeople',{Id:0,emList:this.chosenPeople,WorkFlowId:id}, res => {
// if(res.data.resultCode == 1) {
// this.$router.push({name:'FinancialDocuments',query:{'Type':this.$route.query.Type}})
// }
// }, err => {})
// },
// hasnextpoint(){
// this.apipost('Financial_post_Get',{ID:this.currentType==this.currentId}, res => {
// if(res.data.resultCode == 1) {
// this.nextPoint = res.data.data
// }
// }, err => {})
// },
showUpLoadFile(i) { // 预览上传文件
if (i.Type == 3) {
let isExsit = false
......
......@@ -2526,12 +2526,6 @@
remoteMethod(query) {
if (query !== '') {
this.loadingPeople = true
// this.apipost('admin_Get_Chat_All_SelectEmpName',{EmName:query}, res => {
// if(res.data.resultCode == 1) {
// this.peopleData = res.data.data
// }
// this.loadingPeople = false
// }, err => {})
var qMsg = {
EmployeeName: query
}
......
......@@ -50,7 +50,8 @@
AuditStatus: -1,
QOrderId: '',
ProtocolNum: '',
IsQueryAll: 0
IsQueryAll: 0,
Id: "",
},
pageCount: 0,
dataList: [],
......@@ -91,7 +92,9 @@
};
},
created() {
if (this.$route.query.Id) {
this.msg.Id = this.$route.query.Id;
}
},
mounted() {
this.getList();
......
<style>
.Sysuser_Date .el-range-editor .el-range-input {
.Sysuser_Date .el-range-editor .el-range-input {
background-color: transparent;
}
}
.Sysuser_Date .el-range-editor.el-input__inner {
.Sysuser_Date .el-range-editor.el-input__inner {
background-color: transparent;
}
}
.ReceipTypeName {
.ReceipTypeName {
display: inline-block;
padding: 2px 8px;
color: white;
background-color: rgb(233, 82, 82);
line-height: 16px;
border-radius: 4px;
}
}
.bill_Rearsons {
.bill_Rearsons {
width: 250px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
</style>
<template>
<div class="page-body">
<div class="page-search row items-center">
<div class="col row wrap q-col-gutter-md">
<div class="col-3">
<q-input
@change="resetSearch"
clearable
filled
v-model="msg.Id"
label="单号"
maxlength="10"
/>
<q-input @change="resetSearch" clearable filled v-model="msg.Id" label="单号" maxlength="10" />
</div>
<div class="col-3">
<q-select
@input="resetSearch"
clearable
filled
v-model="msg.VerifyStatus"
:options="ShowOpts"
emit-value
map-options
label="审核状态"
/>
<q-select @input="resetSearch" clearable filled v-model="msg.VerifyStatus" :options="ShowOpts" emit-value
map-options label="审核状态" />
</div>
<div class="col-3">
<q-select
@input="resetSearch"
clearable
filled
option-value="Id"
option-label="Name"
v-model="msg.ReceiptType"
:options="OrderTypeList"
emit-value
map-options
label="单据类型"
/>
<q-select @input="resetSearch" clearable filled option-value="Id" option-label="Name"
v-model="msg.ReceiptType" :options="OrderTypeList" emit-value map-options label="单据类型" />
</div>
<div class="col-3 Sysuser_Date">
<q-field filled>
 <template v-slot:control>
<el-date-picker
v-model="applyDateList"
@change="resetSearch()"
value-format="yyyy-MM-dd"
type="daterange"
style="border: none"
range-separator="至"
start-placeholder="申请开始日期"
end-placeholder="申请结束日期"
>
 </el-date-picker
>       
<el-date-picker v-model="applyDateList" @change="resetSearch()" value-format="yyyy-MM-dd" type="daterange"
style="border: none" range-separator="至" start-placeholder="申请开始日期" end-placeholder="申请结束日期">
 </el-date-picker>       
</template>
</q-field>
</div>
</div>
</div>
<div class="page-content">
<q-tabs
style="margin-bottom: 20px"
v-model="tabCheck"
narrow-indicator
dense
align="left"
class="text-primary"
>
<q-tabs style="margin-bottom: 20px" v-model="tabCheck" narrow-indicator dense align="left" class="text-primary">
<q-tab :ripple="false" name="1" label="我发起的" />
<q-tab :ripple="false" name="3" label="待我审批" />
<q-tab :ripple="false" name="2" label="已审批" />
<q-tab :ripple="false" name="4" label="抄送给我的" />
</q-tabs>
<q-table
:pagination="msg"
:loading="loading"
no-data-label="暂无相关数据"
flat
class="sticky-tow-column-table sticky-right-column-table"
separator="none"
:data="data"
:columns="columns"
row-key="name"
>
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
class="sticky-tow-column-table sticky-right-column-table" separator="none" :data="data" :columns="columns"
row-key="name">
<template v-slot:body-cell-ReceiptTypeName="props">
<q-td :props="props">
<span class="ReceipTypeName">{{ props.row.ReceiptTypeName }}</span>
......@@ -136,181 +88,98 @@
</q-td>
</template>
<template v-slot:bottom>
<q-pagination
class="full-width justify-end"
v-model="msg.pageIndex"
color="primary"
:max="pageCount"
:input="true"
@input="changePage"
/>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" />
</template>
<template v-slot:body-cell-optioned="props">
<q-td :props="props">
<template v-if="tabCheck == '3'">
<q-btn
flat
size="xs"
icon="edit"
color="accent"
style="font-weight: 400"
label="审核"
@click="showBillForm(props.row, 2)"
/>
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight: 400" label="审核"
@click="showBillForm(props.row, 2)" />
</template>
<template v-else>
<template
v-if="
<template v-if="
props.row.DataObj &&
props.row.VerifyStatus == 2 &&
props.row.ReceiptType == 2 &&
props.row.DataObj.FinanceId <= 0 &&
tabCheck == '1'
"
>
<q-btn
flat
size="xs"
icon="directions"
color="secondary"
style="font-weight: 400"
label="制单"
@click="createBillForm(props.row)"
/>
">
<q-btn flat size="xs" icon="directions" color="secondary" style="font-weight: 400" label="签订退课协议"
@click="goToBackProtocol(props.row)" />
 <q-tooltip>
用户签订协议后,需要你进行确认,确认好以后系统自动生成财务单据,无需手动干预
</q-tooltip>
</template>
<template
v-if="
<template v-if="
props.row.DataObj &&
props.row.VerifyStatus == 2 &&
props.row.ReceiptType == 2 &&
props.row.DataObj.FinanceId > 0
"
>
<span
@click="
">
<span @click="
goFinaceUrl('FinancialDocumentsDetail', props.row.DataObj)
"
title="退课财务单据号"
style="color: #2961fe; font-weight: bold; cursor: pointer"
>{{ props.row.DataObj.FinanceId }}</span
>
" title="退课财务单据号"
style="color: #2961fe; font-weight: bold; cursor: pointer">协议已签订,财务单号:{{ props.row.DataObj.FinanceId }}</span>
</template>
<q-btn
v-if="props.row.VerifyStatus == 0 && tabCheck == '1'"
flat
size="xs"
icon="delete"
color="negative"
style="font-weight: 400"
label="作废"
@click="invalidBillForm(props.row)"
/>
<q-btn
flat
size="xs"
icon="edit"
color="accent"
style="font-weight: 400"
label="查看"
@click="showBillForm(props.row, 1)"
/>
<q-btn v-if="props.row.VerifyStatus == 0 && tabCheck == '1'" flat size="xs" icon="delete" color="negative"
style="font-weight: 400" label="作废" @click="invalidBillForm(props.row)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight: 400" label="查看"
@click="showBillForm(props.row, 1)" />
</template>
</q-td>
</template>
</q-table>
<backbill-form
v-if="isShowBillForm"
:seting-obj="billObj"
:showType="showType"
@close="closeBillForm"
@success="refreshPage"
>
<!-- 退课审批 -->
<backbill-form v-if="isShowBillForm" :seting-obj="billObj" :showType="showType" @close="closeBillForm"
@success="refreshPage">
</backbill-form>
<createbackbill-form
v-if="isShowCreateBillForm"
:seting-obj="billObj"
@close="closeBillForm"
@success="refreshPage"
>
<createbackbill-form v-if="isShowCreateBillForm" :seting-obj="billObj" @close="closeBillForm"
@success="refreshPage">
</createbackbill-form>
<changebill-form
v-if="isShowChangeBillForm"
:seting-obj="billObj"
:showType="showType"
@close="closeBillForm"
@success="refreshPage"
>
<changebill-form v-if="isShowChangeBillForm" :seting-obj="billObj" :showType="showType" @close="closeBillForm"
@success="refreshPage">
</changebill-form>
<stopbill-form
v-if="isShowStopBillForm"
:seting-obj="billObj"
:showType="showType"
@close="closeBillForm"
@success="refreshPage"
>
<stopbill-form v-if="isShowStopBillForm" :seting-obj="billObj" :showType="showType" @close="closeBillForm"
@success="refreshPage">
</stopbill-form>
<!-- 订单转班-查看 -->
<ordertrans-form
v-if="isShowClassTrans"
:seting-obj="billObj"
:showType="showType"
@close="closeBillForm"
@success="refreshPage"
>
<ordertrans-form v-if="isShowClassTrans" :seting-obj="billObj" :showType="showType" @close="closeBillForm"
@success="refreshPage">
</ordertrans-form>
<!-- 订单临时上课邀请-查看 -->
<temporaryClass-form
v-if="isShowTemporaryClass"
:seting-obj="billObj"
:showType="showType"
@close="closeBillForm"
@success="refreshPage"
>
<temporaryClass-form v-if="isShowTemporaryClass" :seting-obj="billObj" :showType="showType" @close="closeBillForm"
@success="refreshPage">
</temporaryClass-form>
<!-- 请假申请 -->
<leaveBillForm
v-if="isShowLeaveBillForm"
:seting-obj="billObj"
:showType="showType"
@close="closeBillForm"
@success="refreshPage"
></leaveBillForm>
<leaveBillForm v-if="isShowLeaveBillForm" :seting-obj="billObj" :showType="showType" @close="closeBillForm"
@success="refreshPage"></leaveBillForm>
<!-- 组卷审批 -->
<zujuanBillForm
v-if="isShowZujuanBillForm"
:seting-obj="billObj"
:showType="showType"
@close="closeBillForm"
@success="refreshPage"
></zujuanBillForm>
<zujuanBillForm v-if="isShowZujuanBillForm" :seting-obj="billObj" :showType="showType" @close="closeBillForm"
@success="refreshPage"></zujuanBillForm>
<!-- 考试申请 -->
<examBillForm
v-if="isShowExamBillForm"
:seting-obj="billObj"
:showType="showType"
@close="closeBillForm"
@success="refreshPage"
></examBillForm>
<examBillForm v-if="isShowExamBillForm" :seting-obj="billObj" :showType="showType" @close="closeBillForm"
@success="refreshPage"></examBillForm>
</div>
</div>
</template>
<script>
import {
import {
GetEducationReceiptPage,
GetEducationReceiptType,
invalidReceiptInfo,
} from "../../api/teacher/index";
} from "../../api/teacher/index";
import backbillForm from "../../components/sale/backbill-form";
import changebillForm from "../../components/sale/changebill-form";
import stopbillForm from "../../components/sale/stopbill-form";
import createbackbillForm from "../../components/sale/createbackbill-form";
import ordertransForm from "../../components/sale/ordertrans-form";
import temporaryClassForm from "../../components/sale/temporaryClassbill-form";
import leaveBillForm from "../../components/sale/leavebill-form.vue";
import zujuanBillForm from "../../components/sale/zujuanbill-form.vue";
import examBillForm from "../../components/sale/exambill-form.vue";
export default {
import backbillForm from "../../components/sale/backbill-form";
import changebillForm from "../../components/sale/changebill-form";
import stopbillForm from "../../components/sale/stopbill-form";
import createbackbillForm from "../../components/sale/createbackbill-form";
import ordertransForm from "../../components/sale/ordertrans-form";
import temporaryClassForm from "../../components/sale/temporaryClassbill-form";
import leaveBillForm from "../../components/sale/leavebill-form.vue";
import zujuanBillForm from "../../components/sale/zujuanbill-form.vue";
import examBillForm from "../../components/sale/exambill-form.vue";
export default {
meta: {
title: "业务单据",
},
......@@ -328,8 +197,7 @@ export default {
data() {
return {
currentUrl: "",
columns: [
{
columns: [{
name: "Id",
label: "单号",
field: "Id",
......@@ -374,8 +242,7 @@ export default {
data: [],
loading: true,
applyDateList: [], //申请日期
ShowOpts: [
{
ShowOpts: [{
label: "审核中",
value: "1",
},
......@@ -433,6 +300,12 @@ export default {
this.getStuBackBill();
},
methods: {
//跳转到退课协议
goToBackProtocol(Id) {
this.OpenNewUrl("/sale/contractRefund", {
Id: Id,
});
},
//跳转到财务单据
goFinaceUrl(path, rowData) {
this.OpenNewUrl("/financial/financalDocument/" + path, {
......@@ -608,8 +481,10 @@ export default {
this.resetSearch();
},
},
};
};
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
@import url('~assets/css/table.sass')
</style>
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