From 66c1570abcf294a37e4ac7d2b6c676548c80c48c Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 10 Oct 2024 13:55:51 +0800 Subject: [PATCH 1/2] =?UTF-8?q?2024-10-10=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/part/partInformation.vue | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/views/modules/part/partInformation.vue b/src/views/modules/part/partInformation.vue index f8d0f89..d706e5c 100644 --- a/src/views/modules/part/partInformation.vue +++ b/src/views/modules/part/partInformation.vue @@ -11,6 +11,12 @@ + + + + + + Date: Thu, 10 Oct 2024 14:32:25 +0800 Subject: [PATCH 2/2] =?UTF-8?q?plm=20=E9=A1=B9=E7=9B=AE=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerInformationManagement.vue | 30 ++++--- .../com_projectInfo-add-or-update.vue | 85 ++++++++++++++++--- src/views/modules/tooling/searchToolApply.vue | 10 ++- src/views/modules/tooling/toolingInfo.vue | 12 ++- 4 files changed, 107 insertions(+), 30 deletions(-) diff --git a/src/views/modules/customer/customerInformationManagement.vue b/src/views/modules/customer/customerInformationManagement.vue index 4f7c88d..8ae0487 100644 --- a/src/views/modules/customer/customerInformationManagement.vue +++ b/src/views/modules/customer/customerInformationManagement.vue @@ -357,11 +357,6 @@ - - - - - @@ -379,11 +374,6 @@ v-model="projectInformationModalData.projectSource"> - - - - - + + + + + + + + + + + + + + + + + + + + - - - 直接客户 - - - - - - 终端客户 - - - @@ -68,6 +56,28 @@ + + + 直接客户 + + + + + + + + + + + 终端客户 + + + + + + + + @@ -238,6 +248,10 @@ } from "@/api/project/project.js" import Chooselist from '@/views/modules/common/Chooselist' import DictDataSelect from "../../sys/dict-data-select.vue"; + import {queryCustomer + } from "@/api/customer/customerInformation"; + + export default { model:{ prop:'value', @@ -319,6 +333,13 @@ trigger: ['change','blur'] } ], + customerId: [ + { + required: true, + message: ' ', + trigger: ['change','blur'] + } + ], needDate: [ { required: true, @@ -792,6 +813,46 @@ this.changeAll(row) } }, + getCustomerName(type){ + if(type===1){ + let params = { + site:this.$store.state.user.site, + customerNo:this.dataForm.customerId + } + queryCustomer(params).then(({data})=>{ + if (data && data.code === 0 ) { + if (data.rows && data.rows.length === 1){ + this.dataForm.customerName = data.rows[0].customerDesc + }else { + this.dataForm.customerName = '' + } + }else { + this.$message.warning(data.msg) + } + }).catch((error)=>{ + this.$message.error(error) + }) + } + if(type===2){ + let params = { + site:this.$store.state.user.site, + customerNo:this.dataForm.finalCustomerId + } + queryCustomer(params).then(({data})=>{ + if (data && data.code === 0 ) { + if (data.rows && data.rows.length === 1){ + this.dataForm.finalCustomerName = data.rows[0].customerDesc + }else { + this.dataForm.finalCustomerName = '' + } + }else { + this.$message.warning(data.msg) + } + }).catch((error)=>{ + this.$message.error(error) + }) + } + }, }, } diff --git a/src/views/modules/tooling/searchToolApply.vue b/src/views/modules/tooling/searchToolApply.vue index cccc27e..9438a91 100644 --- a/src/views/modules/tooling/searchToolApply.vue +++ b/src/views/modules/tooling/searchToolApply.vue @@ -264,15 +264,17 @@ - + - + - + -
+
- + + - + - + + -
+