Commit 166d259f by cen

fix: 样式修复

1 parent 57edfc71
...@@ -226,7 +226,7 @@ export default { ...@@ -226,7 +226,7 @@ export default {
{ key: 'licensePlate', label: '车牌号', required: true, maxlength: 10, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'licensePlate', targetObj: 'carBaseReqDTO', type: 'input', showText: 'shopMerchantName' }, { key: 'licensePlate', label: '车牌号', required: true, maxlength: 10, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'licensePlate', targetObj: 'carBaseReqDTO', type: 'input', showText: 'shopMerchantName' },
{ key: 'engineNumber', label: '发动机号', required: true, maxlength: 20, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'engineNumber', targetObj: 'carBaseReqDTO', type: 'input', showText: 'shopMerchantName' }, { key: 'engineNumber', label: '发动机号', required: true, maxlength: 20, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'engineNumber', targetObj: 'carBaseReqDTO', type: 'input', showText: 'shopMerchantName' },
{ key: 'registrationCity', label: '上牌城市', required: true, fullWidth: false, targetNameKey: 'cityName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'registrationCityName', targetObj: 'carBaseReqDTO', type: 'select', showText: 'shopMerchantName', isCity: true }, { key: 'registrationCity', label: '上牌城市', required: true, fullWidth: false, targetNameKey: 'cityName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'registrationCityName', targetObj: 'carBaseReqDTO', type: 'select', showText: 'shopMerchantName', isCity: true },
{ key: 'registrationDate', label: '上牌时间', required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'registrationDate', targetObj: 'carBaseReqDTO', type: 'calendar', showText: 'shopMerchantName' }, { key: 'registrationDate', label: '上牌时间', required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'registrationDate', targetObj: 'carBaseReqDTO', type: 'calendar', showText: 'shopMerchantName', endDate: true },
{ key: 'carCity', label: '车辆所在地', required: true, fullWidth: false, targetNameKey: 'carCityName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'carCityName', targetObj: 'carBaseReqDTO', type: 'select', isCarCity: true }, { key: 'carCity', label: '车辆所在地', required: true, fullWidth: false, targetNameKey: 'carCityName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'carCityName', targetObj: 'carBaseReqDTO', type: 'select', isCarCity: true },
{ key: 'mileage', label: '表显里程', inputType: 'number', min: 0, max: 999999, required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'mileage', targetObj: 'carBaseReqDTO', type: 'input', showText: 'shopMerchantName', pattern: '^[0-9]{0,6}$', cell: '公里', isCell: true }, { key: 'mileage', label: '表显里程', inputType: 'number', min: 0, max: 999999, required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'mileage', targetObj: 'carBaseReqDTO', type: 'input', showText: 'shopMerchantName', pattern: '^[0-9]{0,6}$', cell: '公里', isCell: true },
{ {
...@@ -376,7 +376,7 @@ export default { ...@@ -376,7 +376,7 @@ export default {
{ name: '其他', value: '14' } { name: '其他', value: '14' }
] ]
}, },
{ key: 'productionDate', label: '生产日期', required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'productionDate', targetObj: 'carBaseReqDTO', type: 'calendar' }, { key: 'productionDate', label: '生产日期', required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'productionDate', targetObj: 'carBaseReqDTO', type: 'calendar', endDate: true },
{ key: 'guidePrice', label: '指导价', inputType: 'number', min: 0, max: 999999, required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'guidePrice', targetObj: 'carBaseReqDTO', type: 'input', showText: 'shopMerchantName', pattern: '^[0-9]{0,6}$', cell: '元', isCell: true }, { key: 'guidePrice', label: '指导价', inputType: 'number', min: 0, max: 999999, required: true, fullWidth: false, targetNameKey: 'sellerName', sourceNameKey: 'staffName', sourceKey: 'uuid', targetKey: 'guidePrice', targetObj: 'carBaseReqDTO', type: 'input', showText: 'shopMerchantName', pattern: '^[0-9]{0,6}$', cell: '元', isCell: true },
{ {
key: 'buyNewCar', key: 'buyNewCar',
...@@ -460,9 +460,9 @@ export default { ...@@ -460,9 +460,9 @@ export default {
licenseFormFields: [ licenseFormFields: [
{ key: 'keyCount', label: '钥匙数', required: true, fullWidth: false, targetKey: 'keyCount', targetObj: 'carLicenseReqDTO', type: 'input', inputType: 'number', min: 0, max: 9, pattern: '^[0-9]{1}$' }, { key: 'keyCount', label: '钥匙数', required: true, fullWidth: false, targetKey: 'keyCount', targetObj: 'carLicenseReqDTO', type: 'input', inputType: 'number', min: 0, max: 9, pattern: '^[0-9]{1}$' },
{ key: 'transferCount', label: '过户次数', required: true, fullWidth: false, targetKey: 'transferCount', targetObj: 'carLicenseReqDTO', type: 'input', inputType: 'number', min: 0, max: 9, pattern: '^[0-9]{1}$' }, { key: 'transferCount', label: '过户次数', required: true, fullWidth: false, targetKey: 'transferCount', targetObj: 'carLicenseReqDTO', type: 'input', inputType: 'number', min: 0, max: 9, pattern: '^[0-9]{1}$' },
{ key: 'compulsoryInsuranceExpiry', label: '交强险到期', required: true, fullWidth: false, type: 'calendar', targetKey: 'compulsoryInsuranceExpiry', targetObj: 'carLicenseReqDTO' }, { key: 'compulsoryInsuranceExpiry', label: '交强险到期', required: true, fullWidth: false, type: 'calendar', targetKey: 'compulsoryInsuranceExpiry', targetObj: 'carLicenseReqDTO', endDate: false },
{ key: 'annualInspectionExpiry', label: '年审到期', required: true, fullWidth: false, type: 'calendar', targetKey: 'annualInspectionExpiry', targetObj: 'carLicenseReqDTO' }, { key: 'annualInspectionExpiry', label: '年审到期', required: true, fullWidth: false, type: 'calendar', targetKey: 'annualInspectionExpiry', targetObj: 'carLicenseReqDTO', endDate: false },
{ key: 'commercialInsuranceExpiry', label: '商业险到期', required: true, fullWidth: false, type: 'calendar', targetKey: 'commercialInsuranceExpiry', targetObj: 'carLicenseReqDTO' }, { key: 'commercialInsuranceExpiry', label: '商业险到期', required: true, fullWidth: false, type: 'calendar', targetKey: 'commercialInsuranceExpiry', targetObj: 'carLicenseReqDTO', endDate: false },
{ key: 'previousOwnerName', label: '原车主名称', required: true, fullWidth: false, targetKey: 'previousOwnerName', targetObj: 'carLicenseReqDTO', type: 'input' }, { key: 'previousOwnerName', label: '原车主名称', required: true, fullWidth: false, targetKey: 'previousOwnerName', targetObj: 'carLicenseReqDTO', type: 'input' },
{ key: 'previousOwnerPhone', label: '原车主电话', required: true, fullWidth: true, targetKey: 'previousOwnerPhone', targetObj: 'carLicenseReqDTO', type: 'input', inputType: 'number', pattern: '^[0-9]{11}$', maxlength: 11 }, { key: 'previousOwnerPhone', label: '原车主电话', required: true, fullWidth: true, targetKey: 'previousOwnerPhone', targetObj: 'carLicenseReqDTO', type: 'input', inputType: 'number', pattern: '^[0-9]{11}$', maxlength: 11 },
{ {
...@@ -772,6 +772,11 @@ export default { ...@@ -772,6 +772,11 @@ export default {
} else if (field.key === 'carCity') { } else if (field.key === 'carCity') {
this.$refs.selectCarCity.open() this.$refs.selectCarCity.open()
} else if (field.type === 'calendar') { } else if (field.type === 'calendar') {
if (field.endDate) {
this.endDate = dayjs().format('YYYY-MM-DD')
} else {
this.endDate = ''
}
this.$refs.calendarGeneralPopup this.$refs.calendarGeneralPopup
.open() .open()
.then(() => { .then(() => {
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</view> </view>
<view class="info-item flex align-center"> <view class="info-item flex align-center">
<text class="common-label flex-shrink-0">工单时间</text> <text class="common-label flex-shrink-0">工单时间</text>
<view class="common-value text-ellipsis ml-16">{{ carInfo.createdDate }}</view> <view class="common-value text-ellipsis ml-16">{{ carInfo.evalOrderTime }}</view>
</view> </view>
<view class="info-item flex align-center" v-if="carInfo.status != 10 && carInfo.status != 20"> <view class="info-item flex align-center" v-if="carInfo.status != 10 && carInfo.status != 20">
<text class="common-label flex-shrink-0">签约时间</text> <text class="common-label flex-shrink-0">签约时间</text>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<template> <template>
<view class="form-btn flex align-center"> <view class="form-btn flex align-center">
<view class="btn search mr-12" @click.stop="search">查询</view> <view class="btn search mr-12" @click.stop="search">查询</view>
<view class="btn" @click.stop="$emit('reset')">重置</view> <view class="btn" @click.stop="resetForm">重置</view>
</view> </view>
</template> </template>
</view> </view>
...@@ -28,6 +28,14 @@ ...@@ -28,6 +28,14 @@
<script> <script>
export default { export default {
name: 'searchBox', name: 'searchBox',
watch: {
searchValue: {
handler(newVal) {
this.customerInfo = { ...newVal }
},
immediate: true
}
},
data() { data() {
return { return {
focusIndex: -1, focusIndex: -1,
...@@ -81,6 +89,16 @@ export default { ...@@ -81,6 +89,16 @@ export default {
resetFocusIndex() { resetFocusIndex() {
this.focusIndex = -1 this.focusIndex = -1
this.errorTip = false this.errorTip = false
},
resetForm() {
this.customerInfo = {
previousOwnerName: '',
previousOwnerPhone: '',
licensePlate: '',
evalOrderNo: ''
}
this.$emit('update:searchValue', this.customerInfo)
this.$emit('reset')
} }
} }
} }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<view class="title">评估单管理</view> <view class="title">评估单管理</view>
</view> </view>
<view class="detail-content"> <view class="detail-content">
<searchBox @search="search" @reset="reset" :searchValue.sync="searchValue" /> <searchBox ref="searchBox" @search="search" @reset="reset" :searchValue.sync="searchValue" />
<view class="box-class mt-32"> <view class="box-class mt-32">
<type-tab-component :typeList="typeList" :isShowCount="true" :tabIndex.sync="tabIndex" @tabClick="search"></type-tab-component> <type-tab-component :typeList="typeList" :isShowCount="true" :tabIndex.sync="tabIndex" @tabClick="search"></type-tab-component>
<z-paging ref="paging" :fixed="false" paging-class="paging-class" :class="tabIndex == 0 ? 'no-br' : ''" :loading-full-fixed="false" :auto-show-system-loading="true" :show-scrollbar="false" v-model="dataList" @query="queryList" :default-page-size="10"> <z-paging ref="paging" :fixed="false" paging-class="paging-class" :class="tabIndex == 0 ? 'no-br' : ''" :loading-full-fixed="false" :auto-show-system-loading="true" :show-scrollbar="false" v-model="dataList" @query="queryList" :default-page-size="10">
...@@ -244,8 +244,9 @@ export default { ...@@ -244,8 +244,9 @@ export default {
}, },
search() { search() {
console.log(this.searchValue, '32323') console.log(this.searchValue, '32323')
this.$refs.paging?.reload() this.$refs.paging?.reload()
this.getStatByStatus() // this.getStatByStatus()
}, },
onShow() { onShow() {
this.search() this.search()
...@@ -254,9 +255,10 @@ export default { ...@@ -254,9 +255,10 @@ export default {
this.searchValue = { this.searchValue = {
previousOwnerName: '', previousOwnerName: '',
previousOwnerPhone: '', previousOwnerPhone: '',
vin: '', licensePlate: '',
evalOrderNo: '' evalOrderNo: ''
} }
this.tabIndex = 0 this.tabIndex = 0
this.search() this.search()
}, },
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</view> </view>
</view> </view>
<view class="h2-title mt-32">签约个人信息</view> <view class="h2-title mt-32">签约个人信息</view>
<view class="sign-info-box"> <view class="sign-info-box" :class="{ 'no-footerBtn': !formData.paymentType }">
<view v-if="formData.paymentType" class="fromBox"> <view v-if="formData.paymentType" class="fromBox">
<FormCell :formFields="formFields" :formData="formData" @handleCell="handleCell" @inputChange="handleInputChange" @inputInvalid="handleInputInvalid" @blurChange="blurChange" /> <FormCell :formFields="formFields" :formData="formData" @handleCell="handleCell" @inputChange="handleInputChange" @inputInvalid="handleInputInvalid" @blurChange="blurChange" />
<view class="upload-container mb-24"> <view class="upload-container mb-24">
...@@ -820,7 +820,7 @@ export default { ...@@ -820,7 +820,7 @@ export default {
for (const tempFilePath of res.tempFilePaths) { for (const tempFilePath of res.tempFilePaths) {
const url = await uploadFile(tempFilePath) const url = await uploadFile(tempFilePath)
console.log('上传图片成功', url) console.log('上传图片成功', url)
this.addMedia(field, { url, type: 'image' }) this.addMedia(field, { url, fileFormat: 'png', type: 'image', name: field.label })
} }
} catch (error) { } catch (error) {
console.log('上传图片失败', error) console.log('上传图片失败', error)
...@@ -847,7 +847,7 @@ export default { ...@@ -847,7 +847,7 @@ export default {
for (const tempFilePath of res.tempFilePaths) { for (const tempFilePath of res.tempFilePaths) {
const url = await uploadFile(tempFilePath) const url = await uploadFile(tempFilePath)
console.log('上传图片成功', url) console.log('上传图片成功', url)
this.addMedia(field, { url, type: 'image' }) this.addMedia(field, { url, fileFormat: 'png', type: 'image', name: field.label })
} }
} catch (error) { } catch (error) {
console.log('上传图片失败', error) console.log('上传图片失败', error)
...@@ -1124,7 +1124,7 @@ export default { ...@@ -1124,7 +1124,7 @@ export default {
border-radius: toRpx(16); border-radius: toRpx(16);
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
height: calc(100% - #{toRpx(254)}); height: calc(100% - #{toRpx(324)});
overflow: hidden; overflow: hidden;
.no-data { .no-data {
background: #ffffff; background: #ffffff;
...@@ -1266,6 +1266,9 @@ export default { ...@@ -1266,6 +1266,9 @@ export default {
} }
} }
} }
.no-footerBtn {
height: calc(100% - #{toRpx(264)});
}
.footerBtn { .footerBtn {
position: absolute; position: absolute;
bottom: toRpx(24); bottom: toRpx(24);
...@@ -1329,6 +1332,7 @@ export default { ...@@ -1329,6 +1332,7 @@ export default {
background: linear-gradient(-44.4deg, #94c2ff00 0%, #5294ff 100%); background: linear-gradient(-44.4deg, #94c2ff00 0%, #5294ff 100%);
filter: blur(toRpx(24)); filter: blur(toRpx(24));
} }
//确认签约信息样式 //确认签约信息样式
.gridBox { .gridBox {
display: grid; display: grid;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!