更新
This commit is contained in:
parent
40357542dd
commit
bf79003436
@ -93,6 +93,18 @@
|
||||
<u-icon v-else name="arrow-down" size="14" color="#327DFB"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 客户来源选择 -->
|
||||
<view class="filter-section">
|
||||
<text>业务渠道</text>
|
||||
<view class="options" @click="handleClickBusiness">
|
||||
<text>
|
||||
{{ queryParams.businessChannel || '请选择业务渠道' }}
|
||||
</text>
|
||||
<u-icon v-if="queryParams.businessChannel" name="close-circle" size="24"
|
||||
color="#327DFB"></u-icon>
|
||||
<u-icon v-else name="arrow-down" size="14" color="#327DFB"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 车型选择 -->
|
||||
<view class="filter-section">
|
||||
<text>车型</text>
|
||||
@ -180,6 +192,9 @@
|
||||
<u-picker :show="isShowCustomer" :columns="[customerSource]" keyName="name" closeOnClickOverlay
|
||||
@cancel="isShowCustomer = false" @close="isShowCustomer = false" @confirm="handleCustomerSourceConfirm"
|
||||
:overlay-style="{ zIndex: '10080' }" style="z-index: 10072"></u-picker>
|
||||
<u-picker :show="isShowbusiness" :columns="[businessList]" keyName="name" closeOnClickOverlay
|
||||
@cancel="isShowbusiness = false" @close="isShowbusiness = false" @confirm="handleBusinessConfirm"
|
||||
:overlay-style="{ zIndex: '10080' }" style="z-index: 10072"></u-picker>
|
||||
<u-picker :show="isShowGoods" :columns="[goodsList]" keyName="label" closeOnClickOverlay
|
||||
@cancel="isShowGoods = false" @close="isShowGoods = false" @confirm="handleGoodsConfirm"
|
||||
:overlay-style="{ zIndex: '10080' }" style="z-index: 10072"></u-picker>
|
||||
@ -225,6 +240,7 @@
|
||||
endTime: null,
|
||||
carModelOrCarYear: null,
|
||||
customerSource: null,
|
||||
businessChannel: null,
|
||||
goods: null,
|
||||
carYear: 0,
|
||||
type: "",
|
||||
@ -235,6 +251,7 @@
|
||||
pages: 0,
|
||||
isShowPop: false,
|
||||
isShowCustomer: false,
|
||||
isShowbusiness: false,
|
||||
payTypes: [],
|
||||
inspectionStatus: [{
|
||||
label: "全部",
|
||||
@ -315,6 +332,7 @@
|
||||
selectedInspectionStatus: null, // 选中的检测状态
|
||||
inspectionTimeName: null, // 选中的检测状态
|
||||
customerSource: [],
|
||||
businessList: [],
|
||||
selectedCustomerSource: null, // 选中的客户来源
|
||||
selectTime: new Date().toString(),
|
||||
goodsList: [],
|
||||
@ -360,6 +378,7 @@
|
||||
this.getTableData();
|
||||
this.getDictData();
|
||||
this.getCustomerSource();
|
||||
this.getBusiness();
|
||||
// this.disabledScroll()
|
||||
},
|
||||
methods: {
|
||||
@ -508,10 +527,31 @@
|
||||
})
|
||||
this.goodsList = resx.data.goodsList
|
||||
},
|
||||
async getBusiness() {
|
||||
let res = await request({
|
||||
url: '/channel/tree',
|
||||
method: 'get',
|
||||
params: {
|
||||
type: 0
|
||||
}
|
||||
})
|
||||
this.businessList = res.data
|
||||
|
||||
//商品类型
|
||||
let resx = await request({
|
||||
url: '/system/inspectionGoods/partnerGoodsListCol',
|
||||
method: 'get',
|
||||
})
|
||||
this.goodsList = resx.data.goodsList
|
||||
},
|
||||
handleCustomerSourceConfirm(e) {
|
||||
this.queryParams.customerSource = e.value[0].name; // 获取用户选择的客户来源
|
||||
this.isShowCustomer = false; // 关闭选择器
|
||||
},
|
||||
handleBusinessConfirm(e) {
|
||||
this.queryParams.businessChannel = e.value[0].name; // 获取用户选择的客户来源
|
||||
this.isShowbusiness = false; // 关闭选择器
|
||||
},
|
||||
handleGoodsConfirm(e) {
|
||||
this.queryParams.goods = e.value[0].value; // 获取用户选择的客户来源
|
||||
this.goodsName = e.value[0].label; // 获取用户选择的客户来源
|
||||
@ -531,6 +571,11 @@
|
||||
this.queryParams.customerSource = null; // 清空客户来源
|
||||
})
|
||||
},
|
||||
clearBusiness() {
|
||||
this.$nextTick(() => {
|
||||
this.queryParams.businessChannel = null; // 清空客户来源
|
||||
})
|
||||
},
|
||||
handleClick() {
|
||||
if (this.queryParams.customerSource) {
|
||||
this.clearCustomerSource();
|
||||
@ -538,6 +583,13 @@
|
||||
this.isShowCustomer = true;
|
||||
}
|
||||
},
|
||||
handleClickBusiness() {
|
||||
if (this.queryParams.businessChannel) {
|
||||
this.clearBusiness();
|
||||
} else {
|
||||
this.isShowbusiness = true;
|
||||
}
|
||||
},
|
||||
handleGoodsClick() {
|
||||
if (this.queryParams.goods) {
|
||||
this.queryParams.goods = null;
|
||||
|
Loading…
Reference in New Issue
Block a user