fix: 退料接收管理-退料状态下拉项

This commit is contained in:
binbin_pan 2024-04-20 14:46:12 +08:00
parent 4520e6d1bf
commit 09f732bae0
4 changed files with 83 additions and 29 deletions

View File

@ -654,13 +654,25 @@
proList: [],
taskStatusList: [
{
name: '待审核',
name: '待退料审核',
id: '37',
},
{
name: '已审核',
name: '退料审核通过',
id: '38',
},
{
name: '退料核查中',
id: '39',
},
{
name: '退料完成',
id: '40',
},
{
name: '退料审核驳回',
id: '101',
},
],
rowObj: {},
loadingType: '',
@ -677,6 +689,7 @@
methods: {
getTree() {
listPartTypeApi().then((response) => {
console.log('🚀 ~ listPartTypeApi ~ response:', response);
this.deptList = response.data
})
},

View File

@ -657,13 +657,25 @@
proList: [],
taskStatusList: [
{
name: '待审核',
name: '待退料审核',
id: '37',
},
{
name: '已审核',
name: '退料审核通过',
id: '38',
},
{
name: '退料核查中',
id: '39',
},
{
name: '退料完成',
id: '40',
},
{
name: '退料审核驳回',
id: '101',
},
],
rowObj: {},
loadingType: '',

View File

@ -142,30 +142,33 @@
</el-table-column>
<el-table-column label="退料状态" align="center" :show-overflow-tooltip="true">
<template slot-scope="scope">
<!-- 状态
37-待审核
38-已审核-->
<el-button type="text" v-if="scope.row.applyStatus == '0'">待审核</el-button>
<el-button type="text" v-if="scope.row.taskStatus == '37'">
待审核
</el-button>
<el-button
type="text"
style="color: #67c23a"
v-if="
scope.row.applyStatus == '1' ||
scope.row.applyStatus == '3'
"
>退料通过</el-button>
<!-- <el-button type="text" v-if="scope.row.taskStatus == '39'">
v-if="scope.row.taskStatus == '38'"
>
已审核
</el-button>
<el-button type="text" v-if="scope.row.taskStatus == '39'">
退料核查
</el-button>-->
</el-button>
<el-button
type="text"
style="color: red"
v-if="
scope.row.applyStatus == '2' ||
scope.row.applyStatus == '4'
"
>退料驳回</el-button>
<el-button type="text" style="color: #67c23a" v-if="scope.row.taskStatus == '40'">退料完成</el-button>
style="color: #67c23a"
v-if="scope.row.taskStatus == '40'"
>
退料完成
</el-button>
<el-button
type="text"
style="color: #67c23a"
v-if="scope.row.taskStatus == '101'"
>
退料驳回
</el-button>
</template>
</el-table-column>
<el-table-column label="不通过原因" align="center" prop="dictName" :show-overflow-tooltip="true" />
@ -513,13 +516,25 @@ export default {
proList: [],
taskStatusList: [
{
name: '待审核',
name: '待退料审核',
id: '37',
},
{
name: '已审核',
name: '退料审核通过',
id: '38',
},
{
name: '退料核查中',
id: '39',
},
{
name: '退料完成',
id: '40',
},
{
name: '退料审核驳回',
id: '101',
},
],
loadingList: [],
loadingTotal: 0,
@ -548,6 +563,7 @@ export default {
console.log('paramsparamsparams', params)
const res = await getBackAuditList(params)
this.typeList = res.data.rows
console.log('🚀 ~ getList ~ this.typeList:', this.typeList);
this.total = res.data.total
this.loading = false
} catch (error) {}
@ -576,6 +592,7 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.dateRange = []
this.timeRange = []
// this.resetForm("queryForm");
this.$refs.queryForm.resetFields()
this.initSelectData()

View File

@ -253,13 +253,25 @@
proList: [],
taskStatusList: [
{
name: '待审核',
id: '37'
name: '待退料审核',
id: '37',
},
{
name: '已审核',
id: '38'
}
name: '退料审核通过',
id: '38',
},
{
name: '退料核查中',
id: '39',
},
{
name: '退料完成',
id: '40',
},
{
name: '退料审核驳回',
id: '101',
},
],
rowObj: {},
};