待办中心增加引用交付物功能
This commit is contained in:
+6
-6
@@ -163,10 +163,10 @@
|
|||||||
this.visible = false
|
this.visible = false
|
||||||
},
|
},
|
||||||
referenceDeliverablesClick() {
|
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) {
|
confirm(operatorTime) {
|
||||||
this.$refs.reviewedByThePersonInChargeRef.submit((res) => {
|
this.$refs.reviewedByThePersonInChargeRef.submit((res) => {
|
||||||
@@ -283,9 +283,9 @@
|
|||||||
getAction(this.url.queryProjectLawsInventoryInfoById, query).then((res) => {
|
getAction(this.url.queryProjectLawsInventoryInfoById, query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.queryProject = res.result[0] || {}
|
this.queryProject = res.result[0] || {}
|
||||||
if (this.queryData.TaskKey == 'zrrqr' || this.queryData.TaskKey == 'dezrrqr') {
|
// if (this.queryData.TaskKey == 'zrrqr' || this.queryData.TaskKey == 'dezrrqr') {
|
||||||
this.queryProject.endTime = this.queryData.endTime
|
// this.queryProject.endTime = this.queryData.endTime
|
||||||
}
|
// }
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.isDisplay = true
|
this.isDisplay = true
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
+19
-11
@@ -97,17 +97,21 @@
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
total: 0,
|
total: 0,
|
||||||
ids: '',
|
ids: '',
|
||||||
detailedWarningList: []
|
detailedWarningList: [],
|
||||||
|
queryProject:{},
|
||||||
|
type:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
transferModel(ids) {
|
transferModel(type,queryProject) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.queryParam = {}
|
this.queryParam = {}
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
|
this.type = type
|
||||||
|
this.queryProject = queryProject
|
||||||
this.replacePage()
|
this.replacePage()
|
||||||
},
|
},
|
||||||
searchQuery() {
|
searchQuery() {
|
||||||
@@ -154,16 +158,20 @@
|
|||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
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
|
this.confirmLoading = true
|
||||||
postAction('/project/projectCertificationInventoryEO/citeDeliverable', {
|
let query = {
|
||||||
projectCertificationInventoryIds: this.ids,
|
serialNumber:this.queryProject.serialNumber,
|
||||||
projectLibraryId: this.$route.query.id,
|
dutyTerritory:this.queryProject.dutyTerritory,
|
||||||
citeProjectLibraryId: selectedRowKeys.join(',')
|
citeProjectLibraryId:selectedRowKeys.join(','),
|
||||||
}).then((res) => {
|
}
|
||||||
|
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) {
|
if (res.success) {
|
||||||
this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
|
|||||||
+3
@@ -180,6 +180,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getData(data) {
|
||||||
|
|
||||||
|
},
|
||||||
submit(callBack) {
|
submit(callBack) {
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user