入库管理-审核弹框-操作按钮增加权限判断
This commit is contained in:
parent
2a0556f200
commit
75e5a4d3f1
|
|
@ -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: '已取消完成出库',
|
||||
})
|
||||
})
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue