Commit 1fa85d51 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 处理仓位新增设置无法显示货品的问题

parent bfe89d74
......@@ -87,7 +87,7 @@ const AddRepository:React.FC<{}> = (props) => {
<p><span>调出前库存:</span><span>{record.frontExportInventory}</span></p>
</div>
} },
{ dataIndex: 'repositOut', title: '调库存', align: 'center', render: (_, record) => {
{ dataIndex: 'repositOut', title: '调库存', align: 'center', render: (_, record) => {
return <div>
<p><span>调入库存:</span><span>{record.foldInventory}</span></p>
<p><span>调入后库存:</span><span>{record.foldRearInventory}</span></p>
......
......@@ -236,6 +236,7 @@ const PositionSetting:React.FC<PositionSettingProps> = (props) => {
// 设置货品名称
addSchemaAction.setFieldValue('goodsName', data?.name || '')
addSchemaAction.setFieldValue('goodsId', goodsId)
addSchemaAction.setFieldValue('itemNo', data?.code || '')
}
}
......
......@@ -430,6 +430,20 @@ export const repositDetailSchema: ISchema = padRequiredMessage({
itemNo: {
type: 'string',
"x-component": 'Text',
title: '货号',
default: '暂无',
visible: false,
},
goodsId: {
type: 'string',
"x-component": 'Text',
title: '货品ID',
default: '暂无',
visible: false,
},
goodsName: {
type: 'string',
"x-component": 'Text',
title: '对应货品',
default: '暂无'
},
......@@ -515,7 +529,7 @@ export const repositDetailSchema: ISchema = padRequiredMessage({
{ label: '所有会员共享(默认)', value: 1 },
{ label: '指定会员', value: 0 },
],
"title": "选择渠道会员",
"title": "选择会员",
default: 1,
required: true,
"x-linkages": [
......@@ -630,7 +644,7 @@ export const repositTabOneSchema: ISchema = padRequiredMessage({
editable: false,
enum: []
},
itemNo: {
goodsName: {
type: 'string',
"x-component": 'Text',
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