|
|
@ -1936,7 +1936,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
viewMassDocumentFileVisible: false, |
|
|
viewMassDocumentFileVisible: false, |
|
|
sendMassMailFlag: false, |
|
|
sendMassMailFlag: false, |
|
|
searchProjectDocumentTypeData: { |
|
|
searchProjectDocumentTypeData: { |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: '', |
|
|
projectId: '', |
|
|
projectId: '', |
|
|
projectNo: '', |
|
|
projectNo: '', |
|
|
proofingNo: '*', |
|
|
proofingNo: '*', |
|
|
@ -1977,7 +1977,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
id:'', |
|
|
id:'', |
|
|
bu: '', |
|
|
bu: '', |
|
|
buNo: '', |
|
|
buNo: '', |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: '', |
|
|
projectId: '', |
|
|
projectId: '', |
|
|
projectNo: '', |
|
|
projectNo: '', |
|
|
oriProjectId: '', |
|
|
oriProjectId: '', |
|
|
@ -2038,7 +2038,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
updateBy: this.$store.state.user.name, |
|
|
updateBy: this.$store.state.user.name, |
|
|
}, |
|
|
}, |
|
|
newProofingRecordData:{ |
|
|
newProofingRecordData:{ |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: '', |
|
|
projectId: '', |
|
|
projectId: '', |
|
|
projectNo: '', |
|
|
projectNo: '', |
|
|
projectDesc: '', |
|
|
projectDesc: '', |
|
|
@ -2060,7 +2060,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
updateBy: this.$store.state.user.name, |
|
|
updateBy: this.$store.state.user.name, |
|
|
}, |
|
|
}, |
|
|
searchBusinessData:{ |
|
|
searchBusinessData:{ |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: '', |
|
|
username: '', |
|
|
username: '', |
|
|
roleDesc: '', |
|
|
roleDesc: '', |
|
|
userDisplay: '', |
|
|
userDisplay: '', |
|
|
@ -2069,7 +2069,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
limit: 10, |
|
|
limit: 10, |
|
|
}, |
|
|
}, |
|
|
searchBusinessData1:{ |
|
|
searchBusinessData1:{ |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: '', |
|
|
username: '', |
|
|
username: '', |
|
|
roleDesc: '', |
|
|
roleDesc: '', |
|
|
userDisplay: '', |
|
|
userDisplay: '', |
|
|
@ -2078,7 +2078,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
limit: 10, |
|
|
limit: 10, |
|
|
}, |
|
|
}, |
|
|
searchBusinessData2:{ |
|
|
searchBusinessData2:{ |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: '', |
|
|
username: '', |
|
|
username: '', |
|
|
roleDesc: '', |
|
|
roleDesc: '', |
|
|
userDisplay: '', |
|
|
userDisplay: '', |
|
|
@ -2087,7 +2087,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
limit: 10, |
|
|
limit: 10, |
|
|
}, |
|
|
}, |
|
|
searchBusinessData3:{ |
|
|
searchBusinessData3:{ |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: '', |
|
|
username: '', |
|
|
username: '', |
|
|
roleDesc: '', |
|
|
roleDesc: '', |
|
|
userDisplay: '', |
|
|
userDisplay: '', |
|
|
@ -2096,7 +2096,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
limit: 10, |
|
|
limit: 10, |
|
|
}, |
|
|
}, |
|
|
searchBusinessData4:{ |
|
|
searchBusinessData4:{ |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: '', |
|
|
username: '', |
|
|
username: '', |
|
|
roleDesc: '', |
|
|
roleDesc: '', |
|
|
userDisplay: '', |
|
|
userDisplay: '', |
|
|
@ -2105,7 +2105,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
limit: 10, |
|
|
limit: 10, |
|
|
}, |
|
|
}, |
|
|
searchBusinessData5:{ |
|
|
searchBusinessData5:{ |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: '', |
|
|
username: '', |
|
|
username: '', |
|
|
roleDesc: '', |
|
|
roleDesc: '', |
|
|
userDisplay: '', |
|
|
userDisplay: '', |
|
|
@ -2114,7 +2114,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
limit: 10, |
|
|
limit: 10, |
|
|
}, |
|
|
}, |
|
|
searchBusinessData6:{ |
|
|
searchBusinessData6:{ |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: '', |
|
|
username: '', |
|
|
username: '', |
|
|
roleDesc: '', |
|
|
roleDesc: '', |
|
|
userDisplay: '', |
|
|
userDisplay: '', |
|
|
@ -2147,7 +2147,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
userDisplay: '' |
|
|
userDisplay: '' |
|
|
}, |
|
|
}, |
|
|
copyModalData: { |
|
|
copyModalData: { |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: '', |
|
|
username: this.$store.state.user.name, |
|
|
username: this.$store.state.user.name, |
|
|
projectId: '', |
|
|
projectId: '', |
|
|
projectNo: '', |
|
|
projectNo: '', |
|
|
@ -3894,6 +3894,18 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
resolveCurrentPartSite (site) { |
|
|
|
|
|
if (site !== null && site !== undefined && site !== '') { |
|
|
|
|
|
return site |
|
|
|
|
|
} |
|
|
|
|
|
if (this.proofingCurrentRow && this.proofingCurrentRow.site) { |
|
|
|
|
|
return this.proofingCurrentRow.site |
|
|
|
|
|
} |
|
|
|
|
|
if (this.modalData && this.modalData.site) { |
|
|
|
|
|
return this.modalData.site |
|
|
|
|
|
} |
|
|
|
|
|
return this.$store.state.user.site |
|
|
|
|
|
}, |
|
|
handleColumnResize(newWidth, oldWidth, column, event){ |
|
|
handleColumnResize(newWidth, oldWidth, column, event){ |
|
|
let inData= this.columnList.filter(item => item.columnProp === column.property)[0] |
|
|
let inData= this.columnList.filter(item => item.columnProp === column.property)[0] |
|
|
inData.columnWidth=newWidth |
|
|
inData.columnWidth=newWidth |
|
|
@ -4381,6 +4393,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
proofingClickRow(row){ |
|
|
proofingClickRow(row){ |
|
|
row.proofingId = -1 |
|
|
row.proofingId = -1 |
|
|
this.proofingCurrentRow=JSON.parse(JSON.stringify(row)); |
|
|
this.proofingCurrentRow=JSON.parse(JSON.stringify(row)); |
|
|
|
|
|
this.searchProjectDocumentTypeData.site = this.resolveCurrentPartSite(row.site) |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 当前值发生变化的时候修改 |
|
|
* 当前值发生变化的时候修改 |
|
|
@ -4392,6 +4405,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
// 判断是否是获取焦点的事件 |
|
|
// 判断是否是获取焦点的事件 |
|
|
if (row) { |
|
|
if (row) { |
|
|
this.proofingCurrentRow = JSON.parse(JSON.stringify(row)) |
|
|
this.proofingCurrentRow = JSON.parse(JSON.stringify(row)) |
|
|
|
|
|
this.searchProjectDocumentTypeData.site = this.resolveCurrentPartSite(row.site) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 每页数 |
|
|
// 每页数 |
|
|
@ -5217,7 +5231,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
let inData = {} |
|
|
let inData = {} |
|
|
if (row){ |
|
|
if (row){ |
|
|
inData = { |
|
|
inData = { |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: this.resolveCurrentPartSite(row.site || this.proofingCurrentRow.site), |
|
|
buNo: this.proofingCurrentRow.buNo, |
|
|
buNo: this.proofingCurrentRow.buNo, |
|
|
projectId: row.projectId, |
|
|
projectId: row.projectId, |
|
|
projectPartId: this.proofingCurrentRow.projectPartId, |
|
|
projectPartId: this.proofingCurrentRow.projectPartId, |
|
|
@ -5381,8 +5395,9 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
getProjectOtherDocument () { |
|
|
getProjectOtherDocument () { |
|
|
|
|
|
const currentSite = this.resolveCurrentPartSite(this.proofingCurrentRow.site) |
|
|
let tempData = { |
|
|
let tempData = { |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: currentSite, |
|
|
username: this.$store.state.user.name, |
|
|
username: this.$store.state.user.name, |
|
|
buNo: this.proofingCurrentRow.buNo, |
|
|
buNo: this.proofingCurrentRow.buNo, |
|
|
proofingId: -1, |
|
|
proofingId: -1, |
|
|
@ -5511,15 +5526,16 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
projectDocumentList () { |
|
|
projectDocumentList () { |
|
|
|
|
|
const currentSite = this.resolveCurrentPartSite(this.proofingCurrentRow.site) |
|
|
this.modalData = { |
|
|
this.modalData = { |
|
|
site: this.proofingCurrentRow.site, |
|
|
|
|
|
|
|
|
site: currentSite, |
|
|
buNo: this.proofingCurrentRow.buNo, |
|
|
buNo: this.proofingCurrentRow.buNo, |
|
|
projectId: this.proofingCurrentRow.projectId, |
|
|
projectId: this.proofingCurrentRow.projectId, |
|
|
projectNo: this.proofingCurrentRow.projectNo, |
|
|
projectNo: this.proofingCurrentRow.projectNo, |
|
|
projectDesc: this.proofingCurrentRow.projectDesc, |
|
|
projectDesc: this.proofingCurrentRow.projectDesc, |
|
|
customerNo: this.proofingCurrentRow.customerNo, |
|
|
customerNo: this.proofingCurrentRow.customerNo, |
|
|
customerDesc: this.proofingCurrentRow.customerDesc, |
|
|
customerDesc: this.proofingCurrentRow.customerDesc, |
|
|
bu: this.proofingCurrentRow.site + '_' + this.proofingCurrentRow.buNo, |
|
|
|
|
|
|
|
|
bu: currentSite + '_' + this.proofingCurrentRow.buNo, |
|
|
testPartNo: this.proofingCurrentRow.testPartNo, |
|
|
testPartNo: this.proofingCurrentRow.testPartNo, |
|
|
partDesc: this.proofingCurrentRow.partDesc, |
|
|
partDesc: this.proofingCurrentRow.partDesc, |
|
|
projectCategory: this.proofingCurrentRow.projectCategory, |
|
|
projectCategory: this.proofingCurrentRow.projectCategory, |
|
|
@ -5532,6 +5548,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
limit: 1000, |
|
|
limit: 1000, |
|
|
page: 1 |
|
|
page: 1 |
|
|
} |
|
|
} |
|
|
|
|
|
this.searchProjectDocumentTypeData.site = currentSite |
|
|
this.getProjectOtherDocument() |
|
|
this.getProjectOtherDocument() |
|
|
this.projectDocumentListVisible = true |
|
|
this.projectDocumentListVisible = true |
|
|
}, |
|
|
}, |
|
|
@ -5568,8 +5585,9 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
}, |
|
|
}, |
|
|
closeAddProjectDocumentTypeFlag() { |
|
|
closeAddProjectDocumentTypeFlag() { |
|
|
this.addProjectDocumentTypeFlag = false |
|
|
this.addProjectDocumentTypeFlag = false |
|
|
|
|
|
const currentSite = this.resolveCurrentPartSite(this.modalData.site) |
|
|
this.searchProjectDocumentTypeData = { |
|
|
this.searchProjectDocumentTypeData = { |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: currentSite, |
|
|
projectNo: '', |
|
|
projectNo: '', |
|
|
proofingNo: '*', |
|
|
proofingNo: '*', |
|
|
documentTypeId: '', |
|
|
documentTypeId: '', |
|
|
@ -5588,6 +5606,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
return this.projectAllDocumentList.filter(item => item.uploadedFlag !== 'N') |
|
|
return this.projectAllDocumentList.filter(item => item.uploadedFlag !== 'N') |
|
|
}, |
|
|
}, |
|
|
searchProjectDocumentTypeList() { |
|
|
searchProjectDocumentTypeList() { |
|
|
|
|
|
this.searchProjectDocumentTypeData.site = this.resolveCurrentPartSite(this.modalData.site || this.proofingCurrentRow.site) |
|
|
this.searchProjectDocumentTypeData.proofingNo = '*' |
|
|
this.searchProjectDocumentTypeData.proofingNo = '*' |
|
|
this.searchProjectDocumentTypeData.projectNo = this.modalData.projectNo |
|
|
this.searchProjectDocumentTypeData.projectNo = this.modalData.projectNo |
|
|
getExtraDocumentList(this.searchProjectDocumentTypeData).then(({data}) => { |
|
|
getExtraDocumentList(this.searchProjectDocumentTypeData).then(({data}) => { |
|
|
@ -5605,6 +5624,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
this.documentCopySelection = val; |
|
|
this.documentCopySelection = val; |
|
|
}, |
|
|
}, |
|
|
saveSelectionProjectDocumentType() { |
|
|
saveSelectionProjectDocumentType() { |
|
|
|
|
|
const currentSite = this.resolveCurrentPartSite(this.modalData.site || this.proofingCurrentRow.site) |
|
|
if (this.projectDocumentSelection.length === 0) { |
|
|
if (this.projectDocumentSelection.length === 0) { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: '请选择文档类型', |
|
|
message: '请选择文档类型', |
|
|
@ -5615,7 +5635,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
} |
|
|
} |
|
|
this.projectDocumentSelection.forEach((item) => { |
|
|
this.projectDocumentSelection.forEach((item) => { |
|
|
const inData = { |
|
|
const inData = { |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: currentSite, |
|
|
proofingId: -1, |
|
|
proofingId: -1, |
|
|
proofingNo: '*', |
|
|
proofingNo: '*', |
|
|
projectId: this.proofingCurrentRow.projectId, |
|
|
projectId: this.proofingCurrentRow.projectId, |
|
|
@ -5648,8 +5668,9 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
searchProjectAllDocumentList () { |
|
|
searchProjectAllDocumentList () { |
|
|
|
|
|
const currentSite = this.resolveCurrentPartSite(this.proofingCurrentRow.site) |
|
|
let inData = { |
|
|
let inData = { |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
site: currentSite, |
|
|
username: this.$store.state.user.name, |
|
|
username: this.$store.state.user.name, |
|
|
buNo: this.proofingCurrentRow.buNo, |
|
|
buNo: this.proofingCurrentRow.buNo, |
|
|
proofingId: -999, |
|
|
proofingId: -999, |
|
|
@ -6489,6 +6510,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
saveSelectionCopyDocumentType() { |
|
|
saveSelectionCopyDocumentType() { |
|
|
|
|
|
const currentSite = this.resolveCurrentPartSite(this.copyModalData.site || this.proofingCurrentRow.site) |
|
|
if (this.documentCopySelection.length === 0) { |
|
|
if (this.documentCopySelection.length === 0) { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: '请选择文档', |
|
|
message: '请选择文档', |
|
|
@ -6509,7 +6531,7 @@ import {uploadFileList} from '@/api/base/baseFunction.js'; |
|
|
} |
|
|
} |
|
|
const inDataList = this.documentCopySelection.map(item => ({ |
|
|
const inDataList = this.documentCopySelection.map(item => ({ |
|
|
ossId: item.ossId, |
|
|
ossId: item.ossId, |
|
|
orderRef1: this.$store.state.user.site, |
|
|
|
|
|
|
|
|
orderRef1: currentSite, |
|
|
orderRef2: this.copyModalData.proofingId.toString(), |
|
|
orderRef2: this.copyModalData.proofingId.toString(), |
|
|
orderRef3: this.copyModalData.documentDefinitionListId, |
|
|
orderRef3: this.copyModalData.documentDefinitionListId, |
|
|
orderRef4: this.copyModalData.projectId.toString(), |
|
|
orderRef4: this.copyModalData.projectId.toString(), |
|
|
|