Commit f78c7d70 authored by 左玲玲's avatar 左玲玲 😬

1605

parent 36e15889
...@@ -79,11 +79,8 @@ const EditTable = ({ ...@@ -79,11 +79,8 @@ const EditTable = ({
parames[it] = params[it] parames[it] = params[it]
} }
}) })
if (ifs) { if (ifs) {
//值未变化 //值未变化
} else { } else {
let res = await database(parames); let res = await database(parames);
newvalue = newvalue.map((it, i) => { newvalue = newvalue.map((it, i) => {
...@@ -92,6 +89,7 @@ const EditTable = ({ ...@@ -92,6 +89,7 @@ const EditTable = ({
let result = res?.data?.data ?? {} let result = res?.data?.data ?? {}
it[items] = result[effectresult[items]]; it[items] = result[effectresult[items]];
}) })
}else{
} }
editorFormRef.current?.setRowData?.(i, it) editorFormRef.current?.setRowData?.(i, it)
return it return it
......
...@@ -338,6 +338,9 @@ table { ...@@ -338,6 +338,9 @@ table {
flex:1 flex:1
} }
} }
.ant-input-number-affix-wrapper{
width: 100% !important;
}
@media all { @media all {
.page-break { .page-break {
......
...@@ -177,7 +177,9 @@ const one = { ...@@ -177,7 +177,9 @@ const one = {
params: { "materieId": "linked" }, params: { "materieId": "linked" },
effectresult: { effectresult: {
"productionUnit": "productionUnit",//key 为列表更新值 value为response 返回值 "productionUnit": "productionUnit",//key 为列表更新值 value为response 返回值
"productionUnitName": "productionUnitName" "productionUnitName": "productionUnitName",
"materieControlNo": "materialCode",
"instroeNum": "instroeNum"
} }
} }
}, },
...@@ -216,6 +218,7 @@ const one = { ...@@ -216,6 +218,7 @@ const one = {
rules: [{ required: true, message: '此项为必填项' }], rules: [{ required: true, message: '此项为必填项' }],
}; };
}, },
valueType:"digit"
}, },
{ {
"title": "单位", "title": "单位",
...@@ -312,7 +315,9 @@ const one = { ...@@ -312,7 +315,9 @@ const one = {
params: { "materieId": "linked" }, params: { "materieId": "linked" },
effectresult: { effectresult: {
"productionUnit": "productionUnit",//key 为列表更新值 value为response 返回值 "productionUnit": "productionUnit",//key 为列表更新值 value为response 返回值
"productionUnitName": "productionUnitName" "productionUnitName": "productionUnitName",
"materieControlNo": "materialCode",
"instroeNum": "instroeNum"
} }
} }
}, },
...@@ -351,6 +356,7 @@ const one = { ...@@ -351,6 +356,7 @@ const one = {
rules: [{ required: true, message: '此项为必填项' }], rules: [{ required: true, message: '此项为必填项' }],
}; };
}, },
valueType:"digit"
}, },
{ {
"title": "单位", "title": "单位",
...@@ -431,7 +437,10 @@ const one = { ...@@ -431,7 +437,10 @@ const one = {
params: { "materieId": "linked" }, params: { "materieId": "linked" },
effectresult: { effectresult: {
"productionUnit": "productionUnit",//key 为列表更新值 value为response 返回值 "productionUnit": "productionUnit",//key 为列表更新值 value为response 返回值
"productionUnitName": "productionUnitName" "productionUnitName": "productionUnitName",
"materieControlNo": "materialCode",
"instroeNum": "instroeNum",
"supplierId": "supplierId"
} }
} }
}, },
...@@ -490,6 +499,7 @@ const one = { ...@@ -490,6 +499,7 @@ const one = {
rules: [{ required: true, message: '此项为必填项' }], rules: [{ required: true, message: '此项为必填项' }],
}; };
}, },
valueType:"digit"
}, },
{ {
"title": "单位", "title": "单位",
...@@ -570,7 +580,10 @@ const one = { ...@@ -570,7 +580,10 @@ const one = {
params: { "materieId": "linked" }, params: { "materieId": "linked" },
effectresult: { effectresult: {
"productionUnit": "productionUnit",//key 为列表更新值 value为response 返回值 "productionUnit": "productionUnit",//key 为列表更新值 value为response 返回值
"productionUnitName": "productionUnitName" "productionUnitName": "productionUnitName",
"materieControlNo": "materialCode",
"instroeNum": "instroeNum",
"supplierId": "supplierId"
} }
} }
}, },
...@@ -629,6 +642,7 @@ const one = { ...@@ -629,6 +642,7 @@ const one = {
rules: [{ required: true, message: '此项为必填项' }], rules: [{ required: true, message: '此项为必填项' }],
}; };
}, },
valueType:"digit"
}, },
{ {
"title": "单位", "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