This commit is contained in:
gyj
2024-03-04 14:38:56 +08:00
6 changed files with 327 additions and 262 deletions
+109 -54
View File
@@ -41,8 +41,10 @@
</view>
</view>
<view class="btn" v-if="sysType == 2">
<button class="btnItem" type="primary" size="mini" @tap="modify" v-if="checkPermi(['caseManagement:list:edit'])">修改</button>
<button class="btnItem" type="primary" size="mini" @tap="deleteCase" v-if="checkPermi(['caseManagement:list:delete'])">删除</button>
<button class="btnItem" type="primary" size="mini" @tap="modify"
v-if="checkPermi(['caseManagement:list:edit']) && defalutVal.caseFlowId <= 1">修改</button>
<button class="btnItem" type="primary" size="mini" @tap="deleteCase"
v-if="checkPermi(['caseManagement:list:delete']) && defalutVal.caseFlowId <= 1">删除</button>
<!-- <button class="btnItem" type="primary" size="mini" @tap="clickPay">申请人缴费</button>
<button class="btnItem" type="primary" size="mini" @tap="caseDetail">选择调解员</button> -->
<button class="btnItem" type="primary" @tap="clickType(item.id)" size="mini" v-for="(item) in buttonList"
@@ -63,12 +65,13 @@
import {
queryCaseFlowInfo,
caseAppSubmit,
caseDelete
caseDelete,
msCaseSign
} from '@/api/handlecase/index.js'
export default {
data() {
return {
}
},
props: {
@@ -122,8 +125,10 @@
// 归档
} else if (type == 15) {
// 申请人签收
this.signMediation();
} else if (type == 16) {
// 被申请人签收
this.receivedMediation();
} else if (type == 17) {
//结束
} else if (type == 44) {
@@ -150,38 +155,38 @@
})
},
// 确认缴费
confirmPayments(){
confirmPayments() {
uni.navigateTo({
url: `/pages/handlecase/component/confirmPayment?id=${this.defalutVal.id}&caseFlowId=${this.defalutVal.caseFlowId}`
})
},
/**提交案件*/
onsubmitRow() {
let onsubmitVal ={
id : this.defalutVal.id,
batchNumber:"",
caseFlowId:this.defalutVal.caseFlowId
let onsubmitVal = {
id: this.defalutVal.id,
batchNumber: "",
caseFlowId: this.defalutVal.caseFlowId
}
uni.showModal({
title: '提示',
content: '您确定要提交案件',
success: function (res) {
if (res.confirm) {
// console.log('用户点击确定');
caseAppSubmit(onsubmitVal).then(res => {
uni.showToast({
title: '提交成功',
icon: 'none',
duration: 1000
})
uni.navigateTo({
url:'/pages/handlecase/index'
})
})
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
title: '提示',
content: '您确定要提交案件',
success: function(res) {
if (res.confirm) {
// console.log('用户点击确定');
caseAppSubmit(onsubmitVal).then(res => {
uni.showToast({
title: '提交成功',
icon: 'none',
duration: 1000
})
uni.navigateTo({
url: '/pages/handlecase/index'
})
})
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
});
},
// 修改
@@ -192,37 +197,87 @@
},
/*删除*/
deleteCase() {
let objValue ={
id : this.defalutVal.id,
batchNumber:"",
caseFlowId:this.defalutVal.caseFlowId
let objValue = {
id: this.defalutVal.id,
batchNumber: "",
caseFlowId: this.defalutVal.caseFlowId
}
uni.showModal({
title: '提示',
content: '您确定要删除案件',
success: function (res) {
if (res.confirm) {
// console.log('用户点击确定');
caseDelete(objValue).then(res =>{
uni.showToast({
title: '删除成功',
icon: 'none',
duration: 1000
})
uni.navigateTo({
url:'/pages/handlecase/index'
})
})
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
title: '提示',
content: '您确定要删除案件',
success: function(res) {
if (res.confirm) {
// console.log('用户点击确定');
caseDelete(objValue).then(res => {
uni.showToast({
title: '删除成功',
icon: 'none',
duration: 1000
})
uni.navigateTo({
url: '/pages/handlecase/index'
})
})
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
});
},
/**申请人签收*/
signMediation() {
let that = this;
let objValue = {
caseId: this.defalutVal.id,
isSignApply: 1
}
uni.showModal({
title: '提示',
content: '您确定要签收',
success: function(res) {
if (res.confirm) {
that.signingMediationAgreement(objValue)
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
});
},
/**被申请人签收*/
receivedMediation() {
let that = this;
let objValue = {
caseId: this.defalutVal.id,
isSignRespon: 1
}
uni.showModal({
title: '提示',
content: '您确定要签收',
success: function(res) {
if (res.confirm) {
that.signingMediationAgreement(objValue)
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
});
},
/**申请人和被申请人签收调解书接口*/
signingMediationAgreement(val) {
msCaseSign(val).then((res) => {
uni.showToast({
title: '签收成功',
icon: 'none',
duration: 1000
})
uni.navigateTo({
url: '/pages/handlecase/index'
})
});
},
},
created() {
}
created() {}
}
</script>
+2 -1
View File
@@ -188,9 +188,10 @@
pageSize: this.pageSize,
caseFlowId:this.caseFlowId
}
this.getButtonList();
}
this.getList(obj)
this.getButtonList()
// this.getButtonList()
},
onLoad(data) {
this.caseFlowId = data.caseFlowId