|
|
|
@ -662,11 +662,12 @@
|
|
|
|
|
<el-table-column |
|
|
|
|
type="selection" |
|
|
|
|
v-if="option.selection" |
|
|
|
|
:selectable="checkPackage" |
|
|
|
|
width="55" |
|
|
|
|
align="center" |
|
|
|
|
> |
|
|
|
|
<!-- <el-checkbox v-model="checked"></el-checkbox>--> |
|
|
|
|
<!-- :selectable="checkPackage"--> |
|
|
|
|
|
|
|
|
|
<!-- <el-checkbox v-model="checked"></el-checkbox>--> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column type="expand" v-if="option.expand" align="center"></el-table-column> |
|
|
|
|
<el-table-column v-if="option.index" label="序号" type="index" width="60" align="center"> |
|
|
|
@ -1101,6 +1102,9 @@
|
|
|
|
|
//这里应该先对订单下的所有包件信息进行获取,然后结合查询出预约单下以选择的包件信息进行勾选状态的回显 |
|
|
|
|
//查询该订单下所有的包件信息 |
|
|
|
|
this.loading = true; |
|
|
|
|
this.obj = row; |
|
|
|
|
console.log("++++++++++++",this.obj); |
|
|
|
|
|
|
|
|
|
if (this.deliveryListId){ |
|
|
|
|
//编辑 |
|
|
|
|
let params={}; |
|
|
|
@ -1109,7 +1113,6 @@
|
|
|
|
|
//TODO 这里还需要对包件的状态进行过滤 this.query.id = 1; |
|
|
|
|
// this.query.typeService = 1; |
|
|
|
|
// this.query.genre = '1'; |
|
|
|
|
this.obj = row; |
|
|
|
|
getPackageList(Object.assign(params,this.query)).then(res=>{ |
|
|
|
|
console.log(res.data.data); |
|
|
|
|
let data =res.data.data; |
|
|
|
@ -1162,15 +1165,13 @@
|
|
|
|
|
//这里就需要对原来包件是否发生变化进行处理 |
|
|
|
|
//如果发生变化该订单下的某一字段就会发生改变,后台根据该字段进行判断是否发生包件选择的变化 |
|
|
|
|
console.log(this.obj.parcelListVOS); |
|
|
|
|
console.log(this.selectionList); |
|
|
|
|
this.orderData.forEach(o=>{ |
|
|
|
|
this.selectionList.forEach(p=>{ |
|
|
|
|
if (p.stockArticleId === o.id){ |
|
|
|
|
o.packageList.push(p); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
console.log(this.obj.parcelListVOS); |
|
|
|
|
console.log("___________",this.obj); |
|
|
|
|
this.orderData.forEach(item=>{ |
|
|
|
|
if (item.id===this.obj.id){ |
|
|
|
|
item.packageList = this.selectionList; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
console.log( "**********",this.orderData); |
|
|
|
|
// if (this.selectionList.length ===this.obj.parcelListVOS.length){ |
|
|
|
|
// //这里就需要考虑,如果选中包件的数组长度和原来不同,那么包件信息必定发生变化 |
|
|
|
|
// //当包件长度一致需要判断包件数组的内容是否一致,然后进行字段的改变和赋值 |
|
|
|
|