From e50955c979169f65c4b5aa2d9b3bb1d40c6c052c Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Fri, 11 Oct 2024 13:56:05 +0800 Subject: [PATCH] 2024-10-11 --- src/api/base/bu.js | 3 + src/views/modules/base/BuSelect.vue | 57 ++++++ .../modules/proofing/requestForProofing.vue | 42 ++++- .../modules/quotation/requestForQuote.vue | 171 +++--------------- 4 files changed, 126 insertions(+), 147 deletions(-) create mode 100644 src/api/base/bu.js create mode 100644 src/views/modules/base/BuSelect.vue diff --git a/src/api/base/bu.js b/src/api/base/bu.js new file mode 100644 index 0000000..9e89968 --- /dev/null +++ b/src/api/base/bu.js @@ -0,0 +1,3 @@ +import {createAPI} from "../../utils/httpRequest"; + +export const queryBuList = (data) => createAPI('/bu','post',data) diff --git a/src/views/modules/base/BuSelect.vue b/src/views/modules/base/BuSelect.vue new file mode 100644 index 0000000..d77d99f --- /dev/null +++ b/src/views/modules/base/BuSelect.vue @@ -0,0 +1,57 @@ + + + + + diff --git a/src/views/modules/proofing/requestForProofing.vue b/src/views/modules/proofing/requestForProofing.vue index 59cedd0..6c00cc5 100644 --- a/src/views/modules/proofing/requestForProofing.vue +++ b/src/views/modules/proofing/requestForProofing.vue @@ -43,6 +43,9 @@ + + + @@ -1049,7 +1052,7 @@ import Chooselist from '@/views/modules/common/Chooselist' import proofingUploadFile from "./proofing_upload_file" import DictDataSelect from "../sys/dict-data-select.vue"; import { - proofingInformationEditStatus, + proofingInformationEditStatus, queryBuList, searchDelegateAccess, searchDelegateAccessByUser, submitChange } from "../../../api/proofing/proofingInformation"; @@ -1061,9 +1064,11 @@ import ApprovalInformation from "../changeManagement/approvalInformation.vue"; import {queryCustomer} from "../../../api/customer/customerInformation"; import {queryProjectByCustomer} from "../../../api/project/project"; import OssComponents from "../oss/ossComponents.vue"; +import BuSelect from "../base/BuSelect.vue"; export default { components: { + BuSelect, OssComponents, ApprovalInformation, ProjectInfo @@ -1201,6 +1206,7 @@ export default { page: 1, limit: 10, menuId: this.$route.meta.menuId, + buNo:'', }, // 其它 dataListLoading: false, @@ -1354,6 +1360,24 @@ export default { contactList: [], // ======== 列表表头 ======== columnList: [ + { + userId: this.$store.state.user.name, + functionId: 103001, + serialNumber: '103001Table1BuDesc', + tableId: '103001Table1', + tableName: '打样信息表', + columnProp: 'buDesc', + headerAlign: 'center', + align: 'center', + columnLabel: 'BU', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 80 + }, { userId: this.$store.state.user.name, functionId: 103001, @@ -2267,6 +2291,7 @@ export default { site: this.$route.params.site, proofingNo: this.$route.params.docNo, limit: this.pageSize, + createBy: this.$store.state.user.name, page : 1, } this.dataListLoading = true @@ -2293,8 +2318,9 @@ export default { } this.dataListLoading = false }) + }else { + this.getDataList(); } - this.getDataList(); }, activated() { if (this.$route.params.proofingNo){ @@ -2406,14 +2432,20 @@ export default { * 获取数据列表 */ getDataList() { - if (localStorage.getItem('proofingData') != undefined) { + if (localStorage.getItem('proofingData') !== undefined) { let data = JSON.parse(localStorage.getItem('proofingData')); - this.searchData.proofingNo = data.proofingNo + if (data){ + this.searchData.proofingNo = data.proofingNo + } localStorage.removeItem('proofingData'); } this.searchData.limit = this.pageSize this.searchData.page = this.pageIndex - proofingInformationSearch(this.searchData).then(({data}) => { + let params = { + ...this.searchData, + createBy: this.$store.state.user.name, + } + proofingInformationSearch(params).then(({data}) => { if (data.code === 0) { this.dataList = data.page.list this.pageIndex = data.page.currPage diff --git a/src/views/modules/quotation/requestForQuote.vue b/src/views/modules/quotation/requestForQuote.vue index 5ff56cf..f4b0181 100644 --- a/src/views/modules/quotation/requestForQuote.vue +++ b/src/views/modules/quotation/requestForQuote.vue @@ -1,7 +1,10 @@