|
|
@ -1,7 +1,50 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view> |
|
|
<view> |
|
|
<uni-group mode="card"> |
|
|
<view class="back-top"></view> |
|
|
<uni-title type="h1" title="结算单号" align="left" /> |
|
|
<uni-group mode="card" class="card"> |
|
|
|
|
|
<view class="box"> |
|
|
|
|
|
<text class="title">结算单号:</text> |
|
|
|
|
|
<text>{{ orderDetail.orderNo }}</text> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="box"> |
|
|
|
|
|
<text class="title">结算平台:</text> |
|
|
|
|
|
<text>{{ orderDetail.platform }}</text> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="box"> |
|
|
|
|
|
<text class="title">应用:</text> |
|
|
|
|
|
<text>{{ orderDetail.appType }}</text> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="box"> |
|
|
|
|
|
<text class="title">收益类型:</text> |
|
|
|
|
|
<text>{{ orderDetail.type }}</text> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="box"> |
|
|
|
|
|
<text class="title">结算时间:</text> |
|
|
|
|
|
<text>{{ orderDetail.createTime }}</text> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="box"> |
|
|
|
|
|
<text class="title">结算收入:</text> |
|
|
|
|
|
<text style="color: red">¥{{ orderDetail.profit }}</text> 元 |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="box"> |
|
|
|
|
|
<text class="title">下载次数:</text> |
|
|
|
|
|
<text>{{ orderDetail.downloadNum }}</text> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="border"></view> |
|
|
|
|
|
<view class="box"> |
|
|
|
|
|
<text class="title">确认类型:</text> |
|
|
|
|
|
<text>{{ orderDetail.confirmType }}</text> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="box"> |
|
|
|
|
|
<text class="title">确认时间:</text> |
|
|
|
|
|
<text>{{ orderDetail.confirmTime }}</text> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="box"> |
|
|
|
|
|
<text class="title">确认状态:</text> |
|
|
|
|
|
<text>{{ orderDetail.confirmStatus }}</text> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <uni-title type="h1" title="结算单号" align="left" /> |
|
|
<text>{{orderDetail.orderNo}}</text> |
|
|
<text>{{orderDetail.orderNo}}</text> |
|
|
<uni-title type="h1" title="结算平台" align="left" /> |
|
|
<uni-title type="h1" title="结算平台" align="left" /> |
|
|
<text>{{orderDetail.platform}}</text> |
|
|
<text>{{orderDetail.platform}}</text> |
|
|
@ -20,81 +63,112 @@ |
|
|
<uni-title type="h1" title="确认时间" align="left" /> |
|
|
<uni-title type="h1" title="确认时间" align="left" /> |
|
|
<text>{{orderDetail.confirmTime}}</text> |
|
|
<text>{{orderDetail.confirmTime}}</text> |
|
|
<uni-title type="h1" title="确认状态" align="left" /> |
|
|
<uni-title type="h1" title="确认状态" align="left" /> |
|
|
<text>{{orderDetail.confirmStatus}}</text> |
|
|
<text>{{orderDetail.confirmStatus}}</text> --> |
|
|
</uni-group> |
|
|
</uni-group> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
import { |
|
|
queryFrontInAmtDetails, |
|
|
queryFrontInAmtDetails, |
|
|
handleUpdateConfirmType |
|
|
handleUpdateConfirmType, |
|
|
} from '@/api/profit.js' |
|
|
} from "@/api/profit.js"; |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
orderDetail: { |
|
|
orderDetail: { |
|
|
id: 0, |
|
|
id: 0, |
|
|
orderNo: '', |
|
|
orderNo: "", |
|
|
platform: '', |
|
|
platform: "", |
|
|
appType: '', |
|
|
appType: "", |
|
|
type: '', |
|
|
type: "", |
|
|
createTime: '', |
|
|
createTime: "", |
|
|
profit: '', |
|
|
profit: "", |
|
|
downloadNum: 0, |
|
|
downloadNum: 0, |
|
|
confirmType: '', |
|
|
confirmType: "", |
|
|
confirmTime: '', |
|
|
confirmTime: "", |
|
|
confirmStatus: '' |
|
|
confirmStatus: "", |
|
|
} |
|
|
}, |
|
|
} |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
onLoad: function(option) { //option为object类型,会序列化上个页面传递的参数 |
|
|
onLoad: function (option) { |
|
|
this.orderDetail.id = option.id |
|
|
//option为object类型,会序列化上个页面传递的参数 |
|
|
//console.log('this.id',this.id) |
|
|
this.orderDetail.id = option.id; |
|
|
this.queryFrontInAmtDetails(); |
|
|
//console.log('this.id',this.id) |
|
|
}, |
|
|
this.queryFrontInAmtDetails(); |
|
|
methods: { |
|
|
}, |
|
|
|
|
|
methods: { |
|
|
|
|
|
// 查询指定艺术家已入账收益详情 |
|
|
|
|
|
async queryFrontInAmtDetails() { |
|
|
|
|
|
const res = await queryFrontInAmtDetails(this.orderDetail.id); |
|
|
|
|
|
//console.log('res', res) |
|
|
|
|
|
if (res.data.code === 200) { |
|
|
|
|
|
this.orderDetail = res.data.data; |
|
|
|
|
|
} else { |
|
|
|
|
|
uni.showModal({ |
|
|
|
|
|
content: "已入账收益详情数据加载失败!", |
|
|
|
|
|
showCancel: false, |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 查询指定艺术家已入账收益详情 |
|
|
// 艺术家手动确认收益 |
|
|
async queryFrontInAmtDetails() { |
|
|
handleUpdateConfirmType() { |
|
|
const res = await queryFrontInAmtDetails(this.orderDetail.id) |
|
|
const param = { |
|
|
//console.log('res', res) |
|
|
creatorId: this.orderDetail.creatorId, |
|
|
if (res.data.code === 200) { |
|
|
id: this.orderDetail.id, |
|
|
this.orderDetail = res.data.data |
|
|
}; |
|
|
} else { |
|
|
handleUpdateConfirmType(param).then((res) => { |
|
|
uni.showModal({ |
|
|
console.log("res", res); |
|
|
content: '已入账收益详情数据加载失败!', |
|
|
if (res.data.code === 200) { |
|
|
showCancel: false |
|
|
uni.showToast({ |
|
|
}); |
|
|
title: "确认成功!", |
|
|
} |
|
|
duration: 1500, |
|
|
}, |
|
|
icon: "success", |
|
|
|
|
|
}); |
|
|
// 艺术家手动确认收益 |
|
|
} else { |
|
|
handleUpdateConfirmType(){ |
|
|
uni.showModal({ |
|
|
const param = { |
|
|
content: "确认失败!", |
|
|
creatorId: this.orderDetail.creatorId, |
|
|
showCancel: false, |
|
|
id: this.orderDetail.id |
|
|
}); |
|
|
} |
|
|
} |
|
|
handleUpdateConfirmType(param).then(res =>{ |
|
|
}); |
|
|
console.log('res',res) |
|
|
}, |
|
|
if(res.data.code === 200){ |
|
|
}, |
|
|
uni.showToast({ |
|
|
}; |
|
|
title: '确认成功!', |
|
|
|
|
|
duration: 1500, |
|
|
|
|
|
icon: 'success' |
|
|
|
|
|
}); |
|
|
|
|
|
}else{ |
|
|
|
|
|
uni.showModal({ |
|
|
|
|
|
content: '确认失败!', |
|
|
|
|
|
showCancel: false |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style> |
|
|
<style> |
|
|
|
|
|
.back-top { |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
height: 120px; |
|
|
|
|
|
background: #416bdc; |
|
|
|
|
|
} |
|
|
|
|
|
.card { |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
} |
|
|
|
|
|
.uni-group--card { |
|
|
|
|
|
margin-top: 20px !important; |
|
|
|
|
|
} |
|
|
|
|
|
.title { |
|
|
|
|
|
display: block; |
|
|
|
|
|
width: 70px; |
|
|
|
|
|
margin-right: 10px; |
|
|
|
|
|
font-weight: bold; |
|
|
|
|
|
} |
|
|
|
|
|
.box { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
margin-bottom: 20px; |
|
|
|
|
|
} |
|
|
|
|
|
.card view:first-child { |
|
|
|
|
|
margin-top: 10px; |
|
|
|
|
|
} |
|
|
|
|
|
.border { |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
height: 1px; |
|
|
|
|
|
background: rgb(229, 229, 229); |
|
|
|
|
|
margin-bottom: 20px; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|