入库管理-审核弹框-操作按钮增加权限判断

This commit is contained in:
binbin_pan 2024-06-05 16:34:57 +08:00
parent 2a0556f200
commit 75e5a4d3f1
3 changed files with 10 additions and 8 deletions

View File

@ -309,7 +309,7 @@
v-if="scope.row.status != 2"
@click="manualOperation(scope.row)"
>
出库结单
完成出库
</el-button>
</template>
</el-table-column>
@ -752,14 +752,14 @@ export default {
//
manualOperation(row) {
//
this.$confirm('是否确认出库结单', '提示', {
this.$confirm('是否确认完成出库?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
outboundCompleted({ id: this.dialogQuery.id, typeId: row.typeId }).then((response) => {
this.$modal.msgSuccess('出库结单成功')
this.$modal.msgSuccess('完成出库成功')
this.handleDialogQuery()
this.handleQuery()
})
@ -767,7 +767,7 @@ export default {
.catch(() => {
this.$message({
type: 'info',
message: '已取消出库结单',
message: '已取消完成出库',
})
})
},

View File

@ -363,14 +363,14 @@
<el-button
size="mini"
type="text"
v-if="scope.row.status == '0'"
v-if="scope.row.status == '0' && scope.row.userIds.includes(userId)"
@click="pass(scope.row)"
>通过</el-button
>
<el-button
size="mini"
type="text"
v-if="scope.row.status == '0'"
v-if="scope.row.status == '0' && scope.row.userIds.includes(userId)"
@click="refused(scope.row)"
>不通过</el-button
>
@ -605,6 +605,7 @@ export default {
},
],
},
userId: sessionStorage.getItem('userId'),
}
},
created() {

View File

@ -410,13 +410,13 @@
size="mini"
type="text"
@click="pass(scope.row)"
v-if="scope.row.status == '进行中'"
v-if="scope.row.status == '进行中' && scope.row.userIds.includes(userId)"
>通过</el-button
>
<el-button
size="mini"
type="text"
v-if="scope.row.status == '进行中'"
v-if="scope.row.status == '进行中' && scope.row.userIds.includes(userId)"
@click="refused(scope.row)"
>不通过</el-button
>
@ -534,6 +534,7 @@ export default {
],
},
equipmentTypeList: [],
userId: sessionStorage.getItem('userId'),
}
},
created() {