Commit 19c4fba6 authored by 张海景's avatar 张海景

update:修改生产排产代码补上消失的代码

parent 2393ad26
...@@ -548,12 +548,13 @@ export default { ...@@ -548,12 +548,13 @@ export default {
}); });
}, },
handleSumbitScheduleList() { handleSumbitScheduleList() {
if (this.$refs.orderListRef.ids&&this.$refs.orderListRef.ids.length > 0) { if (this.$refs.orderListRef.selectedRows&&this.$refs.orderListRef.selectedRows.length > 0) {
let formData = new FormData() let formData = this.$refs.orderListRef.selectedRows.map(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
...@@ -568,7 +569,7 @@ export default { ...@@ -568,7 +569,7 @@ export default {
this.$modal this.$modal
.confirm('是否确认下达生产?') .confirm('是否确认下达生产?')
.then( ()=> { .then( ()=> {
if(!(this.ids&this.ids.length > 0)){ if(!(this.ids&&this.ids.length > 0)){
this.$modal.msgError("请至少选择一条数据") this.$modal.msgError("请至少选择一条数据")
return return
} }
......
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