|
@@ -34,7 +34,7 @@
|
|
|
</u-cell-group>
|
|
|
<view class="textBox">
|
|
|
<view>订单编号:</view>
|
|
|
- <view>{{form.ordNo}}</view>
|
|
|
+ <view>{{form.srcOrdNo}}</view>
|
|
|
</view>
|
|
|
<view class="textBox">
|
|
|
<view>下单时间:</view>
|
|
@@ -42,7 +42,7 @@
|
|
|
</view>
|
|
|
<view class="textBox">
|
|
|
<view>商品金额:</view>
|
|
|
- <view>{{form.totalMoney}}</view>
|
|
|
+ <view>{{form.salesAmount}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -93,11 +93,11 @@
|
|
|
</view> -->
|
|
|
<view class="textBox">
|
|
|
<view>本次付款:</view>
|
|
|
- <view>{{form.salesAmount}}</view>
|
|
|
+ <view>{{form.totalMoney}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view style="height: 160rpx;"></view>
|
|
|
+ <view style="height: 160rpx;"></view>
|
|
|
<view v-if="isDisabled"
|
|
|
style="width: 100%;position: fixed;bottom: 0;background-color: #fff;border-top: 1rpx solid #ccc;padding-bottom: env(safe-area-inset-bottom);z-index: 10;">
|
|
|
<view style="width: 100%;display: flex;font-size: 24rpx;height: 80rpx;">
|
|
@@ -169,18 +169,19 @@
|
|
|
console.log(234324324);
|
|
|
this.form = res.data
|
|
|
console.log(this.form);
|
|
|
- if (this.form.status == '已发货') {
|
|
|
+ if (this.form.status == '已发货' ) {
|
|
|
_this.isDisabled = true;
|
|
|
_this.order = "确认收货";
|
|
|
} else if (this.form.status == '录入' || this.form.status == '退款中' || this.form.status == '已取消' ||
|
|
|
- this.form.status == '退款请核' || this.form.status == '已收货' || this.form.status == '待发货' || this
|
|
|
- .form.status == '待确认') {
|
|
|
+ this.form.status == '退款请核' || this.form.status == '待发货' || this.form.status == '待确认') {
|
|
|
_this.order = "申请退款";
|
|
|
_this.isDisabled = true;
|
|
|
} else {
|
|
|
_this.isDisabled = false;
|
|
|
}
|
|
|
-
|
|
|
+ if(this.form.status == '退款请核'){
|
|
|
+ _this.isDisabled = false
|
|
|
+ }
|
|
|
uni.hideLoading();
|
|
|
}).catch(err => {
|
|
|
uni.hideLoading();
|
|
@@ -202,7 +203,7 @@
|
|
|
title: '退款中',
|
|
|
mask: true
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
checkOrder({
|
|
|
id: _this.form.id,
|
|
|
pageLabel: "销售订单",
|
|
@@ -237,41 +238,38 @@
|
|
|
console.log(123);
|
|
|
if (this.order == "申请退款") {
|
|
|
this.requestRefund()
|
|
|
- }
|
|
|
- // if (this.order == "申请退款") {
|
|
|
- // uni.showLoading({
|
|
|
- // title: '退款中',
|
|
|
- // mask: true
|
|
|
- // });
|
|
|
- // checkOrder({
|
|
|
- // id: this.form.id,
|
|
|
- // pageLabel: "销售订单",
|
|
|
- // pageStatus: "this.$store.getters.domSaleStatus",
|
|
|
- // url: "/tirePartsMall/salesManagement/saleOrder/index",
|
|
|
- // }).then(res => {
|
|
|
- // uni.showToast({
|
|
|
- // icon: "none",
|
|
|
- // title: '提交申请成功',
|
|
|
- // mask: true
|
|
|
- // });
|
|
|
- // let _this = this
|
|
|
- // setTimeout(function() {
|
|
|
- // // appDetail({
|
|
|
- // // id: res.data.id
|
|
|
- // // }).then(res => {
|
|
|
- // // this.form = res.data
|
|
|
- // // console.log(this.form);
|
|
|
- // // }).catch(err => {
|
|
|
- // // uni.hideLoading();
|
|
|
- // // })
|
|
|
- // if (res.code == 200) {
|
|
|
- // _this.isDisabled = false
|
|
|
- // }
|
|
|
- // uni.hideLoading();
|
|
|
- // }, 1000);
|
|
|
- // })
|
|
|
- // }
|
|
|
- else {
|
|
|
+ // uni.showLoading({
|
|
|
+ // title: '退款中',
|
|
|
+ // mask: true
|
|
|
+ // });
|
|
|
+ // checkOrder({
|
|
|
+ // id: this.form.id,
|
|
|
+ // pageLabel: "销售订单",
|
|
|
+ // pageStatus: "this.$store.getters.domSaleStatus",
|
|
|
+ // url: "/tirePartsMall/salesManagement/saleOrder/index",
|
|
|
+ // }).then(res => {
|
|
|
+ // uni.showToast({
|
|
|
+ // icon: "none",
|
|
|
+ // title: '提交申请成功',
|
|
|
+ // mask: true
|
|
|
+ // });
|
|
|
+ // let _this = this
|
|
|
+ // setTimeout(function() {
|
|
|
+ // // appDetail({
|
|
|
+ // // id: res.data.id
|
|
|
+ // // }).then(res => {
|
|
|
+ // // this.form = res.data
|
|
|
+ // // console.log(this.form);
|
|
|
+ // // }).catch(err => {
|
|
|
+ // // uni.hideLoading();
|
|
|
+ // // })
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // _this.isDisabled = false
|
|
|
+ // }
|
|
|
+ // uni.hideLoading();
|
|
|
+ // }, 1000);
|
|
|
+ // })
|
|
|
+ } else {
|
|
|
//确认收货
|
|
|
let this_ = this
|
|
|
uni.showModal({
|