|
|
@ -20,14 +20,14 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<view v-for="(loacation,index) in item.Locations"> |
|
|
|
<view v-for="(loacation,locatonIndex) in item.Locations"> |
|
|
|
<view> |
|
|
|
<view class="uni-flex uni-row space-between"> |
|
|
|
<!-- 推荐库位 --> |
|
|
|
<location :locationCode="loacation.fromLocationCode"> |
|
|
|
</location> |
|
|
|
</view> |
|
|
|
<view v-for="(batch,index) in loacation.Batchs"> |
|
|
|
<view v-for="(batch,batchIndex) in loacation.Batchs"> |
|
|
|
<recommend-balance style='margin-left: 0rpx;' :detail="batch" :isShowLocation="false" |
|
|
|
:isShowPack="batch.packingNumber!=null && batch.packingNumber!=''"> |
|
|
|
</recommend-balance> |
|
|
@ -37,9 +37,9 @@ |
|
|
|
扫描 |
|
|
|
</view> |
|
|
|
<view class="uni-flex uni-column scan_view" style="width: 100%;"> |
|
|
|
<view v-for="(record,index) in batch.Records"> |
|
|
|
<view v-for="(record,recordIndex) in batch.Records"> |
|
|
|
<uni-swipe-action ref="swipeAction"> |
|
|
|
<uni-swipe-action-item @click="swipeClick($event,batch,record,index)" |
|
|
|
<uni-swipe-action-item @click="swipeClick($event,batch,record,recordIndex,batchIndex,loacation.Batchs,locatonIndex,item.Locations)" |
|
|
|
:right-options="settingParam.allowModifyQty=='TRUE'?scanOptions:removeOptions"> |
|
|
|
<handle-balance :detail="record" :isShowLocation="false" |
|
|
|
:isShowBatch="batch.packingNumber!=null"> |
|
|
@ -136,12 +136,16 @@ |
|
|
|
}) |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
swipeClick(e, batch, record, index) { |
|
|
|
swipeClick(e, batch, |
|
|
|
record,recordIndex, |
|
|
|
batchIndex, |
|
|
|
Batchs, |
|
|
|
locatonIndex, |
|
|
|
Locations) { |
|
|
|
if (e.content.text == "编辑") { |
|
|
|
this.edit(batch, record) |
|
|
|
} else if (e.content.text == "移除") { |
|
|
|
this.remove(batch, record, index) |
|
|
|
this.remove(batch, record, recordIndex,batchIndex,Batchs,locatonIndex,Locations) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@ -164,11 +168,17 @@ |
|
|
|
this.showItem = item; |
|
|
|
this.$refs.receiptHint.openScanPopup() |
|
|
|
}, |
|
|
|
remove(batch, record, index) { |
|
|
|
remove(batch, record, recordIndex,batchIndex,Batchs,locatonIndex,Locations) { |
|
|
|
this.$refs.message.showQuestionMessage("确定移除扫描信息?", |
|
|
|
res => { |
|
|
|
if (res) { |
|
|
|
batch.Records.splice(index, 1); |
|
|
|
batch.Records.splice(recordIndex, 1); |
|
|
|
if(batch.Records.length==0&&Batchs[batchIndex].isNewAdd){ |
|
|
|
Batchs.splice(batchIndex,1) |
|
|
|
} |
|
|
|
if(batch.Records.length==0&&Locations[locatonIndex].isNewAdd){ |
|
|
|
Locations.splice(locatonIndex,1) |
|
|
|
} |
|
|
|
this.resizeCollapse(); |
|
|
|
this.$emit('updateData', record) |
|
|
|
} |
|
|
|