|
|
@ -42,7 +42,7 @@ |
|
|
|
<view class="og-list"> |
|
|
|
<view class="ol-item" v-for="(e, i) in waitdeliverLs" :key="i" @click="goodsItemClick(e)"> |
|
|
|
<view class="oi-select"> |
|
|
|
<image v-if="selectedSendOutIds.includes(e.product_id)" mode="aspectFit" src="/subpackage/order/static/images/selected.png"></image> |
|
|
|
<image v-if="selectedSendOutIds.includes(e.product_cart_id)" mode="aspectFit" src="/subpackage/order/static/images/selected.png"></image> |
|
|
|
</view> |
|
|
|
<image mode="aspecfFill" :src="e.product_imgs"></image> |
|
|
|
<view class="oi-info"> |
|
|
@ -177,14 +177,14 @@ export default { |
|
|
|
// 选中发货 id列表 |
|
|
|
selectedSendOutIds(){ |
|
|
|
let { selectedSendOutLs } = this; |
|
|
|
return selectedSendOutLs.map(e=>e.product_id); |
|
|
|
return selectedSendOutLs.map(e=>e.product_cart_id); |
|
|
|
}, |
|
|
|
// 待发货列表全选 |
|
|
|
isSelectedAllSendOut(){ |
|
|
|
let { selectedSendOutIds, waitdeliverLs } = this; |
|
|
|
let _unLs = []; // 未被选中列表 |
|
|
|
if(!waitdeliverLs.length)return false; |
|
|
|
_unLs = waitdeliverLs.filter(ele => !selectedSendOutIds.includes(ele.product_id)); |
|
|
|
_unLs = waitdeliverLs.filter(ele => !selectedSendOutIds.includes(ele.product_cart_id)); |
|
|
|
return _unLs.length == 0; |
|
|
|
} |
|
|
|
}, |
|
|
@ -230,10 +230,10 @@ export default { |
|
|
|
this.getInfo(order_no); |
|
|
|
}, |
|
|
|
confirmSendOutBtn: util.debounce(function(){ |
|
|
|
let { order_no, selectedSendOutLs, selectedWarehouse, sendOutMethod, curlogisticsName, logisticsOrderNum, sendOutRemark } = this; |
|
|
|
let { order_no, selectedSendOutLs, selectedSendOutIds, selectedWarehouse, sendOutMethod, curlogisticsName, logisticsOrderNum, sendOutRemark } = this; |
|
|
|
let _query = { |
|
|
|
order_no, |
|
|
|
ids: selectedSendOutLs.map(ele=>ele.product_cart_id), |
|
|
|
ids: selectedSendOutIds, |
|
|
|
esh_type: selectedWarehouse.erp_type, |
|
|
|
esh_id: selectedWarehouse.erp_id, |
|
|
|
logistics_type: sendOutMethod, |
|
|
@ -285,7 +285,7 @@ export default { |
|
|
|
}, |
|
|
|
goodsItemClick(e){ |
|
|
|
let { selectedSendOutIds, selectedSendOutLs } = this; |
|
|
|
if(selectedSendOutIds.includes(e.product_id))return this.selectedSendOutLs = selectedSendOutLs.filter(ele=>ele.product_id !=e.product_id); |
|
|
|
if(selectedSendOutIds.includes(e.product_cart_id))return this.selectedSendOutLs = selectedSendOutLs.filter(ele=>ele.product_cart_id !=e.product_cart_id); |
|
|
|
this.selectedSendOutLs = [ ...selectedSendOutLs, e]; |
|
|
|
}, |
|
|
|
tabChange(idx){ |
|
|
|