|
|
@@ -1,163 +1,167 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <el-breadcrumb class="heading">
|
|
|
- <el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
|
|
|
- <el-breadcrumb-item :to="{ path: '/oilsupplier/supplierappend/techlist' }">技术服务类列表</el-breadcrumb-item>
|
|
|
- </el-breadcrumb>
|
|
|
- <el-card class="box-card" style="height: calc(100vh - 115px);">
|
|
|
- <div slot="header">
|
|
|
- <span>
|
|
|
- <i class="icon icon-table2"></i> 技术服务类列表
|
|
|
- </span>
|
|
|
- <span style="float: right;">
|
|
|
- <router-link :to="'/oilsupplier/supplierappend/3/techdataopera'">
|
|
|
- <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;">添加</el-button>
|
|
|
- </router-link>
|
|
|
- </span>
|
|
|
- <el-form ref="form" :inline="true" style="float: right; margin-top: -10px">
|
|
|
- <el-form-item label="上报时间">
|
|
|
- <el-date-picker size="mini" style="width: 220px" v-model="CreateOn" type="daterange" range-separator="至"
|
|
|
- start-placeholder="生成日期" end-placeholder="结束日期"></el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-dropdown split-button type="primary" size="mini" @click="handleSearch" @command="searchCommand">
|
|
|
- 查询
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item command="search">高级查询</el-dropdown-item>
|
|
|
- <el-dropdown-item command="clear">查询重置</el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- </div>
|
|
|
- <el-table :data="entityList" border height="calc(100vh - 243px)" size="mini" style="width: 100%" @sort-change="orderby">
|
|
|
- <el-table-column label="操作" min-width="150" align="center" fixed="right">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button type="primary" title="编辑" size="mini" plain @click="editData(scope.row)">打开</el-button>
|
|
|
- <el-dropdown @command="MoreCmdClick">
|
|
|
- <el-button size="mini" type="primary" plain style="margin-left:5px;">
|
|
|
- 更多<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
- </el-button>
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item :command="GetCommand('History', scope.row)">审批流程</el-dropdown-item>
|
|
|
- <el-dropdown-item :command="GetCommand('Delete', scope.row.Id)" :disabled="scope.row.Status != 0"
|
|
|
- divided>
|
|
|
- 删除数据</el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
- <!-- <el-button type="primary" title="删除" size="mini" plain @click="deleteData(scope.row.Id)">删除</el-button> -->
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="ApplyDate" label="申请日期" sortable min-width="130" align="center" show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ jstimehandle(scope.row.ApplyDate) }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="SupplierName" label="供方名称" sortable min-width="130" align="center"
|
|
|
- show-overflow-tooltip></el-table-column>
|
|
|
- <!-- <el-table-column prop="RecUnitId" label="推荐单位编码" sortable min-width="130" align="center" show-overflow-tooltip></el-table-column> -->
|
|
|
- <el-table-column prop="AppendType" label="增项类别" sortable width="150" align="center" show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ checkAppendType(scope.row.AppendType) }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <!-- <el-table-column prop="DenyReason" label="退回原因" sortable min-width="130" align="center" show-overflow-tooltip>
|
|
|
+ <div v-if="IsCompanyUser == 0 || (IsCompanyUser == 1 && suplen > 0)">
|
|
|
+ <el-breadcrumb class="heading">
|
|
|
+ <el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
|
|
|
+ <el-breadcrumb-item :to="{ path: '/oilsupplier/supplierappend/techlist' }">技术服务类列表</el-breadcrumb-item>
|
|
|
+ </el-breadcrumb>
|
|
|
+ <el-card class="box-card" style="height: calc(100vh - 115px);">
|
|
|
+ <div slot="header">
|
|
|
+ <span>
|
|
|
+ <i class="icon icon-table2"></i> 技术服务类列表
|
|
|
+ </span>
|
|
|
+ <span style="float: right;">
|
|
|
+ <router-link :to="'/oilsupplier/supplierappend/3/techdataopera'">
|
|
|
+ <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;">添加</el-button>
|
|
|
+ </router-link>
|
|
|
+ </span>
|
|
|
+ <el-form ref="form" :inline="true" style="float: right; margin-top: -10px">
|
|
|
+ <el-form-item label="上报时间">
|
|
|
+ <el-date-picker size="mini" style="width: 220px" v-model="CreateOn" type="daterange" range-separator="至"
|
|
|
+ start-placeholder="生成日期" end-placeholder="结束日期"></el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-dropdown split-button type="primary" size="mini" @click="handleSearch" @command="searchCommand">
|
|
|
+ 查询
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item command="search">高级查询</el-dropdown-item>
|
|
|
+ <el-dropdown-item command="clear">查询重置</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <el-table :data="entityList" border height="calc(100vh - 243px)" size="mini" style="width: 100%"
|
|
|
+ @sort-change="orderby">
|
|
|
+ <el-table-column label="操作" min-width="150" align="center" fixed="right">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="primary" title="编辑" size="mini" plain @click="editData(scope.row)">打开</el-button>
|
|
|
+ <el-dropdown @command="MoreCmdClick">
|
|
|
+ <el-button size="mini" type="primary" plain style="margin-left:5px;">
|
|
|
+ 更多<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
+ </el-button>
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item :command="GetCommand('History', scope.row)">审批流程</el-dropdown-item>
|
|
|
+ <el-dropdown-item :command="GetCommand('Delete', scope.row.Id)" :disabled="scope.row.Status != 0"
|
|
|
+ divided>
|
|
|
+ 删除数据</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ <!-- <el-button type="primary" title="删除" size="mini" plain @click="deleteData(scope.row.Id)">删除</el-button> -->
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="ApplyDate" label="申请日期" sortable min-width="130" align="center" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ jstimehandle(scope.row.ApplyDate) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="SupplierName" label="供方名称" sortable min-width="130" align="center"
|
|
|
+ show-overflow-tooltip></el-table-column>
|
|
|
+ <!-- <el-table-column prop="RecUnitId" label="推荐单位编码" sortable min-width="130" align="center" show-overflow-tooltip></el-table-column> -->
|
|
|
+ <el-table-column prop="AppendType" label="增项类别" sortable width="150" align="center" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ checkAppendType(scope.row.AppendType) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- <el-table-column prop="DenyReason" label="退回原因" sortable min-width="130" align="center" show-overflow-tooltip>
|
|
|
</el-table-column> -->
|
|
|
- <el-table-column prop="AuditDate" label="审核日期" sortable min-width="130" align="center" show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ jstimehandle(scope.row.AuditDate) }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="Status" label="状态标识" sortable min-width="130" align="center" show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">
|
|
|
- <span v-if="scope.row.Status=='0' || scope.row.Status==''" style="color:#E6A23C">待提交</span>
|
|
|
- <span v-if="scope.row.Status=='1'" style="color:#E6A23C">待初审</span>
|
|
|
- <span v-if="scope.row.Status=='-1'" style="color:#F56C6C">初审未通过</span>
|
|
|
- <span v-if="scope.row.Status=='2'" style="color:#E6A23C">待复审</span>
|
|
|
- <span v-if="scope.row.Status=='-2'" style="color:#F56C6C">复审未通过</span>
|
|
|
- <span v-if="scope.row.Status=='3'" style="color:#E6A23C">待专业处室分办</span>
|
|
|
- <span v-if="scope.row.Status=='4'" style="color:#E6A23C">待专业处室审批</span>
|
|
|
- <span v-if="scope.row.Status=='-4'" style="color:#F56C6C">专业处室审批未通过</span>
|
|
|
- <span v-if="scope.row.Status=='5'" style="color:#E6A23C">待集中评审</span>
|
|
|
- <span v-if="scope.row.Status=='-5'" style="color:#F56C6C">集中评审未通过</span>
|
|
|
- <span v-if="scope.row.Status=='6'" style="color:#E6A23C">待缴费</span>
|
|
|
- <span v-if="scope.row.Status=='7'" style="color:#E6A23C">待入库</span>
|
|
|
- <span v-if="scope.row.Status=='8'" style="color:#67C23A">已入库</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="Remark" label="备注" sortable min-width="130" align="center" show-overflow-tooltip>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column prop="AuditDate" label="审核日期" sortable min-width="130" align="center" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ jstimehandle(scope.row.AuditDate) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="Status" label="状态标识" sortable min-width="130" align="center" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.Status=='0' || scope.row.Status==''" style="color:#E6A23C">待提交</span>
|
|
|
+ <span v-if="scope.row.Status=='1'" style="color:#E6A23C">待初审</span>
|
|
|
+ <span v-if="scope.row.Status=='-1'" style="color:#F56C6C">初审未通过</span>
|
|
|
+ <span v-if="scope.row.Status=='2'" style="color:#E6A23C">待复审</span>
|
|
|
+ <span v-if="scope.row.Status=='-2'" style="color:#F56C6C">复审未通过</span>
|
|
|
+ <span v-if="scope.row.Status=='3'" style="color:#E6A23C">待专业处室分办</span>
|
|
|
+ <span v-if="scope.row.Status=='4'" style="color:#E6A23C">待专业处室审批</span>
|
|
|
+ <span v-if="scope.row.Status=='-4'" style="color:#F56C6C">专业处室审批未通过</span>
|
|
|
+ <span v-if="scope.row.Status=='5'" style="color:#E6A23C">待集中评审</span>
|
|
|
+ <span v-if="scope.row.Status=='-5'" style="color:#F56C6C">集中评审未通过</span>
|
|
|
+ <span v-if="scope.row.Status=='6'" style="color:#E6A23C">待缴费</span>
|
|
|
+ <span v-if="scope.row.Status=='7'" style="color:#E6A23C">待入库</span>
|
|
|
+ <span v-if="scope.row.Status=='8'" style="color:#67C23A">已入库</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="Remark" label="备注" sortable min-width="130" align="center" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
|
|
|
- </el-table>
|
|
|
- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
|
- :page-sizes="[10, 15, 20, 25]" :page-size="size" layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="currentItemCount">
|
|
|
- </el-pagination>
|
|
|
- </el-card>
|
|
|
+ </el-table>
|
|
|
+ <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
|
+ :page-sizes="[10, 15, 20, 25]" :page-size="size" layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="currentItemCount">
|
|
|
+ </el-pagination>
|
|
|
+ </el-card>
|
|
|
|
|
|
- <el-dialog title="高级查询" :visible.sync="dialogVisible" width="720px">
|
|
|
- <el-form ref="advancedsearchForm" label-width="110px">
|
|
|
- <el-row>
|
|
|
+ <el-dialog title="高级查询" :visible.sync="dialogVisible" width="720px">
|
|
|
+ <el-form ref="advancedsearchForm" label-width="110px">
|
|
|
+ <el-row>
|
|
|
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="时间范围">
|
|
|
- <el-date-picker size="mini" v-model="CreateOn" type="daterange" style="width:100%" range-separator="至"
|
|
|
- start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="时间范围">
|
|
|
+ <el-date-picker size="mini" v-model="CreateOn" type="daterange" style="width:100%" range-separator="至"
|
|
|
+ start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="申请日期">
|
|
|
- <el-input size="mini" v-model="searchForm.ApplyDate" style="width:100%" placeholder="请输入"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="申请日期">
|
|
|
+ <el-input size="mini" v-model="searchForm.ApplyDate" style="width:100%" placeholder="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="推荐单位名称">
|
|
|
- <el-input size="mini" v-model="searchForm.RecUnitName" style="width:100%" placeholder="请输入"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="推荐单位名称">
|
|
|
+ <el-input size="mini" v-model="searchForm.RecUnitName" style="width:100%" placeholder="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="推荐单位编码">
|
|
|
- <el-input size="mini" v-model="searchForm.RecUnitId" style="width:100%" placeholder="请输入"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="推荐单位编码">
|
|
|
+ <el-input size="mini" v-model="searchForm.RecUnitId" style="width:100%" placeholder="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="退回原因">
|
|
|
- <el-input size="mini" v-model="searchForm.DenyReason" style="width:100%" placeholder="请输入"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="退回原因">
|
|
|
+ <el-input size="mini" v-model="searchForm.DenyReason" style="width:100%" placeholder="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="审核日期">
|
|
|
- <el-input size="mini" v-model="searchForm.AuditDate" style="width:100%" placeholder="请输入"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="审核日期">
|
|
|
+ <el-input size="mini" v-model="searchForm.AuditDate" style="width:100%" placeholder="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="状态标识">
|
|
|
- <el-input size="mini" v-model="searchForm.Status" style="width:100%" placeholder="请输入"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="状态标识">
|
|
|
+ <el-input size="mini" v-model="searchForm.Status" style="width:100%" placeholder="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="备注">
|
|
|
- <el-input size="mini" v-model="searchForm.Remark" style="width:100%" placeholder="请输入"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="备注">
|
|
|
+ <el-input size="mini" v-model="searchForm.Remark" style="width:100%" placeholder="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button size="mini" @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button size="mini" type="primary" @click="handleSearch">查 询</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
- <el-dialog title="审核历史查看" :visible.sync="historyVisible" width="900px">
|
|
|
- <wf-history ref="WfHistory" :entryinfo="entrydetail"></wf-history>
|
|
|
- </el-dialog>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="mini" @click="dialogVisible = false">取 消</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="handleSearch">查 询</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog title="审核历史查看" :visible.sync="historyVisible" width="900px">
|
|
|
+ <wf-history ref="WfHistory" :entryinfo="entrydetail"></wf-history>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+ <page401 v-if="IsCompanyUser == 1 && suplen == 0"></page401>
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -167,10 +171,12 @@
|
|
|
} from 'vuex';
|
|
|
import WfHistory from '@/components/workflow/wfhistory.vue'
|
|
|
import api from '@/api/oilsupplier/supplierappend'
|
|
|
+ import page401 from '@/components/error/401.vue'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
WfHistory,
|
|
|
+ page401
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters({
|
|
|
@@ -231,13 +237,18 @@
|
|
|
label: 'Name',
|
|
|
children: 'children'
|
|
|
},
|
|
|
+ IsCompanyUser: 0,
|
|
|
+ supplierList: [],
|
|
|
+ suplen: 0,
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
|
|
|
//查询条件初始值备份
|
|
|
Object.assign(this.searchFormReset, this.searchForm)
|
|
|
//查询列表
|
|
|
this.initData()
|
|
|
+ this.getSupplierList()
|
|
|
},
|
|
|
methods: {
|
|
|
initData() {
|
|
|
@@ -262,13 +273,26 @@
|
|
|
//访问接口
|
|
|
api.getList(myCreateOn.join(','), params, this.$axios).then(res => {
|
|
|
this.entityList = res.data.items
|
|
|
- console.log("--this.entityList---",this.entityList)
|
|
|
+ console.log("--this.entityList---", this.entityList)
|
|
|
this.currentItemCount = res.data.currentItemCount
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
|
|
|
+ getSupplierList() {
|
|
|
+ let _this = this
|
|
|
+ _this.supplierList = []
|
|
|
+ _this.$axios.get('/suppliercertappend/getsupplier/' + '03', {})
|
|
|
+ .then(res => {
|
|
|
+ _this.supplierList = res.data
|
|
|
+ _this.suplen = _this.supplierList.length
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
//获取技术服务类层级列表
|
|
|
getTechTreeList() {
|
|
|
let _this = this
|