Commit f9bbbfaa authored by Damon's avatar Damon

fix: 配件选择样式

parent 4fc56662
......@@ -88,7 +88,7 @@
font-size: 32rpx;
color: #333;
font-weight: bold;
height: 50rpx;
height: 48rpx;
overflow: hidden;
}
.right-content-desc {
......
......@@ -567,21 +567,23 @@
},
// 提交配件信息
submitParts() {
const lists = this.form.orderAccessorys.filter(v => v.quantity > 0)
const params = {
workOrderId: this.orderId,
applyType: '10',
parts: JSON.stringify(lists)
}
this.$u.api.createParts(params).then(res => {
if (res.code !== 200) {
this.$refs.uToast.show({
title: res.data,
type: 'error',
})
if (this.form.orderAccessorys) {
const lists = this.form.orderAccessorys.filter(v => v.quantity > 0)
const params = {
workOrderId: this.orderId,
applyType: '10',
parts: JSON.stringify(lists)
}
})
this.$u.api.createParts(params).then(res => {
if (res.code !== 200) {
this.$refs.uToast.show({
title: res.data,
type: 'error',
})
}
})
}
},
// 提交订单
orderFinish(){
......
......@@ -21,8 +21,8 @@
</view>
<view class="warp u-flex">
<view class="brand u-flex">
<view class="label-content u-flex" v-if="brand.length > 0">
<view class="brand u-flex" v-if="brand.length > 0">
<view class="label-content u-flex">
<scroll-view
style="width:100%;white-space: nowrap;"
scroll-x="true"
......
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