diff --git a/src/views/modules/project/projectInfo/projectInfo.vue b/src/views/modules/project/projectInfo/projectInfo.vue
index 780327b..020d53c 100644
--- a/src/views/modules/project/projectInfo/projectInfo.vue
+++ b/src/views/modules/project/projectInfo/projectInfo.vue
@@ -1541,6 +1541,7 @@
activated() {
if (this.$route.params.projectId){
this.searchData.projectId = this.$route.params.projectId
+ this.search();
}
this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
},
diff --git a/src/views/modules/proofing/requestForProofing.vue b/src/views/modules/proofing/requestForProofing.vue
index a81044e..be80772 100644
--- a/src/views/modules/proofing/requestForProofing.vue
+++ b/src/views/modules/proofing/requestForProofing.vue
@@ -50,12 +50,7 @@
-
-
-
-
-
-
+
@@ -171,11 +166,7 @@
-
-
-
-
-
+
@@ -195,7 +186,7 @@
- 项目编码
+ 项目编码
@@ -409,6 +400,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
@@ -832,15 +853,18 @@
saveCustomerResponse, // 保存客户回复
getProjectPartList, // 获取产品列表
getProjectInformation, // 获取项目信息
- getCustomerInformation // 获取客户信息
+ getCustomerInformation, // 获取客户信息
} from '@/api/proofing/proofingInformation.js'
import {
- downLoadQuotationFile // 文件下载
+ downLoadQuotationFile, // 文件下载
+ searchProjectInfoList,
} from '@/api/quotation/quotationInformation.js'
import Chooselist from '@/views/modules/common/Chooselist'
import proofingUploadFile from "./proofing_upload_file"
+ import DictDataSelect from "../sys/dict-data-select.vue";
export default {
components: {
+ DictDataSelect,
Chooselist,
proofingUploadFile
},
@@ -1671,7 +1695,17 @@
enterResultModalFlag: false,
submitResultModalFlag: false,
customerResponseModalFlag: false,
- projectPartModelFlag: false
+ // 选择项目弹框开关
+ chooseProjectListFlag: false,
+ //项目搜索条件
+ searchProjectData:{
+ site:this.$store.state.user.site,
+ projectId:undefined,
+ projectName:undefined,
+ customerId:undefined,
+ },
+ // 项目集合
+ projectList:[],
}
},
mounted () {
@@ -1710,8 +1744,10 @@
* @param row
*/
projectPartClickRow (row) {
- this.$refs.projectPartTable.toggleRowSelection(row);
- this.confirmProjectPart();
+ if(this.modalData.flag === '1'){
+ this.$refs.projectPartTable.toggleRowSelection(row);
+ this.confirmProjectPart();
+ }
},
/**
* 多选
@@ -2614,8 +2650,14 @@
getBaseData (val) {
if (this.tagNo === 102) {
if(this.tagNo1 === 1) {
+ if (val.Customer_no === this.modalData.customerNo) {
+ return
+ }
this.modalData.customerNo = val.Customer_no
this.modalData.customerDesc = val.Customer_desc
+ this.modalData.projectId = undefined
+ this.modalData.projectName = undefined
+ this.projectPartList = []
}
}
if (this.tagNo === 103) {
@@ -2715,6 +2757,35 @@
return false
}
},
+ projectClickRow(row){
+ this.modalData.projectId = row.projectId
+ this.modalData.projectName = row.projectName
+ this.getProjectPartList()
+ this.chooseProjectListFlag = false
+ },
+ // 查询searchProjectInfoList
+ searchProjectInfoList(){
+ this.projectList = [];
+ this.searchProjectData.customerId = this.modalData.customerNo
+ searchProjectInfoList(this.searchProjectData).then(({data})=>{
+ if (data && data.code === 0) {
+ this.projectList = data.rows
+ } else {
+ this.projectList = []
+ }
+ }).catch((error)=>{
+ this.$message.error('查询项目信息失败')
+ })
+ },
+ closeProjectInfoDialog(){
+ this.$refs.closeProjectInfoForm.resetFields();
+ this.searchProjectData={
+ site:this.$store.state.user.site,
+ projectId:undefined,
+ projectName:undefined,
+ customerId:undefined,
+ }
+ },
}
}
diff --git a/src/views/modules/quotation/requestForQuote.vue b/src/views/modules/quotation/requestForQuote.vue
index a49801f..596de72 100644
--- a/src/views/modules/quotation/requestForQuote.vue
+++ b/src/views/modules/quotation/requestForQuote.vue
@@ -52,16 +52,11 @@
-
+
-
-
-
-
-
-
+
@@ -199,11 +194,7 @@
-
-
-
-
-
+
@@ -851,8 +842,10 @@
} from '@/api/quotation/quotationInformation.js'
import Chooselist from '@/views/modules/common/Chooselist'
import quotationUploadFile from "./quotation_upload_file"
+ import DictDataSelect from "../sys/dict-data-select.vue";
export default {
components: {
+ DictDataSelect,
Chooselist,
quotationUploadFile
},
diff --git a/src/views/modules/test/requestForTest.vue b/src/views/modules/test/requestForTest.vue
index c0dec11..c08c695 100644
--- a/src/views/modules/test/requestForTest.vue
+++ b/src/views/modules/test/requestForTest.vue
@@ -50,12 +50,7 @@
-
-
-
-
-
-
+
@@ -171,11 +166,7 @@
-
-
-
-
-
+
@@ -195,7 +186,7 @@
- 项目编码
+ 项目编码
@@ -409,6 +400,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
@@ -833,12 +854,15 @@
getCustomerInformation // 获取客户信息
} from '@/api/test/testInformation.js'
import {
- downLoadQuotationFile // 文件下载
+ downLoadQuotationFile, // 文件下载
+ searchProjectInfoList
} from '@/api/quotation/quotationInformation.js'
import Chooselist from '@/views/modules/common/Chooselist'
import testUploadFile from "./test_upload_file"
+ import DictDataSelect from "../sys/dict-data-select.vue";
export default {
components: {
+ DictDataSelect,
Chooselist,
testUploadFile
},
@@ -1669,7 +1693,18 @@
enterResultModalFlag: false,
submitResultModalFlag: false,
customerResponseModalFlag: false,
- projectPartModelFlag: false
+ projectPartModelFlag: false,
+ // 选择项目弹框开关
+ chooseProjectListFlag: false,
+ //项目搜索条件
+ searchProjectData:{
+ site:this.$store.state.user.site,
+ projectId:undefined,
+ projectName:undefined,
+ customerId:undefined,
+ },
+ // 项目集合
+ projectList:[],
}
},
mounted () {
@@ -1708,8 +1743,10 @@
* @param row
*/
projectPartClickRow (row) {
- this.$refs.projectPartTable.toggleRowSelection(row);
- this.confirmProjectPart();
+ if (this.modalData.flag === '1'){
+ this.$refs.projectPartTable.toggleRowSelection(row);
+ this.confirmProjectPart();
+ }
},
/**
* 多选
@@ -1948,10 +1985,6 @@
* 确认多选项目物料
*/
confirmProjectPart () {
- if(this.projectPartListSelections.length === 0){
- this.$message.warning('请勾选项目物料!')
- return
- }
this.modalData.testPartNo = ''
this.modalData.partName = ''
for (let i = 0; i < this.projectPartListSelections.length; i++) {
@@ -2419,8 +2452,14 @@
getBaseData (val) {
if (this.tagNo === 102) {
if(this.tagNo1 === 1) {
+ if (val.Customer_no === this.modalData.customerNo) {
+ return
+ }
this.modalData.customerNo = val.Customer_no
this.modalData.customerDesc = val.Customer_desc
+ this.modalData.projectId = ''
+ this.modalData.projectName = ''
+ this.projectPartList = [];
}
}
if (this.tagNo === 103) {
@@ -2523,6 +2562,35 @@
return false
}
},
+ projectClickRow(row){
+ this.modalData.projectId = row.projectId
+ this.modalData.projectName = row.projectName
+ this.getProjectPartList()
+ this.chooseProjectListFlag = false
+ },
+ // 查询searchProjectInfoList
+ searchProjectInfoList(){
+ this.projectList = [];
+ this.searchProjectData.customerId = this.modalData.customerNo
+ searchProjectInfoList(this.searchProjectData).then(({data})=>{
+ if (data && data.code === 0) {
+ this.projectList = data.rows
+ } else {
+ this.projectList = []
+ }
+ }).catch((error)=>{
+ this.$message.error('查询项目信息失败')
+ })
+ },
+ closeProjectInfoDialog(){
+ this.$refs.closeProjectInfoForm.resetFields();
+ this.searchProjectData={
+ site:this.$store.state.user.site,
+ projectId:undefined,
+ projectName:undefined,
+ customerId:undefined,
+ }
+ },
}
}