diff --git a/src/components/CitySelector.jsx b/src/components/CitySelector.jsx
new file mode 100644
index 0000000..692cfbf
--- /dev/null
+++ b/src/components/CitySelector.jsx
@@ -0,0 +1,29 @@
+import { createContext, useEffect, useState } from 'react';
+import {} from 'antd';
+import SearchInput from './SearchInput';
+import { fetchJSON } from '@/utils/request';
+import { HT_HOST } from '@/config';
+import { useTranslation } from 'react-i18next';
+
+//供应商列表
+export const fetchCityList = async (q) => {
+ const { errcode, result } = await fetchJSON(`${HT_HOST}/Service_BaseInfoWeb/search_cities`, { q });
+ return errcode !== 0 ? [] : result;
+};
+
+const CitySelector = ({ ...props }) => {
+ const { t } = useTranslation();
+ return (
+ <>
+
+ >
+ );
+};
+export default CitySelector;
diff --git a/src/components/SearchForm.jsx b/src/components/SearchForm.jsx
index e62177c..ab0be78 100644
--- a/src/components/SearchForm.jsx
+++ b/src/components/SearchForm.jsx
@@ -10,6 +10,7 @@ import SearchInput from './SearchInput';
import AuditStateSelector from './AuditStateSelector';
import DeptSelector from './DeptSelector';
import ProductsTypesSelector, { fetchVendorList } from './ProductsTypesSelector';
+import CitySelector from '@/components/CitySelector';
const { RangePicker } = DatePicker;
@@ -65,6 +66,12 @@ const SearchForm = ({ initialValue, onSubmit, onReset, confirmText, formName, fo
return Array.isArray(value) ? value.map((ele) => ele.key).join(',') : value ? value.value : '';
},
},
+ 'city': {
+ key: 'city',
+ transform: (value) => {
+ return Array.isArray(value) ? value.map((ele) => ele.key).join(',') : value ? value.value : '';
+ },
+ },
'unconfirmed': { key: 'unconfirmed', transform: (value) => value ? 1 : 0 },
};
let dest = {};
@@ -276,6 +283,14 @@ function getFields(props) {
,
fieldProps?.dept?.col || 6
),
+ item(
+ 'city',
+ 99,
+
+
+ ,
+ fieldProps?.city?.col || 4
+ ),
item(
'unconfirmed',
99,
diff --git a/src/views/products/Detail/Extras.jsx b/src/views/products/Detail/Extras.jsx
index 6446db5..203a35b 100644
--- a/src/views/products/Detail/Extras.jsx
+++ b/src/views/products/Detail/Extras.jsx
@@ -71,7 +71,7 @@ const NewAddonModal = ({ onPick, ...props }) => {
setOpen(false)} destroyOnClose>
{