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
1d0b53ae
Commit
1d0b53ae
authored
Sep 27, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 完工页组件判断优化
parent
807aca9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
25 deletions
+15
-25
complete.vue
src/pages/order/complete.vue
+15
-25
No files found.
src/pages/order/complete.vue
View file @
1d0b53ae
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
>
>
</xh-input>
</xh-input>
<xh-multi-input
<xh-multi-input
v-
else-
if=
"item.formType === 'multiinput'"
v-if=
"item.formType === 'multiinput'"
:groupIndex=
"groupIndex"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:itemIndex=
"itemIndex"
:item=
"item"
:item=
"item"
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
>
>
</xh-multi-input>
</xh-multi-input>
<xh-radio
<xh-radio
v-
else-
if=
"item.formType === 'radio'"
v-if=
"item.formType === 'radio'"
:groupIndex=
"groupIndex"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:itemIndex=
"itemIndex"
:item=
"item"
:item=
"item"
...
@@ -117,7 +117,7 @@
...
@@ -117,7 +117,7 @@
>
>
</xh-radio>
</xh-radio>
<xh-checkbox
<xh-checkbox
v-
else-
if=
"item.formType === 'checkbox'"
v-if=
"item.formType === 'checkbox'"
:groupIndex=
"groupIndex"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:itemIndex=
"itemIndex"
:item=
"item"
:item=
"item"
...
@@ -127,7 +127,7 @@
...
@@ -127,7 +127,7 @@
>
>
</xh-checkbox>
</xh-checkbox>
<xh-select
<xh-select
v-
else-
if=
"item.formType === 'select'"
v-if=
"item.formType === 'select'"
:groupIndex=
"groupIndex"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:itemIndex=
"itemIndex"
:item=
"item"
:item=
"item"
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
>
>
</xh-select>
</xh-select>
<xh-specifications
<xh-specifications
v-
else-
if=
"item.formType === 'select-new-page'"
v-if=
"item.formType === 'select-new-page'"
:groupIndex=
"groupIndex"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:itemIndex=
"itemIndex"
:item=
"item"
:item=
"item"
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
@
value-change=
"fieldValueChange"
@
value-change=
"fieldValueChange"
>
>
</xh-specifications>
</xh-specifications>
<view
v-
else-
if=
"item.formType === 'file'"
>
<view
v-if=
"item.formType === 'file'"
>
<xh-files
<xh-files
:ref=
"`fileChild$
{groupIndex}${itemIndex}`"
:ref=
"`fileChild$
{groupIndex}${itemIndex}`"
:groupIndex="groupIndex"
:groupIndex="groupIndex"
...
@@ -180,7 +180,7 @@
...
@@ -180,7 +180,7 @@
</view>
</view>
<xh-location
<xh-location
v-
else-
if=
"item.formType === 'location'"
v-if=
"item.formType === 'location'"
:groupIndex=
"groupIndex"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:itemIndex=
"itemIndex"
:item=
"item"
:item=
"item"
...
@@ -190,7 +190,7 @@
...
@@ -190,7 +190,7 @@
>
>
</xh-location>
</xh-location>
<xh-scan
<xh-scan
v-
else-
if=
"item.formType === 'scan'"
v-if=
"item.formType === 'scan'"
:groupIndex=
"groupIndex"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:itemIndex=
"itemIndex"
:item=
"item"
:item=
"item"
...
@@ -200,7 +200,7 @@
...
@@ -200,7 +200,7 @@
>
>
</xh-scan>
</xh-scan>
<xh-service-measure
<xh-service-measure
v-
else-
if=
"item.formType === 'servicemeasure'"
v-if=
"item.formType === 'servicemeasure'"
:groupIndex=
"groupIndex"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:itemIndex=
"itemIndex"
:item=
"item"
:item=
"item"
...
@@ -214,7 +214,7 @@
...
@@ -214,7 +214,7 @@
>
>
</xh-service-measure>
</xh-service-measure>
<xh-time
<xh-time
v-
else-
if=
"item.formType === 'time'"
v-if=
"item.formType === 'time'"
:groupIndex=
"groupIndex"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:itemIndex=
"itemIndex"
:item=
"item"
:item=
"item"
...
@@ -224,7 +224,7 @@
...
@@ -224,7 +224,7 @@
>
>
</xh-time>
</xh-time>
<xh-service-more
<xh-service-more
v-
else-
if=
"item.formType === 'form'"
v-if=
"item.formType === 'form'"
:groupIndex=
"groupIndex"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:itemIndex=
"itemIndex"
:item=
"item"
:item=
"item"
...
@@ -235,7 +235,7 @@
...
@@ -235,7 +235,7 @@
>
>
</xh-service-more>
</xh-service-more>
<xh-label
<xh-label
v-
else-
if=
"item.formType === 'label'"
v-if=
"item.formType === 'label'"
:groupIndex=
"groupIndex"
:groupIndex=
"groupIndex"
:itemIndex=
"itemIndex"
:itemIndex=
"itemIndex"
:item=
"item"
:item=
"item"
...
@@ -244,7 +244,7 @@
...
@@ -244,7 +244,7 @@
</xh-label>
</xh-label>
<xh-parts
<xh-parts
ref=
"fileChildParts"
ref=
"fileChildParts"
v-
else-
if=
"item.formType === 'parts'"
v-if=
"item.formType === 'parts'"
:categoryId=
"categoryId"
:categoryId=
"categoryId"
:brandId=
"brandId"
:brandId=
"brandId"
:order-id=
"orderId"
:order-id=
"orderId"
...
@@ -332,13 +332,12 @@ import XhLocation from '@/components/createCom/XhLocation.vue'
...
@@ -332,13 +332,12 @@ import XhLocation from '@/components/createCom/XhLocation.vue'
import
XhScan
from
'@/components/createCom/XhScan.vue'
import
XhScan
from
'@/components/createCom/XhScan.vue'
import
XhTime
from
'@/components/createCom/XhTime.vue'
import
XhTime
from
'@/components/createCom/XhTime.vue'
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
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'
import
Detail
from
'@/components/order/detail.vue'
import
Detail
from
'@/components/order/detail.vue'
import
returnPartsVue
from
'../parts/returnParts.vue'
// 表单类型map
// 表单类型map
const
formType
=
new
Map
([
const
formType
=
new
Map
([
...
@@ -521,9 +520,6 @@ export default {
...
@@ -521,9 +520,6 @@ export default {
'take-photo'
:
takePhoto
,
'take-photo'
:
takePhoto
,
},
},
mixins
:
[
baseFile
],
mixins
:
[
baseFile
],
created
()
{
// console.log(allComponents,'allComponents')
},
onLoad
(
option
)
{
onLoad
(
option
)
{
getApp
().
trackPage
(
'订单完工信息页'
)
getApp
().
trackPage
(
'订单完工信息页'
)
if
(
option
)
{
if
(
option
)
{
...
@@ -539,12 +535,6 @@ export default {
...
@@ -539,12 +535,6 @@ export default {
this
.
auditResults
=
option
?.
auditResults
this
.
auditResults
=
option
?.
auditResults
?
option
?.
auditResults
.
split
(
','
)
?
option
?.
auditResults
.
split
(
','
)
:
[]
:
[]
// this.showTab =item.partnerCompanyName == '挚达充电桩'
}
else
{
this
.
orderId
=
11880091
this
.
categoryId
=
1100000214
this
.
orderServiceType
=
'安装'
this
.
inGuaranteePeriod
=
'Y'
}
}
this
.
getCompleteData
()
this
.
getCompleteData
()
},
},
...
...
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