chenrui 4 년 전
부모
커밋
bae7bce4c3
2개의 변경된 파일11개의 추가작업 그리고 3개의 파일을 삭제
  1. 8 0
      src/api/FinancialManagement.js
  2. 3 3
      src/views/SetmealSales/SetmealPayMoney.vue

+ 8 - 0
src/api/FinancialManagement.js

@@ -42,3 +42,11 @@ export const SettlementRecordsDetailsList = params => {
     method: 'post'
   })
 }
+
+export const salesChannelByBundleList = params => {
+  const url = `/salesChannel/queryByBundle/${params.id}`
+  return axios.request({
+    url: url,
+    method: 'get'
+  })
+}

+ 3 - 3
src/views/SetmealSales/SetmealPayMoney.vue

@@ -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
       }