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

View File

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

View File

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

View File

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