|
@@ -66,13 +66,13 @@ export function handleFromState() {
|
|
|
type: 1,// int32 类型 1 新增 2 修改
|
|
type: 1,// int32 类型 1 新增 2 修改
|
|
|
remark: '', // string 备注
|
|
remark: '', // string 备注
|
|
|
gldwrstandards: [
|
|
gldwrstandards: [
|
|
|
- { wrstandardname: '', unitid: undefined, convertfactor: null, }
|
|
|
|
|
|
|
+ { wrstandardname: '', unitid: undefined, convertfactor: '', }
|
|
|
], // GLDWRStandardEx 现货商品型号数据
|
|
], // GLDWRStandardEx 现货商品型号数据
|
|
|
glddgfactoryItems: [
|
|
glddgfactoryItems: [
|
|
|
{ dgfactoryitemvalue: '', }
|
|
{ dgfactoryitemvalue: '', }
|
|
|
], // GLDDGFactoryItemEx 现货商品品牌数据
|
|
], // GLDDGFactoryItemEx 现货商品品牌数据
|
|
|
wrsconvertdetails: [
|
|
wrsconvertdetails: [
|
|
|
- { middlegoodsid: undefined, unitid: null, unitidName: '', convertratio: null, }
|
|
|
|
|
|
|
+ { middlegoodsid: undefined, unitid: null, unitidName: '', convertratio: '', }
|
|
|
], // WRSConvertDetailEx 现货商品折算配置明细数据
|
|
], // WRSConvertDetailEx 现货商品折算配置明细数据
|
|
|
});
|
|
});
|
|
|
type Key = 'gldwrstandards' | 'glddgfactoryItems' | 'wrsconvertdetails'
|
|
type Key = 'gldwrstandards' | 'glddgfactoryItems' | 'wrsconvertdetails'
|
|
@@ -82,11 +82,11 @@ export function handleFromState() {
|
|
|
*/
|
|
*/
|
|
|
function addOne(key: Key): void {
|
|
function addOne(key: Key): void {
|
|
|
if (key === 'gldwrstandards') {
|
|
if (key === 'gldwrstandards') {
|
|
|
- formState[key].push({ wrstandardname: '', unitid: undefined, convertfactor: null })
|
|
|
|
|
|
|
+ formState[key].push({ wrstandardname: '', unitid: undefined, convertfactor: '' })
|
|
|
} else if (key === 'glddgfactoryItems') {
|
|
} else if (key === 'glddgfactoryItems') {
|
|
|
formState[key].push({ dgfactoryitemvalue: '', })
|
|
formState[key].push({ dgfactoryitemvalue: '', })
|
|
|
} else if (key === 'wrsconvertdetails') {
|
|
} else if (key === 'wrsconvertdetails') {
|
|
|
- formState[key].push({ middlegoodsid: undefined, unitid: null, unitidName: '', convertratio: null, })
|
|
|
|
|
|
|
+ formState[key].push({ middlegoodsid: undefined, unitid: null, unitidName: '', convertratio: '', })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
/**
|
|
/**
|