Commit f407847f authored by 黄奎's avatar 黄奎

新增接口

parent c9291fa1
...@@ -70,6 +70,18 @@ export function queryStudyAbroadPage(data) { ...@@ -70,6 +70,18 @@ export function queryStudyAbroadPage(data) {
} }
/**
* 获取留学就业审核分页列表
*/
export function queryStudyAbroadAuditPage(data) {
return request({
url: '/StudyAbroad/GetStudyAbroadAuditPage',
method: 'post',
data
})
}
/** /**
* 获取留学就业列表 * 获取留学就业列表
*/ */
......
...@@ -6,6 +6,18 @@ ...@@ -6,6 +6,18 @@
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.Name" label="项目名称" <q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.Name" label="项目名称"
@clear="resetSearch" maxlength="20" /> @clear="resetSearch" maxlength="20" />
</div> </div>
<div class="col-3">
<q-select class="q-pb-lg q-pr-lg" filled stack-label clearable option-value="Id" option-label="Name"
v-model="msg.Type" ref="Type" :options="studyAbroadList" label="类型" :dense="false" emit-value map-options
@input="resetSearch">
</q-select>
</div>
<div class="col-3">
<q-select class="q-pb-lg q-pr-lg" filled stack-label option-value="Id" option-label="Name"
v-model="msg.AuditState" ref="AuditState" :options="AuditStateList" label="审核状态" :dense="false" emit-value
map-options @input="resetSearch">
</q-select>
</div>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
...@@ -113,8 +125,17 @@ ...@@ -113,8 +125,17 @@
</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 v-if="props.row.SaleState==2&&msg.AuditType>0" flat size="xs" icon="edit" color="accent" <!--部门主管审核-->
style="font-weight:400" label="审核" @click="EditStudy(props.row)" /> <template v-if="AuditType==1">
<q-btn v-if="props.row.SaleState==2&&props.row.DirectorStatus==0" flat size="xs" icon="edit"
color="accent" style="font-weight:400" label="审核" @click="AuditStudy(props.row)" />
</template>
<!--部门负责人审核-->
<template v-if="AuditType==2">
<q-btn v-if="props.row.SaleState==2&&props.row.DirectorStatus==1&&props.row.ManagerStatus==0" flat
size="xs" icon="edit" color="accent" style="font-weight:400" label="审核"
@click="AuditStudy(props.row)" />
</template>
<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="getviewInfo(props.row)" /> @click="getviewInfo(props.row)" />
</q-td> </q-td>
...@@ -124,16 +145,16 @@ ...@@ -124,16 +145,16 @@
:input="true" @input="changePage" /> :input="true" @input="changePage" />
</template> </template>
</q-table> </q-table>
<studyproaudit-form v-if="isShowStudy" :Id="Id" @close="closeStudyForm" @success="refreshPage()"> <studyproaudit-form v-if="isShowStudyAudit" :Id="studyObj.Id" @close="closeStudyForm" @success="refreshPage()">
</studyproaudit-form> </studyproaudit-form>
<studyproauditinfo-form v-if="isShowInfo" :Id="Id" @close="closeStudyInfo"></studyproauditinfo-form> <studyproauditinfo-form v-if="isShowInfo" :Id="studyObj.Id" @close="closeStudyInfo"></studyproauditinfo-form>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { import {
queryStudyAbroadPage queryStudyAbroadAuditPage
} 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' import studyproauditinfoForm from '../../components/studyAbroad/studyproauditinfo-form'
...@@ -157,8 +178,7 @@ ...@@ -157,8 +178,7 @@
rowsPerPage: 10, rowsPerPage: 10,
Name: "", Name: "",
IsQPrice: 1, IsQPrice: 1,
SaleState: 2, //销售状态 Type: "", //项目类型
AuditType: 0, //审核类型(1-部门主管审核,2-部门负责人审核)
AuditState: 1, //审核状态(1-待审核,2-已审核) AuditState: 1, //审核状态(1-待审核,2-已审核)
}, },
dataList: [], dataList: [],
...@@ -234,17 +254,37 @@ ...@@ -234,17 +254,37 @@
field: 'Id' field: 'Id'
} }
], ],
//审核类型
AuditStateList: [{
Id: 1,
Name: "待审核"
},
{
Id: 2,
Name: "已审核"
},
],
//项目类型列表
studyAbroadList: [{
Id: 1,
Name: "留学"
},
{
Id: 2,
Name: "就业"
},
],
//表格可见列 //表格可见列
visibleColumns: [ visibleColumns: [
'Name','Type','SuggestPrice', 'SellPrice', "PreferentialList", "PreferentialListSellCommission", 'Name', 'Type', 'SuggestPrice', 'SellPrice', "PreferentialList", "PreferentialListSellCommission",
"PreferentialListB2BCommission", "PreferentialListB2BCommission",
"EducationCommission", 'SaleStateName', 'Id', 'SupplierName', "EducationCommission", 'SaleStateName', 'Id', 'SupplierName',
], //可见列 ], //可见列
PageCount: 0, PageCount: 0,
isShowStudy: false, //是否显示留学弹窗 isShowStudyAudit: false, //是否显示留学就业审核弹窗
Id: 0, isShowInfo: false, //是否显示详情
currentUserId: 0, //当前用户登录Id studyObj: {}, //留学就业申请对象
isShowInfo: false AuditType: 0, //1-部门主管审核,2-部门负责人审核
} }
}, },
computed: mapState({ computed: mapState({
...@@ -280,12 +320,11 @@ ...@@ -280,12 +320,11 @@
}, },
created() { created() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.currentUserId = userInfo.Id;
let StudyAbroadObj = userInfo.StudyAbroadObj; let StudyAbroadObj = userInfo.StudyAbroadObj;
if (StudyAbroadObj && StudyAbroadObj.length > 0) { if (StudyAbroadObj && StudyAbroadObj.length > 0) {
StudyAbroadObj.forEach(x => { StudyAbroadObj.forEach(x => {
if (x.Id === userInfo.Id) { if (x.Id === userInfo.Id) {
this.msg.AuditType = x.AuditType this.AuditType = x.AuditType
} }
}) })
} }
...@@ -302,7 +341,7 @@ ...@@ -302,7 +341,7 @@
//获取留学分页列表 //获取留学分页列表
getList() { getList() {
this.loading = true; this.loading = true;
queryStudyAbroadPage(this.msg).then(res => { queryStudyAbroadAuditPage(this.msg).then(res => {
this.loading = false; this.loading = false;
this.dataList = res.Data.PageData; this.dataList = res.Data.PageData;
this.PageCount = res.Data.PageCount; this.PageCount = res.Data.PageCount;
...@@ -317,26 +356,27 @@ ...@@ -317,26 +356,27 @@
}, },
//关闭弹窗 //关闭弹窗
closeStudyForm() { closeStudyForm() {
this.isShowStudy = false; this.isShowStudyAudit = false;
}, },
closeStudyInfo() { closeStudyInfo() {
this.isShowInfo = false; this.isShowInfo = false;
}, },
//编辑留学 //留学就业审核
EditStudy(obj) { AuditStudy(obj) {
this.Id = obj.Id; this.studyObj = obj;
this.isShowStudy = true; this.isShowStudyAudit = true;
}, },
refreshPage() { refreshPage() {
this.getList(); this.getList();
}, },
//申请审核 //审核详情
getviewInfo(obj) { getviewInfo(obj) {
this.Id = obj.Id; this.studyObj = obj;
this.isShowInfo = true; this.isShowInfo = true;
} }
} }
} }
</script> </script>
<style scoped> <style scoped>
.border-bottom { .border-bottom {
......
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