Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
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
李俊赕
self-support
Commits
ffb8e796
Commit
ffb8e796
authored
May 13, 2021
by
刘用法
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
材料用量可编辑
parent
a1b9910f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
17 deletions
+15
-17
material.vue
src/pages/order/material.vue
+15
-17
No files found.
src/pages/order/material.vue
View file @
ffb8e796
...
...
@@ -13,7 +13,8 @@
<view
class=
"line-view"
></view>
<u-tr
class=
"u-tr"
v-for=
"(item, index) in list"
:key=
"index"
>
<u-td
class=
"u-td"
v-for=
"(value, key) in titles"
:key=
"key"
>
<text
:class=
"['tab-th-txt',
{'left': key == firstKey}]">
{{
item
[
key
]
}}
</text>
<u-input
v-if=
"key == 'useLength'"
type=
"digit"
placeholder=
"0"
v-model=
"item[key]"
placeholder-style=
"color: #999999;font-size:26rpx"
input-align=
"center"
:clearable=
"false"
><u-icon
name=
"edit"
></u-icon></u-input>
<text
v-else
:class=
"['tab-th-txt',
{'left': key == firstKey}]">
{{
item
[
key
]
}}
</text>
</u-td>
</u-tr>
</u-table>
...
...
@@ -80,22 +81,12 @@
};
},
titles
()
{
if
(
this
.
isMaterial
){
return
{
matName
:
'材料名称'
,
matUnit
:
'单位'
,
freeLength
:
'免费量'
,
unitAmt
:
'单价/元'
,
useLength
:
'用量'
}
}
else
{
return
{
matName
:
'工艺名称'
,
matUnit
:
'单位'
,
freeLength
:
'免费量'
,
unitAmt
:
'单价/元'
,
useLength
:
'用量'
}
return
{
matName
:
this
.
isMaterial
?
'工艺名称'
:
'材料名称'
,
matUnit
:
'单位'
,
freeLength
:
'免费量'
,
unitAmt
:
'单价/元'
,
useLength
:
'用量'
}
},
thStyle
()
{
...
...
@@ -148,6 +139,13 @@
self
.
formatServiceMoreList
(
data
)
}
});
// 测试数据
// var item = {matName: '碳纤维',
// matUnit: '米',
// freeLength: 4,
// unitAmt: '2',
// useLength: 6}
// this.list = [{...item}, {...item}, {...item}, {...item}]
},
created
()
{
},
...
...
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