|
|
@@ -59,6 +59,14 @@
|
|
|
</text>
|
|
|
</view>
|
|
|
</uni-forms-item>
|
|
|
+ <uni-forms-item v-if="form.auditStatus==2||form.auditStatus==3" name="remark" label="审核原因"
|
|
|
+ label-width='80'>
|
|
|
+ <view style="display: flex;justify-content: flex-end;align-items: center;height: 36px;">
|
|
|
+ <text style="color: #B5B4B4;">
|
|
|
+ {{form.remark}}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ </uni-forms-item>
|
|
|
</uni-forms>
|
|
|
</uni-section>
|
|
|
<uni-section title="相应图片信息" style="padding: 0 62rpx 20rpx 62rpx;margin-top: 30rpx;" titleColor="5F5F5F"
|
|
|
@@ -78,6 +86,11 @@
|
|
|
@click="allClick('识别胎号',activeTab)"></uni-icons>
|
|
|
</view>
|
|
|
</uni-forms-item>
|
|
|
+ <uni-forms-item name="productCode" label="品号">
|
|
|
+ <uni-easyinput v-model="item.productCode" class="right-align"
|
|
|
+ placeholder-class="placeholder-right" placeholder="" :inputBorder="false" :disabled="true"
|
|
|
+ :clearable="false"></uni-easyinput>
|
|
|
+ </uni-forms-item>
|
|
|
<uni-forms-item name="tyreSpecs" label="规格型号">
|
|
|
<uni-easyinput v-model="item.tyreSpecs" class="right-align"
|
|
|
placeholder-class="placeholder-right" placeholder="" :inputBorder="false" :disabled="true"
|
|
|
@@ -88,11 +101,10 @@
|
|
|
placeholder-class="placeholder-right" placeholder="" :inputBorder="false" :disabled="true"
|
|
|
:clearable="false"></uni-easyinput>
|
|
|
</uni-forms-item>
|
|
|
- <uni-forms-item name="brandItem" label="DOT">
|
|
|
- <uni-easyinput v-model="item.dot" class="right-align"
|
|
|
- placeholder-class="placeholder-right" placeholder="" :inputBorder="false" :disabled="true"
|
|
|
- :clearable="false"></uni-easyinput>
|
|
|
- </uni-forms-item>
|
|
|
+ <!-- <uni-forms-item name="brandItem" label="DOT">
|
|
|
+ <uni-easyinput v-model="item.dot" class="right-align" placeholder-class="placeholder-right"
|
|
|
+ placeholder="" :inputBorder="false" :disabled="true" :clearable="false"></uni-easyinput>
|
|
|
+ </uni-forms-item> -->
|
|
|
<uni-forms-item name="brandName" label="品牌">
|
|
|
<uni-easyinput v-model="item.brandName" class="right-align"
|
|
|
placeholder-class="placeholder-right" placeholder="" :inputBorder="false" :disabled="true"
|
|
|
@@ -142,13 +154,19 @@
|
|
|
<view class="nav-bottom-height">
|
|
|
</view>
|
|
|
<view v-show="!keyboardShow" class="goods-nav-bottom">
|
|
|
- <view v-if="form.auditStatus === 0 || form.auditStatus === 3 || !form.id" class="bottom-actions">
|
|
|
+ <!-- <view v-if="form.auditStatus === 0 || form.auditStatus === 3 || !form.id" class="bottom-actions">
|
|
|
<debounce-button bgColor='#03803B' style="width: 320rpx;" @click="saveRegistration">保存</debounce-button>
|
|
|
<debounce-button type="warn" style="width: 320rpx;" @click="submitRegistration">提交</debounce-button>
|
|
|
</view>
|
|
|
<view v-if="form.auditStatus === 2" class="bottom-actions bottom-actions-center">
|
|
|
<debounce-button bgColor='#005A9C' style="width: 660rpx;" @click="viewQrCode">查看二维码</debounce-button>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
+ <!-- <uni-goods-nav v-if="!form.id" :fill="true" :options="[]" :buttonGroup="buttonGroup"
|
|
|
+ @buttonClick="buttonClick" /> -->
|
|
|
+ <uni-goods-nav v-if="form.auditStatus === 0 || form.auditStatus === 3||!form.id" :fill="true" :options="[]"
|
|
|
+ :buttonGroup="buttonGroup2" @buttonClick="buttonClick2" />
|
|
|
+ <uni-goods-nav v-if="form.auditStatus==2" :fill="true" :options="[]" :buttonGroup="buttonGroup3"
|
|
|
+ @buttonClick="buttonClick3" />
|
|
|
<!-- <debounce-button v-if="!form.id" bgColor='#03803B' @click="submit">保存</debounce-button>
|
|
|
|
|
|
<view v-if="form.status==0" style="display: flex;">
|
|
|
@@ -203,6 +221,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: '#005A9C',
|
|
|
+ color: '#fff'
|
|
|
+ }],
|
|
|
keyboardShow: false,
|
|
|
carShow: false,
|
|
|
form: {
|
|
|
@@ -225,6 +264,7 @@
|
|
|
tyreSpecs: null,
|
|
|
brandItem: null,
|
|
|
brandName: null,
|
|
|
+ productCode: null
|
|
|
}, {
|
|
|
affiliatedWithGroup: 1,
|
|
|
fileProperties: 2,
|
|
|
@@ -237,6 +277,7 @@
|
|
|
tyreSpecs: null,
|
|
|
brandItem: null,
|
|
|
brandName: null,
|
|
|
+ productCode: null
|
|
|
},
|
|
|
{
|
|
|
affiliatedWithGroup: 1,
|
|
|
@@ -250,6 +291,7 @@
|
|
|
tyreSpecs: null,
|
|
|
brandItem: null,
|
|
|
brandName: null,
|
|
|
+ productCode: null
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
@@ -326,6 +368,24 @@
|
|
|
canEditForm() {
|
|
|
return this.form.auditStatus !== 1 && this.form.auditStatus !== 2
|
|
|
},
|
|
|
+ buttonClick(e) {
|
|
|
+ if (e.index == 0) {
|
|
|
+ this.saveRegistration()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ buttonClick2(e) {
|
|
|
+ if (e.index == 0) {
|
|
|
+ this.saveRegistration()
|
|
|
+ }
|
|
|
+ if (e.index == 1) {
|
|
|
+ this.submitRegistration()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ buttonClick3(e) {
|
|
|
+ if (e.index == 0) {
|
|
|
+ this.viewQrCode()
|
|
|
+ }
|
|
|
+ },
|
|
|
saveRegistration() {
|
|
|
if (!this.canEditForm()) {
|
|
|
return uni.showToast({
|
|
|
@@ -487,15 +547,15 @@
|
|
|
success: (res) => {
|
|
|
const data = JSON.parse(res.data)
|
|
|
console.log(data)
|
|
|
- uni.showToast({
|
|
|
- title: data.msg,
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- });
|
|
|
- if (data.code !== 200) {
|
|
|
- return false
|
|
|
- }
|
|
|
- _this.form.vehicleNumber = data.data
|
|
|
+ uni.showToast({
|
|
|
+ title: data.msg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ if (data.code !== 200) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ _this.form.vehicleNumber = data.data
|
|
|
},
|
|
|
fail: (err) => {
|
|
|
|
|
|
@@ -573,6 +633,7 @@
|
|
|
item.brandItem = res.data.pattern
|
|
|
item.dot = res.data.dot
|
|
|
item.brandName = res.data.brand
|
|
|
+ item.productCode = res.data.wlXxId
|
|
|
}
|
|
|
} else {
|
|
|
uni.showToast({
|
|
|
@@ -586,6 +647,7 @@
|
|
|
item.brandItem = null
|
|
|
item.brandName = null
|
|
|
item.dot = null
|
|
|
+ item.productCode = null
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -596,6 +658,8 @@
|
|
|
item.tyreSpecs = null
|
|
|
item.brandItem = null
|
|
|
item.brandName = null
|
|
|
+ item.dot = null
|
|
|
+ item.productCode = null
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -620,7 +684,8 @@
|
|
|
tyreSpecs: null,
|
|
|
brandItem: null,
|
|
|
brandName: null,
|
|
|
- dot: null,
|
|
|
+ dot: null,
|
|
|
+ productCode: null
|
|
|
}, {
|
|
|
affiliatedWithGroup: val,
|
|
|
fileProperties: 2,
|
|
|
@@ -633,7 +698,8 @@
|
|
|
tyreSpecs: null,
|
|
|
brandItem: null,
|
|
|
brandName: null,
|
|
|
- dot: null,
|
|
|
+ dot: null,
|
|
|
+ productCode: null
|
|
|
},
|
|
|
{
|
|
|
affiliatedWithGroup: val,
|
|
|
@@ -647,7 +713,8 @@
|
|
|
tyreSpecs: null,
|
|
|
brandItem: null,
|
|
|
brandName: null,
|
|
|
- dot: null,
|
|
|
+ dot: null,
|
|
|
+ productCode: null
|
|
|
}
|
|
|
]
|
|
|
this.form.tireInsuranceFilesList = [
|
|
|
@@ -852,15 +919,15 @@
|
|
|
index: item.affiliatedWithGroup
|
|
|
});
|
|
|
}
|
|
|
- console.info('item.fileUrl------', item.fileUrl)
|
|
|
- console.info('item.fileUrl------', item.fileUrl == null)
|
|
|
+ console.info('item.fileUrl------', item.fileUrl)
|
|
|
+ console.info('item.fileUrl------', item.fileUrl == null)
|
|
|
if (item.fileUrl == null) {
|
|
|
- uni.showToast({
|
|
|
- title: `请上传轮胎${item.affiliatedWithGroup }的${+ item.fileProperties == 1 ?
|
|
|
+ uni.showToast({
|
|
|
+ title: `请上传轮胎${item.affiliatedWithGroup }的${+ item.fileProperties == 1 ?
|
|
|
'车辆角度45%' : item.fileProperties == 2 ? '轮胎DOT' : '安装照片'}`,
|
|
|
- icon: 'none'
|
|
|
- });
|
|
|
- return false
|
|
|
+ icon: 'none'
|
|
|
+ });
|
|
|
+ return false
|
|
|
}
|
|
|
}
|
|
|
return true
|
|
|
@@ -972,6 +1039,7 @@
|
|
|
tyreSpecs = item.tyreSpecs
|
|
|
brandItem = item.brandItem
|
|
|
brandName = item.brandName
|
|
|
+ productCode = item.productCode
|
|
|
}
|
|
|
let obj = {
|
|
|
...this.form,
|
|
|
@@ -980,6 +1048,7 @@
|
|
|
tyreSpecs: tyreSpecs,
|
|
|
brandItem: brandItem,
|
|
|
brandName: brandName,
|
|
|
+ productCode: productCode,
|
|
|
tireDescription: '轮胎' + Number(Number(this.activeTab) + 1)
|
|
|
}
|
|
|
uni.showModal({
|
|
|
@@ -1190,4 +1259,4 @@
|
|
|
.bottom-actions-center {
|
|
|
justify-content: center;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|