用印申请,确认用印接口联调

This commit is contained in:
gyj
2024-01-16 17:21:13 +08:00
parent 22cfffa3e8
commit f658034734
3 changed files with 45 additions and 9 deletions
+16
View File
@@ -72,3 +72,19 @@ export function selectPaymentDetail(data) {
data: data,
});
}
//用印申请
export function sealApply(data) {
return request({
url: "/mssignSeal/sealApply",
method: "post",
data: data,
});
}
// 用印确认
export function selectSealUrl(data) {
return request({
url: "/mssignSeal/selectSealUrl",
method: "post",
data: data,
});
}
+26 -4
View File
@@ -101,12 +101,12 @@
<!-- 缴费确认查看详情 -->
<paymentdetailsDialog :openDialog="openDialog" @cancelpaymentdetails="cancelpaymentdetails" :title="payTitle" :detailform="detailform" :flag="flag" :paymentConfirma="paymentConfirma" :getList="getList"></paymentdetailsDialog>
<!-- 案件受理 -->
<caseAcceptance :showAcceptance="showAcceptance" @cancelAcceptance="cancelAcceptance" :caseAcceptanceData="caseAcceptanceData" :getList="getList"></caseAcceptance>
<caseAcceptance :showAcceptance="showAcceptance" @cancelAcceptance="cancelAcceptance" :caseAcceptanceData="caseAcceptanceData" @getList="getList" :queryParams="queryParams"></caseAcceptance>
</div>
</template>
<script>
import { caseApplicationList, caseApplicationSelectById,submitCaseApply,selectPaymentDetail } from '@/api/caseManagement/caseManagement.js'
import { caseApplicationList, caseApplicationSelectById,submitCaseApply,selectPaymentDetail,sealApply,selectSealUrl } from '@/api/caseManagement/caseManagement.js'
import { listDept } from '@/api/system/dept.js'
import moment from "moment";
import addCase from './components/addCase.vue'
@@ -291,15 +291,37 @@ export default {
},
// 法律顾问用印申请
consultantApplica(row) {
let paramsValue ={
caseId:row.id,
batchNumber:"",
caseFlowId:row.caseFlowId
}
this.$modal.confirm("你确定要用印申请吗?").then((res) => {
sealApply(paramsValue).then(res=>{
this.getList(this.queryParams);
this.$modal.msgSuccess("用印申请成功");
})
}).catch(() => {
})
},
// 部门长用印申请
departmentApplica() {
departmentApplica(row) {
this.$modal.confirm("你确定要用印确认吗?").then((res) => {
let paramsValue ={
caseId:row.id
}
selectSealUrl(paramsValue).then(res=>{
window.open(res.data.sealUrl)
this.$modal.confirm("你确认用印了吗?").then((res) => {
this.getList(this.queryParams);
}).catch(() => {
})
})
}).catch(() => {
})
},
// 案件受理
caseAccep(row){
@@ -40,7 +40,7 @@
import {accept} from '@/api/caseManagement/caseManagement.js'
export default {
name: "caseAcceptance",
props: ["showAcceptance", "caseAcceptanceData", "getList"],
props: ["showAcceptance", "caseAcceptanceData", "getList","queryParams"],
data() {
return {
courtReviewform: {
@@ -69,9 +69,7 @@ export default {
let mergeValue = Object.assign({}, this.courtReviewform, paramsdata)
accept(mergeValue).then((res) => {
this.$modal.msgSuccess("确认成功");
if (res.code == 200) {
this.getList();
}
this.$emit("getList",this.queryParams)
this.cancel();
})
.catch((err) => {});