|
|
@@ -87,8 +87,7 @@
|
|
|
<view>结算状态:</view>
|
|
|
<view style="color:red;font-weight:bold;">欠款</view>
|
|
|
<view class="price">
|
|
|
- <text v-if="detailInfo.debtAmount > 0" @click='pageTo({url:"/pagesArrears/details",query: {id: detailInfo.customId}})' style="margin-right:60upx;color:#3385FF;font-size:26upx;">全部欠款单</text>
|
|
|
- <button @click="settleOrder(detailInfo)" class="admin-button-com">结清本单</button>
|
|
|
+ <button @click='pageTo({url:"/pagesArrears/details",query: {id: detailInfo.customId}})' class="admin-button-com">全部欠款单</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="order-info_box" v-else>
|
|
|
@@ -298,49 +297,6 @@ export default {
|
|
|
}
|
|
|
this.$util.pageTo({url:'/pagesOrder/refund?id='+this.option.id})
|
|
|
},
|
|
|
- //结账
|
|
|
- settleOrder(item) {
|
|
|
- let id = item.id
|
|
|
- let customId = item.customId
|
|
|
- let remainDebtPrice = item.remainDebtPrice
|
|
|
- let that = this
|
|
|
- let payWay = 0
|
|
|
- uni.showActionSheet({
|
|
|
- itemList: ['请选择收款方式:', '微信', '支付宝','现金','银行卡'],
|
|
|
- success: function (respond) {
|
|
|
- let currentIndex = respond.tapIndex
|
|
|
- let inWay = [{name:"未选择",id:-1},{name:"微信",id:0},{name:"支付宝",id:1},{name:"现金",id:4},{name:"银行卡",id:5}]
|
|
|
- if(currentIndex > 0){
|
|
|
-
|
|
|
- payWay = inWay[currentIndex].id
|
|
|
- let params = {
|
|
|
- id:JSON.stringify([{id:id}]),
|
|
|
- customId:customId,
|
|
|
- payWay:payWay,
|
|
|
- modifyPrice:remainDebtPrice,
|
|
|
- complete:1
|
|
|
- }
|
|
|
-
|
|
|
- that.$util.confirmModal({content:'确认结清欠款?'},() => {
|
|
|
- clearOrderApi(params).then(res => {
|
|
|
- if(res.code == 1) {
|
|
|
- if(res.data.hasUnComplete && res.data.hasUnComplete == 1){
|
|
|
- that.$util.confirmModal({content:'此客户还有待完成的账单',okText:'查看'},() => {
|
|
|
- that.pageTo({url:'/admin/clear/customList',type:2})
|
|
|
- })
|
|
|
- }else{
|
|
|
- that.pageTo({url:'/common/success', type: 2,query:{titleType:1}})
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
-
|
|
|
- }else{
|
|
|
- this.$msg("请选择收款方式");
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
navigateTo(latitude, longitude, address) {
|
|
|
// #ifdef APP-PLUS
|
|
|
let that = this
|