837 lines
37 KiB
HTML
837 lines
37 KiB
HTML
<!--#
|
|
layout("/layouts/platform.html"){
|
|
#-->
|
|
<!--经费报销预约审核-->
|
|
<style>
|
|
.picClass .el-dialog {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.picClass .el-dialog__headerbtn {
|
|
font-size: 70px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.picClass .el-dialog__body {
|
|
padding: 0;
|
|
}
|
|
|
|
.picClass .el-dialog__header {
|
|
padding: 0;
|
|
}
|
|
|
|
.picClass .el-dialog__headerbtn .el-dialog__close {
|
|
color: white;
|
|
}
|
|
|
|
.el-form-item__label {
|
|
font-weight: bold;
|
|
}
|
|
|
|
#diwzstyle .el-form-item__content {
|
|
width: 150px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.el-upload__tip {
|
|
margin-top: 0px;
|
|
color: #c33714;
|
|
|
|
}
|
|
|
|
input[type=file] {
|
|
display: none;
|
|
}
|
|
|
|
.note {
|
|
width: 100%;
|
|
height: 250px;
|
|
}
|
|
|
|
.look .el-dialog__body {
|
|
padding: 5px 15px;
|
|
}
|
|
|
|
.file-down-span:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.el-icon-circle-close {
|
|
color: white;
|
|
}
|
|
|
|
.el-icon-download {
|
|
color: white;
|
|
}
|
|
|
|
.file-down-span {
|
|
background: black;
|
|
opacity: 0.5;
|
|
z-index: 1000;
|
|
width: 100px;
|
|
text-align: center;
|
|
/*position: absolute;*/
|
|
position: relative;
|
|
bottom: -100px;
|
|
|
|
cursor: pointer;
|
|
}
|
|
|
|
.myBtn{
|
|
float: right;
|
|
margin-top: 20px;
|
|
}
|
|
</style>
|
|
<link href="${base!}/assets/platform/plugins/umeditor/themes/default/css/umeditor.min.css" type="text/css"
|
|
rel="stylesheet">
|
|
<script src="${base!}/assets/platform/plugins/umeditor/umeditor.config.js"></script>
|
|
<script src="${base!}/assets/platform/plugins/umeditor/umeditor.js"></script>
|
|
<div id="app" v-cloak>
|
|
|
|
<el-row class="header navbar bg-white shadow">
|
|
|
|
<div class="btn-group tool-button mt5">
|
|
<el-input placeholder="请输入内容" clearable="true" v-model="pageForm.searchKeyword">
|
|
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询" style="width: 120px;">
|
|
<el-option label="职工号" value="bu.loginname"></el-option>
|
|
<el-option label="报销人" value="bu.username"></el-option>
|
|
<el-option label="报销事项" value="rei_matter"></el-option>
|
|
</el-select>
|
|
</el-input>
|
|
</div>
|
|
|
|
<div class="btn-group tool-button mt5">
|
|
<el-date-picker
|
|
format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
v-model="pageForm.startTime"
|
|
type="date"
|
|
placeholder="报销日期选择">
|
|
</el-date-picker>
|
|
至
|
|
<el-date-picker
|
|
format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
v-model="pageForm.endTime"
|
|
type="date"
|
|
placeholder="报销日期选择">
|
|
</el-date-picker>
|
|
|
|
</div>
|
|
|
|
<div class="btn-group tool-button mt5">
|
|
<el-button slot="append" icon="el-icon-search" type="primary" @click="doSearch"></el-button>
|
|
</div>
|
|
|
|
<div class="pull-right offscreen-right mt5">
|
|
<el-button size="medium" @click="find(1)">待审核</el-button>
|
|
<el-button size="medium" @click="find(2)">已审核</el-button>
|
|
</div>
|
|
</el-row>
|
|
|
|
<el-row class="el-table-container">
|
|
<el-table :data="tableData" size="small">
|
|
<el-table-column align="center" header-align="center" label="序号" type="index">
|
|
<template scope="scope"><span>{{scope.$index+(pageForm.pageNumber - 1) * pageForm.pageSize + 1}} </span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column align="center" header-align="center" label="职工号" prop="loginname"></el-table-column>
|
|
<el-table-column align="center" header-align="center" label="报销人" prop="username"></el-table-column>
|
|
<el-table-column align="center" header-align="center" label="报销人单位"
|
|
prop="unit"></el-table-column>
|
|
<el-table-column align="center" header-align="center" label="报销人电话"
|
|
prop="booking_person_phone"></el-table-column>
|
|
<el-table-column align="center" header-align="center" label="报销事项" :show-overflow-tooltip="true"
|
|
prop="rei_matter" min-width="60px;"></el-table-column>
|
|
<el-table-column align="center" header-align="center" label="报销金额" prop="rei_money"></el-table-column>
|
|
<el-table-column align="center" header-align="center" label="报销时间" prop="booking_time"
|
|
:show-overflow-tooltip="true"></el-table-column>
|
|
<el-table-column align="center" header-align="center" label="活动类型" prop="activity_type"></el-table-column>
|
|
<el-table-column sortable align="center" header-align="center" label="报销状态" prop="audit_status">
|
|
<template slot-scope="scope">
|
|
<el-tag type="warning" v-if="scope.row.audit_status == 1">待主席审核</el-tag>
|
|
<el-tag type="danger" v-if="scope.row.audit_status == 2">待财务审核</el-tag>
|
|
<el-tag type="success" v-if="scope.row.audit_status == 3">报销成功</el-tag>
|
|
<el-tag type="info" v-if="scope.row.audit_status == 4">主席审核不通过</el-tag>
|
|
<el-tag type="info" v-if="scope.row.audit_status == 5">财务审核不通过</el-tag>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column align="center" header-align="center" label="操作" width="200px">
|
|
<template slot-scope="scope">
|
|
<el-button size="mini" @click="viewInfo(scope.row)" plain>查看</el-button>
|
|
<el-button
|
|
v-if="(scope.row.audit_status ==2 && identity==2)||(scope.row.audit_status ==2 && identity==3)"
|
|
type="primary" size="mini" @click="shyyInfo(scope.row)" plain>财务审核
|
|
</el-button>
|
|
<el-button
|
|
v-if="(scope.row.audit_status ==1 && identity==1)||(scope.row.audit_status ==1 && identity==3)"
|
|
type="primary" size="mini" @click="shyyInfo(scope.row)" plain>主席审核
|
|
</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-row>
|
|
|
|
<el-row class="el-pagination-container">
|
|
<el-pagination
|
|
@size-change="pageSizeChange"
|
|
@current-change="pageNumberChange"
|
|
:current-page="pageForm.pageNumber"
|
|
:page-sizes="[10, 20, 30, 50]"
|
|
:page-size="pageForm.pageSize"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:total="pageForm.totalCount">
|
|
</el-pagination>
|
|
</el-row>
|
|
|
|
<!--查看提案详情-->
|
|
<el-dialog title="经费报销详情"
|
|
:visible.sync="findViewDialog"
|
|
custom-class="ViewDialogClass"
|
|
:close-on-click-modal="false"
|
|
width="60%">
|
|
<el-tabs tab-position="top" v-model="activeNames">
|
|
<el-tab-pane label="报销基本信息" name="1">
|
|
<el-card>
|
|
<table style="width: 100%" class="tabInfo">
|
|
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="title">报销人</td>
|
|
<td class="content">{{user.username}}</td>
|
|
<td class="title">报销人电话</td>
|
|
<td class="content">{{viewFromData.booking_person_phone}}</td>
|
|
</tr>
|
|
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="title">报销人单位</td>
|
|
<td class="content">{{viewFromData.unit}}</td>
|
|
<td class="title">报销时间</td>
|
|
<td class="content">{{viewFromData.booking_time}}</td>
|
|
</tr>
|
|
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="title">报销金额</td>
|
|
<td class="content">{{viewFromData.rei_money}}</td>
|
|
<td class="title">报销卡号</td>
|
|
<td class="content">{{viewFromData.rei_card_number}}</td>
|
|
</tr>
|
|
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="title">报销事项</td>
|
|
<td class="content" colspan="3">{{viewFromData.rei_matter}}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="title" colspan="4">报销详细说明</td>
|
|
</tr>
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="content" colspan="4" v-if="(typeof(viewFromData.rei_explain)==='undefined')">
|
|
暂无报销详细说明
|
|
</td>
|
|
<td class="tpc" colspan="4" v-if="!(typeof(viewFromData.rei_explain)==='undefined')">
|
|
<div v-html="viewFromData.rei_explain"></div>
|
|
</td>
|
|
</tr>
|
|
<template>
|
|
<tr>
|
|
<td class="title" colspan="4">附件</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="content" colspan="4" style="text-align: left">
|
|
<div style="text-align: left;">
|
|
<div v-for="item in yyfj"
|
|
style="display: inline-block;width: 100px;margin-right:10px">
|
|
<div class="file-down-span"
|
|
@click="dd3s.download(item.filepath,item.filename)">
|
|
<i class="el-icon-download"></i>
|
|
</div>
|
|
<el-image fit="cover" v-if="dd3s.isPic(item.filepath)"
|
|
style="width: 100px;height: 100px;box-shadow: 0 0 5px rgb(200,200,200)"
|
|
:src="'${AppFileDomain!}'+item.filepath"
|
|
@click="dd3s.showpic(item.filepath)">
|
|
</el-image>
|
|
<el-image v-else
|
|
style="width: 100px;height: 100px;box-shadow: 0 0 5px rgb(200,200,200)"
|
|
src="***">
|
|
<div slot="error" class="image-slot"
|
|
style="width: 100%;height: 100%; display:flex;align-items: center;text-align: center">
|
|
<span style="font-size: 12px;color: rgb(180,180,180);width: 100%;text-align: center;overflow: hidden;padding: 0 10px;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical">{{item.filename}}</span>
|
|
</div>
|
|
</el-image>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</template>
|
|
</table>
|
|
</el-card>
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="主席审核情况" name="2">
|
|
<el-card>
|
|
<table style="width: 100%" class="tabInfo">
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="title">审核人</td>
|
|
<td class="title" colspan="3">审核意见</td>
|
|
</tr>
|
|
<tr v-if="viewFromData.chairman_id"
|
|
style="border: 1px solid rgb(220,220,220);height: 120px">
|
|
<td class="content">
|
|
{{viewFromData.chname}}<br>
|
|
</td>
|
|
<td class="content" colspan="3">
|
|
<div class="textarea" style="text-align: left">
|
|
{{viewFromData.chairman_opinion}}
|
|
</div>
|
|
<div style="text-align: right;width: 100%;">
|
|
<span>审核时间:{{viewFromData.chairman_time}}</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr v-if="!viewFromData.chairman_id"
|
|
style="border: 1px solid rgb(220,220,220);height: 30px">
|
|
<td class="content" colspan="4">暂无主席审核数据</td>
|
|
</tr>
|
|
</table>
|
|
</el-card>
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="财务办审核情况" name="3">
|
|
<el-card>
|
|
<table style="width: 100%" class="tabInfo">
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="title">审核人</td>
|
|
<td class="title" colspan="3">审核意见</td>
|
|
</tr>
|
|
<tr v-if="viewFromData.finance_id"
|
|
style="border: 1px solid rgb(220,220,220);height: 120px">
|
|
<td class="content">
|
|
{{viewFromData.finame}}
|
|
</td>
|
|
<td class="content" colspan="3">
|
|
<div class="textarea" style="text-align: left">
|
|
{{viewFromData.finance_opinion}}
|
|
</div>
|
|
<div style="text-align: right;width: 100%;">
|
|
<span>审核时间:{{viewFromData.finance_time}}</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr v-if="!viewFromData.finance_id"
|
|
style="border: 1px solid rgb(220,220,220);height: 30px">
|
|
<td class="content" colspan="4">暂无财务审核数据</td>
|
|
</tr>
|
|
</table>
|
|
</el-card>
|
|
</el-tab-pane>
|
|
|
|
</el-tabs>
|
|
</el-dialog>
|
|
|
|
<!--查看提案详情 审核-->
|
|
<el-dialog title="经费报销审核"
|
|
:visible.sync="shViewDialog"
|
|
custom-class="ViewDialogClass"
|
|
:close-on-click-modal="false"
|
|
width="60%">
|
|
|
|
<el-tabs tab-position="top" v-model="activeNames">
|
|
<el-tab-pane label="报销基本信息" name="1">
|
|
<el-card>
|
|
<table style="width: 100%" class="tabInfo">
|
|
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="title">报销人</td>
|
|
<td class="content">{{user.username}}</td>
|
|
<td class="title">报销人电话</td>
|
|
<td class="content">{{viewFromData.booking_person_phone}}</td>
|
|
</tr>
|
|
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="title">报销人单位</td>
|
|
<td class="content">{{viewFromData.unit}}</td>
|
|
<td class="title">报销时间</td>
|
|
<td class="content">{{viewFromData.booking_time}}</td>
|
|
</tr>
|
|
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="title">报销金额</td>
|
|
<td class="content">{{viewFromData.rei_money}}</td>
|
|
<td class="title">报销卡号</td>
|
|
<td class="content">{{viewFromData.rei_card_number}}</td>
|
|
</tr>
|
|
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="title">报销事项</td>
|
|
<td class="content" colspan="3">{{viewFromData.rei_matter}}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="title" colspan="4">报销详细说明</td>
|
|
</tr>
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="content" colspan="4" v-if="(typeof(viewFromData.rei_explain)==='undefined')">
|
|
暂无报销详细说明
|
|
</td>
|
|
<td class="tpc" colspan="4" v-if="!(typeof(viewFromData.rei_explain)==='undefined')">
|
|
<div v-html="viewFromData.rei_explain"></div>
|
|
</td>
|
|
</tr>
|
|
<template>
|
|
<tr>
|
|
<td class="title" colspan="4">附件</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="content" colspan="4" style="text-align: left">
|
|
<div style="text-align: left;">
|
|
<div v-for="item in yyfj"
|
|
style="display: inline-block;width: 100px;margin-right:10px">
|
|
<div class="file-down-span"
|
|
@click="dd3s.download(item.filepath,item.filename)">
|
|
<i class="el-icon-download"></i>
|
|
</div>
|
|
<el-image fit="cover" v-if="dd3s.isPic(item.filepath)"
|
|
style="width: 100px;height: 100px;box-shadow: 0 0 5px rgb(200,200,200)"
|
|
:src="'${AppFileDomain!}'+item.filepath"
|
|
@click="dd3s.showpic(item.filepath)">
|
|
</el-image>
|
|
<el-image v-else
|
|
style="width: 100px;height: 100px;box-shadow: 0 0 5px rgb(200,200,200)"
|
|
src="***">
|
|
<div slot="error" class="image-slot"
|
|
style="width: 100%;height: 100%; display:flex;align-items: center;text-align: center">
|
|
<span style="font-size: 12px;color: rgb(180,180,180);width: 100%;text-align: center;overflow: hidden;padding: 0 10px;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical">{{item.filename}}</span>
|
|
</div>
|
|
</el-image>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</template>
|
|
</table>
|
|
</el-card>
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="财务办审核" name="2" v-if="identity==2">
|
|
<el-card>
|
|
<div>
|
|
<table style="width: 100%" class="tabInfo">
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="title">审核人</td>
|
|
<td class="content" colspan="3">审核意见</td>
|
|
</tr>
|
|
<tr style="border: 1px solid rgb(220,220,220);height: 120px">
|
|
<td class="title">
|
|
{{user.username}}<br>
|
|
</td>
|
|
<td class="content" colspan="3">
|
|
<el-input
|
|
style="width: 100%;"
|
|
:autosize="{ minRows: 5, maxRows: 5}"
|
|
v-model="editFormData.finance_opinion"
|
|
resize="none"
|
|
type="textarea"
|
|
placeholder="请输入财务办审核意见"
|
|
>
|
|
</el-input>
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<span class="dialog-footer myBtn">
|
|
<el-button type="danger" @click="submitSh(2,viewFromData.id)">不通过</el-button>
|
|
<el-button type="success" @click="submitSh(1,viewFromData.id)">通过</el-button>
|
|
</span>
|
|
</el-card>
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="财务办审核情况" name="3" v-if="identity==1">
|
|
<el-card>
|
|
<table style="width: 100%" class="tabInfo">
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="title">审核人</td>
|
|
<td class="title" colspan="3">审核意见</td>
|
|
</tr>
|
|
<tr v-if="viewFromData.finance_id"
|
|
style="border: 1px solid rgb(220,220,220);height: 120px">
|
|
<td class="content">
|
|
{{viewFromData.finame}}
|
|
</td>
|
|
<td class="content" colspan="3">
|
|
<div class="textarea" style="text-align: left">
|
|
{{viewFromData.finance_opinion}}
|
|
</div>
|
|
<div style="text-align: right;width: 100%;">
|
|
<span>审核时间:{{viewFromData.finance_time}}</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr v-if="!viewFromData.finance_id"
|
|
style="border: 1px solid rgb(220,220,220);height: 30px">
|
|
<td class="content" colspan="4">暂无财务审核数据</td>
|
|
</tr>
|
|
</table>
|
|
</el-card>
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="主席审核情况" name="4" v-if="identity==2">
|
|
<el-card>
|
|
<table style="width: 100%" class="tabInfo">
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="title">审核人</td>
|
|
<td class="title" colspan="3">审核意见</td>
|
|
</tr>
|
|
<tr v-if="viewFromData.chairman_id"
|
|
style="border: 1px solid rgb(220,220,220);height: 120px">
|
|
<td class="content">
|
|
{{viewFromData.chname}}<br>
|
|
</td>
|
|
<td class="content" colspan="3">
|
|
<div class="textarea" style="text-align: left">
|
|
{{viewFromData.chairman_opinion}}
|
|
</div>
|
|
<div style="text-align: right;width: 100%;">
|
|
<span>审核时间:{{viewFromData.chairman_time}}</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr v-if="!viewFromData.chairman_id"
|
|
style="border: 1px solid rgb(220,220,220);height: 30px">
|
|
<td class="content" colspan="4">暂无主席审核数据</td>
|
|
</tr>
|
|
</table>
|
|
</el-card>
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="主席审核" name="5" v-if="identity==1||identity==3">
|
|
<el-card>
|
|
<table style="width: 100%" class="tabInfo">
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="title">审核人</td>
|
|
<td class="title" colspan="3">审核意见</td>
|
|
</tr>
|
|
<tr style="border: 1px solid rgb(220,220,220);height: 120px">
|
|
<td class="content">
|
|
{{user.username}}<br>
|
|
</td>
|
|
<td class="content" colspan="3">
|
|
<el-input
|
|
style="width: 100%;"
|
|
:autosize="{ minRows: 5, maxRows: 5}"
|
|
v-model="editFormData.chairman_opinion"
|
|
resize="none"
|
|
type="textarea"
|
|
placeholder="请输入主席审核意见"
|
|
>
|
|
</el-input>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</el-card>
|
|
<span class="dialog-footer myBtn">
|
|
<el-button type="danger" @click="submitSh(2,viewFromData.id)">不通过</el-button>
|
|
<el-button type="success" @click="submitSh(1,viewFromData.id)">通过</el-button>
|
|
</span>
|
|
</el-tab-pane>
|
|
|
|
</el-tabs>
|
|
</el-dialog>
|
|
|
|
<!--查看文件模态框-->
|
|
<el-dialog title="预览附件"
|
|
:visible.sync="ViewFileDialog"
|
|
custom-class="ViewDialogClass"
|
|
width="50%" top="5%">
|
|
<div>
|
|
<a id="viewerPlaceHolder" style="width: 100%;height: 650px;display: block;"></a>
|
|
</div>
|
|
</el-dialog>
|
|
|
|
<!--图片模态框-->
|
|
<el-dialog :visible.sync="showPicDialog" width="35%" fullscreen="true" class="picClass" top="3%">
|
|
<img :src="showPic"
|
|
style="max-width: 800px;min-width: 400px;max-height:750px;min-height: 400px;display: block;margin: 3% auto"/>
|
|
</el-dialog>
|
|
|
|
</div>
|
|
<script>
|
|
new Vue({
|
|
el: "#app",
|
|
data: function () {
|
|
return {
|
|
cdkd: "240px",
|
|
flag: "",
|
|
id: "",
|
|
fileList: [],
|
|
user: [],
|
|
identity: "",
|
|
fileListLength: "", //记录upload里的文件数量 如果等于空 就不调用upload的submit方法 哈哈哈
|
|
shViewDialog: false, //审核预约模态框
|
|
editDialog: false,
|
|
findViewDialog: false,//查看详细模态框
|
|
editFormData: {
|
|
id: "",
|
|
finance_opinion: "",
|
|
chairman_opinion: "",
|
|
},
|
|
<!--table-->
|
|
tableData: [], //表格数据
|
|
pageForm: {
|
|
pageNumber: "1",
|
|
pageSize: "10",
|
|
totalCount: "",
|
|
searchKeyword: "",
|
|
searchName: "",
|
|
startTime: "",
|
|
endTime: "",
|
|
saerchsfsh: ""
|
|
|
|
},
|
|
ViewDialog: false,
|
|
ViewFileDialog: false,
|
|
activeNames: "1",
|
|
ViewData: {},
|
|
Fjurl: "",
|
|
viewFromData: [],
|
|
yyfj: [],
|
|
audit_status: "",
|
|
|
|
<!--修改提案-->
|
|
FileListLengthAAA: 0, //已上传的文件数量 默认 000000000
|
|
FileListAAAUid: [], //已上传文件的uid 记录一下 提交的时候做判断
|
|
DelFileUid: "", //待删除的文件id
|
|
FileListBBBuid: [], //当前upload控件里的文件uid
|
|
FileListByZxy: 0, //用户添加的文件个数
|
|
showPicDialog: false,
|
|
showPic: "",
|
|
picType: "bmp,jpg,jpeg,png,gif",
|
|
}
|
|
},
|
|
methods: {
|
|
//加载个人预约数据
|
|
pageData () {
|
|
let self = this;
|
|
sublime.showLoadingbar($(".main-content"));
|
|
$.post(base + "/platform/jf/jfbx/bxsh/data", self.pageForm, function (data) {
|
|
if (data.code == 0) {
|
|
self.tableData = data.data.bxShList.list;
|
|
self.pageForm.totalCount = data.data.bxShList.totalCount;
|
|
self.user = data.data.user;
|
|
self.identity = data.data.identity;
|
|
} else {
|
|
self.$message({
|
|
message: data.msg,
|
|
type: "error"
|
|
});
|
|
}
|
|
}, "json");
|
|
sublime.closeLoadingbar($(".main-content"));
|
|
},
|
|
doSearch () {
|
|
this.pageForm.pageNumber = 1;
|
|
this.pageForm.saerchsfsh = "";
|
|
this.pageData();
|
|
},
|
|
find (sfsh) {
|
|
let self = this;
|
|
self.pageForm.pageNumber = 1;
|
|
self.pageForm.saerchsfsh = sfsh;
|
|
self.pageData();
|
|
},
|
|
pageSizeChange (val) {
|
|
this.pageForm.pageSize = val;
|
|
this.pageData();
|
|
},
|
|
pageNumberChange (val) {
|
|
this.pageForm.pageNumber = val;
|
|
this.pageData();
|
|
},
|
|
|
|
/**
|
|
* 查看信息
|
|
* @param scope
|
|
*/
|
|
viewInfo: function (scope) {
|
|
let self = this;
|
|
self.viewFromData = scope;
|
|
self.yyfj = [];
|
|
//附件信息
|
|
$.post(base + "/platform/jf/jfbx/bxyy/viewFjInfoById", {booking_id: scope.id}, function (data) {
|
|
if (data.code == 0) {
|
|
self.yyfj = data.data;
|
|
} else {
|
|
self.$message.error("附件信息获取失败!");
|
|
}
|
|
}, "json");
|
|
this.activeNames = "1"
|
|
this.findViewDialog = true;
|
|
},
|
|
/**
|
|
* 审核信息
|
|
* @param scope
|
|
*/
|
|
shyyInfo (scope) {
|
|
let self = this;
|
|
self.viewFromData = scope;
|
|
this.audit_status = scope.audit_status
|
|
self.yyfj = [];
|
|
$.post(base + "/platform/jf/jfbx/bxyy/viewFjInfoById", {booking_id: scope.id}, function (data) {
|
|
if (data.code == 0) {
|
|
self.yyfj = data.data;
|
|
} else {
|
|
self.$message.error("附件信息获取失败!");
|
|
}
|
|
}, "json");
|
|
if (self.identity == 1||self.identity == 3) {
|
|
this.activeNames = "5";
|
|
} else if (self.identity == 2) {
|
|
this.activeNames = "2";
|
|
}
|
|
this.shViewDialog = true;
|
|
},
|
|
//提交审核
|
|
submitSh: function (zt, id) {
|
|
//主席审核
|
|
if (this.identity == 1) {
|
|
this.zxSh(zt, id)
|
|
}
|
|
//财务审核
|
|
if (this.identity == 2) {
|
|
this.cwSh(zt, id)
|
|
}
|
|
//超管审核
|
|
if (this.identity == 3) {
|
|
if (this.audit_status == 1) {
|
|
this.zxSh(zt, id)
|
|
} else if (this.audit_status == 2) {
|
|
this.cwSh(zt, id)
|
|
}
|
|
}
|
|
},
|
|
|
|
cwSh(zt, id) {
|
|
let audit_status = 0;
|
|
//不通过
|
|
if (zt == 2) {
|
|
if (!this.editFormData.finance_opinion) {
|
|
this.$message({
|
|
message: "审核意见不能为空!",
|
|
type: 'error'
|
|
});
|
|
return
|
|
}
|
|
audit_status = 5;
|
|
//通过
|
|
} else if (zt == 1) {
|
|
if (!this.editFormData.finance_opinion) {
|
|
this.editFormData.finance_opinion = "审核通过"
|
|
}
|
|
audit_status = 3;
|
|
}
|
|
$.post(base + "/platform/jf/jfbx/bxsh/bxSh", {
|
|
audit_status: audit_status,
|
|
opinion: this.editFormData.finance_opinion,
|
|
id: id,
|
|
identity: 2
|
|
}, (data) => {
|
|
if (data.code == 0) {
|
|
this.$message({
|
|
message: data.msg,
|
|
type: 'success'
|
|
});
|
|
this.pageData();
|
|
this.shViewDialog = false;
|
|
} else {
|
|
this.$message({
|
|
message: data.msg,
|
|
type: 'error'
|
|
});
|
|
}
|
|
});
|
|
},
|
|
zxSh(zt, id) {
|
|
let audit_status = 0;
|
|
if (zt == 2) { //不通过
|
|
if (!this.editFormData.chairman_opinion) {
|
|
this.$message({
|
|
message: "审核意见不能为空!",
|
|
type: 'error'
|
|
});
|
|
return
|
|
}
|
|
audit_status = 4;
|
|
|
|
} else if (zt == 1) { //通过
|
|
if (!this.editFormData.chairman_opinion) {
|
|
this.editFormData.chairman_opinion = "审核通过"
|
|
}
|
|
audit_status = 2;
|
|
}
|
|
$.post(base + "/platform/jf/jfbx/bxsh/bxSh", {
|
|
audit_status: audit_status,
|
|
opinion: this.editFormData.chairman_opinion,
|
|
id: id,
|
|
identity: 1
|
|
}, (data) => {
|
|
if (data.code == 0) {
|
|
this.$message({
|
|
message: data.msg,
|
|
type: 'success'
|
|
});
|
|
this.pageData();
|
|
this.shViewDialog = false;
|
|
} else {
|
|
this.$message({
|
|
message: data.msg,
|
|
type: 'error'
|
|
});
|
|
}
|
|
});
|
|
},
|
|
|
|
//预览附件(包括图片)
|
|
viewFileShow: function (scope) {
|
|
let hzm = scope.filepath.substring(scope.filepath.lastIndexOf(".") + 1).toLowerCase()
|
|
if (hzm === 'jpg' || hzm === 'png') {
|
|
dd3s.showpic(scope.filepath)
|
|
} else {
|
|
dd3s.preview(scope.filepath, scope.id)
|
|
}
|
|
},
|
|
download: function (scope) {
|
|
let self = this;
|
|
if (scope.filepath != null) {
|
|
dd3s.download(scope.filepath, scope.filename)
|
|
} else {
|
|
self.$message({
|
|
message: "暂时没有可下载的文件!",
|
|
type: 'warning'
|
|
});
|
|
}
|
|
},
|
|
},
|
|
created: function () {
|
|
$(".gallery-loader").fadeOut();
|
|
this.pageData();
|
|
|
|
},
|
|
});
|
|
</script>
|
|
<!--#
|
|
}
|
|
#-->
|