|
|
@ -9,7 +9,7 @@ |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="上传录音" label-width="118px" :class="{ 'form-item': source === 'visiual' }" prop="luyin"> |
|
|
|
<el-form-item label="上传录音" label-width="118px" :class="{ 'form-item': source === 'visiual' }" prop="luyin" :required="required"> |
|
|
|
<el-upload v-if="audioList.length < 3" :headers="$getElUploadHeaders()" |
|
|
|
:action="uploadUlr" :data="{ customerId: customerId }" :show-file-list="false" |
|
|
|
:on-success="handleAudioSuccess" :before-upload="beforeAudioUpload" |
|
|
@ -377,6 +377,7 @@ export default { |
|
|
|
value: 'bad' |
|
|
|
} |
|
|
|
], |
|
|
|
|
|
|
|
dataRule: { |
|
|
|
content: [ |
|
|
|
{ required: true, message: "办理情况不能为空", trigger: "blur" }, |
|
|
@ -417,7 +418,9 @@ export default { |
|
|
|
satisfaction: [ |
|
|
|
{ required: true, message: "请选择服务满意度", trigger: "blur" }, |
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
required:false, |
|
|
|
imgList: [], |
|
|
|
audioList: [], |
|
|
|
docList:[], |
|
|
@ -426,6 +429,7 @@ export default { |
|
|
|
}, |
|
|
|
components: {}, |
|
|
|
computed: { |
|
|
|
|
|
|
|
}, |
|
|
|
props: { |
|
|
|
eventId: { |
|
|
@ -455,28 +459,35 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
"replayDetailObj": function (newVal,oldVal) { |
|
|
|
console.log(newVal,'bianle'); |
|
|
|
if(this.pageType === 'check'){ |
|
|
|
this.formData = newVal; |
|
|
|
if(this.formData.internalFile){ |
|
|
|
this.imgList = this.formData.internalFile.filter(item=>item.attachmentType==='image') |
|
|
|
this.audioList = this.formData.internalFile.filter(item=>item.attachmentType==='voice') |
|
|
|
this.docList = this.formData.internalFile.filter(item=>item.attachmentType == 'doc') |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// // 监听 formData.video 的变化,动态更新验证规则 |
|
|
|
// 'eventDetailData.videoNeedFlag'(newVal) { |
|
|
|
// if (newVal === 1) { |
|
|
|
// console.log("sdlflkshgslg"); |
|
|
|
|
|
|
|
// // 如果 video 为 1,luyin 变为必填 |
|
|
|
// this.dataRule.luyin = [{ required: true, message: "请选择服务满意度", trigger: "blur" }]; |
|
|
|
// } else { |
|
|
|
// // 如果 video 为 0,luyin 变为非必填 |
|
|
|
// this.dataRule.luyin = [{ required: false, message: "请选择服务满意度", trigger: "blur" }]; |
|
|
|
// } |
|
|
|
// } |
|
|
|
}, |
|
|
|
created() { }, |
|
|
|
|
|
|
|
mounted() { |
|
|
|
console.log(this.eventDetailData,"alallalalalalalal"); |
|
|
|
if (this.eventDetailData.videoNeedFlag=="1") { |
|
|
|
this.required=true |
|
|
|
console.log("sdlhgkjsghkld"); |
|
|
|
|
|
|
|
} |
|
|
|
const { user } = this.$store.state; |
|
|
|
this.agencyId = user.agencyId; |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
handelChangeSatisfaction(val) { |
|
|
|
console.log(val); |
|
|
|
if (val === 2) { |
|
|
|
this.$set(this.dataRule, 'dissatisfyReason', [{ required: true, message: "请选择不满意原因", trigger: "blur" }]); |
|
|
|
} else { |
|
|
@ -609,6 +620,8 @@ export default { |
|
|
|
async getReplayInfo() { |
|
|
|
this.okflag = false; |
|
|
|
this.$refs["ref_form"].validate((valid, messageObj) => { |
|
|
|
console.log(valid,"sdjglksdjdglksjg"); |
|
|
|
|
|
|
|
if (!valid) { |
|
|
|
app.util.validateRule(messageObj); |
|
|
|
} else { |
|
|
|