|
|
|
@ -691,6 +691,7 @@
|
|
|
|
|
import { getDriverList } from '@/api/basicdata/basicdataDriverArtery'; |
|
|
|
|
import { selectStockArticleList } from '@/api/distribution/distributionStockArticle'; |
|
|
|
|
import { getInventoryList } from '@/api/distribution/distributionStockList'; |
|
|
|
|
import { getDeliveryList } from '@/api/distribution/distributionDeliveryList'; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
@ -786,11 +787,22 @@
|
|
|
|
|
serveType:[], |
|
|
|
|
//外协数据来源 |
|
|
|
|
tripartiteSourceData:[], |
|
|
|
|
deliveryListId:'', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
this.$watch( |
|
|
|
|
() => this.$route.params, |
|
|
|
|
() => { |
|
|
|
|
this.fetchData(); |
|
|
|
|
}, |
|
|
|
|
// 组件创建完后获取数据, |
|
|
|
|
// 此时 data 已经被 observed 了 |
|
|
|
|
{ immediate: true } |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
this.getDictionary(); |
|
|
|
|
this.getFork(); |
|
|
|
|
this.getTeam(); |
|
|
|
@ -892,6 +904,13 @@
|
|
|
|
|
console.log(res.data.data); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
fetchData() { |
|
|
|
|
this.error = this.post = null; |
|
|
|
|
this.loading = true; |
|
|
|
|
if (this.$route.query.id) { |
|
|
|
|
this.deliveryListId = this.$route.query.id; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
viewDriverInfo() { |
|
|
|
|
console.log(this.driverInfo.length); |
|
|
|
|
console.log(this.vehticleInfo.length); |
|
|
|
@ -1273,7 +1292,52 @@
|
|
|
|
|
// this.$refs.table.clearSelection(); |
|
|
|
|
}, |
|
|
|
|
onLoad(page, params = {}) { |
|
|
|
|
console.log("》》》》》》》》》》》》》》》",this.deliveryListId); |
|
|
|
|
if (this.deliveryListId){ |
|
|
|
|
getDeliveryList(this.deliveryListId).then(res=>{ |
|
|
|
|
let data = res.data.data; |
|
|
|
|
|
|
|
|
|
Object.assign(this.form,data.reservationInfo) |
|
|
|
|
Object.assign(this.form,data.stockupInfo) |
|
|
|
|
this.form.deliveryType = '2'; |
|
|
|
|
this.serveType = data.reservationInfo.serveType.split(","); |
|
|
|
|
if (data.stockupInfo){ |
|
|
|
|
this.loadAndUnload = data.stockupInfo.teamResponsibility.split(","); |
|
|
|
|
} |
|
|
|
|
this.form.loader = data.stockupInfo.loaderName; |
|
|
|
|
this.form.forklift = data.stockupInfo.forkliftName; |
|
|
|
|
this.form.remarks = data.stockupInfo.remarks; |
|
|
|
|
|
|
|
|
|
if (data.kind === "1"){ |
|
|
|
|
//自主配送 |
|
|
|
|
let self = data.deliverySelfVO; |
|
|
|
|
let vehicle = this.vehicleData; |
|
|
|
|
console.log("___________________vahicle",vahicle); |
|
|
|
|
|
|
|
|
|
vehicle.forEach(item=>{ |
|
|
|
|
console.log("___________________",item); |
|
|
|
|
self.forEach(s=>{ |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
}else { |
|
|
|
|
this.aaa = false; |
|
|
|
|
this.bbb = true; |
|
|
|
|
//外协配送 |
|
|
|
|
} |
|
|
|
|
this.vehicleData.forEach(item=>{ |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(">>>>>>>>this.form",this.form); |
|
|
|
|
console.log(res.data.data); |
|
|
|
|
this.orderData = data.stockArticleList; |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
this.loading = false; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|