|
|
|
@ -13,7 +13,7 @@ const feedbackListColumns = [
|
|
|
|
|
{
|
|
|
|
|
title: "团名",
|
|
|
|
|
dataIndex: "EOI_Group_Name",
|
|
|
|
|
// render: (text, record) => <NavLink to={`/feedback/${record.EOI_SN}`}>{text}</NavLink>,
|
|
|
|
|
render: (text, record) => <NavLink to={`/feedback/${record.EOI_SN}`}>{text}</NavLink>,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "离团日期",
|
|
|
|
@ -29,19 +29,11 @@ const feedbackListColumns = [
|
|
|
|
|
title: "评分",
|
|
|
|
|
dataIndex: "Average",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "操作",
|
|
|
|
|
dataIndex: "EOI_SN",
|
|
|
|
|
render: (text, record) => <NavLink to={`/feedback/${record.EOI_SN}`}>查看</NavLink>,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
function Index() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { feedbackStore, authStore } = useStore();
|
|
|
|
|
const { feedbackList } = feedbackStore;
|
|
|
|
|
const [selectedDateRange, onDateRangeChange] = useState([config.DATE_PRESETS[0].value]);
|
|
|
|
|
const { feedbackList,search_date_start,search_date_end } = feedbackStore;
|
|
|
|
|
const [referenceNo, onNumberChange] = useState("");
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
@ -62,26 +54,19 @@ function Index() {
|
|
|
|
|
/>
|
|
|
|
|
</Col>
|
|
|
|
|
<Col md={24} lg={6} xxl={4}>
|
|
|
|
|
<DatePicker.RangePicker
|
|
|
|
|
format={config.DATE_FORMAT}
|
|
|
|
|
allowClear={false}
|
|
|
|
|
style={{ width: "100%" }}
|
|
|
|
|
presets={config.DATE_PRESETS}
|
|
|
|
|
onChange={(date, dateRange) => {
|
|
|
|
|
onDateRangeChange(dateRange);
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<DatePicker.RangePicker format={config.DATE_FORMAT} allowClear={false} style={{ width: "100%" }} value={[search_date_start,search_date_end]} presets={config.DATE_PRESETS} onChange={feedbackStore.onDateRangeChange} />
|
|
|
|
|
</Col>
|
|
|
|
|
<Col md={24} lg={4} xxl={4}>
|
|
|
|
|
<Button type="primary" loading={feedbackStore.loading} onClick={() => feedbackStore.searchFeedbackList(authStore.login.travelAgencyId, referenceNo, selectedDateRange[0], selectedDateRange[1] + " 23:59")}>
|
|
|
|
|
<Button type="primary" loading={feedbackStore.loading} onClick={() => feedbackStore.searchFeedbackList(authStore.login.travelAgencyId, referenceNo, search_date_start.format(config.DATE_FORMAT),search_date_end.format(config.DATE_FORMAT) + " 23:59")}>
|
|
|
|
|
搜索
|
|
|
|
|
</Button>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
<Row>
|
|
|
|
|
<Col md={24} lg={24} xxl={24}>
|
|
|
|
|
<Col md={24} lg={24} xxl={12}>
|
|
|
|
|
<Table bordered={true} columns={feedbackListColumns} dataSource={toJS(feedbackList)} />
|
|
|
|
|
</Col>
|
|
|
|
|
<Col md={24} lg={24} xxl={12}></Col>
|
|
|
|
|
</Row>
|
|
|
|
|
</Space>
|
|
|
|
|
);
|
|
|
|
|