2026-02-05 17:28:43 +08:00
|
|
|
<template>
|
|
|
|
|
<uni-card
|
|
|
|
|
v-for="(item,index) in items"
|
|
|
|
|
:key="item.saleid"
|
|
|
|
|
:class="index % 2 === 0 ? 'card-even' : 'card-odd'"
|
|
|
|
|
:extra="item.contractcode"
|
2026-03-05 14:44:24 +08:00
|
|
|
:title="`${index+1}、${item.usernames}`"
|
2026-02-07 15:12:39 +08:00
|
|
|
style="margin: 0;margin-bottom: 20px"
|
2026-02-07 13:39:08 +08:00
|
|
|
@click="handleDetail(item)"
|
2026-02-05 17:28:43 +08:00
|
|
|
>
|
2026-03-05 16:21:47 +08:00
|
|
|
<template v-slot:title>
|
|
|
|
|
<view
|
|
|
|
|
style="display: flex;align-items: center;font-size: 15px;padding: 10px 0;border-bottom: 1px #EBEEF5 solid;">
|
|
|
|
|
<view style="flex: 1;display: flex;align-items: center;gap:12px">
|
|
|
|
|
<table-checkbox :cell-data="item" @checkboxSelected="handleCheck"/>
|
|
|
|
|
<text>{{ index + 1 }}</text>
|
|
|
|
|
<text>{{ item.usernames }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view>
|
|
|
|
|
<text style="font-size:12px; color:#909399;">{{ item.contractcode }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
2026-02-05 17:28:43 +08:00
|
|
|
<view class="context">
|
2026-03-05 14:44:24 +08:00
|
|
|
<view class="label">
|
|
|
|
|
<text>货主:</text>
|
|
|
|
|
<text>{{ item.companyName }}</text>
|
|
|
|
|
</view>
|
2026-02-05 17:28:43 +08:00
|
|
|
<view class="label">
|
|
|
|
|
<text>状态:</text>
|
|
|
|
|
<text>{{ item.stateText }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="label">
|
|
|
|
|
<text>制单日期:</text>
|
|
|
|
|
<text>{{ formatDate(item.adddate) }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="label">
|
|
|
|
|
<text>订单金额:</text>
|
|
|
|
|
<text>{{ item.contractmoney.toFixed(2) }}</text>
|
|
|
|
|
</view>
|
2026-03-05 16:21:47 +08:00
|
|
|
<!-- <view class="label">-->
|
|
|
|
|
<!-- <text>区域:</text>-->
|
|
|
|
|
<!-- <text>{{ item.areaName }}</text>-->
|
|
|
|
|
<!-- </view>-->
|
2026-02-05 17:28:43 +08:00
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</uni-card>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2026-03-05 16:21:47 +08:00
|
|
|
import {defineEmits, defineOptions, defineProps, getCurrentInstance} from 'vue'
|
2026-02-05 17:28:43 +08:00
|
|
|
import UniCard from "../../../uni_modules/uni-card/components/uni-card/uni-card.vue";
|
|
|
|
|
import {formatDate} from "../../../uni_modules/uni-dateformat/components/uni-dateformat/date-format";
|
2026-03-05 16:21:47 +08:00
|
|
|
import TableCheckbox from "../../../uni_modules/uni-table/components/uni-tr/table-checkbox.vue";
|
2026-02-05 17:28:43 +08:00
|
|
|
|
|
|
|
|
defineOptions({
|
|
|
|
|
name: 'ListItem'
|
|
|
|
|
})
|
|
|
|
|
|
2026-03-05 16:21:47 +08:00
|
|
|
const emit = defineEmits(['checkboxSelected'])
|
|
|
|
|
|
2026-02-07 13:39:08 +08:00
|
|
|
const {proxy} = getCurrentInstance()
|
|
|
|
|
|
2026-02-05 17:28:43 +08:00
|
|
|
const props = defineProps(['items'])
|
2026-02-07 13:39:08 +08:00
|
|
|
|
|
|
|
|
const handleDetail = (raw) => {
|
2026-02-07 15:36:13 +08:00
|
|
|
proxy.$tab.navigateTo(`/pages/work/BusinessApproval/OrderDetail?id=${raw.saleid}`)
|
2026-02-07 13:39:08 +08:00
|
|
|
}
|
2026-03-05 16:21:47 +08:00
|
|
|
|
|
|
|
|
const handleCheck = (e) => {
|
|
|
|
|
emit('checkboxSelected', e)
|
|
|
|
|
}
|
2026-02-05 17:28:43 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2026-03-05 16:21:47 +08:00
|
|
|
:deep() {
|
|
|
|
|
.uni-table-checkbox {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-02-05 17:28:43 +08:00
|
|
|
</style>
|