perf: 客运-老客户: 增加条件`门票`

feature/hotel-cruise
Lei OT 7 months ago
parent 83e570bb49
commit cb211ec207

@ -22,7 +22,7 @@ const Customer_care_regular = () => {
...date_picker_store.formValues,
...regular_data.searchValues,
},
shows: ['DateType', 'DepartmentList', 'WebCode', 'dates'],
shows: ['DateType', 'DepartmentList', 'WebCode', 'dates', 'IncludeTickets'],
fieldProps: {
DepartmentList: { show_all: false, mode: 'multiple' },
WebCode: { show_all: false, mode: 'multiple' },

@ -119,13 +119,15 @@ class CustomerStore {
} else {
url += '&IsDetail=0';
}
url += `&IncludeTickets=${this.regular_data.include_tickets}`;
fetch(config.HT_HOST + url)
.then((response) => response.json())
.then((json) => {
runInAction(() => {
if (get_detail) {
this.regular_data.data_detail = json;
const dump_l = json.filter(ele => ele.COLI_IsOld !== '' && ele.COLI_IsCusCommend !== '').length;
const dump_l = (json || []).filter(ele => ele.COLI_IsOld !== '' && ele.COLI_IsCusCommend !== '').length;
this.regular_data.total_data_tips = dump_l > 0 ? `包含 ${dump_l} 条同时勾选的数据` : '';
} else {
this.regular_data.data = json;
@ -165,6 +167,7 @@ class CustomerStore {
group_select_mode: 'multiple',// 是否多选分组
groups: ['1', '2', '28', '7'],
date_type: 'applyDate',
include_tickets: 0,
group_handleChange: this.handleChange_group_select_regular.bind(this),
onChange_datetype: this.onChange_datetype_regular.bind(this),
regular_customer_order: this.regular_customer_order.bind(this),

Loading…
Cancel
Save