|
|
@@ -17,14 +17,12 @@
|
|
|
<uni-forms ref="form1" :modelValue="form" :border="true" label-width="80">
|
|
|
<uni-forms-item name="consumerName" label="联系人" required>
|
|
|
<uni-easyinput v-model="form.consumerName" 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="consumerPhone" label="电话" required>
|
|
|
<uni-easyinput v-model="form.consumerPhone" class="right-align" type="number"
|
|
|
- placeholder-class="placeholder-right" placeholder="请输入内容" :inputBorder="false"
|
|
|
- :disabled="true" :clearable="false" maxlength="11"
|
|
|
- @change="photoChange"></uni-easyinput>
|
|
|
+ placeholder-class="placeholder-right" placeholder="请输入内容" :inputBorder="false" :disabled="true"
|
|
|
+ :clearable="false" maxlength="11" @change="photoChange"></uni-easyinput>
|
|
|
</uni-forms-item>
|
|
|
<!-- <uni-forms-item name="vehicleNumber" label="车牌号" required>
|
|
|
<uni-easyinput v-model="form.vehicleNumber" class="right-align"
|
|
|
@@ -75,8 +73,8 @@
|
|
|
<uni-forms-item name="tyreNo" label="胎号">
|
|
|
<view style="display: flex;align-items: center;">
|
|
|
<uni-easyinput v-model="item.tyreNo" class="right-align"
|
|
|
- placeholder-class="placeholder-right" :placeholder="form.status>0?' ':'请输入胎号'" :inputBorder="false"
|
|
|
- :disabled="true" :clearable="false"
|
|
|
+ placeholder-class="placeholder-right" :placeholder="form.status>0?' ':'请输入胎号'"
|
|
|
+ :inputBorder="false" :disabled="true" :clearable="false"
|
|
|
@change="getMaterialDetail($event,activeTab)"></uni-easyinput>
|
|
|
<!-- <uni-icons v-if="!form.status>0" type="scan" size="24" color='#03803B'
|
|
|
@click="allClick('识别胎号',activeTab)"></uni-icons> -->
|
|
|
@@ -137,12 +135,16 @@
|
|
|
<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 style="padding:30rpx 20rpx;">
|
|
|
- <!-- <debounce-button v-if="!form.id" bgColor='#03803B' @click="submit">保存</debounce-button> -->
|
|
|
-
|
|
|
+ <!-- <view style="padding:30rpx 20rpx;">
|
|
|
<view v-if="form.status==0" style="display: flex;">
|
|
|
- <debounce-button type="warn" @click="approval" style="width: 100%;">提交</debounce-button>
|
|
|
+ <debounce-button type="warn" @click="approval" style="width: 100%;">提交</debounce-button>
|
|
|
</view>
|
|
|
+ </view> -->
|
|
|
+ <view v-if="form.status==0" class="nav-bottom-height">
|
|
|
+ </view>
|
|
|
+ <view class="goods-nav-bottom" v-if="form.status==0">
|
|
|
+ <uni-goods-nav :fill="true" :options="[]" :buttonGroup="buttonGroup"
|
|
|
+ @buttonClick="buttonClick" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -166,6 +168,11 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ buttonGroup: [{
|
|
|
+ text: '提交',
|
|
|
+ backgroundColor: '#e64340',
|
|
|
+ color: '#fff'
|
|
|
+ }],
|
|
|
carShow: false,
|
|
|
form: {
|
|
|
consumerName: null,
|
|
|
@@ -276,6 +283,11 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ buttonClick(e) {
|
|
|
+ if (e.index == 0) {
|
|
|
+ this.approval()
|
|
|
+ }
|
|
|
+ },
|
|
|
// 处理输入框聚焦事件
|
|
|
handleInputFocus() {
|
|
|
// if (this.form.status > 0) return
|
|
|
@@ -782,6 +794,7 @@
|
|
|
duration: 2000
|
|
|
});
|
|
|
}, 10);
|
|
|
+ uni.setStorageSync('isUpdate', true)
|
|
|
_this.getDetail(res.data.id)
|
|
|
})
|
|
|
.catch(() => {
|
|
|
@@ -1011,4 +1024,4 @@
|
|
|
pointer-events: none !important;
|
|
|
touch-action: none !important;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|