diff --git a/src/views/system/order/index.vue b/src/views/system/order/index.vue index a4c5943..798d3e8 100644 --- a/src/views/system/order/index.vue +++ b/src/views/system/order/index.vue @@ -509,7 +509,7 @@ import { } from "@/api/system/order"; import { getListByUser } from "@/api/system/userlist.js"; import baseurl from "@/api/baseurl.js"; -import { selectOrderEvaluate } from "@/api/system/goodsOrder"; + export default { name: "order", data() { @@ -680,13 +680,13 @@ export default { this.query = res.data[0]; this.innerVisible4 = true; if (row.orderStatus == "EVALUATED") { - selectOrderEvaluate(id).then((res) => { + console.log(res.data) if (res.data) { - if (res.data.evaluateSatisfaction == "COMMONLY") { + if (res.data[0].evaluateSatisfaction == "COMMONLY") { this.query.evaluateSatisfaction = "一般"; - } else if (res.data.evaluateSatisfaction == "SATISFIED") { + } else if (res.data[0].evaluateSatisfaction == "SATISFIED") { this.query.evaluateSatisfaction = "满意"; - } else if (res.data.evaluateSatisfaction == "DISSATISFIED") { + } else if (res.data[0].evaluateSatisfaction == "DISSATISFIED") { this.query.evaluateSatisfaction = "不满意"; } this.loading = false; @@ -695,7 +695,6 @@ export default { this.loading = false; this.innerVisible4 = true; } - }); } else { this.loading = false; this.innerVisible4 = true;