Browse Source

11

dev-map-local
jiangyy 3 years ago
parent
commit
e2b5a6e454
  1. 54
      src/views/modules/communityService/fuwujilu/detailForm.vue

54
src/views/modules/communityService/fuwujilu/detailForm.vue

@ -21,7 +21,7 @@
<div class="info-prop">
<span class="info-title-2">政策依据</span>
<span>{{ formData.policyId||'--' }}</span>
<span>{{ formData.policyName||'--' }}</span>
<el-button v-if="formData.policyId"
style="margin-left: 10px"
type="primary"
@ -64,11 +64,11 @@
<div class="info-prop">
<span class="info-title-2">服务状态</span>
<span>{{ feedbackFormData.serviceStatus||'--' }}</span>
<span>{{ feedbackFormData.serviceStatusShow||'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-2">满意度</span>
<span>{{ feedbackFormData.satisfaction||'--' }}</span>
<span>{{ feedbackFormData.satisfactionShow||'--' }}</span>
</div>
<div class="info-prop">
@ -87,8 +87,8 @@
<div class="info-prop">
<span class="info-title-2">附件</span>
<file-list v-if="feedbackFormData.attachmentList.length>0"
:fileList="feedbackFormData.attachmentList"></file-list>
<file-list v-if="fileList.length>0"
:fileList="fileList"></file-list>
<span v-else>--</span>
</div>
@ -176,30 +176,7 @@ export default {
ruleList: [],
policyList: [],
statusArray: [
{
value: "in_service",
label: "进行中",
},
{
value: "completed",
label: "已完成",
},
],
satisfyArray: [
{
value: "bad",
label: "不满意",
},
{
value: "good",
label: "基本满意",
},
{
value: "perfect",
label: "非常满意",
},
],
}
@ -279,6 +256,25 @@ export default {
this.formData = { ...data }
this.formData.serviceRecordId = this.serviceRecordId
this.feedbackFormData = { ...data.feedback }
this.formData.policyName = ''
this.feedbackFormData.serviceStatusShow = ''
this.feedbackFormData.satisfactionShow = ''
this.statusArray.forEach(element => {
if (this.feedbackFormData.serviceStatus === element.value) {
this.feedbackFormData.serviceStatusShow = element.label
}
});
this.satisfyArray.forEach(element => {
if (this.feedbackFormData.satisfaction === element.value) {
this.feedbackFormData.satisfactionShow = element.label
}
});
this.policyList.forEach(element => {
if (this.formData.policyId === element.policyId) {
this.formData.policyName = element.title
}
});
this.fileList = []
if (data.feedback && data.feedback.fileList && data.feedback.fileList.length > 0) {

Loading…
Cancel
Save