|
|
@@ -41,12 +41,14 @@ export default {
|
|
41
|
41
|
this.queryParams.pageNum++;
|
|
42
|
42
|
this.getList();
|
|
43
|
43
|
},
|
|
44
|
|
- formtterStatus(status) {
|
|
45
|
|
- if(this.type == 1){
|
|
46
|
|
- return status == '1' ? '待询价' : '询价完成'
|
|
|
44
|
+ formtterStatus(item) {
|
|
|
45
|
+ // 按当前用户是否已出价显示:后端返回 currentUserCompleted(有 myPrice 即已出价)
|
|
|
46
|
+ const completed = item.currentUserCompleted === true || (item.myPrice != null && item.myPrice !== '');
|
|
|
47
|
+ if (this.type == 1) {
|
|
|
48
|
+ return completed ? '询价完成' : '待询价';
|
|
47
|
49
|
}
|
|
48
|
|
- if(this.type == 2){
|
|
49
|
|
- return status == '1' ? '待核价' : '核价完成'
|
|
|
50
|
+ if (this.type == 2) {
|
|
|
51
|
+ return completed ? '核价完成' : '待核价';
|
|
50
|
52
|
}
|
|
51
|
53
|
},
|
|
52
|
54
|
handleClick(item) {
|