Commit 1d0b53ae authored by Damon's avatar Damon

perf: 完工页组件判断优化

parent 807aca9c
......@@ -97,7 +97,7 @@
>
</xh-input>
<xh-multi-input
v-else-if="item.formType === 'multiinput'"
v-if="item.formType === 'multiinput'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
......@@ -107,7 +107,7 @@
>
</xh-multi-input>
<xh-radio
v-else-if="item.formType === 'radio'"
v-if="item.formType === 'radio'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
......@@ -117,7 +117,7 @@
>
</xh-radio>
<xh-checkbox
v-else-if="item.formType === 'checkbox'"
v-if="item.formType === 'checkbox'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
......@@ -127,7 +127,7 @@
>
</xh-checkbox>
<xh-select
v-else-if="item.formType === 'select'"
v-if="item.formType === 'select'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
......@@ -137,7 +137,7 @@
>
</xh-select>
<xh-specifications
v-else-if="item.formType === 'select-new-page'"
v-if="item.formType === 'select-new-page'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
......@@ -146,7 +146,7 @@
@value-change="fieldValueChange"
>
</xh-specifications>
<view v-else-if="item.formType === 'file'">
<view v-if="item.formType === 'file'">
<xh-files
:ref="`fileChild${groupIndex}${itemIndex}`"
:groupIndex="groupIndex"
......@@ -180,7 +180,7 @@
</view>
<xh-location
v-else-if="item.formType === 'location'"
v-if="item.formType === 'location'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
......@@ -190,7 +190,7 @@
>
</xh-location>
<xh-scan
v-else-if="item.formType === 'scan'"
v-if="item.formType === 'scan'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
......@@ -200,7 +200,7 @@
>
</xh-scan>
<xh-service-measure
v-else-if="item.formType === 'servicemeasure'"
v-if="item.formType === 'servicemeasure'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
......@@ -214,7 +214,7 @@
>
</xh-service-measure>
<xh-time
v-else-if="item.formType === 'time'"
v-if="item.formType === 'time'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
......@@ -224,7 +224,7 @@
>
</xh-time>
<xh-service-more
v-else-if="item.formType === 'form'"
v-if="item.formType === 'form'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
......@@ -235,7 +235,7 @@
>
</xh-service-more>
<xh-label
v-else-if="item.formType === 'label'"
v-if="item.formType === 'label'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
......@@ -244,7 +244,7 @@
</xh-label>
<xh-parts
ref="fileChildParts"
v-else-if="item.formType === 'parts'"
v-if="item.formType === 'parts'"
:categoryId="categoryId"
:brandId="brandId"
:order-id="orderId"
......@@ -332,13 +332,12 @@ import XhLocation from '@/components/createCom/XhLocation.vue'
import XhScan from '@/components/createCom/XhScan.vue'
import XhTime from '@/components/createCom/XhTime.vue'
import XhServiceMeasure from '@/components/createCom/XhServiceMeasure.vue'
import XhServiceMore from '../../components/createCom/XhServiceMore'
import XhLabel from '../../components/createCom/XhLabel'
import XhServiceMore from '@/components/createCom/XhServiceMore'
import XhLabel from '@/components/createCom/XhLabel'
import XhParts from '@/components/createCom/XhParts'
import takePhoto from '@/components/take/index.vue'
import baseFile from '@/components/upload/index'
import Detail from '@/components/order/detail.vue'
import returnPartsVue from '../parts/returnParts.vue'
// 表单类型map
const formType = new Map([
......@@ -521,9 +520,6 @@ export default {
'take-photo': takePhoto,
},
mixins: [baseFile],
created() {
// console.log(allComponents,'allComponents')
},
onLoad(option) {
getApp().trackPage('订单完工信息页')
if (option) {
......@@ -539,12 +535,6 @@ export default {
this.auditResults = option?.auditResults
? option?.auditResults.split(',')
: []
// this.showTab =item.partnerCompanyName == '挚达充电桩'
} else {
this.orderId = 11880091
this.categoryId = 1100000214
this.orderServiceType = '安装'
this.inGuaranteePeriod = 'Y'
}
this.getCompleteData()
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment