der提交加参数
This commit is contained in:
@@ -53,7 +53,7 @@
|
|||||||
{{$t('edit')}}
|
{{$t('edit')}}
|
||||||
</a>
|
</a>
|
||||||
<a class="text"
|
<a class="text"
|
||||||
v-if="$route.query.TaskKey == 'zrrclrw'"
|
v-if="$route.query.TaskKey == 'zrrclrw' && result.status"
|
||||||
:disabled="!result.status"
|
:disabled="!result.status"
|
||||||
@click="confirm(result)">
|
@click="confirm(result)">
|
||||||
<span v-if="result.status == 'NotDone'">
|
<span v-if="result.status == 'NotDone'">
|
||||||
@@ -607,6 +607,7 @@
|
|||||||
this.dataSourceTable.forEach(val => {
|
this.dataSourceTable.forEach(val => {
|
||||||
this.distributionEngineerList.push({
|
this.distributionEngineerList.push({
|
||||||
name: val.userName,
|
name: val.userName,
|
||||||
|
id:val.id,
|
||||||
userId: val.userId,
|
userId: val.userId,
|
||||||
deliveryInstructions: val.deliveryInstructions
|
deliveryInstructions: val.deliveryInstructions
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="box-text">
|
<div class="box-text">
|
||||||
<div class="header-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>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
||||||
@@ -110,7 +111,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel">
|
<a-form-model-item class="itemModel">
|
||||||
<span class="text-header">
|
<span class="text-header">
|
||||||
爱上克里夫就的撒开了房间圣诞快乐房价士大夫打扫房间圣诞快乐房价是罚款乱收费考虑是否就但是考虑
|
{{reviewResult[formInline.reviewResult]}}
|
||||||
</span>
|
</span>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -170,6 +171,14 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formInline: {},
|
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,
|
isTrue: false,
|
||||||
rules: {
|
rules: {
|
||||||
reviewResult: [
|
reviewResult: [
|
||||||
@@ -210,17 +219,22 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$route.query.isDisplay = JSON.parse(this.$route.query.isDisplay)
|
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.reviewResult = this.queryBy.reviewResult || undefined
|
||||||
this.formInline.approvalOpinion = ''
|
this.formInline.approvalOpinion = this.queryBy.approvalOpinion
|
||||||
this.formInline = { ...this.formInline }
|
this.formInline = { ...this.formInline }
|
||||||
}
|
}
|
||||||
if (this.queryPersonInCharge) {
|
if (this.queryPersonInCharge && this.$route.query.TaskKey == 'dreDispose') {
|
||||||
this.formInline.deliveryRequirements = this.queryPersonInCharge.deliveryRequirements
|
this.formInline.deliveryRequirements = this.queryPersonInCharge.deliveryRequirements
|
||||||
this.formInline.engineerFeedbackContent = this.queryPersonInCharge.engineerFeedbackContent
|
this.formInline.engineerFeedbackContent = this.queryPersonInCharge.engineerFeedbackContent
|
||||||
this.formInline.fileId = this.queryPersonInCharge.fileId
|
this.formInline.fileId = this.queryPersonInCharge.fileId
|
||||||
this.formInline = { ...this.formInline }
|
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: {
|
methods: {
|
||||||
submit(callBack) {
|
submit(callBack) {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
:columns="columns"
|
:columns="columns"
|
||||||
>
|
>
|
||||||
<span slot="reviewResult" slot-scope="text,result">
|
<span slot="reviewResult" slot-scope="text,result">
|
||||||
{{reviewResult[text]}}
|
{{text}}
|
||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
/>
|
/>
|
||||||
<engineeringConfirmation
|
<engineeringConfirmation
|
||||||
v-if="isDisplay"
|
v-if="isDisplay"
|
||||||
|
ref="engineeringConfirmationRef"
|
||||||
/>
|
/>
|
||||||
<reviewedByThePersonInCharge
|
<reviewedByThePersonInCharge
|
||||||
v-if="isDisplay"
|
v-if="isDisplay"
|
||||||
@@ -257,7 +258,16 @@
|
|||||||
this.loading = true
|
this.loading = true
|
||||||
res.operatorTime = operatorTime
|
res.operatorTime = operatorTime
|
||||||
if (this.$route.query.TaskKey == 'dreDispose') {
|
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 {
|
} else {
|
||||||
this.completeTask(res)
|
this.completeTask(res)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user