Commit 6311bf3a authored by 黄奎's avatar 黄奎

新增页面

parent 19733d56
...@@ -140,13 +140,14 @@ ...@@ -140,13 +140,14 @@
</tr> </tr>
<tr> <tr>
<td :colspan="11" style="text-align: left"> <td :colspan="11" style="text-align: left">
<div class="row" v-if="item.GuestList.length>0"> <div class="row" v-if="item.GuestList&&item.GuestList.length>0">
学生名单: 学生名单:
<span v-for="(x,j) in item.GuestList" :index="j" v-if="x.GuestState==1" <span v-for="(x,j) in item.GuestList" :index="j" v-if="x.GuestState==1"
style="color:#2961FE;margin-right: 5px">{{x.GuestName}} </span> style="color:#2961FE;margin-right: 5px">{{x.GuestName}} </span>
</div> </div>
<div v-if="item.GuestList.length>0&&item.ContractList.length==0" class="takeContract" @click="takeContract(item)">领取合同</div> <div v-if="item.GuestList&&item.GuestList.length>0&&item.ContractList&&item.ContractList.length==0"
<div v-if="item.ContractList.length>0" class="takeContract"> class="takeContract" @click="takeContract(item)">领取合同</div>
<div v-if="item.ContractList&&item.ContractList.length>0" class="takeContract">
查看合同 查看合同
<q-popup-proxy> <q-popup-proxy>
<q-banner> <q-banner>
...@@ -169,7 +170,8 @@ ...@@ -169,7 +170,8 @@
<span v-if="subItem.Status==4">取消</span> <span v-if="subItem.Status==4">取消</span>
</td> </td>
<td> <td>
<q-btn color="accent" v-if="subItem.ContractNo==''" size="sm" class="q-mr-md" @click="takeContractTwo(item,subItem)" label="领取合同" /> <q-btn color="accent" v-if="subItem.ContractNo==''" size="sm" class="q-mr-md"
@click="takeContractTwo(item,subItem)" label="领取合同" />
</td> </td>
</tr> </tr>
</table> </table>
...@@ -177,12 +179,12 @@ ...@@ -177,12 +179,12 @@
</q-banner> </q-banner>
</q-popup-proxy> </q-popup-proxy>
</div> </div>
<div class="row" v-if=" item.GuestList.length>0&&getTkshow(item.GuestList)"> <div class="row" v-if="item.GuestList&&item.GuestList.length>0&&getTkshow(item.GuestList)">
退课名单: 退课名单:
<span v-for="(x,j) in item.GuestList" :index="j" v-if="x.GuestState==2" <span v-for="(x,j) in item.GuestList" :index="j" v-if="x.GuestState==2"
style="color:var(--q-color-negative);margin-right: 5px">{{x.GuestName}} </span> style="color:var(--q-color-negative);margin-right: 5px">{{x.GuestName}} </span>
</div> </div>
<span v-if="item.GuestList.length==0">暂无</span> <span v-if="item.GuestList&&item.GuestList.length==0">暂无</span>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -371,17 +373,17 @@ ...@@ -371,17 +373,17 @@
</tr> </tr>
<tr> <tr>
<td :colspan="11" style="text-align: left"> <td :colspan="11" style="text-align: left">
<div class="row" v-if="item.GuestList.length>0"> <div class="row" v-if="item.GuestList&&item.GuestList.length>0">
学生名单: 学生名单:
<span v-for="(x,j) in item.GuestList" :index="j" v-if="x.GuestState==1" <span v-for="(x,j) in item.GuestList" :index="j" v-if="x.GuestState==1"
style="color:#2961FE;margin-right: 5px">{{x.GuestName}} </span> style="color:#2961FE;margin-right: 5px">{{x.GuestName}} </span>
</div> </div>
<div class="row" v-if=" item.GuestList.length>0&&getTkshow(item.GuestList)"> <div class="row" v-if="item.GuestList&&item.GuestList.length>0&&getTkshow(item.GuestList)">
退课名单: 退课名单:
<span v-for="(x,j) in item.GuestList" :index="j" v-if="x.GuestState==2" <span v-for="(x,j) in item.GuestList" :index="j" v-if="x.GuestState==2"
style="color:var(--q-color-negative);margin-right: 5px">{{x.GuestName}} </span> style="color:var(--q-color-negative);margin-right: 5px">{{x.GuestName}} </span>
</div> </div>
<span v-if="item.GuestList.length==0">暂无</span> <span v-if="item.GuestList&&item.GuestList.length==0">暂无</span>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -551,7 +553,6 @@ ...@@ -551,7 +553,6 @@
<viewquotation-form v-if="isShowviewQuo" :rId="offerId" :isShowCancle="1" @close="closeQuota" <viewquotation-form v-if="isShowviewQuo" :rId="offerId" :isShowCancle="1" @close="closeQuota"
@success="refreshOrder"> @success="refreshOrder">
</viewquotation-form> </viewquotation-form>
</div> </div>
</template> </template>
...@@ -709,7 +710,7 @@ ...@@ -709,7 +710,7 @@
//弹出退课名单 //弹出退课名单
getTkshow(data) { getTkshow(data) {
let Tkshow = false; let Tkshow = false;
if (data.length > 0) { if (data && data.length > 0) {
data.forEach(x => { data.forEach(x => {
if (x.GuestState == 2) { if (x.GuestState == 2) {
Tkshow = true Tkshow = true
...@@ -768,7 +769,7 @@ ...@@ -768,7 +769,7 @@
}) })
} }
} else if (type == 2) { } else if (type == 2) {
if (this.cancelList.length > 0) { if (this.cancelList && this.cancelList.length > 0) {
this.cancelList.forEach(x => { this.cancelList.forEach(x => {
data.forEach(j => { data.forEach(j => {
if (x.OrderId == j.OrderId) { if (x.OrderId == j.OrderId) {
...@@ -878,7 +879,12 @@ ...@@ -878,7 +879,12 @@
//财务单据 //财务单据
chanceType(obj, type) { chanceType(obj, type) {
let TCIDARR = [] let TCIDARR = []
TCIDARR.push(obj.ClassId); //留学就业订单
if (obj && obj.OrderType == 2) {
TCIDARR.push(obj.SourceId);
} else {
TCIDARR.push(obj.ClassId);
}
var orderObj = {} var orderObj = {}
if (obj.OfferId > 0) { if (obj.OfferId > 0) {
orderObj = { orderObj = {
...@@ -899,6 +905,11 @@ ...@@ -899,6 +905,11 @@
TCIDList: TCIDARR TCIDList: TCIDARR
} }
} }
//留学就业订单
if (obj && obj.OrderType == 2) {
//财务单据类型【教育留学】
orderObj.OrderSource = 18;
}
this.$router.push({ this.$router.push({
path: '/financial/financalDocument/ChoiceAddFinancialDocuments', path: '/financial/financalDocument/ChoiceAddFinancialDocuments',
query: { query: {
...@@ -928,10 +939,10 @@ ...@@ -928,10 +939,10 @@
this.isShowMoney = true; this.isShowMoney = true;
}, },
//领取合同 //领取合同
takeContract(item){ takeContract(item) {
let msg = { let msg = {
OrderId:item.OrderId, OrderId: item.OrderId,
GuestId:0 GuestId: 0
} }
SetOrderReceiveContract(msg).then(res => { SetOrderReceiveContract(msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
...@@ -949,10 +960,10 @@ ...@@ -949,10 +960,10 @@
}) })
}, },
takeContractTwo(item,subItem){ takeContractTwo(item, subItem) {
let msg = { let msg = {
OrderId:item.OrderId, OrderId: item.OrderId,
GuestId:subItem.GuestId GuestId: subItem.GuestId
} }
SetOrderReceiveContract(msg).then(res => { SetOrderReceiveContract(msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
...@@ -1186,17 +1197,22 @@ ...@@ -1186,17 +1197,22 @@
text-decoration: underline; text-decoration: underline;
cursor: pointer cursor: pointer
} }
.takeContract{
.takeContract {
cursor: pointer; cursor: pointer;
color:rgb(41, 97, 254); color: rgb(41, 97, 254);
} }
.Contract_Table{
width:100%; .Contract_Table {
border-collapse:collapse; width: 100%;
border-collapse: collapse;
} }
.Contract_Table ,th, td{
padding:5px; .Contract_Table,
color:#000; th,
td {
padding: 5px;
color: #000;
text-align: center; text-align: center;
} }
......
...@@ -11,17 +11,16 @@ ...@@ -11,17 +11,16 @@
class="col-6 q-pr-lg q-pb-lg" label="项目名称" :rules="[val => !!val || '项目名称']" /> class="col-6 q-pr-lg q-pb-lg" label="项目名称" :rules="[val => !!val || '项目名称']" />
<q-select filled stack-label option-value="Id" option-label="Name" v-model="objOption.SupplierId" ref="Type" <q-select filled stack-label option-value="Id" option-label="Name" v-model="objOption.SupplierId" ref="Type"
:options="supplierList" label="供应商" :dense="false" class="col-6 q-pb-lg q-pr-lg" emit-value map-options /> :options="supplierList" label="供应商" :dense="false" class="col-6 q-pb-lg q-pr-lg" emit-value map-options />
<a v-if="objOption.SupplierContract&&isHaveViewContractAction"
style="margin-left:10px;color:#2961FE;text-decoration:none;" :href="objOption.SupplierContract">查看合同</a>
</div> </div>
<div class="row wrap" style="display:none;"> <div class="row wrap">
<div class="col-12"> <div class="col-6">
<div style="display:flex;align-items:center;"> <q-select filled stack-label option-value="SId" option-label="SName" v-model="objOption.School_Id"
<a :href="fileObj.FileUrl" style="margin-right:10px;">{{fileObj.FileName}}</a> ref="School_Id" :options="SchoolList" label="所属校区" :dense="false" class="col-6 q-pr-lg q-pr-lg" emit-value
<el-upload class="upload-demo" action="" :show-file-list="false" :http-request="UploadAttachment" map-options />
:multiple="uploadMultple"> <div class="col-6">
<q-btn color="accent" size="sm" icon="add" label="上传供应商合同" /> <a v-if="objOption.SupplierContract&&isHaveViewContractAction"
</el-upload> style="margin-left:10px;color:#2961FE;text-decoration:none;" :href="objOption.SupplierContract">查看合同</a>
</div> </div>
</div> </div>
</div> </div>
...@@ -51,6 +50,9 @@ ...@@ -51,6 +50,9 @@
import { import {
UploadSelfFile UploadSelfFile
} from '../../api/common/common' } from '../../api/common/common'
import {
getSchoolDropdown,
} from '../../api/school/index'
import { import {
mapState mapState
} from "vuex"; } from "vuex";
...@@ -75,6 +77,7 @@ ...@@ -75,6 +77,7 @@
SupplierId: 0, //供应商编号 SupplierId: 0, //供应商编号
SupplierContract: '', //供应商合同 SupplierContract: '', //供应商合同
Remark: '', //备注 Remark: '', //备注
School_Id: 0, //所属校区
}, },
optionTitle: "", optionTitle: "",
saveLoading: false, saveLoading: false,
...@@ -83,7 +86,8 @@ ...@@ -83,7 +86,8 @@
fileObj: { fileObj: {
FileName: '', FileName: '',
FileUrl: '' FileUrl: ''
} },
SchoolList: [], //校区列表
} }
}, },
computed: mapState({ computed: mapState({
...@@ -101,11 +105,27 @@ ...@@ -101,11 +105,27 @@
return false; return false;
} }
}), }),
created() {
this.getSchool()
},
mounted() { mounted() {
this.getStudyAbroadList(); this.getStudyAbroadList();
this.initObj() this.initObj()
}, },
methods: { methods: {
//获取校区下拉
getSchool() {
getSchoolDropdown({}).then(res => {
if (res.Code == 1) {
this.SchoolList = res.Data;
var obj = {
SName: '请选择',
SId: 0
}
this.SchoolList.unshift(obj);
}
})
},
//初始化表单 //初始化表单
initObj() { initObj() {
if (this.saveObj && this.saveObj.Id > 0) { if (this.saveObj && this.saveObj.Id > 0) {
...@@ -121,6 +141,7 @@ ...@@ -121,6 +141,7 @@
this.objOption.SupplierId = tempObj.SupplierId; this.objOption.SupplierId = tempObj.SupplierId;
this.objOption.SupplierContract = tempObj.SupplierContract; this.objOption.SupplierContract = tempObj.SupplierContract;
this.objOption.Remark = tempObj.Remark; this.objOption.Remark = tempObj.Remark;
this.objOption.School_Id = tempObj.School_Id;
} }
} }
}) })
...@@ -131,6 +152,7 @@ ...@@ -131,6 +152,7 @@
this.objOption.SupplierId = 0; this.objOption.SupplierId = 0;
this.objOption.SupplierContract = ''; this.objOption.SupplierContract = '';
this.objOption.Remark = ''; this.objOption.Remark = '';
this.objOption.School_Id = 0;
} }
}, },
//关闭弹窗 //关闭弹窗
......
...@@ -421,7 +421,6 @@ ...@@ -421,7 +421,6 @@
getList() { getList() {
GetEducationContractInfo(this.gmsg).then(res => { GetEducationContractInfo(this.gmsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
console.log(res, '梳理');
this.dataList = res.Data; this.dataList = res.Data;
} }
}) })
......
...@@ -208,7 +208,6 @@ ...@@ -208,7 +208,6 @@
if (res.Code == 1) { if (res.Code == 1) {
this.dataList = res.Data.PageData; this.dataList = res.Data.PageData;
this.pageCount = res.Data.PageCount; this.pageCount = res.Data.PageCount;
console.log(res, '数据');
} }
}) })
}, },
......
...@@ -541,7 +541,6 @@ ...@@ -541,7 +541,6 @@
getList() { getList() {
GetEducationContractInfo(this.msg).then(res => { GetEducationContractInfo(this.msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
console.log(res, '数据');
this.dataList = res.Data; this.dataList = res.Data;
} }
}) })
......
...@@ -264,7 +264,6 @@ ...@@ -264,7 +264,6 @@
if (res.Code == 1) { if (res.Code == 1) {
this.dataList = res.Data.PageData; this.dataList = res.Data.PageData;
this.pageCount = res.Data.PageCount; this.pageCount = res.Data.PageCount;
console.log(res, '数据');
} }
}) })
}, },
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<template v-if="x.PriceType==0"> <template v-if="x.PriceType==0">
{{ 100 - x.PriceMoney }} {{ 100 - x.PriceMoney }}
</template> </template>
<template> <template v-else>
{{x.PriceMoney}} {{x.PriceMoney}}
</template> </template>
优惠 优惠
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
双人报名享<template v-if="x.PriceType==0"> 双人报名享<template v-if="x.PriceType==0">
{{ 100 - x.PriceMoney }} {{ 100 - x.PriceMoney }}
</template> </template>
<template> <template v-else>
{{x.PriceMoney}} {{x.PriceMoney}}
</template> </template>
优惠 优惠
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
续费享<template v-if="x.PriceType==0"> 续费享<template v-if="x.PriceType==0">
{{ 100 - x.PriceMoney }} {{ 100 - x.PriceMoney }}
</template> </template>
<template> <template v-else>
{{x.PriceMoney}} {{x.PriceMoney}}
</template> </template>
优惠 优惠
......
...@@ -44,6 +44,9 @@ ...@@ -44,6 +44,9 @@
</a> </a>
</div> </div>
</q-td> </q-td>
<q-td v-if="col.name=='SchoolName'">
{{col.value}}
</q-td>
<q-td v-if="col.name=='SuggestPrice'"> <q-td v-if="col.name=='SuggestPrice'">
{{col.value}} {{col.value}}
</q-td> </q-td>
...@@ -172,8 +175,8 @@ ...@@ -172,8 +175,8 @@
<q-item-section> <q-item-section>
<q-item-label>收支明细</q-item-label> <q-item-label>收支明细</q-item-label>
</q-item-section> </q-item-section>
</q-item> --> </q-item>
</q-list> </q-list> -->
</q-btn-dropdown> </q-btn-dropdown>
</q-td> </q-td>
</template> </template>
...@@ -256,6 +259,12 @@ ...@@ -256,6 +259,12 @@
field: 'SupplierName', field: 'SupplierName',
align: 'left' align: 'left'
}, },
{
name: 'SchoolName',
label: '所属校区',
field: 'SchoolName',
align: 'left'
},
{ {
name: 'SuggestPrice', name: 'SuggestPrice',
label: '建议卖价', label: '建议卖价',
...@@ -312,7 +321,8 @@ ...@@ -312,7 +321,8 @@
], ],
//表格可见列 //表格可见列
visibleColumns: [ visibleColumns: [
'Remark', 'Name', 'SuggestPrice', 'SellPrice', "PreferentialList", "PreferentialListSellCommission", 'Remark', 'Name', 'SchoolName', 'SuggestPrice', 'SellPrice', "PreferentialList",
"PreferentialListSellCommission",
"PreferentialListB2BCommission", "PreferentialListB2BCommission",
"EducationCommission", 'SaleStateName', 'Id', 'SupplierName', "EducationCommission", 'SaleStateName', 'Id', 'SupplierName',
], //可见列 ], //可见列
...@@ -375,6 +385,7 @@ ...@@ -375,6 +385,7 @@
path: '/studyAbroad/studypayment', path: '/studyAbroad/studypayment',
query: { query: {
SourceId: item.Id, SourceId: item.Id,
School_Id:item.School_Id,
blank: 'y' blank: 'y'
} }
}) })
......
...@@ -200,6 +200,12 @@ ...@@ -200,6 +200,12 @@
label: '供应商', label: '供应商',
field: 'SupplierName', field: 'SupplierName',
align: 'left' align: 'left'
},
{
name: 'SchoolName',
label: '所属校区',
field: 'SchoolName',
align: 'left'
}, },
{ {
name: 'SuggestPrice', name: 'SuggestPrice',
......
...@@ -44,6 +44,9 @@ ...@@ -44,6 +44,9 @@
</a> </a>
</div> </div>
</q-td> </q-td>
<q-td v-if="col.name=='SchoolName'">
{{col.value}}
</q-td>
<q-td v-if="col.name=='SuggestPrice'"> <q-td v-if="col.name=='SuggestPrice'">
{{col.value}} {{col.value}}
</q-td> </q-td>
...@@ -257,6 +260,12 @@ ...@@ -257,6 +260,12 @@
field: 'SupplierName', field: 'SupplierName',
align: 'left' align: 'left'
}, },
{
name: 'SchoolName',
label: '所属校区',
field: 'SchoolName',
align: 'left'
},
{ {
name: 'SuggestPrice', name: 'SuggestPrice',
label: '建议卖价', label: '建议卖价',
...@@ -313,7 +322,8 @@ ...@@ -313,7 +322,8 @@
], ],
//表格可见列 //表格可见列
visibleColumns: [ visibleColumns: [
'Remark', 'Name', 'SuggestPrice', 'SellPrice', "PreferentialList", "PreferentialListSellCommission", 'Remark', 'Name', 'SchoolName', 'SuggestPrice', 'SellPrice', "PreferentialList",
"PreferentialListSellCommission",
"PreferentialListB2BCommission", "PreferentialListB2BCommission",
"EducationCommission", 'SaleStateName', 'Id', 'SupplierName', "EducationCommission", 'SaleStateName', 'Id', 'SupplierName',
], //可见列 ], //可见列
...@@ -376,6 +386,7 @@ ...@@ -376,6 +386,7 @@
path: '/studyAbroad/studypayment', path: '/studyAbroad/studypayment',
query: { query: {
SourceId: item.Id, SourceId: item.Id,
School_Id: item.School_Id,
blank: 'y' blank: 'y'
} }
}) })
......
...@@ -443,16 +443,18 @@ ...@@ -443,16 +443,18 @@
dataList: [], //数据 dataList: [], //数据
msg: { msg: {
SourceId: 0, SourceId: 0,
School_Id: 0,
}, },
} }
}, },
created() { created() {
if (this.$route.query.SourceId && this.$route.query.SourceId) {
},
mounted() {
if (this.$route.query.SourceId && this.$route.query.SourceId) {
this.msg.SourceId = this.$route.query.SourceId; this.msg.SourceId = this.$route.query.SourceId;
this.msg.School_Id = this.$route.query.School_Id;
} }
},
mounted() {
this.getData(); this.getData();
}, },
methods: { methods: {
...@@ -490,10 +492,10 @@ ...@@ -490,10 +492,10 @@
//跳转到收款单 //跳转到收款单
goShoukuan(type) { goShoukuan(type) {
let TCIDARR = [] let TCIDARR = []
TCIDARR.push(this.msg.ClassId) TCIDARR.push(this.msg.SourceId);
let orderObj = { let orderObj = {
OrderID: 0, OrderID: 0,
OrderSource: 17, OrderSource: 18,
Obj: {}, Obj: {},
SourceID: 0, SourceID: 0,
TCIDList: TCIDARR TCIDList: TCIDARR
...@@ -509,7 +511,6 @@ ...@@ -509,7 +511,6 @@
'tradeWay': '', 'tradeWay': '',
} }
}); });
} }
} }
} }
......
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