|
@@ -64,6 +64,9 @@
|
|
|
:show-tooltip-when-overflow="true"
|
|
|
label="项目类别"
|
|
|
>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{productTypeOption.find(t => t.value === scope.row.type).label}}
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="materialCost"
|
|
@@ -190,6 +193,9 @@
|
|
|
:show-tooltip-when-overflow="true"
|
|
|
label="项目状态"
|
|
|
>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{projectStateOption.find(t => t.value === scope.row.state).label}}
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="approveState"
|
|
@@ -199,6 +205,9 @@
|
|
|
:show-tooltip-when-overflow="true"
|
|
|
label="项目评估状态"
|
|
|
>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{approveStateOption.find(t => t.value === scope.row.approveState).label}}
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
fixed="right"
|
|
@@ -299,6 +308,7 @@
|
|
|
import OrgComponent from '../common/org-component'
|
|
|
import {getList} from '@/api/quoted'
|
|
|
import QuotedAddOrUpdate from './quoted-add-or-update'
|
|
|
+import { productTypeOption, approveStateOption, projectStateOption } from '@/utils/enums'
|
|
|
export default {
|
|
|
name: 'cus-quoted',
|
|
|
components: { OrgComponent, QuotedAddOrUpdate },
|
|
@@ -306,6 +316,9 @@ export default {
|
|
|
return {
|
|
|
addOrUpdateVisible: false,
|
|
|
detailVisible: false,
|
|
|
+ productTypeOption: productTypeOption,
|
|
|
+ approveStateOption: approveStateOption,
|
|
|
+ projectStateOption: projectStateOption,
|
|
|
dataForm: {},
|
|
|
dataList: [],
|
|
|
pageIndex: 1,
|
|
@@ -314,7 +327,9 @@ export default {
|
|
|
dataListLoading: false
|
|
|
}
|
|
|
},
|
|
|
- created () {},
|
|
|
+ created () {
|
|
|
+ this.getDataList()
|
|
|
+ },
|
|
|
methods: {
|
|
|
onChose () {
|
|
|
this.addOrUpdateVisible = false
|
|
@@ -336,6 +351,7 @@ export default {
|
|
|
this.getDataList()
|
|
|
},
|
|
|
getDataList () {
|
|
|
+ this.dataListLoading = true
|
|
|
let param = {
|
|
|
current: this.pageIndex,
|
|
|
size: this.pageSize,
|
|
@@ -344,7 +360,12 @@ export default {
|
|
|
getList(param).then(({data}) => {
|
|
|
if (data && data.code === '200') {
|
|
|
this.dataList = data.data.records
|
|
|
+ this.totalPage = Number(data.data.total)
|
|
|
+ } else {
|
|
|
+ this.dataList = []
|
|
|
+ this.totalPage = 0
|
|
|
}
|
|
|
+ this.dataListLoading = false
|
|
|
})
|
|
|
},
|
|
|
addOrUpdateHandle (id) {
|