Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mes
mes-ui
Commits
40aa3ca7
Commit
40aa3ca7
authored
Feb 19, 2024
by
hiyon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售订单修改
parent
64aaf36f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
115 additions
and
382 deletions
+115
-382
SapForm.vue
src/views/mes/md/sapField/components/SapForm.vue
+4
-2
SapFormContext.vue
src/views/mes/md/sapField/components/SapFormContext.vue
+9
-6
OrderSync.vue
src/views/mes/order/sales/OrderSync.vue
+11
-292
index.vue
src/views/mes/order/salesdetail/index.vue
+91
-82
No files found.
src/views/mes/md/sapField/components/SapForm.vue
View file @
40aa3ca7
<
template
>
<el-form
ref=
"form"
class=
"sap-form"
:label-width=
"labelWidth"
size=
"mini"
>
<SapFormContext
v-for=
"item in sapFieldList"
v-model=
"sapForm[item.sapField]"
:item=
"item"
:key=
"item.id"
:label-width=
"labelWidth"
/>
<template
v-for=
"item in sapFieldList"
>
<SapFormContext
v-show=
"item.show"
v-model=
"sapForm[item.sapField]"
:item=
"item"
:key=
"item.id"
:label-width=
"labelWidth"
/>
</
template
>
<div
class=
"form-footer"
>
<el-button
type=
"primary"
@
click=
"onConfirm"
>
确认
</el-button>
</div>
...
...
@@ -65,7 +67,7 @@ export default {
sapForm
[
item
.
sapField
][
j
]
=
this
.
initSapForm
(
item
.
children
,
subItemData
)
}
}
else
{
sapForm
[
item
.
sapField
]
=
itemData
sapForm
[
item
.
sapField
]
=
itemData
||
item
.
defaultValue
}
}
return
sapForm
...
...
src/views/mes/md/sapField/components/SapFormContext.vue
View file @
40aa3ca7
...
...
@@ -11,7 +11,7 @@
<!-- 对象 -->
<template
v-if=
"item.dataType === 9"
>
<template
v-for=
"child in item.children"
>
<sap-form-item
:item=
"child"
:label-width=
"labelWidth"
>
<sap-form-item
v-show=
"child.show"
:item=
"child"
:label-width=
"labelWidth"
>
<el-input-all
v-model=
"value[child.sapField]"
:item=
"child"
/>
</sap-form-item>
</
template
>
...
...
@@ -22,13 +22,15 @@
<div
style=
"width: 100%; overflow-x: auto"
>
<div>
<div
class=
"item-head clearfix"
style=
"width: max-content;"
>
<div
v-for=
"child in item.children"
:key=
"child.id + 'head'"
class=
"item-label"
>
{{
child
.
name
}}
</div>
<template
v-for=
"child in item.children"
>
<div
v-show=
"child.show"
:key=
"child.id + 'head'"
class=
"item-label"
>
{{
child
.
name
}}
</div>
</
template
>
</div>
<
template
v-for=
"(sub, i) in value"
>
<!-- ITEM -->
<div
class=
"item-content"
style=
"width: max-content;"
:key=
"'sub' + '' + i"
>
<template
v-for=
"(child, j) in item.children"
>
<div
v-if=
"[1,2,3,4,5,6,7,8].some(dataType => dataType == child.dataType)"
class=
"item-value"
:key=
"child.id + j"
>
<sap-form-item
:item=
"child"
:label-width=
"labelWidth
"
>
<div
v-
show=
"child.show"
v-
if=
"[1,2,3,4,5,6,7,8].some(dataType => dataType == child.dataType)"
class=
"item-value"
:key=
"child.id + j"
>
<sap-form-item
:item=
"child"
label-width=
"0px
"
>
<el-input-all
v-model=
"sub[child.sapField]"
:item=
"child"
/>
</sap-form-item>
</div>
...
...
@@ -43,7 +45,7 @@
<!-- SIZE -->
<div
v-for=
"leaf in sub[child.sapField]"
class=
"item-child-content clearfix"
style=
"width: max-content;"
>
<div
v-for=
"(son, j) in child.children"
class=
"item-value"
:key=
"son.id + '' + j"
>
<sap-form-item
:item=
"son"
:label-width=
"labelWidth
"
>
<sap-form-item
:item=
"son"
label-width=
"0px
"
>
<el-input-all
v-model=
"leaf[son.sapField]"
:item=
"son"
/>
</sap-form-item>
</div>
...
...
@@ -121,8 +123,9 @@ export default {
}
.item-label
,
.item-value
,
.item-sub-label
{
width
:
150px
;
height
:
50px
;
line-height
:
28px
;
float
:
left
;
line-height
:
50px
;
overflow
:
hidden
;
text-wrap
:
nowrap
;
margin-left
:
10px
;
...
...
src/views/mes/order/sales/OrderSync.vue
View file @
40aa3ca7
This diff is collapsed.
Click to expand it.
src/views/mes/order/salesdetail/index.vue
View file @
40aa3ca7
This diff is collapsed.
Click to expand it.
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