Commit db7e6315 by 前端

Merge branch 'dev_v4.22.0' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into dev_v4.22.0
2 parents b3e3e46c 88a668ea
......@@ -89,40 +89,48 @@ export default {
getAuths({}).then(async (res) => {
userInfo.detail.merchantId = userInfo.detail.merchantNo
var routeAll = util.permision.flatten(Object.values(localRoutes))
var indexPage = routeAll.find((item) => item.authId === "907")
routeAll.splice(
routeAll.findIndex((item) => item.authId === "907"),
1
)
routeAll.unshift(indexPage)
if (userInfo.detail.accountType !== 7) {
!res.map((i) => i.authId).includes("907") &&
res.unshift({
authId: "907",
name: "总览",
parentId: "1"
})
}
// if (userInfo.detail.accountType !== 7) {
// !res.map((i) => i.authId).includes("907") &&
// res.unshift({
// authId: "907",
// name: "总览",
// parentId: "1"
// })
// }
var tempAuths = []
// 修复超管拿不到权限权限问题
var targetRoutes = userInfo.beSuper
? routeAll.map((i) => i.authId)
: res.map((i) => i.authId)
var targetRoutes = res.map((i) => i.authId)
// var targetRoutes = userInfo.beSuper
// ? routeAll.map((i) => i.authId)
// : res.map((i) => i.authId)
// if (targetRoutes.length === 0) {
// this.$message.warning("无权限,请联系管理员")
// return reject("无权限")
// }
// console.log(res, "res")
// console.log(userInfo.beSuper, "userInfo.beSuper")
// console.log(targetRoutes, "targetRoutes")
// 先处理园区店角色是不能拿到 订单审批和发货的页面
// console.log("userInfo.beYQMerchant", userInfo.beYQMerchant)
const filterList = ["90903", "90904"]
if (!userInfo.beSuper && userInfo.beYQMerchant) {
targetRoutes = targetRoutes.filter((item) => {
return !filterList.includes(item.toString())
})
}
if (userInfo.beServerMerchant) {
targetRoutes.push("90904")
}
// const filterList = ["90903", "90904"]
// if (!userInfo.beSuper && userInfo.beYQMerchant) {
// targetRoutes = targetRoutes.filter((item) => {
// return !filterList.includes(item.toString())
// })
// }
// if (userInfo.beServerMerchant) {
// targetRoutes.push("90904")
// }
// console.log("targetRoutes", targetRoutes)
routeAll
......
......@@ -13,7 +13,8 @@
<div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage" @refreshTable="refreshTable" :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal">
<div slot="nowPurNum" slot-scope="scope">
<el-input :class="{ 'border-red': !nowPurNumList[scope.index] && isSubmit }" placeholder="请输入" v-model="nowPurNumList[scope.index]" @input="e => handleInput(e, scope)"></el-input>
<el-input v-if="detailInfo.tableData[scope.index].goodsNumber - detailInfo.tableData[scope.index].purchaseNumber > 0" :class="{ 'border-red': !nowPurNumList[scope.index] && isSubmit }" placeholder="请输入" v-model="nowPurNumList[scope.index]" @input="e => handleInput(e, scope)"></el-input>
<div v-else>-</div>
</div>
</d2-table>
</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!