|
@@ -12,7 +12,13 @@
|
|
|
</el-row>
|
|
|
<tableLayout style="margin-top: 10px" :layout="quotationTablecols" :data="quotationList" :opwidth="200" :custom="true" :height="tableHeight">
|
|
|
<template v-slot:customcol="scope">
|
|
|
- <p>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
|
|
|
+ <div v-if="scope.column.columnname === 'status'">
|
|
|
+ <span style="color:#3874f6" v-if="scope.column.data[[scope.column.columnname]] == '新建'">{{scope.column.data[[scope.column.columnname]]}}</span>
|
|
|
+ <span style="color:#52c41a" v-else-if="scope.column.data[[scope.column.columnname]] == '提交'">{{scope.column.data[[scope.column.columnname]]}}</span>
|
|
|
+ <span style="color:#333333" v-else-if="scope.column.data[[scope.column.columnname]] == '审核'">{{scope.column.data[[scope.column.columnname]]}}</span>
|
|
|
+ <span style="color:#fa8c16" v-else-if="scope.column.data[[scope.column.columnname]] == '复核'">{{scope.column.data[[scope.column.columnname]]}}</span>
|
|
|
+ </div>
|
|
|
+ <p v-else>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
|
|
|
</template>
|
|
|
</tableLayout>
|
|
|
<div class="container normal-panel" style="text-align:right">
|
|
@@ -37,7 +43,13 @@
|
|
|
</el-row>
|
|
|
<tableLayout style="margin-top: 10px" :layout="contractTablecols" :data="contractList" :opwidth="200" :custom="true" :height="tableHeight">
|
|
|
<template v-slot:customcol="scope">
|
|
|
- <p>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
|
|
|
+ <div v-if="scope.column.columnname == 'status'">
|
|
|
+ <span style="color:#3874f6" v-if="scope.column.data[[scope.column.columnname]] == '新建'">{{scope.column.data[[scope.column.columnname]]}}</span>
|
|
|
+ <span style="color:#52c41a" v-else-if="scope.column.data[[scope.column.columnname]] == '已提交'">{{scope.column.data[[scope.column.columnname]]}}</span>
|
|
|
+ <span style="color:#333333" v-else-if="scope.column.data[[scope.column.columnname]] == '审核'">{{scope.column.data[[scope.column.columnname]]}}</span>
|
|
|
+ <span style="color:#000000" v-else>{{scope.column.data[[scope.column.columnname]]}}</span>
|
|
|
+ </div>
|
|
|
+ <p v-else>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
|
|
|
</template>
|
|
|
</tableLayout>
|
|
|
<div class="container normal-panel" style="text-align:right">
|
|
@@ -77,7 +89,8 @@ export default {
|
|
|
contractCurrentPage:0,
|
|
|
contractTotal:0,
|
|
|
begindate:'',
|
|
|
- enddate:''
|
|
|
+ enddate:'',
|
|
|
+ select:''
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -85,8 +98,9 @@ export default {
|
|
|
/* this.isDep ? this.param.content.type = 1 : this.isPerson ? this.param.content.type = 0 : this.param.content.type = ''*/
|
|
|
this.param.content.dataType = 10
|
|
|
/* this.param.content.dataid = this.dataid*/
|
|
|
- this.param.content.where.begindate = this.begindate
|
|
|
- this.param.content.where.enddate = this.enddate
|
|
|
+ this.param.content.where.begindate = this.select ? '' :this.begindate
|
|
|
+ this.param.content.where.enddate = this.select ? '' : this.enddate
|
|
|
+ this.param.content.dateType = this.select
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.quotationList = res.data
|
|
|
this.quotationCurrentPage = res.pageNumber
|
|
@@ -106,8 +120,9 @@ export default {
|
|
|
/* this.isDep ? this.param.content.type = 1 : this.isPerson ? this.param.content.type = 0 : this.param.content.type = ''*/
|
|
|
this.param.content.dataType = 11
|
|
|
/* this.param.content.dataid = this.dataid*/
|
|
|
- this.param.content.where.begindate = this.begindate
|
|
|
- this.param.content.where.enddate = this.enddate
|
|
|
+ this.param.content.where.begindate = this.select ? '' :this.begindate
|
|
|
+ this.param.content.where.enddate = this.select ? '' : this.enddate
|
|
|
+ this.param.content.dateType = this.select
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.contractList = res.data
|
|
|
this.contractCurrentPage = res.pageNumber
|
|
@@ -124,14 +139,16 @@ export default {
|
|
|
this.queryContract()
|
|
|
},
|
|
|
/*日期筛选*/
|
|
|
- selectQuickQuotation(begindate,enddate){
|
|
|
+ selectQuickQuotation(begindate,enddate,select){
|
|
|
this.begindate = begindate
|
|
|
this.enddate = enddate
|
|
|
+ this.select = select
|
|
|
this.queryQuotation(this.param.content.pageNumber = 1)
|
|
|
},
|
|
|
- selectQuickContract(begindate,enddate){
|
|
|
+ selectQuickContract(begindate,enddate,select){
|
|
|
this.begindate = begindate
|
|
|
this.enddate = enddate
|
|
|
+ this.select = select
|
|
|
this.queryContract(this.param.content.pageNumber = 1)
|
|
|
},
|
|
|
},
|