|
@@ -47,7 +47,7 @@
|
|
|
import { isMobile } from '@/libs/tools'
|
|
|
import { mapGetters } from 'vuex'
|
|
|
import { bundleFindByMobile, bundleBuy } from '@/api/customerBundle.js'
|
|
|
-import { salesChannelList } from '@/api/FinancialManagement'
|
|
|
+import { salesChannelByBundleList } from '@/api/FinancialManagement'
|
|
|
export default {
|
|
|
name: 'SetmealPayMoney',
|
|
|
props: {
|
|
@@ -161,7 +161,7 @@ export default {
|
|
|
},
|
|
|
// 获取渠道商下的合作商信息
|
|
|
getSalesChannel () {
|
|
|
- salesChannelList().then(res => {
|
|
|
+ salesChannelByBundleList({ id: this.setmealData.id }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.partnerList = res.data
|
|
|
const salesChannelType = this.authUserInfo.extInfo.channel.salesChannelType
|
|
@@ -186,12 +186,12 @@ export default {
|
|
|
this.$emit('close')
|
|
|
} else {
|
|
|
this.resetForm() // 重置表单数据
|
|
|
- this.getSalesChannel()
|
|
|
}
|
|
|
},
|
|
|
setmealInfo (newValue, oldValue) {
|
|
|
if (newValue && this.isShow) {
|
|
|
this.setmealData = newValue
|
|
|
+ this.getSalesChannel()
|
|
|
} else {
|
|
|
this.setmealData = null
|
|
|
}
|