Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
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
1
Merge Requests
1
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
qinjianhui
factory_front
Commits
9e935b50
Commit
9e935b50
authored
Aug 22, 2024
by
wuqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wq的item校验
parent
21cc65b9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/views/order/ProductInfo.vue
+8
-3
No files found.
src/views/order/ProductInfo.vue
View file @
9e935b50
...
@@ -102,17 +102,17 @@
...
@@ -102,17 +102,17 @@
</span>
</span>
</div>
</div>
<div
<div
:title=
"
item
.remark || ''"
:title=
"
(item as LabelledValue)
.remark || ''"
class=
"order-list-expand_item_info_title"
class=
"order-list-expand_item_info_title"
>
>
<span
class=
"order-list-expand_item_label"
>
备注:
</span>
<span
class=
"order-list-expand_item_label"
>
备注:
</span>
<span
class=
"order-list-expand_item_value"
<span
class=
"order-list-expand_item_value"
>
{{
item
.
remark
||
'--'
}}
>
{{
(
item
as
LabelledValue
)
.
remark
||
'--'
}}
</span>
</span>
<el-icon
<el-icon
class=
"icon"
class=
"icon"
style=
"color: #e6a23c"
style=
"color: #e6a23c"
@
click=
"setRemarks(item.id,
item
.remark)"
@
click=
"setRemarks(item.id,
(item as LabelledValue)
.remark)"
><EditPen
><EditPen
/></el-icon>
/></el-icon>
</div>
</div>
...
@@ -196,6 +196,11 @@ defineProps({
...
@@ -196,6 +196,11 @@ defineProps({
type
:
Number
,
type
:
Number
,
},
},
})
})
interface
LabelledValue
{
id
:
number
;
remark
?:
string
;
// 可选属性
[
propName
:
string
]:
string
|
number
|
boolean
|
undefined
|
unknown
;
// 额外属性
}
const
emit
=
defineEmits
<
{
const
emit
=
defineEmits
<
{
(
e
:
'update-remark'
,
payload
:
{
id
:
number
;
remark
:
string
}):
void
;
(
e
:
'update-remark'
,
payload
:
{
id
:
number
;
remark
:
string
}):
void
;
}
>
();
}
>
();
...
...
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