Commit 0b5d5389 authored by XieZhiXiong's avatar XieZhiXiong

Merge branch 'v2-220418' of…

Merge branch 'v2-220418' of ssh://gitlab.shushangyun.com:8122/linkseeks-design/pro-platform into feat-memberLevel
parents ca8e1106 da376f14
...@@ -68,6 +68,8 @@ const MaterialAdd = (props) => { ...@@ -68,6 +68,8 @@ const MaterialAdd = (props) => {
formActions.setFieldState('sourceListCard', (state) => { formActions.setFieldState('sourceListCard', (state) => {
FormPath.setIn(state, 'visible', true); FormPath.setIn(state, 'visible', true);
}) })
console.log(state.dataSource)
if (!state.dataSource) { if (!state.dataSource) {
message.error(intl.formatMessage({ id: 'material.should.select.purchaseSelection', defaultMessage: '请选择采购选品'})); message.error(intl.formatMessage({ id: 'material.should.select.purchaseSelection', defaultMessage: '请选择采购选品'}));
} }
...@@ -135,6 +137,17 @@ const MaterialAdd = (props) => { ...@@ -135,6 +137,17 @@ const MaterialAdd = (props) => {
</UploadFiles> </UploadFiles>
) )
const createDescriptionElement = () => {
return {
desc() {
if (query?.type !== 'sourceData' ) {
return null;
}
return React.createElement('div', { className: styles['label-required'] }, `参考品牌: ${state.dataSource?.referenceBrand}`);
}
}
};
const handleSubmit = async (value) => { const handleSubmit = async (value) => {
console.log("values", value); console.log("values", value);
const { const {
...@@ -299,7 +312,8 @@ const MaterialAdd = (props) => { ...@@ -299,7 +312,8 @@ const MaterialAdd = (props) => {
// renderListTableRemove: renderListTableRemove, // renderListTableRemove: renderListTableRemove,
renderAddition: renderAddition(), renderAddition: renderAddition(),
uploadContainer: uploadContainer, uploadContainer: uploadContainer,
customizeFileItemRender: customizeFileItemRender customizeFileItemRender: customizeFileItemRender,
...createDescriptionElement(),
}} }}
effects={($, actions) => { effects={($, actions) => {
useAsyncCascader('category', fetchCategoryData) useAsyncCascader('category', fetchCategoryData)
......
...@@ -264,7 +264,7 @@ const MaterialQuery = () => { ...@@ -264,7 +264,7 @@ const MaterialQuery = () => {
name: target.name, name: target.name,
goodsId: target.id, goodsId: target.id,
type: target.type, type: target.type,
brand: target.brand?.name, referenceBrand: target.brand?.name,
goodsPic: target.goodsPic?.map((_item) => { goodsPic: target.goodsPic?.map((_item) => {
return { return {
name: _item, name: _item,
...@@ -288,6 +288,7 @@ const MaterialQuery = () => { ...@@ -288,6 +288,7 @@ const MaterialQuery = () => {
// rowSelection: selectRow // rowSelection: selectRow
rowSelection: selectRow rowSelection: selectRow
}} }}
keepAlive={false}
columns={columns} columns={columns}
currentRef={ref} currentRef={ref}
fetchTableData={fetchListData} fetchTableData={fetchListData}
...@@ -300,7 +301,7 @@ const MaterialQuery = () => { ...@@ -300,7 +301,7 @@ const MaterialQuery = () => {
effects={($, actions) => { effects={($, actions) => {
useStateFilterSearchLinkageEffect($, actions, 'code', FORM_FILTER_PATH); useStateFilterSearchLinkageEffect($, actions, 'code', FORM_FILTER_PATH);
useAsyncCascader('materialGroupId', fetchTreeData) useAsyncCascader('materialGroupId', fetchTreeData)
useAsyncCascader('categoryId', fetchCategoryData) useAsyncCascader('customerCategoryId', fetchCategoryData)
useAsyncSelect('brandId', fetchBrand, ["name", "id"]) useAsyncSelect('brandId', fetchBrand, ["name", "id"])
}} }}
/> />
......
...@@ -128,6 +128,7 @@ export const getSchema = (schema: ISchema): ISchema => { ...@@ -128,6 +128,7 @@ export const getSchema = (schema: ISchema): ISchema => {
'x-component-props': { 'x-component-props': {
showSearch: true, showSearch: true,
}, },
description: `{{desc()}}`
}, },
category: { category: {
title: intl.formatMessage({ id: 'material.category', defaultMessage: '品类' }), title: intl.formatMessage({ id: 'material.category', defaultMessage: '品类' }),
......
...@@ -48,6 +48,12 @@ export const deliveryPlanManagementAwaitSRMSchema: ISchema = { ...@@ -48,6 +48,12 @@ export const deliveryPlanManagementAwaitSRMSchema: ISchema = {
}, },
}, },
properties: { properties: {
digest: {
type: 'string',
'x-component-props': {
placeholder: '计划摘要',
}
},
'[startTime, endTime]': { '[startTime, endTime]': {
type: 'daterange', type: 'daterange',
'x-component-props': { 'x-component-props': {
......
...@@ -48,6 +48,12 @@ export const deliveryPlanManagementQuerySchema: ISchema = { ...@@ -48,6 +48,12 @@ export const deliveryPlanManagementQuerySchema: ISchema = {
}, },
}, },
properties: { properties: {
digest: {
type: 'string',
'x-component-props': {
placeholder: '计划摘要',
}
},
'[startTime, endTime]': { '[startTime, endTime]': {
type: 'daterange', type: 'daterange',
'x-component-props': { 'x-component-props': {
......
...@@ -312,12 +312,12 @@ const ParameterSetting: React.FC<{}> = () => { ...@@ -312,12 +312,12 @@ const ParameterSetting: React.FC<{}> = () => {
<p>{item.description}</p> <p>{item.description}</p>
</div> </div>
<div className={styles.setItemRight}> <div className={styles.setItemRight}>
<AuthButton btnCode='parameterSetting.setup' >
{ {
item.isSettting ? item.isSettting ?
<AuthButton btnCode='parameterSetting.setup' >
<a onClick={() => handleVisibleModalType(item.id)}>{intl.formatMessage({ id: 'systemSetting.parameterSetting.setApplicableMall' })}</a> : <a onClick={() => handleVisibleModalType(item.id)}>{intl.formatMessage({ id: 'systemSetting.shezhicanshu', defaultMessage: '设置参数' })}</a> <a onClick={() => handleVisibleModalType(item.id)}>{intl.formatMessage({ id: 'systemSetting.parameterSetting.setApplicableMall' })}</a> : <a onClick={() => handleVisibleModalType(item.id)}>{intl.formatMessage({ id: 'systemSetting.shezhicanshu', defaultMessage: '设置参数' })}</a>
</AuthButton> : null
} }
</AuthButton>
{/* <Switch defaultChecked={item.isSettting} onChange={(v) => onChangeShowSetBtn(v, item.id)} /> */} {/* <Switch defaultChecked={item.isSettting} onChange={(v) => onChangeShowSetBtn(v, item.id)} /> */}
</div> </div>
</div> </div>
...@@ -516,11 +516,11 @@ const ParameterSetting: React.FC<{}> = () => { ...@@ -516,11 +516,11 @@ const ParameterSetting: React.FC<{}> = () => {
> >
{({ getFieldValue }) => getFieldValue('status') && ( {({ getFieldValue }) => getFieldValue('status') && (
<> <>
<Form.Item label={intl.formatMessage({ id: 'systemSetting.dangedingdanyunxushiyong', defaultMessage: '单个订单允许使用积分上限' })} name='userScoreLimit' rules={[{ required: true, message: intl.formatMessage({ id: 'systemSetting.qingshurudangedingdanyun', defaultMessage: '请输入单个订单允许使用积分上限' }) },{pattern: /^[1-9]\d*$/ , message: intl.formatMessage({ id: 'systemSetting.jifenshangxianzhengshuxingbi', defaultMessage: '积分上限整数型必须大于0' })}]}> <Form.Item label={intl.formatMessage({ id: 'systemSetting.dangedingdanyunxushiyong', defaultMessage: '单个订单允许使用积分上限' })} name='userScoreLimit' rules={[{ required: true, message: intl.formatMessage({ id: 'systemSetting.qingshurudangedingdanyun', defaultMessage: '请输入单个订单允许使用积分上限' }) }, { pattern: /^[1-9]\d*$/, message: intl.formatMessage({ id: 'systemSetting.jifenshangxianzhengshuxingbi', defaultMessage: '积分上限整数型必须大于0' }) }]}>
<Input /> <Input />
</Form.Item> </Form.Item>
<Space> <Space>
<Form.Item label={intl.formatMessage({ id: 'systemSetting.jifendikoujinebili1', defaultMessage: '积分抵扣金额比例' })} name='deductionRate' rules={[{ required: true, message: intl.formatMessage({ id: 'systemSetting.qingshurujifendikoujin', defaultMessage: '请输入积分抵扣金额比例' }) },{pattern: /^[1-9]\d*$/ , message: intl.formatMessage({ id: 'systemSetting.jifendikoujinebili', defaultMessage: '积分抵扣金额比例整数型必须大于0' })}]}> <Form.Item label={intl.formatMessage({ id: 'systemSetting.jifendikoujinebili1', defaultMessage: '积分抵扣金额比例' })} name='deductionRate' rules={[{ required: true, message: intl.formatMessage({ id: 'systemSetting.qingshurujifendikoujin', defaultMessage: '请输入积分抵扣金额比例' }) }, { pattern: /^[1-9]\d*$/, message: intl.formatMessage({ id: 'systemSetting.jifendikoujinebili', defaultMessage: '积分抵扣金额比例整数型必须大于0' }) }]}>
<Input /> <Input />
</Form.Item> </Form.Item>
<div style={{ marginBottom: '24px', color: '#909399' }}>{intl.formatMessage({ id: 'systemSetting.jifendikou', defaultMessage: '积分可抵扣:¥1.00元' })}</div> <div style={{ marginBottom: '24px', color: '#909399' }}>{intl.formatMessage({ id: 'systemSetting.jifendikou', defaultMessage: '积分可抵扣:¥1.00元' })}</div>
...@@ -569,8 +569,8 @@ const ParameterSetting: React.FC<{}> = () => { ...@@ -569,8 +569,8 @@ const ParameterSetting: React.FC<{}> = () => {
> >
{({ getFieldValue }) => getFieldValue('status') && ( {({ getFieldValue }) => getFieldValue('status') && (
<Space> <Space>
<Form.Item label={intl.formatMessage({ id: 'systemSetting.dingdanjineman', defaultMessage: '订单金额满' })} name='orderAmount' rules={[{ required: true, message: intl.formatMessage({ id: 'systemSetting.qingshurudingdanjineman', defaultMessage: '请输入订单金额满' }) }, {pattern: /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/ , message: intl.formatMessage({ id: 'systemSetting.dingdanjinemanbixuda', defaultMessage: '订单金额满必须大于0,最多保留2位小数' })}]}> <Form.Item label={intl.formatMessage({ id: 'systemSetting.dingdanjineman', defaultMessage: '订单金额满' })} name='orderAmount' rules={[{ required: true, message: intl.formatMessage({ id: 'systemSetting.qingshurudingdanjineman', defaultMessage: '请输入订单金额满' }) }, { pattern: /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/, message: intl.formatMessage({ id: 'systemSetting.dingdanjinemanbixuda', defaultMessage: '订单金额满必须大于0,最多保留2位小数' }) }]}>
<Input addonBefore={intl.formatMessage({id: 'common.money', defaultMessage: '¥'})} /> <Input addonBefore={intl.formatMessage({ id: 'common.money', defaultMessage: '¥' })} />
</Form.Item> </Form.Item>
<div style={{ marginBottom: '24px', color: '#909399' }}>{intl.formatMessage({ id: 'systemSetting.yuanmianyunfei', defaultMessage: '元免运费' })}</div> <div style={{ marginBottom: '24px', color: '#909399' }}>{intl.formatMessage({ id: 'systemSetting.yuanmianyunfei', defaultMessage: '元免运费' })}</div>
</Space> </Space>
......
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