From 454e0a1bb4b95de27c795fbb031ec18b79d688ad Mon Sep 17 00:00:00 2001
From: yuejiayang <146344614+YangLei105@users.noreply.github.com>
Date: Tue, 20 Aug 2024 21:49:21 +0800
Subject: [PATCH] =?UTF-8?q?2024.8.20=20=E8=AF=A2=E4=BB=B7=E4=BC=98?=
=?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/eam/eamProjectPartInfo.vue | 1 -
.../modules/quote/priceCheckProperties.vue | 7 +-
src/views/modules/quote/requestForQuote.vue | 67 +++++++++++++++++--
3 files changed, 65 insertions(+), 10 deletions(-)
diff --git a/src/views/modules/eam/eamProjectPartInfo.vue b/src/views/modules/eam/eamProjectPartInfo.vue
index 34308b8..401bee7 100644
--- a/src/views/modules/eam/eamProjectPartInfo.vue
+++ b/src/views/modules/eam/eamProjectPartInfo.vue
@@ -2652,7 +2652,6 @@ import {EventBus} from "../../../main";
finalPartNo: this.modalData.finalPartNo,
}
getFinalPartDesc(inData).then(({data}) => {
- console.log(data)
if (data && data.code === 0) {
if (data.data !== null) {
this.modalData.finalPartDesc = data.data.finalPartDesc
diff --git a/src/views/modules/quote/priceCheckProperties.vue b/src/views/modules/quote/priceCheckProperties.vue
index 04031b9..23462ea 100644
--- a/src/views/modules/quote/priceCheckProperties.vue
+++ b/src/views/modules/quote/priceCheckProperties.vue
@@ -10,6 +10,7 @@ import {
import TransferTable from "../common/transferTable.vue";
export default {
+ height: 200,
name: "priceCheckProperties",
components: {TransferTable},
props:{
@@ -187,7 +188,7 @@ export default {
mounted() {
this.$nextTick(() => {
/*第二个表格高度的动态调整*/
- this.secondHeight = window.innerHeight -this.height;
+ this.height = window.innerHeight - 210;
})
},
@@ -320,7 +321,7 @@ export default {
@@ -348,7 +349,7 @@ export default {
diff --git a/src/views/modules/quote/requestForQuote.vue b/src/views/modules/quote/requestForQuote.vue
index 0663816..3217ac3 100644
--- a/src/views/modules/quote/requestForQuote.vue
+++ b/src/views/modules/quote/requestForQuote.vue
@@ -97,7 +97,7 @@
+ style="width: 100%;margin-top: 5px">
客户编码
-
+
@@ -219,7 +219,7 @@
+ v-model="modalData.projectNo" @blur="projectNoBlur">
@@ -623,7 +623,7 @@
:quotation-no="quotationCurrentRow.quotationNo">
-
+
@@ -941,6 +941,8 @@ import {getPriceCheckPropertiesList} from "../../../api/quote/priceCheckProperti
import * as XLSX from 'xlsx';
import priceCheckProperties from "./priceCheckProperties.vue";
import quotationUpload from "../quote/quotation_upload.vue";
+import {queryCustomerList} from "../../../api/customer/customer";
+import {queryProjectList} from "../../../api/project/project";
export default {
computed: {
@@ -1147,6 +1149,8 @@ export default {
rejectFlag: '',
rejectStepId: '',
isReject: '',
+ projectManager: '',
+ projectOwner: '',
projectPartIds: []
},
quotationDetailData: {
@@ -2251,7 +2255,7 @@ export default {
mounted() {
this.$nextTick(() => {
/*第二个表格高度的动态调整*/
- this.secondHeight = window.innerHeight -this.height;
+ this.height = window.innerHeight - 210;
})
},
created() {
@@ -3188,6 +3192,57 @@ export default {
// }
},
+ customerNoBlur(){
+ let params = {
+ customerNo: this.modalData.customerNo,
+ createBy: this.$store.state.user.name,
+ }
+ queryCustomerList(params).then(({data}) => {
+ if (data && data.code === 0) {
+ if (data.rows.length === 1){
+ this.modalData.customerDesc = data.rows[0].customerDesc
+ }else {
+ this.modalData.projectNo = ''
+ this.modalData.projectDesc = ''
+ this.modalData.customerDesc = ''
+ }
+ }else {
+ this.$message.warning(data.message)
+ }
+ }).catch((error) => {
+ this.$message.error(error)
+ })
+ },
+ projectNoBlur(){
+ let params = {
+ projectNo: this.modalData.projectNo,
+ customerNo: this.modalData.customerNo,
+ createBy: this.$store.state.user.name,
+ buId: this.modalData.buId,
+ }
+ queryProjectList(params).then(({data})=>{
+ if (data && data.code === 0) {
+ if (data.rows.length === 1) {
+ this.modalData.projectDesc = data.rows[0].projectDesc
+ this.modalData.projectId = data.rows[0].projectId
+ this.modalData.finalCustomerId = data.rows[0].finalCustomerId
+ this.modalData.finalCustomerName = data.rows[0].finalCustomerName
+ this.modalData.projectManagerName = data.rows[0].projectManager.split('-')[1]
+ this.modalData.projectOwnerName = data.rows[0].projectOwner.split('-')[1]
+ this.getProjectPartList()
+ }else {
+ this.modalData.projectDesc = ''
+ this.modalData.finalCustomerId = ''
+ this.modalData.finalCustomerName = ''
+ }
+ }else {
+ this.$message.warning(data.msg)
+ }
+ }).catch((error)=>{
+ this.$message.error(error)
+ })
+ },
+
// ======== 询价单附件的相关方法 ========
/**
* 获取询价单附件列表