vue2-client 1.2.49 → 1.2.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +130 -130
- package/package.json +1 -1
- package/src/base-client/all.js +61 -61
- package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +105 -104
- package/src/base-client/components/common/AmapMarker/index.js +3 -3
- package/src/base-client/components/common/ScrollList/SrcollList.vue +113 -113
- package/src/base-client/components/common/ScrollList/index.js +3 -3
- package/src/base-client/components/common/XAddForm/XAddForm.vue +339 -339
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +316 -316
- package/src/base-client/components/common/XForm/XFormItem.vue +6 -1
- package/src/base-client/components/common/XFormTable/XFormTable.vue +0 -2
- package/src/base-client/components/iot/CustomerDetailsView/index.md +1 -2
- package/src/base-client/components/iot/DeviceBrandDetailsView/DeviceBrandDetailsView.vue +1 -1
- package/src/base-client/components/iot/DeviceDetailsView/DeviceDetailsView.vue +2 -7
- package/src/base-client/components/iot/DeviceDetailsView/index.md +0 -2
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +57 -57
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsMain.vue +240 -196
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +131 -131
- package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +1 -5
- package/src/base-client/components/iot/InstructDetailsView/InstructDetailsView.vue +6 -14
- package/src/base-client/components/iot/InstructDetailsView/index.md +0 -2
- package/src/base-client/components/iot/LogDetailsView/LogDetailsView.vue +6 -13
- package/src/base-client/components/iot/LogDetailsView/index.md +0 -2
- package/src/base-client/components/iot/MeterDetailsView/MeterDetailsView.vue +17 -24
- package/src/base-client/components/iot/MeterDetailsView/index.md +0 -2
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsCount.vue +0 -5
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsException.vue +0 -5
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsHandPlan.vue +0 -6
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsInstruct.vue +0 -6
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsMain.vue +1 -6
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsSellGas.vue +1 -6
- package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +8 -83
- package/src/base-client/components/iot/WebmeterAnalysisView/index.md +0 -6
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +853 -853
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
- package/src/base-client/plugins/AppData.js +57 -57
- package/src/base-client/plugins/compatible/LoginServiceOA.js +19 -0
- package/src/config/default/setting.config.js +2 -2
- package/src/layouts/header/HeaderNotice.vue +96 -96
- package/src/layouts/tabs/TabsView.vue +0 -3
- package/src/pages/login/Login.vue +53 -22
- package/src/pages/system/ticket/submitTicketSuccess.vue +268 -268
- package/src/router/async/config.async.js +26 -26
- package/src/router/index.js +27 -27
- package/src/theme/default/style.less +47 -47
- package/src/utils/map-utils.js +28 -17
- package/src/utils/routerUtil.js +1 -10
- package/vue.config.js +143 -143
|
@@ -1,131 +1,131 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<x-form-table
|
|
4
|
-
:logicName="logicName"
|
|
5
|
-
:logicParam="logicParam"
|
|
6
|
-
:fixedQueryForm="fixedQueryForm"
|
|
7
|
-
@onSubmit="onSubmit"
|
|
8
|
-
@action="toDetail">
|
|
9
|
-
</x-form-table>
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
<script>
|
|
13
|
-
|
|
14
|
-
import { STable, Ellipsis } from '@vue2-client/components'
|
|
15
|
-
import { formatDate } from '@vue2-client/utils/util'
|
|
16
|
-
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
17
|
-
|
|
18
|
-
export default {
|
|
19
|
-
name: 'DeviceDetailsInstruct',
|
|
20
|
-
components: {
|
|
21
|
-
STable,
|
|
22
|
-
Ellipsis,
|
|
23
|
-
XFormTable
|
|
24
|
-
},
|
|
25
|
-
props: {
|
|
26
|
-
deviceId: {
|
|
27
|
-
type: Number,
|
|
28
|
-
required: true
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
data () {
|
|
32
|
-
return {
|
|
33
|
-
selectInstructId: undefined,
|
|
34
|
-
startForm: {},
|
|
35
|
-
fixedQueryForm: {},
|
|
36
|
-
detailsViewVisible: false,
|
|
37
|
-
// 加载数据方法 必须为 Promise 对象
|
|
38
|
-
selectedRowKeys: [],
|
|
39
|
-
selectedRows: [],
|
|
40
|
-
logicName: 'getIotRead',
|
|
41
|
-
logicParam: null,
|
|
42
|
-
// 默认表格数据
|
|
43
|
-
defaultData: {
|
|
44
|
-
data: [],
|
|
45
|
-
pageSize: 0,
|
|
46
|
-
pageNo: 0,
|
|
47
|
-
totalPage: 0,
|
|
48
|
-
totalCount: 0
|
|
49
|
-
},
|
|
50
|
-
isShowUserFiles: false
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
computed: {
|
|
54
|
-
rowSelection () {
|
|
55
|
-
return {
|
|
56
|
-
selectedRowKeys: this.selectedRowKeys,
|
|
57
|
-
onChange: this.onSelectChange
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
mounted () {
|
|
62
|
-
this.initView()
|
|
63
|
-
},
|
|
64
|
-
methods: {
|
|
65
|
-
initView () {
|
|
66
|
-
this.logicParam = {
|
|
67
|
-
id: this.deviceId
|
|
68
|
-
}
|
|
69
|
-
this.fixedQueryForm['d_id'] = this.deviceId
|
|
70
|
-
},
|
|
71
|
-
onSubmit (res) {
|
|
72
|
-
res.form['d_id'] = this.deviceId
|
|
73
|
-
this.$emit('onSubmit', res)
|
|
74
|
-
},
|
|
75
|
-
refresh () {
|
|
76
|
-
this.$refs.table.refresh(true)
|
|
77
|
-
},
|
|
78
|
-
onSelectChange (selectedRowKeys, selectedRows) {
|
|
79
|
-
this.selectedRowKeys = selectedRowKeys
|
|
80
|
-
this.selectedRows = selectedRows
|
|
81
|
-
},
|
|
82
|
-
format (date, format) {
|
|
83
|
-
return formatDate(date, format)
|
|
84
|
-
},
|
|
85
|
-
toDetail (record) {
|
|
86
|
-
this.selectInstructId = record.id + ''
|
|
87
|
-
this.detailsViewVisible = true
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
</script>
|
|
92
|
-
|
|
93
|
-
<style lang='less' scoped>
|
|
94
|
-
.detail-layout {
|
|
95
|
-
margin-left: 44px
|
|
96
|
-
}
|
|
97
|
-
.text {
|
|
98
|
-
color: rgba(0, 0, 0, .45)
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.heading {
|
|
102
|
-
color: rgba(0, 0, 0, .85);
|
|
103
|
-
font-size: 20px
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.no-data {
|
|
107
|
-
color: rgba(0, 0, 0, .25);
|
|
108
|
-
text-align: center;
|
|
109
|
-
line-height: 64px;
|
|
110
|
-
font-size: 16px
|
|
111
|
-
|
|
112
|
-
/*i {*/
|
|
113
|
-
/* font-size: 24px*/
|
|
114
|
-
/* margin-right: 16px*/
|
|
115
|
-
/* position: relative*/
|
|
116
|
-
/* top: 3px*/
|
|
117
|
-
/*}*/
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.mobile {
|
|
121
|
-
.detail-layout {
|
|
122
|
-
margin-left: unset
|
|
123
|
-
}
|
|
124
|
-
.text {
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
.status-list {
|
|
128
|
-
text-align: left
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<x-form-table
|
|
4
|
+
:logicName="logicName"
|
|
5
|
+
:logicParam="logicParam"
|
|
6
|
+
:fixedQueryForm="fixedQueryForm"
|
|
7
|
+
@onSubmit="onSubmit"
|
|
8
|
+
@action="toDetail">
|
|
9
|
+
</x-form-table>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
<script>
|
|
13
|
+
|
|
14
|
+
import { STable, Ellipsis } from '@vue2-client/components'
|
|
15
|
+
import { formatDate } from '@vue2-client/utils/util'
|
|
16
|
+
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
name: 'DeviceDetailsInstruct',
|
|
20
|
+
components: {
|
|
21
|
+
STable,
|
|
22
|
+
Ellipsis,
|
|
23
|
+
XFormTable
|
|
24
|
+
},
|
|
25
|
+
props: {
|
|
26
|
+
deviceId: {
|
|
27
|
+
type: Number,
|
|
28
|
+
required: true
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
data () {
|
|
32
|
+
return {
|
|
33
|
+
selectInstructId: undefined,
|
|
34
|
+
startForm: {},
|
|
35
|
+
fixedQueryForm: {},
|
|
36
|
+
detailsViewVisible: false,
|
|
37
|
+
// 加载数据方法 必须为 Promise 对象
|
|
38
|
+
selectedRowKeys: [],
|
|
39
|
+
selectedRows: [],
|
|
40
|
+
logicName: 'getIotRead',
|
|
41
|
+
logicParam: null,
|
|
42
|
+
// 默认表格数据
|
|
43
|
+
defaultData: {
|
|
44
|
+
data: [],
|
|
45
|
+
pageSize: 0,
|
|
46
|
+
pageNo: 0,
|
|
47
|
+
totalPage: 0,
|
|
48
|
+
totalCount: 0
|
|
49
|
+
},
|
|
50
|
+
isShowUserFiles: false
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
computed: {
|
|
54
|
+
rowSelection () {
|
|
55
|
+
return {
|
|
56
|
+
selectedRowKeys: this.selectedRowKeys,
|
|
57
|
+
onChange: this.onSelectChange
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
mounted () {
|
|
62
|
+
this.initView()
|
|
63
|
+
},
|
|
64
|
+
methods: {
|
|
65
|
+
initView () {
|
|
66
|
+
this.logicParam = {
|
|
67
|
+
id: this.deviceId
|
|
68
|
+
}
|
|
69
|
+
this.fixedQueryForm['d_id'] = this.deviceId
|
|
70
|
+
},
|
|
71
|
+
onSubmit (res) {
|
|
72
|
+
res.form['d_id'] = this.deviceId
|
|
73
|
+
this.$emit('onSubmit', res)
|
|
74
|
+
},
|
|
75
|
+
refresh () {
|
|
76
|
+
this.$refs.table.refresh(true)
|
|
77
|
+
},
|
|
78
|
+
onSelectChange (selectedRowKeys, selectedRows) {
|
|
79
|
+
this.selectedRowKeys = selectedRowKeys
|
|
80
|
+
this.selectedRows = selectedRows
|
|
81
|
+
},
|
|
82
|
+
format (date, format) {
|
|
83
|
+
return formatDate(date, format)
|
|
84
|
+
},
|
|
85
|
+
toDetail (record) {
|
|
86
|
+
this.selectInstructId = record.id + ''
|
|
87
|
+
this.detailsViewVisible = true
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
</script>
|
|
92
|
+
|
|
93
|
+
<style lang='less' scoped>
|
|
94
|
+
.detail-layout {
|
|
95
|
+
margin-left: 44px
|
|
96
|
+
}
|
|
97
|
+
.text {
|
|
98
|
+
color: rgba(0, 0, 0, .45)
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.heading {
|
|
102
|
+
color: rgba(0, 0, 0, .85);
|
|
103
|
+
font-size: 20px
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.no-data {
|
|
107
|
+
color: rgba(0, 0, 0, .25);
|
|
108
|
+
text-align: center;
|
|
109
|
+
line-height: 64px;
|
|
110
|
+
font-size: 16px
|
|
111
|
+
|
|
112
|
+
/*i {*/
|
|
113
|
+
/* font-size: 24px*/
|
|
114
|
+
/* margin-right: 16px*/
|
|
115
|
+
/* position: relative*/
|
|
116
|
+
/* top: 3px*/
|
|
117
|
+
/*}*/
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.mobile {
|
|
121
|
+
.detail-layout {
|
|
122
|
+
margin-left: unset
|
|
123
|
+
}
|
|
124
|
+
.text {
|
|
125
|
+
|
|
126
|
+
}
|
|
127
|
+
.status-list {
|
|
128
|
+
text-align: left
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
</style>
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
<a-spin :spinning="loadInstructDetails">
|
|
10
10
|
<meter-details-view
|
|
11
11
|
:visible.sync="detailVisible"
|
|
12
|
-
:select-org-name="selectOrgName"
|
|
13
12
|
:userid="selectUserId"
|
|
14
13
|
v-if="selectUserId && isShowUserFiles"
|
|
15
14
|
/>
|
|
@@ -217,11 +216,7 @@ export default {
|
|
|
217
216
|
},
|
|
218
217
|
props: {
|
|
219
218
|
instructid: {
|
|
220
|
-
type: String,
|
|
221
|
-
required: true
|
|
222
|
-
},
|
|
223
|
-
selectOrgName: {
|
|
224
|
-
type: String,
|
|
219
|
+
type: String || Number,
|
|
225
220
|
required: true
|
|
226
221
|
},
|
|
227
222
|
visible: {
|
|
@@ -236,7 +231,7 @@ export default {
|
|
|
236
231
|
methods: {
|
|
237
232
|
// 初始化组件
|
|
238
233
|
initView () {
|
|
239
|
-
this.getInstruct(this.instructid
|
|
234
|
+
this.getInstruct(this.instructid)
|
|
240
235
|
},
|
|
241
236
|
// 获取查询配置JSON
|
|
242
237
|
getColumnsJson () {
|
|
@@ -254,11 +249,10 @@ export default {
|
|
|
254
249
|
callback(query(requestParameters))
|
|
255
250
|
},
|
|
256
251
|
// 获取指令详情信息
|
|
257
|
-
getInstruct (instructId
|
|
252
|
+
getInstruct (instructId) {
|
|
258
253
|
this.loadInstructDetails = true
|
|
259
254
|
return post(InstructDetailsViewApi.getInstructDetails, {
|
|
260
|
-
id: instructId
|
|
261
|
-
orgName: selectOrgName
|
|
255
|
+
id: instructId
|
|
262
256
|
})
|
|
263
257
|
.then(res => {
|
|
264
258
|
this.details = res
|
|
@@ -313,10 +307,9 @@ export default {
|
|
|
313
307
|
onOk () {
|
|
314
308
|
return post(InstructDetailsViewApi.againSendInstruct, {
|
|
315
309
|
id: id,
|
|
316
|
-
orgName: _this.selectOrgName,
|
|
317
310
|
username: _this.currUser.username
|
|
318
311
|
}).then(res => {
|
|
319
|
-
_this.getInstruct(id
|
|
312
|
+
_this.getInstruct(id)
|
|
320
313
|
if (res.nums === 1) {
|
|
321
314
|
_this.$message.success('操作成功')
|
|
322
315
|
} else {
|
|
@@ -338,10 +331,9 @@ export default {
|
|
|
338
331
|
onOk () {
|
|
339
332
|
return post(InstructDetailsViewApi.cancelSendInstruct, {
|
|
340
333
|
id: id,
|
|
341
|
-
orgName: _this.selectOrgName,
|
|
342
334
|
username: _this.currUser.username
|
|
343
335
|
}).then(res => {
|
|
344
|
-
_this.getInstruct(id
|
|
336
|
+
_this.getInstruct(id)
|
|
345
337
|
if (res.nums === 1) {
|
|
346
338
|
_this.$message.success('操作成功')
|
|
347
339
|
} else {
|
|
@@ -29,7 +29,6 @@ export default {
|
|
|
29
29
|
```html
|
|
30
30
|
<instruct-details-view
|
|
31
31
|
:visible.sync="detailVisible"
|
|
32
|
-
:select-org-name="selectOrgName"
|
|
33
32
|
:instructid="selectInstructId"
|
|
34
33
|
:isShowUserFiles="isShowUserFiles"
|
|
35
34
|
v-if="selectInstructId" />
|
|
@@ -40,6 +39,5 @@ export default {
|
|
|
40
39
|
| 参数 | 说明 | 类型 | 默认值 |
|
|
41
40
|
|-----------------|-------------|---------|-------|
|
|
42
41
|
| visible | 是否显示 | Boolean | false |
|
|
43
|
-
| selectOrgName | 燃气公司客户名 | String | null |
|
|
44
42
|
| instructid | 指令ID | String | null |
|
|
45
43
|
| isShowUserFiles | 是否允许跳转到档案详情 | Boolean | true |
|
|
@@ -233,11 +233,7 @@ export default {
|
|
|
233
233
|
},
|
|
234
234
|
props: {
|
|
235
235
|
logid: {
|
|
236
|
-
type: String,
|
|
237
|
-
required: true
|
|
238
|
-
},
|
|
239
|
-
selectOrgName: {
|
|
240
|
-
type: String,
|
|
236
|
+
type: String || Number,
|
|
241
237
|
required: true
|
|
242
238
|
},
|
|
243
239
|
visible: {
|
|
@@ -248,17 +244,16 @@ export default {
|
|
|
248
244
|
methods: {
|
|
249
245
|
// 初始化组件
|
|
250
246
|
initView () {
|
|
251
|
-
this.getLog(this.logid
|
|
247
|
+
this.getLog(this.logid)
|
|
252
248
|
},
|
|
253
249
|
onClose () {
|
|
254
250
|
this.$emit('update:visible', false)
|
|
255
251
|
},
|
|
256
252
|
// 获取日志详情信息
|
|
257
|
-
getLog (logId
|
|
253
|
+
getLog (logId) {
|
|
258
254
|
this.loadLogDetails = true
|
|
259
255
|
return post(LogDetailsViewApi.getLogDetails, {
|
|
260
|
-
id: logId
|
|
261
|
-
orgName: selectOrgName
|
|
256
|
+
id: logId
|
|
262
257
|
})
|
|
263
258
|
.then(res => {
|
|
264
259
|
this.details = res
|
|
@@ -274,8 +269,7 @@ export default {
|
|
|
274
269
|
pageNo: 1,
|
|
275
270
|
pageSize: 500,
|
|
276
271
|
dataId: this.logid,
|
|
277
|
-
type: '异常处理'
|
|
278
|
-
orgName: this.selectOrgName
|
|
272
|
+
type: '异常处理'
|
|
279
273
|
})
|
|
280
274
|
.then(res => {
|
|
281
275
|
this.eventList = res.data.reverse()
|
|
@@ -289,10 +283,9 @@ export default {
|
|
|
289
283
|
return post(LogDetailsViewApi.updateLogStatusData, {
|
|
290
284
|
id: _this.logid,
|
|
291
285
|
status: status,
|
|
292
|
-
orgName: _this.selectOrgName,
|
|
293
286
|
username: _this.currUser.name
|
|
294
287
|
}).then(res => {
|
|
295
|
-
_this.getLog(_this.logid
|
|
288
|
+
_this.getLog(_this.logid)
|
|
296
289
|
if (res.nums === 1) {
|
|
297
290
|
_this.$message.success('操作成功')
|
|
298
291
|
} else {
|
|
@@ -29,7 +29,6 @@ export default {
|
|
|
29
29
|
```html
|
|
30
30
|
<log-details-view
|
|
31
31
|
:visible.sync="detailVisible"
|
|
32
|
-
:select-org-name="selectOrgName"
|
|
33
32
|
:logid="selectLogId"
|
|
34
33
|
v-if="selectLogId" />
|
|
35
34
|
```
|
|
@@ -39,5 +38,4 @@ export default {
|
|
|
39
38
|
| 参数 | 说明 | 类型 | 默认值 |
|
|
40
39
|
|---------------|---------|---------|-------|
|
|
41
40
|
| visible | 是否显示 | Boolean | false |
|
|
42
|
-
| selectOrgName | 燃气公司客户名 | String | null |
|
|
43
41
|
| logid | 日志ID | String | null |
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
<p>指令将在 定时器轮询/表具上报 后重新生成</p>
|
|
55
55
|
<p style="color: red">此操作不可撤销</p>
|
|
56
56
|
</template>
|
|
57
|
-
<a-button type="primary" class="business" @click="againOpenAccount(details.id
|
|
57
|
+
<a-button type="primary" class="business" @click="againOpenAccount(details.id)" :disabled="againOpenAccountBtnHide()">重新开户</a-button>
|
|
58
58
|
</a-popover>
|
|
59
59
|
<a-popover title="开阀" placement="bottomLeft">
|
|
60
60
|
<template slot="content">
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
<p>只有已经开户的表具才可以进行该操作</p>
|
|
63
63
|
<p>操作后,可以在指令维护界面取消发送</p>
|
|
64
64
|
</template>
|
|
65
|
-
<a-button type="primary" @click="saveValveControl(details.id,
|
|
65
|
+
<a-button type="primary" @click="saveValveControl(details.id,1,details.f_alias)" :disabled="saveValveControlBtnHide()">开阀</a-button>
|
|
66
66
|
</a-popover>
|
|
67
67
|
<a-popover title="关阀" placement="bottomLeft">
|
|
68
68
|
<template slot="content">
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
<p>只有已经开户的表具才可以进行该操作</p>
|
|
71
71
|
<p>操作后,可以在指令维护界面取消发送</p>
|
|
72
72
|
</template>
|
|
73
|
-
<a-button type="danger" @click="saveValveControl(details.id,
|
|
73
|
+
<a-button type="danger" @click="saveValveControl(details.id,0,details.f_alias)" :disabled="saveValveControlBtnHide()">关阀</a-button>
|
|
74
74
|
</a-popover>
|
|
75
75
|
</a-button-group>
|
|
76
76
|
</template>
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
<a-tab-pane :key="value.key" :tab="value.tab"/>
|
|
81
81
|
</template>
|
|
82
82
|
</a-tabs>
|
|
83
|
-
<meter-details-main :userid="userid" :
|
|
84
|
-
<meter-details-count :userid="userid"
|
|
85
|
-
<meter-details-sell-gas :userid="userid"
|
|
86
|
-
<meter-details-hand-plan :userid="userid"
|
|
87
|
-
<meter-details-exception :userid="userid"
|
|
88
|
-
<meter-details-instruct :userid="userid"
|
|
83
|
+
<meter-details-main :userid="userid" :details="details" v-if="tabActiveKey === '1'"/>
|
|
84
|
+
<meter-details-count :userid="userid" v-else-if="tabActiveKey === '2'"/>
|
|
85
|
+
<meter-details-sell-gas :userid="userid" v-else-if="tabActiveKey === '3'"/>
|
|
86
|
+
<meter-details-hand-plan :userid="userid" v-else-if="tabActiveKey === '4'"/>
|
|
87
|
+
<meter-details-exception :userid="userid" v-else-if="tabActiveKey === '5'"/>
|
|
88
|
+
<meter-details-instruct :userid="userid" v-else-if="tabActiveKey === '6'"/>
|
|
89
89
|
</template>
|
|
90
90
|
</a-page-header>
|
|
91
91
|
</a-spin>
|
|
@@ -153,11 +153,7 @@ export default {
|
|
|
153
153
|
},
|
|
154
154
|
props: {
|
|
155
155
|
userid: {
|
|
156
|
-
type: String,
|
|
157
|
-
required: true
|
|
158
|
-
},
|
|
159
|
-
selectOrgName: {
|
|
160
|
-
type: String,
|
|
156
|
+
type: String || Number,
|
|
161
157
|
required: true
|
|
162
158
|
},
|
|
163
159
|
visible: {
|
|
@@ -169,7 +165,7 @@ export default {
|
|
|
169
165
|
// 初始化组件
|
|
170
166
|
initView () {
|
|
171
167
|
this.tabActiveKey = '1'
|
|
172
|
-
this.getUserFiles(this.userid
|
|
168
|
+
this.getUserFiles(this.userid)
|
|
173
169
|
},
|
|
174
170
|
onClose () {
|
|
175
171
|
this.$emit('update:visible', false)
|
|
@@ -187,11 +183,10 @@ export default {
|
|
|
187
183
|
}
|
|
188
184
|
},
|
|
189
185
|
// 获取档案详情信息
|
|
190
|
-
getUserFiles (userId
|
|
186
|
+
getUserFiles (userId) {
|
|
191
187
|
this.loadUserFilesDetails = true
|
|
192
188
|
return post(MeterDetailsViewApi.getUserFilesDetails, {
|
|
193
|
-
id: userId
|
|
194
|
-
orgName: selectOrgName
|
|
189
|
+
id: userId
|
|
195
190
|
})
|
|
196
191
|
.then(res => {
|
|
197
192
|
if (res.f_sendsuccess === undefined) {
|
|
@@ -209,7 +204,7 @@ export default {
|
|
|
209
204
|
this.tabActiveKey = key
|
|
210
205
|
},
|
|
211
206
|
// 重新开户
|
|
212
|
-
againOpenAccount (id
|
|
207
|
+
againOpenAccount (id) {
|
|
213
208
|
const _this = this
|
|
214
209
|
this.$confirm({
|
|
215
210
|
title: '您确定要对档案进行重新开户吗?',
|
|
@@ -220,10 +215,9 @@ export default {
|
|
|
220
215
|
onOk () {
|
|
221
216
|
return post(MeterDetailsViewApi.againOpenAccount, {
|
|
222
217
|
id: id,
|
|
223
|
-
orgName: selectOrgName,
|
|
224
218
|
username: _this.currUser.username
|
|
225
219
|
}).then(res => {
|
|
226
|
-
_this.getUserFiles(id
|
|
220
|
+
_this.getUserFiles(id)
|
|
227
221
|
if (res.nums === 1) {
|
|
228
222
|
_this.$message.success('操作成功')
|
|
229
223
|
} else {
|
|
@@ -234,7 +228,7 @@ export default {
|
|
|
234
228
|
})
|
|
235
229
|
},
|
|
236
230
|
// 开关阀
|
|
237
|
-
saveValveControl (id,
|
|
231
|
+
saveValveControl (id, isOpen, alias) {
|
|
238
232
|
const _this = this
|
|
239
233
|
let type
|
|
240
234
|
if (isOpen === 1) {
|
|
@@ -251,12 +245,11 @@ export default {
|
|
|
251
245
|
onOk () {
|
|
252
246
|
return post(MeterDetailsViewApi.saveValveControl, {
|
|
253
247
|
id: id,
|
|
254
|
-
orgName: selectOrgName,
|
|
255
248
|
isOpenValue: isOpen,
|
|
256
249
|
aliasValue: alias,
|
|
257
250
|
username: _this.currUser.username
|
|
258
251
|
}).then(res => {
|
|
259
|
-
_this.getUserFiles(id
|
|
252
|
+
_this.getUserFiles(id)
|
|
260
253
|
if (res.nums > 0) {
|
|
261
254
|
_this.$message.success('生成成功')
|
|
262
255
|
} else {
|
|
@@ -29,7 +29,6 @@ export default {
|
|
|
29
29
|
```html
|
|
30
30
|
<meter-details-view
|
|
31
31
|
:visible.sync="detailVisible"
|
|
32
|
-
:select-org-name="selectOrgName"
|
|
33
32
|
:userid="selectUserId"
|
|
34
33
|
v-if="selectUserId" />
|
|
35
34
|
```
|
|
@@ -39,5 +38,4 @@ export default {
|
|
|
39
38
|
| 参数 | 说明 | 类型 | 默认值 |
|
|
40
39
|
|---------------|---------|---------|-------|
|
|
41
40
|
| visible | 是否显示 | Boolean | false |
|
|
42
|
-
| selectOrgName | 燃气公司客户名 | String | null |
|
|
43
41
|
| userid | 表档案ID | String | null |
|
|
@@ -89,10 +89,6 @@
|
|
|
89
89
|
ARow
|
|
90
90
|
},
|
|
91
91
|
props: {
|
|
92
|
-
selectOrgName: {
|
|
93
|
-
type: String,
|
|
94
|
-
required: true
|
|
95
|
-
},
|
|
96
92
|
userid: {
|
|
97
93
|
type: String,
|
|
98
94
|
required: true
|
|
@@ -117,7 +113,6 @@
|
|
|
117
113
|
fetch(MeterDetailsViewApi.getGasConsumptionData, {
|
|
118
114
|
method: 'POST',
|
|
119
115
|
body: JSON.stringify({
|
|
120
|
-
orgName: this.selectOrgName,
|
|
121
116
|
userId: this.userid
|
|
122
117
|
})
|
|
123
118
|
})
|
|
@@ -77,10 +77,6 @@ export default {
|
|
|
77
77
|
STable
|
|
78
78
|
},
|
|
79
79
|
props: {
|
|
80
|
-
selectOrgName: {
|
|
81
|
-
type: String,
|
|
82
|
-
required: true
|
|
83
|
-
},
|
|
84
80
|
userid: {
|
|
85
81
|
type: String,
|
|
86
82
|
required: true
|
|
@@ -92,7 +88,6 @@ export default {
|
|
|
92
88
|
// 加载数据方法 必须为 Promise 对象
|
|
93
89
|
loadExceptionData: parameter => {
|
|
94
90
|
const queryParams = {
|
|
95
|
-
orgName: this.selectOrgName,
|
|
96
91
|
userId: this.userid
|
|
97
92
|
}
|
|
98
93
|
const requestParameters = Object.assign({}, parameter, queryParams)
|
|
@@ -169,10 +169,6 @@ export default {
|
|
|
169
169
|
STable
|
|
170
170
|
},
|
|
171
171
|
props: {
|
|
172
|
-
selectOrgName: {
|
|
173
|
-
type: String,
|
|
174
|
-
required: true
|
|
175
|
-
},
|
|
176
172
|
userid: {
|
|
177
173
|
type: String,
|
|
178
174
|
required: true
|
|
@@ -185,7 +181,6 @@ export default {
|
|
|
185
181
|
// 加载数据方法 必须为 Promise 对象
|
|
186
182
|
loadHandData: parameter => {
|
|
187
183
|
const queryParams = {
|
|
188
|
-
orgName: this.selectOrgName,
|
|
189
184
|
userId: this.userid
|
|
190
185
|
}
|
|
191
186
|
const requestParameters = Object.assign({}, parameter, queryParams)
|
|
@@ -193,7 +188,6 @@ export default {
|
|
|
193
188
|
},
|
|
194
189
|
loadMetereadData: parameter => {
|
|
195
190
|
const queryParams = {
|
|
196
|
-
orgName: this.selectOrgName,
|
|
197
191
|
userId: this.userid
|
|
198
192
|
}
|
|
199
193
|
const requestParameters = Object.assign({}, parameter, queryParams)
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
</a-row>
|
|
50
50
|
<instruct-details-view
|
|
51
51
|
:visible.sync="detailsViewVisible"
|
|
52
|
-
:select-org-name="selectOrgName"
|
|
53
52
|
:instructid="selectInstructId"
|
|
54
53
|
:isShowUserFiles="isShowUserFiles"
|
|
55
54
|
v-if="selectInstructId"
|
|
@@ -127,10 +126,6 @@ export default {
|
|
|
127
126
|
Ellipsis
|
|
128
127
|
},
|
|
129
128
|
props: {
|
|
130
|
-
selectOrgName: {
|
|
131
|
-
type: String,
|
|
132
|
-
required: true
|
|
133
|
-
},
|
|
134
129
|
userid: {
|
|
135
130
|
type: String,
|
|
136
131
|
required: true
|
|
@@ -144,7 +139,6 @@ export default {
|
|
|
144
139
|
// 加载数据方法 必须为 Promise 对象
|
|
145
140
|
loadInstructData: parameter => {
|
|
146
141
|
const queryParams = {
|
|
147
|
-
orgName: this.selectOrgName,
|
|
148
142
|
userId: this.userid
|
|
149
143
|
}
|
|
150
144
|
const requestParameters = Object.assign({}, parameter, queryParams)
|
|
@@ -117,10 +117,6 @@
|
|
|
117
117
|
export default {
|
|
118
118
|
name: 'MeterDetailsMain',
|
|
119
119
|
props: {
|
|
120
|
-
selectOrgName: {
|
|
121
|
-
type: String,
|
|
122
|
-
required: true
|
|
123
|
-
},
|
|
124
120
|
userid: {
|
|
125
121
|
type: String,
|
|
126
122
|
required: true
|
|
@@ -151,8 +147,7 @@
|
|
|
151
147
|
getWorkFlow () {
|
|
152
148
|
this.loading = true
|
|
153
149
|
return post(MeterDetailsViewApi.getWorkFlowList, {
|
|
154
|
-
id: this.userid
|
|
155
|
-
orgName: this.selectOrgName
|
|
150
|
+
id: this.userid
|
|
156
151
|
}).then(res => {
|
|
157
152
|
this.workList = []
|
|
158
153
|
for (let i = 0, len = res.length; i < len; i++) {
|