|
|
@@ -51,6 +51,7 @@ export default {
|
|
|
showTooltip: null,
|
|
|
tooltipTimer: null,
|
|
|
orderFields,
|
|
|
+ orderType:''
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -69,13 +70,16 @@ export default {
|
|
|
if (options.id) {
|
|
|
this.orderId = options.id;
|
|
|
}
|
|
|
+ if (options.orderType) {
|
|
|
+ this.orderType = options.orderType;
|
|
|
+ }
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.getOrderDetails(this.orderId);
|
|
|
+ this.getOrderDetails(this.orderId,this.orderType);
|
|
|
},
|
|
|
methods: {
|
|
|
- getOrderDetails(id) {
|
|
|
- api.orderClearDetail(id).then((res) => {
|
|
|
+ getOrderDetails(id,orderType) {
|
|
|
+ api.orderClearDetail(id,orderType).then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
this.orderInfo = res.data.result;
|
|
|
}
|