diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhangAdd.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhangAdd.vue index 1e0cb99abe..6676f2fbf9 100644 --- a/anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhangAdd.vue +++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhangAdd.vue @@ -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 + } } }) } diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue index 3e6c84cc4d..81550a229d 100644 --- a/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue +++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue @@ -266,6 +266,10 @@ export default { brandDown({ useOrg: resp.data }).then((res) => { if (res.success) { this.carBrand_list = res.data + if (this.carBrand_list.length > 0) { + this.formobj.carBrandName = this.carBrand_list[0].brandName + this.formobj.carBrandSid = this.carBrand_list[0].sid + } } }) }