对接任务确认流程
This commit is contained in:
@@ -52,6 +52,7 @@
|
|||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text-fq">
|
<div class="title-text-fq">
|
||||||
|
<span class="Required" style="margin-right: 13px"></span>
|
||||||
<span class="title-text-text" :title="$t('projectDeliveryDescription')">{{$t('projectDeliveryDescription')}}</span>
|
<span class="title-text-text" :title="$t('projectDeliveryDescription')">{{$t('projectDeliveryDescription')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel">
|
<a-form-model-item class="itemModel">
|
||||||
@@ -66,11 +67,14 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text-fq">
|
<div class="title-text-fq">
|
||||||
|
<span class="Required" v-if="this.queryPersonInCharge.status != 'haveDone'">*</span>
|
||||||
<span class="title-text-text"
|
<span class="title-text-text"
|
||||||
:title="$t('feedbackFromTheEngineer')">{{$t('feedbackFromTheEngineer')}}</span>
|
:title="$t('feedbackFromTheEngineer')">{{$t('feedbackFromTheEngineer')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="engineerFeedbackContent">
|
<a-form-model-item class="itemModel"
|
||||||
|
:prop="this.queryPersonInCharge.status == 'haveDone'?'':'engineerFeedbackContent'">
|
||||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('feedbackFromTheEngineer')"
|
<a-textarea :placeholder="$t('pleaseEnter')+$t('feedbackFromTheEngineer')"
|
||||||
|
:disabled="this.queryPersonInCharge.status == 'haveDone'?true:false"
|
||||||
v-model="formInline.engineerFeedbackContent"
|
v-model="formInline.engineerFeedbackContent"
|
||||||
:rows="4"/>
|
:rows="4"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
@@ -81,10 +85,11 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text-fq">
|
<div class="title-text-fq">
|
||||||
<span class="title-text-text"
|
<span class="Required" v-if="this.queryPersonInCharge.status != 'haveDone'">*</span>
|
||||||
:title="$t('Deliverables')">{{$t('Deliverables')}}</span>
|
<span class="title-text-text"
|
||||||
|
:title="$t('Deliverables')">{{$t('Deliverables')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel">
|
<a-form-model-item class="itemModel" :prop="this.queryPersonInCharge.status == 'haveDone'?'':'fileId'">
|
||||||
<a-button type="primary" class="button-text"
|
<a-button type="primary" class="button-text"
|
||||||
@click="clickButtonToUpload('fileId')">
|
@click="clickButtonToUpload('fileId')">
|
||||||
{{ (formInline.fileId === 'null' || formInline.fileId === '' ||
|
{{ (formInline.fileId === 'null' || formInline.fileId === '' ||
|
||||||
@@ -142,7 +147,9 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"/>
|
<uploadFile ref="uploadFile"
|
||||||
|
:disabled="this.queryPersonInCharge.status == 'haveDone'?true:false"
|
||||||
|
@uploadSuccess="uploadSuccess"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -155,7 +162,7 @@
|
|||||||
components: {
|
components: {
|
||||||
uploadFile
|
uploadFile
|
||||||
},
|
},
|
||||||
props: ['queryBy','queryPersonInCharge'],
|
props: ['queryBy', 'queryPersonInCharge'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formInline: {},
|
formInline: {},
|
||||||
@@ -176,11 +183,23 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
engineerFeedbackContent: [
|
engineerFeedbackContent: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('feedbackFromTheEngineer') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
max: 300,
|
max: 300,
|
||||||
message: this.$t('feedbackFromTheEngineer') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
message: this.$t('feedbackFromTheEngineer') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
fileId: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('Deliverables') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'change'
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -191,10 +210,12 @@
|
|||||||
this.formInline.approvalOpinion = ''
|
this.formInline.approvalOpinion = ''
|
||||||
this.formInline = { ...this.formInline }
|
this.formInline = { ...this.formInline }
|
||||||
}
|
}
|
||||||
if (this.queryPersonInCharge){
|
if (this.queryPersonInCharge) {
|
||||||
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
|
||||||
|
console.log(this.formInline)
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -278,7 +299,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.title-text-fq {
|
.title-text-fq {
|
||||||
width: 124px;
|
width: 130px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|||||||
@@ -22,11 +22,13 @@
|
|||||||
v-if="isDisplay"
|
v-if="isDisplay"
|
||||||
/>
|
/>
|
||||||
<reviewedByThePersonInCharge
|
<reviewedByThePersonInCharge
|
||||||
|
v-if="isDisplay"
|
||||||
ref="reviewedByThePersonInChargeRef"
|
ref="reviewedByThePersonInChargeRef"
|
||||||
:queryBy="queryBy"
|
:queryBy="queryBy"
|
||||||
:queryPersonInCharge="queryPersonInCharge"
|
:queryPersonInCharge="queryPersonInCharge"
|
||||||
/>
|
/>
|
||||||
<footerProcess
|
<footerProcess
|
||||||
|
v-if="isDisplay"
|
||||||
:is-termination-process="isTerminationProcess"
|
:is-termination-process="isTerminationProcess"
|
||||||
:is-adopt="isAdopt"
|
:is-adopt="isAdopt"
|
||||||
:isSendBack="isSendBack"
|
:isSendBack="isSendBack"
|
||||||
@@ -168,11 +170,18 @@
|
|||||||
if (this.$route.query.TaskKey == 'zrrclrw') {
|
if (this.$route.query.TaskKey == 'zrrclrw') {
|
||||||
return true
|
return true
|
||||||
} else if (this.$route.query.TaskKey == 'dreDispose') {
|
} else if (this.$route.query.TaskKey == 'dreDispose') {
|
||||||
return true
|
if (!this.queryPersonInCharge.engineerFeedbackContent && this.queryPersonInCharge.status != 'haveDone') {
|
||||||
|
return true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
isResubmit() {
|
isResubmit() {
|
||||||
|
if (this.$route.query.TaskKey == 'dreDispose') {
|
||||||
|
if (this.queryPersonInCharge.engineerFeedbackContent && this.queryPersonInCharge.status != 'haveDone') {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -185,7 +194,7 @@
|
|||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(this.url.list, query).then((res) => {
|
getAction(this.url.list, query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.queryPersonInCharge = res.result[0] || {}
|
this.queryPersonInCharge = res.result[1] || {}
|
||||||
if (this.$route.query.taskIds) {
|
if (this.$route.query.taskIds) {
|
||||||
this.isDisplay = false
|
this.isDisplay = false
|
||||||
this.queryTaskDetailByTask(function() {
|
this.queryTaskDetailByTask(function() {
|
||||||
|
|||||||
@@ -283,7 +283,7 @@
|
|||||||
id: this.$route.query.id,
|
id: this.$route.query.id,
|
||||||
studioEngineer: this.$route.query.studioEngineer,
|
studioEngineer: this.$route.query.studioEngineer,
|
||||||
serialNumber: val.serialNumber,
|
serialNumber: val.serialNumber,
|
||||||
TaskKey: isTrue ? val.designTaskDefinitionKey : 'hhhhh',
|
TaskKey: val.designTaskDefinitionKey,
|
||||||
flowType: 2,
|
flowType: 2,
|
||||||
Sponsor: 'designInitiatorName',
|
Sponsor: 'designInitiatorName',
|
||||||
personLiable: 'designDutyName',
|
personLiable: 'designDutyName',
|
||||||
@@ -304,7 +304,7 @@
|
|||||||
studioEngineer: this.$route.query.studioEngineer,
|
studioEngineer: this.$route.query.studioEngineer,
|
||||||
projectLibraryId: this.$route.query.id,
|
projectLibraryId: this.$route.query.id,
|
||||||
serialNumber: val.serialNumber,
|
serialNumber: val.serialNumber,
|
||||||
TaskKey: isTrue ? val.prehomoTaskDefinitionKey : 'hhhh',
|
TaskKey: val.prehomoTaskDefinitionKey,
|
||||||
flowType: 3,
|
flowType: 3,
|
||||||
id: this.$route.query.id,
|
id: this.$route.query.id,
|
||||||
Sponsor: 'prehomoInitiatorName',
|
Sponsor: 'prehomoInitiatorName',
|
||||||
@@ -327,7 +327,7 @@
|
|||||||
studioEngineer: this.$route.query.studioEngineer,
|
studioEngineer: this.$route.query.studioEngineer,
|
||||||
serialNumber: val.serialNumber,
|
serialNumber: val.serialNumber,
|
||||||
projectTaskInventoryId: val.projectLawsInventoryId,
|
projectTaskInventoryId: val.projectLawsInventoryId,
|
||||||
TaskKey: isTrue ? val.verifyTaskDefinitionKey : 'hhhhh',
|
TaskKey: val.verifyTaskDefinitionKey,
|
||||||
flowType: 4,
|
flowType: 4,
|
||||||
Sponsor: 'verifyInitiatorName',
|
Sponsor: 'verifyInitiatorName',
|
||||||
personLiable: 'verifyDutyName',
|
personLiable: 'verifyDutyName',
|
||||||
|
|||||||
Reference in New Issue
Block a user