Commit 2d9cb5bd authored by 黄奎's avatar 黄奎

修改页面跳转

parent 5772e3e6
...@@ -169,8 +169,7 @@ ...@@ -169,8 +169,7 @@
@click="goEduReceiptInfo(item.Id)">{{item.Id}}</span> @click="goEduReceiptInfo(item.Id)">{{item.Id}}</span>
</template> </template>
</div> </div>
<span slot="reference" class="pri_Color" <span slot="reference" class="pri_Color" v-if="(props.row.BackClassList&&props.row.BackClassList.length>0)||(props.row.StopClassList&&props.row.StopClassList.length>0)
v-if="(props.row.BackClassList&&props.row.BackClassList.length>0)||(props.row.StopClassList&&props.row.StopClassList.length>0)
||(props.row.InvitationClassList&&props.row.InvitationClassList.length>0)||(props.row.OrderTransClassList&&props.row.OrderTransClassList.length>0) ||(props.row.InvitationClassList&&props.row.InvitationClassList.length>0)||(props.row.OrderTransClassList&&props.row.OrderTransClassList.length>0)
||(props.row.OrderSplitClassList&&props.row.OrderSplitClassList.length>0)">查看单据</span> ||(props.row.OrderSplitClassList&&props.row.OrderSplitClassList.length>0)">查看单据</span>
</el-popover> </el-popover>
...@@ -265,7 +264,7 @@ ...@@ -265,7 +264,7 @@
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-CostTypeList="props"> <template v-slot:body-cell-CostTypeList="props">
<q-td :props="props" v-for="(s,si) in props.row.CostTypeList" :key="si" > <q-td :props="props" v-for="(s,si) in props.row.CostTypeList" :key="si">
<span <span
style="background-color: rgba(64,158,255,.1);display: inline-block;padding: 0 5px;height: 22px;line-height: 20px;font-size: 12px;color: #646464;border-radius: 4px;box-sizing: border-box;border: 1px solid rgba(64,158,255,.2);white-space: nowrap;margin-bottom: 4px;margin-right: 4px;">{{s}}</span> style="background-color: rgba(64,158,255,.1);display: inline-block;padding: 0 5px;height: 22px;line-height: 20px;font-size: 12px;color: #646464;border-radius: 4px;box-sizing: border-box;border: 1px solid rgba(64,158,255,.2);white-space: nowrap;margin-bottom: 4px;margin-right: 4px;">{{s}}</span>
</q-td> </q-td>
...@@ -283,9 +282,7 @@ ...@@ -283,9 +282,7 @@
<p style="color:#333333">{{tw.BankNo}}</p> <p style="color:#333333">{{tw.BankNo}}</p>
</div> </div>
</div> </div>
<div v-else style="min-height: 48px;"></div> <div v-else style="min-height: 48px;"></div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-zhaungt="props"> <template v-slot:body-cell-zhaungt="props">
...@@ -399,10 +396,12 @@ ...@@ -399,10 +396,12 @@
</template> </template>
</q-table> </q-table>
<!--成本单--> <!--成本单-->
<div class="row " style="align-items: center;margin: 20px 0;" v-if="saveObj.OrderType==2 || saveObj.ClassScrollType == 2"> <div class="row " style="align-items: center;margin: 20px 0;"
v-if="saveObj.OrderType==2 || saveObj.ClassScrollType == 2">
<div style="width: 3px;height: 15px;background: #3FC4FF;margin-right: 10px"></div>成本单 <div style="width: 3px;height: 15px;background: #3FC4FF;margin-right: 10px"></div>成本单
</div> </div>
<q-table v-if="saveObj.OrderType==2 || saveObj.OrderType===1 || saveObj.ClassScrollType == 2" :pagination="financiaMsg" style="padding-bottom:80px;" :loading="floading" no-data-label="暂无相关数据" flat <q-table v-if="saveObj.OrderType==2 || saveObj.OrderType===1 || saveObj.ClassScrollType == 2"
:pagination="financiaMsg" style="padding-bottom:80px;" :loading="floading" no-data-label="暂无相关数据" flat
class="sticky-tow-column-table" :hide-pagination="true" :data="dataListCB" :columns="receiptColumns" class="sticky-tow-column-table" :hide-pagination="true" :data="dataListCB" :columns="receiptColumns"
row-key="name"> row-key="name">
<template v-slot:body-cell-FrID="props"> <template v-slot:body-cell-FrID="props">
...@@ -411,7 +410,7 @@ ...@@ -411,7 +410,7 @@
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-CostTypeList="props"> <template v-slot:body-cell-CostTypeList="props">
<q-td :props="props" v-for="(s,si) in props.row.CostTypeList" :key="si"> <q-td :props="props" v-for="(s,si) in props.row.CostTypeList" :key="si">
<span v-if="s&& s!=''" <span v-if="s&& s!=''"
style="background-color: rgba(64,158,255,.1);display: inline-block;padding: 0 5px;height: 22px;line-height: 20px;font-size: 12px;color: #646464;border-radius: 4px;box-sizing: border-box;border: 1px solid rgba(64,158,255,.2);white-space: nowrap;margin-bottom: 4px;margin-right: 4px;">{{s}}</span> style="background-color: rgba(64,158,255,.1);display: inline-block;padding: 0 5px;height: 22px;line-height: 20px;font-size: 12px;color: #646464;border-radius: 4px;box-sizing: border-box;border: 1px solid rgba(64,158,255,.2);white-space: nowrap;margin-bottom: 4px;margin-right: 4px;">{{s}}</span>
</q-td> </q-td>
...@@ -428,11 +427,8 @@ ...@@ -428,11 +427,8 @@
</p> </p>
<p style="color:#333333">{{tw.BankNo}}</p> <p style="color:#333333">{{tw.BankNo}}</p>
</div> </div>
</div> </div>
<div v-else style="min-height: 48px;"></div> <div v-else style="min-height: 48px;"></div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-zhaungt="props"> <template v-slot:body-cell-zhaungt="props">
...@@ -472,8 +468,6 @@ ...@@ -472,8 +468,6 @@
</q-td> </q-td>
</template> </template>
</q-table> </q-table>
</div> </div>
<div v-if="tab==5" style="padding: 10px 20px"> <div v-if="tab==5" style="padding: 10px 20px">
<div class="q-px-lg q-pb-md" style="padding-bottom: 50px;"> <div class="q-px-lg q-pb-md" style="padding-bottom: 50px;">
...@@ -704,7 +698,7 @@ ...@@ -704,7 +698,7 @@
}, },
dataList: [], dataList: [],
dataListP: [], dataListP: [],
dataListCB:[], dataListCB: [],
floading: false, floading: false,
LogLoading: false, LogLoading: false,
GetFinancLogList: [], GetFinancLogList: [],
...@@ -825,23 +819,23 @@ ...@@ -825,23 +819,23 @@
this.dataList = data; this.dataList = data;
this.getfinanciaALLPageList(2, TCID, OrderID) this.getfinanciaALLPageList(2, TCID, OrderID)
} else { } else {
if(this.saveObj.OrderType==1 && this.saveObj.ClassScrollType == 1){ if (this.saveObj.OrderType == 1 && this.saveObj.ClassScrollType == 1) {
this.dataListP = data; this.dataListP = data;
}else if(this.saveObj.OrderType==2 || this.saveObj.ClassScrollType == 2){//等于留学的时候 成本单据 } else if (this.saveObj.OrderType == 2 || this.saveObj.ClassScrollType == 2) { //等于留学的时候 成本单据
this.dataListCB = [] this.dataListCB = []
this.dataListP = [] this.dataListP = []
data.forEach(x=>{ data.forEach(x => {
if(x.OtherType==45||x.OtherType==33){ if (x.OtherType == 45 || x.OtherType == 33) {
this.dataListCB.push(x) this.dataListCB.push(x)
}else{ } else {
this.dataListP.push(x) this.dataListP.push(x)
} }
}) })
if(this.dataListCB && this.dataListCB.length>0){ if (this.dataListCB && this.dataListCB.length > 0) {
this.getAskfor() this.getAskfor()
} }
} }
this.floading = false this.floading = false
} }
...@@ -851,61 +845,59 @@ ...@@ -851,61 +845,59 @@
} }
}, err => {}) }, err => {})
}, },
getAskfor(){ getAskfor() {
let obj = { let obj = {
FrID:'汇总', FrID: '汇总',
CostTypeList:[''], CostTypeList: [''],
TradeWayList:[], TradeWayList: [],
Money: 0, Money: 0,
PayMoney: 0, PayMoney: 0,
Fee: 0, Fee: 0,
TradeDate:'', TradeDate: '',
EmName:'', EmName: '',
} }
this.dataListCB.forEach((x) => { this.dataListCB.forEach((x) => {
if (x.Money) { if (x.Money) {
obj.Money = this.accAdd(x.Money, obj.Money) obj.Money = this.accAdd(x.Money, obj.Money)
}; };
if (x.PayMoney) { if (x.PayMoney) {
obj.PayMoney = this.accAdd(x.PayMoney, obj.PayMoney) obj.PayMoney = this.accAdd(x.PayMoney, obj.PayMoney)
}; };
if (x.Fee) { if (x.Fee) {
obj.Fee = this.accAdd(x.Fee, obj.Fee) obj.Fee = this.accAdd(x.Fee, obj.Fee)
}; };
})
this.dataListCB.push(obj)
})
this.dataListCB.push(obj)
}, },
accAdd(arg1, arg2) { //js 加法精确计算 accAdd(arg1, arg2) { //js 加法精确计算
var r1, r2, m; var r1, r2, m;
try { try {
r1 = arg1.toString().split(".")[1].length; r1 = arg1.toString().split(".")[1].length;
} catch (e) {
} catch (e) { r1 = 0;
r1 = 0; }
}
try {
try { r2 = arg2.toString().split(".")[1].length;
r2 = arg2.toString().split(".")[1].length; } catch (e) {
r2 = 0;
} catch (e) { }
r2 = 0; m = Math.pow(10, Math.max(r1, r2));
return (arg1 * m + arg2 * m) / m;
}
m = Math.pow(10, Math.max(r1, r2)); },
return (arg1 * m + arg2 * m) / m;
},
goUrl(path, rowData, ) { goUrl(path, rowData, ) {
this.$router.push({ var newpath = '/financial/financalDocument/' + path;
path: '/financial/financalDocument/' + path, var query = {
query: { "id": rowData.FrID,
"id": rowData.FrID, blank: 'y',
blank: 'y', tab: '单据详情'
tab: '单据详情' };
} this.OpenNewUrl(newpath, query);
}) // this.$router.push({
// path: '/financial/financalDocument/' + path,
// query: query
// })
}, },
//返回2位小数 //返回2位小数
getTwoWei(num) { getTwoWei(num) {
......
...@@ -687,9 +687,10 @@ ...@@ -687,9 +687,10 @@
</tr> </tr>
</table> </table>
</div> </div>
<q-btn v-if="!IsRefund" color="accent" size="sm" class="q-mr-md" @click="chanceType(item, 1)" label="制单" <q-btn v-if="!IsRefund" color="accent" size="sm" class="q-mr-md" @click="chanceType(item, 1)"
style="min-width:70px;float:right;margin-top:10px" /> label="制单" style="min-width:70px;float:right;margin-top:10px" />
<q-btn v-if="IsRefund" color="accent" size="sm" class="q-mr-md" @click="chanceType(item, 1,'原路')" label="确定原路退款" <q-btn v-if="IsRefund" color="accent" size="sm" class="q-mr-md"
@click="chanceType(item, 1,'原路')" label="确定原路退款"
style="min-width:70px;float:right;margin-top:10px" /> style="min-width:70px;float:right;margin-top:10px" />
</q-banner> </q-banner>
</q-popup-proxy> </q-popup-proxy>
...@@ -759,9 +760,10 @@ ...@@ -759,9 +760,10 @@
</tr> </tr>
</table> </table>
</div> </div>
<q-btn v-if="!IsRefund" color="accent" size="sm" class="q-mr-md" @click="chanceType(item, 2)" label="制单" <q-btn v-if="!IsRefund" color="accent" size="sm" class="q-mr-md" @click="chanceType(item, 2)"
style="min-width:70px;float:right;margin-top:10px" /> label="制单" style="min-width:70px;float:right;margin-top:10px" />
<q-btn v-if="IsRefund" color="accent" size="sm" class="q-mr-md" @click="chanceType(item, 2,'学费退回')" label="确定转账退款" <q-btn v-if="IsRefund" color="accent" size="sm" class="q-mr-md"
@click="chanceType(item, 2,'学费退回')" label="确定转账退款"
style="min-width:70px;float:right;margin-top:10px" /> style="min-width:70px;float:right;margin-top:10px" />
</q-banner> </q-banner>
</q-popup-proxy> </q-popup-proxy>
...@@ -1440,7 +1442,7 @@ ...@@ -1440,7 +1442,7 @@
}, },
mounted() {}, mounted() {},
methods: { methods: {
clickRefund(type){ clickRefund(type) {
this.IsRefund = type this.IsRefund = type
this.showChooseStudent = true this.showChooseStudent = true
}, },
...@@ -1827,7 +1829,7 @@ ...@@ -1827,7 +1829,7 @@
}); });
}, },
//财务单据 //财务单据
chanceType(obj, type,name) { chanceType(obj, type, name) {
let TCIDARR = []; let TCIDARR = [];
if (obj && obj.OrderType == 2) { if (obj && obj.OrderType == 2) {
//留学就业订单 //留学就业订单
...@@ -1910,13 +1912,15 @@ ...@@ -1910,13 +1912,15 @@
orderObj: JSON.stringify(orderObj), orderObj: JSON.stringify(orderObj),
tradeWay: obj.tradeWay, tradeWay: obj.tradeWay,
GuestId: guestId, GuestId: guestId,
searchTitle: name?name:'' searchTitle: name ? name : ''
} }
this.IsRefund = 0 this.IsRefund = 0
this.$router.push({ var newUrlPath = "/financial/financalDocument/ChoiceAddFinancialDocuments";
path: "/financial/financalDocument/ChoiceAddFinancialDocuments", this.OpenNewUrl(newUrlPath, query);
query // this.$router.push({
}); // path: newUrlPath,
// query
// });
}, },
chanceType_lx(obj) { chanceType_lx(obj) {
//留学的时 成本制单 //留学的时 成本制单
...@@ -1958,18 +1962,21 @@ ...@@ -1958,18 +1962,21 @@
//默认取第一个人的 (现基本都是单人订单 如果有多人订单 需调整) //默认取第一个人的 (现基本都是单人订单 如果有多人订单 需调整)
guestId = obj.GuestList[0].Id; guestId = obj.GuestList[0].Id;
} }
this.$router.push({ var newUrlPath = "/financial/financalDocument/ChoiceAddFinancialDocuments";
path: "/financial/financalDocument/ChoiceAddFinancialDocuments", var query = {
query: { Type: 2,
Type: 2, companyID: obj.ClassSchoolId,
companyID: obj.ClassSchoolId, path: "",
path: "", blank: "y",
blank: "y", orderObj: JSON.stringify(orderObj),
orderObj: JSON.stringify(orderObj), tradeWay: obj.tradeWay,
tradeWay: obj.tradeWay, GuestId: guestId
GuestId: guestId }
} this.OpenNewUrl(newUrlPath, query);
}); // this.$router.push({
// path: newUrlPath,
// query: query
// });
}, },
//打开班级详情组件 //打开班级详情组件
getClassInfo(obj) { getClassInfo(obj) {
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
color: #3470ff; color: #3470ff;
font-weight: 700; font-weight: 700;
} }
.record_cala_Num { .record_cala_Num {
height: 20px; height: 20px;
padding-left: 14px; padding-left: 14px;
...@@ -23,7 +22,7 @@ ...@@ -23,7 +22,7 @@
margin-top: -10px; margin-top: -10px;
} }
.record_cala_Num>span { .record_cala_Num>span {
min-width: 24px; min-width: 24px;
height: 24px; height: 24px;
padding: 4px; padding: 4px;
...@@ -33,7 +32,7 @@ ...@@ -33,7 +32,7 @@
border-radius: 20px; border-radius: 20px;
} }
.record_cala_Num>span>i { .record_cala_Num>span>i {
min-width: 16px; min-width: 16px;
height: 16px; height: 16px;
padding: 0 2px; padding: 0 2px;
...@@ -47,65 +46,64 @@ ...@@ -47,65 +46,64 @@
text-align: center; text-align: center;
font-style: normal; font-style: normal;
} }
</style> </style>
<template> <template>
<div> <div>
<div> <div>
<q-tabs v-model="ckedTab" @input="getTabcheck()" dense align="left" class="text-teal" style="margin-bottom:20px;"> <q-tabs v-model="ckedTab" @input="getTabcheck()" dense align="left" class="text-teal" style="margin-bottom:20px;">
<q-tab v-for="(item,index) in dataList" :key="index" :name="index" <q-tab v-for="(item,index) in dataList" :key="index" :name="index" :label="item.CourseName+'('+item.OrderId+')'" />
:label="item.CourseName+'('+item.OrderId+')'" /> </q-tabs>
</q-tabs>
</div> </div>
<div class="record_Main"> <div class="record_Main">
<div style="display:flex;justify-content:space-between;align-items:center;"> <div style="display:flex;justify-content:space-between;align-items:center;">
<div>课程进度:{{CourseChapterNo}}/{{TotalChapterNo}}</div> <div>课程进度:{{CourseChapterNo}}/{{TotalChapterNo}}</div>
<div> <div>
<q-select dense filled v-model="Status" @input="getStatus" style="width:160px;margin-right:10px;" <q-select dense filled v-model="Status" @input="getStatus" style="width:160px;margin-right:10px;" :options="StatusList" option-label="Name" option-value="Id"
:options="StatusList" option-label="Name" option-value="Id" emit-value map-options label="状态" /> emit-value map-options label="状态" />
</div> </div>
</div> </div>
<div> <div>
<el-table :data="chapterList" v-loading="loading" ref="table" :height="tableHeight" style="width: 100%;"> <el-table :data="chapterList" v-loading="loading" ref="table" :height="tableHeight" style="width: 100%;">
<el-table-column prop="ChapterNo" label="章节" width="300"> <el-table-column prop="ChapterNo" label="章节" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<div style="display: inline-block;"> <div style="display: inline-block;">
<div class="flex q-ml-md"> <div class="flex q-ml-md">
<div class="record_cala_Num"> <div class="record_cala_Num">
<span> <span>
<i>{{ scope.row.ChapterNo }}</i> <i>{{ scope.row.ChapterNo }}</i>
</span> </span>
</div> </div>
<div style="margin-left: 36px;width:240px;" class="ellipsis"> <div style="margin-left: 36px;width:240px;" class="ellipsis">
{{ scope.row.ChapterName }} {{ scope.row.ChapterName }}
</div>
</div> </div>
</div> </div>
</div> </template>
</template> </el-table-column>
</el-table-column> <el-table-column prop="AgainNum" label="进度" width="100">
<el-table-column prop="AgainNum" label="进度" width="100"> <template slot-scope="scope">
<template slot-scope="scope"> {{scope.row.CourseRateName}}({{scope.row.ChapterGradeNo}})
{{scope.row.CourseRateName}}({{scope.row.ChapterGradeNo}}) <div v-if="scope.row.ClassDate" style="font-size:13px; line-height: 13px">{{scope.row.ClassDate}}</div>
<div v-if="scope.row.ClassDate" style="font-size:13px; line-height: 13px">{{scope.row.ClassDate}}</div> </template>
</template> </el-table-column>
</el-table-column> <el-table-column prop="State" label="状态" width="70">
<el-table-column prop="State" label="状态" width="70"> <template slot-scope="scope">
<template slot-scope="scope"> <div v-if="scope.row.State == 1">
<div v-if="scope.row.State == 1"> <span class="text-warning" v-if="scope.row.AppointState==1">待确认</span>
<span class="text-warning" v-if="scope.row.AppointState==1">待确认</span> <span class="text-info" v-if="scope.row.AppointState==2">待上课</span>
<span class="text-info" v-if="scope.row.AppointState==2">上课</span> <span class="text-positive" v-if="scope.row.AppointState==3">上课</span>
<span class="text-positive" v-if="scope.row.AppointState==3">已上课</span> </div>
</div> <div class="text-warning" v-if="scope.row.State == 2">补课</div>
<div class="text-warning" v-if="scope.row.State == 2"></div> <div class="text-negative" v-if="scope.row.State == 3"></div>
<div class="text-negative" v-if="scope.row.State == 3">缺课</div> </template>
</template> </el-table-column>
</el-table-column> <el-table-column prop="AgainNum" label="重学" width="60">
<el-table-column prop="AgainNum" label="重学" width="60"> <template slot-scope="scope">
<template slot-scope="scope"> {{scope.row.AgainNum}}
{{scope.row.AgainNum}} </template>
</template> </el-table-column>
</el-table-column> </el-table>
</el-table>
</div> </div>
</div> </div>
</div> </div>
...@@ -131,7 +129,7 @@ ...@@ -131,7 +129,7 @@
StatusList: [{ StatusList: [{
Name: '全部', Name: '全部',
Id: 0 Id: 0
}, { },{
Name: '正常上课', Name: '正常上课',
Id: 1 Id: 1
}, { }, {
...@@ -143,14 +141,14 @@ ...@@ -143,14 +141,14 @@
}], }],
dataList: [], dataList: [],
loading: false, loading: false,
Status: 0, //状态 Status:0,//状态
msg: { msg: {
StuId: '' StuId: ''
}, },
chapterList: [], //章节 chapterList:[], //章节
ckedTab: 0, ckedTab:0,
CourseChapterNo: 0, //当前进度 CourseChapterNo:0, //当前进度
TotalChapterNo: 0, //总进度 TotalChapterNo:0, //总进度
tableHeight: 200, tableHeight: 200,
}; };
}, },
...@@ -172,30 +170,30 @@ ...@@ -172,30 +170,30 @@
this.loading = false; this.loading = false;
if (res.Code == 1) { if (res.Code == 1) {
this.dataList = res.Data; this.dataList = res.Data;
if (this.dataList.length > 0) { if(this.dataList.length>0){
this.chapterList = this.dataList[0].ChapterList; this.chapterList = this.dataList[0].ChapterList;
this.CourseChapterNo = this.dataList[0].CourseChapterNo; this.CourseChapterNo = this.dataList[0].CourseChapterNo;
this.TotalChapterNo = this.dataList[0].TotalChapterNo; this.TotalChapterNo = this.dataList[0].TotalChapterNo;
} }
} }
}); });
}, },
getTabcheck() { getTabcheck(){
this.chapterList = this.dataList[this.ckedTab].ChapterList; this.chapterList = this.dataList[this.ckedTab].ChapterList;
this.CourseChapterNo = this.dataList[this.ckedTab].CourseChapterNo; this.CourseChapterNo = this.dataList[this.ckedTab].CourseChapterNo;
this.TotalChapterNo = this.dataList[this.ckedTab].TotalChapterNo; this.TotalChapterNo = this.dataList[this.ckedTab].TotalChapterNo;
}, },
//根据状态过滤 //根据状态过滤
getStatus() { getStatus(){
let dataArray = []; let dataArray = [];
if (this.Status == 0) { if(this.Status==0){
dataArray = this.dataList[this.ckedTab].ChapterList; dataArray = this.dataList[this.ckedTab].ChapterList;
} else { }else{
this.dataList[this.ckedTab].ChapterList.forEach(x => { this.dataList[this.ckedTab].ChapterList.forEach(x=>{
if (x.State == this.Status) { if(x.State==this.Status){
dataArray.push(x); dataArray.push(x);
} }
}) })
} }
this.chapterList = dataArray; this.chapterList = dataArray;
} }
......
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