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 = '' - // } - // }) + } + }) } } }