退料模块,权限菜单优化

This commit is contained in:
BianLzhaoMin 2024-06-04 18:09:12 +08:00
parent 76476069d5
commit 24f60a356a
7 changed files with 32 additions and 15 deletions

View File

@ -742,11 +742,13 @@ export default {
const res = await submitRefuseBackApply(params)
if (res.code == 200) {
this.$message({ type: 'success', message: res.msg })
setTimeout(() => {
this.$tab.closeOpenPage({
path: '/claimAndRefund/return/returnApply',
})
}, 1000)
this.$emit('goBackPage')
// setTimeout(() => {
// this.$tab.closeOpenPage({
// path: '/claimAndRefund/return/returnApply',
// })
// }, 1000)
}
} else {
let params = {
@ -760,11 +762,12 @@ export default {
const res = await submitBackApplyApi(params)
if (res.code == 200) {
this.$message({ type: 'success', message: res.msg })
setTimeout(() => {
this.$tab.closeOpenPage({
path: '/claimAndRefund/return/returnApply',
})
}, 1000)
this.$emit('goBackPage')
// setTimeout(() => {
// this.$tab.closeOpenPage({
// path: '/claimAndRefund/return/returnApply',
// })
// }, 1000)
}
}
}

View File

@ -124,7 +124,7 @@
plain
size="mini"
@click="handleAdd"
v-hasPermi="['return:review']"
v-hasPermi="['return:apply:apply']"
>退料申请</el-button
>
</el-col>
@ -145,6 +145,7 @@
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['return:apply:export']"
>导出</el-button
>
</el-col>
@ -280,6 +281,7 @@
type="text"
icon="el-icon-zoom-in"
@click="handleSee(scope.row, 'see')"
v-hasPermi="['return:apply:view']"
>查看</el-button
>
<!-- <el-button
@ -296,6 +298,7 @@
type="text"
v-if="scope.row.taskStatus == '101'"
@click="handleUpdate(scope.row)"
v-hasPermi="['return:apply:reject:submit']"
>驳回提交</el-button
>
<el-button
@ -303,12 +306,14 @@
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['return:apply:del']"
>删除</el-button
>
<el-button
size="mini"
type="text"
@click="handlePrint(scope.row)"
v-hasPermi="['return:apply:list']"
>退料单</el-button
>
</template>

View File

@ -11,6 +11,7 @@
:rejectId="rejectId"
@returnApply="returnApply"
@rejectSubmit="rejectSubmit"
@goBackPage="goBack"
/>
</div>
</template>

View File

@ -121,7 +121,7 @@
size="mini"
@click="handleExam"
:disabled="multiple"
v-hasPermi="['auditing:batch']"
v-hasPermi="['return:auditing:auditing:batch']"
>批量审核</el-button
>
</el-col>
@ -141,6 +141,7 @@
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['return:auditing:export']"
>导出</el-button
>
</el-col>
@ -277,6 +278,7 @@
type="text"
icon="el-icon-zoom-in"
@click="handleSee(scope.row, 'see')"
v-hasPermi="['return:auditing:view']"
>查看</el-button
>
<el-button
@ -284,7 +286,7 @@
type="text"
icon="el-icon-edit"
v-if="scope.row.applyStatus == '0'"
v-hasPermi="['return:auditing']"
v-hasPermi="['return:auditing:auditing']"
@click="handleUpdate(scope.row, 'update')"
>
审批
@ -304,6 +306,7 @@
type="text"
icon="el-icon-tickets"
@click="handlePrint(scope.row)"
v-hasPermi="['return:auditing:list']"
>退料单</el-button
>
</template>

View File

@ -804,7 +804,8 @@ export default {
endBack(param).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess('操作成功')
this.back()
// this.back()
this.$$emit('goBackPage')
}
})
}

View File

@ -133,6 +133,7 @@
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['return:receive:export']"
>导出</el-button
>
</el-col>
@ -213,6 +214,7 @@
size="medium"
type="text"
icon="el-icon-zoom-in"
v-hasPermi="['return:receive:view']"
@click="handleSee(scope.row, 'see')"
>查看</el-button
>
@ -221,7 +223,7 @@
type="text"
@click="handleReturn(scope.row, 'see')"
icon="el-icon-d-arrow-right"
v-hasPermi="['return:btn']"
v-hasPermi="['return:receive:handler']"
v-if="scope.row.taskStatus != '40'"
>
退料
@ -231,6 +233,7 @@
type="text"
icon="el-icon-tickets"
@click="handlePrint(scope.row)"
v-hasPermi="['return:receive:list']"
>退料单</el-button
>
</template>

View File

@ -13,6 +13,7 @@
:rejectTaskId="rejectTaskId"
@receiveView="receiveView"
@receiveReturn="receiveReturn"
@goBackPage="goBack"
/>
</div>
</template>