更新
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>
|
<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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user