Browse Source

2024.8.7 ①产品文档收集-项目信息进一步优化

②代办事宜功能第一版

------------------------
进一步优化
java8
yuejiayang 2 years ago
parent
commit
1e27f1c5da
  1. 10
      package-lock.json
  2. 4
      src/api/eam/eamProject.js
  3. 25
      src/views/modules/common/uploadFileList1.vue
  4. 121
      src/views/modules/eam/com_project_proof_record.vue
  5. 35
      src/views/modules/eam/dashBoard.vue
  6. 2716
      src/views/modules/eam/eamProjectInfo.vue
  7. 721
      src/views/modules/eam/eamProjectInfoForConfirm.vue
  8. 535
      src/views/modules/eam/eamProjectInfoForUploads.vue
  9. 3850
      src/views/modules/eam/eamProjectPartInfo.vue

10
package-lock.json

@ -597,7 +597,7 @@
},
"async-validator": {
"version": "1.8.5",
"resolved": "https://registry.npmmirror.com/async-validator/-/async-validator-1.8.5.tgz",
"resolved": "https://registry.npmjs.org/async-validator/-/async-validator-1.8.5.tgz",
"integrity": "sha512-tXBM+1m056MAX0E8TL2iCjg8WvSyXu0Zc8LNtYqrVeyoL3+esHRZ4SieE9fKQyyU09uONjnMEjrNBMqT0mbvmA==",
"requires": {
"babel-runtime": "6.x"
@ -3603,7 +3603,7 @@
},
"deepmerge": {
"version": "1.5.2",
"resolved": "https://registry.npmmirror.com/deepmerge/-/deepmerge-1.5.2.tgz",
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.5.2.tgz",
"integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ=="
},
"default-compare": {
@ -10107,7 +10107,7 @@
},
"moment": {
"version": "2.30.1",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",
"resolved": "https://mirrors.cloud.tencent.com/npm/moment/-/moment-2.30.1.tgz",
"integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how=="
},
"move-concurrently": {
@ -16722,7 +16722,7 @@
},
"resize-observer-polyfill": {
"version": "1.5.1",
"resolved": "https://registry.npmmirror.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz",
"resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz",
"integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg=="
},
"resolve": {
@ -18397,7 +18397,7 @@
},
"throttle-debounce": {
"version": "1.1.0",
"resolved": "https://registry.npmmirror.com/throttle-debounce/-/throttle-debounce-1.1.0.tgz",
"resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-1.1.0.tgz",
"integrity": "sha512-XH8UiPCQcWNuk2LYePibW/4qL97+ZQ1AN3FNXwZRBNPPowo/NRU5fAlDCSNBJIYCKbioZfuYtMhG4quqoJhVzg=="
},
"through": {

4
src/api/eam/eamProject.js

@ -6,6 +6,10 @@ export const eamProjectInfoEdit= data => createAPI(`/pms/eamProject/eamProjectIn
export const eamProjectInfoDelete= data => createAPI(`/pms/eamProject/eamProjectInfoDelete`,'post',data)
export const saveFormalPartNo= data => createAPI(`/pms/eamProject/saveFormalPartNo`,'post',data)
export const getTestPartNo= data => createAPI(`/pms/eamProject/getTestPartNo`,'post',data)
export const eamProjectPartSearch= data => createAPI(`/pms/eamProject/eamProjectPartSearch`,'post',data)
export const eamProjectPartInfoSave= data => createAPI(`/pms/eamProject/eamProjectPartInfoSave`,'post',data)
export const eamProjectPartInfoEdit= data => createAPI(`/pms/eamProject/eamProjectPartInfoEdit`,'post',data)
export const saveNewProjectPart= data => createAPI(`/pms/eamProject/saveNewProjectPart`,'post',data)
export const searchConfirmatorList= data => createAPI(`/pms/eamProject/searchConfirmatorList`,'post',data)
export const saveProductionValidationDocumentConfirmator= data => createAPI(`/pms/eamProject/saveProductionValidationDocumentConfirmator`,'post',data)
export const saveProductionValidationDocument= data => createAPI(`/pms/eamProject/saveProductionValidationDocument`,'post',data)

25
src/views/modules/common/uploadFileList1.vue

@ -1,6 +1,7 @@
<script>
import {uploadFileList} from '@/api/base/baseFunction.js';
import {deleteDocumentType,getProofDocument} from "@/api/eam/eamProofing.js";
import {EventBus} from "../../../main";
export default {
name: "uploadFileList",
props: {
@ -48,10 +49,18 @@ export default {
type: [String,Number],
default: ''
},
proofingNo: {
type: [String,Number],
default: ''
},
projectId: {
type: [String,Number],
default: ''
},
projectNo: {
type: [String,Number],
default: ''
},
projectDesc: {
type: [String,Number],
default: ''
@ -64,6 +73,10 @@ export default {
type: [String,Number],
default: ''
},
projectPartId:{
type: [String,Number],
default: ''
},
testPartNo:{
type: [String,Number],
default: ''
@ -224,10 +237,12 @@ export default {
data.append("orderRef2", this.proofingId);
data.append("orderRef3", this.id);
data.append("orderRef4", this.projectId);
data.append("orderRef5", this.projectPartId);
data.append("documentDesc", this.no);
data.append("cAdditionalInfo", this.noType);
data.append("conclusion", this.conclusion);
data.append("createBy", this.$store.state.user.name);
data.append("updateBy", this.$store.state.user.name);
data.append("folder", this.folder);
uploadFileList(this.path, data).then(({data}) => {
if (data && data.code === 0) {
@ -236,10 +251,14 @@ export default {
this.fileList = [];
this.fileName = '';
this.noType = '';
EventBus.$emit('updateAgencyMatterForUploads');
EventBus.$emit('updateProjectPartInfo');
// this.$emit('get-document-list');
// this.$emit('get-proof-document');
} else {
this.$message.warning(data.msg);
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
this.fileList = [];
this.fileName = '';
this.noType = '';
@ -357,7 +376,7 @@ export default {
<el-dialog :title="title" v-drag @close="closeFileUpdate" :visible="uploadDialog" width="952px" append-to-body :close-on-click-modal="false">
<el-form :inline="true" label-position="top" label-width="80px" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="项目编码">
<el-input v-model="projectId" readonly style="width: 113px;" class="red-text"></el-input>
<el-input v-model="projectNo" readonly style="width: 113px;" class="red-text"></el-input>
</el-form-item>
<el-form-item label="项目名称">
<el-input v-model="projectDesc" readonly style="width: 173px;" class="red-text"></el-input>
@ -386,7 +405,7 @@ export default {
<el-input v-model="this.$props.site + '-' + this.$props.bu" readonly style="width: 110px;" class="red-text"></el-input>
</el-form-item>
<el-form-item label="打样单号">
<el-input v-model="proofingId" readonly style="width: 170px;" class="red-text"></el-input>
<el-input v-model="proofingNo" readonly style="width: 170px;" class="red-text"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" label-width="80px" :model="this.conclusion" :rules="rules" style="margin-left: 7px;margin-top: -5px;">

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

@ -68,7 +68,7 @@
label="操作">
<template slot-scope="scope">
<a type="primary" size="small" v-if="scope.row.documentDefinitionListId !== '-1'" @click="uploadFile(scope.row)">上传文件</a>
<a type="text" size="small" v-if="scope.row.documentDefinitionListId !== '-1'" @click="warnSendMail(scope.row)">提醒</a>
<a type="text" size="small" v-if="scope.row.documentDefinitionListId !== '-1' && scope.row.documentId === null" @click="warnSendMail(scope.row)">提醒</a>
<a type="text" size="small" v-if="scope.row.documentId !== null" @click="proofDocumentDelete(scope.row)">删除</a>
</template>
</el-table-column>
@ -102,8 +102,8 @@
<el-dialog title="新增打样" :visible.sync="visible" v-drag width="519px" style="margin-top: 20vh" :close-on-click-modal="false">
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="项目编码" prop="projectId" >
<el-input v-model="modalData.projectId" readonly style="width: 110px;" class="red-text"></el-input>
<el-form-item label="项目编码" prop="projectNo" >
<el-input v-model="modalData.projectNo" readonly style="width: 110px;" class="red-text"></el-input>
</el-form-item>
<el-form-item label="项目名称" prop="projectDesc" >
<el-input v-model="modalData.projectDesc" readonly style="width: 234px;" class="red-text"></el-input>
@ -194,8 +194,8 @@
<el-dialog title="文档清单定义" @close="documentListVisibleFalse" :visible.sync="documentListVisible" width="561px" style="margin-top: 10vh" :close-on-click-modal="false">
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="项目编码" prop="projectId" class="red-label">
<el-input v-model="modalData.projectId" readonly style="width: 110px;" class="red-text"></el-input>
<el-form-item label="项目编码" prop="projectNo" class="red-label">
<el-input v-model="modalData.projectNo" readonly style="width: 110px;" class="red-text"></el-input>
</el-form-item>
<el-form-item label="项目名称" prop="projectDesc" >
<el-input v-model="modalData.projectDesc" readonly style="width: 170px;" class="red-text"></el-input>
@ -254,7 +254,7 @@
width="100"
label="操作">
<template slot-scope="scope">
<a v-if="!authDelete" type="text" size="small" @click="deleteDocumentType(scope.row)">删除</a>
<a type="text" size="small" @click="deleteDocumentType(scope.row)">删除</a>
</template>
</el-table-column>
</el-table>
@ -265,8 +265,8 @@
<el-dialog title="打样记录编辑" :visible.sync="proofingRecordVisible" v-drag width="519px" style="margin-top: 20vh" :close-on-click-modal="false">
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="项目编码" prop="projectId" >
<el-input v-model="modalData.projectId" readonly style="width: 110px;" class="red-text"></el-input>
<el-form-item label="项目编码" prop="projectNo" >
<el-input v-model="modalData.projectNo" readonly style="width: 110px;" class="red-text"></el-input>
</el-form-item>
<el-form-item label="项目名称" prop="projectDesc" >
<el-input v-model="modalData.projectDesc" readonly style="width: 234px;" class="red-text"></el-input>
@ -406,10 +406,10 @@
</el-footer>
</el-dialog>
<upload-file-list-1 folder="proofDocument" title="打样文档附件上传" :file-list.sync="fileList" :label="'文档类型ID:'" :no="documentClickRow.documentTypeId" :no-type="documentClickRow.documentType"
:proofing-id="proofDocumenCurrentRow.proofingNo" :bu="proofDocumenCurrentRow.buNo" :site="proofDocumenCurrentRow.site" :upload-dialog.sync="uploadDialog" :no-desc="documentClickRow.documentDesc"
:project-id="proofDocumenCurrentRow.projectId" :project-desc="proofDocumenCurrentRow.projectDesc" :document-type="proofDocumenCurrentRow.documentType" :id="documentClickRow.id"
:customer-no="proofDocumenCurrentRow.customerNo" :customer-desc="proofDocumenCurrentRow.customerDesc" :test-part-no="proofDocumenCurrentRow.testPartNo"
<upload-file-list-1 folder="projectPPDocumentFiles" title="打样文档附件上传" :file-list.sync="fileList" :label="'文档类型ID:'" :no="documentClickRow.documentTypeId" :no-type="documentClickRow.documentType"
:proofing-id="proofDocumenCurrentRow.proofingId" :proofing-no="proofDocumenCurrentRow.proofingNo" :bu="proofDocumenCurrentRow.buNo" :site="proofDocumenCurrentRow.site" :upload-dialog.sync="uploadDialog" :no-desc="documentClickRow.documentDesc"
:project-id="proofDocumenCurrentRow.projectId" :project-no="proofDocumenCurrentRow.projectNo" :project-desc="proofDocumenCurrentRow.projectDesc" :document-type="proofDocumenCurrentRow.documentType" :id="documentClickRow.id"
:customer-no="proofDocumenCurrentRow.customerNo" :customer-desc="proofDocumenCurrentRow.customerDesc" :test-part-no="proofDocumenCurrentRow.testPartNo" :project-part-id="proofDocumenCurrentRow.projectPartId"
:part-desc="proofDocumenCurrentRow.partDesc" :column-file-content-array="columnFileContentArray" :proof-document-list="proofDocumentList" :document-definition-list-id="documentClickRow.documentDefinitionListId"
path="/upload/test" :is-editable="isEditable"></upload-file-list-1>
@ -461,7 +461,7 @@
site: this.$store.state.user.site,
username: this.$store.state.user.name,
projectId: '',
testPartNo: '',
projectPartId: '',
page: 1,
limit: 1000
},
@ -495,6 +495,8 @@
site: this.$store.state.user.site,
username: this.$store.state.user.name,
projectId: '',
projectNo: '',
proofingId: '',
proofingNo: '',
documentTypeId: '',
page: 1,
@ -517,9 +519,11 @@
activeName: 'proofDocument',
modalData: {
projectId: '',
projectNo: '',
projectDesc: '',
customerNo: '',
customerDesc: '',
projectPartId: '',
testPartNo: '',
partDesc: '',
bu: '',
@ -527,6 +531,7 @@
buDesc: '',
cProjectTypeDb: '',
projectPhase: '',
proofingId: '',
proofingNo: '',
planStartDate: '',
requiredDeliveryDate: '',
@ -537,12 +542,17 @@
},
documentListData: {
projectId: '',
projectNo: '',
projectDesc: '',
customerNo: '',
customerDesc: '',
projectPartId: '',
testPartNo: '',
partDesc: '',
bu: '',
buNo: '',
buDesc: '',
proofingId: '',
proofingNo: '',
cProjectTypeDb: '',
documentTypeId: '',
@ -552,6 +562,8 @@
searchDocumentTypeData: {
site: this.$store.state.user.site,
projectId: '',
projectNo: '',
proofingId: '',
proofingNo: '',
documentTypeId: '',
documentType: '',
@ -564,6 +576,7 @@
documentTypeData: {
// bu: this.userBuList[0].buNo,
site: this.$store.state.user.site,
proofingId: '',
proofingNo: '',
documentTypeId: '',
documentType: '',
@ -1089,16 +1102,16 @@
proofingInformationSave(this.modalData).then(({data}) => {
//
if (data && data.code === 0) {
this.newProofingDocument(data.proofingId)
this.sendMailHandle(this.modalData)
this.$message({
message: '新增成功',
type: 'success'
})
this.newProofingDocument()
this.visible = false
//
this.getProofingInformation()
this.refreshCurrentTabTable()
this.sendMailHandle(this.modalData)
} else {
this.$message({
message: '新增失败:数据库已存在该打样单号',
@ -1111,7 +1124,8 @@
let tempData = {
site: this.$store.state.user.site,
username: this.$store.state.user.name,
projectId: this.modalData.projectId,
projectId: this.searchData.projectId,
projectPartId: this.searchData.projectPartId,
page: 1,
limit: 1000
}
@ -1136,11 +1150,14 @@
site: this.$store.state.user.site,
username: this.$store.state.user.name,
buNo: this.proofDocumenCurrentRow.buNo,
proofingId: this.proofDocumenCurrentRow.proofingNo,
proofingId: this.proofDocumenCurrentRow.proofingId,
proofingNo: this.proofDocumenCurrentRow.proofingNo,
projectId: this.proofDocumenCurrentRow.projectId,
projectNo: this.proofDocumenCurrentRow.projectNo,
projectDesc: this.proofDocumenCurrentRow.projectDesc,
customerId: this.proofDocumenCurrentRow.customerNo,
customerDesc: this.proofDocumenCurrentRow.customerDesc,
projectPartId: this.proofDocumenCurrentRow.projectPartId,
testPartNo: this.proofDocumenCurrentRow.testPartNo,
partDesc: this.proofDocumenCurrentRow.partDesc,
page: 1,
@ -1197,21 +1214,27 @@
this.proofDocumentListDefinition = []
},
addDocumentList(row) {
this.proofDocumenCurrentRow = row
this.getProofDocument()
this.documentListVisible = true
row.bu = row.site + "-" + row.buNo
this.modalData = {
projectId: row.projectId,
projectNo: row.projectNo,
projectDesc: row.projectDesc,
customerNo: row.customerNo,
customerDesc: row.customerDesc,
projectPartId: row.projectPartId,
testPartNo: row.testPartNo,
partDesc: row.partDesc,
bu: row.bu,
cProjectTypeDb: row.cProjectTypeDb,
proofingId: row.proofingId,
proofingNo: row.proofingNo,
page: 1,
limit: 1000
}
this.documentTypeData.proofingId = row.proofingId
this.documentTypeData.proofingNo = row.proofingNo
// proofDocumentList
},
@ -1219,9 +1242,11 @@
this.proofingRecordVisible = true
this.modalData = {
projectId: row.projectId,
projectNo: row.projectNo,
projectDesc: row.projectDesc,
customerNo: row.customerNo,
customerDesc: row.customerDesc,
projectPartId: row.projectPartId,
testPartNo: row.testPartNo,
partDesc: row.partDesc,
bu: row.site + "-" + row.buNo,
@ -1229,6 +1254,7 @@
site: row.site,
cProjectTypeDb: row.cProjectTypeDb,
projectPhase: row.projectPhase,
proofingId: row.proofingId,
proofingNo: row.proofingNo,
planStartDate: row.planStartDate,
requiredDeliveryDate: row.requiredDeliveryDate,
@ -1294,12 +1320,17 @@
projectCategory: this.modalData.projectCategory,
projectPhase: this.modalData.projectPhase,
projectId: this.modalData.projectId,
projectNo: this.modalData.projectNo,
projectPartId: this.modalData.projectPartId,
testPartNo: this.modalData.testPartNo,
proofingId: this.modalData.proofingId,
proofingNo: this.modalData.proofingNo,
planStartDate: this.modalData.planStartDate,
requiredDeliveryDate: moment(this.modalData.requiredDeliveryDate).utcOffset('+8').format('YYYY-MM-DD'),
actualityDeliveryDate: this.modalData.actualityDeliveryDate,
proofingNumber: this.modalData.proofingNumber,
proofDocumentDataList: this.proofDocumentList,
createBy: this.$store.state.user.name,
updateBy: this.$store.state.user.name,
}
editProofingRecord(inData).then(({data}) => {
@ -1332,6 +1363,10 @@
cProjectTypeDb: row.cProjectTypeDb,
projectCategory: row.projectCategory,
projectId: row.projectId,
projectNo: row.projectNo,
projectPartId: row.projectPartId,
testPartNo: row.testPartNo,
proofingId: row.proofingId,
proofingNo: row.proofingNo,
proofDocumentDataList: this.proofDocumentList,
createBy: row.createBy,
@ -1359,7 +1394,9 @@
}
//
else {
this.$message.warning(data.msg)
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
}).catch(() => {
@ -1375,13 +1412,16 @@
site: row.site,
username: this.$store.state.user.name,
buNo: row.buNo,
proofingId: row.proofingId,
proofingNo: row.proofingNo,
projectId: row.projectId,
projectNo: row.projectNo,
projectDesc: row.projectDesc,
customerId: row.customerNo,
customerDesc: row.customerDesc,
testPartNo: row.testPartNo,
partDesc: row.partDesc,
projectPartId: this.proofDocumenCurrentRow.projectPartId,
testPartNo: this.proofDocumenCurrentRow.testPartNo,
partDesc: this.proofDocumenCurrentRow.partDesc,
id: row.id,
fileName: row.fileName,
uploadedFlag: row.uploadedFlag,
@ -1413,7 +1453,9 @@
}
//
else {
this.$message.warning(data.msg)
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
}).catch(() => {
@ -1425,7 +1467,7 @@
}
},
searchDocumentTypeList() {
this.searchDocumentTypeData.proofingNo = this.modalData.proofingNo
this.searchDocumentTypeData.proofingId = this.modalData.proofingId
this.searchDocumentTypeData.projectId = this.modalData.projectId
getExtraDocumentList(this.searchDocumentTypeData).then(({data}) => {
if (data && data.code === 0) {
@ -1447,8 +1489,12 @@
this.documentSelection.forEach((item) => {
const inData = {
site: this.$store.state.user.site,
proofingId: this.modalData.proofingId,
proofingNo: this.modalData.proofingNo,
projectId: this.modalData.projectId,
projectNo: this.modalData.projectNo,
projectPartId: this.modalData.projectPartId,
testPartNo: this.modalData.testPartNo,
documentTypeId: item.documentTypeId,
documentType: item.documentType,
responsibleDepartment: item.responsibleDepartment,
@ -1481,6 +1527,10 @@
this.searchDocumentTypeData = {
site: this.$store.state.user.site,
projectId: '',
projectNo: '',
projectPartId: '',
testPartNo: '',
proofingId: '',
proofingNo: '',
documentTypeId: '',
documentType: '',
@ -1491,7 +1541,9 @@
}
this.extraDocumentList = []
},
newProofingDocument() {
newProofingDocument(proofingId) {
console.log(proofingId)
this.modalData.proofingId = proofingId
proofingDocumentSave(this.modalData).then(({data}) => {
//
if (data && data.code === 0) {
@ -1511,6 +1563,8 @@
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
row.testPartNo = this.proofDocumenCurrentRow.testPartNo
row.projectPartId = this.proofDocumenCurrentRow.projectPartId
deleteDocumentType(row).then(({data}) => {
if (data && data.code === 0) {
this.$message({
@ -1520,7 +1574,9 @@
//
this.getProofDocument()
} else {
this.$message.warning(data.msg)
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
}).catch(() => {
@ -1614,13 +1670,6 @@
* 上传文件
*/
uploadFile () {
let currentData = {
titleCon: '打样文档附件上传',
site: this.$store.state.user.site,
createBy: this.$store.state.user.name,
proofingNo: this.documentClickRow.proofingNo,
documentTypeId: this.documentClickRow.documentTypeId
}
this.fileList = []
this.isEditable = false;
this.uploadDialog = true
@ -1651,11 +1700,15 @@
type: 'success'
})
} else {
this.$message.warning(data.msg)
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
},
warnSendMail(row) {
row.projectPartId = this.proofDocumenCurrentRow.projectPartId
row.testPartNo = this.proofDocumenCurrentRow.testPartNo
if (this.proofDocumenCurrentRow.createBy !== this.$store.state.user.name) {
this.$message({
message: '仅打样单录入人才可以发送提醒!',
@ -1674,7 +1727,9 @@
type: 'success'
})
} else {
this.$message.warning(data.msg)
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
}).catch(() => {

35
src/views/modules/eam/dashBoard.vue

@ -90,43 +90,50 @@ export default {
});
},
navigateToMes(path, row) {
let projectIds = '';
let projectNos = '';
let testPartNos = '';
if (path === 'unfinishedProjects') {
for (let i = 0; i < row.unfinishedProjects.length; i++) {
// 使 unfinishedProjects.projectId
projectIds += row.unfinishedProjects[i].projectId + (i === row.unfinishedProjects.length - 1 ? '' : ',');
// 使 unfinishedProjects.projectNo
projectNos += row.unfinishedProjects[i].projectNo + (i === row.unfinishedProjects.length - 1 ? '' : ',');
testPartNos += row.unfinishedProjects[i].testPartNo + (i === row.unfinishedProjects.length - 1 ? '' : ',');
}
this.$router.push({ path: 'eam-eamProjectInfo', query: { projectId: projectIds } });
this.$router.push({ path: 'eam-eamProjectPartInfo', query: { projectNo: projectNos,testPartNo: testPartNos} });
}
else if (path === 'allProjects') {
for (let i = 0; i < row.allProjects.length; i++) {
projectIds += row.allProjects[i].projectId + (i === row.allProjects.length - 1 ? '' : ',');
projectNos += row.allProjects[i].projectNo + (i === row.allProjects.length - 1 ? '' : ',');
testPartNos += row.allProjects[i].testPartNo + (i === row.allProjects.length - 1 ? '' : ',');
}
this.$router.push({ path: 'eam-eamProjectInfo', query: { projectId: projectIds } });
this.$router.push({ path: 'eam-eamProjectPartInfo', query: { projectNo: projectNos,testPartNo: testPartNos } });
}
else if (path === 'pendingUploads') {
for (let i = 0; i < row.pendingUploads.length; i++) {
projectIds += row.pendingUploads[i].projectId + (i === row.pendingUploads.length - 1 ? '' : ',');
projectNos += row.pendingUploads[i].projectNo + (i === row.pendingUploads.length - 1 ? '' : ',');
testPartNos += row.pendingUploads[i].testPartNo + (i === row.pendingUploads.length - 1 ? '' : ',');
}
this.$router.push({ name: 'eam-eamProjectInfoForUploads', query: { projectId: projectIds,flag:'1' } });
this.$router.push({ name: 'eam-eamProjectInfoForUploads', query: { projectNo: projectNos,flag:'1',testPartNo: testPartNos } });
}
else if (path === 'overdueUploads') {
for (let i = 0; i < row.overdueUploads.length; i++) {
projectIds += row.overdueUploads[i].projectId + (i === row.overdueUploads.length - 1 ? '' : ',');
projectNos += row.overdueUploads[i].projectNo + (i === row.overdueUploads.length - 1 ? '' : ',');
testPartNos += row.overdueUploads[i].testPartNo + (i === row.overdueUploads.length - 1 ? '' : ',');
}
this.$router.push({ path: 'eam-eamProjectInfoForUploads', query: { projectId: projectIds,flag:'2' } });
this.$router.push({ path: 'eam-eamProjectInfoForUploads', query: { projectNo: projectNos,flag:'2',testPartNo: testPartNos } });
}
else if (path === 'pendingConfirmations') {
for (let i = 0; i < row.pendingConfirmations.length; i++) {
projectIds += row.pendingConfirmations[i].projectId + (i === row.pendingConfirmations.length - 1 ? '' : ',');
projectNos += row.pendingConfirmations[i].projectNo + (i === row.pendingConfirmations.length - 1 ? '' : ',');
testPartNos += row.pendingConfirmations[i].testPartNo + (i === row.pendingConfirmations.length - 1 ? '' : ',');
}
this.$router.push({ path: 'eam-eamProjectInfoForConfirm', query: { projectId: projectIds,flag:'3' } });
this.$router.push({ path: 'eam-eamProjectInfoForConfirm', query: { projectNo: projectNos,flag:'3',testPartNo: testPartNos } });
}
else if (path === 'overdueConfirmations') {
for (let i = 0; i < row.overdueConfirmations.length; i++) {
projectIds += row.overdueConfirmations[i].projectId + (i === row.overdueConfirmations.length - 1 ? '' : ',');
projectNos += row.overdueConfirmations[i].projectNo + (i === row.overdueConfirmations.length - 1 ? '' : ',');
testPartNos += row.overdueConfirmations[i].testPartNo + (i === row.overdueConfirmations.length - 1 ? '' : ',');
}
this.$router.push({ path: 'eam-eamProjectInfoForConfirm', query: { projectId: projectIds,flag:'4' } });
this.$router.push({ path: 'eam-eamProjectInfoForConfirm', query: { projectNo: projectNos,flag:'4',testPartNo: testPartNos } });
}
},
startAutoRefresh() {

2716
src/views/modules/eam/eamProjectInfo.vue
File diff suppressed because it is too large
View File

721
src/views/modules/eam/eamProjectInfoForConfirm.vue

@ -1,9 +1,87 @@
<template>
<div>
<el-form :inline="true" label-position="top" :model="searchData" @keyup.enter.native="getDataList()">
<el-form-item :label="'BU'">
<el-select v-model="searchData.buDesc" placeholder="请选择" clearable style="width: 130px">
<el-option
v-for = "i in userBuList"
:key = "i.buNo"
:label = "i.buDesc"
:value = "i.buDesc">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="'项目编码'">
<el-input v-model="searchData.projectNo" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'项目名称'">
<el-input v-model="searchData.projectDesc" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'项目料号'">
<el-input v-model="searchData.testPartNo" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'料号描述'">
<el-input v-model="searchData.partDesc" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'客户编码'">
<el-input v-model="searchData.customerNo" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'客户名称'">
<el-input v-model="searchData.customerDesc" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'项目分类'">
<el-select v-model="searchData.projectCategory" placeholder="请选择" clearable style="width: 130px">
<el-option
v-for = "i in projectCategoryList"
:key = "i.projectCategory"
:label = "i.projectCategory"
:value = "i.projectCategory">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="'项目状态'">
<el-select v-model="searchData.status" placeholder="请选择" clearable style="width: 130px">
<el-option
v-for = "i in statusList"
:key = "i.status"
:label = "i.status"
:value = "i.status">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="'立项日期:'">
<el-date-picker
style="width: 120px"
v-model="searchData.startDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
-
<el-date-picker
style="width: 120px"
v-model="searchData.endDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
<!-- <el-form-item :label="'在用'">-->
<!-- <el-select filterable v-model="searchData.active" style="width: 130px">-->
<!-- <el-option label="全部" value=""></el-option>-->
<!-- <el-option label="是" value="Y"></el-option>-->
<!-- <el-option label="否" value="N"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<el-form-item :label="' '">
<el-button @click="getDataList()">查询</el-button>
</el-form-item>
</el-form>
<el-table :data="dataList"
border
style="height: 100%;width: 100%;margin-top: 0px;">
<el-table-column label="序号" type="index" align="center" :index="indexMethod"></el-table-column>
:height="height"
style="width: 100%;margin-top: 0px;">
<el-table-column
v-for="(item,index) in columnProjectList" :key="index"
:sortable="item.columnSortable"
@ -28,19 +106,103 @@
<el-table-column header-align="center" align="center" prop="confirmedDate" label="实际确认时间"></el-table-column>
<el-table-column header-align="center" align="center" prop="createDate" label="推送时间"></el-table-column>
<el-table-column header-align="center" align="center" prop="createBy" label="推送人"></el-table-column>
<!-- <el-table-column-->
<!-- header-align="center"-->
<!-- align="center"-->
<!-- width="90"-->
<!-- fixed="right"-->
<!-- label="操作">-->
<!-- <template slot-scope="scope">-->
<!-- <a type="text" size="small" @click="viewDocumentFile(scope.row)">查看附件</a>-->
<!-- <a type="text" size="small" @click="confirmDocument(scope.row)">确认</a>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column
header-align="center"
align="center"
width="90"
fixed="left"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" @click="toMes(scope.row)">项目信息</a>
<a type="text" size="small" @click="confirmDocument(scope.row)">确认</a>
</template>
</el-table-column>
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[20, 50, 100, 200, 500]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<el-dialog title="确认" @close="closeUploadFileVisible" :visible.sync="confirmVisible" width="579px" style="margin-top: 0vh;height: 100%;" :close-on-click-modal="false">
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="项目编码" prop="projectNo" class="red-label">
<el-input v-model="modalData.projectNo" readonly style="width: 110px;" class="red-text"></el-input>
</el-form-item>
<el-form-item label="项目名称" prop="projectDesc" >
<el-input v-model="modalData.projectDesc" readonly style="width: 170px;" class="red-text"></el-input>
</el-form-item>
<el-form-item label="BU" prop="bu">
<el-input v-model="modalData.bu" readonly style="width: 110px;" class="red-text"></el-input>
</el-form-item>
<el-form-item label="项目分类" prop="cProjectTypeDb">
<el-input v-model="modalData.cProjectTypeDb" readonly style="width: 110px;" class="red-text"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="指定确认人" prop="userDisplay">
<el-input v-model="confirmData.userDisplay" readonly style="width: 110px;"></el-input>
</el-form-item>
<el-form-item label="要求确认日期" prop="wantedConfirmDate">
<el-input v-model="confirmData.wantedConfirmDate" readonly style="width: 170px;" class="red-text"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="confirmData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="备注" prop="remark">
<el-input v-model="confirmData.remark" style="width: 541px" type="textarea" :rows="1"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="confirmData" style="margin-left: 7px;margin-top: -15px;">
<el-form-item label=" ">
<a href="javascript:void(0);" @click="triggerUpload" type="text" size="small">点击选择文件</a>
<tr></tr>
<el-input v-model="this.fileName" readonly placeholder="文件名称" style="width: 541px"></el-input>
<el-upload class="custom-upload" :file-list="fileList"
action="javascript:void(0);" ref="uploadFile"
:on-change="onChange" :on-close="closeFileUpdate"
multiple :auto-upload="false"
style="text-align: left;margin-top: 0px;margin-left: 6px;display: none;">
</el-upload>
</el-form-item>
</el-form>
<el-table
:height="height - 200"
:data="projectConfirmatorFileList"
border
style="width: 100%;margin-top: 17px;margin-left: 0px;">
<el-table-column
prop="fileName"
header-align="center"
align="center"
min-width="120"
label="文件名">
</el-table-column>
<el-table-column
prop="createDate"
header-align="center"
align="center"
min-width="80"
label="上传时间">
</el-table-column>
<el-table-column
prop="createdBy"
header-align="center"
align="center"
min-width="60"
label="上传人">
</el-table-column>
</el-table>
<div slot="footer" class="dialog-footer" style="margin-top: 0px">
<el-button type="primary" @click="saveUploadFile()">确定</el-button>
<el-button @click="closeUploadFileVisible()">关闭</el-button>
</div>
</el-dialog>
<el-dialog title="查看附件" @close="closeViewDocumentFileVisible" :visible.sync="viewDocumentFileVisible" width="520px" style="margin-top: 0vh" :close-on-click-modal="false">
<el-table
:height="height + 200"
@ -97,9 +259,14 @@ import {
import {
deleteProjectFile,
searchConfirmProgressPusherList,
searchProjectConfirmatorFileList
searchProjectConfirmatorFileList, updateProjectDocumentConfirm, uploadProjectFile
} from "../../../api/eam/eamProject";
import {downLoadObjectFile} from "../../../api/eam/eam_object_list";
import {getSiteAndBuByUserName} from "../../../api/qc/qc";
import {removeUserFavorite, saveUserFavorite, userFavoriteList} from "../../../api/userFavorite";
import {getTableDefaultListLanguage, getTableUserListLanguage} from "../../../api/table";
import moment from "moment/moment";
import {EventBus} from "../../../main";
export default {
data() {
@ -107,12 +274,99 @@ export default {
dataList: [],
confirmProgressList: [],
projectConfirmatorFileList: [],
fileList: [],
height: 200,
pageIndex: 1,
pageSize: 20,
totalPage: 0,
fileName:'',
dataListLoading: false,
viewDocumentFileVisible: false,
confirmVisible: false,
searchData: {
site: this.$store.state.user.site,
userId: this.$store.state.user.id,
projectId: '',
projectNo: '',
projectDesc: '',
projectPartId: '',
testPartNo: '',
partDesc: '',
customerNo: '',
customerDesc: '',
buDesc: '',
projectCategory: '',
status: '',
startDate:'',
endDate:'',
projectCreationDate: new Date(),
projectCloseDate:'',
needDate:'',
page: 1,
limit: 10,
},
modalData:{
flag:'',
id:'',
bu: '',
buNo: '',
site: this.$store.state.user.site,
projectId: '',
oriProjectId: '',
projectDesc:'',
projectCloseDate:'',
proofingNo:'',
needDate:'',
customerNo:'',
finalCustomerId:'',
customerDesc:'',
projectCategory:'',
testPartNo:'',
partDesc:'',
priority:'',
projectManager:'',
projectManagerName:'',
projectOwner:'',
projectOwnerName:'',
cProjectRegion:'',
cProjectBuildDate:'',
cQualityEngineer1:'',
cQualityEngineer1Name:'',
cQualityEngineer2:'',
cQualityEngineer2Name:'',
cQualityEngineer3:'',
cQualityEngineer3Name:'',
cManufactureEngineer:'',
cManufactureEngineerName:'',
engineer:'',
engineerName:'',
//projectCreationDate
projectCreationDate: new Date(),
finalPartNo:'',
finalPartDesc:'',
wantedConfirmDate: new Date(),
// active:'',
createBy: this.$store.state.user.name,
updateBy: this.$store.state.user.name,
},
confirmData:{
site: '',
projectId: '',
orderRef1: '',
orderRef2: '',
documentId: '',
documentType: '',
itemNo: '',
userid: '',
wantedConfirmDate: '',
confirmFlag: '',
confirmedBy: '',
remark: '',
confirmedDate: '',
createDate: '',
createBy: '',
page: 1,
limit: 1000
},
columnProjectList: [
{
@ -139,7 +393,7 @@ export default {
serialNumber: '101001014Table1ProjectId',
tableId: "101001014Table1",
tableName: "项目信息表",
columnProp: 'projectId',
columnProp: 'projectNo',
headerAlign: "center",
align: "center",
columnLabel: '项目编码',
@ -178,7 +432,25 @@ export default {
columnProp: 'testPartNo',
headerAlign: "center",
align: "center",
columnLabel: '料号',
columnLabel: '项目料号',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 101001014,
serialNumber: '101001014Table1PartDesc',
tableId: "101001014Table1",
tableName: "项目信息表",
columnProp: 'partDesc',
headerAlign: "center",
align: "center",
columnLabel: '料号描述',
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -226,10 +498,10 @@ export default {
{
userId: this.$store.state.user.name,
functionId: 101001014,
serialNumber: '101001014Table1ProjectCreationDate',
serialNumber: '101001014Table1BuildDate',
tableId: "101001014Table1",
tableName: "项目信息表",
columnProp: "projectCreationDate",
columnProp: "buildDate",
headerAlign: "center",
align: "center",
columnLabel: "立项日期",
@ -461,12 +733,12 @@ export default {
{
userId: this.$store.state.user.name,
functionId: 101001014,
serialNumber: '101001014Table1ProjectCloseDate',
serialNumber: '101001014Table1CloseDate',
tableId: "101001014Table1",
tableName: "项目信息表",
columnProp: 'projectCloseDate',
columnProp: 'closeDate',
headerAlign: "center",
align: "left",
align: "center",
columnLabel: '结案日期',
columnHidden: false,
columnImage: false,
@ -494,10 +766,39 @@ export default {
fixed: '',
columnWidth: 120,
},
]
],
userBuList: [],
projectCategoryList: [
{
projectCategory: 'Low Risk',
},
{
projectCategory: 'High Risk',
},
{
projectCategory: 'Sustaining',
}
],
statusList: [
{
status: '草稿',
},
{
status: '进行中',
},
{
status: '已结案',
}
],
};
},
created() {
// site bu
this.getSiteAndBuByUserName()
//
this.favoriteIsOk()
//
this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
this.getDataList()
},
activated() {
@ -505,13 +806,38 @@ export default {
this.getDataList()
}
},
mounted () {
this.$nextTick(() => {
this.height = window.innerHeight - 200
})
EventBus.$on('updateAgencyMatterForConfirm', () => {
this.getDataList();
});
},
methods: {
// bu
getSiteAndBuByUserName () {
let tempData = {
username: this.$store.state.user.name,
}
getSiteAndBuByUserName(tempData).then(({data}) => {
if (data.code === 0) {
this.userBuList = data.rows
}
})
},
//
getDataList () {
if (this.$route.query.flag === '3') {
searchConfirmProgressList(this.searchData).then(({data}) => {
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
if (this.$route.query.flag === '4') {
searchOverConfirmProgressList(this.searchData).then(({data}) => {
if (data.code === 0) {
this.dataList = data.list
this.dataList = data.page.list
this.pageIndex = data.page.currPage
this.pageSize = data.page.pageSize
this.totalPage = data.page.totalCount
this.dataList.forEach((item) => {
item.projectManagerName = item.projectManager.split('-')[1]
item.projectOwnerName = item.projectOwner.split('-')[1]
@ -521,13 +847,15 @@ export default {
item.cQualityEngineer3Name = item.cQualityEngineer3.split('-')[1]
item.cManufactureEngineerName = item.cManufactureEngineer.split('-')[1]
})
//
}
})
} else {
searchOverConfirmProgressList(this.searchData).then(({data}) => {
searchConfirmProgressList(this.searchData).then(({data}) => {
if (data.code === 0) {
this.dataList = data.list
this.dataList = data.page.list
this.pageIndex = data.page.currPage
this.pageSize = data.page.pageSize
this.totalPage = data.page.totalCount
this.dataList.forEach((item) => {
item.projectManagerName = item.projectManager.split('-')[1]
item.projectOwnerName = item.projectOwner.split('-')[1]
@ -537,16 +865,33 @@ export default {
item.cQualityEngineer3Name = item.cQualityEngineer3.split('-')[1]
item.cManufactureEngineerName = item.cManufactureEngineer.split('-')[1]
})
//
}
})
}
},
toMes (row) {
this.$router.push({ path: 'eam-eamProjectPartInfo', query: { projectNo: row.projectNo, testPartNo: row.testPartNo }})
},
//
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.getDataList()
},
//
currentChangeHandle (val) {
this.pageIndex = val
this.getDataList()
},
viewDocumentFile(row) {
this.confirmData = {
site: row.site,
documentType: row.documentType,
orderRef1: row.orderRef1,
orderRef2: row.orderRef2,
itemNo: row.itemNo,
userid: row.userid,
username: row.username,
@ -565,6 +910,7 @@ export default {
orderRef2: row.itemNo,
orderRef3: row.userid,
orderRef4: row.orderRef1,
orderRef5: row.orderRef2,
page: 1,
limit: 1000
}
@ -683,6 +1029,7 @@ export default {
orderRef2: row.orderRef2,
orderRef3: row.orderRef3,
orderRef4: row.orderRef4,
orderRef5: row.orderRef5,
createdBy: this.$store.state.user.name
}
deleteProjectFile(inData).then(({data}) => {
@ -713,88 +1060,135 @@ export default {
}
},
confirmDocument(row) {
// this.$store.state.user.id
let userId = this.$store.state.user.id.toString()
if (row.userid !== userId) {
// row.confirmedBy,
this.$confirm('指定确认人为' + row.userDisplay + ',是否继续确认?', '提示', {
confirmButtonText: '是',
cancelButtonText: '否',
type: 'warning'
})
.then(() => {
this.confirmData = {
site: row.site,
documentType: row.documentType,
orderRef1: row.orderRef1,
itemNo: row.itemNo,
userid: row.userid,
username: row.username,
userDisplay: row.userDisplay,
wantedConfirmDate: row.wantedConfirmDate,
confirmFlag: row.confirmFlag,
confirmedDate: new Date(),
createBy: row.createBy,
createDate: row.createDate,
confirmedBy: this.$store.state.user.userDisplay,
documentId: row.documentId,
remark: row.remark
}
this.modalData = {
site: this.proofingCurrentRow.site,
projectId: this.proofingCurrentRow.projectId,
projectDesc: this.proofingCurrentRow.projectDesc,
testPartNo: this.proofingCurrentRow.testPartNo,
partDesc: this.proofingCurrentRow.partDesc,
customerNo: this.proofingCurrentRow.customerNo,
customerDesc: this.proofingCurrentRow.customerDesc,
buNo: this.proofingCurrentRow.buNo,
bu: this.proofingCurrentRow.site + '_' + this.proofingCurrentRow.buNo,
cProjectTypeDb: this.proofingCurrentRow.projectCategory,
}
this.getProjectConfirmatorFileList(row)
this.confirmVisible = true
this.confirmData = {
site: row.site,
documentType: row.documentType,
orderRef1: row.orderRef1,
orderRef2: row.orderRef2,
itemNo: row.itemNo,
userid: row.userid,
username: row.username,
userDisplay: row.userDisplay,
wantedConfirmDate: row.wantedConfirmDate,
confirmFlag: row.confirmFlag,
confirmedDate: new Date(),
createBy: row.createBy,
createDate: row.createDate,
confirmedBy: this.$store.state.user.userDisplay,
documentId: row.documentId,
remark: row.remark
}
this.modalData = {
site: row.site,
projectId: row.projectId,
projectNo: row.projectNo,
projectDesc: row.projectDesc,
projectPartId: row.projectPartId,
testPartNo: row.testPartNo,
partDesc: row.partDesc,
customerNo: row.customerNo,
customerDesc: row.customerDesc,
buNo: row.buNo,
bu: row.site + '_' + row.buNo,
cProjectTypeDb: row.projectCategory,
}
this.getProjectConfirmatorFileList(row)
this.confirmVisible = true
},
getProjectConfirmatorFileList (row) {
let inData = {
orderRef1: row.site,
orderRef3: row.userid,
orderRef2: row.itemNo,
orderRef4: row.orderRef1,
orderRef5: row.orderRef2,
page: 1,
limit: 1000
}
searchProjectConfirmatorFileList(inData).then(({data}) => {
if (data && data.code === 0){
this.projectConfirmatorFileList = data.page.list;
}
})
},
closeUploadFileVisible(){
this.confirmVisible = false;
this.projectConfirmatorFileList = [];
this.fileList = [];
this.closeFileUpdate()
},
saveUploadFile(){
this.confirmData.confirmedDate = moment(this.confirmData.confirmedDate).utcOffset('+8').format('YYYY-MM-DD HH:mm:ss');
this.confirmData.confirmedBy = this.$store.state.user.userDisplay;
this.confirmData.userid = this.$store.state.user.id;
updateProjectDocumentConfirm(this.confirmData) .then(({data}) => {
if (data.code === 0) {
this.confirmVisible = false;
this.getDataList();
//
EventBus.$emit('updateProjectPartInfo');
}else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
.catch(() => {
this.$message({
type: 'info',
message: '已取消操作'
});
});
}else {
this.confirmData = {
site: row.site,
documentType: row.documentType,
orderRef1: row.orderRef1,
itemNo: row.itemNo,
userid: row.userid,
username: row.username,
userDisplay: row.userDisplay,
wantedConfirmDate: row.wantedConfirmDate,
confirmFlag: row.confirmFlag,
confirmedDate: new Date(),
createBy: row.createBy,
createDate: row.createDate,
confirmedBy: this.$store.state.user.name,
documentId: row.documentId,
remark: row.remark
}
this.modalData = {
site: this.proofingCurrentRow.site,
projectId: this.proofingCurrentRow.projectId,
projectDesc: this.proofingCurrentRow.projectDesc,
testPartNo: this.proofingCurrentRow.testPartNo,
partDesc: this.proofingCurrentRow.partDesc,
customerNo: this.proofingCurrentRow.customerNo,
customerDesc: this.proofingCurrentRow.customerDesc,
buNo: this.proofingCurrentRow.buNo,
bu: this.proofingCurrentRow.site + '_' + this.proofingCurrentRow.buNo,
cProjectTypeDb: this.proofingCurrentRow.projectCategory,
})
let remark = this.confirmData.remark;
const formData = new FormData();
//
for (let i = 0; i < this.fileList.length; i++) {
formData.append("file",this.fileList[i].raw)
}
formData.append("folder", 'projectPDConfirmFiles');
formData.append("orderRef1", this.confirmData.site);
formData.append("orderRef4", this.confirmData.orderRef1);
formData.append("orderRef2", this.confirmData.itemNo);
formData.append("orderRef3", this.confirmData.userid);
formData.append("orderRef5", this.confirmData.orderRef2);
formData.append("createdBy", this.$store.state.user.name);
formData.append("updatedBy", this.$store.state.user.name);
formData.append("remark", remark);
uploadProjectFile(formData).then(({data}) => {
if (data.code === 0) {
this.$message.success('操作成功');
//
this.$refs.uploadFile.clearFiles();
this.closeFileUpdate();
this.projectConfirmatorFileList = [];
}else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
this.getProjectConfirmatorFileList(row)
this.confirmVisible = true
})
},
closeFileUpdate() {
this.fileName = '';
this.uploadDialog = false;
//this.fileRemark = ''
this.$refs.uploadFile.clearFiles()
this.fileList = []
},
/*选择上传文件时*/
onChange(file,fileList){
const newFileName = file.name;
if (this.fileName) {
this.fileName += ', ' + newFileName;
} else {
this.fileName = newFileName;
}
this.fileList.push(file);
},
triggerUpload() {
this.$refs.uploadFile.$el.querySelector('input').click()
},
formatDate(row, column) {
// row
// column
@ -808,9 +1202,6 @@ export default {
},
rowStyle ({row}) {
},
indexMethod(index) {
return index + 1;
},
getCombinedDocumentType(row) {
//
if (row.documentType === null || row.documentType === undefined) {
@ -819,11 +1210,123 @@ export default {
return row.documentType
}
},
//
favoriteIsOk () {
let userFavorite = {
userId: this.$store.state.user.id,
languageCode: this.$i18n.locale
}
userFavoriteList(userFavorite).then(({data}) => {
for (let i = 0; i < data.list.length; i++) {
if (this.$route.meta.menuId === data.list[i].menuId) {
this.favorite = true
}
}
})
},
// OR
favoriteFunction () {
let userFavorite = {
userId: this.$store.state.user.id,
functionId: this.$route.meta.menuId,
}
if (this.favorite) {
removeUserFavorite(userFavorite).then(({data}) => {
this.$message.success(data.msg)
this.favorite = false
})
} else {
//
saveUserFavorite(userFavorite).then(({data}) => {
this.$message.success(data.msg)
this.favorite = true
})
}
},
//
async getTableUserColumn(tableId, columnId) {
let queryTableUser = {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: tableId,
status: true,
languageCode: this.$i18n.locale
}
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) {
//this.columnList1 = []
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.detailColumnList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
this.getColumnList(tableId, columnId)
}
})
},
// tableDefault
async getColumnList (tableId, columnId) {
let queryTable= {
functionId: this.$route.meta.menuId,
tableId: tableId,
languageCode: this.$i18n.locale
}
await getTableDefaultListLanguage(queryTable).then(({data}) => {
if (!data.rows.length == 0) {
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.detailColumnList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
// this.showDefault = true.
}
})
},
//
getButtonAuthData () {
let searchFlag = this.isAuth(this.menuId+":search")
let saveFlag = this.isAuth(this.menuId+":save")
let updateFlag = this.isAuth(this.menuId+":update")
let deleteFlag = this.isAuth(this.menuId+":delete")
//
this.authSearch = !searchFlag
this.authSave = !saveFlag
this.authUpdate = !updateFlag
this.authDelete = !deleteFlag
},
},
};
</script>
<style scoped>
.red-text /deep/ .el-input__inner {
color: red;
}
.card-item {
cursor: pointer;
margin-bottom: 20px;

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

@ -1,14 +1,92 @@
<template>
<div>
<el-form :inline="true" label-position="top" :model="searchData" @keyup.enter.native="getDataList()">
<el-form-item :label="'BU'">
<el-select v-model="searchData.buDesc" placeholder="请选择" clearable style="width: 130px">
<el-option
v-for = "i in userBuList"
:key = "i.buNo"
:label = "i.buDesc"
:value = "i.buDesc">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="'项目编码'">
<el-input v-model="searchData.projectNo" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'项目名称'">
<el-input v-model="searchData.projectDesc" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'项目料号'">
<el-input v-model="searchData.testPartNo" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'料号描述'">
<el-input v-model="searchData.partDesc" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'客户编码'">
<el-input v-model="searchData.customerNo" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'客户名称'">
<el-input v-model="searchData.customerDesc" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'项目分类'">
<el-select v-model="searchData.projectCategory" placeholder="请选择" clearable style="width: 130px">
<el-option
v-for = "i in projectCategoryList"
:key = "i.projectCategory"
:label = "i.projectCategory"
:value = "i.projectCategory">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="'项目状态'">
<el-select v-model="searchData.status" placeholder="请选择" clearable style="width: 130px">
<el-option
v-for = "i in statusList"
:key = "i.status"
:label = "i.status"
:value = "i.status">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="'立项日期:'">
<el-date-picker
style="width: 120px"
v-model="searchData.startDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
-
<el-date-picker
style="width: 120px"
v-model="searchData.endDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
<!-- <el-form-item :label="'在用'">-->
<!-- <el-select filterable v-model="searchData.active" style="width: 130px">-->
<!-- <el-option label="全部" value=""></el-option>-->
<!-- <el-option label="是" value="Y"></el-option>-->
<!-- <el-option label="否" value="N"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<el-form-item :label="' '">
<el-button @click="getDataList()">查询</el-button>
</el-form-item>
</el-form>
<el-table
:data="dataList"
border
style="height: 100%;width: 100%;margin-top: 0px;"
:height="height"
style="width: 100%;margin-top: 0px;"
ref="projectAllDocumentDocumentTable"
@row-click="projectAllDocumentClickRow"
:row-style="rowStyle"
v-loading="dataListLoading">
<el-table-column label="序号" type="index" align="center" :index="indexMethod"></el-table-column>
<el-table-column
v-for="(item,index) in columnProjectAllDocumentList" :key="index"
:sortable="item.columnSortable"
@ -25,7 +103,34 @@
style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
<el-table-column
label="操作"
align="center"
fixed="left"
width="110">
<template slot-scope="scope">
<a type="text" size="small" @click="toMes(scope.row)">项目信息</a>
<a type="text" size="small" @click="uploadFile(scope.row)">上传文件</a>
</template>
</el-table-column>
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[20, 50, 100, 200, 500]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<upload-file-list-1 :folder="this.folder" title="上传文档" :file-list.sync="fileList" :label="'文档类型ID:'" :no="projectAllDocumentCurrentRow.documentTypeId" :no-type="projectAllDocumentCurrentRow.documentType"
:proofing-id='projectAllDocumentCurrentRow.proofingId' :proofing-no="projectAllDocumentCurrentRow.proofingNo" :bu="projectAllDocumentCurrentRow.buNo" :site="projectAllDocumentCurrentRow.site" :upload-dialog.sync="uploadDialog" :no-desc="projectAllDocumentCurrentRow.documentDesc" :id="projectAllDocumentCurrentRow.documentDefinitionListId"
:project-id="projectAllDocumentCurrentRow.projectId" :project-no="projectAllDocumentCurrentRow.projectNo" :project-desc="projectAllDocumentCurrentRow.projectDesc" :document-type="projectAllDocumentCurrentRow.documentType" :conclusion="'N/A'"
:customer-no="projectAllDocumentCurrentRow.customerNo" :customer-desc="projectAllDocumentCurrentRow.customerDesc" :test-part-no="projectAllDocumentCurrentRow.testPartNo" :project-part-id="projectAllDocumentCurrentRow.projectPartId"
:part-desc="projectAllDocumentCurrentRow.partDesc" :column-file-content-array="columnFileContentArray" :proof-document-list="projectPartDocumentList"
path="/upload/test" :is-editable="isEditable" :is-mass-production-stage="isMassProductionStage"></upload-file-list-1>
</div>
</template>
@ -34,20 +139,54 @@
import {
searchProjectUploadsDocumentList,
searchProjectOverUploadsDocumentList,
searchConfirmProgressList, searchOverConfirmProgressList
searchConfirmProgressList, searchOverConfirmProgressList, getProofDocument
} from "../../../api/eam/eamProofing";
import {searchConfirmProgressPusherList} from "../../../api/eam/eamProject";
import {getSiteAndBuByUserName} from "../../../api/qc/qc";
import {removeUserFavorite, saveUserFavorite, userFavoriteList} from "../../../api/userFavorite";
import {getTableDefaultListLanguage, getTableUserListLanguage} from "../../../api/table";
import {EventBus} from "../../../main";
import UploadFileList1 from "../common/uploadFileList1.vue";
export default {
components: {UploadFileList1},
data() {
return {
folder: '',
dataList: [],
fileList: [],
confirmProgressList: [],
projectPartDocumentList: [],
height: 200,
pageIndex: 1,
pageSize: 20,
totalPage: 0,
dataListLoading: false,
uploadDialog:false,
isEditable: true,
isMassProductionStage: true,
projectAllDocumentCurrentRow: {},
searchData: {
site: this.$store.state.user.site,
userId: this.$store.state.user.id,
projectId: '',
projectNo: '',
projectDesc: '',
projectPartId: '',
testPartNo: '',
partDesc: '',
customerNo: '',
customerDesc: '',
buDesc: '',
projectCategory: '',
status: '',
startDate:'',
endDate:'',
projectCreationDate: new Date(),
projectCloseDate:'',
needDate:'',
page: 1,
limit: 10,
},
columnProjectAllDocumentList: [
{
@ -74,7 +213,7 @@ export default {
serialNumber: '101001014Table1ProjectId',
tableId: "101001014Table1",
tableName: "项目信息表",
columnProp: 'projectId',
columnProp: 'projectNo',
headerAlign: "center",
align: "center",
columnLabel: '项目编码',
@ -113,7 +252,25 @@ export default {
columnProp: 'testPartNo',
headerAlign: "center",
align: "center",
columnLabel: '料号',
columnLabel: '项目料号',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 101001014,
serialNumber: '101001014Table1PartDesc',
tableId: "101001014Table1",
tableName: "项目信息表",
columnProp: 'partDesc',
headerAlign: "center",
align: "center",
columnLabel: '料号描述',
columnHidden: false,
columnImage: false,
columnSortable: false,
@ -164,7 +321,7 @@ export default {
serialNumber: '101001014Table1ProjectCreationDate',
tableId: "101001014Table1",
tableName: "项目信息表",
columnProp: "projectCreationDate",
columnProp: "buildDate",
headerAlign: "center",
align: "center",
columnLabel: "立项日期",
@ -366,24 +523,24 @@ export default {
columnProp: 'needDate',
headerAlign: "center",
align: "center",
columnLabel: '预计完成日期',
columnLabel: '项目物料预计完成日期',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120,
columnWidth: 130,
},
{
userId: this.$store.state.user.name,
functionId: 101001014,
serialNumber: '101001014Table1ProjectCloseDate',
serialNumber: '101001014Table1CloseDate',
tableId: "101001014Table1",
tableName: "项目信息表",
columnProp: 'projectCloseDate',
columnProp: 'closeDate',
headerAlign: "center",
align: "left",
align: "center",
columnLabel: '结案日期',
columnHidden: false,
columnImage: false,
@ -427,7 +584,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
columnWidth: 90
},
{
userId: this.$store.state.user.name,
@ -493,14 +650,14 @@ export default {
columnProp: 'requiredDeliveryDate',
headerAlign: 'center',
align: 'center',
columnLabel: '预计完成日期',
columnLabel: '打样预计完成日期',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
columnWidth: 120
},
//requiredDeliveryDate
{
@ -612,9 +769,150 @@ export default {
columnWidth: 80
}
],
columnFileContentArray: [
{
userId: this.$store.state.user.name,
functionId: 101001014,
serialNumber: '101001014Table1FileName',
tableId: "101001014Table1",
tableName: "打样文档表",
columnProp: 'fileName',
headerAlign: "center",
align: "left",
columnLabel: '文件名',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 180,
},
//
{
userId: this.$store.state.user.name,
functionId: 101001014,
serialNumber: '101001014Table1UploadedFlag',
tableId: "101001014Table1",
tableName: "打样文档表",
columnProp: 'uploadedFlag',
headerAlign: "center",
align: "center",
columnLabel: '是否上传',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 70,
},
{
userId: this.$store.state.user.name,
functionId: 101001014,
serialNumber: '101001014Table1Conclusion',
tableId: "101001014Table1",
tableName: "打样文档表",
columnProp: 'conclusion',
headerAlign: "center",
align: "center",
columnLabel: '结论',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 70,
},
{
userId: this.$store.state.user.name,
functionId: 101001014,
serialNumber: '101001014Table1DocumentGroupDesc',
tableId: "101001014Table1",
tableName: "打样文档表",
columnProp: 'documentGroupDesc',
headerAlign: "center",
align: "center",
columnLabel: '文档种类',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 70,
},
{
userId: this.$store.state.user.name,
functionId: 103001,
serialNumber: '103001Table1CreateDate',
tableId: '103001Table1',
tableName: '打样文档表',
columnProp: 'createDate',
headerAlign: 'center',
align: 'center',
columnLabel: '创建时间',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 103001,
serialNumber: '103001Table1CreateBy',
tableId: '103001Table1',
tableName: '打样文档表',
columnProp: 'createdBy',
headerAlign: 'center',
align: 'center',
columnLabel: '创建人',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
}
],
userBuList: [],
projectCategoryList: [
{
projectCategory: 'Low Risk',
},
{
projectCategory: 'High Risk',
},
{
projectCategory: 'Sustaining',
}
],
statusList: [
{
status: '草稿',
},
{
status: '进行中',
},
{
status: '已结案',
}
],
};
},
created() {
// site bu
this.getSiteAndBuByUserName()
//
this.favoriteIsOk()
//
this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
this.getDataList()
},
activated() {
@ -622,13 +920,38 @@ export default {
this.getDataList()
}
},
mounted () {
this.$nextTick(() => {
this.height = window.innerHeight - 200
})
EventBus.$on('updateAgencyMatterForUploads', () => {
this.getDataList();
});
},
methods: {
// bu
getSiteAndBuByUserName () {
let tempData = {
username: this.$store.state.user.name,
}
getSiteAndBuByUserName(tempData).then(({data}) => {
if (data.code === 0) {
this.userBuList = data.rows
}
})
},
//
getDataList () {
if (this.$route.query.flag === '1') {
searchProjectUploadsDocumentList(this.searchData).then(({data}) => {
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
if (this.$route.query.flag === '2') {
searchProjectOverUploadsDocumentList(this.searchData).then(({data}) => {
if (data.code === 0) {
this.dataList = data.list
this.dataList = data.page.list
this.pageIndex = data.page.currPage
this.pageSize = data.page.pageSize
this.totalPage = data.page.totalCount
this.dataList.forEach((item) => {
item.projectManagerName = item.projectManager.split('-')[1]
item.projectOwnerName = item.projectOwner.split('-')[1]
@ -641,9 +964,12 @@ export default {
}
})
}else {
searchProjectOverUploadsDocumentList(this.searchData).then(({data}) => {
searchProjectUploadsDocumentList(this.searchData).then(({data}) => {
if (data.code === 0) {
this.dataList = data.list
this.dataList = data.page.list
this.pageIndex = data.page.currPage
this.pageSize = data.page.pageSize
this.totalPage = data.page.totalCount
this.dataList.forEach((item) => {
item.projectManagerName = item.projectManager.split('-')[1]
item.projectOwnerName = item.projectOwner.split('-')[1]
@ -657,6 +983,19 @@ export default {
})
}
},
//
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.getDataList()
},
//
currentChangeHandle (val) {
this.pageIndex = val
this.getDataList()
},
filteredProjectAllDocumentList() {
this.dataList.map(item => {
item.id = item.documentDefinitionListId
@ -666,6 +1005,54 @@ export default {
projectAllDocumentClickRow (row) {
this.projectAllDocumentCurrentRow = JSON.parse(JSON.stringify(row))
},
toMes (row) {
this.$router.push({ path: 'eam-eamProjectPartInfo', query: { projectNo: row.projectNo , testPartNo:row.testPartNo}})
},
/**
* 上传文件
*/
uploadFile (row) {
this.isEditable = false;
this.fileList = []
if (row.documentId === null || row.documentId === undefined || row.documentId === '') {
this.projectAllDocumentCurrentRow.proofingId= -1
this.projectAllDocumentCurrentRow.proofingNo = '*'
this.isMassProductionStage = true
this.folder = 'projectPMPDocumentFiles'
} else {
this.isMassProductionStage = false
this.folder = 'projectPPDocumentFiles'
}
this.getProofDocument(row)
this.uploadDialog = true
//
// this.$nextTick(() => {
// this.$refs.partUploadFile.init(currentData);
// })
},
getProofDocument (row) {
let tempData = {
site: this.$store.state.user.site,
buNo: row.buNo,
projectId: row.projectId,
projectPartId: row.projectPartId,
proofingId: row.proofingId,
userId: this.$store.state.user.id,
languageCode: this.$i18n.locale
}
getProofDocument(tempData).then(({data}) => {
if (data && data.code === 0) {
this.projectPartDocumentList = data.page.list
for (let i = 0; i < this.projectPartDocumentList.length; i++) {
this.projectPartDocumentList[i].buNo = this.tempData.buNo
}
}
})
},
formatDate(row, column) {
// row
// column
@ -679,9 +1066,6 @@ export default {
},
rowStyle ({row}) {
},
indexMethod(index) {
return index + 1;
},
getCombinedDocumentType(row) {
//
if (row.documentType === null || row.documentType === undefined) {
@ -690,6 +1074,113 @@ export default {
return row.documentType
}
},
//
favoriteIsOk () {
let userFavorite = {
userId: this.$store.state.user.id,
languageCode: this.$i18n.locale
}
userFavoriteList(userFavorite).then(({data}) => {
for (let i = 0; i < data.list.length; i++) {
if (this.$route.meta.menuId === data.list[i].menuId) {
this.favorite = true
}
}
})
},
// OR
favoriteFunction () {
let userFavorite = {
userId: this.$store.state.user.id,
functionId: this.$route.meta.menuId,
}
if (this.favorite) {
removeUserFavorite(userFavorite).then(({data}) => {
this.$message.success(data.msg)
this.favorite = false
})
} else {
//
saveUserFavorite(userFavorite).then(({data}) => {
this.$message.success(data.msg)
this.favorite = true
})
}
},
//
async getTableUserColumn(tableId, columnId) {
let queryTableUser = {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: tableId,
status: true,
languageCode: this.$i18n.locale
}
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) {
//this.columnList1 = []
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.detailColumnList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
this.getColumnList(tableId, columnId)
}
})
},
// tableDefault
async getColumnList (tableId, columnId) {
let queryTable= {
functionId: this.$route.meta.menuId,
tableId: tableId,
languageCode: this.$i18n.locale
}
await getTableDefaultListLanguage(queryTable).then(({data}) => {
if (!data.rows.length == 0) {
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.detailColumnList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
// this.showDefault = true.
}
})
},
//
getButtonAuthData () {
let searchFlag = this.isAuth(this.menuId+":search")
let saveFlag = this.isAuth(this.menuId+":save")
let updateFlag = this.isAuth(this.menuId+":update")
let deleteFlag = this.isAuth(this.menuId+":delete")
//
this.authSearch = !searchFlag
this.authSave = !saveFlag
this.authUpdate = !updateFlag
this.authDelete = !deleteFlag
},
},
};
</script>

3850
src/views/modules/eam/eamProjectPartInfo.vue
File diff suppressed because it is too large
View File

Loading…
Cancel
Save