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 @@
-
+
-
+
-
+
-