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