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"
|
|
|
|
|
:title="item.usernames"
|
2026-02-07 13:39:08 +08:00
|
|
|
@click="handleDetail(item)"
|
2026-02-05 17:28:43 +08:00
|
|
|
>
|
|
|
|
|
<view class="context">
|
|
|
|
|
<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>
|
|
|
|
|
<view class="label">
|
|
|
|
|
<text>区域:</text>
|
|
|
|
|
<text>{{ item.areaName }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</uni-card>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2026-02-07 13:39:08 +08:00
|
|
|
import {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";
|
|
|
|
|
|
|
|
|
|
defineOptions({
|
|
|
|
|
name: 'ListItem'
|
|
|
|
|
})
|
|
|
|
|
|
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) => {
|
|
|
|
|
proxy.$tab.navigateTo('/pages/work/BusinessApproval/OrderDetail')
|
|
|
|
|
}
|
2026-02-05 17:28:43 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
</style>
|