|
|
@ -2,15 +2,25 @@ |
|
|
|
<!-- 破损上报 --> |
|
|
|
<view class="help"> |
|
|
|
<navbar title="破损上报" leftClick @leftClick="$utils.navigateBack" /> |
|
|
|
|
|
|
|
|
|
|
|
<view class="type"> |
|
|
|
<span>破损数量</span> |
|
|
|
<span> |
|
|
|
<uv-number-box |
|
|
|
v-model="form.num" :min="1" |
|
|
|
:max="order.num"></uv-number-box> |
|
|
|
</span> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="help-box"> |
|
|
|
<view> |
|
|
|
<!-- <view class="help-issue"> |
|
|
|
<text>问题和意见</text> |
|
|
|
<text style="color: #BD3624;">*</text> |
|
|
|
</view> --> |
|
|
|
<uv-textarea v-model="value" :count="true" border="none" height="400" |
|
|
|
placeholder="请输入破损的细节部位....." |
|
|
|
:text-style="{color:'#000',fontSize:'28rpx'}" /> |
|
|
|
<uv-textarea |
|
|
|
:count="true" |
|
|
|
v-model="form.info" |
|
|
|
border="none" height="400" |
|
|
|
placeholder="请输入破损的细节部位....." |
|
|
|
:text-style="{color:'#000',fontSize:'28rpx'}" /> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view> |
|
|
@ -28,38 +38,23 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- <view> |
|
|
|
<view class="help-issue"> |
|
|
|
<text>联系方式</text> |
|
|
|
<text style="color: #BD3624;">*</text> |
|
|
|
</view> |
|
|
|
<uv-input placeholder="请输入联系方式" fontSize="24rpx" border="bottom" |
|
|
|
:custom-style="{backgroundColor: '#fff'}"> |
|
|
|
<template #prefix> |
|
|
|
<uv-text text="联系姓名" size="24rpx" margin="20rpx 10rpx 20rpx 10rpx" /> |
|
|
|
</template> |
|
|
|
</uv-input> |
|
|
|
<uv-input placeholder="请输入联系姓名" border="none" fontSize="24rpx" |
|
|
|
:custom-style="{backgroundColor: '#fff'}"> |
|
|
|
<template #prefix> |
|
|
|
<uv-text text="联系方式" size="24rpx" margin="20rpx 10rpx 20rpx 10rpx" /> |
|
|
|
</template> |
|
|
|
</uv-input> |
|
|
|
</view> --> |
|
|
|
<view class="help-button"> |
|
|
|
<view>提交审核</view> |
|
|
|
<view |
|
|
|
@click="submit">提交审核</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import mixinOrder from '@/mixins/order.js' |
|
|
|
export default { |
|
|
|
mixins : [mixinOrder], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
value: "", |
|
|
|
fileList: [], |
|
|
|
form : { |
|
|
|
num : 1, |
|
|
|
info : '', |
|
|
|
}, |
|
|
|
order: {}, |
|
|
@ -100,13 +95,17 @@ |
|
|
|
submit(){ |
|
|
|
this.form.pic = this.fileList.map(item=>item.url).join(",") |
|
|
|
if (this.$utils.verificationAll(this.form, { |
|
|
|
id: '请选择租赁物品', |
|
|
|
info: '请输入破损的细节部位', |
|
|
|
pic: '请选择地址', |
|
|
|
pic: '请上传图片', |
|
|
|
})) { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
this.orderConfirmedDamage(this.order, 2, this.form, |
|
|
|
() => { |
|
|
|
uni.redirectTo({ |
|
|
|
url:'/pages/index/order' |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
@ -114,6 +113,23 @@ |
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
.help { |
|
|
|
.type { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
background-color: #FFF; |
|
|
|
width: 92%; |
|
|
|
margin: 30rpx 4%; |
|
|
|
padding: 20rpx; |
|
|
|
box-sizing: border-box; |
|
|
|
|
|
|
|
>span:nth-of-type(1) { |
|
|
|
width: 70%; |
|
|
|
} |
|
|
|
|
|
|
|
>span:nth-of-type(2) { |
|
|
|
width: 30%; |
|
|
|
} |
|
|
|
} |
|
|
|
.help-box { |
|
|
|
width: 92%; |
|
|
|
margin-left: 4%; |
|
|
|