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> <u-icon v-else name="arrow-down" size="14" color="#327DFB"></u-icon>
</view> </view>
</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"> <view class="filter-section">
<text>车型</text> <text>车型</text>
@ -180,6 +192,9 @@
<u-picker :show="isShowCustomer" :columns="[customerSource]" keyName="name" closeOnClickOverlay <u-picker :show="isShowCustomer" :columns="[customerSource]" keyName="name" closeOnClickOverlay
@cancel="isShowCustomer = false" @close="isShowCustomer = false" @confirm="handleCustomerSourceConfirm" @cancel="isShowCustomer = false" @close="isShowCustomer = false" @confirm="handleCustomerSourceConfirm"
:overlay-style="{ zIndex: '10080' }" style="z-index: 10072"></u-picker> :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 <u-picker :show="isShowGoods" :columns="[goodsList]" keyName="label" closeOnClickOverlay
@cancel="isShowGoods = false" @close="isShowGoods = false" @confirm="handleGoodsConfirm" @cancel="isShowGoods = false" @close="isShowGoods = false" @confirm="handleGoodsConfirm"
:overlay-style="{ zIndex: '10080' }" style="z-index: 10072"></u-picker> :overlay-style="{ zIndex: '10080' }" style="z-index: 10072"></u-picker>
@ -225,6 +240,7 @@
endTime: null, endTime: null,
carModelOrCarYear: null, carModelOrCarYear: null,
customerSource: null, customerSource: null,
businessChannel: null,
goods: null, goods: null,
carYear: 0, carYear: 0,
type: "", type: "",
@ -235,6 +251,7 @@
pages: 0, pages: 0,
isShowPop: false, isShowPop: false,
isShowCustomer: false, isShowCustomer: false,
isShowbusiness: false,
payTypes: [], payTypes: [],
inspectionStatus: [{ inspectionStatus: [{
label: "全部", label: "全部",
@ -315,6 +332,7 @@
selectedInspectionStatus: null, // selectedInspectionStatus: null, //
inspectionTimeName: null, // inspectionTimeName: null, //
customerSource: [], customerSource: [],
businessList: [],
selectedCustomerSource: null, // selectedCustomerSource: null, //
selectTime: new Date().toString(), selectTime: new Date().toString(),
goodsList: [], goodsList: [],
@ -360,6 +378,7 @@
this.getTableData(); this.getTableData();
this.getDictData(); this.getDictData();
this.getCustomerSource(); this.getCustomerSource();
this.getBusiness();
// this.disabledScroll() // this.disabledScroll()
}, },
methods: { methods: {
@ -508,10 +527,31 @@
}) })
this.goodsList = resx.data.goodsList 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) { handleCustomerSourceConfirm(e) {
this.queryParams.customerSource = e.value[0].name; // this.queryParams.customerSource = e.value[0].name; //
this.isShowCustomer = false; // this.isShowCustomer = false; //
}, },
handleBusinessConfirm(e) {
this.queryParams.businessChannel = e.value[0].name; //
this.isShowbusiness = false; //
},
handleGoodsConfirm(e) { handleGoodsConfirm(e) {
this.queryParams.goods = e.value[0].value; // this.queryParams.goods = e.value[0].value; //
this.goodsName = e.value[0].label; // this.goodsName = e.value[0].label; //
@ -531,6 +571,11 @@
this.queryParams.customerSource = null; // this.queryParams.customerSource = null; //
}) })
}, },
clearBusiness() {
this.$nextTick(() => {
this.queryParams.businessChannel = null; //
})
},
handleClick() { handleClick() {
if (this.queryParams.customerSource) { if (this.queryParams.customerSource) {
this.clearCustomerSource(); this.clearCustomerSource();
@ -538,6 +583,13 @@
this.isShowCustomer = true; this.isShowCustomer = true;
} }
}, },
handleClickBusiness() {
if (this.queryParams.businessChannel) {
this.clearBusiness();
} else {
this.isShowbusiness = true;
}
},
handleGoodsClick() { handleGoodsClick() {
if (this.queryParams.goods) { if (this.queryParams.goods) {
this.queryParams.goods = null; this.queryParams.goods = null;