|
@@ -2,18 +2,18 @@
|
|
|
<view class="order-page">
|
|
<view class="order-page">
|
|
|
<view class="top-view">
|
|
<view class="top-view">
|
|
|
<view class="top-row">
|
|
<view class="top-row">
|
|
|
- <text class="header-item"> 客户</text>
|
|
|
|
|
|
|
+ <text class="header-item">供应商</text>
|
|
|
<text class="header-item">总欠款 </text>
|
|
<text class="header-item">总欠款 </text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="top-row">
|
|
<view class="top-row">
|
|
|
<view class="info-item">
|
|
<view class="info-item">
|
|
|
- <image class="logo" :src="customInfo.smallAvatar"/>
|
|
|
|
|
|
|
+ <image class="logo" :src="ghsInfo.smallAvatar"/>
|
|
|
<text class="name">
|
|
<text class="name">
|
|
|
- {{ customInfo.name || "" }}
|
|
|
|
|
|
|
+ {{ ghsInfo.name || "" }}
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="price-item">
|
|
<view class="price-item">
|
|
|
- {{ customInfo.debtAmount || "0.00" }}
|
|
|
|
|
|
|
+ {{ ghsInfo.debtAmount || "0.00" }}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -54,7 +54,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<view class="btn-view">
|
|
<view class="btn-view">
|
|
|
- <button :class="['admin-button-com', 'blue']" @click="batchEvent" >收款</button>
|
|
|
|
|
|
|
+ <button :class="['admin-button-com', 'blue']" @click="batchEvent" >结算</button>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -63,13 +63,12 @@
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import DetailsItem from "./detailsItem";
|
|
import DetailsItem from "./detailsItem";
|
|
|
import { getOrderDebtListApi,clearOrderApi } from "@/api/arrears/index";
|
|
import { getOrderDebtListApi,clearOrderApi } from "@/api/arrears/index";
|
|
|
-import wexinPay from "@/utils/pay/wxPay";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: { AppWrapperEmpty, DetailsItem },
|
|
components: { AppWrapperEmpty, DetailsItem },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- customInfo: "",
|
|
|
|
|
|
|
+ ghsInfo: "",
|
|
|
totalAmount: "",
|
|
totalAmount: "",
|
|
|
num: "",
|
|
num: "",
|
|
|
detailsList: [],
|
|
detailsList: [],
|
|
@@ -126,9 +125,9 @@ export default {
|
|
|
try {
|
|
try {
|
|
|
this.listLoading = true;
|
|
this.listLoading = true;
|
|
|
const {
|
|
const {
|
|
|
- data: { customInfo, num, totalAmount, list }
|
|
|
|
|
|
|
+ data: { ghsInfo, num, totalAmount, list }
|
|
|
} = await getOrderDebtListApi(this.option.id);
|
|
} = await getOrderDebtListApi(this.option.id);
|
|
|
- this.customInfo = customInfo;
|
|
|
|
|
|
|
+ this.ghsInfo = ghsInfo;
|
|
|
this.totalAmount = totalAmount;
|
|
this.totalAmount = totalAmount;
|
|
|
this.num = num;
|
|
this.num = num;
|
|
|
this.detailsList = list.map(ele => {
|
|
this.detailsList = list.map(ele => {
|
|
@@ -180,12 +179,12 @@ export default {
|
|
|
});
|
|
});
|
|
|
let parameter = {
|
|
let parameter = {
|
|
|
id:JSON.stringify(ids),
|
|
id:JSON.stringify(ids),
|
|
|
- customId:this.customInfo.id,
|
|
|
|
|
|
|
+ ghsId:this.ghsInfo.id,
|
|
|
}
|
|
}
|
|
|
let self = this;
|
|
let self = this;
|
|
|
uni.showModal({
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
title: '提示',
|
|
|
- content: '确定已收款?',
|
|
|
|
|
|
|
+ content: '确定已结算?',
|
|
|
success: function (res) {
|
|
success: function (res) {
|
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
self.paySuccess(parameter)
|
|
self.paySuccess(parameter)
|
|
@@ -197,7 +196,7 @@ export default {
|
|
|
// 支付成功
|
|
// 支付成功
|
|
|
async paySuccess(parameter) {
|
|
async paySuccess(parameter) {
|
|
|
await clearOrderApi(parameter);
|
|
await clearOrderApi(parameter);
|
|
|
- this.pageTo({url:'/common/pageSuccess?title=收款成功', type: 2});
|
|
|
|
|
|
|
+ this.pageTo({url:'/common/pageSuccess?title=结算成功', type: 2});
|
|
|
},
|
|
},
|
|
|
payFail() {
|
|
payFail() {
|
|
|
}
|
|
}
|