优化页面展示,增加分公司审核按钮判断

This commit is contained in:
BianLzhaoMin 2024-05-29 10:47:32 +08:00
parent 0a8d75d077
commit 3be3fd24eb
3 changed files with 18 additions and 17 deletions

View File

@ -210,7 +210,10 @@
type="primary"
@click="handleExamine(scope.row)"
v-hasPermi="['receive:examine:fgs']"
v-if="Number(scope.row.examineStatusId) == 30"
v-if="
Number(scope.row.examineStatusId) == 30 &&
scope.row.deptId == currentDeptId
"
>审批</el-button
>
<el-button
@ -526,6 +529,9 @@ export default {
leaseApplyDetails: [],
//
leaseApplyData: {},
// Id
currentDeptId: parseInt(sessionStorage.getItem('deptId')),
}
},
created() {

View File

@ -385,7 +385,7 @@
width="80"
type="index"
>
<template scope="scope">
<template slot-scope="scope">
<span>{{
(outQuery.pageNum - 1) * 10 + scope.$index + 1
}}</span>
@ -489,17 +489,12 @@
prop="alNum"
:show-overflow-tooltip="true"
/>
<el-table-column
label="出库数量"
align="center"
prop="inputNum"
>
<el-table-column label="出库数量" align="center">
<template slot-scope="scope">
<el-input
v-model.number="scope.row.inputNum"
placeholder="请输入出库数量"
type="number"
min="1"
@input="checkNum(scope.row)"
clearable
style="width: 100%"
@ -813,7 +808,6 @@ export default {
if (row.inputNum <= 1) {
row.inputNum = 1
}
if (row.inputNum > row.outNum && row.num >= maxNum) {
row.inputNum = maxNum
}

View File

@ -19,7 +19,7 @@ module.exports = {
// 部署生产环境和开发环境下的URL。
// 默认情况下Vue CLI 会假设你的应用是被部署在一个域名的根路径上
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
publicPath: process.env.NODE_ENV === 'production' ? '/' : '/', ///gl/
publicPath: process.env.NODE_ENV === 'production' ? '/gl/' : '/', ///gl/
// 在npm run build 或 yarn build 时 生成文件的目录名称要和baseUrl的生产环境路径一致默认dist
outputDir: 'dist',
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
@ -34,6 +34,7 @@ module.exports = {
port: port,
open: true,
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
// target: `http://112.29.103.165:21626`, //线上环境-重庆
// target: `http://112.29.103.165:21624`,//线上环境-宁夏 打包前放开数据大屏的路由
@ -42,11 +43,11 @@ module.exports = {
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网
// target: `https://z.csgmall.com.cn`,
// target: `http://10.40.92.8:28080`, //超
// target: `http://10.40.92.8:8080`, //超
// target: `http://10.40.92.81:8080`, //韩/
// target: `http://10.40.92.74:8080`,//旭/
target: `http://10.40.92.136:28080`, //帅
// target: `http://10.40.92.253:28080`, //福
// target: `http://10.40.92.5:28080`, //福
//******** 注意事项 ********* */
//1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址target;
@ -146,11 +147,11 @@ module.exports = {
},
})
config.optimization.runtimeChunk("single"),
config.optimization.runtimeChunk('single'),
{
from: path.resolve(__dirname, "./public/robots.txt"), //防爬虫文件
to: "./", //到根目录下
};
});
from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
to: './', //到根目录下
}
})
},
}