修改载物订单
This commit is contained in:
parent
34e2fa8cdb
commit
a38f359415
@ -125,9 +125,9 @@ import { allCustomer } from "@/api/system/customer";
|
|||||||
import { get } from "@/api/system/dictDetail";
|
import { get } from "@/api/system/dictDetail";
|
||||||
import { getList } from "@/api/system/pilot";
|
import { getList } from "@/api/system/pilot";
|
||||||
import { getOrderDetail } from "@/api/order";
|
import { getOrderDetail } from "@/api/order";
|
||||||
import { getUser } from "@/api/system/user";
|
// import { getUser } from "@/api/system/user";
|
||||||
import { getOrderStatusText, getSettlementStatusText, getOrderStatusClass, getSettlementStatusClass } from "@/utils/orderStatus";
|
import { getOrderStatusText, getSettlementStatusText, getOrderStatusClass, getSettlementStatusClass } from "@/utils/orderStatus";
|
||||||
import store from "@/store";
|
// import store from "@/store";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "loadOrder",
|
name: "loadOrder",
|
||||||
@ -242,19 +242,19 @@ export default {
|
|||||||
try {
|
try {
|
||||||
let res = [];
|
let res = [];
|
||||||
// 获取用户信息
|
// 获取用户信息
|
||||||
const userRes = await getUser({ id: store.getters.user.id });
|
// const userRes = await getUser({ id: store.getters.user.id });
|
||||||
if (userRes && userRes.content && userRes.content.length > 0) {
|
// if (userRes && userRes.content && userRes.content.length > 0) {
|
||||||
const userInfo = userRes.content[0];
|
// const userInfo = userRes.content[0];
|
||||||
if (userInfo.roles && userInfo.roles.length > 0) {
|
// if (userInfo.roles && userInfo.roles.length > 0) {
|
||||||
this.userRole = userInfo.roles[0].name;
|
// this.userRole = userInfo.roles[0].name;
|
||||||
// 根据角色调用不同接口
|
// // 根据角色调用不同接口
|
||||||
if (this.userRole === "区域负责人") {
|
// if (this.userRole === "区域负责人") {
|
||||||
res = await allScenic({areaId: userInfo.areaId});
|
// res = await allScenic({areaId: userInfo.areaId});
|
||||||
} else if (this.userRole === "管理员" || this.userRole === "财务") {
|
// } else if (this.userRole === "管理员" || this.userRole === "财务") {
|
||||||
res = await allScenic();
|
res = await allScenic();
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
// 设置景区选项
|
// 设置景区选项
|
||||||
if (res && Array.isArray(res)) {
|
if (res && Array.isArray(res)) {
|
||||||
this.scenicOptions = res.map((scenic) => ({
|
this.scenicOptions = res.map((scenic) => ({
|
||||||
|
Loading…
Reference in New Issue
Block a user