代码优化
This commit is contained in:
parent
d92527b614
commit
cb14533f95
|
|
@ -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() {
|
||||
|
|
|
|||
Reference in New Issue