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