Commit 455b8bf8 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

Merge branch 'dev' into test

parents a3ad28d1 3229623c
...@@ -70,6 +70,10 @@ export enum FILTER_TYPE { ...@@ -70,6 +70,10 @@ export enum FILTER_TYPE {
*/ */
category = 'category', category = 'category',
/** /**
* 会员品类
*/
customerCategory = 'customerCategory',
/**
* 分类和属性 * 分类和属性
*/ */
categoryAndAttr = 'categoryAndAttr', categoryAndAttr = 'categoryAndAttr',
......
...@@ -15,6 +15,7 @@ import styles from './index.less' ...@@ -15,6 +15,7 @@ import styles from './index.less'
import { GetTemplateChannelFindChannelResponse } from '@/services/TemplateApi' import { GetTemplateChannelFindChannelResponse } from '@/services/TemplateApi'
import { isEmpty } from '@formily/antd/esm/shared' import { isEmpty } from '@formily/antd/esm/shared'
import { GlobalConfig } from '@/global/config' import { GlobalConfig } from '@/global/config'
import { getAuth } from '@/utils/auth'
interface ShopInfoPropsType { interface ShopInfoPropsType {
SiteStore: { SiteStore: {
...@@ -46,8 +47,11 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => { ...@@ -46,8 +47,11 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
// 根据站点获取商城信息 // 根据站点获取商城信息
const fetchAllShop = () => { const fetchAllShop = () => {
//@ts-ignore const param: any = {
PublicApi.getManageShopFindShopsBySiteId({ siteId, type: 2 }).then(res => { siteId,
type: 2
}
PublicApi.getManageShopFindShopsBySiteId(param).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
setAllMallList(res.data) setAllMallList(res.data)
} }
...@@ -58,7 +62,11 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => { ...@@ -58,7 +62,11 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
* 获取渠道信息 * 获取渠道信息
*/ */
const fetchShopInfo = () => { const fetchShopInfo = () => {
PublicApi.getTemplateChannelFindChannel().then(res => { const { memberId } = getAuth() || {}
const param: any = {
memberId
}
PublicApi.getTemplateChannelFindChannel(param).then(res => {
const data = res.data const data = res.data
if (res.code === 1000) { if (res.code === 1000) {
setShopInfo(data) setShopInfo(data)
...@@ -92,7 +100,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => { ...@@ -92,7 +100,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
} }
const handleAddNewCitySelect = (item: any) => { const handleAddNewCitySelect = (item: any) => {
let temp = [...selectCityData] const temp = [...selectCityData]
temp.push(item) temp.push(item)
setSelectCityData(temp) setSelectCityData(temp)
form.setFieldsValue({ form.setFieldsValue({
...@@ -136,7 +144,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => { ...@@ -136,7 +144,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
const handleSave = (e: any) => { const handleSave = (e: any) => {
e.preventDefault() e.preventDefault()
form.validateFields().then(value => { form.validateFields().then((value: any) => {
if (!checkmemberChannelAreas(value.memberChannelAreas)) { if (!checkmemberChannelAreas(value.memberChannelAreas)) {
return return
} }
...@@ -147,7 +155,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => { ...@@ -147,7 +155,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
value.storeUrl = storeUrl || `${siteUrl}/${GlobalConfig.channelRootRoute}` value.storeUrl = storeUrl || `${siteUrl}/${GlobalConfig.channelRootRoute}`
value.shopId = shopId value.shopId = shopId
setConfirmLoading(true) setConfirmLoading(true)
//@ts-ignore
PublicApi.postTemplateChannelSaveChannel(value).then(res => { PublicApi.postTemplateChannelSaveChannel(value).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
fetchShopInfo() fetchShopInfo()
...@@ -215,7 +223,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => { ...@@ -215,7 +223,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
return return
} }
if (shopInfo.shopId && shopInfo.memberId) { if (shopInfo.shopId && shopInfo.memberId) {
let resUrl = getMallItemAndSetUrl(mallId) const resUrl = getMallItemAndSetUrl(mallId)
setStoreUrl(resUrl) setStoreUrl(resUrl)
} else { } else {
setStoreUrl(null) setStoreUrl(null)
...@@ -225,7 +233,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => { ...@@ -225,7 +233,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
const getMallItemAndSetUrl = (mallId) => { const getMallItemAndSetUrl = (mallId) => {
let result = "" let result = ""
let mallItem = allMallList.filter(item => item.id === mallId)[0] const mallItem = allMallList.filter(item => item.id === mallId)[0]
if (!mallItem) { if (!mallItem) {
return "" return ""
} }
...@@ -261,7 +269,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => { ...@@ -261,7 +269,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
return null return null
} }
if (shopId && shopInfo.shopId && shopInfo.memberId) { if (shopId && shopInfo.shopId && shopInfo.memberId) {
let resUrl = getMallItemAndSetUrl(shopId) const resUrl = getMallItemAndSetUrl(shopId)
return resUrl ? ( return resUrl ? (
<div className={styles.shop_url}> <div className={styles.shop_url}>
<span>当前店铺链接:</span> <span>当前店铺链接:</span>
...@@ -396,7 +404,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => { ...@@ -396,7 +404,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
labelAlign="left" labelAlign="left"
name="customerUrl" name="customerUrl"
label={<RequireItem label="客服链接" />} label={<RequireItem label="客服链接" />}
rules={[{ pattern: /(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/, message: '请输入正确的客服链接' }]} rules={[{ pattern: /(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&:/~+#]*[\w\-@?^=%&/~+#])?/, message: '请输入正确的客服链接' }]}
> >
<Input allowClear className={styles.form_item} /> <Input allowClear className={styles.form_item} />
</Form.Item> </Form.Item>
......
...@@ -5,7 +5,7 @@ import SettingList from '../../../../components/SettingList' ...@@ -5,7 +5,7 @@ import SettingList from '../../../../components/SettingList'
import GoodsItem from './GoodsItem' import GoodsItem from './GoodsItem'
import SettingPanel from '../../../../components/SettingPanel' import SettingPanel from '../../../../components/SettingPanel'
import { CaretUpOutlined, CaretDownOutlined } from '@ant-design/icons' import { CaretUpOutlined, CaretDownOutlined } from '@ant-design/icons'
import { GetTemplatePlatformFindGoodsListResponseDetail } from '@/services' import { GetTemplatePlatformFindGoodsListResponseDetail } from '@/services/TemplateApi'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
import { filterProps } from '../../../../utils' import { filterProps } from '../../../../utils'
import styles from './index.less' import styles from './index.less'
...@@ -44,7 +44,6 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => { ...@@ -44,7 +44,6 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => {
const [totalCount, setTotalCount] = useState<number>(0) const [totalCount, setTotalCount] = useState<number>(0)
const [filterParam, setFilterParam] = useState() const [filterParam, setFilterParam] = useState()
const [spinLoading, setSpinLoading] = useState<boolean>(false) const [spinLoading, setSpinLoading] = useState<boolean>(false)
const [newProps, setNewProps] = useState(props)
const [categoryResponseList, setCategoryResponseList] = useState<any>([]) const [categoryResponseList, setCategoryResponseList] = useState<any>([])
const [noSelectBrands, setNoSelectBrands] = useState<any[]>([]) const [noSelectBrands, setNoSelectBrands] = useState<any[]>([])
...@@ -59,8 +58,7 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => { ...@@ -59,8 +58,7 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => {
categoryId: categoryid, categoryId: categoryid,
templateId: templateid templateId: templateid
} }
PublicApi.getTemplateShopFindCategoryList(param).then(res => {
PublicApi.getTemplatePlatformFindCategoryList(param).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
const data = res.data const data = res.data
setCategoryResponseList(data.categoryBOList || []) setCategoryResponseList(data.categoryBOList || [])
...@@ -283,7 +281,10 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => { ...@@ -283,7 +281,10 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => {
</Button> </Button>
) : ( ) : (
<Button <Button
onClick={() => setOprationType('list')} onClick={() => {
setOprationType('list')
setIsHighSearch(false)
}}
> >
查看已选择商品({selectGoodsList.length}) 查看已选择商品({selectGoodsList.length})
</Button> </Button>
......
...@@ -270,7 +270,6 @@ const Add: React.FC<{}> = () => { ...@@ -270,7 +270,6 @@ const Add: React.FC<{}> = () => {
* 提交表单 * 提交表单
*/ */
const handleSubmit = (values: any) => { const handleSubmit = (values: any) => {
console.log(values)
const SELF_MENTION = 2; // 自提 const SELF_MENTION = 2; // 自提
const { const {
deliveryDate, deliveryDate,
...@@ -340,7 +339,6 @@ const Add: React.FC<{}> = () => { ...@@ -340,7 +339,6 @@ const Add: React.FC<{}> = () => {
delete postData.receiverAddressId delete postData.receiverAddressId
} }
console.log(postData); console.log(postData);
// return ;
PublicApi.postEnhanceSupplierToBeAddAdd(postData) PublicApi.postEnhanceSupplierToBeAddAdd(postData)
.then(data => { .then(data => {
setSubmitLoading(false); setSubmitLoading(false);
......
...@@ -5,8 +5,7 @@ import classnames from 'classnames'; ...@@ -5,8 +5,7 @@ import classnames from 'classnames';
import {FileList, UploadFile} from '../../components/UploadFile'; import {FileList, UploadFile} from '../../components/UploadFile';
import NiceForm from '@/components/NiceForm'; import NiceForm from '@/components/NiceForm';
import { createFormActions } from '@formily/antd' import { createFormActions } from '@formily/antd'
import {useScroll, useDebounceFn } from '@umijs/hooks'; import {useScroll } from '@umijs/hooks';
import { min } from 'lodash';
const actions = createFormActions(); const actions = createFormActions();
const schema = { const schema = {
...@@ -64,7 +63,6 @@ interface Iprops { ...@@ -64,7 +63,6 @@ interface Iprops {
const Content: React.FC<Iprops> = React.forwardRef((props, conftentRef) => { const Content: React.FC<Iprops> = React.forwardRef((props, conftentRef) => {
const { id, name, category, brand, unitName, files, productProps, quantity, processUnitPrice } = props; const { id, name, category, brand, unitName, files, productProps, quantity, processUnitPrice } = props;
const [active, setActive] = useState<string>("基本信息");
const [menu, setMenu] = useState([]) const [menu, setMenu] = useState([])
// const ref = useRef(null); // const ref = useRef(null);
const [scroll, ref] = useScroll<HTMLDivElement>(); const [scroll, ref] = useScroll<HTMLDivElement>();
......
...@@ -60,10 +60,23 @@ ...@@ -60,10 +60,23 @@
margin-right: 12px; margin-right: 12px;
border-radius: 50%; border-radius: 50%;
// background-color: red; // background-color: red;
overflow: hidden;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.randomLogo {
width: 100%;
height: 100%;
background: linear-gradient(135deg, #4981CC 0%, #1A4F97 100%) #255BA3;
border-radius: 50%;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
font-size: 18px;
}
} }
.wrapper { .wrapper {
......
...@@ -16,7 +16,7 @@ const WEEKDAYS = ["天", "一","二", "三", "四", "五","六"]; ...@@ -16,7 +16,7 @@ const WEEKDAYS = ["天", "一","二", "三", "四", "五","六"];
const LEVEL_IMAGE = [level1, level2, level3, level4]; const LEVEL_IMAGE = [level1, level2, level3, level4];
const EDIT_USER_URL = '/memberCenter/memberAbility/query'; const EDIT_USER_URL = '/memberCenter/memberAbility/query';
const USER_CENTER_URL = '/memberCenter/memberAbility/manage/maintain' const USER_CENTER_URL = '/memberCenter/memberAbility/manage/maintain'
const STATUS_COLOR = ["default", "processing", "error", "success"] const STATUS_COLOR: ("default" | "processing" | "error" | "success")[] = ["default", "processing", "error", "success"]
const UserCenter: React.FC<Iprops> = () => { const UserCenter: React.FC<Iprops> = () => {
const today = moment(); const today = moment();
...@@ -46,11 +46,12 @@ const UserCenter: React.FC<Iprops> = () => { ...@@ -46,11 +46,12 @@ const UserCenter: React.FC<Iprops> = () => {
<div className={styles.content}> <div className={styles.content}>
<Row className={styles.row}> <Row className={styles.row}>
<Col span={11} className={styles.user}> <Col span={11} className={styles.user}>
{/* http://10.0.0.25:4000/project/15/interface/api/38926 上传用户头像 */}
<div className={styles.pic} > <div className={styles.pic} >
{ {
userAuth.logo userAuth.logo
? <img src={userAuth.logo || ''} /> ? <img src={userAuth.logo || ''} />
: <div></div> : <div className={styles.randomLogo}>H</div>
} }
</div> </div>
......
...@@ -371,7 +371,13 @@ const CommodityDetail = (props) => { ...@@ -371,7 +371,13 @@ const CommodityDetail = (props) => {
postFn = PublicApi.postSearchShopPurchaseSaveOrUpdatePurchase postFn = PublicApi.postSearchShopPurchaseSaveOrUpdatePurchase
break; break;
} }
PublicApi.postOrderDirectPayment({ productId: selectCommodityId, memberId }).then(res => {
const directParam: any = {
productId: selectCommodityId,
memberId,
shopId
}
PublicApi.postOrderDirectPayment(directParam).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
message.destroy() message.destroy()
postFn && postFn(param).then(res => { postFn && postFn(param).then(res => {
...@@ -483,8 +489,12 @@ const CommodityDetail = (props) => { ...@@ -483,8 +489,12 @@ const CommodityDetail = (props) => {
if (clickFlag) { if (clickFlag) {
clickFlag = false clickFlag = false
const param: any = {
PublicApi.postOrderDirectPayment({ productId: selectCommodityId, memberId }).then(res => { productId: selectCommodityId,
memberId,
shopId
}
PublicApi.postOrderDirectPayment(param).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
message.destroy() message.destroy()
const buyCommodityInfo = { const buyCommodityInfo = {
......
...@@ -6,6 +6,7 @@ import { LAYOUT_TYPE, FILTER_TYPE } from '@/constants' ...@@ -6,6 +6,7 @@ import { LAYOUT_TYPE, FILTER_TYPE } from '@/constants'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
import isEmpty from 'lodash/isEmpty' import isEmpty from 'lodash/isEmpty'
import styles from './index.less' import styles from './index.less'
import { Layout } from '@formily/antd'
const CheckboxGroup = Checkbox.Group const CheckboxGroup = Checkbox.Group
...@@ -29,6 +30,7 @@ const Category: React.FC<CategoryPropsType> = (props) => { ...@@ -29,6 +30,7 @@ const Category: React.FC<CategoryPropsType> = (props) => {
const [initSelectAttributeList, setInitSelectAttributeList] = useState<any>([]) const [initSelectAttributeList, setInitSelectAttributeList] = useState<any>([])
useEffect(() => { useEffect(() => {
console.log(JSON.stringify(filterList))
if (isEmpty(filterList)) { if (isEmpty(filterList)) {
setSelectedKeys([]) setSelectedKeys([])
setLastCategoryId(null) setLastCategoryId(null)
...@@ -39,6 +41,8 @@ const Category: React.FC<CategoryPropsType> = (props) => { ...@@ -39,6 +41,8 @@ const Category: React.FC<CategoryPropsType> = (props) => {
for (const item of filterList) { for (const item of filterList) {
if (item.type === FILTER_TYPE.category) { if (item.type === FILTER_TYPE.category) {
initKeys.push(String(item.key)) initKeys.push(String(item.key))
} else if(item.type === FILTER_TYPE.customerCategory) {
initKeys.push(String(item.key))
} }
if (item.type === FILTER_TYPE.attribute) { if (item.type === FILTER_TYPE.attribute) {
setInitSelectAttributeList(item.key) setInitSelectAttributeList(item.key)
...@@ -186,7 +190,6 @@ const Category: React.FC<CategoryPropsType> = (props) => { ...@@ -186,7 +190,6 @@ const Category: React.FC<CategoryPropsType> = (props) => {
} }
const handleSelect = (selectedKeys, info) => { const handleSelect = (selectedKeys, info) => {
console.log(info)
const { title, children, name } = info.node const { title, children, name } = info.node
setSelectedKeys(selectedKeys) setSelectedKeys(selectedKeys)
if (children.length === 0) { if (children.length === 0) {
...@@ -196,17 +199,31 @@ const Category: React.FC<CategoryPropsType> = (props) => { ...@@ -196,17 +199,31 @@ const Category: React.FC<CategoryPropsType> = (props) => {
} else { } else {
setLastCategoryId(null) setLastCategoryId(null)
setAttributeList([]) setAttributeList([])
if(filterList.some(item => item.type === FILTER_TYPE.attribute)) {
onFilter({ onFilter({
type: FILTER_TYPE.attribute, type: FILTER_TYPE.attribute,
key: null, key: null,
title: `` title: ``
}) })
} }
}
switch(layoutType) {
case LAYOUT_TYPE.mall:
onFilter({ onFilter({
type: FILTER_TYPE.category, type: FILTER_TYPE.category,
key: selectedKeys, key: selectedKeys,
title: typeof title === 'string' ? title : name title: typeof title === 'string' ? title : name
}) })
break
default:
onFilter({
type: FILTER_TYPE.customerCategory,
key: selectedKeys,
title: typeof title === 'string' ? title : name
})
break
}
} }
const handleExpand = (expandedKeys) => { const handleExpand = (expandedKeys) => {
......
...@@ -35,7 +35,7 @@ const LXChannelLayout: React.FC<LXChannelLayoutPropsType> = (props) => { ...@@ -35,7 +35,7 @@ const LXChannelLayout: React.FC<LXChannelLayoutPropsType> = (props) => {
const [loading, setLoading] = useState<boolean>(true) const [loading, setLoading] = useState<boolean>(true)
const getMenuRouter = (routes: any, pathname: any) => { const getMenuRouter = (routes: any, pathname: any) => {
let list = routes.filter((item: any) => pathname.indexOf(item.key) > -1) const list = routes.filter((item: any) => pathname.indexOf(item.key) > -1)
return list[0] || {} return list[0] || {}
} }
...@@ -61,7 +61,7 @@ const LXChannelLayout: React.FC<LXChannelLayoutPropsType> = (props) => { ...@@ -61,7 +61,7 @@ const LXChannelLayout: React.FC<LXChannelLayoutPropsType> = (props) => {
}, [query]) }, [query])
const fetchShopInfo = (memberId) => { const fetchShopInfo = (memberId) => {
//@ts-ignore
PublicApi.getTemplateChannelFindChannel({ memberId }).then(res => { PublicApi.getTemplateChannelFindChannel({ memberId }).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
setShopInfo(res.data) setShopInfo(res.data)
...@@ -73,7 +73,7 @@ const LXChannelLayout: React.FC<LXChannelLayoutPropsType> = (props) => { ...@@ -73,7 +73,7 @@ const LXChannelLayout: React.FC<LXChannelLayoutPropsType> = (props) => {
} }
useEffect(() => { useEffect(() => {
let body = document.getElementsByTagName('body')[0]; const body = document.getElementsByTagName('body')[0];
if (shopInfo) { if (shopInfo) {
body.className = shopInfo.channelShopTemplateFileName ? `theme-channel-${shopInfo.channelShopTemplateFileName}` : templateName; body.className = shopInfo.channelShopTemplateFileName ? `theme-channel-${shopInfo.channelShopTemplateFileName}` : templateName;
} else { } else {
......
...@@ -35,7 +35,7 @@ const LXIChannelLayout: React.FC<LXIChannelLayoutPropsType> = (props) => { ...@@ -35,7 +35,7 @@ const LXIChannelLayout: React.FC<LXIChannelLayoutPropsType> = (props) => {
const [loading, setLoading] = useState<boolean>(true) const [loading, setLoading] = useState<boolean>(true)
const getMenuRouter = (routes: any, pathname: any) => { const getMenuRouter = (routes: any, pathname: any) => {
let list = routes.filter((item: any) => pathname.indexOf(item.key) > -1) const list = routes.filter((item: any) => pathname.indexOf(item.key) > -1)
return list[0] || {} return list[0] || {}
} }
const { formatMessage } = useIntl(); const { formatMessage } = useIntl();
...@@ -61,7 +61,7 @@ const LXIChannelLayout: React.FC<LXIChannelLayoutPropsType> = (props) => { ...@@ -61,7 +61,7 @@ const LXIChannelLayout: React.FC<LXIChannelLayoutPropsType> = (props) => {
}, [query]) }, [query])
const fetchShopInfo = (memberId) => { const fetchShopInfo = (memberId) => {
//@ts-ignore
PublicApi.getTemplateChannelFindChannel({ memberId }).then(res => { PublicApi.getTemplateChannelFindChannel({ memberId }).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
setShopInfo(res.data) setShopInfo(res.data)
...@@ -73,7 +73,7 @@ const LXIChannelLayout: React.FC<LXIChannelLayoutPropsType> = (props) => { ...@@ -73,7 +73,7 @@ const LXIChannelLayout: React.FC<LXIChannelLayoutPropsType> = (props) => {
} }
useEffect(() => { useEffect(() => {
let body = document.getElementsByTagName('body')[0]; const body = document.getElementsByTagName('body')[0];
if (shopInfo) { if (shopInfo) {
body.className = shopInfo.channelOwnShopTemplateFileName ? `theme-channel-${shopInfo.channelOwnShopTemplateFileName}` : templateName; body.className = shopInfo.channelOwnShopTemplateFileName ? `theme-channel-${shopInfo.channelOwnShopTemplateFileName}` : templateName;
} else { } else {
......
...@@ -32,7 +32,7 @@ const LXMallLayout: React.FC<LXMallLayoutPropsType> = (props) => { ...@@ -32,7 +32,7 @@ const LXMallLayout: React.FC<LXMallLayoutPropsType> = (props) => {
const [mallInfo, setMallInfo] = useState<any>({}) const [mallInfo, setMallInfo] = useState<any>({})
const getMenuRouter = (routes: any, pathname: any) => { const getMenuRouter = (routes: any, pathname: any) => {
let list = routes.filter((item: any) => pathname.indexOf(item.key) > -1) const list = routes.filter((item: any) => pathname.indexOf(item.key) > -1)
return list[0] || {} return list[0] || {}
} }
...@@ -50,12 +50,12 @@ const LXMallLayout: React.FC<LXMallLayoutPropsType> = (props) => { ...@@ -50,12 +50,12 @@ const LXMallLayout: React.FC<LXMallLayoutPropsType> = (props) => {
const getWebMallInfo = () => { const getWebMallInfo = () => {
const shopInfo = GlobalConfig.web.shopInfo const shopInfo = GlobalConfig.web.shopInfo
let webMallInfo = shopInfo.filter(item => item.environment === 1 && item.type === 1)[0] const webMallInfo = shopInfo.filter(item => item.environment === 1 && item.type === 1)[0]
setMallInfo(webMallInfo) setMallInfo(webMallInfo)
} }
useEffect(() => { useEffect(() => {
let body = document.getElementsByTagName('body')[0]; const body = document.getElementsByTagName('body')[0];
if (!isEmpty(mallTemplateInfo)) { if (!isEmpty(mallTemplateInfo)) {
body.className = mallTemplateInfo.fileName ? `theme-mall-${mallTemplateInfo.fileName}` : templateName; body.className = mallTemplateInfo.fileName ? `theme-mall-${mallTemplateInfo.fileName}` : templateName;
} else { } else {
......
...@@ -25,12 +25,13 @@ interface OrderPropsType { ...@@ -25,12 +25,13 @@ interface OrderPropsType {
mallInfo: any; mallInfo: any;
layoutType: LAYOUT_TYPE; layoutType: LAYOUT_TYPE;
shopUrlParam: string; shopUrlParam: string;
shopId: number;
} }
const Order: React.FC<OrderPropsType> = (props) => { const Order: React.FC<OrderPropsType> = (props) => {
let checkoutCount = 0 let checkoutCount = 0
const userInfo = getAuth() const userInfo = getAuth()
const { shopInfo, mallInfo, layoutType, shopUrlParam } = props const { shopInfo, mallInfo, layoutType, shopUrlParam, shopId } = props
const { query: { type = COMMODITY_TYPE.prompt } } = props.location const { query: { type = COMMODITY_TYPE.prompt } } = props.location
const [signModalVisible, setSignModalVisible] = useState<boolean>(false) const [signModalVisible, setSignModalVisible] = useState<boolean>(false)
const { spam_id } = props.location.query const { spam_id } = props.location.query
...@@ -266,6 +267,7 @@ const Order: React.FC<OrderPropsType> = (props) => { ...@@ -266,6 +267,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
const params: any = { const params: any = {
orderModel: getOrderMode(), // 下单模式 orderModel: getOrderMode(), // 下单模式
needTheInvoice: needTheInvoice ? 1 : 0, needTheInvoice: needTheInvoice ? 1 : 0,
shopId
} }
if (orderInfo.logistics.deliveryType === 1 && !!selectAddressInfo) { if (orderInfo.logistics.deliveryType === 1 && !!selectAddressInfo) {
......
...@@ -16,5 +16,6 @@ ...@@ -16,5 +16,6 @@
font-weight: 500; font-weight: 500;
// color: #303133; // color: #303133;
display: inline-block; display: inline-block;
cursor: pointer;
} }
} }
...@@ -3,13 +3,11 @@ import { history } from 'umi'; ...@@ -3,13 +3,11 @@ import { history } from 'umi';
import { Card, List, Avatar } from 'antd'; import { Card, List, Avatar } from 'antd';
import styles from './index.less' import styles from './index.less'
import { PageHeaderWrapper } from '@ant-design/pro-layout'; import { PageHeaderWrapper } from '@ant-design/pro-layout';
import { PlusOutlined } from '@ant-design/icons';
import StatusTag from '@/components/StatusTag'; import StatusTag from '@/components/StatusTag';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import moment from 'moment'; import moment from 'moment';
import msg_system from '@/assets/imgs/msg_system.png' import msg_system from '@/assets/imgs/msg_system.png'
import msg_platform from '@/assets/imgs/msg_platform.png'; import msg_platform from '@/assets/imgs/msg_platform.png';
import cx from 'classnames';
const Message: React.FC<{}> = () => { const Message: React.FC<{}> = () => {
const [dataSource, setDataSource] = useState<any>([]) const [dataSource, setDataSource] = useState<any>([])
...@@ -41,7 +39,6 @@ const Message: React.FC<{}> = () => { ...@@ -41,7 +39,6 @@ const Message: React.FC<{}> = () => {
} }
const handlePaginationChange = (page, pageSize) => { const handlePaginationChange = (page, pageSize) => {
console.log(page,pageSize);
getList({page, pageSize}) getList({page, pageSize})
.then((data) => { .then((data) => {
console.log(data); console.log(data);
...@@ -51,12 +48,15 @@ const Message: React.FC<{}> = () => { ...@@ -51,12 +48,15 @@ const Message: React.FC<{}> = () => {
const handleRead = (id, url: string) => { const handleRead = (id, url: string) => {
console.log(url); console.log(url);
// /report/message/member/read
PublicApi.getReportMessageMemberRead({id: id}) PublicApi.getReportMessageMemberRead({id: id})
.then((data) => { .then((data) => {
if(url) { if(url) {
if(/http/.test(url)) {
location.href = url
} else {
history.push(url); history.push(url);
} }
}
}) })
} }
......
...@@ -25,11 +25,12 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => { ...@@ -25,11 +25,12 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => {
const isDeleved = pathname.indexOf('readyConfirmDelevedOrder') !== -1 const isDeleved = pathname.indexOf('readyConfirmDelevedOrder') !== -1
// 是否是确认回单页 // 是否是确认回单页
const isReturn = pathname.indexOf('readyConfirmReturnOrder') !== -1 const isReturn = pathname.indexOf('readyConfirmReturnOrder') !== -1
console.log(isPreview, isDeleved, isReturn)
// 用于储存已经修改过的订单id // 用于储存已经修改过的订单id
const dataRef = useRef<any>([]) const dataRef = useRef<any>([])
const { data, reloadFormData } = useContext(OrderDetailContext) const { data, reloadFormData } = useContext(OrderDetailContext)
const { orderReceivingStatisticsResponses, orderDeliveryDetailsResponses, orderModel } = data const { orderReceivingStatisticsResponses, orderDeliveryDetailsResponses, orderModel, externalState } = data
const creditsCommodity = (orderModel === 24 || orderModel === 25) // 积分或渠道积分下单模式 const creditsCommodity = (orderModel === 24 || orderModel === 25) // 积分或渠道积分下单模式
const outOrderCols: any[] = [ const outOrderCols: any[] = [
...@@ -341,10 +342,13 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => { ...@@ -341,10 +342,13 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => {
childrenDataKey='orderDeliveryProducts' childrenDataKey='orderDeliveryProducts'
dataSource={orderDeliveryDetailsResponses} dataSource={orderDeliveryDetailsResponses}
/> />
{
externalState === 11 && !isPreview && isReturn &&
<Space style={{marginTop: 18, display: "flex", justifyContent: "flex-end"}}> <Space style={{marginTop: 18, display: "flex", justifyContent: "flex-end"}}>
<Button type="primary" onClick={handelReciveReturnOrder}>确认本单全部发货单已收到回单</Button> <Button type="primary" onClick={handelReciveReturnOrder}>确认本单全部发货单已收到回单</Button>
<Button type="primary" onClick={handleContinueDeliver}>继续发货</Button> <Button type="primary" onClick={handleContinueDeliver}>继续发货</Button>
</Space> </Space>
}
</Tabs.TabPane> </Tabs.TabPane>
} }
</Tabs> </Tabs>
......
...@@ -363,7 +363,7 @@ const SaleOrderProductTable:React.FC<OrderProductTableProps> = (props) => { ...@@ -363,7 +363,7 @@ const SaleOrderProductTable:React.FC<OrderProductTableProps> = (props) => {
}) })
ctl.setData({ ctl.setData({
...data, ...data,
orderProductRequests: newData orderProductRequests: newData.sort((a, b) => a.id - b.id)
}) })
}; };
...@@ -479,7 +479,7 @@ const SaleOrderProductTable:React.FC<OrderProductTableProps> = (props) => { ...@@ -479,7 +479,7 @@ const SaleOrderProductTable:React.FC<OrderProductTableProps> = (props) => {
<MellowCard title='订单商品' style={{marginTop: 24}} bordered={false}> <MellowCard title='订单商品' style={{marginTop: 24}} bordered={false}>
<Table <Table
columns={columns} columns={columns}
dataSource={orderProductRequests} dataSource={orderProductRequests.sort((a, b) => a.id - b.id)}
components={productComponents} components={productComponents}
rowKey='id' rowKey='id'
pagination={false} pagination={false}
......
...@@ -4,7 +4,6 @@ import { Row, Space, Popover } from 'antd' ...@@ -4,7 +4,6 @@ import { Row, Space, Popover } from 'antd'
import { DELIVERY_TYPE, OrderModalType, PurchaseOrderOutWorkStateTexts } from '@/constants' import { DELIVERY_TYPE, OrderModalType, PurchaseOrderOutWorkStateTexts } from '@/constants'
import { EnvironmentOutlined } from '@ant-design/icons' import { EnvironmentOutlined } from '@ant-design/icons'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
import { toPercent } from '@/utils/type'
// 简单控制价格区间的组件 // 简单控制价格区间的组件
// @todo 后续需要优化, 样式,目录文件等。 // @todo 后续需要优化, 样式,目录文件等。
...@@ -278,15 +277,11 @@ export const productInfoColumns: any[] = [ ...@@ -278,15 +277,11 @@ export const productInfoColumns: any[] = [
align: 'left', align: 'left',
key: 'unitPrice', key: 'unitPrice',
render: (t, r) => { render: (t, r) => {
// if(r?.commodityId) { // todo 还差需求报价的商品数据字段对比
// return <PriceComp priceSection={r.unitPrice}/> if(r?.commodityId) {
// } else {
// return r.price
// }
if(JSON.stringify(r.unitPrice) === '{}') {
return r.price
} else {
return <PriceComp priceSection={r.unitPrice}/> return <PriceComp priceSection={r.unitPrice}/>
} else {
return <span style={{color: 'red'}}>{r.price}</span>
} }
} }
}, },
...@@ -295,7 +290,7 @@ export const productInfoColumns: any[] = [ ...@@ -295,7 +290,7 @@ export const productInfoColumns: any[] = [
dataIndex: 'memberPrice', dataIndex: 'memberPrice',
align: 'center', align: 'center',
key: 'memberPrice', key: 'memberPrice',
render: (text, record) => record.isMemberPrice ? toPercent(text) : null render: (text, record) => record.isMemberPrice && text ? text * 100 + '%' : null
}, },
{ {
title: '采购数量', title: '采购数量',
......
...@@ -89,7 +89,6 @@ export const useEditHideField = () => { ...@@ -89,7 +89,6 @@ export const useEditHideField = () => {
export const useProductTableChangeForPay = (ctx: ISchemaFormActions | ISchemaFormAsyncActions, update) => { export const useProductTableChangeForPay = (ctx: ISchemaFormActions | ISchemaFormAsyncActions, update) => {
FormEffectHooks.onFieldValueChange$('orderProductRequests').subscribe(state => { FormEffectHooks.onFieldValueChange$('orderProductRequests').subscribe(state => {
const { value } = state const { value } = state
console.log(value, 'vlaue')
const payInfoData = ctx.getFieldValue('paymentInformationResponses') const payInfoData = ctx.getFieldValue('paymentInformationResponses')
// 强制渲染一次, 用于触发金额总数 // 强制渲染一次, 用于触发金额总数
update() update()
...@@ -175,15 +174,16 @@ export const useOrderFormInitEffect = (ctx: ISchemaFormActions | ISchemaFormAsyn ...@@ -175,15 +174,16 @@ export const useOrderFormInitEffect = (ctx: ISchemaFormActions | ISchemaFormAsyn
prev[next.range] = next.price prev[next.range] = next.price
return prev return prev
}, {}), }, {}),
isMemberPrice: !!v.memberDiscount, isMemberPrice: v.isMemberPrice,
purchaseCount: v.count, purchaseCount: v.count,
money: v.count * v.unitPrice, money: v.count * v.unitPrice,
productId: v.id, productId: v.id,
memberId: initValue.supplyMembersId, // 添加 memberId 字段 memberId: initValue.supplyMembersId, // 添加 memberId 字段
commodityId: v.id, // 添加commodityId用于判断是商品价格是使用price字段还是unitPrice字段(也可判断是报价订单还是其他) commodityId: v.id, // 添加commodityId用于判断是商品价格是使用price字段还是unitPrice字段(也可判断是报价订单还是其他)
memberPrice: v.memberDiscount !== 1 ? toPercent(v.memberDiscount) : 1, // 添加会员折扣 memberPrice: v.memberDiscount !== 1 ? v.memberDiscount : 1, // 添加会员折扣
} }
}))) })
))
} }
// 回显的数据保存在表单中, 当切换下单模式时,可以再次回显 // 回显的数据保存在表单中, 当切换下单模式时,可以再次回显
......
...@@ -72,7 +72,7 @@ export const MoneyTotalBox = registerVirtualBox('moneyTotalBox', props => { ...@@ -72,7 +72,7 @@ export const MoneyTotalBox = registerVirtualBox('moneyTotalBox', props => {
orderProductList: logsiticsDataMaps.map(v => ({ orderProductList: logsiticsDataMaps.map(v => ({
templateId: v.logistics.templateId, templateId: v.logistics.templateId,
weight: v.logistics.weight, weight: v.logistics.weight,
count: v?.purchaseCount || 0 count: v?.purchaseCount || null
})), })),
receiverAddressId: typeof receiverAddressId === 'object' ? receiverAddressId.id : receiverAddressId receiverAddressId: typeof receiverAddressId === 'object' ? receiverAddressId.id : receiverAddressId
}, {ttl: 10 * 1000, useCache: true, ctlType: 'none'}).then(res => { }, {ttl: 10 * 1000, useCache: true, ctlType: 'none'}).then(res => {
......
...@@ -48,9 +48,9 @@ export const getUnitPriceTotal = (record) => { ...@@ -48,9 +48,9 @@ export const getUnitPriceTotal = (record) => {
// let memberPrice = record.memberPrice !== 1 ? toPoint(record.memberPrice) : 1 // let memberPrice = record.memberPrice !== 1 ? toPoint(record.memberPrice) : 1
let memberPrice = record.memberPrice let memberPrice = record.memberPrice
if(record.isMemberPrice) { if(record.isMemberPrice) {
return unitPrice * purchaseCount * memberPrice return Number((unitPrice * purchaseCount * memberPrice).toFixed(2))
} else { } else {
return unitPrice * purchaseCount return Number((unitPrice * purchaseCount).toFixed(2))
} }
} }
export const useProductTable = (ctx: ISchemaFormActions | ISchemaFormAsyncActions) => { export const useProductTable = (ctx: ISchemaFormActions | ISchemaFormAsyncActions) => {
...@@ -105,7 +105,6 @@ export const useProductTable = (ctx: ISchemaFormActions | ISchemaFormAsyncAction ...@@ -105,7 +105,6 @@ export const useProductTable = (ctx: ISchemaFormActions | ISchemaFormAsyncAction
const newData = [...ctx.getFieldValue('orderProductRequests')]; const newData = [...ctx.getFieldValue('orderProductRequests')];
const index = newData.findIndex(item => row.id === item.id); const index = newData.findIndex(item => row.id === item.id);
const item = newData[index]; const item = newData[index];
console.log(getUnitPriceTotal(row), 'row')
row['money'] = getUnitPriceTotal(row) row['money'] = getUnitPriceTotal(row)
// 新增的时候接口字段id,commodityId 编辑的时候id,productId // 新增的时候接口字段id,commodityId 编辑的时候id,productId
row['productId'] = row?.commodityId ? row.id : row.productId row['productId'] = row?.commodityId ? row.id : row.productId
......
...@@ -4,7 +4,7 @@ import { Button, Row, Col, Progress, Popconfirm } from 'antd' ...@@ -4,7 +4,7 @@ import { Button, Row, Col, Progress, Popconfirm } from 'antd'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
import EyePreview from '@/components/EyePreview' import EyePreview from '@/components/EyePreview'
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
import { ORDER_TYPE, PurchaseOrderOutWorkState } from '@/constants' import { ORDER_TYPE, PurchaseOrderInsideWorkState, PurchaseOrderOutWorkState } from '@/constants'
import StatusColors from '../../components/StatusColors' import StatusColors from '../../components/StatusColors'
import { FieldTimeOutlined } from '@ant-design/icons' import { FieldTimeOutlined } from '@ant-design/icons'
import { import {
...@@ -162,7 +162,12 @@ export const useSelfTable = (props) => { ...@@ -162,7 +162,12 @@ export const useSelfTable = (props) => {
<Link to={`/memberCenter/tranactionAbility/purchaseOrder/readyPayOrder/detail?id=${record.id}`}>去支付</Link> <Link to={`/memberCenter/tranactionAbility/purchaseOrder/readyPayOrder/detail?id=${record.id}`}>去支付</Link>
} }
{ {
(record.externalState === PurchaseOrderOutWorkState.PAY_ORDER && !record.signatureLogId || record.externalState === PurchaseOrderOutWorkState.CONFIRM_NOT_ARRIVED_ACCOUNT) && (
record.externalState === PurchaseOrderOutWorkState.PAY_ORDER &&
!record.signatureLogId ||
record.externalState === PurchaseOrderOutWorkState.CONFIRM_NOT_ARRIVED_ACCOUNT &&
record.interiorState !== PurchaseOrderInsideWorkState.PAY_SUCCESS
) &&
<Popconfirm <Popconfirm
title="是否要取消该订单?" title="是否要取消该订单?"
onConfirm={() => handleCancel(record.id)} onConfirm={() => handleCancel(record.id)}
......
...@@ -64,7 +64,7 @@ export const useSelfTable = () => { ...@@ -64,7 +64,7 @@ export const useSelfTable = () => {
}, },
{ title: '收货批次', align: 'center', dataIndex: 'shipmentBatch', key: 'shipmentBatch', render: text => text ? `第${text}次` : '' }, { title: '收货批次', align: 'center', dataIndex: 'shipmentBatch', key: 'shipmentBatch', render: text => text ? `第${text}次` : '' },
// @todo 收货单号跳转 // @todo 收货单号跳转
{ title: '入库单号', align: 'center', dataIndex: 'invoiceNumber', key: 'invoiceNumber', render: text => <Link to={'/'}>{text}</Link> }, { title: '收货单号', align: 'center', dataIndex: 'invoiceNumber', key: 'invoiceNumber', render: text => <Link to={'/'}>{text}</Link> },
{ {
title: '订单类型', title: '订单类型',
align: 'center', align: 'center',
......
...@@ -12,7 +12,6 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte ...@@ -12,7 +12,6 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
import { FORM_FILTER_PATH } from '@/formSchema/const' import { FORM_FILTER_PATH } from '@/formSchema/const'
import Submit from '@/components/NiceForm/components/Submit' import Submit from '@/components/NiceForm/components/Submit'
import DateRangePickerUnix from '@/components/NiceForm/components/DateRangePickerUnix' import DateRangePickerUnix from '@/components/NiceForm/components/DateRangePickerUnix'
// 待确认支付结果订单 // 待确认支付结果订单
export interface FirstApprovedOrderProps {} export interface FirstApprovedOrderProps {}
......
...@@ -64,7 +64,13 @@ export const useSelfTable = () => { ...@@ -64,7 +64,13 @@ export const useSelfTable = () => {
}, },
{ title: '发货批次', align: 'center', dataIndex: 'shipmentBatch', key: 'shipmentBatch', render: text => text ? `第${text}次` : '' }, { title: '发货批次', align: 'center', dataIndex: 'shipmentBatch', key: 'shipmentBatch', render: text => text ? `第${text}次` : '' },
// @todo 发货单号跳转 // @todo 发货单号跳转
{ title: '发货单号', align: 'center', dataIndex: 'invoiceNumber', key: 'invoiceNumber', render: text => <Link to={'/'}>{text}</Link> }, {
title: '发货单号',
align: 'center',
dataIndex: 'invoiceNumber',
key: 'invoiceNumber',
render: (text, record) => <Link to={`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?id=${record.invoiceId}&preview=1`}>{text}</Link>
},
// { title: '当前支付', align: 'center', dataIndex: 'currentPayments', render: (text, record) => text}, // { title: '当前支付', align: 'center', dataIndex: 'currentPayments', render: (text, record) => text},
{ {
title: '订单类型', title: '订单类型',
......
...@@ -60,7 +60,7 @@ export const useSelfTable = () => { ...@@ -60,7 +60,7 @@ export const useSelfTable = () => {
align: 'center', align: 'center',
dataIndex: 'sumPrice', dataIndex: 'sumPrice',
key: 'sumPrice', key: 'sumPrice',
render: text => '¥' + text render: (t, r) => (r.type === 7 || r.type === 8) ? t : '¥' + t
}, },
{ title: '发货批次', align: 'center', dataIndex: 'shipmentBatch', key: 'shipmentBatch', render: text => text ? `第${text}次` : '' }, { title: '发货批次', align: 'center', dataIndex: 'shipmentBatch', key: 'shipmentBatch', render: text => text ? `第${text}次` : '' },
// @todo 发货单号跳转 // @todo 发货单号跳转
......
...@@ -239,7 +239,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => { ...@@ -239,7 +239,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
async function getInitValue() { async function getInitValue() {
const { data } = await PublicApi.getOrderTradingRulesDetails({id: id}) const { data } = await PublicApi.getOrderTradingRulesDetails({id: id})
if(data.isTacitlyApprove === 2) { if(data.isTacitlyApprove === 2) {
const res = await getBindingProducts({id: id.toString(), current: '1', pageSize: '10'}) const res = await getBindingProducts({id: id.toString(), current: '1', pageSize: '1000'})
addSchemaAction.setFieldState('products', state => { addSchemaAction.setFieldState('products', state => {
state.value = res.data state.value = res.data
}) })
......
...@@ -176,7 +176,6 @@ export const ruleDetailSchema: ISchema = padRequiredMessage({ ...@@ -176,7 +176,6 @@ export const ruleDetailSchema: ISchema = padRequiredMessage({
rowKey: 'id', rowKey: 'id',
columns: "{{tableColumns}}", columns: "{{tableColumns}}",
prefix: "{{tableAddButton}}", prefix: "{{tableAddButton}}",
idNotList: []
} }
} }
} }
......
...@@ -138,6 +138,9 @@ class FilterStore { ...@@ -138,6 +138,9 @@ class FilterStore {
case FILTER_TYPE.category: case FILTER_TYPE.category:
tempFilterParam.categoryId = Number(filterItem.key[0]) tempFilterParam.categoryId = Number(filterItem.key[0])
break break
case FILTER_TYPE.customerCategory:
tempFilterParam.customerCategoryId = Number(filterItem.key[0])
break
case FILTER_TYPE.commodityType: case FILTER_TYPE.commodityType:
tempFilterParam.priceTypeList = [filterItem.key] tempFilterParam.priceTypeList = [filterItem.key]
break break
...@@ -202,6 +205,10 @@ class FilterStore { ...@@ -202,6 +205,10 @@ class FilterStore {
tempFilterParam.customerCategoryId = filterItem.key[0] tempFilterParam.customerCategoryId = filterItem.key[0]
tempFilterParam.customerCategoryName = filterItem.title tempFilterParam.customerCategoryName = filterItem.title
break break
case FILTER_TYPE.customerCategory:
tempFilterParam.customerCategoryId = filterItem.key[0]
tempFilterParam.customerCategoryName = filterItem.title
break
case FILTER_TYPE.brand: case FILTER_TYPE.brand:
tempFilterParam.brandId = filterItem.key tempFilterParam.brandId = filterItem.key
tempFilterParam.brandName = filterItem.title tempFilterParam.brandName = filterItem.title
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment