zhang_li
3 months ago
7 changed files with 106 additions and 103 deletions
@ -1,112 +1,104 @@ |
|||||
<template> |
<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; --> |
<!-- border-bottom: 1upx solid #EEEEEE; --> |
||||
<view class="uni-flex uni-row space-between" style="align-items: center"> |
<view class="uni-flex uni-row space-between" style="align-items: center"> |
||||
<!-- uni-inline-item 暂时拿掉--> |
<!-- 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 v-if="isShowContainer&&dataContent.containerNumber!=null" :container="dataContent.containerNumber"> |
||||
</container> --> |
</container> --> |
||||
<pack v-if="isShowPack && dataContent.packingNumber!=null" :packingCode="dataContent.packingNumber"> |
<pack v-if="isShowPack && dataContent.packingNumber != null" :packingCode="dataContent.packingNumber"> </pack> |
||||
</pack> |
<batch v-if="isShowBatch && dataContent.batch != null" :batch="dataContent.batch"></batch> |
||||
<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"> |
<!-- <to-location></to-location> --> |
||||
</location> |
<to-location v-if="isShowToLocation" title="目标库位" :locationCode="dataContent.toLocationCode"> </to-location> |
||||
<!-- <to-location></to-location> --> |
</view> |
||||
<to-location v-if="isShowToLocation" title="目标库位" :locationCode="dataContent.toLocationCode"> |
<view class="uni-flex uni-row" style="word-break: break-all; align-items: center"> |
||||
</to-location> |
<!-- ||dataContent.handleQty==0 可能会有扫描到0的情况--> |
||||
</view> |
<recommend-qty v-if="dataContent.handleQty == null || dataContent.handleQty == undefined" :dataContent="dataContent" :isShowStdPack="false" :isShowStatus="isShowStatus"></recommend-qty> |
||||
<view class="uni-flex uni-row " style="word-break: break-all;align-items:center"> |
<compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)" :handleQty="Number(dataContent.handleQty)" :isShowStdPack="isShowStatus"> </compare-qty> |
||||
<!-- ||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> |
|
||||
|
|
||||
<view v-if="isDevlement()"> |
<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> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</template> |
</template> |
||||
|
|
||||
<script setup lang="ts"> |
<script setup lang="ts"> |
||||
import container from '@/mycomponents/container/container.vue' |
import container from '@/mycomponents/container/container.vue' |
||||
import pack from '@/mycomponents/balance/pack.vue' |
import pack from '@/mycomponents/balance/pack.vue' |
||||
import location from '@/mycomponents/balance/location.vue' |
import location from '@/mycomponents/balance/location.vue' |
||||
import toLocation from '@/mycomponents/balance/toLocation.vue' |
import toLocation from '@/mycomponents/balance/toLocation.vue' |
||||
import batch from '@/mycomponents/balance/batch.vue' |
import batch from '@/mycomponents/balance/batch.vue' |
||||
import recommendQty from '@/mycomponents/qty/recommendQty.vue' |
import recommendQty from '@/mycomponents/qty/recommendQty.vue' |
||||
import compareQty from '@/mycomponents/qty/compareQty.vue' |
import compareQty from '@/mycomponents/qty/compareQty.vue' |
||||
import config from '@/static/config.js' |
import config from '@/static/config.js' |
||||
const props = defineProps({ |
|
||||
dataContent: { |
|
||||
type: Object, |
|
||||
default: null |
|
||||
}, |
|
||||
isShowContainer: { |
|
||||
type: Boolean, |
|
||||
default: true |
|
||||
}, |
|
||||
isShowPack: { |
|
||||
type: Boolean, |
|
||||
default: true |
|
||||
}, |
|
||||
isShowBatch: { |
|
||||
type: Boolean, |
|
||||
default: true |
|
||||
}, |
|
||||
isShowFromLocation: { |
|
||||
type: Boolean, |
|
||||
default: true |
|
||||
}, |
|
||||
isShowToLocation: { |
|
||||
type: Boolean, |
|
||||
default: false |
|
||||
}, |
|
||||
isShowStatus: { |
|
||||
type: Boolean, |
|
||||
default: true |
|
||||
}, |
|
||||
|
|
||||
locationTitle: { |
const props = defineProps({ |
||||
type: String, |
dataContent: { |
||||
default: '库位' |
type: Object, |
||||
} |
default: null |
||||
}) |
}, |
||||
const copy = () => { |
isShowContainer: { |
||||
// HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100 |
type: Boolean, |
||||
var content = "HPQ;V1.0;I" + props.dataContent.itemCode + ";P" + props.dataContent.packingNumber + ";B" + props.dataContent |
default: true |
||||
.batch + ";Q" + props.dataContent.qty |
}, |
||||
|
isShowPack: { |
||||
|
type: Boolean, |
||||
|
default: true |
||||
|
}, |
||||
|
isShowBatch: { |
||||
|
type: Boolean, |
||||
|
default: true |
||||
|
}, |
||||
|
isShowFromLocation: { |
||||
|
type: Boolean, |
||||
|
default: true |
||||
|
}, |
||||
|
isShowToLocation: { |
||||
|
type: Boolean, |
||||
|
default: false |
||||
|
}, |
||||
|
isShowStatus: { |
||||
|
type: Boolean, |
||||
|
default: true |
||||
|
}, |
||||
|
|
||||
uni.setClipboardData({ |
locationTitle: { |
||||
data: content, |
type: String, |
||||
success: () => { |
default: '库位' |
||||
uni.showToast({ |
} |
||||
title: '复制采购标签成功' |
}) |
||||
}) |
const copy = () => { |
||||
} |
// HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100 |
||||
}) |
const content = `HPQ;V1.0;I${props.dataContent.itemCode};P${props.dataContent.packingNumber};B${props.dataContent.batch};Q${props.dataContent.qty}` |
||||
} |
|
||||
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 |
|
||||
|
|
||||
uni.setClipboardData({ |
uni.setClipboardData({ |
||||
data: content, |
data: content, |
||||
success: () => { |
success: () => { |
||||
uni.showToast({ |
uni.showToast({ |
||||
title: '复制制品标签成功' |
title: '复制采购标签成功' |
||||
}) |
}) |
||||
} |
} |
||||
}) |
}) |
||||
} |
} |
||||
const isDevlement = () => { |
const copyPro = () => { |
||||
return config.isDevelopment; |
// HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100 |
||||
} |
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, |
||||
|
success: () => { |
||||
|
uni.showToast({ |
||||
|
title: '复制制品标签成功' |
||||
|
}) |
||||
|
} |
||||
|
}) |
||||
|
} |
||||
|
const isDevlement = () => { |
||||
|
return config.isDevelopment |
||||
|
} |
||||
</script> |
</script> |
||||
|
|
||||
<style> |
<style></style> |
||||
</style> |
|
||||
|
Loading…
Reference in new issue