|
@@ -1,11 +1,23 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
|
<div class="filter-container filter-view">
|
|
<div class="filter-container filter-view">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ class="filter-view-item"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ v-model="filters.pageCriteria.contractStatus"
|
|
|
|
|
+ placeholder="Contract Status"
|
|
|
|
|
+ @change="toSearch">
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="(item, index) in statusContracts"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ :label="item"
|
|
|
|
|
+ :value="item"/>
|
|
|
|
|
+ </el-select>
|
|
|
<el-select
|
|
<el-select
|
|
|
class="filter-view-item"
|
|
class="filter-view-item"
|
|
|
clearable
|
|
clearable
|
|
|
v-model="filters.pageCriteria.auditStatus"
|
|
v-model="filters.pageCriteria.auditStatus"
|
|
|
- placeholder="Status"
|
|
|
|
|
|
|
+ placeholder="Approval Status"
|
|
|
@change="toSearch">
|
|
@change="toSearch">
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="(item, index) in statusOptions"
|
|
v-for="(item, index) in statusOptions"
|
|
@@ -170,10 +182,12 @@ export default {
|
|
|
pageCriteria: {
|
|
pageCriteria: {
|
|
|
dataStatus: "A",
|
|
dataStatus: "A",
|
|
|
auditStatus: "",
|
|
auditStatus: "",
|
|
|
|
|
+ contractStatus: "",
|
|
|
criteria: ""
|
|
criteria: ""
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
statusOptions: [],
|
|
statusOptions: [],
|
|
|
|
|
+ statusContracts: [],
|
|
|
approvalDialog: {
|
|
approvalDialog: {
|
|
|
id: "",
|
|
id: "",
|
|
|
visible: false,
|
|
visible: false,
|
|
@@ -184,6 +198,7 @@ export default {
|
|
|
components: { Approval, Pagination },
|
|
components: { Approval, Pagination },
|
|
|
created() {
|
|
created() {
|
|
|
this.getStatusOptions();
|
|
this.getStatusOptions();
|
|
|
|
|
+ this.getContractStatus();
|
|
|
this.toSearch();
|
|
this.toSearch();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -197,7 +212,16 @@ export default {
|
|
|
this.statusOptions = res.data
|
|
this.statusOptions = res.data
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
- this.$message.error(err);
|
|
|
|
|
|
|
+ //this.$message.error(err);
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ getContractStatus() {
|
|
|
|
|
+ limit.getContractStatusOptions().then(res => {
|
|
|
|
|
+ if (res.data && res.data.length > 0) {
|
|
|
|
|
+ this.statusContracts = res.data
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ //this.$message.error(err);
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
handleCommand(fuc, item) {
|
|
handleCommand(fuc, item) {
|