|
@@ -1,9 +1,9 @@
|
|
|
<script setup>
|
|
|
const show = defineModel('show', { type: Boolean, default: false })
|
|
|
const props=defineProps({
|
|
|
- userId:{
|
|
|
- type:String,
|
|
|
- default:''
|
|
|
+ userRow:{
|
|
|
+ type:Object,
|
|
|
+ default:{}
|
|
|
},
|
|
|
})
|
|
|
const emits = defineEmits(["success"])
|
|
@@ -28,29 +28,42 @@ const options = ref([
|
|
|
])
|
|
|
|
|
|
import { ref, reactive } from 'vue'
|
|
|
-import {apiCustomerUser} from '@/api/customer'
|
|
|
+import {apiOrderConfig} from '@/api/order'
|
|
|
|
|
|
const tableColumns = [
|
|
|
{
|
|
|
- label:'标题',
|
|
|
- key:'SourceName',
|
|
|
+ label:'订单编号',
|
|
|
+ key:'OrderID',
|
|
|
sortable:false
|
|
|
- },{
|
|
|
- label:'产品类型',
|
|
|
- key:'SourceId',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label:'商品名称',
|
|
|
+ key:'ProductName',
|
|
|
sortable:false
|
|
|
},{
|
|
|
- label:'品种',
|
|
|
- key:'PermissionNames',
|
|
|
+ label:'商品类型',
|
|
|
+ key:'ProductType',
|
|
|
sortable:false,
|
|
|
},{
|
|
|
- label:'最近一次点击时间',
|
|
|
- key:'ClickTime',
|
|
|
- sortable:true
|
|
|
+ label:'有效期',
|
|
|
+ key:'ReadCount',
|
|
|
+ sortable:false
|
|
|
},{
|
|
|
- label:'停留时长',
|
|
|
- key:'ReadDurationMinutes',
|
|
|
- sortable:true
|
|
|
+ label:'订单状态',
|
|
|
+ key:'Status',
|
|
|
+ sortable:false
|
|
|
+ },{
|
|
|
+ label:'支付金额',
|
|
|
+ key:'ReadCount',
|
|
|
+ sortable:false
|
|
|
+ },{
|
|
|
+ label:'下单时间',
|
|
|
+ key:'RefundFinishTime',
|
|
|
+ sortable:false
|
|
|
+ },{
|
|
|
+ label:'支付渠道',
|
|
|
+ key:'PaymentWay',
|
|
|
+ sortable:false
|
|
|
}
|
|
|
]
|
|
|
|
|
@@ -60,8 +73,8 @@ const tableQuery = reactive({
|
|
|
})
|
|
|
const tableData = ref([])
|
|
|
function getTableData(){
|
|
|
- apiCustomerUser.getUserDetail({
|
|
|
- UserId:props.userId,
|
|
|
+ apiOrderConfig.getProductOrderList({
|
|
|
+ TemplateUserId:props.userRow.TemplateUserId,
|
|
|
}).then(res=>{
|
|
|
if(res.Ret!==200) return
|
|
|
tableData.value = res.Data.List||[]
|
|
@@ -99,6 +112,9 @@ function handleSelectChange(){
|
|
|
>
|
|
|
<div class="dialog-content">
|
|
|
<div class="dialog-content-top">
|
|
|
+ <div class="title">基本信息</div>
|
|
|
+ <div class="info">{{ props.userRow.RealName }} {{ props.userRow.Mobile }}</div>
|
|
|
+ <div class="title">商品订单</div>
|
|
|
</div>
|
|
|
<div class="table">
|
|
|
<el-table :data="tableData" @sort-change="handleSortChange">
|
|
@@ -128,11 +144,15 @@ function handleSelectChange(){
|
|
|
.dialog-content {
|
|
|
// padding: 10px 50px 50px 50px;
|
|
|
.dialog-content-top {
|
|
|
- display: flex;
|
|
|
- justify-content: flex-start;
|
|
|
- padding-bottom: 30px;
|
|
|
- :deep(.el-cascader-node__label) {
|
|
|
- max-width: 111px;
|
|
|
+ // padding-bottom: 10px;
|
|
|
+ color: #333;
|
|
|
+ .title {
|
|
|
+ font-size: 16px;
|
|
|
+ padding-bottom: 10px;
|
|
|
+ }
|
|
|
+ .info {
|
|
|
+ font-size: 14px;
|
|
|
+ margin-bottom: 20px;
|
|
|
}
|
|
|
}
|
|
|
.table {
|