From 63e5befd221f84774c10f8083e2808b2ec339910 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Mon, 17 Oct 2022 13:40:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E5=8F=B0=E8=B4=A6=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E3=80=81=E5=8E=82=E5=AE=B6=E9=87=87=E8=B4=AD=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=93=81=E7=89=8C=E9=BB=98=E8=AE=A4=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cheliangtaizhang/cheliangtaizhangAdd.vue | 12 ++++++++---- .../cheliangpaichan/cheliangpaichanAdd.vue | 4 ++++ 2 files changed, 12 insertions(+), 4 deletions(-) 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 + } } }) }