Commit 97380b7b by cwq0219

bug修复

1 parent 36d471f3
...@@ -74,8 +74,9 @@ ...@@ -74,8 +74,9 @@
</div> </div>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> --> <!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> -->
<div class="footer" :style="{ width: '100%' }"> <div class="footer" :style="{ width: '100%' }">
<el-button v-show="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm">提单</el-button>
<el-button v-show="routeInfo.addOrEdit == '1'" type="primary" @click="handleReset">重置</el-button>
<el-button v-show="!['3', '5'].includes(routeInfo.addOrEdit)" type="primary" @click="handleDraft">草稿</el-button> <el-button v-show="!['3', '5'].includes(routeInfo.addOrEdit)" type="primary" @click="handleDraft">草稿</el-button>
<el-button v-show="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button> <el-button type="default" @click="handleCancel">取消</el-button>
</div> </div>
</div> </div>
...@@ -109,23 +110,26 @@ export default { ...@@ -109,23 +110,26 @@ export default {
packageCode: '', packageCode: '',
suggestedSellingPrice: '', suggestedSellingPrice: '',
actualSalesPrice: '', actualSalesPrice: '',
servicePeriod: 1,
vehicle: { vehicle: {
vehicleBrandId: '', vehicleBrandId: '',
vehicleSubBrandId: '', vehicleSubBrandId: '',
vehicleSeriesId: '', vehicleSeriesId: '',
vehicleShapeId: '', vehicleShapeId: '',
licensing: '', licensing: '',
invoicePrice: '' invoicePrice: '',
seatesNum: 5,
billingDate: new Date()
} }
}, },
// 车辆信息 // 车辆信息
editRuleCar: { editRuleCar: {
licensing: [{ required: true, message: '请选择是否上牌', trigger: 'change' }], licensing: [{ required: true, message: '请选择是否上牌', trigger: 'change' }],
licensePlate: [{ required: true, message: '请输入车牌号码', trigger: 'change' }], // licensePlate: [{ required: true, message: '请输入车牌号码', trigger: 'change' }],
vin: [{ required: true, message: '请输入车架号', trigger: 'change' }], vin: [{ required: true, message: '请输入车架号', trigger: 'change' }],
engineNo: [{ required: true, message: '请输入发动机号', trigger: 'change' }], engineNo: [{ required: true, message: '请输入发动机号', trigger: 'change' }],
invoicePrice: [{ required: true, message: '请输入发票价格', trigger: 'change' }], invoicePrice: [{ required: true, message: '请输入发票价格', trigger: 'change' }],
vehicleColor: [{ required: true, message: '请输入车身颜色', trigger: 'change' }], // vehicleColor: [{ required: true, message: '请输入车身颜色', trigger: 'change' }],
vehicleBrandId: [{ required: true, message: '请选择车品牌', trigger: 'change' }], vehicleBrandId: [{ required: true, message: '请选择车品牌', trigger: 'change' }],
vehicleSubBrandId: [{ required: true, message: '请选择车子品牌', trigger: 'change' }], vehicleSubBrandId: [{ required: true, message: '请选择车子品牌', trigger: 'change' }],
vehicleSeriesId: [{ required: true, message: '请选择车系', trigger: 'change' }], vehicleSeriesId: [{ required: true, message: '请选择车系', trigger: 'change' }],
...@@ -569,7 +573,8 @@ export default { ...@@ -569,7 +573,8 @@ export default {
label: k.attributeList[0].attributeDesc, label: k.attributeList[0].attributeDesc,
name: k.attributeList[0].attributeName, name: k.attributeList[0].attributeName,
type: k.attributeList[0].attributeType, type: k.attributeList[0].attributeType,
isDisabled: this.disabled || this.successDisable isDisabled: this.disabled || this.successDisable,
maxlength: k.attributeList[0].maxLength
}) })
if (k.attributeList[0].attributeType == 'datePicker') { if (k.attributeList[0].attributeType == 'datePicker') {
tempList[idx].dateType = 'date' tempList[idx].dateType = 'date'
...@@ -837,6 +842,24 @@ export default { ...@@ -837,6 +842,24 @@ export default {
}) })
} }
}, },
handleReset() {
this.editForm = {
packageCode: '',
suggestedSellingPrice: '',
actualSalesPrice: '',
servicePeriod: 1,
vehicle: {
vehicleBrandId: '',
vehicleSubBrandId: '',
vehicleSeriesId: '',
vehicleShapeId: '',
licensing: '',
invoicePrice: '',
seatesNum: 5,
billingDate: new Date()
}
}
},
handleCancel() { handleCancel() {
if (this.submit) { if (this.submit) {
return true return true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!