Browse Source

Merge remote-tracking branch 'origin/master'

java8
qiezi 8 months ago
parent
commit
8a7fdafdbd
  1. 44
      src/views/modules/eam/com_project_proof_record.vue
  2. 49
      src/views/modules/eam/eamProjectInfoForUploads.vue
  3. 47
      src/views/modules/eam/eamProjectPartInfo.vue
  4. 5
      src/views/modules/quote/detail/quoteDetail.vue

44
src/views/modules/eam/com_project_proof_record.vue

@ -557,8 +557,6 @@
<el-table <el-table
:height="this.height + 300" :height="this.height + 300"
:data="copyDocumentList" :data="copyDocumentList"
ref="copyDocumentTable"
stripe
border border
@selection-change="selectionCopyDocument" @selection-change="selectionCopyDocument"
style="width: 100%;"> style="width: 100%;">
@ -659,6 +657,7 @@
import {EventBus} from "../../../main"; import {EventBus} from "../../../main";
import {getSiteAndBuByUserName} from "../../../api/qc/qc"; import {getSiteAndBuByUserName} from "../../../api/qc/qc";
import {updateColumnSize} from "../../../api/table"; import {updateColumnSize} from "../../../api/table";
import {uploadFileList} from '@/api/base/baseFunction.js';
export default { export default {
props: { props: {
// prop // prop
@ -1397,18 +1396,7 @@
this.documentSelection = val this.documentSelection = val
}, },
selectionCopyDocument(selection) { selectionCopyDocument(selection) {
if (selection.length > 1) {
//
const lastRow = selection[selection.length - 1];
//
this.$refs.copyDocumentTable.clearSelection();
//
this.$refs.copyDocumentTable.toggleRowSelection(lastRow, true);
// data
this.documentCopySelection = [lastRow];
} else {
this.documentCopySelection = selection; this.documentCopySelection = selection;
}
}, },
// //
init(inData,authUpdate) { init(inData,authUpdate) {
@ -2109,7 +2097,6 @@
partDesc: this.searchData.partDesc, partDesc: this.searchData.partDesc,
}; };
this.copyDialog = true this.copyDialog = true
console.log(this.copyModalData)
}, },
searchCopyDocumentFileList() { searchCopyDocumentFileList() {
getCopyDocumentFileList(this.copyModalData).then(({data}) => { getCopyDocumentFileList(this.copyModalData).then(({data}) => {
@ -2127,12 +2114,6 @@
type: 'error' type: 'error'
}) })
return return
} else if (this.documentCopySelection.length > 1) {
this.$message({
message: '只能选择一个文档',
type: 'error'
})
return
} }
if (this.copyModalData.conclusion === '' || this.copyModalData.conclusion === null || if (this.copyModalData.conclusion === '' || this.copyModalData.conclusion === null ||
this.copyModalData.conclusion === undefined) { this.copyModalData.conclusion === undefined) {
@ -2142,17 +2123,22 @@
}) })
return return
} }
const inData = {
site: this.$store.state.user.site,
ossId: this.documentCopySelection[0].ossId,
proofingId: this.copyModalData.proofingId,
projectId: this.copyModalData.projectId,
projectPartId: this.copyModalData.projectPartId,
documentDefinitionListId: this.copyModalData.documentDefinitionListId,
const inDataList = this.documentCopySelection.map(item => ({
ossId: item.ossId,
orderRef1: this.$store.state.user.site,
orderRef2: this.copyModalData.proofingId.toString(),
orderRef3: this.copyModalData.documentDefinitionListId,
orderRef4: this.copyModalData.projectId.toString(),
orderRef5: this.copyModalData.projectPartId.toString(),
documentDesc: this.copyModalData.documentTypeId,
cAdditionalInfo: this.copyModalData.documentType,
conclusion: this.copyModalData.conclusion, conclusion: this.copyModalData.conclusion,
createBy: this.$store.state.user.name, createBy: this.$store.state.user.name,
}
copyDocumentFileToDoc(inData).then(({data}) => {
folder: (this.copyModalData.proofingId === -1)
? 'projectPMPDocumentFiles'
: 'projectPPDocumentFiles'
}));
uploadFileList('/upload/testList',inDataList).then(({data}) => {
// //
if (data && data.code === 0) { if (data && data.code === 0) {
this.$message({ this.$message({

49
src/views/modules/eam/eamProjectInfoForUploads.vue

@ -290,8 +290,6 @@
<el-table <el-table
:height="this.height - 200" :height="this.height - 200"
:data="copyDocumentList" :data="copyDocumentList"
ref="copyDocumentTable"
stripe
border border
@selection-change="selectionCopyDocument" @selection-change="selectionCopyDocument"
style="width: 100%;"> style="width: 100%;">
@ -380,6 +378,7 @@ import {removeUserFavorite, saveUserFavorite, userFavoriteList} from "../../../a
import {getTableDefaultListLanguage, getTableUserListLanguage, updateColumnSize} from "../../../api/table"; import {getTableDefaultListLanguage, getTableUserListLanguage, updateColumnSize} from "../../../api/table";
import {EventBus} from "../../../main"; import {EventBus} from "../../../main";
import UploadFileList1 from "../common/uploadFileList1.vue"; import UploadFileList1 from "../common/uploadFileList1.vue";
import {uploadFileList} from '@/api/base/baseFunction.js';
export default { export default {
components: {UploadFileList1}, components: {UploadFileList1},
@ -2921,12 +2920,6 @@ export default {
type: 'error' type: 'error'
}) })
return return
} else if (this.documentCopySelection.length > 1) {
this.$message({
message: '只能选择一个文档',
type: 'error'
})
return
} }
if (this.copyModalData.proofingNo === '*'){ if (this.copyModalData.proofingNo === '*'){
this.copyModalData.conclusion = 'N/A' this.copyModalData.conclusion = 'N/A'
@ -2939,25 +2932,32 @@ export default {
}) })
return return
} }
const inData = {
site: this.$store.state.user.site,
ossId: this.documentCopySelection[0].ossId,
proofingId: this.copyModalData.proofingId,
projectId: this.copyModalData.projectId,
projectPartId: this.copyModalData.projectPartId,
documentDefinitionListId: this.copyModalData.documentDefinitionListId,
const inDataList = this.documentCopySelection.map(item => ({
ossId: item.ossId,
orderRef1: this.$store.state.user.site,
orderRef2: this.copyModalData.proofingId.toString(),
orderRef3: this.copyModalData.documentDefinitionListId,
orderRef4: this.copyModalData.projectId.toString(),
orderRef5: this.copyModalData.projectPartId.toString(),
documentDesc: this.copyModalData.documentTypeId,
cAdditionalInfo: this.copyModalData.documentType,
conclusion: this.copyModalData.conclusion, conclusion: this.copyModalData.conclusion,
createBy: this.$store.state.user.name, createBy: this.$store.state.user.name,
}
copyDocumentFileToDoc(inData).then(({data}) => {
folder: (this.copyModalData.proofingId === -1)
? 'projectPMPDocumentFiles'
: 'projectPPDocumentFiles'
}));
uploadFileList('/upload/testList',inDataList).then(({data}) => {
// //
if (data && data.code === 0) { if (data && data.code === 0) {
this.$message({ this.$message({
message: '复制成功', message: '复制成功',
type: 'success' type: 'success'
}) })
this.getDataList()
this.closeCopyDocumentFileFlag()
this.getProofDocument()
this.copyDialog = false
//
this.refreshCurrentTabTable()
} else { } else {
this.$message({ this.$message({
message: '复制失败', message: '复制失败',
@ -2973,18 +2973,7 @@ export default {
}, },
selectionCopyDocument(selection) { selectionCopyDocument(selection) {
if (selection.length > 1) {
//
const lastRow = selection[selection.length - 1];
//
this.$refs.copyDocumentTable.clearSelection();
//
this.$refs.copyDocumentTable.toggleRowSelection(lastRow, true);
// data
this.documentCopySelection = [lastRow];
} else {
this.documentCopySelection = selection; this.documentCopySelection = selection;
}
}, },
// //

47
src/views/modules/eam/eamProjectPartInfo.vue

@ -1599,8 +1599,6 @@
<el-table <el-table
:height="this.height + 200" :height="this.height + 200"
:data="copyDocumentList" :data="copyDocumentList"
ref="copyDocumentTable"
stripe
border border
@selection-change="selectionCopyDocument" @selection-change="selectionCopyDocument"
style="width: 100%;"> style="width: 100%;">
@ -1755,6 +1753,7 @@ import {downLoadObjectFile2} from "../../../api/eam/eam_object_list";
import {EventBus} from "../../../main"; import {EventBus} from "../../../main";
import {arrayToTreeByLevelCode} from "../../../utils/arrayToTreeByLevelCode"; import {arrayToTreeByLevelCode} from "../../../utils/arrayToTreeByLevelCode";
import {updateColumnSize} from "../../../api/table"; import {updateColumnSize} from "../../../api/table";
import {uploadFileList} from '@/api/base/baseFunction.js';
/*打样记录組件*/ /*打样记录組件*/
export default { export default {
@ -5337,19 +5336,8 @@ import {updateColumnSize} from "../../../api/table";
selectionProjectDocument(val) { selectionProjectDocument(val) {
this.projectDocumentSelection = val this.projectDocumentSelection = val
}, },
selectionCopyDocument(selection) {
if (selection.length > 1) {
//
const lastRow = selection[selection.length - 1];
//
this.$refs.copyDocumentTable.clearSelection();
//
this.$refs.copyDocumentTable.toggleRowSelection(lastRow, true);
// data
this.documentCopySelection = [lastRow];
} else {
this.documentCopySelection = selection;
}
selectionCopyDocument(val) {
this.documentCopySelection = val;
}, },
saveSelectionProjectDocumentType() { saveSelectionProjectDocumentType() {
if (this.projectDocumentSelection.length === 0) { if (this.projectDocumentSelection.length === 0) {
@ -6228,12 +6216,6 @@ import {updateColumnSize} from "../../../api/table";
type: 'error' type: 'error'
}) })
return return
} else if (this.documentCopySelection.length > 1) {
this.$message({
message: '只能选择一个文档',
type: 'error'
})
return
} }
if (this.copyModalData.proofingNo === '*'){ if (this.copyModalData.proofingNo === '*'){
this.copyModalData.conclusion = 'N/A' this.copyModalData.conclusion = 'N/A'
@ -6246,17 +6228,22 @@ import {updateColumnSize} from "../../../api/table";
}) })
return return
} }
const inData = {
site: this.$store.state.user.site,
ossId: this.documentCopySelection[0].ossId,
proofingId: this.copyModalData.proofingId,
projectId: this.copyModalData.projectId,
projectPartId: this.copyModalData.projectPartId,
documentDefinitionListId: this.copyModalData.documentDefinitionListId,
const inDataList = this.documentCopySelection.map(item => ({
ossId: item.ossId,
orderRef1: this.$store.state.user.site,
orderRef2: this.copyModalData.proofingId.toString(),
orderRef3: this.copyModalData.documentDefinitionListId,
orderRef4: this.copyModalData.projectId.toString(),
orderRef5: this.copyModalData.projectPartId.toString(),
documentDesc: this.copyModalData.documentTypeId,
cAdditionalInfo: this.copyModalData.documentType,
conclusion: this.copyModalData.conclusion, conclusion: this.copyModalData.conclusion,
createBy: this.$store.state.user.name, createBy: this.$store.state.user.name,
}
copyDocumentFileToDoc(inData).then(({data}) => {
folder: (this.copyModalData.proofingId === -1)
? 'projectPMPDocumentFiles'
: 'projectPPDocumentFiles'
}));
uploadFileList('/upload/testList',inDataList).then(({data}) => {
// //
if (data && data.code === 0) { if (data && data.code === 0) {
this.$message({ this.$message({

5
src/views/modules/quote/detail/quoteDetail.vue

@ -548,13 +548,10 @@ export default {
params.quoteGroupDetailId=this.quoteGroupDetail.id; params.quoteGroupDetailId=this.quoteGroupDetail.id;
} }
this.queryLoading = true; this.queryLoading = true;
params.authFlag = this.authFlag;
queryQuoteDetail(params).then(({data})=>{ queryQuoteDetail(params).then(({data})=>{
if (data && data.code === 0){ if (data && data.code === 0){
if (this.authFlag){
this.dataList = data.rows1
} else {
this.dataList = data.rows this.dataList = data.rows
}
}else { }else {
this.$message.warning(data.msg); this.$message.warning(data.msg);
} }

Loading…
Cancel
Save