evaluateMixin.js
1.2 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
import {
getEvalOrderDetail,
getEvalOrderPriceHistory,
} from "@/api/usedCarManagement";
import assess from "./assess.vue";
import assessInfo from "./assessInfo.vue";
import check from "./check.vue";
import checkInfo from "./checkInfo.vue";
import dynamics from "./dynamics.vue";
import rejectDialog from "./rejectDialog.vue";
import vehicleInfo from "./vehicleInfo.vue";
export const evaluateMixin = {
components: {
rejectDialog,
vehicleInfo,
dynamics,
assess,
assessInfo,
check,
checkInfo,
},
data() {
return {
detailInfo: null,
dynamicsData: [],
evalOrderNo: this.$route.query.evalOrderNo,
scene: this.$route.query.scene,
};
},
created() {
this.getEvalOrderDetail();
this.getEvalOrderPriceHistory();
},
methods: {
handleCancel() {
this.$router.push("/evaluationManagement");
},
getEvalOrderDetail() {
getEvalOrderDetail({
evalOrderNo: this.evalOrderNo,
}).then((res) => {
console.log("res", res);
this.detailInfo = res;
this.loading = false;
});
},
getEvalOrderPriceHistory() {
getEvalOrderPriceHistory({
evalOrderNo: this.evalOrderNo,
}).then((res) => {
console.log("res", res);
this.dynamicsData = res;
});
},
},
};