Commit 78c0edf0 authored by lixy's avatar lixy

bug1389

parent d6e4c43f
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="上牌日期"> <el-form-item label="上牌日期">
<el-date-picker v-model="form.vehicleRegisterDate" type = "datetime" placeholder = "上牌日期" value-format=" yyyy-MM-dd HH:mm" format="yyyy-MM-dd HH:mm"></el-date-picker> <el-date-picker v-model="form.vehicleRegisterDate" type = "datetime" placeholder = "上牌日期" value-format="yyyy-MM-dd hh:mm:ss" format="yyyy-MM-dd hh:mm:ss"></el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -386,6 +386,7 @@ ...@@ -386,6 +386,7 @@
getInsuranceCompany getInsuranceCompany
} from 'api/base_info/constant/' } from 'api/base_info/constant/'
import {getAllVehicleList} from "../../../api/vehicleType"; import {getAllVehicleList} from "../../../api/vehicleType";
import {objDeepCopy} from "../../../utils";
export default { export default {
props: ['title', 'oneRow'], props: ['title', 'oneRow'],
components: { components: {
...@@ -770,9 +771,12 @@ ...@@ -770,9 +771,12 @@
this.isClick = true this.isClick = true
set['form'].validate(valid => { set['form'].validate(valid => {
if (valid) { if (valid) {
let params = objDeepCopy(this.form)
params.registerDate = this.form.vehicleRegisterDate // 上班时间
params.vehicleRegisterDate = undefined
if (this.form.id) { if (this.form.id) {
// 编辑 // 编辑
putObj(this.form).then(response => { putObj(params).then(response => {
if (response.code == 1) { if (response.code == 1) {
this.$notify({ this.$notify({
title: '成功', title: '成功',
...@@ -793,7 +797,7 @@ ...@@ -793,7 +797,7 @@
}) })
} else { } else {
// 添加 // 添加
addObj(this.form).then(response => { addObj(params).then(response => {
if (response.code == 1) { if (response.code == 1) {
this.$notify({ this.$notify({
title: '成功', title: '成功',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment