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

fix: 处理新增采购招标合同物料id没有取goodsId的问题

parent 890e9e54
......@@ -38,7 +38,7 @@ export const channelSchema: ISchema = {
'x-component': 'flex-layout',
'x-component-props': {
rowStyle: {
flexWrap: 'nowrap',
flexWrap: 'wrap',
},
colStyle: {
marginLeft: 20,
......@@ -48,21 +48,22 @@ export const channelSchema: ISchema = {
productId: {
type: 'string',
'x-component-props': {
placeholder: getIntl().formatMessage({ id: 'commodity.products.schema.productSchema.productId' })
placeholder: getIntl().formatMessage({ id: 'commodity.products.schema.productSchema.productId' }),
style: { width: 174 },
}
},
memberName: {
type: 'string',
'x-component-props': {
placeholder: getIntl().formatMessage({ id: 'commodity.products.schema.channelSchema.memberName' }),
style: { width: 100 },
style: { width: 174 },
},
},
memberRoleName: {
type: 'string',
'x-component-props': {
placeholder: getIntl().formatMessage({ id: 'commodity.products.schema.channelSchema.memberRoleName' }),
style: { width: 100 },
style: { width: 174 },
},
},
brandId: {
......@@ -75,7 +76,7 @@ export const channelSchema: ISchema = {
defaultActiveFirstOption: false,
filterOption: false,
notFoundContent: null,
style: { width: 100 },
style: { width: 174 },
searchValue: null,
dataoption: [],
},
......@@ -87,7 +88,7 @@ export const channelSchema: ISchema = {
placeholder: getIntl().formatMessage({ id: 'commodity.products.schema.channelSchema.customerCategoryId' }),
showSearch: true,
notFoundContent: null,
style: { width: '174px' },
style: { width: 174 },
dataoption: [],
fieldNames: { label: 'title', value: 'id', children: 'children' },
},
......@@ -106,7 +107,7 @@ export const channelSchema: ISchema = {
],
'x-component-props': {
placeholder: getIntl().formatMessage({ id: 'commodity.products.schema.channelSchema.source.placeholder' }),
style: { width: 100 },
style: { width: 174 },
},
},
statusList: {
......@@ -127,7 +128,7 @@ export const channelSchema: ISchema = {
],
'x-component-props': {
placeholder: getIntl().formatMessage({ id: 'commodity.products.schema.channelSchema.statusList.placeholder' }),
style: { width: 100 },
style: { width: 174 },
},
},
// priceTypeList: {
......@@ -156,6 +157,7 @@ export const channelSchema: ISchema = {
'x-component': 'NumberRange',
'x-component-props': {
placeholder: [getIntl().formatMessage({ id: 'commodity.products.schema.channelSchema.min' }), getIntl().formatMessage({ id: 'commodity.products.schema.channelSchema.max' })],
style: { width: '230px' },
},
},
submit: {
......
......@@ -125,7 +125,7 @@ const FormList = (props: any) => {
if (res.code === 1000) {
let data = res.data.data.map((item, index) => {
return {
materielId: _filterArr(sourceType, item, ['', 'goodsId', 'id', '']),
materielId: _filterArr(sourceType, item, ['', 'goodsId', 'goodsId', '']),
code: _filter(sourceType, item, ['', 'number', 'code', 'number']),// 物料编号
name: _filter(sourceType, item, ['', 'name', 'name', 'name']),//物料名称
type: _filter(sourceType, item, ['', 'model', 'type', 'model']),//物料规格
......
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