Commit daf1384a by 胡悦

提交

1 parent 8b223115
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
prop: 'vehicleTypeName' prop: 'vehicleTypeName'
}, { }, {
label: '车架号VIN码', label: '车架号VIN码',
prop: 'sn', prop: 'vin',
width: 120 width: 120
}, { }, {
label: '时间', label: '时间',
......
...@@ -17,11 +17,12 @@ ...@@ -17,11 +17,12 @@
type="primary" type="primary"
:size="btn_size" :size="btn_size"
icon="el-icon-refresh" icon="el-icon-refresh"
@click="reset"
>重置</el-button> >重置</el-button>
</slot> </slot>
</search-form> </search-form>
<basic-table <basic-table
ref="roleTable" ref="todoTable"
:tableParams="todoTableParams" :tableParams="todoTableParams"
:getListApi="getListApi" :getListApi="getListApi"
:searchForm="searchForm" :searchForm="searchForm"
...@@ -122,6 +123,10 @@ export default { ...@@ -122,6 +123,10 @@ export default {
} }
}, },
methods: { methods: {
reset() {
this.searchForm = {}
this.$refs.todoTable.refreshTable()
},
btnClick(type, scope) { btnClick(type, scope) {
switch (type) { switch (type) {
case 'todo': case 'todo':
......
...@@ -564,6 +564,6 @@ export default { ...@@ -564,6 +564,6 @@ export default {
<style scope> <style scope>
.vehicle .el-form .el-input__inner { .vehicle .el-form .el-input__inner {
width: 320px; width: 350px;
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -180,7 +180,7 @@ export default { ...@@ -180,7 +180,7 @@ export default {
], ],
vehicleRules: { vehicleRules: {
licensePlate: [{ required: true, message: '请输入车牌', trigger: 'blur' }], licensePlate: [{ required: true, message: '请输入车牌', trigger: 'blur' }],
buyType: [{ required: true, message: '请选择购置方式', trigger: 'change' }], buyType: [{ required: true, message: '请选择购置方式', trigger: 'blur' }],
saleManager: [{ required: true, message: '请输入销售经理', trigger: 'blur' }], saleManager: [{ required: true, message: '请输入销售经理', trigger: 'blur' }],
saleManagerPhone: [{ required: true, message: '请输入销售经理电话', trigger: 'blur' }] saleManagerPhone: [{ required: true, message: '请输入销售经理电话', trigger: 'blur' }]
}, },
...@@ -190,12 +190,14 @@ export default { ...@@ -190,12 +190,14 @@ export default {
'$route.params'(val) { '$route.params'(val) {
console.log(val, 'watch') console.log(val, 'watch')
if (val.vehicleId) { if (val.vehicleId) {
this.vehicleForm = _.cloneDeep(this.vehicleDefalutForm)
if (this.$refs.vehicleSubmitForm) this.$refs.vehicleSubmitForm.$children[0].clearValidate() if (this.$refs.vehicleSubmitForm) this.$refs.vehicleSubmitForm.$children[0].clearValidate()
findVehDoc({ vehicleId: val.vehicleId }).then(res => { findVehDoc({ vehicleId: val.vehicleId }).then(res => {
if (val.url == 'submit') { if (val.url == 'submit') {
this.submitData.forEach(item => { this.submitData.forEach(item => {
this.$set(this.vehicleForm, item, res.data[item]) this.$set(this.vehicleForm, item, res.data[item])
}) })
} else { } else {
this.checkData.forEach(item => { this.checkData.forEach(item => {
this.$set(this.vehicleForm, item, res.data[item]) this.$set(this.vehicleForm, item, res.data[item])
...@@ -215,6 +217,7 @@ export default { ...@@ -215,6 +217,7 @@ export default {
}, },
mounted() { mounted() {
let params = this.$route.params let params = this.$route.params
this.vehicleForm = _.cloneDeep(this.vehicleDefalutForm)
if (this.$refs.vehicleSubmitForm) this.$refs.vehicleSubmitForm.$children[0].clearValidate() if (this.$refs.vehicleSubmitForm) this.$refs.vehicleSubmitForm.$children[0].clearValidate()
findVehDoc({ vehicleId: params.vehicleId }).then(res => { findVehDoc({ vehicleId: params.vehicleId }).then(res => {
if (params.url == 'submit') { if (params.url == 'submit') {
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
label: '关键字:', label: '关键字:',
type: 'input', type: 'input',
inputType: 'text', inputType: 'text',
prop: 'status', prop: 'keyword',
placeholder: '特约店编码|店名称|围栏名称', placeholder: '特约店编码|店名称|围栏名称',
}, },
{ {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!