Browse Source

上传录音

feature-banli
是小王呀\24601 9 months ago
parent
commit
6a26486c0f
  1. 5
      src/views/modules/shequzhili/event/cpts/event-info.vue
  2. 14
      src/views/modules/shequzhili/event/cpts/process-form-assign.vue
  3. 39
      src/views/modules/shequzhili/event/cpts/process-form-complete.vue
  4. 2
      src/views/modules/shequzhili/event/cpts/process-form.vue

5
src/views/modules/shequzhili/event/cpts/event-info.vue

@ -345,9 +345,7 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(this.eventDetailData,"sdkljgflksdgjlksjkdglsjk");
}, },
methods: { methods: {
@ -413,6 +411,7 @@ changeName(val) {
} }
}, },
async handleComfirm() { async handleComfirm() {
console.log();
this.startLoading(); this.startLoading();
if (this.pageTypeCopy === "dispose" ||this.pageTypeCopy === "assign" ||this.pageTypeCopy === 'resetAssign'|| this.pageTypeCopy === "check" || this.pageTypeCopy === "return" ) { if (this.pageTypeCopy === "dispose" ||this.pageTypeCopy === "assign" ||this.pageTypeCopy === 'resetAssign'|| this.pageTypeCopy === "check" || this.pageTypeCopy === "return" ) {
await this.handelDispose(); await this.handelDispose();

14
src/views/modules/shequzhili/event/cpts/process-form-assign.vue

@ -34,6 +34,16 @@
</el-date-picker> </el-date-picker>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="办结是否需要提报录音" prop="videoNeedFlag" label-width="150px"
:class="{ 'form-item': source === 'visiual' }" style="display: block">
<div :class="{ 'visiual-form': source === 'visiual' }">
<!-- <el-date-picker v-model.trim="formData.contactTime" class="cell-width-1" type="datetime"
placeholder="办结时限" value-format="yyyy-MM-dd HH:mm:ss">
</el-date-picker> -->
<el-radio v-model="formData.videoNeedFlag" label="1"></el-radio>
<el-radio v-model="formData.videoNeedFlag" label="0"></el-radio>
</div>
</el-form-item>
<el-form-item label="(部门)办结时限" prop="timeLimit" label-width="150px" <el-form-item label="(部门)办结时限" prop="timeLimit" label-width="150px"
:class="{ 'form-item': source === 'visiual' }" style="display: block"> :class="{ 'form-item': source === 'visiual' }" style="display: block">
<div :class="{ 'visiual-form': source === 'visiual' }"> <div :class="{ 'visiual-form': source === 'visiual' }">
@ -78,6 +88,7 @@ export default {
isCascaderDisabled:false, isCascaderDisabled:false,
customerId: localStorage.getItem("customerId"), customerId: localStorage.getItem("customerId"),
formData: { formData: {
videoNeedFlag:"0",//10
operationType: "5", //[0: 5 6] operationType: "5", //[0: 5 6]
handlingReq:'',// handlingReq:'',//
transferAdvice:'',// transferAdvice:'',//
@ -129,6 +140,9 @@ export default {
], ],
contactTime: [ contactTime: [
{ required: true, message: '联系当事人时限不能为空', trigger: 'blur' }, { required: true, message: '联系当事人时限不能为空', trigger: 'blur' },
],
videoNeedFlag:[
{ required: true, message: '请选择是否需要提报录音', trigger: 'blur' },
] ]
}, },
selCateObj: { selCateObj: {

39
src/views/modules/shequzhili/event/cpts/process-form-complete.vue

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

2
src/views/modules/shequzhili/event/cpts/process-form.vue

@ -172,6 +172,8 @@ export default {
} else if (this.operationType === '11' || this.pageType === 'check') { } else if (this.operationType === '11' || this.pageType === 'check') {
this.$refs.ref_process_form_complete.getReplayInfo() this.$refs.ref_process_form_complete.getReplayInfo()
this.replayInfo = this.$refs.ref_process_form_complete.formData; 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] 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'){ if(this.pageType === 'check'){
this.replayInfo.operationType = '12'; this.replayInfo.operationType = '12';

Loading…
Cancel
Save