emis-app/components/buns-order-templates/bo-operator-tmp.vue

100 lines
2.1 KiB
Vue
Raw Normal View History

2024-02-01 09:58:33 +00:00
<template>
<view>
<u-row justify="between">
<view>
<text class="clr-sub pr-10">操作员</text>
2024-06-11 15:15:40 +00:00
<text>{{userInfo.empName}}
<!-- ({{userInfo.ownerSiteName}}) -->
</text>
2024-02-01 09:58:33 +00:00
</view>
<view>
<slot name="titleRight"></slot>
</view>
</u-row>
2024-06-12 15:41:48 +00:00
<u-row v-if="false" justify="between" custom-style="flex-wrap:wrap;">
2024-06-11 15:15:40 +00:00
<u-col span="6" align="center">
<view class="mt-20 clr-prm font-34 font-weight">{{staticInfo.piaoNum}}</view>
<view class="mt-10 clr-sub font-28">总票数</view>
</u-col>
2024-02-01 12:34:03 +00:00
<u-col span="6" align="center">
2024-06-08 17:31:07 +00:00
<view class="mt-20 clr-prm font-34 font-weight">{{staticInfo.parcelQty}}</view>
<view class="mt-10 clr-sub font-28">总件数</view>
2024-02-01 12:34:03 +00:00
</u-col>
<u-col span="6" align="center">
2024-06-08 17:31:07 +00:00
<view class="mt-20 clr-prm font-34 font-weight">{{staticInfo.billWeight}}</view>
<view class="mt-21 clr-sub font-28">总重量(KG)</view>
</u-col>
<u-col span="6" align="center">
<view class="mt-20 clr-prm font-34 font-weight">{{staticInfo.totalVolume}}</view>
<view class="mt-10 clr-sub font-28">总体积(m³)</view>
</u-col>
2024-02-01 09:58:33 +00:00
</u-row>
</view>
</template>
<script>
import getCdnUrl from "@/common/getCdnUrl"
import { goto, goBack, setClipboardData, confirmModal, showLoading } from "@/common/untool"
export default {
components: { },
computed: {
2024-05-07 16:36:56 +00:00
modelInfo: {
2024-02-01 09:58:33 +00:00
get(){
return this.value
}
2024-05-07 16:36:56 +00:00
},
userInfo() {
return this.$store.getters.userInfo
2024-05-10 01:25:24 +00:00
},
staticInfo(){
let data = {
parcelQty: 0,
billWeight: 0,
2024-06-08 17:31:07 +00:00
totalVolume: 0,
piaoNum: this.list?.length || 0
2024-05-10 01:25:24 +00:00
}
this.list.map(t=> {
data.parcelQty += t.parcelQty
data.billWeight += t.billWeight
2024-06-08 17:31:07 +00:00
data.totalVolume += t.totalVolume
2024-05-10 01:25:24 +00:00
})
2024-06-08 17:31:07 +00:00
2024-05-10 01:25:24 +00:00
return data
2024-02-01 09:58:33 +00:00
}
},
props: {
2024-05-10 01:25:24 +00:00
list: {
2024-02-01 09:58:33 +00:00
default () {
2024-05-10 01:25:24 +00:00
return []
2024-02-01 09:58:33 +00:00
}
}
},
data() {
return {
}
},
created() {
},
onHide() {
},
unmounted() {
},
methods: {
goto,
getCdnUrl,
}
}
</script>
<style lang="scss">
@import '@/common/uni-nvue.scss';
</style>
<style scoped lang="scss">
</style>