|
|
@@ -1,7 +1,35 @@
|
|
1
|
1
|
<template>
|
|
2
|
2
|
<!-- 批量用印 -->
|
|
3
|
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
|
33
|
<el-table v-loading="loading" :data="dataList" style="width: 100%" @selection-change="handleSelectionChange">
|
|
6
|
34
|
<el-table-column type="selection">
|
|
7
|
35
|
</el-table-column>
|
|
|
@@ -30,13 +58,14 @@
|
|
30
|
58
|
:limit.sync="queryParamsData.pageSize" />
|
|
31
|
59
|
<div slot="footer" class="dialog-footer">
|
|
32
|
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
|
62
|
</div>
|
|
35
|
63
|
</el-dialog>
|
|
36
|
64
|
</div>
|
|
37
|
65
|
</template>
|
|
38
|
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
|
69
|
export default {
|
|
41
|
70
|
props:["printingVisable"],
|
|
42
|
71
|
data() {
|
|
|
@@ -47,13 +76,20 @@ export default {
|
|
47
|
76
|
total:0,
|
|
48
|
77
|
// 查询参数
|
|
49
|
78
|
queryParamsData: {
|
|
50
|
|
- caseStatus: 3, //待定
|
|
|
79
|
+ caseStatus: 14,
|
|
51
|
80
|
pageNum: 1,
|
|
52
|
81
|
pageSize: 10,
|
|
53
|
82
|
},
|
|
54
|
83
|
// 表格数据
|
|
55
|
84
|
dataList: [],
|
|
56
|
85
|
batchData: [],
|
|
|
86
|
+ atoDataList:[],
|
|
|
87
|
+ courtReviewform: {},
|
|
|
88
|
+ Arbitor: "",
|
|
|
89
|
+ paramsdata:{
|
|
|
90
|
+ ids:[],
|
|
|
91
|
+ psnAccount:""
|
|
|
92
|
+ },
|
|
57
|
93
|
}
|
|
58
|
94
|
},
|
|
59
|
95
|
watch: {
|
|
|
@@ -65,12 +101,13 @@ export default {
|
|
65
|
101
|
},
|
|
66
|
102
|
created(){
|
|
67
|
103
|
this.getBatchPrinting(this.queryParamsData)
|
|
|
104
|
+ this.getarbitrAtor()
|
|
68
|
105
|
},
|
|
69
|
106
|
methods:{
|
|
70
|
107
|
// 列表查询
|
|
71
|
108
|
getBatchPrinting(val){
|
|
72
|
109
|
this.loading = true;
|
|
73
|
|
- caseApply(val).then(res=>{
|
|
|
110
|
+ pageSignAdjudicate(val).then(res=>{
|
|
74
|
111
|
this.dataList = res.rows
|
|
75
|
112
|
this.total = res.total;
|
|
76
|
113
|
this.loading = false;
|
|
|
@@ -80,9 +117,39 @@ export default {
|
|
80
|
117
|
handleSelectionChange(val){
|
|
81
|
118
|
this.batchData = [];
|
|
82
|
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
|
153
|
cancel() {
|
|
87
|
154
|
this.$emit("printingOperate");
|
|
88
|
155
|
},
|