对接任务确认流程

This commit is contained in:
qq787203167
2022-05-19 20:32:38 +08:00
parent ca8b5f55ee
commit 7c64025f9f
6 changed files with 163 additions and 152 deletions
@@ -7,19 +7,19 @@
</div>
<div class="header-content">
<div class="operator-text"
v-if="$route.query.TaskKey == 'zrrclrw'"
v-if="$route.query.TaskKey == 'zrrclrw' && this.$route.query.isDisplay"
@click="distributionEngineerClick($t('distributionEngineer'),1)">
<a-icon type="audit"/>
{{ $t('distributionEngineer') }}
</div>
<div class="operator-text"
v-if="$route.query.TaskKey == 'zrrclrw'"
v-if="$route.query.TaskKey == 'zrrclrw' && this.$route.query.isDisplay"
@click="reminderHandling()">
<a-icon type="sound"/>
{{ $t('reminderHandling') }}
</div>
<div class="operator-text"
v-if="$route.query.TaskKey == 'zrrclrw'"
v-if="$route.query.TaskKey == 'zrrclrw' && this.$route.query.isDisplay"
@click="distributionEngineerClick($t('addFeedback'),2)">
<a-icon type="plus-circle"/>
{{ $t('addFeedback') }}
@@ -448,12 +448,13 @@
}
},
mounted() {
this.$route.query.isDisplay = JSON.parse(this.$route.query.isDisplay)
this.getList()
},
computed: {
columns() {
let columnResult = JSON.parse(JSON.stringify(this.columnsAll))
if (this.$route.query.TaskKey != 'zrrclrw') {
if (this.$route.query.TaskKey != 'zrrclrw' || !this.$route.query.isDisplay) {
for (var i = 0; i < columnResult.length; i++) {
if (columnResult[i].title === this.$t('operation')) {
columnResult.splice(i, 1)
@@ -467,7 +468,7 @@
methods: {
pageOnChange(page, pageSize) {
this.pageNo = page
this.getList()
this.getDetails()
},
handleOk() {
this.$refs.ruleForm.validate(valid => {
@@ -10,12 +10,12 @@
<a-col :span="24">
<div class="box-title-text">
<div class="title-text">
<span class="Required" v-if="$route.query.TaskKey == 'zrrclrw'">*</span>
<span class="Required" v-if="$route.query.TaskKey == 'zrrclrw' && $route.query.isDisplay">*</span>
<span class="title-text-text" :title="$t('reviewResults')">{{$t('reviewResults')}}</span>
</div>
<a-form-model-item class="itemModel" :prop="$route.query.TaskKey == 'fqrsh'?'':'reviewResult'">
<a-form-model-item class="itemModel" :prop="!$route.query.isDisplay?'':'reviewResult'">
<a-radio-group style="margin-top: 2px"
:disabled="$route.query.TaskKey == 'fqrsh'?true:false"
:disabled="!$route.query.isDisplay?true:false"
class="box-input"
v-model="formInline.reviewResult">
<a-radio value="Compliance">
@@ -42,7 +42,9 @@
<span class="title-text-text" :title="$t('feedbackMessage')">{{$t('feedbackMessage')}}</span>
</div>
<a-form-model-item class="itemModel" prop="approvalOpinion">
<a-textarea :placeholder="$t('pleaseEnter')+$t('feedbackMessage')" v-model="formInline.approvalOpinion"
<a-textarea :placeholder="$t('pleaseEnter')+$t('feedbackMessage')"
:disabled="!$route.query.isDisplay?true:false"
v-model="formInline.approvalOpinion"
:rows="4"/>
</a-form-model-item>
</div>
@@ -67,14 +69,14 @@
<a-col :span="12">
<div class="box-title-text">
<div class="title-text-fq">
<span class="Required" v-if="this.queryPersonInCharge.status != 'haveDone'">*</span>
<span class="Required" v-if="$route.query.isDisplay">*</span>
<span class="title-text-text"
:title="$t('feedbackFromTheEngineer')">{{$t('feedbackFromTheEngineer')}}</span>
</div>
<a-form-model-item class="itemModel"
:prop="this.queryPersonInCharge.status == 'haveDone'?'':'engineerFeedbackContent'">
:prop="!$route.query.isDisplay?'':'engineerFeedbackContent'">
<a-textarea :placeholder="$t('pleaseEnter')+$t('feedbackFromTheEngineer')"
:disabled="this.queryPersonInCharge.status == 'haveDone'?true:false"
:disabled="!$route.query.isDisplay?true:false"
v-model="formInline.engineerFeedbackContent"
:rows="4"/>
</a-form-model-item>
@@ -85,11 +87,11 @@
<a-col :span="12">
<div class="box-title-text">
<div class="title-text-fq">
<span class="Required" v-if="this.queryPersonInCharge.status != 'haveDone'">*</span>
<span class="Required" v-if="this.$route.query.isDisplay">*</span>
<span class="title-text-text"
:title="$t('Deliverables')">{{$t('Deliverables')}}</span>
</div>
<a-form-model-item class="itemModel" :prop="this.queryPersonInCharge.status == 'haveDone'?'':'fileId'">
<a-form-model-item class="itemModel" :prop="!this.$route.query.isDisplay?'':'fileId'">
<a-button type="primary" class="button-text"
@click="clickButtonToUpload('fileId')">
{{ (formInline.fileId === 'null' || formInline.fileId === '' ||
@@ -140,7 +142,9 @@
<span class="title-text-text" :title="$t('feedbackMessage')">{{$t('feedbackMessage')}}</span>
</div>
<a-form-model-item class="itemModel" prop="approvalOpinion">
<a-textarea :placeholder="$t('pleaseEnter')+$t('feedbackMessage')" v-model="formInline.approvalOpinion"
<a-textarea :placeholder="$t('pleaseEnter')+$t('feedbackMessage')"
:disabled="!$route.query.isDisplay?true:false"
v-model="formInline.approvalOpinion"
:rows="4"/>
</a-form-model-item>
</div>
@@ -148,7 +152,7 @@
</a-row>
</a-form-model>
<uploadFile ref="uploadFile"
:disabled="this.queryPersonInCharge.status == 'haveDone'?true:false"
:disabled="!$route.query.isDisplay?true:false"
@uploadSuccess="uploadSuccess"/>
</div>
</template>
@@ -205,6 +209,7 @@
}
},
mounted() {
this.$route.query.isDisplay = JSON.parse(this.$route.query.isDisplay)
if (this.queryBy) {
this.formInline.reviewResult = this.queryBy.reviewResult || undefined
this.formInline.approvalOpinion = ''
@@ -214,7 +219,6 @@
this.formInline.deliveryRequirements = this.queryPersonInCharge.deliveryRequirements
this.formInline.engineerFeedbackContent = this.queryPersonInCharge.engineerFeedbackContent
this.formInline.fileId = this.queryPersonInCharge.fileId
console.log(this.formInline)
this.formInline = { ...this.formInline }
}
},