fix: 2059 退料驳回后,重新驳回提交建议代入驳回前的数据,便于驳回后重新提交

This commit is contained in:
binbin_pan 2024-06-13 14:54:44 +08:00
parent 25469976a4
commit 82e59ac310
4 changed files with 14 additions and 6 deletions

View File

@ -274,6 +274,9 @@ export default {
rejectId: { rejectId: {
type: [String, Number], type: [String, Number],
}, },
agreementId: {
type: [String, Number],
},
}, },
data() { data() {
const validatePhone = (rule, value, callback) => { const validatePhone = (rule, value, callback) => {
@ -485,7 +488,7 @@ export default {
// } // }
if (this.rejectId) { if (this.rejectId) {
this.rowId = this.rejectId this.rowId = this.rejectId
this.returnNoteByApply(this.rejectId) this.GetViewByApply({ id: this.rejectId, agreementId: this.agreementId})
} }
getInfo().then((res) => { getInfo().then((res) => {
this.companyId = res.user.companyId this.companyId = res.user.companyId
@ -550,8 +553,8 @@ export default {
}, },
// //
async GetViewByApply(Id) { async GetViewByApply(params) {
const res = await materialReturnNoteByApply({ id: Id }) const res = await materialReturnNoteByApply({ id: params.id, agreementId: params.agreementId})
const data = res.data[0] const data = res.data[0]
// console.log(data) // console.log(data)
// this.queryParams.taskId = data.taskId // this.queryParams.taskId = data.taskId

View File

@ -782,7 +782,7 @@ export default {
// isEdit: true, // isEdit: true,
// }, // },
// }) // })
this.$emit('rejectSubmit', row.id) this.$emit('rejectSubmit', { id: row.id, agreementId: row.agreementId })
}, },
// 退 // 退
handleUpdateOrder() { handleUpdateOrder() {

View File

@ -9,6 +9,7 @@
<component <component
:is="isShowComponent" :is="isShowComponent"
:rejectId="rejectId" :rejectId="rejectId"
:agreementId="agreementId"
@returnApply="returnApply" @returnApply="returnApply"
@rejectSubmit="rejectSubmit" @rejectSubmit="rejectSubmit"
@goBackPage="goBack" @goBackPage="goBack"
@ -33,6 +34,7 @@ export default {
isShowComponent: 'Home', isShowComponent: 'Home',
pageContent: '', pageContent: '',
rejectId: '', rejectId: '',
agreementId: '',
isView: false, isView: false,
} }
}, },
@ -44,8 +46,9 @@ export default {
this.isShowComponent = 'AddReturn' this.isShowComponent = 'AddReturn'
}, },
// //
rejectSubmit(id) { rejectSubmit({id, agreementId}) {
this.rejectId = id this.rejectId = id
this.agreementId = agreementId
this.pageContent = '编辑退料任务' this.pageContent = '编辑退料任务'
this.isShowComponent = 'AddReturn' this.isShowComponent = 'AddReturn'
}, },

View File

@ -310,6 +310,7 @@
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="passAll" @click="passAll"
v-if="showHandle"
>批量通过</el-button >批量通过</el-button
> >
</el-col> </el-col>
@ -320,6 +321,7 @@
size="mini" size="mini"
@click="refusedAll" @click="refusedAll"
:disabled="multiple" :disabled="multiple"
v-if="showHandle"
>批量不通过</el-button >批量不通过</el-button
> >
</el-col> </el-col>
@ -512,7 +514,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
keyWord: '', keyWord: '',
typeId: '', typeId: undefined,
}, },
// //
form: {}, form: {},