diff --git a/apis/modules/order.js b/apis/modules/order.js
index 0d8332b..ff3fb44 100644
--- a/apis/modules/order.js
+++ b/apis/modules/order.js
@@ -33,6 +33,10 @@ export const del = (data) => {
return post('nakadai/nakadai/order/delete', data)
}
+export const ship = (data) => {
+ return post('nakadai/nakadai/orderOther/ship', data)
+}
+
export const miniProgramOrderRecord = (data) => {
return post('nakadai/nakadai/applets/order/miniProgramOrderRecord', data)
}
\ No newline at end of file
diff --git a/config/request.js b/config/request.js
index 3b20681..ec5aa05 100644
--- a/config/request.js
+++ b/config/request.js
@@ -5,9 +5,9 @@
*/
export default {
- baseURL: 'https://huorantech.cn/',
+ // baseURL: 'https://huorantech.cn/',
// baseURL: 'http://192.168.31.137:9000/',
- // baseURL: 'http://121.37.12.51/',
+ baseURL: 'http://121.37.12.51/',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
},
diff --git a/manifest.json b/manifest.json
index 58d36e2..19a14fe 100644
--- a/manifest.json
+++ b/manifest.json
@@ -48,9 +48,9 @@
"quickapp" : {},
/* 快应用特有相关 */
"mp-weixin" : {
- "appid" : "wx88cd6037d54f230a",
+ "appid" : "wx77a8a2a23138998b",
"setting" : {
- "urlCheck" : false,
+ "urlCheck" : true,
"es6" : true,
"minified" : true
},
diff --git a/order/addCourse/addCourse.vue b/order/addCourse/addCourse.vue
index ddcac1d..c009b47 100644
--- a/order/addCourse/addCourse.vue
+++ b/order/addCourse/addCourse.vue
@@ -235,11 +235,12 @@
productId
}).then(({ orderOthers }) => {
result.map(e => {
- const item = orderOthers.find(n => n.dataOrCourseId == e.dataOrCourseId && n.authority == authority && e.authority == authority)
+ const item = orderOthers.find(n => n.dataOrCourseId == e.dataOrCourseId && n.authority == authority == e.authority)
if (item) {
let date = new Date(item.endTime)
date = new Date(date.setDate(date.getDate() + 1))
e.startTime = this.$util.formatDate(date, 'yyyy-MM-dd')
+ e.renew = 1
}
})
resolve()
diff --git a/order/editCourse/editCourse.vue b/order/editCourse/editCourse.vue
index ae21e0e..b901117 100644
--- a/order/editCourse/editCourse.vue
+++ b/order/editCourse/editCourse.vue
@@ -20,15 +20,17 @@
使用期限
-
-
+
+ {{ units.find(e => e.id === item.options).text }}
+
{{ units.find(e => e.id === item.options).text }}
起止日期
-
+ {{ item.endTime ? item.startTime + ' - ' + item.endTime : item.startTime}}
+
{{ item.endTime ? item.startTime + ' - ' + item.endTime : item.startTime}}
@@ -58,7 +60,7 @@
成交价
-
+
元
@@ -78,6 +80,10 @@
export default {
data() {
return {
+ isAdd: 0, // 新增
+ isEdit: 0, // 编辑
+ isHandle: 0, // 处理
+ isRenew: 0, // 续费
orderType: 1,
customerId: '',
timer: null,
@@ -117,6 +123,10 @@
const { options } = pages[pages.length - 1]
this.orderType = options.orderType
this.customerId = options.customerId
+ this.isEdit = options.action === 'edit'
+ this.isHandle = options.action === 'handle'
+ this.isRenew = options.action === 'renew'
+ this.isAdd = options.action === 'add'
this.handleProduct()
},
methods: {
diff --git a/order/orderDetail/orderDetail.vue b/order/orderDetail/orderDetail.vue
index 39a8e04..bca53d0 100644
--- a/order/orderDetail/orderDetail.vue
+++ b/order/orderDetail/orderDetail.vue
@@ -9,7 +9,7 @@
客户名称
- {{ form.customerName }}
+ {{ form.customerName }}
{{ form.customerName || '请选择客户' }}
@@ -52,46 +52,55 @@
-
+
{{ c.name }}
- -
-
-
-
- {{ item.productName }}
-
-
-
-
-
- 使用期限
- {{ item.startTime + ' - ' + item.endTime }}
-
-
- 市场价(元)
- {{ item.marketValue }}元
-
-
- 结算价
- {{ item.settlementPrice }}元
-
-
- 折扣率
- {{ item.discountRate }}
-
-
- 平台服务费
- {{ item.serviceFee }}元
-
-
- 成交价格
- {{ item.finalPrice }}元
-
-
-
+
+ productHandle(e, n, i)"
+ >
+ -
+
+
+
+ {{ item.productName }}
+
+
+
+
+
+ 使用期限
+ {{ item.startTime + ' - ' + item.endTime }}
+
+
+ 市场价(元)
+ {{ item.marketValue }}元
+
+
+ 结算价
+ {{ item.settlementPrice }}元
+
+
+ 折扣率
+ {{ item.discountRate }}
+
+
+ 平台服务费
+ {{ item.serviceFee }}元
+
+
+ 成交价格
+ {{ item.finalPrice }}元
+
+
+
+
+
@@ -137,11 +146,14 @@