fix: 2059 退料驳回后,重新驳回提交建议代入驳回前的数据,便于驳回后重新提交
This commit is contained in:
parent
25469976a4
commit
82e59ac310
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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() {
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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: {},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue