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.
56 lines
875 B
56 lines
875 B
<template>
|
|
<view>
|
|
<view class="uni-flex uni-row">
|
|
<text>{{qty}}/{{stdPackQty}}({{stdPackUom}})</text>
|
|
<text v-if="allowEdit" @click="openQtyEdit()">编辑</text>
|
|
</view>
|
|
<win-qty-edit ref="qtyEdit" :allQty="qty"></win-qty-edit>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import winQtyEdit from '@/mycomponents/wincom/unitCom/winQtyEdit.vue'
|
|
export default {
|
|
components: {
|
|
winQtyEdit
|
|
},
|
|
data() {
|
|
return {}
|
|
},
|
|
props: {
|
|
allowEdit: {
|
|
type: Boolean,
|
|
default: true
|
|
},
|
|
itemCode: {
|
|
type: String,
|
|
default: ""
|
|
},
|
|
qty: {
|
|
type: Number,
|
|
default: 0
|
|
},
|
|
uom: {
|
|
type: String,
|
|
default: ""
|
|
},
|
|
stdPackQty: {
|
|
type: Number,
|
|
default: 0
|
|
},
|
|
stdPackUom: {
|
|
type: String,
|
|
default: ""
|
|
},
|
|
},
|
|
methods: {
|
|
openQtyEdit() {
|
|
this.$refs.qtyEdit.openEdit();
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
|
|
<style>
|
|
</style>
|
|
|