查看缴费单,缴费确认,案件受理

This commit is contained in:
gyj
2024-04-18 09:31:48 +08:00
committed by hanchaobo
parent 7f704424b2
commit c7c4ed8f6e
7 changed files with 278 additions and 89 deletions
@@ -16,7 +16,7 @@
<script>
import {
updateSendContent,
updateSendContent,update
} from "@/api/deliveryRecord/deliveryRecord.js";
export default {
props: ["emailVidable", "emailRow","queryParams"],
@@ -38,15 +38,15 @@ export default {
},
submitSend() {
console.log(this.emailRow.mailContent)
// this.updateSendContentFn({
// id:this.rowData.id,
// sendContent:this.sendData
// })
this.updateSendContentFn({
id:this.emailRow.id,
mailContent:this.sendData
})
},
updateSendContentFn(data){
updateSendContent(data).then(res=>{
update(data).then(res=>{
this.$message.success('更新成功');
this.$emit("cancelSend");
this.$emit("cancelEmail");
this.$emit('getList',this.queryParams);
})
}
+14 -9
View File
@@ -30,7 +30,7 @@
<el-table-column label="操作" align="center">
<template slot-scope="scope">
<el-button size="mini" type="text" @click="emailEditing(scope.row)" icon="el-icon-s-promotion">邮箱编辑</el-button>
<el-button v-if="sendStatusMessage" size="mini" type="text" @click="resendCounts(scope.row)" icon="el-icon-s-promotion">重新发送</el-button>
<el-button v-if="scope.row.sendStatus == '未发送'" size="mini" type="text" @click="resendCounts(scope.row)" icon="el-icon-s-promotion">重新发送</el-button>
</template>
</el-table-column>
</el-table>
@@ -43,7 +43,7 @@
<script>
import {
emailList,
emailList,reSendMailRecord
} from "@/api/deliveryRecord/deliveryRecord.js";
import emailEdits from "./components/emailEdits.vue";
import { getDicts } from '@/api/system/dict/data.js'
@@ -96,15 +96,10 @@ export default {
this.dataList = response.rows;
this.dataList.forEach(item => {
if (item.sendStatus == 0) {
this.sendStatusMessage = true
item.sendStatus = "未发送"
} else if (item.sendStatus == 1) {
this.sendStatusMessage = false
item.sendStatus = "已发送"
} else {
item.sendStatus = "未发送"
this.sendStatusMessage = true
}
})
this.total = response.total;
@@ -122,8 +117,18 @@ export default {
this.emailVidable = false
},
// 重新发送
resendCounts(){
resendCounts(row){
if(row.sendStatus=='未发送'){
row.sendStatus = 0
}else if(row.sendStatus=='已发送'){
row.sendStatus = 1
}
reSendMailRecord(row).then(res=>{
console.log(res)
this.$message.success('发送成功');
this.getList(this.queryParams);
})
}
},
};
+12 -17
View File
@@ -23,12 +23,13 @@
<el-table-column label="发送时间" align="center" prop="sendTime" />
<el-table-column label="发送状态" align="center" prop="sendStatus" />
<el-table-column label="发送内容" align="center" prop="sendContent" :show-overflow-tooltip="true"/>
<el-table-column label="备注" align="center" prop="reason" :show-overflow-tooltip="true"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button size="mini" @click="copyContent(scope.row.sendContent)" type="text"
icon="el-icon-document-copy">复制内容</el-button>
<el-button size="mini" @click="resend(scope.row)" type="text" icon="el-icon-s-promotion">编辑内容</el-button>
<el-button v-if="sendStatusMessage" size="mini" type="text" @click="resendMessage(scope.row)" icon="el-icon-s-promotion">重新发送</el-button>
<el-button v-if="scope.row.sendStatus == '发送失败'|| scope.row.sendStatus == '发送中'" size="mini" type="text" @click="resendMessage(scope.row)" icon="el-icon-s-promotion">重新发送</el-button>
</template>
</el-table-column>
</el-table>
@@ -112,18 +113,12 @@ export default {
recordList(data, params).then((response) => {
this.dataList = response.rows;
this.dataList.forEach(item => {
if (item.sendStatus == 0) {
item.sendStatus = "发送失败"
this.sendStatusMessage = true
} else if (item.sendStatus == 1) {
item.sendStatus = "已送达"
this.sendStatusMessage = false
if (item.sendStatus == 1) {
item.sendStatus = "发送成功"
} else if (item.sendStatus == 2) {
item.sendStatus = "已读取"
this.sendStatusMessage = false
} else {
item.sendStatus = "发送中"
} else if(item.sendStatus == 3){
item.sendStatus = "发送失败"
this.sendStatusMessage = true
}
})
this.total = response.total;
@@ -132,21 +127,21 @@ export default {
},
// 重新发送
resendMessage(row){
console.log(row)
console.log(row.sendStatus)
let valuesRow ={
id:row.id,
templateId:row.templateId,
phone:row.phone,
templateParams:row.templateParams
}
this.reSendShortMessageFn(valuesRow)
console.log(valuesRow)
},
reSendShortMessageFn(valuesRow){
reSendShortMessage(valuesRow).then(res=>{
this.$message.success('发送成功');
this.getList({ caseNum: this.queryParams.caseNum }, { pageNum: this.queryParams.pageNum, pageSize: this.queryParams.pageSize });
if(res.code==200){
this.sendStatusMessage = false
}
})
}
},