浏览代码

批量用印,案件编号搜索

gyj 2 年前
父节点
当前提交
876c34ea8a

+ 8
- 0
src/api/caseAccess/caseEntry.js 查看文件

24
     data: data
24
     data: data
25
   })
25
   })
26
 }
26
 }
27
+// 批量签名提交
28
+export function selectBatchSealUrl(data) {
29
+  return request({
30
+    url: '/adjudication/selectBatchSealUrl',
31
+    method: 'post',
32
+    data: data
33
+  })
34
+}
27
 // 立案申请
35
 // 立案申请
28
 export function addCaseApply(data) {
36
 export function addCaseApply(data) {
29
   return request({
37
   return request({

+ 3
- 1
src/views/caseManagement/caseList.vue 查看文件

74
         >
74
         >
75
           批量签名
75
           批量签名
76
         </el-button>
76
         </el-button>
77
-        <el-button  type="primary" plain icon="el-icon-plus" size="mini" @click="batchPrintings">
77
+        <el-button  type="primary" plain icon="el-icon-plus" size="mini" @click="batchPrintings"
78
+          v-hasPermi="['caseManagement:list:officialSeal']"
79
+        >
78
           批量用印
80
           批量用印
79
         </el-button>
81
         </el-button>
80
       </el-col>
82
       </el-col>

+ 1
- 1
src/views/caseManagement/components/batchDialog.vue 查看文件

63
 </template>
63
 </template>
64
 
64
 
65
 <script>
65
 <script>
66
-import { importTemplate } from "@/api/caseAccess/caseEntry";
66
+import { pageSignAdjudicate } from "@/api/caseAccess/caseEntry";
67
 import { getToken } from "@/utils/auth";
67
 import { getToken } from "@/utils/auth";
68
 export default {
68
 export default {
69
   props: ["openbatch","getcaseApply","queryParams"],
69
   props: ["openbatch","getcaseApply","queryParams"],

+ 73
- 6
src/views/caseManagement/components/batchPrinting.vue 查看文件

1
 <template>
1
 <template>
2
 <!-- 批量用印 -->
2
 <!-- 批量用印 -->
3
     <div>
3
     <div>
4
-        <el-dialog title="批量用印" :visible="printingVisable" @close="cancel" center :distroy-on-close="true">
4
+        <el-dialog title="批量用印" width="60%" :visible="printingVisable" @close="cancel" center :distroy-on-close="true">
5
+            <!-- 查询机构信息 -->
6
+            <el-form ref="courtReviewform" :model="courtReviewform">
7
+                <el-form-item
8
+                    label="查询机构:"
9
+                    prop="Arbitor"
10
+                    :rules="[
11
+                        {
12
+                        required: true,
13
+                        message: '查询机构不能为空',
14
+                        trigger: 'blur',
15
+                        },
16
+                ]"
17
+                >
18
+                <el-select
19
+                    placeholder="请选择查询机构"
20
+                    @change="changeArbitor"
21
+                    v-model="courtReviewform.Arbitor"
22
+                    clearable
23
+                >
24
+                    <el-option
25
+                     v-for="item in atoDataList"
26
+                    :key="item.id"
27
+                    :label="item.identifyName"
28
+                    :value="item.operPhone"
29
+                    ></el-option>
30
+                </el-select>
31
+                </el-form-item>
32
+                </el-form>
5
             <el-table v-loading="loading" :data="dataList" style="width: 100%" @selection-change="handleSelectionChange">
33
             <el-table v-loading="loading" :data="dataList" style="width: 100%" @selection-change="handleSelectionChange">
6
                 <el-table-column type="selection">
34
                 <el-table-column type="selection">
7
                 </el-table-column>
35
                 </el-table-column>
30
                 :limit.sync="queryParamsData.pageSize"  />
58
                 :limit.sync="queryParamsData.pageSize"  />
31
             <div slot="footer" class="dialog-footer">
59
             <div slot="footer" class="dialog-footer">
32
                 <el-button @click="cancel"  class="endbutton"><span>取 消</span></el-button>
60
                 <el-button @click="cancel"  class="endbutton"><span>取 消</span></el-button>
33
-                <el-button type="primary" class="endbutton" :disabled="dataList.length == 0 || batchData.length == 0"><span>确认用印</span></el-button>
61
+                <el-button type="primary" class="endbutton" :disabled="dataList.length == 0 || batchData.length == 0" @click="confirmSeals"><span>确认用印</span></el-button>
34
             </div>
62
             </div>
35
         </el-dialog>
63
         </el-dialog>
36
     </div>
64
     </div>
37
 </template>
65
 </template>
38
 <script>
66
 <script>
39
-import {caseApply} from '@/api/caseAccess/caseEntry'
67
+import {selectBatchSealUrl,pageSignAdjudicate} from '@/api/caseAccess/caseEntry'
68
+import {deptIdentifyList} from '@/api/officialSeal/officialSeal'
40
 export default {
69
 export default {
41
     props:["printingVisable"],
70
     props:["printingVisable"],
42
     data() {
71
     data() {
47
             total:0,
76
             total:0,
48
              // 查询参数
77
              // 查询参数
49
             queryParamsData: {
78
             queryParamsData: {
50
-                caseStatus: 3, //待定
79
+                caseStatus: 14, 
51
                 pageNum: 1,
80
                 pageNum: 1,
52
                 pageSize: 10,
81
                 pageSize: 10,
53
             },
82
             },
54
            // 表格数据
83
            // 表格数据
55
             dataList: [],
84
             dataList: [],
56
             batchData: [],
85
             batchData: [],
86
+            atoDataList:[],
87
+            courtReviewform: {},
88
+            Arbitor: "",
89
+            paramsdata:{
90
+                ids:[],
91
+                psnAccount:""
92
+            },
57
         }
93
         }
58
     },
94
     },
59
     watch: {
95
     watch: {
65
     },
101
     },
66
     created(){
102
     created(){
67
         this.getBatchPrinting(this.queryParamsData)
103
         this.getBatchPrinting(this.queryParamsData)
104
+        this.getarbitrAtor()
68
     },
105
     },
69
     methods:{
106
     methods:{
70
         // 列表查询
107
         // 列表查询
71
          getBatchPrinting(val){
108
          getBatchPrinting(val){
72
              this.loading = true;
109
              this.loading = true;
73
-            caseApply(val).then(res=>{
110
+            pageSignAdjudicate(val).then(res=>{
74
                 this.dataList = res.rows
111
                 this.dataList = res.rows
75
                 this.total = res.total;
112
                 this.total = res.total;
76
                  this.loading = false;
113
                  this.loading = false;
80
         handleSelectionChange(val){
117
         handleSelectionChange(val){
81
              this.batchData = [];
118
              this.batchData = [];
82
             val.forEach(item => {
119
             val.forEach(item => {
83
-                this.batchData.push(item.id)
120
+                this.batchData.push(item.signFlowId)
121
+                this.paramsdata.ids = this.batchData
84
             })
122
             })
85
         },
123
         },
124
+            // 查询机构信息
125
+        getarbitrAtor() {
126
+                this.atoDataList =[]
127
+                deptIdentifyList({}).then((res) => {
128
+                    console.log(res)
129
+                    this.atoDataList = res.rows;
130
+                    // this.total = res.total; 
131
+                });
132
+        },
133
+        // 下拉获取电话号码
134
+        changeArbitor(val){
135
+            this.paramsdata.psnAccount = val
136
+        },
137
+        // 确认用印
138
+        confirmSeals(){
139
+         this.$refs["courtReviewform"].validate((valid) => {
140
+            if (valid) {
141
+          selectBatchSealUrl(this.paramsdata).then((res) => { 
142
+              this.$modal.msgSuccess("确认成功");
143
+              this.cancel();
144
+              this.getBatchPrinting(this.queryParamsData)
145
+              window.open(res.data.signUrl)
146
+              
147
+            //   this.$emit("getcaseApply", this.queryParams);
148
+            })
149
+            .catch((err) => {});
150
+        }
151
+      });
152
+    },
86
         cancel() {
153
         cancel() {
87
          this.$emit("printingOperate");
154
          this.$emit("printingOperate");
88
         },
155
         },

+ 2
- 1
src/views/caseManagement/components/batchSignature.vue 查看文件

131
     getarbitrAtor() {
131
     getarbitrAtor() {
132
     this.atoDataList =[]
132
     this.atoDataList =[]
133
       arbitrAtor({}).then((res) => {
133
       arbitrAtor({}).then((res) => {
134
-          console.log(res)
135
         this.atoDataList = res.rows;
134
         this.atoDataList = res.rows;
136
         // this.total = res.total; 
135
         // this.total = res.total; 
137
       });
136
       });
148
           selectBatchSignUrl(this.paramsdata).then((res) => { 
147
           selectBatchSignUrl(this.paramsdata).then((res) => { 
149
               this.$modal.msgSuccess("确认成功");
148
               this.$modal.msgSuccess("确认成功");
150
               this.cancel();
149
               this.cancel();
150
+              this.getBatchSignation(this.queryParamsData)
151
               window.open(res.data.signUrl)
151
               window.open(res.data.signUrl)
152
+              
152
             //   this.$emit("getcaseApply", this.queryParams);
153
             //   this.$emit("getcaseApply", this.queryParams);
153
             })
154
             })
154
             .catch((err) => {});
155
             .catch((err) => {});

+ 20
- 1
src/views/numberManagement/caseNumberList.vue 查看文件

1
 <template>
1
 <template>
2
     <div class="app-container">
2
     <div class="app-container">
3
+            <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="140px">
4
+            <el-form-item label="机构名称首字母拼写" prop="deptNameFirchar">
5
+                <el-input v-model="queryParams.deptNameFirchar" placeholder="请输入机构首字母拼写" clearable @keyup.enter.native="handleQuery" />
6
+            </el-form-item>
7
+            <el-form-item>
8
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
9
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
10
+      </el-form-item>
11
+    </el-form>
3
         <el-row :gutter="10" class="mb8">
12
         <el-row :gutter="10" class="mb8">
4
             <el-col :span="1.5">
13
             <el-col :span="1.5">
5
                 <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="addList">新增</el-button>
14
                 <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="addList">新增</el-button>
22
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
31
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
23
                 <template slot-scope="scope">
32
                 <template slot-scope="scope">
24
                     <el-button size="mini"  type="text" icon="el-icon-delete" @click="deleteTemplate(scope.row)">删除</el-button>
33
                     <el-button size="mini"  type="text" icon="el-icon-delete" @click="deleteTemplate(scope.row)">删除</el-button>
25
-                    <el-button size="mini" type="text" icon="el-icon-edit" @click="eidtTemplate(scope.row)">修改模板</el-button>
34
+                    <el-button size="mini" type="text" icon="el-icon-edit" @click="eidtTemplate(scope.row)">编号修改</el-button>
26
                 </template>
35
                 </template>
27
             </el-table-column>
36
             </el-table-column>
28
         </el-table>
37
         </el-table>
71
         eidtTemplate(row){
80
         eidtTemplate(row){
72
             this.modifyVisable =true;
81
             this.modifyVisable =true;
73
             this.editData =row;
82
             this.editData =row;
83
+        },
84
+            /** 搜索按钮操作 */
85
+        handleQuery() {
86
+        this.queryParams.pageNum = 1;
87
+        this.getList(this.queryParams);
88
+        },
89
+            /** 重置按钮操作 */
90
+        resetQuery() {
91
+        this.resetForm("queryForm");
92
+        this.handleQuery();
74
         },
93
         },
75
         getList(parm){
94
         getList(parm){
76
             this.loading = true;
95
             this.loading = true;

+ 3
- 3
src/views/numberManagement/components/addOrdered.vue 查看文件

5
                 class="demo-ruleForm">
5
                 class="demo-ruleForm">
6
                 <el-form-item label="规则类型:" prop="ruleType">
6
                 <el-form-item label="规则类型:" prop="ruleType">
7
                     <el-select  placeholder="请选择规则类型" v-model="ruleForm.ruleType">
7
                     <el-select  placeholder="请选择规则类型" v-model="ruleForm.ruleType">
8
-                        <el-option label="字符串" value="1"></el-option>
9
-                        <el-option label="整数" value="2"></el-option>
8
+                        <el-option label="字符串" :value=1></el-option>
9
+                        <el-option label="整数" :value=2></el-option>
10
                     </el-select>
10
                     </el-select>
11
                 </el-form-item>
11
                 </el-form-item>
12
                 <el-form-item label="前缀:" prop="prefixstr">
12
                 <el-form-item label="前缀:" prop="prefixstr">
14
                 </el-form-item>
14
                 </el-form-item>
15
                 <el-form-item label="时间格式:" prop="dateFormat">
15
                 <el-form-item label="时间格式:" prop="dateFormat">
16
                     <el-select  placeholder="请选择时间格式" v-model="ruleForm.dateFormat">
16
                     <el-select  placeholder="请选择时间格式" v-model="ruleForm.dateFormat">
17
-                        <el-option label="yyyy-MM-dd" value="1"></el-option>
17
+                        <el-option label="yyyy-MM-dd" :value=1></el-option>
18
                     </el-select>
18
                     </el-select>
19
                 </el-form-item>
19
                 </el-form-item>
20
                 <el-form-item label="机构名称:" prop="deptName">
20
                 <el-form-item label="机构名称:" prop="deptName">

+ 9
- 1
src/views/numberManagement/components/modifyTemplate.vue 查看文件

63
         editData(val) {
63
         editData(val) {
64
             if (val) {
64
             if (val) {
65
                 this.ruleForm = val;
65
                 this.ruleForm = val;
66
+                if(this.ruleForm.dateFormat=="yyyy-MM-dd"){
67
+                    this.ruleForm.dateFormat=1
68
+                }
69
+                if(this.ruleForm.ruleType=="整数"){
70
+                    this.ruleForm.ruleType=2
71
+                }else if(this.ruleForm.ruleType=="字符串"){
72
+                    this.ruleForm.ruleType=1
73
+                }
66
             }
74
             }
67
         }
75
         }
68
     },
76
     },
88
                     this.updateCaseNumRuleFn({
96
                     this.updateCaseNumRuleFn({
89
                         id:this.ruleForm.id,
97
                         id:this.ruleForm.id,
90
                         prefixstr:this.ruleForm.prefixstr,
98
                         prefixstr:this.ruleForm.prefixstr,
91
-                        dateFormat:this.ruleForm.deptName,
99
+                        dateFormat:this.ruleForm.dateFormat,
92
                         deptNameFirchar:this.ruleForm.deptNameFirchar,
100
                         deptNameFirchar:this.ruleForm.deptNameFirchar,
93
                         deptName:this.ruleForm.deptName,
101
                         deptName:this.ruleForm.deptName,
94
                         ruleType:this.ruleForm.ruleType,
102
                         ruleType:this.ruleForm.ruleType,