|
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" v-show="showSearch" label-width="68px">
|
3
|
+ <el-form
|
|
|
|
4
|
+ :model="queryParams"
|
|
|
|
5
|
+ ref="queryForm"
|
|
|
|
6
|
+ size="small"
|
|
|
|
7
|
+ :inline="true"
|
|
|
|
8
|
+ v-show="showSearch"
|
|
|
|
9
|
+ label-width="68px"
|
|
|
|
10
|
+ >
|
|
4
|
<el-form-item label="合同编号" prop="contractno">
|
11
|
<el-form-item label="合同编号" prop="contractno">
|
|
5
|
<el-input
|
12
|
<el-input
|
|
6
|
v-model="queryParams.contractno"
|
13
|
v-model="queryParams.contractno"
|
|
@@ -18,8 +25,16 @@ |
|
@@ -18,8 +25,16 @@ |
|
18
|
/>
|
25
|
/>
|
|
19
|
</el-form-item>
|
26
|
</el-form-item>
|
|
20
|
<el-form-item>
|
27
|
<el-form-item>
|
|
21
|
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
22
|
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
28
|
+ <el-button
|
|
|
|
29
|
+ type="primary"
|
|
|
|
30
|
+ icon="el-icon-search"
|
|
|
|
31
|
+ size="mini"
|
|
|
|
32
|
+ @click="handleQuery"
|
|
|
|
33
|
+ >搜索</el-button
|
|
|
|
34
|
+ >
|
|
|
|
35
|
+ <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
|
|
|
36
|
+ >重置</el-button
|
|
|
|
37
|
+ >
|
|
23
|
</el-form-item>
|
38
|
</el-form-item>
|
|
24
|
</el-form>
|
39
|
</el-form>
|
|
25
|
|
40
|
|
|
@@ -54,7 +69,8 @@ |
|
@@ -54,7 +69,8 @@ |
|
54
|
:disabled="multiple"
|
69
|
:disabled="multiple"
|
|
55
|
@click="handleDelete"
|
70
|
@click="handleDelete"
|
|
56
|
v-hasPermi="['system:contract:remove']"
|
71
|
v-hasPermi="['system:contract:remove']"
|
|
57
|
- >删除</el-button>
|
72
|
+ >删除</el-button
|
|
|
|
73
|
+ >
|
|
58
|
</el-col>
|
74
|
</el-col>
|
|
59
|
<el-col :span="1.5">
|
75
|
<el-col :span="1.5">
|
|
60
|
<el-button
|
76
|
<el-button
|
|
@@ -64,46 +80,120 @@ |
|
@@ -64,46 +80,120 @@ |
|
64
|
size="mini"
|
80
|
size="mini"
|
|
65
|
@click="handleExport"
|
81
|
@click="handleExport"
|
|
66
|
v-hasPermi="['system:contract:export']"
|
82
|
v-hasPermi="['system:contract:export']"
|
|
67
|
- >导出</el-button>
|
83
|
+ >导出</el-button
|
|
|
|
84
|
+ >
|
|
68
|
</el-col>
|
85
|
</el-col>
|
|
69
|
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
86
|
+ <right-toolbar
|
|
|
|
87
|
+ :showSearch.sync="showSearch"
|
|
|
|
88
|
+ @queryTable="getList"
|
|
|
|
89
|
+ ></right-toolbar>
|
|
70
|
</el-row>
|
90
|
</el-row>
|
|
71
|
|
91
|
|
|
72
|
- <el-table v-loading="loading" :data="contractList" @selection-change="handleSelectionChange">
|
92
|
+ <el-table
|
|
|
|
93
|
+ v-loading="loading"
|
|
|
|
94
|
+ :data="contractList"
|
|
|
|
95
|
+ @selection-change="handleSelectionChange"
|
|
|
|
96
|
+ >
|
|
73
|
<el-table-column type="selection" width="55" align="center" />
|
97
|
<el-table-column type="selection" width="55" align="center" />
|
|
74
|
- <el-table-column label="合同编号" align="center" prop="contractno" width="100"/>
|
|
|
|
75
|
- <el-table-column label="合同名称" align="center" prop="contractName" width="200"/>
|
|
|
|
76
|
- <el-table-column label="合同类型" align="center" prop="contractType" width="100"/>
|
|
|
|
77
|
- <el-table-column label="合同金额" align="center" prop="contractAmount" width="100"/>
|
|
|
|
78
|
- <el-table-column label="生效日期" align="center" prop="effectiveDate" width="100">
|
98
|
+ <el-table-column
|
|
|
|
99
|
+ label="合同编号"
|
|
|
|
100
|
+ align="center"
|
|
|
|
101
|
+ prop="contractno"
|
|
|
|
102
|
+ width="100"
|
|
|
|
103
|
+ />
|
|
|
|
104
|
+ <el-table-column
|
|
|
|
105
|
+ label="合同名称"
|
|
|
|
106
|
+ align="center"
|
|
|
|
107
|
+ prop="contractName"
|
|
|
|
108
|
+ width="200"
|
|
|
|
109
|
+ />
|
|
|
|
110
|
+ <el-table-column
|
|
|
|
111
|
+ label="合同类型"
|
|
|
|
112
|
+ align="center"
|
|
|
|
113
|
+ prop="contractType"
|
|
|
|
114
|
+ width="100"
|
|
|
|
115
|
+ />
|
|
|
|
116
|
+ <el-table-column
|
|
|
|
117
|
+ label="合同金额"
|
|
|
|
118
|
+ align="center"
|
|
|
|
119
|
+ prop="contractAmount"
|
|
|
|
120
|
+ width="100"
|
|
|
|
121
|
+ />
|
|
|
|
122
|
+ <el-table-column
|
|
|
|
123
|
+ label="生效日期"
|
|
|
|
124
|
+ align="center"
|
|
|
|
125
|
+ prop="effectiveDate"
|
|
|
|
126
|
+ width="100"
|
|
|
|
127
|
+ >
|
|
79
|
<template slot-scope="scope">
|
128
|
<template slot-scope="scope">
|
|
80
|
- <span>{{ parseTime(scope.row.effectiveDate, '{y}-{m}-{d}') }}</span>
|
129
|
+ <span>{{ parseTime(scope.row.effectiveDate, "{y}-{m}-{d}") }}</span>
|
|
81
|
</template>
|
130
|
</template>
|
|
82
|
</el-table-column>
|
131
|
</el-table-column>
|
|
83
|
- <el-table-column label="到期日期" align="center" prop="expirationDate" width="100">
|
132
|
+ <el-table-column
|
|
|
|
133
|
+ label="到期日期"
|
|
|
|
134
|
+ align="center"
|
|
|
|
135
|
+ prop="expirationDate"
|
|
|
|
136
|
+ width="100"
|
|
|
|
137
|
+ >
|
|
84
|
<template slot-scope="scope">
|
138
|
<template slot-scope="scope">
|
|
85
|
- <span>{{ parseTime(scope.row.expirationDate, '{y}-{m}-{d}') }}</span>
|
139
|
+ <span>{{ parseTime(scope.row.expirationDate, "{y}-{m}-{d}") }}</span>
|
|
86
|
</template>
|
140
|
</template>
|
|
87
|
</el-table-column>
|
141
|
</el-table-column>
|
|
88
|
<el-table-column label="甲方" align="center" prop="partyA" width="200">
|
142
|
<el-table-column label="甲方" align="center" prop="partyA" width="200">
|
|
89
|
<template slot-scope="scope">
|
143
|
<template slot-scope="scope">
|
|
90
|
- <a :href="scope.row.partyAAddress" target="_blank" style="color: blue;">{{ scope.row.partyA }}</a>
|
144
|
+ <a
|
|
|
|
145
|
+ :href="scope.row.partyAAddress"
|
|
|
|
146
|
+ target="_blank"
|
|
|
|
147
|
+ style="color: blue"
|
|
|
|
148
|
+ >{{ scope.row.partyA }}</a
|
|
|
|
149
|
+ >
|
|
91
|
</template>
|
150
|
</template>
|
|
92
|
</el-table-column>
|
151
|
</el-table-column>
|
|
93
|
<el-table-column label="乙方" align="center" prop="partyB" width="200">
|
152
|
<el-table-column label="乙方" align="center" prop="partyB" width="200">
|
|
94
|
<template slot-scope="scope">
|
153
|
<template slot-scope="scope">
|
|
95
|
- <a :href="scope.row.partyBAddress" target="_blank" style="color: blue;">{{ scope.row.partyB }}</a>
|
154
|
+ <a
|
|
|
|
155
|
+ :href="scope.row.partyBAddress"
|
|
|
|
156
|
+ target="_blank"
|
|
|
|
157
|
+ style="color: blue"
|
|
|
|
158
|
+ >{{ scope.row.partyB }}</a
|
|
|
|
159
|
+ >
|
|
96
|
</template>
|
160
|
</template>
|
|
97
|
</el-table-column>
|
161
|
</el-table-column>
|
|
98
|
- <el-table-column label="付款方式" align="center" prop="paymentMethod" width="200"/>
|
|
|
|
99
|
- <el-table-column label="签订日期" align="center" prop="signingDate" width="100">
|
162
|
+ <el-table-column
|
|
|
|
163
|
+ label="付款方式"
|
|
|
|
164
|
+ align="center"
|
|
|
|
165
|
+ prop="paymentMethod"
|
|
|
|
166
|
+ width="200"
|
|
|
|
167
|
+ />
|
|
|
|
168
|
+ <el-table-column
|
|
|
|
169
|
+ label="签订日期"
|
|
|
|
170
|
+ align="center"
|
|
|
|
171
|
+ prop="signingDate"
|
|
|
|
172
|
+ width="100"
|
|
|
|
173
|
+ >
|
|
100
|
<template slot-scope="scope">
|
174
|
<template slot-scope="scope">
|
|
101
|
- <span>{{ parseTime(scope.row.signingDate, '{y}-{m}-{d}') }}</span>
|
175
|
+ <span>{{ parseTime(scope.row.signingDate, "{y}-{m}-{d}") }}</span>
|
|
102
|
</template>
|
176
|
</template>
|
|
103
|
</el-table-column>
|
177
|
</el-table-column>
|
|
104
|
- <el-table-column label="标的物信息" align="center" prop="subjectInformation" width="200" />
|
|
|
|
105
|
- <el-table-column label="附件" align="center" prop="attachments" width="100"/>
|
|
|
|
106
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="200">
|
178
|
+ <el-table-column
|
|
|
|
179
|
+ label="标的物信息"
|
|
|
|
180
|
+ align="center"
|
|
|
|
181
|
+ prop="subjectInformation"
|
|
|
|
182
|
+ width="200"
|
|
|
|
183
|
+ />
|
|
|
|
184
|
+ <el-table-column
|
|
|
|
185
|
+ label="附件"
|
|
|
|
186
|
+ align="center"
|
|
|
|
187
|
+ prop="attachments"
|
|
|
|
188
|
+ width="100"
|
|
|
|
189
|
+ />
|
|
|
|
190
|
+ <el-table-column
|
|
|
|
191
|
+ label="操作"
|
|
|
|
192
|
+ align="center"
|
|
|
|
193
|
+ class-name="small-padding fixed-width"
|
|
|
|
194
|
+ fixed="right"
|
|
|
|
195
|
+ width="200"
|
|
|
|
196
|
+ >
|
|
107
|
<template slot-scope="scope">
|
197
|
<template slot-scope="scope">
|
|
108
|
<el-button
|
198
|
<el-button
|
|
109
|
type="text"
|
199
|
type="text"
|
|
@@ -111,7 +201,8 @@ |
|
@@ -111,7 +201,8 @@ |
|
111
|
icon="el-icon-tickets"
|
201
|
icon="el-icon-tickets"
|
|
112
|
@click="handleFlowRecord(scope.row)"
|
202
|
@click="handleFlowRecord(scope.row)"
|
|
113
|
v-hasPermi="['workflow:process:query']"
|
203
|
v-hasPermi="['workflow:process:query']"
|
|
114
|
- >详情</el-button>
|
204
|
+ >详情</el-button
|
|
|
|
205
|
+ >
|
|
115
|
<el-button
|
206
|
<el-button
|
|
116
|
type="text"
|
207
|
type="text"
|
|
117
|
size="mini"
|
208
|
size="mini"
|
|
@@ -119,27 +210,37 @@ |
|
@@ -119,27 +210,37 @@ |
|
119
|
@click="handleDelete(scope.row)"
|
210
|
@click="handleDelete(scope.row)"
|
|
120
|
v-if="scope.row.finishTime"
|
211
|
v-if="scope.row.finishTime"
|
|
121
|
v-hasPermi="['workflow:process:remove']"
|
212
|
v-hasPermi="['workflow:process:remove']"
|
|
122
|
- >删除</el-button>
|
213
|
+ >删除</el-button
|
|
|
|
214
|
+ >
|
|
123
|
<el-button
|
215
|
<el-button
|
|
124
|
type="text"
|
216
|
type="text"
|
|
125
|
size="mini"
|
217
|
size="mini"
|
|
126
|
icon="el-icon-circle-close"
|
218
|
icon="el-icon-circle-close"
|
|
127
|
@click="handleStop(scope.row)"
|
219
|
@click="handleStop(scope.row)"
|
|
128
|
v-hasPermi="['workflow:process:cancel']"
|
220
|
v-hasPermi="['workflow:process:cancel']"
|
|
129
|
- >取消</el-button>
|
221
|
+ >取消</el-button
|
|
|
|
222
|
+ >
|
|
130
|
<el-button
|
223
|
<el-button
|
|
131
|
type="text"
|
224
|
type="text"
|
|
132
|
size="mini"
|
225
|
size="mini"
|
|
133
|
icon="el-icon-refresh-right"
|
226
|
icon="el-icon-refresh-right"
|
|
134
|
v-hasPermi="['workflow:process:start']"
|
227
|
v-hasPermi="['workflow:process:start']"
|
|
135
|
@click="handleAgain(scope.row)"
|
228
|
@click="handleAgain(scope.row)"
|
|
136
|
- >重新发起</el-button>
|
229
|
+ >重新发起</el-button
|
|
|
|
230
|
+ >
|
|
|
|
231
|
+ <el-button
|
|
|
|
232
|
+ type="text"
|
|
|
|
233
|
+ size="mini"
|
|
|
|
234
|
+ icon="el-icon-edit-outline"
|
|
|
|
235
|
+ @click="handleEdit(scope.row)"
|
|
|
|
236
|
+ >合同变更</el-button
|
|
|
|
237
|
+ >
|
|
137
|
</template>
|
238
|
</template>
|
|
138
|
</el-table-column>
|
239
|
</el-table-column>
|
|
139
|
</el-table>
|
240
|
</el-table>
|
|
140
|
|
241
|
|
|
141
|
<pagination
|
242
|
<pagination
|
|
142
|
- v-show="total>0"
|
243
|
+ v-show="total > 0"
|
|
143
|
:total="total"
|
244
|
:total="total"
|
|
144
|
:page.sync="queryParams.pageNum"
|
245
|
:page.sync="queryParams.pageNum"
|
|
145
|
:limit.sync="queryParams.pageSize"
|
246
|
:limit.sync="queryParams.pageSize"
|
|
@@ -159,13 +260,22 @@ |
|
@@ -159,13 +260,22 @@ |
|
159
|
<el-input v-model="form.contractType" placeholder="请输入合同类型" />
|
260
|
<el-input v-model="form.contractType" placeholder="请输入合同类型" />
|
|
160
|
</el-form-item>
|
261
|
</el-form-item>
|
|
161
|
<el-form-item label="合同金额" prop="contractAmount">
|
262
|
<el-form-item label="合同金额" prop="contractAmount">
|
|
162
|
- <el-input v-model="form.contractAmount" placeholder="请输入合同金额" />
|
263
|
+ <el-input
|
|
|
|
264
|
+ v-model="form.contractAmount"
|
|
|
|
265
|
+ placeholder="请输入合同金额"
|
|
|
|
266
|
+ />
|
|
163
|
</el-form-item>
|
267
|
</el-form-item>
|
|
164
|
<el-form-item label="生效日期" prop="effectiveDate">
|
268
|
<el-form-item label="生效日期" prop="effectiveDate">
|
|
165
|
- <el-date-picker v-model="form.effectiveDate" placeholder="请输入生效日期" />
|
269
|
+ <el-date-picker
|
|
|
|
270
|
+ v-model="form.effectiveDate"
|
|
|
|
271
|
+ placeholder="请输入生效日期"
|
|
|
|
272
|
+ />
|
|
166
|
</el-form-item>
|
273
|
</el-form-item>
|
|
167
|
<el-form-item label="到期日期" prop="expirationDate">
|
274
|
<el-form-item label="到期日期" prop="expirationDate">
|
|
168
|
- <el-date-picker v-model="form.expirationDate" placeholder="请输入到期日期" />
|
275
|
+ <el-date-picker
|
|
|
|
276
|
+ v-model="form.expirationDate"
|
|
|
|
277
|
+ placeholder="请输入到期日期"
|
|
|
|
278
|
+ />
|
|
169
|
</el-form-item>
|
279
|
</el-form-item>
|
|
170
|
<el-form-item label="甲方" prop="partyA">
|
280
|
<el-form-item label="甲方" prop="partyA">
|
|
171
|
<el-input v-model="form.partyA" placeholder="请输入甲方" />
|
281
|
<el-input v-model="form.partyA" placeholder="请输入甲方" />
|
|
@@ -177,17 +287,25 @@ |
|
@@ -177,17 +287,25 @@ |
|
177
|
<el-input v-model="form.paymentMethod" placeholder="请输入付款方式" />
|
287
|
<el-input v-model="form.paymentMethod" placeholder="请输入付款方式" />
|
|
178
|
</el-form-item>
|
288
|
</el-form-item>
|
|
179
|
<el-form-item label="签订日期" prop="signingDate">
|
289
|
<el-form-item label="签订日期" prop="signingDate">
|
|
180
|
- <el-date-picker v-model="form.signingDate" placeholder="请输入签订日期" />
|
290
|
+ <el-date-picker
|
|
|
|
291
|
+ v-model="form.signingDate"
|
|
|
|
292
|
+ placeholder="请输入签订日期"
|
|
|
|
293
|
+ />
|
|
181
|
</el-form-item>
|
294
|
</el-form-item>
|
|
182
|
<el-form-item label="标的物信息" prop="subjectInformation">
|
295
|
<el-form-item label="标的物信息" prop="subjectInformation">
|
|
183
|
- <el-input v-model="form.subjectInformation" placeholder="请输入标的物信息" />
|
296
|
+ <el-input
|
|
|
|
297
|
+ v-model="form.subjectInformation"
|
|
|
|
298
|
+ placeholder="请输入标的物信息"
|
|
|
|
299
|
+ />
|
|
184
|
</el-form-item>
|
300
|
</el-form-item>
|
|
185
|
<el-form-item label="附件" prop="attachments">
|
301
|
<el-form-item label="附件" prop="attachments">
|
|
186
|
<el-input v-model="form.attachments" placeholder="请输入附件" />
|
302
|
<el-input v-model="form.attachments" placeholder="请输入附件" />
|
|
187
|
</el-form-item>
|
303
|
</el-form-item>
|
|
188
|
</el-form>
|
304
|
</el-form>
|
|
189
|
<div slot="footer" class="dialog-footer">
|
305
|
<div slot="footer" class="dialog-footer">
|
|
190
|
- <el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
|
306
|
+ <el-button :loading="buttonLoading" type="primary" @click="submitForm"
|
|
|
|
307
|
+ >确 定</el-button
|
|
|
|
308
|
+ >
|
|
191
|
<el-button @click="cancel">取 消</el-button>
|
309
|
<el-button @click="cancel">取 消</el-button>
|
|
192
|
</div>
|
310
|
</div>
|
|
193
|
</el-dialog>
|
311
|
</el-dialog>
|
|
@@ -195,12 +313,18 @@ |
|
@@ -195,12 +313,18 @@ |
|
195
|
</template>
|
313
|
</template>
|
|
196
|
|
314
|
|
|
197
|
<script>
|
315
|
<script>
|
|
198
|
-import { listContract, getContract, delContract, addContract, updateContract } from "@/api/compliancemanagement/contract";
|
|
|
|
199
|
-import FileUpload from '@/components/FileUpload';
|
316
|
+import {
|
|
|
|
317
|
+ listContract,
|
|
|
|
318
|
+ getContract,
|
|
|
|
319
|
+ delContract,
|
|
|
|
320
|
+ addContract,
|
|
|
|
321
|
+ updateContract,
|
|
|
|
322
|
+} from "@/api/compliancemanagement/contract";
|
|
|
|
323
|
+import FileUpload from "@/components/FileUpload";
|
|
200
|
export default {
|
324
|
export default {
|
|
201
|
name: "Contract",
|
325
|
name: "Contract",
|
|
202
|
components: {
|
326
|
components: {
|
|
203
|
- FileUpload
|
327
|
+ FileUpload,
|
|
204
|
},
|
328
|
},
|
|
205
|
data() {
|
329
|
data() {
|
|
206
|
return {
|
330
|
return {
|
|
@@ -247,45 +371,39 @@ export default { |
|
@@ -247,45 +371,39 @@ export default { |
|
247
|
// 表单校验
|
371
|
// 表单校验
|
|
248
|
rules: {
|
372
|
rules: {
|
|
249
|
contractno: [
|
373
|
contractno: [
|
|
250
|
- { required: true, message: "合同编号不能为空", trigger: "blur" }
|
374
|
+ { required: true, message: "合同编号不能为空", trigger: "blur" },
|
|
251
|
],
|
375
|
],
|
|
252
|
contractName: [
|
376
|
contractName: [
|
|
253
|
- { required: true, message: "合同名称不能为空", trigger: "blur" }
|
377
|
+ { required: true, message: "合同名称不能为空", trigger: "blur" },
|
|
254
|
],
|
378
|
],
|
|
255
|
contractType: [
|
379
|
contractType: [
|
|
256
|
- { required: true, message: "合同类型不能为空", trigger: "change" }
|
380
|
+ { required: true, message: "合同类型不能为空", trigger: "change" },
|
|
257
|
],
|
381
|
],
|
|
258
|
contractAmount: [
|
382
|
contractAmount: [
|
|
259
|
- { required: true, message: "合同金额不能为空", trigger: "blur" }
|
383
|
+ { required: true, message: "合同金额不能为空", trigger: "blur" },
|
|
260
|
],
|
384
|
],
|
|
261
|
effectiveDate: [
|
385
|
effectiveDate: [
|
|
262
|
- { required: true, message: "生效日期不能为空", trigger: "blur" }
|
386
|
+ { required: true, message: "生效日期不能为空", trigger: "blur" },
|
|
263
|
],
|
387
|
],
|
|
264
|
expirationDate: [
|
388
|
expirationDate: [
|
|
265
|
- { required: true, message: "到期日期不能为空", trigger: "blur" }
|
|
|
|
266
|
- ],
|
|
|
|
267
|
- partyA: [
|
|
|
|
268
|
- { required: true, message: "甲方不能为空", trigger: "blur" }
|
|
|
|
269
|
- ],
|
|
|
|
270
|
- partyB: [
|
|
|
|
271
|
- { required: true, message: "乙方不能为空", trigger: "blur" }
|
389
|
+ { required: true, message: "到期日期不能为空", trigger: "blur" },
|
|
272
|
],
|
390
|
],
|
|
|
|
391
|
+ partyA: [{ required: true, message: "甲方不能为空", trigger: "blur" }],
|
|
|
|
392
|
+ partyB: [{ required: true, message: "乙方不能为空", trigger: "blur" }],
|
|
273
|
paymentMethod: [
|
393
|
paymentMethod: [
|
|
274
|
- { required: true, message: "付款方式不能为空", trigger: "blur" }
|
394
|
+ { required: true, message: "付款方式不能为空", trigger: "blur" },
|
|
275
|
],
|
395
|
],
|
|
276
|
signingDate: [
|
396
|
signingDate: [
|
|
277
|
- { required: true, message: "签订日期不能为空", trigger: "blur" }
|
397
|
+ { required: true, message: "签订日期不能为空", trigger: "blur" },
|
|
278
|
],
|
398
|
],
|
|
279
|
subjectInformation: [
|
399
|
subjectInformation: [
|
|
280
|
- { required: true, message: "标的物信息不能为空", trigger: "blur" }
|
400
|
+ { required: true, message: "标的物信息不能为空", trigger: "blur" },
|
|
281
|
],
|
401
|
],
|
|
282
|
attachments: [
|
402
|
attachments: [
|
|
283
|
- { required: true, message: "附件不能为空", trigger: "blur" }
|
403
|
+ { required: true, message: "附件不能为空", trigger: "blur" },
|
|
284
|
],
|
404
|
],
|
|
285
|
- id: [
|
|
|
|
286
|
- { required: true, message: "不能为空", trigger: "blur" }
|
|
|
|
287
|
- ]
|
|
|
|
288
|
- }
|
405
|
+ id: [{ required: true, message: "不能为空", trigger: "blur" }],
|
|
|
|
406
|
+ },
|
|
289
|
};
|
407
|
};
|
|
290
|
},
|
408
|
},
|
|
291
|
created() {
|
409
|
created() {
|
|
@@ -295,11 +413,11 @@ export default { |
|
@@ -295,11 +413,11 @@ export default { |
|
295
|
/** 查询【请填写功能名称】列表 */
|
413
|
/** 查询【请填写功能名称】列表 */
|
|
296
|
getList() {
|
414
|
getList() {
|
|
297
|
this.loading = true;
|
415
|
this.loading = true;
|
|
298
|
- listContract(this.queryParams).then(response => {
|
416
|
+ listContract(this.queryParams).then((response) => {
|
|
299
|
this.contractList = response.rows;
|
417
|
this.contractList = response.rows;
|
|
300
|
this.total = response.total;
|
418
|
this.total = response.total;
|
|
301
|
this.loading = false;
|
419
|
this.loading = false;
|
|
302
|
- console.log(this.contractList)
|
420
|
+ console.log(this.contractList);
|
|
303
|
});
|
421
|
});
|
|
304
|
},
|
422
|
},
|
|
305
|
// 取消按钮
|
423
|
// 取消按钮
|
|
@@ -322,7 +440,7 @@ export default { |
|
@@ -322,7 +440,7 @@ export default { |
|
322
|
signingDate: undefined,
|
440
|
signingDate: undefined,
|
|
323
|
subjectInformation: undefined,
|
441
|
subjectInformation: undefined,
|
|
324
|
attachments: undefined,
|
442
|
attachments: undefined,
|
|
325
|
- id: undefined
|
443
|
+ id: undefined,
|
|
326
|
};
|
444
|
};
|
|
327
|
this.resetForm("form");
|
445
|
this.resetForm("form");
|
|
328
|
},
|
446
|
},
|
|
@@ -338,9 +456,9 @@ export default { |
|
@@ -338,9 +456,9 @@ export default { |
|
338
|
},
|
456
|
},
|
|
339
|
// 多选框选中数据
|
457
|
// 多选框选中数据
|
|
340
|
handleSelectionChange(selection) {
|
458
|
handleSelectionChange(selection) {
|
|
341
|
- this.ids = selection.map(item => item.id)
|
|
|
|
342
|
- this.single = selection.length!==1
|
|
|
|
343
|
- this.multiple = !selection.length
|
459
|
+ this.ids = selection.map((item) => item.id);
|
|
|
|
460
|
+ this.single = selection.length !== 1;
|
|
|
|
461
|
+ this.multiple = !selection.length;
|
|
344
|
},
|
462
|
},
|
|
345
|
/** 新增按钮操作 */
|
463
|
/** 新增按钮操作 */
|
|
346
|
// handleAdd() {
|
464
|
// handleAdd() {
|
|
@@ -362,23 +480,27 @@ export default { |
|
@@ -362,23 +480,27 @@ export default { |
|
362
|
// },
|
480
|
// },
|
|
363
|
/** 提交按钮 */
|
481
|
/** 提交按钮 */
|
|
364
|
submitForm() {
|
482
|
submitForm() {
|
|
365
|
- this.$refs["form"].validate(valid => {
|
483
|
+ this.$refs["form"].validate((valid) => {
|
|
366
|
if (valid) {
|
484
|
if (valid) {
|
|
367
|
this.buttonLoading = true;
|
485
|
this.buttonLoading = true;
|
|
368
|
if (this.form.id != null) {
|
486
|
if (this.form.id != null) {
|
|
369
|
- updateContract(this.form).then(response => {
|
487
|
+ updateContract(this.form)
|
|
|
|
488
|
+ .then((response) => {
|
|
370
|
this.$modal.msgSuccess("修改成功");
|
489
|
this.$modal.msgSuccess("修改成功");
|
|
371
|
this.open = false;
|
490
|
this.open = false;
|
|
372
|
this.getList();
|
491
|
this.getList();
|
|
373
|
- }).finally(() => {
|
492
|
+ })
|
|
|
|
493
|
+ .finally(() => {
|
|
374
|
this.buttonLoading = false;
|
494
|
this.buttonLoading = false;
|
|
375
|
});
|
495
|
});
|
|
376
|
} else {
|
496
|
} else {
|
|
377
|
- addContract(this.form).then(response => {
|
497
|
+ addContract(this.form)
|
|
|
|
498
|
+ .then((response) => {
|
|
378
|
this.$modal.msgSuccess("新增成功");
|
499
|
this.$modal.msgSuccess("新增成功");
|
|
379
|
this.open = false;
|
500
|
this.open = false;
|
|
380
|
this.getList();
|
501
|
this.getList();
|
|
381
|
- }).finally(() => {
|
502
|
+ })
|
|
|
|
503
|
+ .finally(() => {
|
|
382
|
this.buttonLoading = false;
|
504
|
this.buttonLoading = false;
|
|
383
|
});
|
505
|
});
|
|
384
|
}
|
506
|
}
|
|
@@ -388,53 +510,64 @@ export default { |
|
@@ -388,53 +510,64 @@ export default { |
|
388
|
/** 删除按钮操作 */
|
510
|
/** 删除按钮操作 */
|
|
389
|
handleDelete(row) {
|
511
|
handleDelete(row) {
|
|
390
|
const ids = row.id || this.ids;
|
512
|
const ids = row.id || this.ids;
|
|
391
|
- this.$modal.confirm('是否确认删除【请填写功能名称】编号为"' + ids + '"的数据项?').then(() => {
|
513
|
+ this.$modal
|
|
|
|
514
|
+ .confirm('是否确认删除【请填写功能名称】编号为"' + ids + '"的数据项?')
|
|
|
|
515
|
+ .then(() => {
|
|
392
|
this.loading = true;
|
516
|
this.loading = true;
|
|
393
|
return delContract(ids);
|
517
|
return delContract(ids);
|
|
394
|
- }).then(() => {
|
518
|
+ })
|
|
|
|
519
|
+ .then(() => {
|
|
395
|
this.loading = false;
|
520
|
this.loading = false;
|
|
396
|
this.getList();
|
521
|
this.getList();
|
|
397
|
this.$modal.msgSuccess("删除成功");
|
522
|
this.$modal.msgSuccess("删除成功");
|
|
398
|
- }).catch(() => {
|
|
|
|
399
|
- }).finally(() => {
|
523
|
+ })
|
|
|
|
524
|
+ .catch(() => {})
|
|
|
|
525
|
+ .finally(() => {
|
|
400
|
this.loading = false;
|
526
|
this.loading = false;
|
|
401
|
});
|
527
|
});
|
|
402
|
},
|
528
|
},
|
|
403
|
/** 导出按钮操作 */
|
529
|
/** 导出按钮操作 */
|
|
404
|
handleExport() {
|
530
|
handleExport() {
|
|
405
|
- this.download('system/contract/export', {
|
|
|
|
406
|
- ...this.queryParams
|
|
|
|
407
|
- }, `contract_${new Date().getTime()}.xlsx`)
|
531
|
+ this.download(
|
|
|
|
532
|
+ "system/contract/export",
|
|
|
|
533
|
+ {
|
|
|
|
534
|
+ ...this.queryParams,
|
|
|
|
535
|
+ },
|
|
|
|
536
|
+ `contract_${new Date().getTime()}.xlsx`
|
|
|
|
537
|
+ );
|
|
408
|
},
|
538
|
},
|
|
409
|
/** 流程流转记录 */
|
539
|
/** 流程流转记录 */
|
|
410
|
handleFlowRecord(row) {
|
540
|
handleFlowRecord(row) {
|
|
411
|
this.$router.push({
|
541
|
this.$router.push({
|
|
412
|
- path: '/workflow/process/detail/' + row.procInsId,
|
542
|
+ path: "/workflow/process/detail/" + row.procInsId,
|
|
413
|
query: {
|
543
|
query: {
|
|
414
|
- processed: false
|
|
|
|
415
|
- }
|
|
|
|
416
|
- })
|
544
|
+ processed: false,
|
|
|
|
545
|
+ },
|
|
|
|
546
|
+ });
|
|
417
|
},
|
547
|
},
|
|
418
|
/** 取消流程申请 */
|
548
|
/** 取消流程申请 */
|
|
419
|
- handleStop(row){
|
549
|
+ handleStop(row) {
|
|
420
|
const params = {
|
550
|
const params = {
|
|
421
|
- procInsId: row.procInsId
|
|
|
|
422
|
- }
|
|
|
|
423
|
- stopProcess(params).then( res => {
|
551
|
+ procInsId: row.procInsId,
|
|
|
|
552
|
+ };
|
|
|
|
553
|
+ stopProcess(params).then((res) => {
|
|
424
|
this.$modal.msgSuccess(res.msg);
|
554
|
this.$modal.msgSuccess(res.msg);
|
|
425
|
this.getList();
|
555
|
this.getList();
|
|
426
|
});
|
556
|
});
|
|
427
|
},
|
557
|
},
|
|
428
|
handleAgain(row) {
|
558
|
handleAgain(row) {
|
|
429
|
this.$router.push({
|
559
|
this.$router.push({
|
|
430
|
- path: '/workflow/process/start/' + row.deployId,
|
560
|
+ path: "/workflow/process/start/" + row.deployId,
|
|
431
|
query: {
|
561
|
query: {
|
|
432
|
definitionId: row.procDefId,
|
562
|
definitionId: row.procDefId,
|
|
433
|
- procInsId: row.procInsId
|
|
|
|
434
|
- }
|
|
|
|
435
|
- })
|
563
|
+ procInsId: row.procInsId,
|
|
|
|
564
|
+ },
|
|
|
|
565
|
+ });
|
|
436
|
console.log(row);
|
566
|
console.log(row);
|
|
437
|
},
|
567
|
},
|
|
|
|
568
|
+ handleEdit(row){
|
|
|
|
569
|
+
|
|
438
|
}
|
570
|
}
|
|
|
|
571
|
+ },
|
|
439
|
};
|
572
|
};
|
|
440
|
</script> |
573
|
</script> |