diff --git a/app.js b/app.js index cedb7c8..373d004 100644 --- a/app.js +++ b/app.js @@ -1,8 +1,8 @@ //app.js App({ - evn: 1, // 0: 开发版本;1:测试版本;2:生产版本 + evn: 2, // 0: 开发版本;1:测试版本;2:生产版本 tmplIds: ['AFoM5TOfsgERsfcetNSB0UlmEixnLF1ySXr54Bqno2M', 'lOQ8Gvyy_dTk68bYGpRVnVA0M7DsYYrV81Gd39GUPBA'], - version: '2.2.1', + version: '2.3.1', xAppId: '503258978847953926', userInfo: null, //----------------------------------------------globalData-------------------------------------- diff --git a/pages/process/check-list/index.wxml b/pages/process/check-list/index.wxml index 61d95eb..2f05f0f 100644 --- a/pages/process/check-list/index.wxml +++ b/pages/process/check-list/index.wxml @@ -56,13 +56,13 @@ {{item.settlePrice || '- -'}} - 取消订单 - 取消订单 + 定价 - 重新定价 - 审核 diff --git a/pages/process/order-list/index.js b/pages/process/order-list/index.js index 532c6fb..c7381d3 100644 --- a/pages/process/order-list/index.js +++ b/pages/process/order-list/index.js @@ -160,6 +160,9 @@ Scene({ checkOrder: function(e){ wx.navigateTo({ url: '/pages/process/order-info/index?id=' + e.currentTarget.dataset.id }) }, + loggerItem: function(e){ + wx.navigateTo({url: `/pages/process/order-logger/index?type=1&orderId=${e.currentTarget.dataset.id}` }) + }, paymentItem: function (e) { var item = this.data.orderList[e.currentTarget.dataset.page][e.currentTarget.dataset.index] if(!this.data.admin) { diff --git a/pages/process/order-list/index.wxml b/pages/process/order-list/index.wxml index 92a13bf..d4da470 100644 --- a/pages/process/order-list/index.wxml +++ b/pages/process/order-list/index.wxml @@ -64,18 +64,20 @@ - 取消订单 - 取消订单 + 定价 - 重新定价 - 审核 - 去支付 - 去结算 + 查看日志 diff --git a/pages/process/outside-list/index.wxml b/pages/process/outside-list/index.wxml index 34d700e..16d9bf3 100644 --- a/pages/process/outside-list/index.wxml +++ b/pages/process/outside-list/index.wxml @@ -60,23 +60,23 @@ - 取消订单 - 取消订单 + 修改订单 - 收货 - 确认定价 - 重新定价 - 审核订单 - 去支付 - 去结算 - 查看日志 diff --git a/pages/process/payment-list/index.js b/pages/process/payment-list/index.js index f7a63aa..55ecdaa 100644 --- a/pages/process/payment-list/index.js +++ b/pages/process/payment-list/index.js @@ -1,5 +1,6 @@ // pages/process/order-list/index.js import Scene from '../../index/scene' +import Dialog from '../../../components/dialog/dialog' import { getFactoryOrderList } from "../../../api/saas" const util = require('../../../utils/util') const app = getApp() @@ -84,6 +85,19 @@ Scene({ this.refresh.setRefresh(false) }) }, + cancelOrder: function(e){ + Dialog.confirm({ title: '温馨提示', message: '确定取消该订单?' }).then(() => { + wx.showLoading({ title: '正在获取', mask: true }) + cancelOrder(e.currentTarget.dataset.id).then(result => { + wx.hideLoading() + util.showToast('订单已经删除') + this.onRefreshList() + }).catch(err => { + wx.hideLoading() + util.showToast(err) + }) + }) + }, lookItem: function (e) { var item = this.data.orderList[e.currentTarget.dataset.page][e.currentTarget.dataset.index] if(!this.data.admin) { diff --git a/pages/process/payment-list/index.json b/pages/process/payment-list/index.json index 47ba245..9acc31f 100644 --- a/pages/process/payment-list/index.json +++ b/pages/process/payment-list/index.json @@ -6,6 +6,7 @@ "van-icon": "/components/icon/index", "van-divider": "/components/divider/index", "van-loading": "/components/loading/index", + "van-dialog": "/components/dialog/index", "notification": "/pages/message/notification/index" } } \ No newline at end of file diff --git a/pages/process/payment-list/index.wxml b/pages/process/payment-list/index.wxml index 4b8a145..eb4f02c 100644 --- a/pages/process/payment-list/index.wxml +++ b/pages/process/payment-list/index.wxml @@ -57,7 +57,9 @@ {{item.settlePrice || '- -'}} - 取消订单 + 去支付 @@ -70,4 +72,5 @@ + \ No newline at end of file