You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
3.0 KiB

10 months ago
<template>
<view :class="detail.scaned?'scan_view':''" style="background-color: #ffffff;">
<view class="uni-flex uni-row space-between uni-inline-item">
<view>
<pack v-if="isShowPack" :packingCode="detail.packingNumber"></pack>
<batch v-if="isShowBatch" :batch="detail.batch"></batch>
10 months ago
<location v-if="isShowFromLocation"
10 months ago
title="来源库位"
:locationCode="detail.fromLocationCode">
10 months ago
</location>
10 months ago
<view class="">
10 months ago
<location v-if="isShowToLocation&&detail.toLocationCode!=null"
10 months ago
title="目标库位"
:locationCode="detail.toLocationCode">
</location>
</view>
10 months ago
10 months ago
</view>
<view>
<recommend-qty v-if="detail.handleQty==null || detail.handleQty==undefined" :dataContent="detail"
:isShowStdPack="false"></recommend-qty>
<compare-qty v-else :dataContent="detail" :recommendQty="Number(detail.qty)"
:handleQty="Number(detail.handleQty)" :isShowStdPack="false">
</compare-qty>
<view class="" style="font-size: 40rpx;">
10 months ago
<!-- <u-button @click="copy" size="mini" >复制采购标签</u-button> -->
<text style="font-size: 10rpx;color: #2979ff;" @click="copy">复制采购标签</text>
10 months ago
</view>
<view class="" style="font-size: 40rpx;">
10 months ago
<!-- <u-button @click="copyPro" size="mini" type="primary" >复制制造标签</u-button> -->
<text style="font-size: 10rpx;color: #2979ff;" @click="copyPro">复制制品标签</text>
10 months ago
</view>
</view>
</view>
</view>
</template>
<script>
import pack from '@/mycomponents/balance/pack.vue'
import location from '@/mycomponents/balance/location.vue'
import batch from '@/mycomponents/balance/batch.vue'
import recommendQty from '@/mycomponents/qty/recommendQty.vue'
import compareQty from '@/mycomponents/qty/compareQty.vue'
export default {
components: {
pack,
location,
batch,
recommendQty,
compareQty
},
data() {
return {
}
},
props: {
detail: {
type: Object,
default: {}
},
isShowPack: {
type: Boolean,
default: true
},
isShowBatch: {
type: Boolean,
default: true
},
10 months ago
isShowFromLocation: {
10 months ago
type: Boolean,
default: true
},
10 months ago
isShowToLocation: {
type: Boolean,
default: false
},
10 months ago
10 months ago
locationTitle: {
type: String,
default: '库位'
},
},
watch: {
},
methods: {
copy() {
// HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100
var content = "HPQ;V1.0;I" + this.detail.itemCode + ";P" + this.detail.packingNumber + ";B" + this.detail
.batch + ";Q" + this.detail.qty
this.$copyText(content).then(
res => {
uni.showToast({
title: '复制成功',
icon: 'none'
})
}
)
},
copyPro() {
// HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100
var content = "HMQ;V1.0;I" + this.detail.itemCode + ";P" + this.detail.packingNumber + ";B" + this.detail
.batch + ";Q" + this.detail.qty
this.$copyText(content).then(
10 months ago
res => {
uni.showToast({
title: '复制成功',
icon: 'none'
})
}
)
10 months ago
}
}
}
</script>
<style>
</style>