diff --git a/config/request.js b/config/request.js index 6f3a944..d6c6600 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.152:9000/', - // baseURL: 'http://121.37.12.51/', + baseURL: 'http://121.37.12.51/', headers: { 'Content-Type': 'application/json;charset=UTF-8' }, diff --git a/order/addCourse/addCourse.vue b/order/addCourse/addCourse.vue index 518b9c5..3f85280 100644 --- a/order/addCourse/addCourse.vue +++ b/order/addCourse/addCourse.vue @@ -260,7 +260,6 @@ const list = this.checked // 已选产品 if (list.length) { const result = this.courses - console.log(123, result) const list1 = [] // 实训、理论 const list0 = [] // 数据前瞻 const list2 = [] // 职站增值 @@ -278,7 +277,6 @@ const res = await queryCitySettlementPrice(e.mallId, this.provinceId, this.cityId) if (res.mallPrice) e.settlementPrice = res.mallPrice.discountRate } - console.log(44, e) const classId = e.classificationId const pid = +e.associatedProduct const { mallId } = e diff --git a/order/clientDetail/clientDetail.vue b/order/clientDetail/clientDetail.vue index 9dedc19..8098b8e 100644 --- a/order/clientDetail/clientDetail.vue +++ b/order/clientDetail/clientDetail.vue @@ -108,6 +108,7 @@ isDetail: false, customerId: '', shopCart: false, + fromOrder: false, // 客户类型 customerTypeList: [{ name: '正式', @@ -166,6 +167,7 @@ this.customerId = options.customerId this.isDetail = !!options.show this.shopCart = options.shopCart // 从购物车进去订单的标识 + this.fromOrder = options.order // 从创建订单页面跳转进来 options.customerId && this.getInfo() // 非详情才需要查询学校和行业 @@ -317,21 +319,28 @@ } else { addCustomer(form).then(({ customerId }) => { uni.hideLoading() - const that = this - uni.showModal({ - title: '提示', - content: '创建客户成功,是否马上为该客户创建订单?', - success: function (res) { - if (res.confirm) { - // 选择是则直接跳转到新建订单页面,并且选中当前新加的客户 - uni.redirectTo({ - url: `/order/orderDetail/orderDetail?customerId=${customerId}${that.shopCart ? '&shopCart=1' : ''}` - }) - } else if (res.cancel) { - uni.navigateBack() + // 从创建订单页面跳转进来的则直接返回,不用提示 + if (this.fromOrder) { + uni.redirectTo({ + url: `/order/orderDetail/orderDetail?customerId=${customerId}${this.shopCart ? '&shopCart=1' : ''}` + }) + } else { + const that = this + uni.showModal({ + title: '提示', + content: '创建客户成功,是否马上为该客户创建订单?', + success: function (res) { + if (res.confirm) { + // 选择是则直接跳转到新建订单页面,并且选中当前新加的客户 + uni.redirectTo({ + url: `/order/orderDetail/orderDetail?customerId=${customerId}${that.shopCart ? '&shopCart=1' : ''}` + }) + } else if (res.cancel) { + uni.navigateBack() + } } - } - }) + }) + } }).catch(res => {}) } }, diff --git a/order/editCourse/editCourse.vue b/order/editCourse/editCourse.vue index 720d3f8..ffcac03 100644 --- a/order/editCourse/editCourse.vue +++ b/order/editCourse/editCourse.vue @@ -76,7 +76,7 @@