|
@@ -52,13 +52,12 @@
|
|
|
<a-col :span="6">
|
|
|
<a-form-item label="销售合作商" :label-col="{ span:7 }" :wrapper-col="{ span:17}">
|
|
|
<a-select
|
|
|
- id="purchasedSetmeal-partner"
|
|
|
+ id="purchasedSetmeal-dataSourceNo"
|
|
|
allowClear
|
|
|
- show-search
|
|
|
option-filter-prop="children"
|
|
|
placeholder="请选择销售合作商"
|
|
|
- v-model="searchForm.partner">
|
|
|
- <a-select-option v-for="(item,index) in partnerList" :key="index" :value="item.value">{{ item.name }}</a-select-option>
|
|
|
+ v-model="searchForm.dataSourceNo">
|
|
|
+ <a-select-option v-for="(item,index) in dataSourceNoList" :key="index" :value="item.salesChannelNo">{{ item.salesChannelName }}</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
@@ -111,6 +110,7 @@ import getDate from '@/libs/getDate.js'
|
|
|
import { completeDate } from '@/libs/tools.js'
|
|
|
import moment from 'moment'
|
|
|
import SetmealDetailModal from './SetmealDetailModal.vue'
|
|
|
+import { salesChannelList } from '@/api/FinancialManagement'
|
|
|
import { listCustomerBundle, exportBundle, countListBundle } from '@/api/customerBundle.js'
|
|
|
export default {
|
|
|
name: 'PurchasedSetmeal',
|
|
@@ -126,7 +126,8 @@ export default {
|
|
|
custMobile: '', // 客户信息
|
|
|
orderFlag: '', // 订单状态
|
|
|
salesChannelSettleStatus: '', // 结算状态
|
|
|
- partner: undefined // 销售合作商
|
|
|
+ dataSourceNo: undefined, // 销售合作商
|
|
|
+ freeChoiceFlag: 0 // 套餐传0,服务传1
|
|
|
},
|
|
|
loading: false, // 导出loading
|
|
|
orderTotal: '', // 合计开单数量
|
|
@@ -143,7 +144,7 @@ export default {
|
|
|
{ title: '序号', dataIndex: 'no', width: 60, align: 'center' },
|
|
|
{ title: '订单号', dataIndex: 'number', width: 100, align: 'center' },
|
|
|
{ title: '下单时间', dataIndex: 'orderDate', width: 100, align: 'center' },
|
|
|
- { title: '销售合作商', dataIndex: 'partner', width: 100, align: 'center' },
|
|
|
+ { title: '销售合作商', dataIndex: 'salesChannelName', width: 100, align: 'center' },
|
|
|
{ title: '套餐名称', dataIndex: 'bundleName', width: 100, align: 'center' },
|
|
|
{ title: '客户信息', scopedSlots: { customRender: 'custInfo' }, width: 100, align: 'center' },
|
|
|
{ title: '收款金额(¥)', dataIndex: 'payedAmount', width: 80, align: 'center' },
|
|
@@ -167,7 +168,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- partnerList: [] // 销售合作商 下拉数据
|
|
|
+ dataSourceNoList: [] // 销售合作商 下拉数据
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -176,6 +177,16 @@ export default {
|
|
|
disabledDate (date, dateStrings) {
|
|
|
return date && date.valueOf() > Date.now()
|
|
|
},
|
|
|
+ // 获取渠道商下的合作商信息
|
|
|
+ getSalesChannel () {
|
|
|
+ salesChannelList().then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ this.dataSourceNoList = res.data
|
|
|
+ } else {
|
|
|
+ this.dataSourceNoList = []
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 购买套餐
|
|
|
goBuy () {
|
|
|
this.$router.push({ path: '/SetmealSales/BuySetmeal' })
|
|
@@ -197,7 +208,8 @@ export default {
|
|
|
custMobile: this.searchForm.custMobile,
|
|
|
orderFlag: this.searchForm.orderFlag,
|
|
|
salesChannelSettleStatus: this.searchForm.salesChannelSettleStatus,
|
|
|
- partner: this.searchForm.partner
|
|
|
+ dataSourceNo: this.searchForm.dataSourceNo,
|
|
|
+ freeChoiceFlag: 0
|
|
|
}
|
|
|
params.beginDate == null ? params.beginDate = getDate.getToday().starttime : null
|
|
|
params.endDate == null ? params.endDate = getDate.getToday().endtime : null
|
|
@@ -235,7 +247,8 @@ export default {
|
|
|
this.searchForm.custMobile = ''
|
|
|
this.searchForm.orderFlag = null
|
|
|
this.searchForm.salesChannelSettleStatus = null
|
|
|
- this.searchForm.partner = undefined
|
|
|
+ this.searchForm.dataSourceNo = undefined
|
|
|
+ this.searchForm.freeChoiceFlag = 0
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
// 导出
|
|
@@ -248,7 +261,8 @@ export default {
|
|
|
custMobile: this.searchForm.custMobile,
|
|
|
orderFlag: this.searchForm.orderFlag,
|
|
|
salesChannelSettleStatus: this.searchForm.salesChannelSettleStatus,
|
|
|
- partner: this.searchForm.partner
|
|
|
+ dataSourceNo: this.searchForm.dataSourceNo,
|
|
|
+ freeChoiceFlag: 0
|
|
|
}
|
|
|
if (!params.beginDate && !params.endDate) {
|
|
|
this.$message.error('请先选择需要导出的下单时间区间再进行导出!')
|
|
@@ -277,6 +291,9 @@ export default {
|
|
|
document.body.appendChild(link)
|
|
|
link.click()
|
|
|
}
|
|
|
+ },
|
|
|
+ mounted () {
|
|
|
+ this.getSalesChannel()
|
|
|
}
|
|
|
}
|
|
|
</script>
|