From 6a26486c0f94749ae72a4795ab8b80e00d812363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Wed, 11 Dec 2024 09:23:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=BD=95=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shequzhili/event/cpts/event-info.vue | 5 +-- .../event/cpts/process-form-assign.vue | 14 +++++++ .../event/cpts/process-form-complete.vue | 39 ++++++++++++------- .../shequzhili/event/cpts/process-form.vue | 2 + 4 files changed, 44 insertions(+), 16 deletions(-) diff --git a/src/views/modules/shequzhili/event/cpts/event-info.vue b/src/views/modules/shequzhili/event/cpts/event-info.vue index 7f8e1dee2..0c31734fc 100644 --- a/src/views/modules/shequzhili/event/cpts/event-info.vue +++ b/src/views/modules/shequzhili/event/cpts/event-info.vue @@ -345,9 +345,7 @@ export default { } }, mounted() { - - - + console.log(this.eventDetailData,"sdkljgflksdgjlksjkdglsjk"); }, methods: { @@ -413,6 +411,7 @@ changeName(val) { } }, async handleComfirm() { + console.log(); this.startLoading(); if (this.pageTypeCopy === "dispose" ||this.pageTypeCopy === "assign" ||this.pageTypeCopy === 'resetAssign'|| this.pageTypeCopy === "check" || this.pageTypeCopy === "return" ) { await this.handelDispose(); diff --git a/src/views/modules/shequzhili/event/cpts/process-form-assign.vue b/src/views/modules/shequzhili/event/cpts/process-form-assign.vue index 8806ba195..ac5362de0 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-assign.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-assign.vue @@ -34,6 +34,16 @@ + +
+ + + +
+
@@ -78,6 +88,7 @@ export default { isCascaderDisabled:false, customerId: localStorage.getItem("customerId"), formData: { + videoNeedFlag:"0",//是否需要录音。是为1不是为0 operationType: "5", //处理方式[0:已回复 5、指派 6、完成并回复] handlingReq:'',//办理要求 transferAdvice:'',//转办意见 @@ -129,6 +140,9 @@ export default { ], contactTime: [ { required: true, message: '联系当事人时限不能为空', trigger: 'blur' }, + ], + videoNeedFlag:[ + { required: true, message: '请选择是否需要提报录音', trigger: 'blur' }, ] }, selCateObj: { diff --git a/src/views/modules/shequzhili/event/cpts/process-form-complete.vue b/src/views/modules/shequzhili/event/cpts/process-form-complete.vue index a6c5dbc04..d2cbcb55d 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-complete.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-complete.vue @@ -9,7 +9,7 @@
- + 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 { diff --git a/src/views/modules/shequzhili/event/cpts/process-form.vue b/src/views/modules/shequzhili/event/cpts/process-form.vue index 33acbc0e5..e36b38dac 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form.vue @@ -172,6 +172,8 @@ export default { } else if (this.operationType === '11' || this.pageType === 'check') { this.$refs.ref_process_form_complete.getReplayInfo() this.replayInfo = this.$refs.ref_process_form_complete.formData; + console.log(this.replayInfo,"sdlkjgdslkjlksgjlk"); + this.replayInfo.files = [...this.$refs.ref_process_form_complete.imgList,...this.$refs.ref_process_form_complete.audioList,...this.$refs.ref_process_form_complete.docList] if(this.pageType === 'check'){ this.replayInfo.operationType = '12';