|
|
@ -436,6 +436,8 @@ export default { |
|
|
|
this.temp.insideCode = row.insideCode |
|
|
|
}, |
|
|
|
showAdd() { |
|
|
|
this.getType() |
|
|
|
this.getPathSid() |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['dataForm'].clearValidate() |
|
|
|
}) |
|
|
@ -451,10 +453,10 @@ export default { |
|
|
|
this.temp.isProblemVeh = '0' |
|
|
|
this.temp.purchaseSystemName = window.sessionStorage.getItem('departmentName') |
|
|
|
this.temp.purchaseSystemSid = window.sessionStorage.getItem('departmentSid') |
|
|
|
this.getType() |
|
|
|
this.getPathSid() |
|
|
|
}, |
|
|
|
showEdit(sid) { |
|
|
|
this.getType() |
|
|
|
this.getPathSid() |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['dataForm'].clearValidate() |
|
|
|
}) |
|
|
@ -471,8 +473,6 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
this.getType() |
|
|
|
this.getPathSid() |
|
|
|
}, |
|
|
|
getPathSid() { |
|
|
|
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((res) => { |
|
|
@ -494,6 +494,10 @@ export default { |
|
|
|
brandDown({ useOrg: res.data }).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.carBrand_list = resp.data |
|
|
|
if (this.carBrand_list.length > 0) { |
|
|
|
this.temp.carBrandName = this.carBrand_list[0].barndName |
|
|
|
this.temp.carBrandSid = this.carBrand_list[0].sid |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|