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
fbfb8d6b
Commit
fbfb8d6b
authored
Jun 21, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完工-配件信息样式修改
parent
adcdc662
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
17 deletions
+53
-17
XhParts.vue
src/components/createCom/XhParts.vue
+53
-14
complete.vue
src/pages/order/complete.vue
+0
-3
No files found.
src/components/createCom/XhParts.vue
View file @
fbfb8d6b
...
@@ -4,14 +4,18 @@
...
@@ -4,14 +4,18 @@
<view
v-if=
"status === 1"
>
<view
v-if=
"status === 1"
>
<adjust-parts
v-for=
"(item, index) in lists"
:key=
"index"
:info=
"item"
@
change=
"partsChange($event, index)"
:disabled=
"disabled"
></adjust-parts>
<adjust-parts
v-for=
"(item, index) in lists"
:key=
"index"
:info=
"item"
@
change=
"partsChange($event, index)"
:disabled=
"disabled"
></adjust-parts>
</view>
</view>
<view
v-else-if=
"status === 2"
>
<view
class=
"u-flex select-part"
v-else-if=
"status === 2"
>
<view
class=
"
content
"
>
<view
class=
"
img
"
>
暂无配件信息,
<text
class=
"tips"
@
click=
"toParts"
>
可选择备件仓配件>
</text
>
<image
src=
"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png"
class=
"part-icon"
/
>
</view>
</view>
<view
class=
"u-flex content"
>
<text
class=
"title"
>
暂无配件信息
</text>
<text
class=
"desc"
>
可选择备件仓配件
</text>
</view>
</view>
<view
v-else
>
<view
class=
"btn"
>
<view
class=
"content"
>
<u-button
shape=
"circle"
:custom-style=
"customStyle"
>
<text
class=
"tips"
@
click=
"toHandle"
>
有未处理的配件申请单,不可完工,请点击处理>
</text>
去选择
</u-button>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -52,6 +56,16 @@
...
@@ -52,6 +56,16 @@
]
]
}
}
},
},
computed
:
{
customStyle
()
{
return
{
'width'
:
'200rpx'
,
'height'
:
'80rpx'
,
'color'
:
'#2272FF'
,
'font-size'
:
'32rpx'
,
}
}
},
methods
:
{
methods
:
{
partsChange
(
val
,
index
)
{
partsChange
(
val
,
index
)
{
console
.
log
(
"val"
,
val
,
index
)
console
.
log
(
"val"
,
val
,
index
)
...
@@ -70,13 +84,38 @@
...
@@ -70,13 +84,38 @@
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.complete-part
{
.complete-part
{
.select-part
{
align-items
:
center
;
height
:
240rpx
;
.img
{
margin-right
:
20rpx
;
.part-icon
{
width
:
110rpx
;
height
:
110rpx
;
border-radius
:
50%
;
}
}
.content
{
.content
{
padding
:
100rpx
50rpx
;
padding-right
:
8px
;
text-align
:
center
;
flex
:
1
;
color
:
#3b4144
;
flex-direction
:
column
;
justify-content
:
space-between
;
overflow
:
hidden
;
.title
{
text-align
:
left
;
color
:
#2272FF
;
font-size
:
38rpx
;
font-weight
:
bold
;
margin-right
:
auto
;
}
.desc
{
text-align
:
left
;
color
:
#999
;
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#aaa
;
margin-top
:
20rpx
;
.tips
{
margin-right
:
auto
;
color
:
#2271FF
;
}
}
}
}
}
}
}
...
...
src/pages/order/complete.vue
View file @
fbfb8d6b
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
<view
class=
"class-item"
:id=
"'item' + groupIndex"
:key=
"groupIndex"
>
<view
class=
"class-item"
:id=
"'item' + groupIndex"
:key=
"groupIndex"
>
<view
class=
"title"
>
{{
groupItem
.
name
}}
</view>
<view
class=
"title"
>
{{
groupItem
.
name
}}
</view>
<view
class=
"class-bd"
>
<view
class=
"class-bd"
>
<xh-parts
:status=
"1"
></xh-parts>
<u-form-item
v-for=
"(item,itemIndex) in groupItem.items"
:key=
"itemIndex"
label-position=
"top"
<u-form-item
v-for=
"(item,itemIndex) in groupItem.items"
:key=
"itemIndex"
label-position=
"top"
:prop=
"item.fieldsName"
:border-bottom=
"false"
v-show=
"item.fieldsName != 'actualPaid' || show200"
:id=
"`item$
{item.fieldsId}`">
:prop=
"item.fieldsName"
:border-bottom=
"false"
v-show=
"item.fieldsName != 'actualPaid' || show200"
:id=
"`item$
{item.fieldsId}`">
<view
class=
"label"
v-if=
"item.formType!=='location'&&item.formType!=='form'&&item.formType!=='label'"
>
<view
class=
"label"
v-if=
"item.formType!=='location'&&item.formType!=='form'&&item.formType!=='label'"
>
...
@@ -111,7 +110,6 @@
...
@@ -111,7 +110,6 @@
import
XhServiceMeasure
from
'@/components/createCom/XhServiceMeasure.vue'
import
XhServiceMeasure
from
'@/components/createCom/XhServiceMeasure.vue'
import
XhServiceMore
from
"@/components/createCom/XhServiceMore"
import
XhServiceMore
from
"@/components/createCom/XhServiceMore"
import
XhLabel
from
"@/components/createCom/XhLabel"
import
XhLabel
from
"@/components/createCom/XhLabel"
import
XhParts
from
"@/components/createCom/XhParts"
import
takePhoto
from
'@/components/take/index.vue'
import
takePhoto
from
'@/components/take/index.vue'
import
baseFile
from
'@/components/upload/index'
import
baseFile
from
'@/components/upload/index'
...
@@ -275,7 +273,6 @@
...
@@ -275,7 +273,6 @@
XhServiceMeasure
,
XhServiceMeasure
,
XhServiceMore
,
XhServiceMore
,
XhLabel
,
XhLabel
,
XhParts
,
'take-photo'
:
takePhoto
'take-photo'
:
takePhoto
},
},
mixins
:
[
baseFile
],
mixins
:
[
baseFile
],
...
...
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