修改提交流程的传参
This commit is contained in:
@@ -719,4 +719,5 @@ module.exports = {
|
|||||||
operationNode: 'operation node',
|
operationNode: 'operation node',
|
||||||
taskDataConfirmation: 'Please select the data whose list confirmation status is accepted and task confirmation status is not initiated or rejected, and the regulatory engineer and certification engineer are not empty',
|
taskDataConfirmation: 'Please select the data whose list confirmation status is accepted and task confirmation status is not initiated or rejected, and the regulatory engineer and certification engineer are not empty',
|
||||||
selectIssuer:'Select issuer',
|
selectIssuer:'Select issuer',
|
||||||
|
sendBack:'send back',
|
||||||
}
|
}
|
||||||
@@ -724,4 +724,5 @@ module.exports = {
|
|||||||
opinion:'意见',
|
opinion:'意见',
|
||||||
operationNode:'操作节点',
|
operationNode:'操作节点',
|
||||||
selectIssuer:'选择下发人',
|
selectIssuer:'选择下发人',
|
||||||
|
sendBack:'退回',
|
||||||
}
|
}
|
||||||
@@ -16,6 +16,9 @@
|
|||||||
<a-button class="header-btn issue" v-if="isIssue" @click="issue" type="primary" ghost>{{$t('issue')}}</a-button>
|
<a-button class="header-btn issue" v-if="isIssue" @click="issue" type="primary" ghost>{{$t('issue')}}</a-button>
|
||||||
<!-- 提交-->
|
<!-- 提交-->
|
||||||
<a-button class="header-btn submit" v-if="isSubmit" @click="submit" type="primary">{{$t('submit')}}</a-button>
|
<a-button class="header-btn submit" v-if="isSubmit" @click="submit" type="primary">{{$t('submit')}}</a-button>
|
||||||
|
<a-button class="header-btn termin" v-if="isSendBack" @click="sendBackCkick" type="danger" ghost>
|
||||||
|
{{$t('sendBack')}}
|
||||||
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -50,7 +53,12 @@
|
|||||||
isPreservation: {
|
isPreservation: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
}
|
},
|
||||||
|
//是否显示退回按钮
|
||||||
|
isSendBack:{
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
terminationProcess() {
|
terminationProcess() {
|
||||||
@@ -67,6 +75,10 @@
|
|||||||
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
this.$emit('submit',handlingTime)
|
this.$emit('submit',handlingTime)
|
||||||
},
|
},
|
||||||
|
sendBackCkick(){
|
||||||
|
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
this.$emit('sendBack',handlingTime)
|
||||||
|
},
|
||||||
backTo() {
|
backTo() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,10 @@
|
|||||||
:title="'工程接口人确认符合性要求'"
|
:title="'工程接口人确认符合性要求'"
|
||||||
is-termination-process
|
is-termination-process
|
||||||
is-submit
|
is-submit
|
||||||
|
:isSendBack="isSendBack"
|
||||||
@terminationProcess="terminationProcess"
|
@terminationProcess="terminationProcess"
|
||||||
@submit="submit"
|
@submit="submit"
|
||||||
|
@sendBack="sendBack"
|
||||||
/>
|
/>
|
||||||
<a-spin tip="加载中..." :spinning="loading">
|
<a-spin tip="加载中..." :spinning="loading">
|
||||||
<div class="detail-box" v-if="!loading">
|
<div class="detail-box" v-if="!loading">
|
||||||
@@ -25,7 +27,7 @@
|
|||||||
:url="url
|
:url="url
|
||||||
"/>
|
"/>
|
||||||
<examineInformation
|
<examineInformation
|
||||||
isFlag
|
:isFlag="isFlag"
|
||||||
isViewUploadedFiles
|
isViewUploadedFiles
|
||||||
isApprovalOpinion
|
isApprovalOpinion
|
||||||
ref="examineInformationRef"
|
ref="examineInformationRef"
|
||||||
@@ -164,16 +166,36 @@
|
|||||||
_this.queryProjectLawsInventoryInfo()
|
_this.queryProjectLawsInventoryInfo()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
isSendBack() {
|
||||||
|
if (this.$route.query.taskDefinitionKey == 'zrrjsrw') {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
},
|
||||||
|
isFlag() {
|
||||||
|
if (this.$route.query.taskDefinitionKey == 'dreqr') {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
terminationProcess(handlingTime) {
|
terminationProcess(handlingTime) {
|
||||||
this.completeTask({ flag: 2 },handlingTime)
|
this.completeTask({ flag: 2 }, handlingTime)
|
||||||
},
|
},
|
||||||
submit(handlingTime) {
|
submit(handlingTime) {
|
||||||
this.$refs.examineInformationRef.submit((res) => {
|
this.$refs.examineInformationRef.submit((res) => {
|
||||||
this.completeTask(res,handlingTime)
|
if (!this.isFlag) {
|
||||||
|
res.flag = 0
|
||||||
|
}
|
||||||
|
this.completeTask(res, handlingTime)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
sendBack(handlingTime) {
|
||||||
|
this.completeTask({ flag: 1 }, handlingTime)
|
||||||
|
},
|
||||||
queryTaskDetailByTask(callback) {
|
queryTaskDetailByTask(callback) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(this.url.queryTaskDetailByTaskIds, { taskIds: this.$route.query.taskIds }).then((res) => {
|
getAction(this.url.queryTaskDetailByTaskIds, { taskIds: this.$route.query.taskIds }).then((res) => {
|
||||||
@@ -186,13 +208,13 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
completeTask(value,handlingTime) {
|
completeTask(value, handlingTime) {
|
||||||
let json = Object.assign({handlingTime:handlingTime}, this.queryBy, value)
|
let json = Object.assign({ handlingTime: handlingTime }, this.queryBy, value)
|
||||||
let data = JSON.stringify(json).replace(/\"/g, '\'')
|
let data = JSON.stringify(json).replace(/\"/g, '\'')
|
||||||
let query = {
|
let query = {
|
||||||
userid: this.userInfo().id,
|
userid: this.userInfo().id,
|
||||||
taskId: this.$route.query.taskId || this.$route.query.taskIds,
|
taskId: this.$route.query.taskId || this.$route.query.taskIds,
|
||||||
json: data,
|
json: data
|
||||||
}
|
}
|
||||||
postAction('/workFlow/completeTask', query).then((res) => {
|
postAction('/workFlow/completeTask', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
Reference in New Issue
Block a user