|
|
|
@ -2015,7 +2015,8 @@ export default { |
|
|
|
|
profit: form.profit, |
|
|
|
|
purchaseCost: form.purchaseCost, |
|
|
|
|
businessManagerId: form.businessManagerId ? +form.businessManagerId : '', |
|
|
|
|
businessManagerName: form.businessManagerName |
|
|
|
|
businessManagerName: form.businessManagerName, |
|
|
|
|
notification: form.notification |
|
|
|
|
}; |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
form.provinceId && this.getCityData() |
|
|
|
@ -2030,7 +2031,8 @@ export default { |
|
|
|
|
this.$post(this.api.renew, { |
|
|
|
|
authority: 1, |
|
|
|
|
customerId, |
|
|
|
|
productId: orderOther.filter(e => e.authority === 1).map(e => e.dataOrCourseId) |
|
|
|
|
productId: orderOther.filter(e => e.authority === 1).map(e => e.dataOrCourseId), |
|
|
|
|
mallId: orderOther.filter(e => e.authority === 1).map(e => e.mallId), |
|
|
|
|
}).then(({ orderOthers }) => { |
|
|
|
|
list.push(...orderOthers) |
|
|
|
|
resolve() |
|
|
|
@ -2042,7 +2044,8 @@ export default { |
|
|
|
|
this.$post(this.api.renew, { |
|
|
|
|
authority: 0, |
|
|
|
|
customerId, |
|
|
|
|
productId: orderOther.filter(e => !e.authority).map(e => e.dataOrCourseId) |
|
|
|
|
productId: orderOther.filter(e => !e.authority).map(e => e.dataOrCourseId), |
|
|
|
|
mallId: orderOther.filter(e => !e.authority).map(e => e.mallId), |
|
|
|
|
}).then(({ orderOthers }) => { |
|
|
|
|
list.push(...orderOthers) |
|
|
|
|
resolve() |
|
|
|
@ -2054,7 +2057,8 @@ export default { |
|
|
|
|
this.$post(this.api.renew, { |
|
|
|
|
authority: 2, |
|
|
|
|
customerId, |
|
|
|
|
productId: orderOther.filter(e => e.authority === 2).map(e => e.dataOrCourseId) |
|
|
|
|
productId: orderOther.filter(e => e.authority === 2).map(e => e.dataOrCourseId), |
|
|
|
|
mallId: orderOther.filter(e => e.authority === 2).map(e => e.mallId), |
|
|
|
|
}).then(({ orderOthers }) => { |
|
|
|
|
list.push(...orderOthers) |
|
|
|
|
resolve() |
|
|
|
@ -2066,7 +2070,8 @@ export default { |
|
|
|
|
this.$post(this.api.renew, { |
|
|
|
|
authority: 3, |
|
|
|
|
customerId, |
|
|
|
|
productId: orderOther.filter(e => e.authority === 3).map(e => e.dataOrCourseId) |
|
|
|
|
productId: orderOther.filter(e => e.authority === 3).map(e => e.dataOrCourseId), |
|
|
|
|
mallId: orderOther.filter(e => e.authority === 3).map(e => e.mallId), |
|
|
|
|
}).then(({ orderOthers }) => { |
|
|
|
|
list.push(...orderOthers) |
|
|
|
|
resolve() |
|
|
|
@ -2079,19 +2084,8 @@ export default { |
|
|
|
|
authority: 4, |
|
|
|
|
// authority: 3, |
|
|
|
|
customerId, |
|
|
|
|
productId: orderOther.filter(e => e.authority === 4).map(e => e.dataOrCourseId) |
|
|
|
|
}).then(({ orderOthers }) => { |
|
|
|
|
list.push(...orderOthers) |
|
|
|
|
resolve() |
|
|
|
|
}).catch(err => { }) |
|
|
|
|
})) |
|
|
|
|
} |
|
|
|
|
if (orderOther.find(e => e.authority === 5)) { |
|
|
|
|
promises.push(new Promise((resolve, reject) => { |
|
|
|
|
this.$post(this.api.renew, { |
|
|
|
|
authority: 5, |
|
|
|
|
customerId, |
|
|
|
|
productId: orderOther.filter(e => e.authority === 5).map(e => e.dataOrCourseId) |
|
|
|
|
productId: orderOther.filter(e => e.authority === 4).map(e => e.dataOrCourseId), |
|
|
|
|
mallId: orderOther.filter(e => e.authority === 4).map(e => e.mallId), |
|
|
|
|
}).then(({ orderOthers }) => { |
|
|
|
|
list.push(...orderOthers) |
|
|
|
|
resolve() |
|
|
|
@ -2586,11 +2580,13 @@ export default { |
|
|
|
|
}) |
|
|
|
|
}; |
|
|
|
|
const productId = [] |
|
|
|
|
const mallId = [] |
|
|
|
|
this.practicalCoursesSelect.map(e => {// 取得选中的值,进行赋值 |
|
|
|
|
e.associatedProduct && productId.push(+e.associatedProduct); |
|
|
|
|
mallId.push(e.mallId) |
|
|
|
|
let find = this[name].some(i => e.mallId === i.mallId);// 判断已有的相同的id不进行处理 |
|
|
|
|
if (!find) { |
|
|
|
|
// 查询产品管理设置的平台结算价 |
|
|
|
|
// 查询产品管理设置的平台结算价 |
|
|
|
|
this.$post(`${this.api.queryCitySettlementPrice}?mallId=${e.mallId}&provinceId=${this.form.provinceId}&cityId=${this.form.cityId}`).then(res => { |
|
|
|
|
const mall = res.mallPrice |
|
|
|
|
if (mall) { |
|
|
|
@ -2608,7 +2604,8 @@ export default { |
|
|
|
|
productId.length && await this.$post(this.api.renew, { |
|
|
|
|
authority, |
|
|
|
|
customerId: this.form.customerId, |
|
|
|
|
productId |
|
|
|
|
productId, |
|
|
|
|
mallId |
|
|
|
|
}).then(res => { |
|
|
|
|
this[name].map(e => { |
|
|
|
|
res.orderOthers.map(el => { |
|
|
|
|