|
|
|
@ -693,10 +693,10 @@
|
|
|
|
|
import { getDriverList } from '@/api/basicdata/basicdataDriverArtery'; |
|
|
|
|
import { |
|
|
|
|
selectStockArticleInfoList, |
|
|
|
|
selectDiscussStockArticleInfoList, getZeroOrderDetail |
|
|
|
|
selectDiscussStockArticleInfoList, getZeroOrderDetail, getPackageListByStockArticleId |
|
|
|
|
} from '@/api/distribution/distributionStockArticle'; |
|
|
|
|
import { getInventoryList } from '@/api/distribution/distributionStockList'; |
|
|
|
|
import { getDeliveryList, updateDeliveryList } from '@/api/distribution/distributionDeliveryList'; |
|
|
|
|
import { getDeliveryList, updateDeliveryList,getPackageListByDeliveryIdAndOrderId} from '@/api/distribution/distributionDeliveryList'; |
|
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
|
import dayjs from 'dayjs'; |
|
|
|
|
import { entryNum, updateEntryNum } from '@/api/distribution/distributionParcelNumber'; |
|
|
|
@ -1217,39 +1217,47 @@
|
|
|
|
|
//查询该订单下所有的包件信息 |
|
|
|
|
this.loading = true; |
|
|
|
|
this.obj = row; |
|
|
|
|
let page = this.page; |
|
|
|
|
console.log('++++++++++++', row); |
|
|
|
|
if (this.deliveryListId) { |
|
|
|
|
//编辑 |
|
|
|
|
let params = {}; |
|
|
|
|
console.log('^^^^^^^^', row); |
|
|
|
|
//这里订单的对象中应该存在三个数组,一个数组是该订单下的所有包件细信息 |
|
|
|
|
//一个数组是该订单被选择使用的包件信息 |
|
|
|
|
//还有一个就是正在操作的包件信息 |
|
|
|
|
let packageInfo = row.parcelListVOS; |
|
|
|
|
if (row.packageList) { |
|
|
|
|
let packageListInfo = row.packageList; |
|
|
|
|
packageInfo.forEach((item, index) => { |
|
|
|
|
packageListInfo.forEach(p => { |
|
|
|
|
if (item.id === p.id) { |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.$refs.packageList.toggleRowSelection(this.packageData[index], true); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
this.packageData = row.parcelListVOS; |
|
|
|
|
getPackageListByDeliveryIdAndOrderId(page.currentPage,page.pageSize,row.id).then(res=>{ |
|
|
|
|
console.log("getPackageListByDeliveryIdAndOrderId--------------------->",res); |
|
|
|
|
}) |
|
|
|
|
// //编辑 |
|
|
|
|
// let params = {}; |
|
|
|
|
// console.log('^^^^^^^^', row); |
|
|
|
|
// //这里订单的对象中应该存在三个数组,一个数组是该订单下的所有包件细信息 |
|
|
|
|
// //一个数组是该订单被选择使用的包件信息 |
|
|
|
|
// //还有一个就是正在操作的包件信息 |
|
|
|
|
// let packageInfo = row.parcelListVOS; |
|
|
|
|
// if (row.packageList) { |
|
|
|
|
// let packageListInfo = row.packageList; |
|
|
|
|
// packageInfo.forEach((item, index) => { |
|
|
|
|
// packageListInfo.forEach(p => { |
|
|
|
|
// if (item.id === p.id) { |
|
|
|
|
// this.$nextTick(() => { |
|
|
|
|
// this.$refs.packageList.toggleRowSelection(this.packageData[index], true); |
|
|
|
|
// }); |
|
|
|
|
// } |
|
|
|
|
// }); |
|
|
|
|
// }); |
|
|
|
|
// } |
|
|
|
|
// this.packageData = row.parcelListVOS; |
|
|
|
|
} else { |
|
|
|
|
//新增 |
|
|
|
|
//默认打开包件信息,包件列表处于全选状态 |
|
|
|
|
let params = {}; |
|
|
|
|
this.packageData = row.parcelListVOS; |
|
|
|
|
this.packageData.forEach((item, index) => { |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.$refs.packageList.toggleRowSelection(this.packageData[index], true); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
console.log('^^^^^^^^', row); |
|
|
|
|
getPackageListByStockArticleId(page.currentPage,page.pageSize,row.id).then(res=>{ |
|
|
|
|
console.log("________--------------------->",res); |
|
|
|
|
}) |
|
|
|
|
// //新增 |
|
|
|
|
// //默认打开包件信息,包件列表处于全选状态 |
|
|
|
|
// let params = {}; |
|
|
|
|
// this.packageData = row.parcelListVOS; |
|
|
|
|
// this.packageData.forEach((item, index) => { |
|
|
|
|
// this.$nextTick(() => { |
|
|
|
|
// this.$refs.packageList.toggleRowSelection(this.packageData[index], true); |
|
|
|
|
// }); |
|
|
|
|
// }); |
|
|
|
|
// console.log('^^^^^^^^', row); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
this.loading = false; |
|
|
|
|
this.isShowPackage = true; |
|
|
|
|