测试修改bug
This commit is contained in:
@@ -41,8 +41,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<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="deleteCase">删除</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" 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="caseDetail">选择调解员</button> -->
|
||||
<button class="btnItem" type="primary" @tap="clickType(item.id)" size="mini" v-for="(item) in buttonList"
|
||||
@@ -59,7 +59,8 @@
|
||||
<script>
|
||||
import {
|
||||
queryCaseFlowInfo,
|
||||
caseAppSubmit
|
||||
caseAppSubmit,
|
||||
caseDelete
|
||||
} from '@/api/handlecase/index.js'
|
||||
export default {
|
||||
data() {
|
||||
@@ -91,6 +92,7 @@
|
||||
// 缴费
|
||||
this.clickPay()
|
||||
} else if (type == 3 || type == 45) {
|
||||
this.confirmPayments()
|
||||
// 确认缴费
|
||||
} else if (type == 4) {
|
||||
// 受理分配
|
||||
@@ -132,49 +134,58 @@
|
||||
url: `/pages/handlecase/component/uploadEvidence?id=${this.defalutVal.id}`
|
||||
})
|
||||
},
|
||||
// 缴费
|
||||
clickPay() {
|
||||
uni.navigateTo({
|
||||
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() {
|
||||
caseAppSubmit().then(res => {
|
||||
uni.showToast({
|
||||
title: '成功',
|
||||
title: '提交成功',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
this.$emit("getList");
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
//this.$emit("getList");
|
||||
})
|
||||
},
|
||||
// 修改
|
||||
modify() {
|
||||
uni.redirectTo({
|
||||
uni.navigateTo({
|
||||
url: `/pages/handlecase/component/newlyAddedCase?id=${this.defalutVal.id}`,
|
||||
})
|
||||
},
|
||||
/*删除*/
|
||||
deleteCase() {
|
||||
console.log("PPPPPPPPPPPPPPPPPPPPPPPP");
|
||||
},
|
||||
/*提交*/
|
||||
/**查询按钮列表 */
|
||||
getButtonList() {
|
||||
queryCaseFlowInfo({
|
||||
pageNum: 1,
|
||||
pageSize: 100000
|
||||
}).then(res => {
|
||||
res.rows.forEach(item => {
|
||||
if (item.id != 11 && item.id != 17) {
|
||||
this.buttonList.push(item)
|
||||
}
|
||||
});
|
||||
let objValue ={
|
||||
id : this.defalutVal.id,
|
||||
batchNumber:"",
|
||||
caseFlowId:this.defalutVal.caseFlowId
|
||||
}
|
||||
caseDelete(objValue).then(res =>{
|
||||
uni.showToast({
|
||||
title: '删除成功',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
})
|
||||
},
|
||||
},
|
||||
created() {
|
||||
// this.getButtonList()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user