Commit 59055463 authored by 黄奎's avatar 黄奎

页面修改

parent 5e99b2c5
...@@ -63,8 +63,9 @@ ...@@ -63,8 +63,9 @@
<div> <div>
<span @click="goOrderdetails(item,1)" class="order_OfferId">{{item.OrderId}}</span> <span @click="goOrderdetails(item,1)" class="order_OfferId">{{item.OrderId}}</span>
<q-badge v-if="item.JoinType==3" color="red" label="续费订单" style="margin-left:5px;" class="q-mr-xs" /> <q-badge v-if="item.JoinType==3" color="red" label="续费订单" style="margin-left:5px;" class="q-mr-xs" />
<q-badge v-if="item.OrderType==2 && item.LXConfirmState==1" color="primary" label="已确认" style="margin-left:5px;" class="q-mr-xs" /> <q-badge v-if="item.OrderType==2 && item.LXConfirmState==1" color="primary" label="已确认"
style="margin-left:5px;" class="q-mr-xs" />
<q-badge v-if="item.TargetJoinType==3" color="green" label="已续费" style="margin-left:5px;" <q-badge v-if="item.TargetJoinType==3" color="green" label="已续费" style="margin-left:5px;"
class="q-mr-xs" /> class="q-mr-xs" />
<div style="display:inline-block;"> <div style="display:inline-block;">
...@@ -132,6 +133,7 @@ ...@@ -132,6 +133,7 @@
</template> </template>
<template v-if="item.OrderType==1"> <template v-if="item.OrderType==1">
<div v-if="item.CourseName">课程名称:{{item.CourseName}}</div> <div v-if="item.CourseName">课程名称:{{item.CourseName}}</div>
<div v-if="item.CourseSubjectName">所属科目:{{item.CourseSubjectName}}</div>
<div v-if="item.JoinType==2" style="color:red;cursor:pointer"> <div v-if="item.JoinType==2" style="color:red;cursor:pointer">
插班报入 插班报入
  <q-tooltip :offset="[10, 10]">   <q-tooltip :offset="[10, 10]">
...@@ -335,8 +337,7 @@ ...@@ -335,8 +337,7 @@
</q-item> </q-item>
</div> </div>
<div v-if="item.OrderType==2 && item.LXConfirmState!=1 && AuthorityObj.isshoworderconfirm == true"> <div v-if="item.OrderType==2 && item.LXConfirmState!=1 && AuthorityObj.isshoworderconfirm == true">
<q-item clickable v-close-popup disabled <q-item clickable v-close-popup disabled v-if="(item.DueInMoney&&item.DueInMoney!=0 ) ">
v-if="(item.DueInMoney&&item.DueInMoney!=0 ) ">
<q-item-section> <q-item-section>
<q-item-label> <q-item-label>
订单确认 订单确认
...@@ -412,7 +413,7 @@ ...@@ -412,7 +413,7 @@
<tr v-for="subItem in item.GuestList"> <tr v-for="subItem in item.GuestList">
<td>{{subItem.GuestName}}</td> <td>{{subItem.GuestName}}</td>
<td> <td>
{{subItem.ContractNo}} {{subItem.ContractNo}}
</td> </td>
<td>{{subItem.ContractStatusStr}}</td> <td>{{subItem.ContractStatusStr}}</td>
<td> <span style="color:var(--q-color-primary);cursor:pointer;" <td> <span style="color:var(--q-color-primary);cursor:pointer;"
...@@ -587,8 +588,8 @@ ...@@ -587,8 +588,8 @@
<span style="cursor: pointer" @click="goOrderdetails(item,4)">{{x.FrID}}</span> <span style="cursor: pointer" @click="goOrderdetails(item,4)">{{x.FrID}}</span>
</div> </div>
</div> </div>
<div class="row" style="justify-content: space-between"> <div class="row" style="justify-content: space-between">
<span>付款单据:</span> <span>付款单据:</span>
<q-btn flat size="xs" icon="edit" <q-btn flat size="xs" icon="edit"
...@@ -961,14 +962,8 @@ ...@@ -961,14 +962,8 @@
<img :src="item" style="" /> <img :src="item" style="" />
</el-carousel-item> </el-carousel-item>
</el-carousel> --> </el-carousel> -->
<el-image <el-image style="width: 100%; height: 100%" fit="cover" v-for="(item, index) in imgViewList" :key="index"
style="width: 100%; height: 100%" :src="item" :preview-src-list="imgViewList">
fit="cover"
v-for="(item, index) in imgViewList"
:key="index"
:src="item"
:preview-src-list="imgViewList"
>
</el-image> </el-image>
</div> </div>
</div> </div>
...@@ -994,7 +989,7 @@ ...@@ -994,7 +989,7 @@
setOrderHelpEnterId, //老师关联 setOrderHelpEnterId, //老师关联
cancelClassOrder, //取消订单 cancelClassOrder, //取消订单
regressSourceClass, //拆分订单回到原班 regressSourceClass, //拆分订单回到原班
setStudyAboradOrderConfirm,//留学订单确认 setStudyAboradOrderConfirm, //留学订单确认
} from '../../api/sale/sale' } from '../../api/sale/sale'
import { import {
...@@ -1096,7 +1091,7 @@ ...@@ -1096,7 +1091,7 @@
isShowEdit: true, //是否显示修改订单按钮 isShowEdit: true, //是否显示修改订单按钮
isShowTransClassOrder: false, //是否显示转班按钮 isShowTransClassOrder: false, //是否显示转班按钮
isShowSeparater: false, //是否显示分拆 isShowSeparater: false, //是否显示分拆
isshoworderconfirm:false,//留学的订单确认按钮 isshoworderconfirm: false, //留学的订单确认按钮
}, },
isShowEduForm: false, //是否显示新增修改合同弹窗 isShowEduForm: false, //是否显示新增修改合同弹窗
...@@ -1165,7 +1160,7 @@ ...@@ -1165,7 +1160,7 @@
methods: { methods: {
//点击合同编号预览 //点击合同编号预览
getShowContract(item) { getShowContract(item) {
this.isShowPop=false; this.isShowPop = false;
if (item.ContractUrlList.length > 0) { if (item.ContractUrlList.length > 0) {
//预览图片 //预览图片
if (item.ContractType == 2) { if (item.ContractType == 2) {
...@@ -1173,7 +1168,7 @@ ...@@ -1173,7 +1168,7 @@
this.imgViewUrl = item.ContractUrlList[0]; this.imgViewUrl = item.ContractUrlList[0];
this.imgViewList = item.ContractUrlList; this.imgViewList = item.ContractUrlList;
} }
if(item.ContractType==1){ if (item.ContractType == 1) {
this.previewPDF(item.ContractUrlList[0]); this.previewPDF(item.ContractUrlList[0]);
} }
} }
...@@ -1232,7 +1227,7 @@ ...@@ -1232,7 +1227,7 @@
if (this.authObj.isshoworderconfirm != null && this.authObj.isshoworderconfirm) { if (this.authObj.isshoworderconfirm != null && this.authObj.isshoworderconfirm) {
this.AuthorityObj.isshoworderconfirm = this.authObj.isshoworderconfirm; this.AuthorityObj.isshoworderconfirm = this.authObj.isshoworderconfirm;
} }
} }
}, },
//回归原班 //回归原班
...@@ -1557,13 +1552,13 @@ ...@@ -1557,13 +1552,13 @@
} }
}); });
}, },
chanceType_lx(obj){//留学的时 成本制单 chanceType_lx(obj) { //留学的时 成本制单
let TCIDARR = [] let TCIDARR = []
if (obj && obj.OrderType == 2) { if (obj && obj.OrderType == 2) {
//留学就业订单 //留学就业订单
TCIDARR.push(obj.SourceId); TCIDARR.push(obj.SourceId);
} else { } else {
} }
var orderObj = { var orderObj = {
OrderID: obj.OrderId, OrderID: obj.OrderId,
...@@ -1572,12 +1567,12 @@ ...@@ -1572,12 +1567,12 @@
SourceID: 0, SourceID: 0,
TCIDList: TCIDARR TCIDList: TCIDARR
} }
orderObj.OtherType = 45;//成本单据 orderObj.OtherType = 45; //成本单据
if(obj.OfferId>0){ if (obj.OfferId > 0) {
orderObj.ReFinanceId = obj.OfferId; orderObj.ReFinanceId = obj.OfferId;
} }
let ContractNo = '' let ContractNo = ''
if (obj && obj.GuestList.length > 0) { if (obj && obj.GuestList.length > 0) {
obj.GuestList.forEach(x => { obj.GuestList.forEach(x => {
...@@ -1669,16 +1664,16 @@ ...@@ -1669,16 +1664,16 @@
}); });
}, },
gourltx(obj) { gourltx(obj) {
if(obj.OrderType == 1){ if (obj.OrderType == 1) {
this.OpenNewUrl("/financial/cycleOrderList", { this.OpenNewUrl("/financial/cycleOrderList", {
OrderId: obj.OrderId OrderId: obj.OrderId
}); });
}else{ } else {
this.OpenNewUrl("/financial/studyabroad/ordercommission", { this.OpenNewUrl("/financial/studyabroad/ordercommission", {
OrderId: obj.OrderId OrderId: obj.OrderId
}); });
} }
}, },
//合同提交审核 //合同提交审核
goContractAudit(subItem) { goContractAudit(subItem) {
...@@ -1741,7 +1736,7 @@ ...@@ -1741,7 +1736,7 @@
} }
}) })
}, },
studyabroadorderconfirmation(item){//留学订单确认 studyabroadorderconfirmation(item) { //留学订单确认
console.log(item) console.log(item)
let that = this let that = this
this.$q.dialog({ this.$q.dialog({
......
...@@ -6,13 +6,18 @@ ...@@ -6,13 +6,18 @@
<q-select @input="resetSearch" standout="bg-primary text-white" option-value="SId" option-label="SName" <q-select @input="resetSearch" standout="bg-primary text-white" option-value="SId" option-label="SName"
v-model="msg.School_Id" :options="schoolList" emit-value map-options label="关联校区" clearable /> v-model="msg.School_Id" :options="schoolList" emit-value map-options label="关联校区" clearable />
</div> </div>
<div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.CourseSubject"
:options="CourseSubjectList" option-label="Name" option-value="Id" emit-value map-options label="所属科目"
clearable />
</div>
<div class="col-3"> <div class="col-3">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.ClassNo" label="班号" <q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.ClassNo" label="班号"
@clear="resetSearch" maxlength="20" clearable /> @clear="resetSearch" maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.ClassName" label="班级名称" <q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.ClassName" label="班级名称"
@clear="resetSearch" maxlength="20" clearable /> @clear="resetSearch" maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" option-value="TId" option-label="TeacherName" <q-select @input="resetSearch" standout="bg-primary text-white" option-value="TId" option-label="TeacherName"
...@@ -112,6 +117,7 @@ ...@@ -112,6 +117,7 @@
</div> </div>
</div> </div>
<div class="d2"> <div class="d2">
<div><span class="d2-n">所属科目</span>{{item.CourseSubjectName}}</div>
<div class="row" style="align-items: center ;margin:0;padding:0;"> <div class="row" style="align-items: center ;margin:0;padding:0;">
<span class="d2-n">带课老师</span> <span class="d2-n">带课老师</span>
<template v-if="item.Teacher_Id==0"> <template v-if="item.Teacher_Id==0">
...@@ -317,6 +323,7 @@ ...@@ -317,6 +323,7 @@
} from '../../api/school/index'; } from '../../api/school/index';
import { import {
queryCourseDropdownList, queryCourseDropdownList,
getCourseSubject
} from '../../api/course/index' } from '../../api/course/index'
import editorderForm from '../../components/sale/editorder-form' //修改订单 import editorderForm from '../../components/sale/editorder-form' //修改订单
...@@ -346,6 +353,7 @@ ...@@ -346,6 +353,7 @@
JoinStartTime: '', //报名截止日期开始 JoinStartTime: '', //报名截止日期开始
JoinEndTime: "", //报名截止日期结束 JoinEndTime: "", //报名截止日期结束
ClassNo: '', //班号 ClassNo: '', //班号
CourseSubject: "", //所属科目
}, },
//关联校区列表 //关联校区列表
schoolList: [], schoolList: [],
...@@ -361,10 +369,12 @@ ...@@ -361,10 +369,12 @@
CourseId: 0, CourseId: 0,
}, },
isChaBan: 0, //是否插班(0-正常报入,1-插班报入) isChaBan: 0, //是否插班(0-正常报入,1-插班报入)
CourseSubjectList: [], //科目列表
} }
}, },
created() { created() {
this.getSchool(); this.getSchool();
this.queryCourseSubject();
this.CourseList(); this.CourseList();
this.GetTeacherList(); this.GetTeacherList();
if (this.$route.query && this.$route.query.ClassName) { if (this.$route.query && this.$route.query.ClassName) {
...@@ -384,6 +394,13 @@ ...@@ -384,6 +394,13 @@
this.getList(); this.getList();
}, },
methods: { methods: {
queryCourseSubject() {
getCourseSubject({}).then(res => {
if (res.Code == 1) {
this.CourseSubjectList = res.Data;
}
})
},
//关闭订单修改 //关闭订单修改
closeOrderSaveForm() { closeOrderSaveForm() {
this.isShowEditOrderForm = false; this.isShowEditOrderForm = false;
......
...@@ -12,6 +12,11 @@ ...@@ -12,6 +12,11 @@
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.OrderId" label="订单号" <q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.OrderId" label="订单号"
@clear="resetSearch" maxlength="10" /> @clear="resetSearch" maxlength="10" />
</div> </div>
<div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.CourseSubject"
:options="CourseSubjectList" option-label="Name" option-value="Id" emit-value map-options label="所属科目"
clearable />
</div>
<div class="col-3"> <div class="col-3">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.GuestName" label="客户名称" <q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.GuestName" label="客户名称"
@clear="resetSearch" maxlength="20" /> @clear="resetSearch" maxlength="20" />
...@@ -25,8 +30,9 @@ ...@@ -25,8 +30,9 @@
option-label="CourseName" v-model="msg.CouseId" :options="CourseList" emit-value map-options label="学习课程" /> option-label="CourseName" v-model="msg.CouseId" :options="CourseList" emit-value map-options label="学习课程" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="msg.OrderState==0?(msg.Q_OrderState = 1):msg.Q_OrderState=0,resetSearch()" standout="bg-primary text-white" option-value="Id" option-label="Name" <q-select @input="msg.OrderState==0?(msg.Q_OrderState = 1):msg.Q_OrderState=0,resetSearch()"
v-model="msg.OrderState" :options="OrderStateList" emit-value map-options label="订单状态" /> standout="bg-primary text-white" option-value="Id" option-label="Name" v-model="msg.OrderState"
:options="OrderStateList" emit-value map-options label="订单状态" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-field filled> <q-field filled>
...@@ -97,7 +103,8 @@ ...@@ -97,7 +103,8 @@
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<orderlist :dataList="data.List" :authObj="authObj" @success="refreshClassOrder" :modityOrderType="1" ref="orderL"> <orderlist :dataList="data.List" :authObj="authObj" @success="refreshClassOrder" :modityOrderType="1"
ref="orderL">
</orderlist> </orderlist>
<div class="row" style="justify-content: flex-end;padding: 5px 20px"> <div class="row" style="justify-content: flex-end;padding: 5px 20px">
<q-pagination v-model="msg.pageIndex" :max="pageCount" @input="changePage" class="full-width justify-end" <q-pagination v-model="msg.pageIndex" :max="pageCount" @input="changePage" class="full-width justify-end"
...@@ -117,6 +124,7 @@ ...@@ -117,6 +124,7 @@
} from '../../api/sale/sale'; } from '../../api/sale/sale';
import { import {
queryCourseDropdownList, queryCourseDropdownList,
getCourseSubject
} from '../../api/course/index' } from '../../api/course/index'
import myOrderForm from '../../components/sale/myOrder-form' import myOrderForm from '../../components/sale/myOrder-form'
import classinfoForm from '../../components/course/classinfo-form'; import classinfoForm from '../../components/course/classinfo-form';
...@@ -153,6 +161,7 @@ ...@@ -153,6 +161,7 @@
Q_OrderState: 1, //查询 1正常订单 2取消订单 (默认传1 如果 选择了订单状态 则传 0) Q_OrderState: 1, //查询 1正常订单 2取消订单 (默认传1 如果 选择了订单状态 则传 0)
Q_OrderBy: 2, //写死 =2 Q_OrderBy: 2, //写死 =2
PlatformTax: 0, //平台税金 PlatformTax: 0, //平台税金
CourseSubject: "", //所属科目
}, },
//订单状态 //订单状态
OrderStateList: [], OrderStateList: [],
...@@ -169,15 +178,17 @@ ...@@ -169,15 +178,17 @@
isShowSaleRemark: true, //显示修改销售备注 isShowSaleRemark: true, //显示修改销售备注
isShowBackClass: true, //显示退课按钮 isShowBackClass: true, //显示退课按钮
isShowRenewClass: true, //显示续课按钮 isShowRenewClass: true, //显示续课按钮
isShowTransClassOrder:true,//现在转班按钮 isShowTransClassOrder: true, //现在转班按钮
isShowSeparater: true //显示分拆按钮 isShowSeparater: true //显示分拆按钮
} },
CourseSubjectList: [], //科目列表
} }
}, },
created() { created() {
if (this.$route.query.OrderId) { if (this.$route.query.OrderId) {
this.msg.OrderId = this.$route.query.OrderId; this.msg.OrderId = this.$route.query.OrderId;
} }
this.queryCourseSubject();
this.getOrderState(); this.getOrderState();
this.getCourseList(); this.getCourseList();
}, },
...@@ -185,6 +196,13 @@ ...@@ -185,6 +196,13 @@
this.getList(); this.getList();
}, },
methods: { methods: {
queryCourseSubject() {
getCourseSubject({}).then(res => {
if (res.Code == 1) {
this.CourseSubjectList = res.Data;
}
})
},
//订单状态 //订单状态
getOrderState() { getOrderState() {
getOrderStateEnumList({}).then(res => { getOrderStateEnumList({}).then(res => {
......
This diff is collapsed.
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