Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weiqiao-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
金民
weiqiao-vue
Commits
e2cc78b7
Commit
e2cc78b7
authored
Dec 30, 2025
by
史雅文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产计划添加字段
parent
0b2279f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
xjrsoft-vue3/src/views/scgl/scjh/components/Form.vue
+13
-2
No files found.
xjrsoft-vue3/src/views/scgl/scjh/components/Form.vue
View file @
e2cc78b7
...
@@ -111,6 +111,19 @@
...
@@ -111,6 +111,19 @@
async
function
setFormDataFromId
(
rowId
)
{
async
function
setFormDataFromId
(
rowId
)
{
try
{
try
{
const
record
=
await
getMesProductionPlan
(
rowId
);
const
record
=
await
getMesProductionPlan
(
rowId
);
// 处理 mesProductionPlanProductList 字段映射
if
(
record
.
mesProductionPlanProductList
&&
Array
.
isArray
(
record
.
mesProductionPlanProductList
))
{
record
.
mesProductionPlanProductList
=
record
.
mesProductionPlanProductList
.
map
((
item
)
=>
{
return
{
...
item
,
wuLiaoBianHao8001
:
item
.
cpbh
||
item
.
wuLiaoBianHao8001
,
// 物料编号
naBuDaiMa1765
:
item
.
nbdm
||
item
.
naBuDaiMa1765
,
// 内部代码
xingHao5094
:
item
.
xh
||
item
.
xingHao5094
,
// 型号
heJinZhuangTai4056
:
item
.
hjzt
||
item
.
heJinZhuangTai4056
,
// 合金状态 (兼容 hzjt 和 hjzt)
'guiGe(ChiCun)9562'
:
item
.
gg
||
item
[
'guiGe(ChiCun)9562'
],
// 规格(尺寸)
};
});
}
setFieldsValue
(
record
);
setFieldsValue
(
record
);
state
.
formModel
=
record
;
state
.
formModel
=
record
;
await
getFormDataEvent
(
formEventConfigs
,
state
.
formModel
,
await
getFormDataEvent
(
formEventConfigs
,
state
.
formModel
,
...
@@ -222,4 +235,3 @@
...
@@ -222,4 +235,3 @@
});
});
</
script
>
</
script
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment