|
|
@ -5,20 +5,19 @@ |
|
|
|
<view class="" |
|
|
|
style="padding-left: 20rpx;padding-right: 20rpx; padding-top: 10rpx;padding-bottom: 10rpx;"> |
|
|
|
<view class="" style="font-size: 35rpx;"> |
|
|
|
发货单号 : |
|
|
|
发货单号 :{{dataContent.asnNumber}} |
|
|
|
</view> |
|
|
|
<view class="" style="font-size: 35rpx;"> |
|
|
|
<text>供应商 : </text> |
|
|
|
供应商代码 :{{dataContent.supplierCode}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<u-line /> |
|
|
|
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> |
|
|
|
<view class=""> |
|
|
|
<comRecordDetailCard :dataContent="item" :index="index" :settingParam="jobContent" |
|
|
|
<comRecordDetailCard :dataContent="item" :index="index" |
|
|
|
@remove="updateData" @updateData="updateData" @openDetail="openDetail"> |
|
|
|
</comRecordDetailCard> |
|
|
|
</view> |
|
|
|
<u-line /> |
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
|
</view> |
|
|
@ -80,9 +79,8 @@ |
|
|
|
id: '', |
|
|
|
receiptJob: {}, |
|
|
|
received: false, |
|
|
|
|
|
|
|
scanCount: 0, |
|
|
|
jobContent: {}, //任务内容 |
|
|
|
dataContent: {}, //任务内容 |
|
|
|
subList: [], //接口返回的任务subList |
|
|
|
detailSource: [], //绑定在页面上的数据源 |
|
|
|
locationTypeList: [], |
|
|
@ -121,7 +119,7 @@ |
|
|
|
that.showMessage('未获取到详情'); |
|
|
|
} else { |
|
|
|
if (res.data.subList.length > 0) { |
|
|
|
that.jobContent = res.data; |
|
|
|
that.dataContent = res.data; |
|
|
|
that.subList = res.data.subList; |
|
|
|
that.subList.forEach(res => { |
|
|
|
res.packingNumber = res.toPackingNumber |
|
|
@ -181,18 +179,6 @@ |
|
|
|
calcHandleQty(this.detailSource); |
|
|
|
}, |
|
|
|
|
|
|
|
scanLocationCode(location, code) { |
|
|
|
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => { |
|
|
|
this.toLocationCode = code |
|
|
|
this.detailSource.forEach(item => { |
|
|
|
item.subList.forEach(detail => { |
|
|
|
detail.toLocationCode = code |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
showMessage(message) { |
|
|
|
setTimeout(r => { |
|
|
|
this.$refs.comMessage.showMessage(message, res => { |
|
|
|