批量用印,案件编号搜索

This commit is contained in:
gyj
2023-12-19 17:13:57 +08:00
parent 65acede646
commit 876c34ea8a
8 changed files with 119 additions and 14 deletions
+8
View File
@@ -24,6 +24,14 @@ export function selectBatchSignUrl(data) {
data: data data: data
}) })
} }
// 批量签名提交
export function selectBatchSealUrl(data) {
return request({
url: '/adjudication/selectBatchSealUrl',
method: 'post',
data: data
})
}
// 立案申请 // 立案申请
export function addCaseApply(data) { export function addCaseApply(data) {
return request({ return request({
+3 -1
View File
@@ -74,7 +74,9 @@
> >
批量签名 批量签名
</el-button> </el-button>
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="batchPrintings"> <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="batchPrintings"
v-hasPermi="['caseManagement:list:officialSeal']"
>
批量用印 批量用印
</el-button> </el-button>
</el-col> </el-col>
@@ -63,7 +63,7 @@
</template> </template>
<script> <script>
import { importTemplate } from "@/api/caseAccess/caseEntry"; import { pageSignAdjudicate } from "@/api/caseAccess/caseEntry";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
export default { export default {
props: ["openbatch","getcaseApply","queryParams"], props: ["openbatch","getcaseApply","queryParams"],
@@ -1,7 +1,35 @@
<template> <template>
<!-- 批量用印 --> <!-- 批量用印 -->
<div> <div>
<el-dialog title="批量用印" :visible="printingVisable" @close="cancel" center :distroy-on-close="true"> <el-dialog title="批量用印" width="60%" :visible="printingVisable" @close="cancel" center :distroy-on-close="true">
<!-- 查询机构信息 -->
<el-form ref="courtReviewform" :model="courtReviewform">
<el-form-item
label="查询机构:"
prop="Arbitor"
:rules="[
{
required: true,
message: '查询机构不能为空',
trigger: 'blur',
},
]"
>
<el-select
placeholder="请选择查询机构"
@change="changeArbitor"
v-model="courtReviewform.Arbitor"
clearable
>
<el-option
v-for="item in atoDataList"
:key="item.id"
:label="item.identifyName"
:value="item.operPhone"
></el-option>
</el-select>
</el-form-item>
</el-form>
<el-table v-loading="loading" :data="dataList" style="width: 100%" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="dataList" style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column type="selection"> <el-table-column type="selection">
</el-table-column> </el-table-column>
@@ -30,13 +58,14 @@
:limit.sync="queryParamsData.pageSize" /> :limit.sync="queryParamsData.pageSize" />
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="cancel" class="endbutton"><span>取 消</span></el-button> <el-button @click="cancel" class="endbutton"><span>取 消</span></el-button>
<el-button type="primary" class="endbutton" :disabled="dataList.length == 0 || batchData.length == 0"><span>确认用印</span></el-button> <el-button type="primary" class="endbutton" :disabled="dataList.length == 0 || batchData.length == 0" @click="confirmSeals"><span>确认用印</span></el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import {caseApply} from '@/api/caseAccess/caseEntry' import {selectBatchSealUrl,pageSignAdjudicate} from '@/api/caseAccess/caseEntry'
import {deptIdentifyList} from '@/api/officialSeal/officialSeal'
export default { export default {
props:["printingVisable"], props:["printingVisable"],
data() { data() {
@@ -47,13 +76,20 @@ export default {
total:0, total:0,
// 查询参数 // 查询参数
queryParamsData: { queryParamsData: {
caseStatus: 3, //待定 caseStatus: 14,
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
}, },
// 表格数据 // 表格数据
dataList: [], dataList: [],
batchData: [], batchData: [],
atoDataList:[],
courtReviewform: {},
Arbitor: "",
paramsdata:{
ids:[],
psnAccount:""
},
} }
}, },
watch: { watch: {
@@ -65,12 +101,13 @@ export default {
}, },
created(){ created(){
this.getBatchPrinting(this.queryParamsData) this.getBatchPrinting(this.queryParamsData)
this.getarbitrAtor()
}, },
methods:{ methods:{
// 列表查询 // 列表查询
getBatchPrinting(val){ getBatchPrinting(val){
this.loading = true; this.loading = true;
caseApply(val).then(res=>{ pageSignAdjudicate(val).then(res=>{
this.dataList = res.rows this.dataList = res.rows
this.total = res.total; this.total = res.total;
this.loading = false; this.loading = false;
@@ -80,9 +117,39 @@ export default {
handleSelectionChange(val){ handleSelectionChange(val){
this.batchData = []; this.batchData = [];
val.forEach(item => { val.forEach(item => {
this.batchData.push(item.id) this.batchData.push(item.signFlowId)
this.paramsdata.ids = this.batchData
}) })
}, },
// 查询机构信息
getarbitrAtor() {
this.atoDataList =[]
deptIdentifyList({}).then((res) => {
console.log(res)
this.atoDataList = res.rows;
// this.total = res.total;
});
},
// 下拉获取电话号码
changeArbitor(val){
this.paramsdata.psnAccount = val
},
// 确认用印
confirmSeals(){
this.$refs["courtReviewform"].validate((valid) => {
if (valid) {
selectBatchSealUrl(this.paramsdata).then((res) => {
this.$modal.msgSuccess("确认成功");
this.cancel();
this.getBatchPrinting(this.queryParamsData)
window.open(res.data.signUrl)
// this.$emit("getcaseApply", this.queryParams);
})
.catch((err) => {});
}
});
},
cancel() { cancel() {
this.$emit("printingOperate"); this.$emit("printingOperate");
}, },
@@ -131,7 +131,6 @@ export default {
getarbitrAtor() { getarbitrAtor() {
this.atoDataList =[] this.atoDataList =[]
arbitrAtor({}).then((res) => { arbitrAtor({}).then((res) => {
console.log(res)
this.atoDataList = res.rows; this.atoDataList = res.rows;
// this.total = res.total; // this.total = res.total;
}); });
@@ -148,7 +147,9 @@ export default {
selectBatchSignUrl(this.paramsdata).then((res) => { selectBatchSignUrl(this.paramsdata).then((res) => {
this.$modal.msgSuccess("确认成功"); this.$modal.msgSuccess("确认成功");
this.cancel(); this.cancel();
this.getBatchSignation(this.queryParamsData)
window.open(res.data.signUrl) window.open(res.data.signUrl)
// this.$emit("getcaseApply", this.queryParams); // this.$emit("getcaseApply", this.queryParams);
}) })
.catch((err) => {}); .catch((err) => {});
+20 -1
View File
@@ -1,5 +1,14 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="140px">
<el-form-item label="机构名称首字母拼写" prop="deptNameFirchar">
<el-input v-model="queryParams.deptNameFirchar" placeholder="请输入机构首字母拼写" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="addList">新增</el-button> <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="addList">新增</el-button>
@@ -22,7 +31,7 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-delete" @click="deleteTemplate(scope.row)">删除</el-button> <el-button size="mini" type="text" icon="el-icon-delete" @click="deleteTemplate(scope.row)">删除</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="eidtTemplate(scope.row)">修改模板</el-button> <el-button size="mini" type="text" icon="el-icon-edit" @click="eidtTemplate(scope.row)">编号修改</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -71,6 +80,16 @@ export default {
eidtTemplate(row){ eidtTemplate(row){
this.modifyVisable =true; this.modifyVisable =true;
this.editData =row; this.editData =row;
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList(this.queryParams);
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
}, },
getList(parm){ getList(parm){
this.loading = true; this.loading = true;
@@ -5,8 +5,8 @@
class="demo-ruleForm"> class="demo-ruleForm">
<el-form-item label="规则类型:" prop="ruleType"> <el-form-item label="规则类型:" prop="ruleType">
<el-select placeholder="请选择规则类型" v-model="ruleForm.ruleType"> <el-select placeholder="请选择规则类型" v-model="ruleForm.ruleType">
<el-option label="字符串" value="1"></el-option> <el-option label="字符串" :value=1></el-option>
<el-option label="整数" value="2"></el-option> <el-option label="整数" :value=2></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="前缀:" prop="prefixstr"> <el-form-item label="前缀:" prop="prefixstr">
@@ -14,7 +14,7 @@
</el-form-item> </el-form-item>
<el-form-item label="时间格式:" prop="dateFormat"> <el-form-item label="时间格式:" prop="dateFormat">
<el-select placeholder="请选择时间格式" v-model="ruleForm.dateFormat"> <el-select placeholder="请选择时间格式" v-model="ruleForm.dateFormat">
<el-option label="yyyy-MM-dd" value="1"></el-option> <el-option label="yyyy-MM-dd" :value=1></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="机构名称:" prop="deptName"> <el-form-item label="机构名称:" prop="deptName">
@@ -63,6 +63,14 @@ export default {
editData(val) { editData(val) {
if (val) { if (val) {
this.ruleForm = val; this.ruleForm = val;
if(this.ruleForm.dateFormat=="yyyy-MM-dd"){
this.ruleForm.dateFormat=1
}
if(this.ruleForm.ruleType=="整数"){
this.ruleForm.ruleType=2
}else if(this.ruleForm.ruleType=="字符串"){
this.ruleForm.ruleType=1
}
} }
} }
}, },
@@ -88,7 +96,7 @@ export default {
this.updateCaseNumRuleFn({ this.updateCaseNumRuleFn({
id:this.ruleForm.id, id:this.ruleForm.id,
prefixstr:this.ruleForm.prefixstr, prefixstr:this.ruleForm.prefixstr,
dateFormat:this.ruleForm.deptName, dateFormat:this.ruleForm.dateFormat,
deptNameFirchar:this.ruleForm.deptNameFirchar, deptNameFirchar:this.ruleForm.deptNameFirchar,
deptName:this.ruleForm.deptName, deptName:this.ruleForm.deptName,
ruleType:this.ruleForm.ruleType, ruleType:this.ruleForm.ruleType,