@@ -707,14 +760,44 @@ import api from "@/services/caseManagement";
span{
margin:3px 0;
padding: 3px 10px;
-
// a:first-child{width: 120px;display: inline-block;text-align: right;}
}
span:nth-child(even) {
background-color: #F7F8FA;
}
+ .case-img{
+ width: 50px;
+ height: 50px;
+ text-align: center;
+ line-height: 50px;
+ img{
+ max-width: 50px;
+ max-height: 50px;
+ }
+ }
}
+ .case-materials-person{
+ .case-detail-des{
+ i{margin-right: 4px;}
+ }
+ }
+ .case-office-person{
+
+ .case-detail-des{
+ .case-img{
+ width: 55px;
+ height: 55px;
+ text-align: center;
+ line-height: 55px;
+ img{
+ max-width: 55px;
+ max-height: 55px;
+ }
+ }
+ i{margin-right: 4px;}
+ }
+ }
}
@@ -741,6 +824,7 @@ import api from "@/services/caseManagement";
margin-top: 15px;
}
}
+
.case-office-record,.case-materials-record{
diff --git a/src/pages/mediation-page/components/RepaymentCertificate.vue b/src/pages/mediation-page/components/RepaymentCertificate.vue
index 76b79d8..d7eac5e 100644
--- a/src/pages/mediation-page/components/RepaymentCertificate.vue
+++ b/src/pages/mediation-page/components/RepaymentCertificate.vue
@@ -2,7 +2,7 @@
还款凭证
- 添加还款凭证
+ 添加还款凭证
@@ -55,31 +55,49 @@
-
+
+
+
-
+ v-model="repaymentObj.amount">
元
-
-
+ v-model="repaymentObj.remark">
-
-
- 取消
+
+ 取消
保存
@@ -132,7 +149,7 @@ import api from "@/services/caseManagement";
data() {
return {
AddFlag:false,
- updateRow:0,
+ updateRow:-1,
repaymentObj:{
mediaPath:[]
},
@@ -161,21 +178,7 @@ import api from "@/services/caseManagement";
this.getProofList()
},
methods: {
- handleSubmitUpdate(){
- this.$refs.ruleFormRepayment.validate((valid) => {
- if (valid){
- this.repaymentObj.caseId = this.eventDialog.caseId
- this.repaymentObj.proofUrl = this.repaymentObj.mediaPath[0]
-
- api.gettraceProof_create(this.repaymentObj).then(res => {
- if(!res.code){
- this.updateRow = 0
- this.getProofList()
- }
- })
- }
- })
- },
+
handleSubmitRepayment(){
this.$refs.ruleFormRepayment.validate((valid) => {
if (valid){
@@ -185,6 +188,8 @@ import api from "@/services/caseManagement";
api.gettraceProof_create(this.repaymentObj).then(res => {
if(!res.code){
this.AddFlag = false
+ this.updateRow = -1
+ this.fileList = []
this.getProofList()
}
})
@@ -196,15 +201,30 @@ import api from "@/services/caseManagement";
if(!res.code){
this.ProofList = res
this.ProofList.forEach(item =>{
- this.fileList.push({
- url: item.proofUrl,
- })
item.mediaPath = [item.proofUrl]
})
-
}
})
},
+ updateClick(index,proofitem){
+ this.updateRow = index;
+ this.repaymentObj = proofitem
+ this.fileList = [{url: proofitem.proofUrl,fileName:'上传'}]
+ },
+ handleSubmitUpdate(){
+ this.$refs.ruleFormRepaymentUpdate[0].validate((valid) => {
+ if (valid){
+
+ api.gettraceProof_create(this.repaymentObj).then(res => {
+ if(!res.code){
+ this.updateRow = -1
+ this.fileList = []
+ this.getProofList()
+ }
+ })
+ }
+ })
+ },
handleUploadFile(fileList){
// console.log('获取上传文件信息',fileList)
diff --git a/src/utils/util.js b/src/utils/util.js
index c6ceb48..43f8980 100644
--- a/src/utils/util.js
+++ b/src/utils/util.js
@@ -172,7 +172,7 @@ const util = {
if(fileUrl==null||fileUrl=='') {
return fileUrl
}
-
+ console.log(/.(pdf)$/.test(fileUrl.toLowerCase()),'111')
if(/.(pdf)$/.test(fileUrl.toLowerCase())) {
return require('../assets/image/util/pdf_img.jpg')
}