From d286b496e6c051dfeaa0fea50ca76143e862ec38 Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Fri, 17 Nov 2023 09:51:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=93=9D=E7=89=99=E6=89=93=E5=8D=B0=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/orderDetail.vue | 9 ++++----- pages/inventory/goodsList1.vue | 16 ++++++---------- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/pages/index/orderDetail.vue b/pages/index/orderDetail.vue index 4a73c4f..8257d63 100644 --- a/pages/index/orderDetail.vue +++ b/pages/index/orderDetail.vue @@ -362,11 +362,10 @@ }).catch(res => {}); }else{ this.sales.alreadyEarn = (this.sales.alreadyEarn * 1) + (this.newEarn * 1); - this.tui.request('/app/sale/edit','post', { - sale: this.sales, - customer: this.order, - saleDetailDTOList: this.list - },false,false).then(res => { + this.tui.request('/app/sale/editPayPrice','post', { + id:this.sales.id, + price:e + },false,true).then(res => { uni.showToast({ title: res.message, icon: 'none' diff --git a/pages/inventory/goodsList1.vue b/pages/inventory/goodsList1.vue index 091c592..e65cadb 100644 --- a/pages/inventory/goodsList1.vue +++ b/pages/inventory/goodsList1.vue @@ -1017,14 +1017,10 @@ //清空全部数据 clearAll(){ let that = this; - // window.location.reload() - // 页面重载 - // const pages = getCurrentPages() - // const curPage = pages[pages.length - 1] - // uni.showModal({ - // title: "提示", - // content: "确定清空全部数据吗?", - // success: function(res) { + uni.showModal({ + title: "提示", + content: "确定清空全部数据吗?", + success: function(res) { that.carList.clear() @@ -1043,8 +1039,8 @@ that.noPay = '' that.otherExpense = '' that.totalAmount = '' - // } - // }) + } + }) } } }