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.

134 lines
3.5 KiB

12 months ago
<template>
11 months ago
<view :class="detail.scaned?'scan_view':''" style="background-color: #ffffff; border-bottom: 1upx solid #EEEEEE;">
<view class="uni-flex uni-row space-between" style="align-items: center">
12 months ago
<!-- uni-inline-item 暂时拿掉-->
<view style="word-break: break-all;">
<container v-if="isShowContainer&&detail.containerNumber!=''" :container="detail.containerNumber"></container>
12 months ago
<pack v-if="isShowPack" :packingCode="detail.packingNumber"></pack>
<batch v-if="isShowBatch" :batch="detail.batch"></batch>
12 months ago
<location v-if="isShowFromLocation" title="来源库位" :locationCode="detail.fromLocationCode">
12 months ago
</location>
<!-- <to-location></to-location> -->
<to-location v-if="isShowToLocation" title="目标库位" :locationCode="detail.toLocationCode">
</to-location>
12 months ago
</view>
<view style="word-break: break-all;">
11 months ago
<!-- ||detail.handleQty==0 可能会有扫描到0的情况-->
11 months ago
<recommend-qty v-if="detail.handleQty==null || detail.handleQty==undefined" :dataContent="detail"
:isShowStdPack="false" :isShowStatus="isShowStatus"></recommend-qty>
12 months ago
<compare-qty v-else :dataContent="detail" :recommendQty="Number(detail.qty)"
:handleQty="Number(detail.handleQty)" :isShowStdPack="false">
</compare-qty>
11 months ago
<view class="uni-flex uni-row center" style="vertical-align:center ;" v-if="isDevlement()">
11 months ago
<text style="font-size: 30rpx;color: #2979ff; " @click="copy">复制采购</text>
12 months ago
<text style="font-size: 30rpx;color: #2979ff;" @click="copyPro">|制品</text>
12 months ago
</view>
</view>
</view>
</view>
</template>
<script>
import container from '@/mycomponents/container/container.vue'
12 months ago
import pack from '@/mycomponents/balance/pack.vue'
import location from '@/mycomponents/balance/location.vue'
import toLocation from '@/mycomponents/balance/toLocation.vue'
12 months ago
import batch from '@/mycomponents/balance/batch.vue'
import recommendQty from '@/mycomponents/qty/recommendQty.vue'
import compareQty from '@/mycomponents/qty/compareQty.vue'
export default {
components: {
container,
12 months ago
pack,
location,
toLocation,
12 months ago
batch,
recommendQty,
compareQty
},
data() {
return {
}
},
props: {
detail: {
type: Object,
default: {}
},
isShowContainer: {
type: Boolean,
default: true
},
12 months ago
isShowPack: {
type: Boolean,
default: true
},
isShowBatch: {
type: Boolean,
default: true
},
12 months ago
isShowFromLocation: {
12 months ago
type: Boolean,
default: true
},
12 months ago
isShowToLocation: {
type: Boolean,
default: false
},
isShowStatus: {
type: Boolean,
default: true
},
12 months ago
12 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({
12 months ago
title: '复制采购标签成功',
12 months ago
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(
12 months ago
res => {
uni.showToast({
12 months ago
title: '复制制品标签成功',
12 months ago
icon: 'none'
})
}
)
},
11 months ago
isDevlement() {
return getApp().globalData.isDevelopment;
12 months ago
}
}
}
</script>
<style>
</style>