Commit 595fff33 authored by 黄奎's avatar 黄奎
parents 43047461 91825fba
import request from '../../utils/request' import request from '../../utils/request'
import request_zc from '../../utils/request_zc'
/** /**
* 获取学校分页列表 * 获取学校分页列表
...@@ -504,3 +506,19 @@ export function queryEmpChangeLog(data) { ...@@ -504,3 +506,19 @@ export function queryEmpChangeLog(data) {
data data
}); });
} }
// 获取用户领用资产的数量(用户教育用户列表 展示资产使用情况)
export function getEduEmployeeNumList(data) {
return request_zc({
url: '/property/GetEduEmployeeReceiveNumList',
method: 'post',
data
});
}
//获取用户资产列表
export function propertyGetPageList(data) {
return request_zc({
url: '/property/PropertyGetPageList',
method: 'post',
data
});
}
...@@ -805,6 +805,7 @@ ...@@ -805,6 +805,7 @@
<div class="_pb_son _none_after" v-if="GetDetail.Status==3 && !IsBoHui"> <div class="_pb_son _none_after" v-if="GetDetail.Status==3 && !IsBoHui">
<div class="_left_radius _left_radius_err">驳回</div> <div class="_left_radius _left_radius_err">驳回</div>
</div> </div>
<div class="_pb_son" :class="GetDetail.Status==2?'_none_after':''" v-if="GetDetail.Status==2"> <div class="_pb_son" :class="GetDetail.Status==2?'_none_after':''" v-if="GetDetail.Status==2">
<div class="_left_radius" >结束</div> <div class="_left_radius" >结束</div>
<div class="_right_content"> <div class="_right_content">
...@@ -813,6 +814,8 @@ ...@@ -813,6 +814,8 @@
</div> </div>
<div style="padding-left: 75px;"> <div style="padding-left: 75px;">
<!-- <button class="hollowFixedBtn" v-if="(bossID===1 || bossID===5||bossID===1903) && (GetDetail.Status===2 || GetDetail.Status===5 || GetDetail.Status===1)" @click="bohui()">驳回</button>--> <!-- <button class="hollowFixedBtn" v-if="(bossID===1 || bossID===5||bossID===1903) && (GetDetail.Status===2 || GetDetail.Status===5 || GetDetail.Status===1)" @click="bohui()">驳回</button>-->
<button class="hollowFixedBtn" v-if="showbohui && (GetDetail.Status==1 || GetDetail.Status==2)" @click="bohui()">驳回</button>
<button class="hollowFixedBtn" @click="AuditOrRefund()">返回</button> <button class="hollowFixedBtn" @click="AuditOrRefund()">返回</button>
</div> </div>
</div> </div>
...@@ -952,7 +955,8 @@ ...@@ -952,7 +955,8 @@
classObjOption: null, classObjOption: null,
isShowClassInfo: false, //是否显示课程信息 isShowClassInfo: false, //是否显示课程信息
isShowviewQuo:false, //是否显示预览报价单 isShowviewQuo:false, //是否显示预览报价单
rId:0 rId:0,
showbohui:false,//5-10新加
} }
}, },
components:{ components:{
...@@ -985,6 +989,19 @@ ...@@ -985,6 +989,19 @@
// if(ActionMenuCode.indexOf('F_Update_KJCostType')!=-1){ // if(ActionMenuCode.indexOf('F_Update_KJCostType')!=-1){
// this.huijiShow=true; // this.huijiShow=true;
// } // }
// 5-10新加 驳回判断
var localStorageData = window.localStorage["loginUserInfo"];
let ActionMenuList = JSON.parse(localStorageData).data.ActionMenuList
console.log(ActionMenuList)
if(ActionMenuList && ActionMenuList.length>0){
ActionMenuList.forEach(x=>{
if(x.FunctionCode == 'Finance_SpecialRejected'){
this.showbohui = true
}
})
}
}, },
methods:{ methods:{
//查看报价单 //查看报价单
......
<style>
.Sysuser_Date .el-range-editor .el-range-input {
background-color: transparent;
}
.Sysuser_Date .el-range-editor.el-input__inner {
background-color: transparent;
}
.syster_qDropdown .q-btn__wrapper {
padding: 0 3px;
min-height: 0 !important;
}
.receiveNumList .ColorSpan {
width: 24px;
height: 24px;
line-height: 24px;
border-radius: 50%;
display: inline-block;
text-align: center;
font-size: 12px;
font-family: Microsoft YaHei;
}
.receiveNumList .huangSpan {
background: #FFE4D5;
color: #FFA87C;
}
.receiveNumList .greenSpan {
background: #BEEFF0;
color: #089bab;
}
.receiveNumList .purpleSpan {
background: #D7D6FF;
color: #7B78FF;
}
.receiveNumList .buleSpan {
background: #D4EAFF;
color: #73B8FF;
}
.receiveNumList .redSpan {
background: #FFD6D5;
color: #FF7874;
}
</style>
<template>
<div class="page-body receiveNumList">
<div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3">
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.Name"
label="资产名称" maxlength="20" />
</div>
<div class="col-3">
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.PropertyNum"
label="资产编码" maxlength="20" />
</div>
<div class="col-3">
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.SerialNumber"
label="序列号" maxlength="20" />
</div>
<div class="col-3">
<q-select v-model="msg.EmployeeId" :options="EmployeeList" filled clearable use-input label="使用人"
option-label="EmployeeName" option-value="Id" ref="EmployeeName" class="col-6" emit-value
map-options @input="resetSearch" @filter="filterFn">
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
未找到相关数据
</q-item-section>
</q-item>
</template>
</q-select>
</div>
<div class="col-3 Sysuser_Date">
<q-field filled>
 <template v-slot:control>
<el-date-picker v-model="dateListOne" @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-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
class="sticky-right-column-table sticky-column-table" separator="none"
:data="data" :columns="columns" row-key="Id">
<template v-slot:body-cell-PropertyStatus="props">
<q-td>
<span class="commonStyle hoverSpan1"></span>
<span class="ColorSpan huangSpan" v-if="props.row.PropertyStatus == 1"></span>
<span class="ColorSpan greenSpan" v-if="props.row.PropertyStatus == 2"></span>
<span class="ColorSpan redSpan" v-if="props.row.PropertyStatus == 3"></span>
<span class="ColorSpan buleSpan" v-if="props.row.PropertyStatus == 4"></span>
<span class="ColorSpan redSpan" v-if="props.row.PropertyStatus == 10"></span>
<span
class="ColorSpan purpleSpan"
v-if="
props.row.PropertyStatus == 5 ||
props.row.PropertyStatus == 7 ||
props.row.PropertyStatus == 9 ||
props.row.PropertyStatus == 6 ||
props.row.PropertyStatus == 8
"
></span
>
<span class="q-ml-md text-blue cursor-pointer" style="color:#2961FE;margin-left:10px;cursor:pointer;" title="">{{props.row.PropertyStatusName}}</span>
</q-td>
</template>
<template v-slot:body-cell-EmName="props">
<div>{{props.row.EmName}}</div>
<div>{{props.row.GetTime}}</div>
</template>
<template v-slot:bottom>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" />
</template>
</q-table>
</div>
</div>
</template>
<script>
import {
propertyGetPageList
} from '../../api/school/index'
import {
queryEmployee
} from '../../api/users/user'; //获取员工
export default {
meta: {
title: "员工管理"
},
components: {
},
data() {
return {
currentUrl: "",
columns: [
{
name: 'PropertyStatus',
required: true,
label: '资产状态',
align: 'left',
field: row => row.PropertyStatus
},
{
name: 'PropertyNum',
label: '资产编码',
field: 'PropertyNum',
align: 'left',
},
{
name: 'Name',
label: '资产名称',
field: 'Name',
align: 'left',
},
{
name: 'CategoryName',
label: '分类名称',
field: 'CategoryName',
align: 'left',
},
{
name: 'BrandName',
label: '品牌名称',
field: 'BrandName',
align: 'left'
},
{
name: 'Money',
label: '金额',
align: 'left',
field: 'Money'
},
{
name: 'BuyDate',
label: '购置日期',
field: 'BuyDate',
align: 'left'
},
{
name: 'UseStatusName',
label: '使用状态',
field: 'UseStatusName',
align: 'left'
},
{
name: 'PropertyModel',
label: '型号',
field: 'PropertyModel',
align: 'left'
},
{
name: 'EmName',
required: true,
label: '使用说明',
align: 'left',
field: row => row.EmName
},
],
data: [],
loading: true,
msg: {
pageIndex: 1,
pageSize: 10,
rowsPerPage: 10,
Name: "",
PropertyNum: "",
SerialNumber: "",
CategoryId: "",
PropertyStatus: "",
EmployeeId: "",
SupplierId: "",
StartTime: "",
EndTime: ""
},
dateListOne:[],//开始时间
selected:[],
isShowEmpInfo: false, //是否显示员工信息
EmployeeList: [], //员工列表
AllemployeeList: [], //所有员工列表
}
},
mounted() {
this.getEmployee();
},
methods: {
resetSearch() {
this.msg.pageIndex = 1;
if(this.msg.Name==null){
this.msg.Name =''
}
if(this.msg.PropertyNum==null){
this.msg.PropertyNum =''
}
if(this.msg.SerialNumber==null){
this.msg.SerialNumber =''
}
this.getManager()
},
changePage(val) {
this.msg.pageIndex = val;
this.getManager();
},
//筛选员工
filterFn(val, update) {
update(() => {
if (val === '') {
this.EmployeeList = JSON.parse(JSON.stringify(this.AllemployeeList))
} else {
const needle = val.toLowerCase();
this.EmployeeList = this.AllemployeeList.filter(v => v.EmployeeName.toLowerCase().indexOf(needle) > -1);
}
})
},
//获取业务员
getEmployee() {
var qMsg = {
Dept_Id: 0
}
queryEmployee(qMsg).then(res => {
if (res.Code == 1) {
this.EmployeeList = res.Data;
this.AllemployeeList = res.Data;
}
}).catch(() => {})
if(this.$route.query){
this.msg.EmployeeId =Number(this.$route.query.id) ;
this.getManager()
}
},
getManager() {
this.loading = true;
if (this.dateListOne && this.dateListOne.length > 0) {
this.msg.StartTime = this.dateListOne[0];
this.msg.EndTime = this.dateListOne[1];
} else {
this.msg.StartEntryTime = '';
this.msg.EndTime = '';
}
propertyGetPageList(this.msg).then(res => {
this.data = res.data.data.pageData;
this.pageCount = res.data.data.pageCount;
this.loading = false;
}).catch(() => {
this.loading = false;
})
},
getEmpInfoInfo(row){
console.log(row)
}
},
}
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
</style>
...@@ -105,6 +105,14 @@ ...@@ -105,6 +105,14 @@
@click="getEmpInfoInfo(props.row)" title="点击查看详情">{{props.value}}</span> @click="getEmpInfoInfo(props.row)" title="点击查看详情">{{props.value}}</span>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-PropertyNumber="props">
<q-td :props="props">
<span class="q-ml-md text-blue cursor-pointer" style="color:#2961FE;margin-left:10px;cursor:pointer;"
@click="goeduyhsl(props.row)" title="点击查看详情">{{props.value}}</span>
</q-td>
</template>
<template v-slot:body-cell-StuSex="props"> <template v-slot:body-cell-StuSex="props">
<q-td :props="props"> <q-td :props="props">
<q-badge :color="props.value==1?'negative':'primary'" :label="props.value==1?'女':'男'" /> <q-badge :color="props.value==1?'negative':'primary'" :label="props.value==1?'女':'男'" />
...@@ -190,7 +198,8 @@ ...@@ -190,7 +198,8 @@
getSchoolDropdown, getSchoolDropdown,
deleteManagerInfo, deleteManagerInfo,
createManagerAccount, createManagerAccount,
GetLeaveStatus GetLeaveStatus,
getEduEmployeeNumList
} from '../../api/school/index' } from '../../api/school/index'
import { import {
BatchResetUserPassword BatchResetUserPassword
...@@ -292,11 +301,19 @@ ...@@ -292,11 +301,19 @@
field: 'DirectSupervisorName', field: 'DirectSupervisorName',
align: 'left', align: 'left',
}, },
{ {
name: 'AccountRemark', name: 'AccountRemark',
label: '行政备注', label: '行政备注',
field: 'AccountRemark', field: 'AccountRemark',
align: 'left', align: 'left',
},
{
name: 'PropertyNumber',
required: true,
label: '使用资产',
align: 'left',
field: row => row.PropertyNumber
}, },
{ {
name: 'optioned', name: 'optioned',
...@@ -545,13 +562,36 @@ ...@@ -545,13 +562,36 @@
this.msg.EndLeaveTime = ''; this.msg.EndLeaveTime = '';
} }
queryManagerPage(this.msg).then(res => { queryManagerPage(this.msg).then(res => {
this.loading = false;
this.data = res.Data.PageData; this.data = res.Data.PageData;
this.pageCount = res.Data.PageCount; this.pageCount = res.Data.PageCount;
let UserIds = [];
this.data .forEach(x=>{
UserIds.push(x.EmAccountId);
x.PropertyNumber=0
})
UserIds = UserIds.join(',')
this.geteduyhzclist(UserIds)
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false;
}) })
}, },
geteduyhzclist(UserIds){
getEduEmployeeNumList({UserIds:UserIds}).then(res => {
this.loading = false;
let data = res.data.data
data.forEach(x=>{
this.data.map(j=>{
if(x.EmployeeId == j.EmAccountId){
j.PropertyNumber = x.PropertyNumber;
return
}
})
});
}).catch(() => {
this.loading = false;
})
},
refreshPage() { refreshPage() {
if (!this.managerOption) { if (!this.managerOption) {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
...@@ -683,6 +723,13 @@ ...@@ -683,6 +723,13 @@
closeEmpInfoForm() { closeEmpInfoForm() {
this.isShowEmpInfo = false; this.isShowEmpInfo = false;
}, },
//点击使用资产跳转到资产列表查看
goeduyhsl(row){
var tempStr = '/school/receiveNumList?id='+row.EmAccountId;
this.$router.push({
path: tempStr
});
}
}, },
} }
......
...@@ -47,6 +47,11 @@ const routes = [{ ...@@ -47,6 +47,11 @@ const routes = [{
component: () => component: () =>
import("pages/school/sysuser.vue") import("pages/school/sysuser.vue")
}, },
{
path: "/school/receiveNumList", //资产的使用列表
component: () =>
import("pages/school/receiveNumList.vue")
},
{ {
path: "/system/menu", //菜单管理 path: "/system/menu", //菜单管理
component: () => component: () =>
......
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