|
|
@@ -57,8 +57,7 @@
|
|
|
<view>结算状态:</view>
|
|
|
<view style="color:red;">欠款</view>
|
|
|
<view class="price">
|
|
|
- <text v-if="detailInfo.debtAmount > 0" @click="goToClear(detailInfo)" style="margin-right:38upx;color:#3385FF;font-size:26upx;">全部欠款单</text>
|
|
|
- <button @click="clearOrder(detailInfo)" class="admin-button-com">结清本单</button>
|
|
|
+ <button @click="goToClear(detailInfo)" class="admin-button-com">全部欠款单</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="order-info_box" v-else>
|
|
|
@@ -353,32 +352,6 @@ export default {
|
|
|
|
|
|
return data;
|
|
|
},
|
|
|
- //咨询是否结账
|
|
|
- clearOrder(item){
|
|
|
- let that = this
|
|
|
- that.$util.confirmModal({content:'确定结账?'},() => {
|
|
|
- that.doClearOrder(item)
|
|
|
- })
|
|
|
- },
|
|
|
- //结账
|
|
|
- doClearOrder(item) {
|
|
|
- let that = this
|
|
|
- let id = item.id
|
|
|
- let ghsId = item.ghsId
|
|
|
- let actPrice = item.actPrice
|
|
|
- let paramData = {
|
|
|
- id:JSON.stringify([{id:id}]),
|
|
|
- ghsId:ghsId,
|
|
|
- modifyPrice:actPrice
|
|
|
- }
|
|
|
- clearOrderApi(paramData).then(res => {
|
|
|
- if(res.code == 1) {
|
|
|
- that.pageTo({url: '/common/success',type: 2,query:{titleType:2}})
|
|
|
- }
|
|
|
- }).catch(err => {
|
|
|
- console.log('err', err)
|
|
|
- })
|
|
|
- },
|
|
|
goToClear (item) {
|
|
|
this.pageTo({
|
|
|
url: '/pagesGys/details?id='+item.ghsId
|