|
@@ -53,6 +53,7 @@
|
|
<script>
|
|
<script>
|
|
import asyncRequest from "@/apis/order/index";
|
|
import asyncRequest from "@/apis/order/index";
|
|
import resToken from "@/mixins/resToken";
|
|
import resToken from "@/mixins/resToken";
|
|
|
|
+import { getAdmin } from "@/utils/auth";
|
|
export default {
|
|
export default {
|
|
mixins: [resToken],
|
|
mixins: [resToken],
|
|
components: {
|
|
components: {
|
|
@@ -63,6 +64,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ admin: "",
|
|
id: "0",
|
|
id: "0",
|
|
status: "0",
|
|
status: "0",
|
|
list1: [
|
|
list1: [
|
|
@@ -89,6 +91,7 @@ export default {
|
|
},
|
|
},
|
|
async created() {
|
|
async created() {
|
|
this.id = this.$route.query.id ? this.$route.query.id : "0";
|
|
this.id = this.$route.query.id ? this.$route.query.id : "0";
|
|
|
|
+ this.admin = getAdmin();
|
|
await this.initData();
|
|
await this.initData();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -114,13 +117,14 @@ export default {
|
|
provice_name,
|
|
provice_name,
|
|
area_name,
|
|
area_name,
|
|
addr,
|
|
addr,
|
|
- unit_weight
|
|
|
|
|
|
+ unit_weight,
|
|
} = res.data;
|
|
} = res.data;
|
|
this.list1[0].value = order_sn;
|
|
this.list1[0].value = order_sn;
|
|
this.list1[1].value = status === "1" ? "待发货" : "待收货";
|
|
this.list1[1].value = status === "1" ? "待发货" : "待收货";
|
|
this.status = status;
|
|
this.status = status;
|
|
- this.list4[0].value = unit === "盒" ? "藏金1745礼盒" : "藏金1745普通装";
|
|
|
|
- this.list4[1].value = order_num + unit+"/"+unit_weight+'kg';
|
|
|
|
|
|
+ this.list4[0].value =
|
|
|
|
+ this.admin === "1" ? "红运稻" : this.admin === "2" ? "悦享泰康" : "";
|
|
|
|
+ this.list4[1].value = order_num + "/" + "份";
|
|
this.list1[2].value = order_time;
|
|
this.list1[2].value = order_time;
|
|
if (this.status === "2") {
|
|
if (this.status === "2") {
|
|
this.list2[0].value = post_name;
|
|
this.list2[0].value = post_name;
|