修改载物订单
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 { getList } from "@/api/system/pilot";
|
||||
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 store from "@/store";
|
||||
// import store from "@/store";
|
||||
|
||||
export default {
|
||||
name: "loadOrder",
|
||||
@ -242,19 +242,19 @@ export default {
|
||||
try {
|
||||
let res = [];
|
||||
// 获取用户信息
|
||||
const userRes = await getUser({ id: store.getters.user.id });
|
||||
if (userRes && userRes.content && userRes.content.length > 0) {
|
||||
const userInfo = userRes.content[0];
|
||||
if (userInfo.roles && userInfo.roles.length > 0) {
|
||||
this.userRole = userInfo.roles[0].name;
|
||||
// 根据角色调用不同接口
|
||||
if (this.userRole === "区域负责人") {
|
||||
res = await allScenic({areaId: userInfo.areaId});
|
||||
} else if (this.userRole === "管理员" || this.userRole === "财务") {
|
||||
// const userRes = await getUser({ id: store.getters.user.id });
|
||||
// if (userRes && userRes.content && userRes.content.length > 0) {
|
||||
// const userInfo = userRes.content[0];
|
||||
// if (userInfo.roles && userInfo.roles.length > 0) {
|
||||
// this.userRole = userInfo.roles[0].name;
|
||||
// // 根据角色调用不同接口
|
||||
// if (this.userRole === "区域负责人") {
|
||||
// res = await allScenic({areaId: userInfo.areaId});
|
||||
// } else if (this.userRole === "管理员" || this.userRole === "财务") {
|
||||
res = await allScenic();
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// 设置景区选项
|
||||
if (res && Array.isArray(res)) {
|
||||
this.scenicOptions = res.map((scenic) => ({
|
||||
|
Loading…
Reference in New Issue
Block a user