代码优化

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