|
@@ -39,8 +39,36 @@
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</div>
|
|
</div>
|
|
|
<el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
|
|
<el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
|
|
|
|
|
+ <el-tab-pane label="综合" name="all">
|
|
|
|
|
+ <el-table :data="entityListAll" id="rebateSetTableAll" size="mini" border style="width: 100%" @sort-change="orderby" height="calc(100vh - 330px)">
|
|
|
|
|
+ <el-table-column align="center" label="公司名称" prop="SupplierName"></el-table-column>
|
|
|
|
|
+ <el-table-column align="center" label="类别" prop="Type">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ {{typeStr(scope.row.Type)}}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column align="center" label="类型" prop="SupplierTypeCode">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ {{transferStr(scope.row.SupplierTypeCode)}}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column align="center" label="当前状态" prop="Status">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ {{statusStr(scope.row.Status)}}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column align="center" label="操作">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-button type="text" title="查看流程" icon="el-icon-edit" size="mini" @click="openwfhistory(scope.row)">查看流程</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ <el-pagination @size-change="handleSizeChangeAll":current-page="currentPage"
|
|
|
|
|
+ :page-sizes="[40, 80, 160]" :page-size="sizeAll" layout="total, sizes" :total="currentItemCount">
|
|
|
|
|
+ </el-pagination>
|
|
|
|
|
+ </el-tab-pane>
|
|
|
<el-tab-pane label="准入" name="first">
|
|
<el-tab-pane label="准入" name="first">
|
|
|
- <el-table :data="entityList" id="rebateSetTable0" size="mini" border style="width: 100%" @sort-change="orderby">
|
|
|
|
|
|
|
+ <el-table :data="entityList" id="rebateSetTable0" size="mini" border style="width: 100%" @sort-change="orderby" height="calc(100vh - 330px)">
|
|
|
<el-table-column align="center" label="公司名称" prop="SupplierName"></el-table-column>
|
|
<el-table-column align="center" label="公司名称" prop="SupplierName"></el-table-column>
|
|
|
<el-table-column align="center" label="类型" prop="SupplierTypeCode">
|
|
<el-table-column align="center" label="类型" prop="SupplierTypeCode">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -63,11 +91,11 @@
|
|
|
</el-pagination>
|
|
</el-pagination>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="增项" name="second">
|
|
<el-tab-pane label="增项" name="second">
|
|
|
- <el-table :data="entityList1" id="rebateSetTable1" size="mini" border style="width: 100%" @sort-change="orderby">
|
|
|
|
|
|
|
+ <el-table :data="entityList1" id="rebateSetTable1" size="mini" border style="width: 100%" @sort-change="orderby" height="calc(100vh - 330px)">
|
|
|
<el-table-column align="center" label="公司名称" prop="SupplierName"></el-table-column>
|
|
<el-table-column align="center" label="公司名称" prop="SupplierName"></el-table-column>
|
|
|
<el-table-column align="center" label="类型" prop="SupplierTypeCode">
|
|
<el-table-column align="center" label="类型" prop="SupplierTypeCode">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- {{transferStr(scope.row.AppendType)}}
|
|
|
|
|
|
|
+ {{transferStr(scope.row.SupplierTypeCode)}}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="当前状态" prop="Status">
|
|
<el-table-column align="center" label="当前状态" prop="Status">
|
|
@@ -86,11 +114,11 @@
|
|
|
</el-pagination>
|
|
</el-pagination>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="年审" name="third">
|
|
<el-tab-pane label="年审" name="third">
|
|
|
- <el-table :data="entityList2" id="rebateSetTable2" size="mini" border style="width: 100%" @sort-change="orderby">
|
|
|
|
|
|
|
+ <el-table :data="entityList2" id="rebateSetTable2" size="mini" border style="width: 100%" @sort-change="orderby" height="calc(100vh - 330px)">
|
|
|
<el-table-column align="center" label="公司名称" prop="SupplierName"></el-table-column>
|
|
<el-table-column align="center" label="公司名称" prop="SupplierName"></el-table-column>
|
|
|
- <el-table-column align="center" label="类型" prop="SupplierTypeName">
|
|
|
|
|
|
|
+ <el-table-column align="center" label="类型" prop="SupplierTypeCode">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- {{transferStr(scope.row.SupplierTypeName)}}
|
|
|
|
|
|
|
+ {{transferStr(scope.row.SupplierTypeCode)}}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="当前状态" prop="Status">
|
|
<el-table-column align="center" label="当前状态" prop="Status">
|
|
@@ -117,7 +145,7 @@
|
|
|
</el-pagination>
|
|
</el-pagination>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="变更申请" name="fourth">
|
|
<el-tab-pane label="变更申请" name="fourth">
|
|
|
- <el-table :data="entityList3" id="rebateSetTable3" size="mini" border style="width: 100%" @sort-change="orderby">
|
|
|
|
|
|
|
+ <el-table :data="entityList3" id="rebateSetTable3" size="mini" border style="width: 100%" @sort-change="orderby" height="calc(100vh - 330px)">
|
|
|
<el-table-column align="center" label="公司名称" prop="SupplierName"></el-table-column>
|
|
<el-table-column align="center" label="公司名称" prop="SupplierName"></el-table-column>
|
|
|
<el-table-column align="center" label="当前状态" prop="Status">
|
|
<el-table-column align="center" label="当前状态" prop="Status">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -206,16 +234,18 @@
|
|
|
},
|
|
},
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
|
- activeName: 'first',
|
|
|
|
|
|
|
+ activeName: 'all',
|
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
|
dialogVisible1: false,
|
|
dialogVisible1: false,
|
|
|
// 列表数据
|
|
// 列表数据
|
|
|
|
|
+ entityListAll: [],
|
|
|
entityList: [],
|
|
entityList: [],
|
|
|
entityList1: [],
|
|
entityList1: [],
|
|
|
entityList2: [],
|
|
entityList2: [],
|
|
|
entityList3: [],
|
|
entityList3: [],
|
|
|
entitySumList: [],
|
|
entitySumList: [],
|
|
|
// 分页参数
|
|
// 分页参数
|
|
|
|
|
+ sizeAll: 40,
|
|
|
size: 10,
|
|
size: 10,
|
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
|
currentItemCount: 0,
|
|
currentItemCount: 0,
|
|
@@ -264,31 +294,31 @@
|
|
|
this.initDatas(tab.index)
|
|
this.initDatas(tab.index)
|
|
|
},
|
|
},
|
|
|
openwfhistory (val) {
|
|
openwfhistory (val) {
|
|
|
- if (this.tabinx == '0') { // 准入
|
|
|
|
|
- this.entrydetail.Id = val.CertId
|
|
|
|
|
- this.entrydetail.business = val.CertId
|
|
|
|
|
|
|
+ if (this.tabinx == '1' || val.Type == '1') { // 准入
|
|
|
|
|
+ this.entrydetail.Id = val.Id
|
|
|
|
|
+ this.entrydetail.business = val.Id
|
|
|
this.entrydetail.instance = val.WorkflowId
|
|
this.entrydetail.instance = val.WorkflowId
|
|
|
this.entrydetail.status = val.Status
|
|
this.entrydetail.status = val.Status
|
|
|
this.entrydetail.process = val.ProcessKey
|
|
this.entrydetail.process = val.ProcessKey
|
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
|
- } else if (this.tabinx == '1') { // 增项
|
|
|
|
|
|
|
+ } else if (this.tabinx == '2' || val.Type == '2') { // 增项
|
|
|
this.entrydetail.Id = val.Id
|
|
this.entrydetail.Id = val.Id
|
|
|
this.entrydetail.business = val.Id
|
|
this.entrydetail.business = val.Id
|
|
|
this.entrydetail.instance = val.WorkFlowId
|
|
this.entrydetail.instance = val.WorkFlowId
|
|
|
this.entrydetail.process = val.ProcessKey
|
|
this.entrydetail.process = val.ProcessKey
|
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
|
- } else if (this.tabinx == '2') { // 年审
|
|
|
|
|
|
|
+ } else if (this.tabinx == '3' || val.Type == '3') { // 年审
|
|
|
this.entrydetail.Id = val.Id
|
|
this.entrydetail.Id = val.Id
|
|
|
this.entrydetail.business = val.Id
|
|
this.entrydetail.business = val.Id
|
|
|
this.entrydetail.instance = val.WorkflowId
|
|
this.entrydetail.instance = val.WorkflowId
|
|
|
this.entrydetail.process = 'oil_audit_apply'
|
|
this.entrydetail.process = 'oil_audit_apply'
|
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
|
- } else if (this.tabinx == '3') { // 信息变更
|
|
|
|
|
|
|
+ } else if (this.tabinx == '4' || val.Type == '4') { // 信息变更
|
|
|
this.entrydetail.business = val.Id
|
|
this.entrydetail.business = val.Id
|
|
|
this.entrydetail.instance = val.WorkflowId
|
|
this.entrydetail.instance = val.WorkflowId
|
|
|
this.entrydetail.process = 'oil_info_change'
|
|
this.entrydetail.process = 'oil_info_change'
|
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
|
- } else if (this.tabinx == '4') { // 资质变更
|
|
|
|
|
|
|
+ } else if (this.tabinx == '5') { // 资质变更
|
|
|
this.entrydetail.business = val.Id
|
|
this.entrydetail.business = val.Id
|
|
|
this.entrydetail.instance = val.WorkflowId
|
|
this.entrydetail.instance = val.WorkflowId
|
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
@@ -321,15 +351,18 @@
|
|
|
Object.assign(params, this.searchForm)
|
|
Object.assign(params, this.searchForm)
|
|
|
// 访问接口
|
|
// 访问接口
|
|
|
api.getProcessAuditList(myCreateOn.join(','), params, this.$axios).then(res => {
|
|
api.getProcessAuditList(myCreateOn.join(','), params, this.$axios).then(res => {
|
|
|
- if (val == '0') {
|
|
|
|
|
|
|
+ if (val == '1') {
|
|
|
this.entityList = res.data.items
|
|
this.entityList = res.data.items
|
|
|
- } else if (val == '1') {
|
|
|
|
|
- this.entityList1 = res.data.items
|
|
|
|
|
} else if (val == '2') {
|
|
} else if (val == '2') {
|
|
|
- this.entityList2 = res.data.items
|
|
|
|
|
|
|
+ this.entityList1 = res.data.items
|
|
|
} else if (val == '3') {
|
|
} else if (val == '3') {
|
|
|
|
|
+ this.entityList2 = res.data.items
|
|
|
|
|
+ } else if (val == '4') {
|
|
|
this.entityList3 = res.data.items
|
|
this.entityList3 = res.data.items
|
|
|
|
|
+ } else if (val == "0") {
|
|
|
|
|
+ this.entityListAll = res.data.items
|
|
|
}
|
|
}
|
|
|
|
|
+ console.log(res.data.items)
|
|
|
this.currentItemCount = res.data.currentItemCount
|
|
this.currentItemCount = res.data.currentItemCount
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
@@ -393,7 +426,19 @@
|
|
|
this.CreateOn = ''
|
|
this.CreateOn = ''
|
|
|
this.initDatas(this.tabinx)
|
|
this.initDatas(this.tabinx)
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ typeStr (val) {
|
|
|
|
|
+ if (val === '1') {
|
|
|
|
|
+ return '准入'
|
|
|
|
|
+ } else if (val === '2') {
|
|
|
|
|
+ return '增项'
|
|
|
|
|
+ } else if (val === '3') {
|
|
|
|
|
+ return '年审'
|
|
|
|
|
+ } else if (val === '4') {
|
|
|
|
|
+ return '信息变更'
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return ''
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
transferStr (val) {
|
|
transferStr (val) {
|
|
|
if (val === '01') {
|
|
if (val === '01') {
|
|
|
return '物资类'
|
|
return '物资类'
|
|
@@ -457,7 +502,12 @@
|
|
|
this.currentPage = 1
|
|
this.currentPage = 1
|
|
|
this.initDatas(this.tabinx)
|
|
this.initDatas(this.tabinx)
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ handleSizeChangeAll (value) {
|
|
|
|
|
+ this.sizeAll = value
|
|
|
|
|
+ this.size = parseInt(value / 4)
|
|
|
|
|
+ this.currentPage = 1
|
|
|
|
|
+ this.initDatas(this.tabinx)
|
|
|
|
|
+ },
|
|
|
GetCommand (cmdType, row) {
|
|
GetCommand (cmdType, row) {
|
|
|
let cmd = {}
|
|
let cmd = {}
|
|
|
cmd.Command = cmdType
|
|
cmd.Command = cmdType
|