|
|
@ -1,30 +1,24 @@ |
|
|
|
<template> |
|
|
|
<view :class="dataContent.scaned?'scan_view':''" style="background-color: #fff; "> |
|
|
|
<view :class="dataContent.scaned ? 'scan_view' : ''" style="background-color: #fff"> |
|
|
|
<!-- border-bottom: 1upx solid #EEEEEE; --> |
|
|
|
<view class="uni-flex uni-row space-between" style="align-items: center"> |
|
|
|
<!-- uni-inline-item 暂时拿掉--> |
|
|
|
<view style="word-break: break-all;"> |
|
|
|
<view style="word-break: break-all"> |
|
|
|
<!-- <container v-if="isShowContainer&&dataContent.containerNumber!=null" :container="dataContent.containerNumber"> |
|
|
|
</container> --> |
|
|
|
<pack v-if="isShowPack && dataContent.packingNumber!=null" :packingCode="dataContent.packingNumber"> |
|
|
|
</pack> |
|
|
|
<pack v-if="isShowPack && dataContent.packingNumber != null" :packingCode="dataContent.packingNumber"> </pack> |
|
|
|
<batch v-if="isShowBatch && dataContent.batch != null" :batch="dataContent.batch"></batch> |
|
|
|
<location v-if="isShowFromLocation" title="来源库位" :locationCode="dataContent.fromLocationCode"> |
|
|
|
</location> |
|
|
|
<location v-if="isShowFromLocation" title="来源库位" :locationCode="dataContent.fromLocationCode"> </location> |
|
|
|
<!-- <to-location></to-location> --> |
|
|
|
<to-location v-if="isShowToLocation" title="目标库位" :locationCode="dataContent.toLocationCode"> |
|
|
|
</to-location> |
|
|
|
<to-location v-if="isShowToLocation" title="目标库位" :locationCode="dataContent.toLocationCode"> </to-location> |
|
|
|
</view> |
|
|
|
<view class="uni-flex uni-row" style="word-break: break-all; align-items: center"> |
|
|
|
<!-- ||dataContent.handleQty==0 可能会有扫描到0的情况--> |
|
|
|
<recommend-qty v-if="dataContent.handleQty==null || dataContent.handleQty==undefined" |
|
|
|
:dataContent="dataContent" :isShowStdPack="false" :isShowStatus="isShowStatus"></recommend-qty> |
|
|
|
<compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)" |
|
|
|
:handleQty="Number(dataContent.handleQty)" :isShowStdPack="false"> |
|
|
|
</compare-qty> |
|
|
|
<recommend-qty v-if="dataContent.handleQty == null || dataContent.handleQty == undefined" :dataContent="dataContent" :isShowStdPack="false" :isShowStatus="isShowStatus"></recommend-qty> |
|
|
|
<compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)" :handleQty="Number(dataContent.handleQty)" :isShowStdPack="isShowStatus"> </compare-qty> |
|
|
|
|
|
|
|
<view v-if="isDevlement()"> |
|
|
|
<image style='width: 26rpx;height: 26rpx;margin-top: 44rpx;' src="/static/icons/icon_copy.svg" alt="" @click="copy"/> |
|
|
|
<image style="width: 26rpx; height: 26rpx; margin-top: 44rpx" src="/static/icons/icon_copy.svg" alt="" @click="copy" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -40,6 +34,7 @@ |
|
|
|
import recommendQty from '@/mycomponents/qty/recommendQty.vue' |
|
|
|
import compareQty from '@/mycomponents/qty/compareQty.vue' |
|
|
|
import config from '@/static/config.js' |
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
|
dataContent: { |
|
|
|
type: Object, |
|
|
@ -77,8 +72,7 @@ |
|
|
|
}) |
|
|
|
const copy = () => { |
|
|
|
// HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100 |
|
|
|
var content = "HPQ;V1.0;I" + props.dataContent.itemCode + ";P" + props.dataContent.packingNumber + ";B" + props.dataContent |
|
|
|
.batch + ";Q" + props.dataContent.qty |
|
|
|
const content = `HPQ;V1.0;I${props.dataContent.itemCode};P${props.dataContent.packingNumber};B${props.dataContent.batch};Q${props.dataContent.qty}` |
|
|
|
|
|
|
|
uni.setClipboardData({ |
|
|
|
data: content, |
|
|
@ -91,8 +85,7 @@ |
|
|
|
} |
|
|
|
const copyPro = () => { |
|
|
|
// HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100 |
|
|
|
var content = "HMQ;V1.0;I" + props.dataContent.itemCode + ";P" + props.dataContent.packingNumber + ";B" + props.dataContent |
|
|
|
.batch + ";Q" + props.dataContent.qty |
|
|
|
const content = `HMQ;V1.0;I${props.dataContent.itemCode};P${props.dataContent.packingNumber};B${props.dataContent.batch};Q${props.dataContent.qty}` |
|
|
|
|
|
|
|
uni.setClipboardData({ |
|
|
|
data: content, |
|
|
@ -104,9 +97,8 @@ |
|
|
|
}) |
|
|
|
} |
|
|
|
const isDevlement = () => { |
|
|
|
return config.isDevelopment; |
|
|
|
return config.isDevelopment |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style> |
|
|
|
</style> |
|
|
|
<style></style> |
|
|
|