der提交加参数

This commit is contained in:
qq787203167
2022-05-20 14:27:36 +08:00
parent 9e8a9c0c2c
commit f55adecded
4 changed files with 33 additions and 8 deletions
@@ -53,7 +53,7 @@
{{$t('edit')}}
</a>
<a class="text"
v-if="$route.query.TaskKey == 'zrrclrw'"
v-if="$route.query.TaskKey == 'zrrclrw' && result.status"
:disabled="!result.status"
@click="confirm(result)">
<span v-if="result.status == 'NotDone'">
@@ -607,6 +607,7 @@
this.dataSourceTable.forEach(val => {
this.distributionEngineerList.push({
name: val.userName,
id:val.id,
userId: val.userId,
deliveryInstructions: val.deliveryInstructions
})
@@ -2,7 +2,8 @@
<div class="box">
<div class="box-text">
<div class="header-text">
{{$route.query.TaskKey == 'zrrclrw' ? $t('personLiableConfirm'):$t('fillInProjectDelivery')}}
{{$route.query.TaskKey == 'zrrclrw' || $route.query.TaskKey == 'fqrsh'
? $t('personLiableConfirm'):$t('fillInProjectDelivery')}}
</div>
</div>
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
@@ -110,7 +111,7 @@
</div>
<a-form-model-item class="itemModel">
<span class="text-header">
爱上克里夫就的撒开了房间圣诞快乐房价士大夫打扫房间圣诞快乐房价是罚款乱收费考虑是否就但是考虑
{{reviewResult[formInline.reviewResult]}}
</span>
</a-form-model-item>
</div>
@@ -170,6 +171,14 @@
data() {
return {
formInline: {},
reviewResult: {
'launch': this.$t('Launch'),
'Compliance': this.$t('accord'),
'Non-Compliance': this.$t('nonConformity'),
'To be tracked': this.$t('Tracked'),
'NA': this.$t('notInvolved'),
'No rating': this.$t('toBeConfirmed')
},
isTrue: false,
rules: {
reviewResult: [
@@ -210,17 +219,22 @@
},
mounted() {
this.$route.query.isDisplay = JSON.parse(this.$route.query.isDisplay)
if (this.queryBy) {
if (this.queryBy && this.$route.query.TaskKey == 'fqrsh') {
this.formInline.reviewResult = this.queryBy.reviewResult || undefined
this.formInline.approvalOpinion = ''
this.formInline.approvalOpinion = this.queryBy.approvalOpinion
this.formInline = { ...this.formInline }
}
if (this.queryPersonInCharge) {
if (this.queryPersonInCharge && this.$route.query.TaskKey == 'dreDispose') {
this.formInline.deliveryRequirements = this.queryPersonInCharge.deliveryRequirements
this.formInline.engineerFeedbackContent = this.queryPersonInCharge.engineerFeedbackContent
this.formInline.fileId = this.queryPersonInCharge.fileId
this.formInline = { ...this.formInline }
}
if (this.queryBy && this.$route.query.TaskKey == 'zrrclrw') {
this.formInline.reviewResult = this.queryBy.reviewResult || undefined
this.formInline.approvalOpinion = this.queryBy.approvalOpinion
this.formInline = { ...this.formInline }
}
},
methods: {
submit(callBack) {
@@ -15,7 +15,7 @@
:columns="columns"
>
<span slot="reviewResult" slot-scope="text,result">
{{reviewResult[text]}}
{{text}}
</span>
</a-table>
</div>
@@ -20,6 +20,7 @@
/>
<engineeringConfirmation
v-if="isDisplay"
ref="engineeringConfirmationRef"
/>
<reviewedByThePersonInCharge
v-if="isDisplay"
@@ -257,7 +258,16 @@
this.loading = true
res.operatorTime = operatorTime
if (this.$route.query.TaskKey == 'dreDispose') {
this.dreSubmit(res)
let dataSource = this.$refs.engineeringConfirmationRef.dataSource
let isTrue
for (let i = 0; i < dataSource.length; i++) {
if (dataSource[i].status == 'status' || !dataSource[i].status) {
}
}
if (isTrue) {
this.dreSubmit(res)
}
} else {
this.completeTask(res)
}