diff --git a/pages/index/neworderStatistic.vue b/pages/index/neworderStatistic.vue
index da54134..7998f58 100644
--- a/pages/index/neworderStatistic.vue
+++ b/pages/index/neworderStatistic.vue
@@ -93,6 +93,18 @@
+
+
+ 业务渠道
+
+
+ {{ queryParams.businessChannel || '请选择业务渠道' }}
+
+
+
+
+
车型
@@ -180,6 +192,9 @@
+
@@ -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;