From 50826d63a19ac395deba59ef8e15e10e58d31ec5 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Thu, 10 Oct 2024 14:32:25 +0800 Subject: [PATCH] =?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 @@ - + - + - + -
+
- + + - + - + + -
+