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 { ...@@ -89,40 +89,48 @@ export default {
getAuths({}).then(async (res) => { getAuths({}).then(async (res) => {
userInfo.detail.merchantId = userInfo.detail.merchantNo userInfo.detail.merchantId = userInfo.detail.merchantNo
var routeAll = util.permision.flatten(Object.values(localRoutes)) var routeAll = util.permision.flatten(Object.values(localRoutes))
var indexPage = routeAll.find((item) => item.authId === "907") var indexPage = routeAll.find((item) => item.authId === "907")
routeAll.splice( routeAll.splice(
routeAll.findIndex((item) => item.authId === "907"), routeAll.findIndex((item) => item.authId === "907"),
1 1
) )
routeAll.unshift(indexPage) routeAll.unshift(indexPage)
if (userInfo.detail.accountType !== 7) {
!res.map((i) => i.authId).includes("907") && // if (userInfo.detail.accountType !== 7) {
res.unshift({ // !res.map((i) => i.authId).includes("907") &&
authId: "907", // res.unshift({
name: "总览", // authId: "907",
parentId: "1" // name: "总览",
}) // parentId: "1"
} // })
// }
var tempAuths = [] var tempAuths = []
// 修复超管拿不到权限权限问题 // 修复超管拿不到权限权限问题
var targetRoutes = userInfo.beSuper var targetRoutes = res.map((i) => i.authId)
? routeAll.map((i) => i.authId) // var targetRoutes = userInfo.beSuper
: res.map((i) => i.authId) // ? 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(res, "res")
// console.log(userInfo.beSuper, "userInfo.beSuper") // console.log(userInfo.beSuper, "userInfo.beSuper")
// console.log(targetRoutes, "targetRoutes") // console.log(targetRoutes, "targetRoutes")
// 先处理园区店角色是不能拿到 订单审批和发货的页面 // 先处理园区店角色是不能拿到 订单审批和发货的页面
// console.log("userInfo.beYQMerchant", userInfo.beYQMerchant) // console.log("userInfo.beYQMerchant", userInfo.beYQMerchant)
const filterList = ["90903", "90904"] // const filterList = ["90903", "90904"]
if (!userInfo.beSuper && userInfo.beYQMerchant) { // if (!userInfo.beSuper && userInfo.beYQMerchant) {
targetRoutes = targetRoutes.filter((item) => { // targetRoutes = targetRoutes.filter((item) => {
return !filterList.includes(item.toString()) // return !filterList.includes(item.toString())
}) // })
} // }
if (userInfo.beServerMerchant) { // if (userInfo.beServerMerchant) {
targetRoutes.push("90904") // targetRoutes.push("90904")
} // }
// console.log("targetRoutes", targetRoutes) // console.log("targetRoutes", targetRoutes)
routeAll routeAll
......
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
<div class="table-class"> <div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage" @refreshTable="refreshTable" :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal"> <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"> <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> </div>
</d2-table> </d2-table>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!