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

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

parent 2393ad26
......@@ -548,12 +548,13 @@ export default {
});
},
handleSumbitScheduleList() {
if (this.$refs.orderListRef.ids&&this.$refs.orderListRef.ids.length > 0) {
let formData = new FormData()
this.$refs.orderListRef.ids.forEach(item => {
formData.append('workorderIds', item)
if (this.$refs.orderListRef.selectedRows&&this.$refs.orderListRef.selectedRows.length > 0) {
let formData = this.$refs.orderListRef.selectedRows.map(item => {
return {
workorderId: item.workorderId,
arrangeCode: item.arrangeCode
}
});
console.log(this.$refs.orderListRef.ids, 'ids')
makeSchedule(formData).then(response => {
this.$modal.msgSuccess("排程成功");
this.scheduleVisible = false
......@@ -568,7 +569,7 @@ export default {
this.$modal
.confirm('是否确认下达生产?')
.then( ()=> {
if(!(this.ids&this.ids.length > 0)){
if(!(this.ids&&this.ids.length > 0)){
this.$modal.msgError("请至少选择一条数据")
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