Commit daf1384a by 胡悦

提交

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