|
|
@@ -52,6 +52,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
orderId: '',
|
|
|
+ jumpType: '',
|
|
|
settlementInfo: {},
|
|
|
orderList: [],
|
|
|
groupMealFields,
|
|
|
@@ -74,15 +75,16 @@ export default {
|
|
|
onLoad(options) {
|
|
|
if (options.id) {
|
|
|
this.orderId = options.id;
|
|
|
+ this.jumpType = options.jumpType;
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.getDetails(this.orderId);
|
|
|
+ this.getDetails(this.orderId, this.jumpType);
|
|
|
},
|
|
|
methods: {
|
|
|
- getDetails(id) {
|
|
|
+ getDetails(id, jumpType) {
|
|
|
api
|
|
|
- .settlementDetail(id)
|
|
|
+ .settlementDetail({ settlementId: id, jumpType })
|
|
|
.then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
this.settlementInfo = res.data.result || {};
|