测试修改bug

This commit is contained in:
gyj
2024-02-19 17:14:28 +08:00
parent 2ea35c9d4b
commit c8a6c4edfa
7 changed files with 167 additions and 34 deletions
+26 -2
View File
@@ -124,7 +124,7 @@ export function updateComfire(data) {
//提交案件 //提交案件
export function caseAppSubmit(data) { export function caseAppSubmit(data) {
return request({ return request({
'url': `/caseApplication/submit`, url: '/caseApplication/submit',
method: 'post', method: 'post',
data: data data: data
}) })
@@ -136,4 +136,28 @@ export function caseApplicationSelectById(data) {
method: 'get', method: 'get',
params: data params: data
}) })
} }
// 删除案件
export function caseDelete(data) {
return request({
url: '/caseApplication/delete',
method: 'post',
data: data
})
}
// 案件id查询缴费清单
export function selectPaymentDetail(data) {
return request({
url: '/pay/selectPaymentDetail',
method: 'get',
params: data
})
}
// 缴费确认
export function confirmPaid(data) {
return request({
url: '/pay/confirmPaid',
method: 'post',
data: data
})
}
+1 -1
View File
@@ -8,7 +8,7 @@ module.exports = {
baseUrlTJ: 'https://api.xayunmei.com/tiaojieapitest', baseUrlTJ: 'https://api.xayunmei.com/tiaojieapitest',
// baseUrlTJ:'https://api.xayunmei.com/tiaojieapi', // baseUrlTJ:'https://api.xayunmei.com/tiaojieapi',
// baseUrlZC: 'http://121.40.189.20:8001', // baseUrlZC: 'http://121.40.189.20:8001',
// baseUrlTJ: 'http://172.16.1.17:6001', // baseUrlTJ: 'http://172.16.1.43:6001',
// baseUrl: 'http://172.16.1.24:8001', // baseUrl: 'http://172.16.1.24:8001',
// baseUrl: 'http://localhost:8080', // baseUrl: 'http://localhost:8080',
// baseUrl: 'http://192.168.3.18:9001', // baseUrl: 'http://192.168.3.18:9001',
+6
View File
@@ -98,6 +98,12 @@
"navigationBarTitleText": "案件信息" "navigationBarTitleText": "案件信息"
} }
}, },
{
"path": "pages/handlecase/component/confirmPayment",
"style": {
"navigationBarTitleText": "确认缴费"
}
},
{ {
"path": "pages/handlecase/component/payList", "path": "pages/handlecase/component/payList",
"style": { "style": {
@@ -0,0 +1,89 @@
<template>
<view class="conent">
<view class="assignrbitrators">
<uni-forms ref="form" :modelValue="formData" :rules="rules">
<uni-forms-item label="案件编号:" name="caseNum" label-width="80px">
<uni-easyinput v-model="formData.caseNum" type="text" :disabled='true' placeholder="请输入案件编号" />
</uni-forms-item>
<uni-forms-item label="案件标的:" name="caseSubjectAmount" label-width="80px">
<uni-easyinput v-model="formData.caseSubjectAmount" type="text" :disabled='true' placeholder="请输入案件标的" />
</uni-forms-item>
<uni-forms-item label="缴费金额:" name="feePayable" label-width="80px">
<uni-easyinput v-model="formData.feePayable" type="text" :disabled='true' placeholder="请输入缴费金额" />
</uni-forms-item>
<uni-forms-item label="申请人缴费:" name="feePayable" label-width="90px">
<view v-for="item in formData.caseAttachList">
<uni-link v-if="item.annexType==4" :href="item.annexPath" color="#007BFF"
:text="item.annexName"></uni-link>
</view>
</uni-forms-item>
<uni-forms-item label="被申请人缴费:" name="feePayable" label-width="100px">
<view v-for="item in formData.caseAttachList">
<uni-link v-if="item.annexType==9" :href="item.annexPath" color="#007BFF"
:text="item.annexName"></uni-link>
</view>
</uni-forms-item>
</uni-forms>
<view class="determine" style="text-align: center;">
<button class="mini-btn"
type="primary" size="mini"
@tap="confirmPayment">确认缴费</button>
<button style="margin-left:30rpx;" class="mini-btn"
type="default" size="mini"
@tap="cencalBut">取消</button>
</view>
</view>
</view>
</template>
<script>
import {selectPaymentDetail,confirmPaid} from '../../../api/handlecase/index.js'
export default {
data() {
return {
formData:{},
rules:{},
paymentConfirm:{}
}
},
methods:{
// 确认缴费
confirmPayment(){
let vals = {
caseId:this.paymentConfirm.id,
batchNumber:"",
caseFlowId:this.paymentConfirm.caseFlowId
}
confirmPaid(vals).then(res =>{
uni.showToast({
title: '缴费确认成功',
icon: 'none',
duration: 1000
})
uni.navigateBack({
delta: 1
})
})
},
// 缴费详情
paymentDetails(val) {
selectPaymentDetail(val).then(res => {
this.formData = res.data;
})
},
},
onLoad(data) {
this.paymentConfirm = data
this.paymentDetails({id:data.id})
}
}
</script>
<style lang="scss">
page {
background-color: #ffffff;
}
.assignrbitrators{
margin: 30rpx;
}
</style>
+32 -21
View File
@@ -41,8 +41,8 @@
</view> </view>
</view> </view>
<view class="btn" v-if="sysType == 2"> <view class="btn" v-if="sysType == 2">
<button class="btnItem" type="primary" size="mini" @tap="modify">修改</button> <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">删除</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="clickPay">申请人缴费</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" size="mini" @tap="caseDetail">选择调解员</button> -->
<button class="btnItem" type="primary" @tap="clickType(item.id)" size="mini" v-for="(item) in buttonList" <button class="btnItem" type="primary" @tap="clickType(item.id)" size="mini" v-for="(item) in buttonList"
@@ -59,7 +59,8 @@
<script> <script>
import { import {
queryCaseFlowInfo, queryCaseFlowInfo,
caseAppSubmit caseAppSubmit,
caseDelete
} from '@/api/handlecase/index.js' } from '@/api/handlecase/index.js'
export default { export default {
data() { data() {
@@ -91,6 +92,7 @@
// 缴费 // 缴费
this.clickPay() this.clickPay()
} else if (type == 3 || type == 45) { } else if (type == 3 || type == 45) {
this.confirmPayments()
// 确认缴费 // 确认缴费
} else if (type == 4) { } else if (type == 4) {
// 受理分配 // 受理分配
@@ -132,49 +134,58 @@
url: `/pages/handlecase/component/uploadEvidence?id=${this.defalutVal.id}` url: `/pages/handlecase/component/uploadEvidence?id=${this.defalutVal.id}`
}) })
}, },
// 缴费
clickPay() { clickPay() {
uni.navigateTo({ uni.navigateTo({
url: `/pages/handlecase/component/payList?id=${this.defalutVal.id}` url: `/pages/handlecase/component/payList?id=${this.defalutVal.id}`
}) })
}, },
// 确认缴费
confirmPayments(){
uni.navigateTo({
url: `/pages/handlecase/component/confirmPayment?id=${this.defalutVal.id}&caseFlowId=${this.defalutVal.caseFlowId}`
})
},
/**提交案件*/ /**提交案件*/
onsubmitRow() { onsubmitRow() {
caseAppSubmit().then(res => { caseAppSubmit().then(res => {
uni.showToast({ uni.showToast({
title: '成功', title: '提交成功',
icon: 'none', icon: 'none',
duration: 1000 duration: 1000
}) })
this.$emit("getList"); uni.navigateBack({
delta: 1
})
//this.$emit("getList");
}) })
}, },
// 修改 // 修改
modify() { modify() {
uni.redirectTo({ uni.navigateTo({
url: `/pages/handlecase/component/newlyAddedCase?id=${this.defalutVal.id}`, url: `/pages/handlecase/component/newlyAddedCase?id=${this.defalutVal.id}`,
}) })
}, },
/*删除*/ /*删除*/
deleteCase() { deleteCase() {
console.log("PPPPPPPPPPPPPPPPPPPPPPPP"); let objValue ={
}, id : this.defalutVal.id,
/*提交*/ batchNumber:"",
/**查询按钮列表 */ caseFlowId:this.defalutVal.caseFlowId
getButtonList() { }
queryCaseFlowInfo({ caseDelete(objValue).then(res =>{
pageNum: 1, uni.showToast({
pageSize: 100000 title: '删除成功',
}).then(res => { icon: 'none',
res.rows.forEach(item => { duration: 1000
if (item.id != 11 && item.id != 17) { })
this.buttonList.push(item) uni.navigateBack({
} delta: 1
}); })
}) })
}, },
}, },
created() { created() {
// this.getButtonList()
} }
} }
</script> </script>
+11 -9
View File
@@ -24,7 +24,7 @@
<uni-data-select :localdata="templateList" v-model="formData.templateId"></uni-data-select> <uni-data-select :localdata="templateList" v-model="formData.templateId"></uni-data-select>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="申请人案件证据资料上传:" name="headImage" label-width="120px"> <uni-forms-item label="申请人案件证据资料上传:" name="headImage" label-width="120px">
<uni-file-picker ref="files" file-mediatype="all" :auto-upload="false" @select="select" :limit='9' /> <uni-file-picker ref="files" file-mediatype="all" return-type='object' v-model="fileList" :auto-upload="false" @select="select" :limit='9' />
</uni-forms-item> </uni-forms-item>
<uni-section title="双方信息" type="line" padding></uni-section> <uni-section title="双方信息" type="line" padding></uni-section>
<uni-forms-item label="选择机构或自然人" label-width="120px" name="objectiJuris"> <uni-forms-item label="选择机构或自然人" label-width="120px" name="objectiJuris">
@@ -163,9 +163,9 @@
@tap="cencalBut">取消</button> @tap="cencalBut">取消</button>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import {getTemplate,getInfoByIdCard,caseApplicationInsert,updateComfire,caseApplicationSelectById} from '../../../api/handlecase/index.js' import {getTemplate,getInfoByIdCard,caseApplicationInsert,updateComfire,caseApplicationSelectById} from '../../../api/handlecase/index.js'
import { import {
@@ -202,6 +202,7 @@
value: 0 value: 0
} }
], ],
fileList: {},
rules:{}, rules:{},
rulesappName: [ rulesappName: [
{ {
@@ -342,8 +343,9 @@
let result = JSON.parse(res.data) let result = JSON.parse(res.data)
this.formData.caseAttachList.push({ this.formData.caseAttachList.push({
annexId: result.annexId, annexId: result.annexId,
annexName: result.fileName
}); });
console.log(result.annexId) console.log(result.fileName)
uni.showToast({ uni.showToast({
title: '上传成功', title: '上传成功',
icon: 'none', icon: 'none',
@@ -381,14 +383,14 @@
this.$refs.form.setRules(this.rules) this.$refs.form.setRules(this.rules)
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
page { page {
background-color: #ffffff; background-color: #ffffff;
} }
.assignrbitrators{ .assignrbitrators{
margin: 30rpx; margin: 30rpx;
} }
</style> </style>
+2 -1
View File
@@ -170,7 +170,8 @@
this.getList(obj) this.getList(obj)
} }
}, },
onLoad() { onShow() {
this.buttonList = []
this.sysType = uni.getStorageSync('sysType'); this.sysType = uni.getStorageSync('sysType');
let obj = {} let obj = {}
if (this.sysType == 1) { if (this.sysType == 1) {