+
+
+
+
+
+
+
@@ -247,6 +263,7 @@ export default {
pageSize: 20,
tableData:{},
afterList:[],
+ minDate:new Date(),
actions: [
{ name: '已联系当事人', value: "9" },
{ name: '办理中', value: "10" },
@@ -299,7 +316,7 @@ export default {
//不合规诉求类型
verified: '', //办理真实度是否属实 0:属实 1:不属实
returnVisitor: '',//回访人
- returnTime: '',//回访时间
+ returnTime: "",//回访时间
loseContact: '',//联系当事人0:已联系 1:未取得联系
putThrough: '',//接通电话 0:接通 1:未接通
cooperate: '',//是否配合回访0:配合 1:不配合
@@ -314,6 +331,7 @@ export default {
this.icEventId =this.$route.query.icEventId;
this.icEventList()
this.process()
+
},
@@ -325,7 +343,11 @@ export default {
},
methods: {
-
+ onshowdissatisfyReason(item){
+ this.dissatisfyReasonName=item.name
+ this.dissatisfyReason=item.value
+ this.showdissatisfyReason=false
+ },
oncooperate(item){
this.cooperateName=item.name
this.cooperate=item.value
@@ -374,6 +396,7 @@ export default {
}).then(res => {
this.tableData.push(res.agencyName)
console.log(this.tableData,"skjlfhskdjfh");
+
}).catch(err => {
})
@@ -384,10 +407,14 @@ export default {
}).then(res => {
this.afterList=res.data
console.log(this.afterList,"skjlfhskdjfh");
+
}).catch(err => {
})
+ this.afterList.forEach(item=>{
+ item.processTime=this.formatDate1(new Date(item.processTime * 1000))
+ })
},
onOperationType(){
this.status=true
@@ -395,6 +422,7 @@ export default {
},
handlelist(){
console.log("dslkfkhd");
+ this.returnTime=this.formatDate1(new Date())
this.show=true
},
showPicker1(){
@@ -426,7 +454,7 @@ export default {
await reply({
operationType:this.operationType, //处理方式[11已办结,10办理中,9联系当事人]
content: this.content,//办理情况
- files: this.pictureList,//附件
+ files: this.fileList.concat(this.pictureList),//附件
respondent: this.respondent,//答复人
respondentPhone: this.respondentPhone,//答复人电话
contacts: this.contacts,//联系人
@@ -447,25 +475,81 @@ export default {
icEventId:this.icEventId
}).then(res => {
console.log(res,"skjlfhskdjfh");
+ this.show=false
+ this.$toast.success('提交成功');
+ this.$router.push('/hotline')
+
}).catch(err => {
})
},
- afterRead1(file) {
- // 文件读取后的处理逻辑
- this.fileList.push(file);
+ afterRead(file) {
+ file.status = 'uploading'
+ file.message = '上传中...'
+ uploadvariedfile(file.file)
+ .then(res => {
+ file.status = ''
+ file.attachmentUrl=res.data.url
+ file.attachmentType=file.file.type
+ file.attachmentName=file.file.name
+ file.attachmentFormat=file.file.name.split('.').pop()
+ console.log(this.fileList)
+ })
+ .catch(() => {
+ file.status = 'failed'
+ file.message = '上传失败'
+ })
+ console.log(file);
+ console.log(this.fileList,"sdf sdf ");
},
- beforeRead(file) {
- // 这里可以做一些文件的预处理,如果需要返回false则会阻止文件上传
- if (file.type.indexOf('audio') === -1) {
- this.$toast.fail('请上传音频文件');
- return false;
- }
- return true;
+ afterRead1(file) {
+ file.status = 'uploading'
+ file.message = '上传中...'
+ uploadvariedfile(file.file)
+ .then(res => {
+ file.status = ''
+ file.message = '上传成功'
+ file.url = res.data.url
+ console.log(this.fileList)
+ })
+ .catch(() => {
+ file.status = 'failed'
+ file.message = '上传失败'
+ })
+
+
+ },
+
+ // beforeRead(file) {
+ // // 这里可以做一些文件的预处理,如果需要返回false则会阻止文件上传
+ // if (file.type.indexOf('audio') === -1) {
+ // this.$toast.fail('请上传音频文件');
+ // return false;
+ // }
+ // return true;
+ // },
+ // onDelete(file, index) {
+ // // 删除文件的处理逻辑
+ // this.fileList.splice(index, 1);
+ // },
+ handleConfirm(value) {
+ console.log(value);
+ this.returnTime = this.formatDate1(value);
+ console.log(this.returnTime);
+ this.showtime = false;
},
- onDelete(file, index) {
- // 删除文件的处理逻辑
- this.fileList.splice(index, 1);
+ formatDate1(date) {
+ console.log("data",date);
+ const year = date.getFullYear();
+ const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始,需加1
+ const day = String(date.getDate()).padStart(2, '0');
+ const hours = String(date.getHours()).padStart(2, '0');
+ const minutes = String(date.getMinutes()).padStart(2, '0');
+ const seconds = String(date.getSeconds()).padStart(2, '0');
+ return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
+},
+ handleCancel() {
+ this.showtime = false;
}
},
@@ -529,7 +613,6 @@ font-size: 16px;
color: #333333;
line-height: 21px;
padding-left: 20px;
-white-space: nowrap
}
.Dispatch-right-red{
font-family: PingFang SC;
@@ -557,7 +640,6 @@ line-height: 23px;
}
.HotlineDetails-left{
width: 66px;
-height: 14px;
font-family: PingFang SC;
font-weight: 500;
font-size: 15px;
diff --git a/src/views/mine/index.vue b/src/views/mine/index.vue
index c13f6d5..8483261 100644
--- a/src/views/mine/index.vue
+++ b/src/views/mine/index.vue
@@ -22,12 +22,7 @@
