待办中心增加引用交付物功能

This commit is contained in:
范强强
2023-04-13 14:25:01 +08:00
parent 59cd35f342
commit 950ead7f6d
3 changed files with 28 additions and 17 deletions
@@ -163,10 +163,10 @@
this.visible = false
},
referenceDeliverablesClick() {
this.$refs.referenceDeliverablesListRef.transferModel()
this.$refs.referenceDeliverablesListRef.transferModel(this.queryData.flowType,JSON.parse(JSON.stringify(this.queryProject)))
},
referenceDeliverablesListForm() {
referenceDeliverablesListForm(data) {
this.$refs.reviewedByThePersonInChargeRef.getData(JSON.parse(JSON.stringify(data)))
},
confirm(operatorTime) {
this.$refs.reviewedByThePersonInChargeRef.submit((res) => {
@@ -283,9 +283,9 @@
getAction(this.url.queryProjectLawsInventoryInfoById, query).then((res) => {
if (res.success) {
this.queryProject = res.result[0] || {}
if (this.queryData.TaskKey == 'zrrqr' || this.queryData.TaskKey == 'dezrrqr') {
this.queryProject.endTime = this.queryData.endTime
}
// if (this.queryData.TaskKey == 'zrrqr' || this.queryData.TaskKey == 'dezrrqr') {
// this.queryProject.endTime = this.queryData.endTime
// }
this.loading = false
this.isDisplay = true
} else {
@@ -97,17 +97,21 @@
pageSize: 10,
total: 0,
ids: '',
detailedWarningList: []
detailedWarningList: [],
queryProject:{},
type:'',
}
},
mounted() {
},
methods: {
transferModel(ids) {
transferModel(type,queryProject) {
this.visible = true
this.queryParam = {}
this.selectedRowKeys = []
this.type = type
this.queryProject = queryProject
this.replacePage()
},
searchQuery() {
@@ -154,16 +158,20 @@
handleSubmit() {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
if (selectedRowKeys.join(',') == this.$route.query.id) {
this.$message.warning(this.$t('theDeliverablesCannotReferencedPleaseReselect'))
return
}
this.confirmLoading = true
postAction('/project/projectCertificationInventoryEO/citeDeliverable', {
projectCertificationInventoryIds: this.ids,
projectLibraryId: this.$route.query.id,
citeProjectLibraryId: selectedRowKeys.join(',')
}).then((res) => {
let query = {
serialNumber:this.queryProject.serialNumber,
dutyTerritory:this.queryProject.dutyTerritory,
citeProjectLibraryId:selectedRowKeys.join(','),
}
if (this.type == '2'){
query.operateType = 'lawsInventoryDesignCiteDeliverable'
query.designDeliverableType = this.queryProject.designDeliverableType
}else if(this.type == '4'){
query.operateType = 'lawsInventoryVerifyCiteDeliverable'
query.verifyDeliverableType =this.queryProject.verifyDeliverableType
}
postAction('/project/projectLawsInventoryEO/citeDeliverable', query).then((res) => {
if (res.success) {
this.confirmLoading = false
if (res.result) {
@@ -180,6 +180,9 @@
}
},
methods: {
getData(data) {
},
submit(callBack) {
this.$refs.ruleForm.validate(valid => {
if (valid) {