This commit is contained in:
xyc 2025-07-11 13:05:22 +08:00
parent 40357542dd
commit bf79003436

View File

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