Commit d436250e authored by Damon's avatar Damon

fix: 无备件图片显示

parent 4197d768
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</view> </view>
<view class="u-flex select-part" v-else-if="status === 2"> <view class="u-flex select-part" v-else-if="status === 2">
<view class="img"> <view class="img">
<image src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png" class="part-icon" /> <image :src="noPartsImage" class="part-icon" />
</view> </view>
<view class="u-flex content"> <view class="u-flex content">
<text class="title">暂无配件信息</text> <text class="title">暂无配件信息</text>
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
max: 5, max: 5,
}, },
], ],
status: 1 status: 2
} }
}, },
computed: { computed: {
...@@ -77,7 +77,10 @@ ...@@ -77,7 +77,10 @@
}, },
mixingImage() { mixingImage() {
return process.uniEnv.qn_base_url + 'mixing.png' return process.uniEnv.qn_base_url + 'mixing.png'
} },
noPartsImage() {
return process.uniEnv.qn_base_url + 'no_parts.png'
},
}, },
created() { created() {
this.getWorkOrderParts() this.getWorkOrderParts()
......
...@@ -49,10 +49,10 @@ ...@@ -49,10 +49,10 @@
</xh-files> </xh-files>
</view> </view>
<!-- <xh-location v-else-if="item.formType==='location'" <xh-location v-else-if="item.formType==='location'"
:groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""' :groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""'
@value-change="fieldValueChange"> @value-change="fieldValueChange">
</xh-location> --> </xh-location>
<xh-scan v-else-if="item.formType==='scan'" <xh-scan v-else-if="item.formType==='scan'"
:groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""' :groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""'
@value-change="fieldValueChange"> @value-change="fieldValueChange">
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
</xh-service-more> </xh-service-more>
<xh-label v-else-if="item.formType==='label'" :groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""'> <xh-label v-else-if="item.formType==='label'" :groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""'>
</xh-label> </xh-label>
<xh-parts v-else-if="item.formType==='location'" :order-id="orderId" :groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""'> <xh-parts v-else-if="item.formType==='parts'" :order-id="orderId" :groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""'>
</xh-parts> </xh-parts>
</template> </template>
</u-form-item> </u-form-item>
......
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