emis-sapp/components/buns-order-templates/bo-operator-tmp.vue
2024-05-31 18:42:15 +08:00

89 lines
1.6 KiB
Vue

<template>
<view>
<u-row justify="between">
<view>
<text class="clr-sub pr-10">操作员</text>
<text>{{userInfo.empName}}({{userInfo.ownerSiteName}})</text>
</view>
<view>
<slot name="titleRight"></slot>
</view>
</u-row>
<u-row justify="between" custom-style="margin-top: 20rpx;">
<u-col span="6" align="center">
<view class="clr-prm font-34 font-weight">{{staticInfo.parcelQty}}</view>
<view class="mt-20 clr-sub font-28">总件数</view>
</u-col>
<u-col span="6" align="center">
<view class="clr-prm font-34 font-weight">{{staticInfo.billWeight}}</view>
<view class="mt-20 clr-sub font-28">总重量(KG)</view>
</u-col>
</u-row>
</view>
</template>
<script>
import getCdnUrl from "@/common/getCdnUrl"
import { goto, goBack, setClipboardData, confirmModal, showLoading } from "@/common/untool"
export default {
components: { },
computed: {
modelInfo: {
get(){
return this.value
}
},
userInfo() {
return this.$store.getters.userInfo
},
staticInfo(){
let data = {
parcelQty: 0,
billWeight: 0,
}
this.list.map(t=> {
data.parcelQty += t.parcelQty
data.billWeight += t.billWeight
})
return data
}
},
props: {
list: {
default () {
return []
}
}
},
data() {
return {
}
},
created() {
},
onHide() {
},
unmounted() {
},
methods: {
goto,
getCdnUrl,
}
}
</script>
<style lang="scss">
@import '@/common/uni-nvue.scss';
page {
background-color: #F6F6F6;
height: 100% !important;
}
</style>
<style scoped lang="scss">
</style>