vehicleDamageOderImportDetail.vue
3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!-- 车损报价单 -->
<template>
<d2-container class="m-t-40 d2-con">
<div class="header" slot="header"></div>
<div class="d2-container-content">
<d2-table
ref="damageTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
>
</d2-table>
</div>
</d2-container>
</template>
<script>
import { taskOrderStatusList } from "@/common/constant/vehicle"
import { Util, deepClone } from "@/common/util"
import { importTaskOrderDetailPage } from "@api/vehicleDamage"
export default {
name: "VehicleDamageList",
data() {
return {
getListApi: importTaskOrderDetailPage,
searchFormSearch: {
taskId: ""
},
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: "list",
tableOption: false,
tableColumns: [
{
label: "门店名称",
prop: "merchantName4s"
// width: "160px"
},
{
label: "客户姓名",
prop: "customerName"
// width: "250px"
},
{
label: "支付时间",
prop: "payTime"
// width: "100px",
// formatter: (cellValue) => {
// return Util.dateFormate(cellValue.payTime, "YYYY-MM-DD HH:mm:ss")
// }
},
{
label: "交易参考号",
prop: "transactionNo",
width: "250px"
},
{
label: "单价",
prop: "goodsPrice"
},
{
label: "总价",
prop: "goodsTotalPrice"
},
{
label: "任务状态",
prop: "taskOrderStatus",
formatter: (cellValue) => {
return (
taskOrderStatusList.find(
(item) => item.id == cellValue.taskOrderStatus
)?.label || "-"
)
},
className: (cellValue) => {
return (
{
"-1": "redSpot",
0: "yellowSpot",
1: "deepBlueSpot",
2: "greenSpot"
}[cellValue.taskOrderStatus] || "ashSpot"
)
}
},
// {
// label: "创建时间",
// prop: "createTime",
// formatter: (cellValue) => {
// return Util.dateFormate(
// cellValue.createdTime,
// "YYYY-MM-DD HH:mm:ss"
// )
// }
// },
{
label: "更新时间",
prop: "updateTime"
// formatter: (cellValue) => {
// return Util.dateFormate(
// cellValue.updatedTime,
// "YYYY-MM-DD HH:mm:ss"
// )
// }
},
{
label: "任务状态描述",
prop: "errorMsg"
}
]
}
}
},
computed: {
taskId() {
return this.$route.query.taskId
}
},
mounted() {
this.searchFormSearch.taskId = this.taskId
// this.
},
methods: {
handleDetail(row) {
quotationPrint({ id: row.id }).then((res) => {
window.open(res)
})
}
}
}
</script>
<style scoped lang="scss">
.d2-con {
.d2-header-switch {
display: none;
}
}
</style>