|
|
@@ -27,7 +27,7 @@
|
|
|
<view style="display: flex;align-items: center;height: 36px;width: 100%;">
|
|
|
<view @click="handleInputFocus()" style="width: 100%;text-align: right;padding: 0 20rpx;"
|
|
|
:style="form.vehicleNumber?'color:#000;':'color:#B5B4B4;font-size: 24rpx;'">
|
|
|
- {{form.vehicleNumber||form.auditStatus>0||form.claimSourceType>1?' ':'请输入车牌号'}}
|
|
|
+ {{form.vehicleNumber||(form.auditStatus>0||form.claimSourceType>1?' ':'请输入车牌号')}}
|
|
|
</view>
|
|
|
</view>
|
|
|
<uni-icons v-if="!(form.auditStatus>0||form.claimSourceType>1)" type="camera" size="24"
|
|
|
@@ -46,8 +46,7 @@
|
|
|
</uni-forms-item>
|
|
|
<uni-forms-item name="tyreSpecs" label="规格型号">
|
|
|
<uni-easyinput v-model="form.tyreSpecs" class="right-align" placeholder-class="placeholder-right"
|
|
|
- placeholder="" :inputBorder="false"
|
|
|
- :disabled="true" :clearable="false"></uni-easyinput>
|
|
|
+ placeholder="" :inputBorder="false" :disabled="true" :clearable="false"></uni-easyinput>
|
|
|
</uni-forms-item>
|
|
|
<uni-forms-item name="brandItem" label="花纹">
|
|
|
<uni-easyinput v-model="form.brandItem" class="right-align" placeholder-class="placeholder-right"
|
|
|
@@ -69,7 +68,8 @@
|
|
|
</uni-forms-item>
|
|
|
<uni-forms-item name="claimReason" label="理赔原因">
|
|
|
<uni-easyinput v-model="form.claimReason" class="right-align" type="textarea"
|
|
|
- placeholder-class="placeholder-right" :placeholder="form.auditStatus>0||form.claimSourceType>1?' ':'请输入内容'" :inputBorder="false"
|
|
|
+ placeholder-class="placeholder-right"
|
|
|
+ :placeholder="form.auditStatus>0||form.claimSourceType>1?' ':'请输入内容'" :inputBorder="false"
|
|
|
:del-icon="!(form.auditStatus>0||form.claimSourceType>1)"
|
|
|
:disabled="form.auditStatus>0||form.claimSourceType>1"></uni-easyinput>
|
|
|
</uni-forms-item>
|
|
|
@@ -135,7 +135,7 @@
|
|
|
<u-keyboard ref="uKeyboard" mode="car" :show="carShow" @change="carChange" @backspace="backspace"
|
|
|
:showCancel="false" :showConfirm="false" @close="carShow=false" :safeAreaInsetBottom="true"
|
|
|
:autoChange="true"></u-keyboard>
|
|
|
- <view v-if="form.claimSourceType==1" style="padding:30rpx 20rpx;">
|
|
|
+ <!--<view v-if="form.claimSourceType==1" style="padding:30rpx 20rpx;">
|
|
|
<debounce-button v-if="!form.id" bgColor="#03803B" @click="submit">保存</debounce-button>
|
|
|
<view v-if="form.auditStatus==0" style="display: flex;">
|
|
|
<debounce-button bgColor="#03803B" style="width: 260rpx;" @click="submit">保存</debounce-button>
|
|
|
@@ -143,6 +143,16 @@
|
|
|
@click="approval">提交</debounce-button>
|
|
|
</view>
|
|
|
<debounce-button type="warn" v-if="form.auditStatus==1" @click="revoke">撤销审核</debounce-button>
|
|
|
+ </view> -->
|
|
|
+ <view v-if="form.claimSourceType==1" class="nav-bottom-height">
|
|
|
+ </view>
|
|
|
+ <view v-if="form.claimSourceType==1" class="goods-nav-bottom">
|
|
|
+ <uni-goods-nav v-if="!form.id" :fill="true" :options="[]" :buttonGroup="buttonGroup"
|
|
|
+ @buttonClick="buttonClick" />
|
|
|
+ <uni-goods-nav v-if="form.auditStatus==0" :fill="true" :options="[]" :buttonGroup="buttonGroup2"
|
|
|
+ @buttonClick="buttonClick2" />
|
|
|
+ <uni-goods-nav v-if="form.auditStatus==1" :fill="true" :options="[]" :buttonGroup="buttonGroup3"
|
|
|
+ @buttonClick="buttonClick3" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -164,6 +174,27 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ buttonGroup: [{
|
|
|
+ text: '保存',
|
|
|
+ backgroundColor: '#03803B',
|
|
|
+ color: '#fff'
|
|
|
+ }],
|
|
|
+ buttonGroup2: [{
|
|
|
+ text: '保存',
|
|
|
+ backgroundColor: '#03803B',
|
|
|
+ color: '#fff'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '提交',
|
|
|
+ backgroundColor: '#e64340',
|
|
|
+ color: '#fff'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ buttonGroup3: [{
|
|
|
+ text: '撤销审核',
|
|
|
+ backgroundColor: '#e64340',
|
|
|
+ color: '#fff'
|
|
|
+ }],
|
|
|
carShow: false,
|
|
|
form: {
|
|
|
file1: null,
|
|
|
@@ -176,7 +207,7 @@
|
|
|
claimSourceType: 1,
|
|
|
tireQuantity: 1,
|
|
|
claimAmount: null,
|
|
|
- claimType:1,
|
|
|
+ claimType: 1,
|
|
|
claimAttachmentList: [],
|
|
|
},
|
|
|
imageStyles: {
|
|
|
@@ -204,6 +235,24 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ buttonClick(e) {
|
|
|
+ if (e.index == 0) {
|
|
|
+ this.submit()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ buttonClick2(e) {
|
|
|
+ if (e.index == 0) {
|
|
|
+ this.submit()
|
|
|
+ }
|
|
|
+ if (e.index == 1) {
|
|
|
+ this.approval()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ buttonClick3(e) {
|
|
|
+ if (e.index == 0) {
|
|
|
+ this.revoke()
|
|
|
+ }
|
|
|
+ },
|
|
|
// 处理输入框聚焦事件
|
|
|
handleInputFocus() {
|
|
|
if (this.form.auditStatus > 0 || this.form.claimSourceType > 1) return
|
|
|
@@ -319,7 +368,7 @@
|
|
|
uni.chooseImage({
|
|
|
count: 1, //默认9
|
|
|
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
|
|
- sourceType:['camera'],
|
|
|
+ sourceType: ['camera'],
|
|
|
success: function(file) {
|
|
|
uni.showLoading({
|
|
|
title: '加载中',
|
|
|
@@ -364,7 +413,7 @@
|
|
|
let _this = this
|
|
|
uni.scanCode({
|
|
|
scanType: ['barCode'],
|
|
|
- onlyFromCamera:true,
|
|
|
+ onlyFromCamera: true,
|
|
|
success: function(res) {
|
|
|
_this.form.tyreNo = res.result
|
|
|
_this.getMaterialDetail(res.result)
|