|
|
|
@ -13,12 +13,13 @@ 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_GRI_SN}`}>{text}</NavLink>,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "离团日期",
|
|
|
|
|
dataIndex: "EOI_Date",
|
|
|
|
|
render: (text, record) => text,
|
|
|
|
|
sorter: (a, b) => b.EOI_Date - a.EOI_Date,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "城市",
|
|
|
|
@ -28,13 +29,29 @@ const feedbackListColumns = [
|
|
|
|
|
{
|
|
|
|
|
title: "评分",
|
|
|
|
|
dataIndex: "Average",
|
|
|
|
|
sorter: (a, b) => b.Average - a.Average,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "图片数",
|
|
|
|
|
dataIndex: "PicNum",
|
|
|
|
|
sorter: (a, b) => b.PicNum - a.PicNum,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "导游",
|
|
|
|
|
dataIndex: "GriName",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "表状态",
|
|
|
|
|
dataIndex: "FState",
|
|
|
|
|
sorter: (a, b) => b.FState - a.FState,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
function Index() {
|
|
|
|
|
const { feedbackStore, authStore } = useStore();
|
|
|
|
|
const { feedbackList,search_date_start,search_date_end } = feedbackStore;
|
|
|
|
|
const { feedbackList, search_date_start, search_date_end } = feedbackStore;
|
|
|
|
|
const [referenceNo, onNumberChange] = useState("");
|
|
|
|
|
const showTotal = (total) => `Total ${feedbackList.length} items`;
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
console.info("feedback.useEffect");
|
|
|
|
@ -54,17 +71,20 @@ function Index() {
|
|
|
|
|
/>
|
|
|
|
|
</Col>
|
|
|
|
|
<Col md={24} lg={6} xxl={4}>
|
|
|
|
|
<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} />
|
|
|
|
|
<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, search_date_start.format(config.DATE_FORMAT),search_date_end.format(config.DATE_FORMAT) + " 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={12}>
|
|
|
|
|
<Table bordered={true} columns={feedbackListColumns} dataSource={toJS(feedbackList)} />
|
|
|
|
|
<Table bordered={true} columns={feedbackListColumns} dataSource={toJS(feedbackList)} pagination={{ defaultPageSize: 20, showTotal: showTotal }} />
|
|
|
|
|
</Col>
|
|
|
|
|
<Col md={24} lg={24} xxl={12}></Col>
|
|
|
|
|
</Row>
|
|
|
|
|