代码优化

This commit is contained in:
BianLzhaoMin 2024-08-19 16:08:11 +08:00
parent d92527b614
commit cb14533f95
1 changed files with 16 additions and 5 deletions

View File

@ -88,7 +88,9 @@
align="center" align="center"
width="80" width="80"
type="index" type="index"
:index="indexContinuation(queryParams.pageNum, queryParams.pageSize)" :index="
indexContinuation(queryParams.pageNum, queryParams.pageSize)
"
> >
<!-- <template slot-scope="scope"> <!-- <template slot-scope="scope">
<span>{{ <span>{{
@ -202,7 +204,8 @@
v-if=" v-if="
!isView && !isView &&
scope.row.manageType == '0' && scope.row.manageType == '0' &&
scope.row.num > 0 scope.row.num > 0 &&
(userId == scope.row.userId || userId == 1)
" "
> >
编码退料 编码退料
@ -215,7 +218,8 @@
!isView && !isView &&
(scope.row.manageType == '1' || (scope.row.manageType == '1' ||
scope.row.manageType == '2') && scope.row.manageType == '2') &&
scope.row.num > 0 scope.row.num > 0 &&
(userId == scope.row.userId || userId == 1)
" "
> >
数量退料 数量退料
@ -224,7 +228,11 @@
size="mini" size="mini"
icon="el-icon-zoom-in" icon="el-icon-zoom-in"
@click="handleBackup(scope.row)" @click="handleBackup(scope.row)"
v-if="!isView && scope.row.num < scope.row.preNum" v-if="
!isView &&
scope.row.num < scope.row.preNum &&
(userId == scope.row.userId || userId == 1)
"
> >
撤回 撤回
</el-button> </el-button>
@ -318,7 +326,9 @@
align="center" align="center"
width="80" width="80"
type="index" type="index"
:index="indexContinuation(codeQuery.pageNum, codeQuery.pageSize)" :index="
indexContinuation(codeQuery.pageNum, codeQuery.pageSize)
"
> >
<!-- <template slot-scope="scope"> <!-- <template slot-scope="scope">
<span>{{ <span>{{
@ -682,6 +692,7 @@ export default {
codeTotal: 0, //- codeTotal: 0, //-
codeList: [], // codeList: [], //
numList: [], // numList: [], //
userId: sessionStorage.getItem('userId'),
} }
}, },
mounted() { mounted() {