|
|
@ -7,7 +7,6 @@ import { useDatePresets } from "@/hooks/useDatePresets";
|
|
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
|
|
|
|
|
|
|
|
import SearchInput from "./SearchInput";
|
|
|
|
import SearchInput from "./SearchInput";
|
|
|
|
import AuditStateSelector from "./AuditStateSelector";
|
|
|
|
|
|
|
|
import DeptSelector from "./DeptSelector";
|
|
|
|
import DeptSelector from "./DeptSelector";
|
|
|
|
import ProductsTypesSelector from "./ProductsTypesSelector";
|
|
|
|
import ProductsTypesSelector from "./ProductsTypesSelector";
|
|
|
|
import CitySelector from "@/components/CitySelector";
|
|
|
|
import CitySelector from "@/components/CitySelector";
|
|
|
@ -71,6 +70,8 @@ const SearchForm = ({ initialValue, onSubmit, onReset, onMounted, confirmText, f
|
|
|
|
return Array.isArray(value) ? value.map(ele => ele.key).join(",") : value ? value.value : "";
|
|
|
|
return Array.isArray(value) ? value.map(ele => ele.key).join(",") : value ? value.value : "";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
plan_state: { key: "plan_state", transform: value => value?.value || value?.key || "", default: "" },
|
|
|
|
|
|
|
|
airticket_state: { key: "airticket_state", transform: value => value?.value || value?.key || "", default: "" },
|
|
|
|
unconfirmed: { key: "unconfirmed", transform: value => (value ? 1 : 0) },
|
|
|
|
unconfirmed: { key: "unconfirmed", transform: value => (value ? 1 : 0) },
|
|
|
|
};
|
|
|
|
};
|
|
|
|
let dest = {};
|
|
|
|
let dest = {};
|
|
|
@ -179,7 +180,7 @@ function getFields(props) {
|
|
|
|
let baseChildren = [];
|
|
|
|
let baseChildren = [];
|
|
|
|
baseChildren = [
|
|
|
|
baseChildren = [
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
"keyword",
|
|
|
|
"keyword", //关键词搜索
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name="keyword" {...fieldProps.keyword}>
|
|
|
|
<Form.Item name="keyword" {...fieldProps.keyword}>
|
|
|
|
<Input allowClear {...fieldComProps.keyword} />
|
|
|
|
<Input allowClear {...fieldComProps.keyword} />
|
|
|
@ -187,7 +188,7 @@ function getFields(props) {
|
|
|
|
fieldProps?.keyword?.col || 6
|
|
|
|
fieldProps?.keyword?.col || 6
|
|
|
|
),
|
|
|
|
),
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
"referenceNo",
|
|
|
|
"referenceNo", //团号
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name="referenceNo" label={t("group:RefNo")} {...fieldProps.referenceNo}>
|
|
|
|
<Form.Item name="referenceNo" label={t("group:RefNo")} {...fieldProps.referenceNo}>
|
|
|
|
<Input placeholder={t("group:RefNo")} allowClear />
|
|
|
|
<Input placeholder={t("group:RefNo")} allowClear />
|
|
|
@ -195,7 +196,7 @@ function getFields(props) {
|
|
|
|
fieldProps?.referenceNo?.col || 6
|
|
|
|
fieldProps?.referenceNo?.col || 6
|
|
|
|
),
|
|
|
|
),
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
"PNR",
|
|
|
|
"PNR", //机票PNR
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name="PNR" label="PNR">
|
|
|
|
<Form.Item name="PNR" label="PNR">
|
|
|
|
<Input placeholder={t("group:PNR")} allowClear />
|
|
|
|
<Input placeholder={t("group:PNR")} allowClear />
|
|
|
@ -203,7 +204,7 @@ function getFields(props) {
|
|
|
|
fieldProps?.PNR?.col || 4
|
|
|
|
fieldProps?.PNR?.col || 4
|
|
|
|
),
|
|
|
|
),
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
"invoiceStatus",
|
|
|
|
"invoiceStatus", //账单状态
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name={`invoiceStatus`} initialValue={at(props, "initialValue.invoiceStatus")[0] || { value: "0", label: t("invoiceStatus.Status") }}>
|
|
|
|
<Form.Item name={`invoiceStatus`} initialValue={at(props, "initialValue.invoiceStatus")[0] || { value: "0", label: t("invoiceStatus.Status") }}>
|
|
|
|
<Select
|
|
|
|
<Select
|
|
|
@ -221,7 +222,7 @@ function getFields(props) {
|
|
|
|
fieldProps?.invoiceStatus?.col || 3
|
|
|
|
fieldProps?.invoiceStatus?.col || 3
|
|
|
|
),
|
|
|
|
),
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
"dates",
|
|
|
|
"dates", //时间日期
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name={"dates"} label={t("group:ArrivalDate")} {...fieldProps.dates} initialValue={at(props, "initialValue.dates")[0]}>
|
|
|
|
<Form.Item name={"dates"} label={t("group:ArrivalDate")} {...fieldProps.dates} initialValue={at(props, "initialValue.dates")[0]}>
|
|
|
|
{/* <DatePickerCharts isform={true} {...fieldProps.dates} form={form} /> */}
|
|
|
|
{/* <DatePickerCharts isform={true} {...fieldProps.dates} form={form} /> */}
|
|
|
@ -230,7 +231,7 @@ function getFields(props) {
|
|
|
|
fieldProps?.dates?.col || midCol
|
|
|
|
fieldProps?.dates?.col || midCol
|
|
|
|
),
|
|
|
|
),
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
"username",
|
|
|
|
"username", //用户名
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name="username" label={t("account:username")} {...fieldProps.username}>
|
|
|
|
<Form.Item name="username" label={t("account:username")} {...fieldProps.username}>
|
|
|
|
<Input placeholder={t("account:username")} allowClear />
|
|
|
|
<Input placeholder={t("account:username")} allowClear />
|
|
|
@ -241,7 +242,7 @@ function getFields(props) {
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
"year",
|
|
|
|
"year", //年份
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name={"year"} label={t("products:UseYear")} {...fieldProps.year} initialValue={at(props, "initialValue.year")[0]}>
|
|
|
|
<Form.Item name={"year"} label={t("products:UseYear")} {...fieldProps.year} initialValue={at(props, "initialValue.year")[0]}>
|
|
|
|
<DatePicker picker="year" allowClear {...fieldComProps.year} />
|
|
|
|
<DatePicker picker="year" allowClear {...fieldComProps.year} />
|
|
|
@ -249,7 +250,7 @@ function getFields(props) {
|
|
|
|
fieldProps?.year?.col || 3
|
|
|
|
fieldProps?.year?.col || 3
|
|
|
|
),
|
|
|
|
),
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
"agency",
|
|
|
|
"agency", //地接社
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name="agency" label={t("products:Vendor")} {...fieldProps.agency} initialValue={at(props, "initialValue.agency")[0]}>
|
|
|
|
<Form.Item name="agency" label={t("products:Vendor")} {...fieldProps.agency} initialValue={at(props, "initialValue.agency")[0]}>
|
|
|
|
<VendorSelector {...fieldComProps.agency} />
|
|
|
|
<VendorSelector {...fieldComProps.agency} />
|
|
|
@ -257,15 +258,40 @@ function getFields(props) {
|
|
|
|
fieldProps?.agency?.col || 6
|
|
|
|
fieldProps?.agency?.col || 6
|
|
|
|
),
|
|
|
|
),
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
"audit_state",
|
|
|
|
"airticket_state", //机票处理状态,-1所有 0未出票 1已出票
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name={`audit_state`} initialValue={at(props, "initialValue.audit_state")[0] || { value: "", label: "Status" }}>
|
|
|
|
<Form.Item name="airticket_state" label="出票状态" initialValue={at(props, "initialValue.airticket_state")[0] || { value: "-1", label: "所有" }}>
|
|
|
|
<AuditStateSelector {...fieldComProps.audit_state} />
|
|
|
|
<Select
|
|
|
|
|
|
|
|
labelInValue
|
|
|
|
|
|
|
|
options={[
|
|
|
|
|
|
|
|
{ value: "-1", label: "所有" },
|
|
|
|
|
|
|
|
{ value: "0", label: "未出票" },
|
|
|
|
|
|
|
|
{ value: "1", label: "已出票" },
|
|
|
|
|
|
|
|
]}
|
|
|
|
|
|
|
|
/>
|
|
|
|
</Form.Item>,
|
|
|
|
</Form.Item>,
|
|
|
|
fieldProps?.audit_state?.col || 3
|
|
|
|
fieldProps?.airticket_state?.col || 4
|
|
|
|
),
|
|
|
|
),
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
"products_types",
|
|
|
|
"plan_state", //团计划状态:-1所有 0新计划,1计划已确认,2计划已变更,3计划已取消
|
|
|
|
|
|
|
|
99,
|
|
|
|
|
|
|
|
<Form.Item name="plan_state" label="计划状态" initialValue={at(props, "initialValue.plan_state")[0] || { value: "-1", label: "所有" }}>
|
|
|
|
|
|
|
|
<Select
|
|
|
|
|
|
|
|
labelInValue
|
|
|
|
|
|
|
|
options={[
|
|
|
|
|
|
|
|
{ value: "-1", label: "所有" },
|
|
|
|
|
|
|
|
{ value: "0", label: "新计划" },
|
|
|
|
|
|
|
|
{ value: "1", label: "已确认" },
|
|
|
|
|
|
|
|
{ value: "2", label: "有变更" },
|
|
|
|
|
|
|
|
{ value: "3", label: "已取消" },
|
|
|
|
|
|
|
|
]}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</Form.Item>,
|
|
|
|
|
|
|
|
fieldProps?.plan_state?.col || 4
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
item(
|
|
|
|
|
|
|
|
"products_types", //产品类型,综费、超公里、导游、车费
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name={`products_types`} label={t("products:ProductType")} {...fieldProps.products_types} initialValue={at(props, "initialValue.products_types")[0] || undefined}>
|
|
|
|
<Form.Item name={`products_types`} label={t("products:ProductType")} {...fieldProps.products_types} initialValue={at(props, "initialValue.products_types")[0] || undefined}>
|
|
|
|
<ProductsTypesSelector maxTagCount={1} {...fieldComProps.products_types} />
|
|
|
|
<ProductsTypesSelector maxTagCount={1} {...fieldComProps.products_types} />
|
|
|
@ -273,7 +299,7 @@ function getFields(props) {
|
|
|
|
fieldProps?.products_types?.col || 6
|
|
|
|
fieldProps?.products_types?.col || 6
|
|
|
|
),
|
|
|
|
),
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
"dept",
|
|
|
|
"dept", //小组
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name={`dept`} label={t("products:Dept")} {...fieldProps.dept} initialValue={at(props, "initialValue.dept")[0] || undefined}>
|
|
|
|
<Form.Item name={`dept`} label={t("products:Dept")} {...fieldProps.dept} initialValue={at(props, "initialValue.dept")[0] || undefined}>
|
|
|
|
<DeptSelector {...fieldComProps.dept} />
|
|
|
|
<DeptSelector {...fieldComProps.dept} />
|
|
|
@ -281,7 +307,7 @@ function getFields(props) {
|
|
|
|
fieldProps?.dept?.col || 6
|
|
|
|
fieldProps?.dept?.col || 6
|
|
|
|
),
|
|
|
|
),
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
"city",
|
|
|
|
"city", //城市
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name={`city`} label={t("products:City")} {...fieldProps.city} initialValue={at(props, "initialValue.city")[0] || undefined}>
|
|
|
|
<Form.Item name={`city`} label={t("products:City")} {...fieldProps.city} initialValue={at(props, "initialValue.city")[0] || undefined}>
|
|
|
|
<CitySelector {...fieldComProps.city} />
|
|
|
|
<CitySelector {...fieldComProps.city} />
|
|
|
@ -289,7 +315,7 @@ function getFields(props) {
|
|
|
|
fieldProps?.city?.col || 4
|
|
|
|
fieldProps?.city?.col || 4
|
|
|
|
),
|
|
|
|
),
|
|
|
|
item(
|
|
|
|
item(
|
|
|
|
"unconfirmed",
|
|
|
|
"unconfirmed", //未确认,团计划
|
|
|
|
99,
|
|
|
|
99,
|
|
|
|
<Form.Item name={`unconfirmed`} valuePropName="checked" initialValue={at(props, "initialValue.unconfirmed") || false}>
|
|
|
|
<Form.Item name={`unconfirmed`} valuePropName="checked" initialValue={at(props, "initialValue.unconfirmed") || false}>
|
|
|
|
<Checkbox>{t("group:unconfirmed")}</Checkbox>
|
|
|
|
<Checkbox>{t("group:unconfirmed")}</Checkbox>
|
|
|
|