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.
121 lines
3.1 KiB
121 lines
3.1 KiB
<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>
|
|
<location v-if="isShowFromLocation" title="来源库位" :locationCode="detail.fromLocationCode">
|
|
</location>
|
|
<location v-if="isShowToLocation" title="目标库位" :locationCode="detail.toLocationCode">
|
|
</location>
|
|
</view>
|
|
<view class="uni-flex uni-row center">
|
|
<!-- <recommend-qty v-if="detail.handleQty==null || detail.handleQty==undefined" :dataContent="detail"
|
|
:isShowStdPack="false"></recommend-qty> -->
|
|
<!-- {{detail.scaned}} -->
|
|
<compare-qty :dataContent="detail" :recommendQty="Number(detail.qty)"
|
|
:isShowRecommendQty="isShowRecommendQty" :isShowStatus="isShowRecommendQty || detail.scaned==true"
|
|
:handleQty="Number(detail.handleQty)" :isShowStdPack="true">
|
|
</compare-qty>
|
|
<view class="uni-flex uni-row" style="vertical-align:center" v-if="isDevlement()">
|
|
<text style="font-size: 30rpx;color: #2979ff; " @click="copy">复制采购</text>
|
|
<text style="font-size: 30rpx;color: #2979ff;" @click="copyPro">|制品</text>
|
|
</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
|
|
},
|
|
isShowFromLocation: {
|
|
type: Boolean,
|
|
default: true
|
|
},
|
|
isShowToLocation: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
|
|
locationTitle: {
|
|
type: String,
|
|
default: '库位'
|
|
},
|
|
isShowRecommendQty: {
|
|
type: Boolean,
|
|
default: true
|
|
}
|
|
|
|
},
|
|
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(
|
|
res => {
|
|
uni.showToast({
|
|
title: '复制制品标签成功',
|
|
icon: 'none'
|
|
})
|
|
}
|
|
)
|
|
},
|
|
isDevlement() {
|
|
return getApp().globalData.isDevelopment;
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|
|
|