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

96 lines
1.6 KiB
Vue
Raw Normal View History

2024-06-01 04:25:22 +00:00
<template>
<tpx-scroll-view v-model:resObject="modelRes"
>
<view class="">
<view class="pb-20">
<u-row>
<u-col span="8">
2024-06-24 16:48:36 +00:00
<text class="font-weight">{{customTabelConf.head[0] || '运单号'}}</text>
2024-06-01 04:25:22 +00:00
</u-col>
<u-col span="4">
2024-06-24 16:48:36 +00:00
<text class="font-weight">{{customTabelConf.head[1] || '扫描时间'}}</text>
2024-06-01 04:25:22 +00:00
</u-col>
</u-row>
</view>
<view v-for="(item, index) in modelRes.list" class="yditem">
<u-row>
<u-col span="8">
<text class="">{{item.billCode}}</text>
</u-col>
<u-col span="4">
2024-06-18 16:16:19 +00:00
<u-row>
<text class="clr-sub">{{item.scanDate}}</text>
<u-row v-if="canDel" @click="handleDel(index)" justify="center" custom-style="height: 60rpx;width: 60rpx;">
<u-icon name="trash" size="32"></u-icon>
</u-row>
</u-row>
2024-06-01 04:25:22 +00:00
</u-col>
</u-row>
</view>
</view>
</tpx-scroll-view>
</template>
<script>
export default {
components: { },
computed: {
modelRes: {
get(){
return this.resData
}
},
},
props: {
resData: {
default () {
return { list: [] }
}
2024-06-18 16:16:19 +00:00
},
canDel: {
default () {
return false
}
2024-06-24 16:48:36 +00:00
},
customTabelConf: {
default () {
return {
head: []
}
}
2024-06-01 04:25:22 +00:00
}
},
data() {
return {
}
},
created() {
},
onHide() {
},
unmounted() {
},
methods: {
2024-06-18 16:16:19 +00:00
handleDel(index){
this.modelRes.list.splice(index, 1)
}
2024-06-01 04:25:22 +00:00
}
}
</script>
<style lang="scss">
@import '@/common/uni-nvue.scss';
</style>
<style scoped lang="scss">
2024-07-07 08:25:24 +00:00
.yditem{
padding: 20rpx 0;
border-top: 2px solid #F6F6F6;
&:last-child{
padding-bottom: 0;
}
}
2024-06-01 04:25:22 +00:00
</style>