From b966604be43ebb83fa3683a4cdbed331653876fd Mon Sep 17 00:00:00 2001 From: yuejiayang <146344614+YangLei105@users.noreply.github.com> Date: Wed, 11 Dec 2024 14:20:05 +0800 Subject: [PATCH] =?UTF-8?q?2024.12.11=20=E5=AE=A1=E6=89=B9=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/auth/authInquiry.vue | 330 ++++++++++++++++++++++++- 1 file changed, 328 insertions(+), 2 deletions(-) diff --git a/src/views/modules/auth/authInquiry.vue b/src/views/modules/auth/authInquiry.vue index 5fb979d..0fc837d 100644 --- a/src/views/modules/auth/authInquiry.vue +++ b/src/views/modules/auth/authInquiry.vue @@ -107,9 +107,10 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -235,6 +306,12 @@ import {updateAuthHist} from "../../../api/auth/auth"; export default { computed: { + statusDisplay() { + return this.inquiryInfoData.status === 'C' ? '草稿' : (this.inquiryInfoData.status === 'B' ? '已下达' : '已报价') + }, + priorityLevelDisplay() { + return this.inquiryInfoData.priorityLevel === 'A' ? '普通' : (this.inquiryInfoData.priorityLevel === ' B' ? '重要' : '紧急') + } // quotationInformationFlag () { // return (value) => { // if (!this.plmQuotationInformationArr){ @@ -280,6 +357,7 @@ export default { runningWidth:'', }, priceCheckPropertiesList: [], + inquiryPartDataList: [], // 导出 exportData: [], exportName: '询价申请' + this.dayjs().format('YYYYMMDDHHmmss'), @@ -343,7 +421,7 @@ export default { chooseProjectListFlag: false, reviewFlag: false, // 初始页签 - activeTable: 'inquiryAuth', + activeTable: 'inquiryDetail', // ======== 数据对象 ======== modalData: { flag: '', @@ -376,6 +454,33 @@ export default { strActAuthorizeDate: this.dayjs().format("YYYY-MM-DD HH:mm:ss"), actAuthorizeDate: '' }, + inquiryInfoData: { + bu: '', + buDesc: '', + customerNo: '', + customerDesc: '', + rfqNo: '', + requestDate: '', + requester: '', + requesterName: '', + quoter: '', + quoterName: '', + priorityLevel: '', + requiredCompletionDate: '', + customerInquiryNo: '', + partNo: '', + partDesc: '', + inquiryQty: '', + umId: '', + umName: '', + codeNo: '', + codeDesc: '', + remark: '', + createDate: '', + createBy: '', + updateDate: '', + updateBy: '', + }, inquiryPartModalData: { flag: '', title: '', @@ -671,6 +776,188 @@ export default { columnWidth: 120 }, ], + inquiryPartColumnList: [ + { + userId: this.$store.state.user.name, + functionId: 102001, + serialNumber: '102001Table2PartNo', + tableId: '102001Table2', + tableName: '询价产品表', + columnProp: 'partNo', + headerAlign: 'center', + align: 'left', + columnLabel: '产品编码', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120 + }, + { + userId: this.$store.state.user.name, + functionId: 102001, + serialNumber: '102001Table2PartDesc', + tableId: '102001Table2', + tableName: '询价产品表', + columnProp: 'partDesc', + headerAlign: 'center', + align: 'left', + columnLabel: '产品描述', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120 + }, + { + userId: this.$store.state.user.name, + functionId: 102001, + serialNumber: '102001Table2InquiryQty', + tableId: '102001Table2', + tableName: '询价产品表', + columnProp: 'inquiryQty', + headerAlign: 'center', + align: 'right', + columnLabel: '询价数量', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120 + }, + { + userId: this.$store.state.user.name, + functionId: 102001, + serialNumber: '102001Table2Unit', + tableId: '102001Table2', + tableName: '询价产品表', + columnProp: 'umName', + headerAlign: 'center', + align: 'center', + columnLabel: '计量单位', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 80 + }, + { + userId: this.$store.state.user.name, + functionId: 102001, + serialNumber: '102001Table2CodeNo', + tableId: '102001Table2', + tableName: '询价产品表', + columnProp: 'codeNo', + headerAlign: 'center', + align: 'left', + columnLabel: '属性模版', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120 + }, + { + userId: this.$store.state.user.name, + functionId: 102001, + serialNumber: '102001Table2Remark', + tableId: '102001Table2', + tableName: '询价产品表', + columnProp: 'remark', + headerAlign: 'center', + align: 'left', + columnLabel: '备注', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120 + }, + { + userId: this.$store.state.user.name, + functionId: 102001, + serialNumber: '102001Table2CreateDate', + tableId: '102001Table2', + tableName: '询价产品表', + columnProp: 'createDate', + headerAlign: 'center', + align: 'center', + columnLabel: '创建时间', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 160 + }, + { + userId: this.$store.state.user.name, + functionId: 102001, + serialNumber: '102001Table2CreateBy', + tableId: '102001Table2', + tableName: '询价产品表', + columnProp: 'createBy', + headerAlign: 'center', + align: 'left', + columnLabel: '创建人', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 80 + }, + { + userId: this.$store.state.user.name, + functionId: 102001, + serialNumber: '102001Table2UpdateDate', + tableId: '102001Table2', + tableName: '询价产品表', + columnProp: 'updateDate', + headerAlign: 'center', + align: 'center', + columnLabel: '更新时间', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 160 + }, + { + userId: this.$store.state.user.name, + functionId: 102001, + serialNumber: '102001Table2UpdateBy', + tableId: '102001Table2', + tableName: '询价产品表', + columnProp: 'updateBy', + headerAlign: 'center', + align: 'left', + columnLabel: '更新人', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 80 + } + ], // ======== 必填规则 ======== rules: { bu: [ @@ -833,10 +1120,49 @@ export default { this.refreshCurrentTabTable() } }, + searchInquiryApplicationInfo() { + let inData = { + id: this.inquiryCurrentRow.id, + page: 1, + limit: 1 + } + searchInquiryApplicationInfo(inData).then(({data}) => { + if (data.code === 0) { + console.log(data.page.list) + this.inquiryInfoData= data.page.list[0] + } + }) + + console.log(this.inquiryInfoData) + }, /** * 刷新页签的table数据 */ refreshCurrentTabTable() { + if (this.activeTable === 'inquiryDetail') { + this.searchInquiryApplicationInfo() + this.searchInquiryDetailInfo() + } + }, + + // ======== 询价产品相关方法 ======== + searchInquiryDetailInfo() { + let tempData = { + rfqId: this.inquiryCurrentRow.id, + buNo: this.inquiryCurrentRow.buNo, + page: this.pageIndex, + limit: this.pageSize + } + searchInquiryDetailInfo(tempData).then(({data}) => { + if (data.code === 0) { + this.inquiryPartDataList = data.page.list + //判断是否全部存在数据 + if (this.inquiryPartDataList != null && this.inquiryPartDataList.length > 0) { + //设置选中行 + this.$refs.secondaryTable.setCurrentRow(this.inquiryPartDataList[0]) + } + } + }) }, // ======== 列表数据刷新方法 ========