|
@@ -1,4 +1,5 @@
|
|
|
<template>
|
|
<template>
|
|
|
|
|
+<view class="app-content">
|
|
|
<view class="order-page">
|
|
<view class="order-page">
|
|
|
<view class="top-view">
|
|
<view class="top-view">
|
|
|
<view class="top-row">
|
|
<view class="top-row">
|
|
@@ -13,14 +14,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view scroll-y class="shop-list">
|
|
<view scroll-y class="shop-list">
|
|
|
<block v-if="!$util.isEmpty(detailsList)">
|
|
<block v-if="!$util.isEmpty(detailsList)">
|
|
|
- <DetailsItem
|
|
|
|
|
- v-for="(item, index) in detailsList"
|
|
|
|
|
- :key="index"
|
|
|
|
|
- :info="item"
|
|
|
|
|
- :isEdit="true"
|
|
|
|
|
- :isCheck="item.checked"
|
|
|
|
|
- @click="checkItemEvent"
|
|
|
|
|
- ></DetailsItem>
|
|
|
|
|
|
|
+ <DetailsItem v-for="(item, index) in detailsList" :key="index" :info="item" :isEdit="true" :isCheck="item.checked" @click="checkItemEvent" ></DetailsItem>
|
|
|
</block>
|
|
</block>
|
|
|
<block v-else>
|
|
<block v-else>
|
|
|
<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(detailsList)" />
|
|
<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(detailsList)" />
|
|
@@ -52,7 +46,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <modal-module :show="showClearModel" @cancel="modalCancel" @click="confirmClear" :title="'收款'" color="#333" :size="32" padding="30upx 30upx" >
|
|
|
|
|
|
|
+ <modal-module :show="showClearModel" @click="confirmClear" :title="'收款'" color="#333" :size="32" padding="30upx 30upx" >
|
|
|
<template slot="customContent">
|
|
<template slot="customContent">
|
|
|
<view class="select-cmd_bx">
|
|
<view class="select-cmd_bx">
|
|
|
<view class="num_bx">
|
|
<view class="num_bx">
|
|
@@ -65,6 +59,7 @@
|
|
|
</modal-module>
|
|
</modal-module>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
@@ -192,41 +187,37 @@ export default {
|
|
|
this.showClearModel = false
|
|
this.showClearModel = false
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
- try {
|
|
|
|
|
- if (this.$util.isEmpty(this.selectList)) {
|
|
|
|
|
- this.$msg("请选择订单");
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- if (this.$util.isEmpty(this.modifyPrice)) {
|
|
|
|
|
- this.$msg("请填写实收金额");
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- let ids = this.selectList.map(ele => {
|
|
|
|
|
- return {id:ele.id};
|
|
|
|
|
- });
|
|
|
|
|
- let parameter = {
|
|
|
|
|
- id:JSON.stringify(ids),
|
|
|
|
|
- ghsId:this.ghsInfo.id,
|
|
|
|
|
- modifyPrice:this.modifyPrice
|
|
|
|
|
- }
|
|
|
|
|
- let self = this;
|
|
|
|
|
- uni.showModal({
|
|
|
|
|
- title: '提示',
|
|
|
|
|
- content: '确认提交?',
|
|
|
|
|
- success: function (res) {
|
|
|
|
|
- if (res.confirm) {
|
|
|
|
|
- self.paySuccess(parameter)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (this.$util.isEmpty(this.selectList)) {
|
|
|
|
|
+ this.$msg("请选择订单");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.$util.isEmpty(this.modifyPrice)) {
|
|
|
|
|
+ this.$msg("请填写实收金额");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ let ids = this.selectList.map(ele => {
|
|
|
|
|
+ return {id:ele.id};
|
|
|
|
|
+ });
|
|
|
|
|
+ let parameter = {
|
|
|
|
|
+ id:JSON.stringify(ids),
|
|
|
|
|
+ ghsId:this.ghsInfo.id,
|
|
|
|
|
+ modifyPrice:this.modifyPrice
|
|
|
|
|
+ }
|
|
|
|
|
+ let that = this;
|
|
|
|
|
+
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ content: '确认提交?',
|
|
|
|
|
+ success: function (res) {
|
|
|
|
|
+ if (res.confirm) {
|
|
|
|
|
+ clearOrderApi(parameter).then(ret=>{
|
|
|
|
|
+ if(ret.code == 1){
|
|
|
|
|
+ that.pageTo({url:'/common/success', type: 2,query:{titleType:1}})
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
- });
|
|
|
|
|
- } catch (error) {}
|
|
|
|
|
- },
|
|
|
|
|
- // 支付成功
|
|
|
|
|
- async paySuccess(parameter) {
|
|
|
|
|
- await clearOrderApi(parameter);
|
|
|
|
|
- this.pageTo({url:'/common/pageSuccess?title=结账成功', type: 2});
|
|
|
|
|
- },
|
|
|
|
|
- payFail() {
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|