Commit eddea253 authored by 张海景's avatar 张海景

update:修改生产排产传参

parent a276f141
...@@ -549,11 +549,12 @@ export default { ...@@ -549,11 +549,12 @@ export default {
}, },
handleSumbitScheduleList() { handleSumbitScheduleList() {
if (this.$refs.orderListRef.ids&&this.$refs.orderListRef.ids.length > 0) { if (this.$refs.orderListRef.ids&&this.$refs.orderListRef.ids.length > 0) {
let formData = new FormData() let formData = this.$refs.orderListRef.selectedRows.forEach(item => {
this.$refs.orderListRef.ids.forEach(item => { return {
formData.append('workorderIds', item) workorderId: item.workorderId,
arrangeCode: item.arrangeCode
}
}); });
console.log(this.$refs.orderListRef.ids, 'ids')
makeSchedule(formData).then(response => { makeSchedule(formData).then(response => {
this.$modal.msgSuccess("排程成功"); this.$modal.msgSuccess("排程成功");
this.scheduleVisible = false this.scheduleVisible = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment