sale-client 3.6.38 → 3.6.39
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/package.json +1 -1
- package/src/components/revenue/comprehen/replacement/replaceMentList.vue +13 -13
- package/src/filiale/qianneng/components/thirdSurplus.vue +364 -0
- package/src/filiale/qianneng/sale.js +2 -0
- package/src/filiale/rizhao/HighMeterCard.vue +50 -18
- package/src/filiale/rizhao/replaceMentList.vue +4 -4
- package/src/filiale/zhongyi/FileUserFiles.vue +1017 -1020
package/package.json
CHANGED
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
|
|
21
21
|
<!--<div :class="$parent.$parent.styles">-->
|
|
22
22
|
<!--<label class="font_normal_body">补卡日期</label>-->
|
|
23
|
-
<!--<datepicker id="
|
|
24
|
-
<!--v-model="model.
|
|
25
|
-
<!--:value.sync="model.
|
|
23
|
+
<!--<datepicker id="f_operate_date" placeholder="补卡日期" style="width:60%"-->
|
|
24
|
+
<!--v-model="model.f_operate_date"-->
|
|
25
|
+
<!--:value.sync="model.f_operate_date"-->
|
|
26
26
|
<!--:format="'yyyy-MM-dd'"-->
|
|
27
27
|
<!--:show-reset-button="true"-->
|
|
28
|
-
<!--condition="
|
|
28
|
+
<!--condition="f_operate_date = '{}'">-->
|
|
29
29
|
<!--</datepicker>-->
|
|
30
30
|
<!--</div>-->
|
|
31
31
|
<div style="float:right;margin-top: 8px" class="span">
|
|
@@ -115,20 +115,20 @@
|
|
|
115
115
|
</div>
|
|
116
116
|
<div :class="$parent.$parent.styles">
|
|
117
117
|
<label class="font_normal_body">补卡原因</label>
|
|
118
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.
|
|
119
|
-
condition="
|
|
118
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_comments"
|
|
119
|
+
condition="f_comments like '{}%'" placeholder='补卡原因'>
|
|
120
120
|
</div>
|
|
121
121
|
<!-- <div :class="$parent.$parent.styles">-->
|
|
122
122
|
<!-- <label class="font_normal_body">补卡日期</label>-->
|
|
123
|
-
<!-- <input type="text" style="width:60%" class="input_search" v-model="model.
|
|
124
|
-
<!-- condition="
|
|
123
|
+
<!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_operate_date"-->
|
|
124
|
+
<!-- condition="f_operate_date like '%{}%'" placeholder='补卡日期'>-->
|
|
125
125
|
<!-- </div>-->
|
|
126
126
|
<div :class="$parent.$parent.styles">
|
|
127
127
|
<label class="font_normal_body">补卡日期</label>
|
|
128
128
|
<datepicker placeholder="补卡日期" style="width: 60%"
|
|
129
|
-
v-model="model.
|
|
130
|
-
condition="
|
|
131
|
-
:value.sync="model.
|
|
129
|
+
v-model="model.f_operate_date"
|
|
130
|
+
condition=" f_operate_date >= '{}'"
|
|
131
|
+
:value.sync="model.f_operate_date"
|
|
132
132
|
:format="'yyyy-MM-dd HH:mm:ss'">
|
|
133
133
|
</datepicker>
|
|
134
134
|
</div>
|
|
@@ -209,8 +209,8 @@
|
|
|
209
209
|
<td style="text-align: center;"><nobr>{{row.f_payment}}</nobr></td>
|
|
210
210
|
<td style="text-align: center;"><nobr>{{row.f_bill_style}}</nobr></td>
|
|
211
211
|
<td style="text-align: center;"><nobr>{{row.f_ispick_table}}</nobr></td>
|
|
212
|
-
<td style="text-align: center;"><nobr>{{row.
|
|
213
|
-
<td style="text-align: center;"><nobr>{{row.
|
|
212
|
+
<td style="text-align: center;"><nobr>{{row.f_comments}}</nobr></td>
|
|
213
|
+
<td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
214
214
|
<td style="text-align: center;"><nobr>{{row.f_state}}</nobr></td>
|
|
215
215
|
<td style="text-align: center;"><nobr>{{row.f_orgname}}</nobr></td>
|
|
216
216
|
<td style="text-align: center;"><nobr>{{row.f_depname}}</nobr></td>
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
<template style="position: absolute;">
|
|
2
|
+
<div :class="{'basic-main':!showItem,'binary-left':showItem}" style="height:98%;">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' v-ref:criteria @condition-changed='$parent.selfSearch'>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row" width="100%">
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="col-sm-2 form-group">
|
|
9
|
+
<label class="font_normal_body">组织机构</label>
|
|
10
|
+
<res-select
|
|
11
|
+
:initresid='$parent.$parent.curorgid'
|
|
12
|
+
@res-select="$parent.$parent.getorgCur"
|
|
13
|
+
is-mul="false"
|
|
14
|
+
v-model="$parent.$parent.curorgid"
|
|
15
|
+
:value.sync="$parent.$parent.curorgid"
|
|
16
|
+
restype='organization'
|
|
17
|
+
>
|
|
18
|
+
</res-select>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-sm-2 form-group">
|
|
21
|
+
<label class="font_normal_body" for="usercode">用户编号</label>
|
|
22
|
+
<input id="usercode" class="input_search" condition="f_userinfo_code = '{}'"
|
|
23
|
+
placeholder="请输入要查询的用户编号" style="width:60%" type="text"
|
|
24
|
+
v-el:qjmc v-model="model.f_userinfo_code" v-next-el="cx"
|
|
25
|
+
>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-2 form-group">
|
|
28
|
+
<label class="font_normal_body" for="username">用户姓名</label>
|
|
29
|
+
<input id="username" class="input_search" condition="f_user_name = '{}'"
|
|
30
|
+
placeholder="请输入要查询的用户姓名" style="width:60%" type="text"
|
|
31
|
+
v-el:qjmc v-model="model.f_user_name" v-next-el="cx"
|
|
32
|
+
>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div class="span" style="float:right;">
|
|
36
|
+
<button class="button_search" @click="search()" v-el:cba>查询</button>
|
|
37
|
+
<button class="button_export" @click="$parent.$parent.importFile">导入</button>
|
|
38
|
+
<button class="button_search" @click="$parent.$parent.clear">清空</button>
|
|
39
|
+
<button @click="$parent.$parent.delete()" v-show="$parent.$parent.deleteShow" class="button_delete">
|
|
40
|
+
批量删除
|
|
41
|
+
</button>
|
|
42
|
+
<div class="button_spacing" style="float:right;"
|
|
43
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
44
|
+
@click="$parent.$parent.hidden()"></div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
49
|
+
<div class="col-sm-2 form-group">
|
|
50
|
+
<label class="font_normal_body">开始时间</label>
|
|
51
|
+
<datepicker :format="'yyyy-MM-dd'"
|
|
52
|
+
:value.sync="model.f_start_date"
|
|
53
|
+
condition="f_start_date >= '{} 00:00:00'"
|
|
54
|
+
v-model="model.f_start_date" style="width: 55%">
|
|
55
|
+
</datepicker>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="col-sm-2 form-group">
|
|
58
|
+
<label class="font_normal_body">结束时间</label>
|
|
59
|
+
<datepicker :format="'yyyy-MM-dd'"
|
|
60
|
+
:value.sync="model.f_end_date"
|
|
61
|
+
condition="f_end_date <= '{} 23:59:59'"
|
|
62
|
+
v-model="model.f_end_date" style="width: 55%">
|
|
63
|
+
</datepicker>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="col-sm-2 form-group">
|
|
66
|
+
<label class="font_normal_body" title="参数名称:补差状态">补差状态</label>
|
|
67
|
+
<v-select id="f_adjust_state"
|
|
68
|
+
v-model="model.f_state"
|
|
69
|
+
placeholder='状态'
|
|
70
|
+
condition="f_state ='{}'"
|
|
71
|
+
:value.sync="model.f_state"
|
|
72
|
+
:options='$parent.$parent.states'
|
|
73
|
+
close-on-select clear-button>
|
|
74
|
+
</v-select>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="col-sm-2 form-group">
|
|
77
|
+
<label class="font_normal_body" title="参数名称:是否缴费">是否缴费</label>
|
|
78
|
+
<v-select id="f_whether_pay"
|
|
79
|
+
v-model="model.f_whether_pay"
|
|
80
|
+
placeholder='是否缴费'
|
|
81
|
+
condition="f_whether_pay ='{}'"
|
|
82
|
+
:value.sync="model.f_whether_pay"
|
|
83
|
+
:options='$parent.$parent.whetherPay'
|
|
84
|
+
close-on-select clear-button>
|
|
85
|
+
</v-select>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="col-sm-2 form-group">
|
|
88
|
+
<label class="font_normal_body" for="operator">操作人</label>
|
|
89
|
+
<input id="operator" class="input_search" condition="f_operator like '%{}%'"
|
|
90
|
+
placeholder="请输入要查询的操作人" style="width:60%" type="text"
|
|
91
|
+
v-el:qjmc v-model="model.f_operator" v-next-el="cx"
|
|
92
|
+
>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</criteria>
|
|
97
|
+
<data-grid id="webmeterinfo" :model="model" class="list_area table_sy" partial='list' v-ref:grid>
|
|
98
|
+
<template partial='head'>
|
|
99
|
+
<tr>
|
|
100
|
+
<th>
|
|
101
|
+
<input type="checkbox" v-show="$parent.$parent.$parent.deleteShow"
|
|
102
|
+
@click="$parent.$parent.$parent.isAll(model.pageIndex)">
|
|
103
|
+
</th>
|
|
104
|
+
<th>
|
|
105
|
+
<nobr>序号</nobr>
|
|
106
|
+
</th>
|
|
107
|
+
<th>
|
|
108
|
+
<nobr>用户编号</nobr>
|
|
109
|
+
</th>
|
|
110
|
+
<th>
|
|
111
|
+
<nobr>用户名称</nobr>
|
|
112
|
+
</th>
|
|
113
|
+
<th>
|
|
114
|
+
<nobr>单价调整量</nobr>
|
|
115
|
+
</th>
|
|
116
|
+
<th>
|
|
117
|
+
<nobr>旧气价</nobr>
|
|
118
|
+
</th>
|
|
119
|
+
<th>
|
|
120
|
+
<nobr>新气价</nobr>
|
|
121
|
+
</th>
|
|
122
|
+
<th>
|
|
123
|
+
<nobr>补差气量</nobr>
|
|
124
|
+
</th>
|
|
125
|
+
<!-- <th><nobr>设备号</nobr></th>-->
|
|
126
|
+
<th>
|
|
127
|
+
<nobr>补差金额</nobr>
|
|
128
|
+
</th>
|
|
129
|
+
<th>
|
|
130
|
+
<nobr>补差开始时间</nobr>
|
|
131
|
+
</th>
|
|
132
|
+
<th>
|
|
133
|
+
<nobr>补差结束日期</nobr>
|
|
134
|
+
</th>
|
|
135
|
+
<!-- <th><nobr>表通讯序号</nobr></th>-->
|
|
136
|
+
<th>
|
|
137
|
+
<nobr>补差类型</nobr>
|
|
138
|
+
</th>
|
|
139
|
+
<th>
|
|
140
|
+
<nobr>是否缴费</nobr>
|
|
141
|
+
</th>
|
|
142
|
+
<th>
|
|
143
|
+
<nobr>操作人</nobr>
|
|
144
|
+
</th>
|
|
145
|
+
<th>
|
|
146
|
+
<nobr>状态</nobr>
|
|
147
|
+
</th>
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
</tr>
|
|
151
|
+
</template>
|
|
152
|
+
<template partial='body'>
|
|
153
|
+
|
|
154
|
+
<td style="text-align:center">
|
|
155
|
+
<input type="checkbox" v-show="$parent.$parent.$parent.deleteShow" v-model="$parent.$parent.$parent.ids"
|
|
156
|
+
:value="row.id">
|
|
157
|
+
</td>
|
|
158
|
+
<td style="text-align: center;">{{ $index + 1 }}</td>
|
|
159
|
+
<td style="text-align: center;">{{ row.f_userinfo_code }}</td>
|
|
160
|
+
<td style="text-align: center">{{ row.f_user_name }}</td>
|
|
161
|
+
<td style="text-align: center">{{ row.f_change_price }}</td>
|
|
162
|
+
<td style="text-align: center">{{ row.f_old_price }}</td>
|
|
163
|
+
<td style="text-align: center">{{ row.f_new_price }}</td>
|
|
164
|
+
<!-- <td style="text-align: center" >{{row.f_device_id}}</td>-->
|
|
165
|
+
<td style="text-align: center">{{ row.f_real_amount }}</td>
|
|
166
|
+
<td style="text-align: center">{{ row.f_surplus_fee }}</td>
|
|
167
|
+
<td style="text-align: center">{{ row.f_start_date }}</td>
|
|
168
|
+
<td style="text-align: center">{{ row.f_end_date }}</td>
|
|
169
|
+
<td style="text-align: center">{{ row.f_type }}</td>
|
|
170
|
+
<!-- <td style="text-align: center" >{{row.f_vender}}</td>-->
|
|
171
|
+
<td style="text-align: center">{{ row.f_whether_pay }}</td>
|
|
172
|
+
<td style="text-align: center">{{ row.f_operator }}</td>
|
|
173
|
+
<td style="text-align: center">{{ row.f_state }}</td>
|
|
174
|
+
</template>
|
|
175
|
+
</data-grid>
|
|
176
|
+
</criteria-paged>
|
|
177
|
+
</div>
|
|
178
|
+
<modal :show.sync="show" width="500px" title="文件导入" v-ref:modal large backdrop="false">
|
|
179
|
+
<article slot="modal-body" class="modal-body">
|
|
180
|
+
<file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
|
|
181
|
+
action="rs/file/uploadFile" tagname="调价导入" v-ref:file :headers="headers" multiple></file-upload>
|
|
182
|
+
</article>
|
|
183
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
184
|
+
</footer>
|
|
185
|
+
</modal>
|
|
186
|
+
</template>
|
|
187
|
+
<script>
|
|
188
|
+
import {PagedList} from 'vue-client'
|
|
189
|
+
import Vue from 'vue'
|
|
190
|
+
|
|
191
|
+
export default {
|
|
192
|
+
title: '调价导入',
|
|
193
|
+
data() {
|
|
194
|
+
return {
|
|
195
|
+
model: new PagedList('rs/sql/getsurplus', 20, {items: '"*"', tablename: '"t_meterinfo"', orderitem: '"id"'}),
|
|
196
|
+
criteriaShow: false,
|
|
197
|
+
curorgid: [this.$login.f.orgid],
|
|
198
|
+
headers: {'username': Vue.$login.f.name},
|
|
199
|
+
ids: [],
|
|
200
|
+
f_state: '',
|
|
201
|
+
f_whether_pay: '',
|
|
202
|
+
deleteShow: false,
|
|
203
|
+
f_filialeid: this.$login.f.orgid,
|
|
204
|
+
pages: [],
|
|
205
|
+
whetherPay: this.$appdata.getParam('是否缴费') ? [{
|
|
206
|
+
label: '全部',
|
|
207
|
+
value: ''
|
|
208
|
+
}, ...this.$appdata.getParam('是否缴费')] : [],
|
|
209
|
+
states: this.$appdata.getParam('补差状态') ? [{
|
|
210
|
+
label: '全部',
|
|
211
|
+
value: ''
|
|
212
|
+
}, ...this.$appdata.getParam('补差状态')] : [],
|
|
213
|
+
show: false
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
ready() {
|
|
217
|
+
this.search()
|
|
218
|
+
},
|
|
219
|
+
|
|
220
|
+
methods: {
|
|
221
|
+
clear() {
|
|
222
|
+
Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
|
|
223
|
+
this.$refs.paged.$refs.criteria.model[key] = []
|
|
224
|
+
})
|
|
225
|
+
this.deleteShow = false
|
|
226
|
+
},
|
|
227
|
+
delete() {
|
|
228
|
+
if (this.ids.length !== 0) {
|
|
229
|
+
this.$refs.paged.$refs.criteria.condition = this.$refs.paged.$refs.criteria.condition + 'and id in (' + this.ids + ')'
|
|
230
|
+
}
|
|
231
|
+
this.$showMessage('删除后不可恢复,确认删除?', ['confirm', 'cancel']).then((res) => {
|
|
232
|
+
if (res === 'confirm') {
|
|
233
|
+
this.deleteAdjustImport(this.$refs.paged.$refs.criteria.condition).then((res) => {
|
|
234
|
+
this.$dispatch('success')
|
|
235
|
+
this.search()
|
|
236
|
+
this.ids = []
|
|
237
|
+
}).catch((error) => {
|
|
238
|
+
this.$dispatch('error', error)
|
|
239
|
+
})
|
|
240
|
+
}
|
|
241
|
+
})
|
|
242
|
+
},
|
|
243
|
+
deleteAdjustImport(condition) {
|
|
244
|
+
console.log(condition)
|
|
245
|
+
return this.$resetpost('rs/logic/deleteAdjustImport', {condition: condition}, {
|
|
246
|
+
resolveMsg: '删除成功',
|
|
247
|
+
rejectMsg: '删除失败'
|
|
248
|
+
})
|
|
249
|
+
},
|
|
250
|
+
isAll(page) {
|
|
251
|
+
// console.log(this.model.ids)
|
|
252
|
+
if (this.pages.includes(page)) { // 已添加,取消动作
|
|
253
|
+
// 从ids中删除本页所有数据的ids
|
|
254
|
+
this.addOrRemove(false)
|
|
255
|
+
this.pages = this.pages.filter((item) => {
|
|
256
|
+
return item !== page
|
|
257
|
+
})
|
|
258
|
+
} else { // 未添加
|
|
259
|
+
this.pages.push(page) // 添加id,添加动作
|
|
260
|
+
this.addOrRemove(true)
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
addOrRemove(is) {
|
|
264
|
+
let that = this
|
|
265
|
+
if (is) { // 添加本页所有数据到ids中
|
|
266
|
+
this.ids = []
|
|
267
|
+
this.model.rows.forEach((row) => {
|
|
268
|
+
if (!that.ids.includes(row.id)) {
|
|
269
|
+
that.ids.push(row.id)
|
|
270
|
+
}
|
|
271
|
+
})
|
|
272
|
+
} else { // 从ids中取消所有的数据
|
|
273
|
+
this.ids = []
|
|
274
|
+
this.model.rows.forEach((row) => {
|
|
275
|
+
that.ids = that.ids.filter((item) => {
|
|
276
|
+
return item !== row.id
|
|
277
|
+
})
|
|
278
|
+
})
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
hidden() {
|
|
282
|
+
this.criteriaShow = !this.criteriaShow
|
|
283
|
+
},
|
|
284
|
+
search() {
|
|
285
|
+
this.$refs.paged.$refs.criteria.search()
|
|
286
|
+
},
|
|
287
|
+
selfSearch(args) {
|
|
288
|
+
if (!this.f_orgid) {
|
|
289
|
+
this.getorgCur([this.$login.f.orgid])
|
|
290
|
+
}
|
|
291
|
+
if (this.f_orgid) {
|
|
292
|
+
args.condition = `${args.condition} and f_orgid in ${this.f_orgid}`
|
|
293
|
+
this.model.search(args.condition, args.model)
|
|
294
|
+
}
|
|
295
|
+
if (args.condition.includes('f_state =\'有效\' and f_whether_pay =\'否\'')) {
|
|
296
|
+
this.deleteShow = true
|
|
297
|
+
} else {
|
|
298
|
+
this.deleteShow = false
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
|
|
302
|
+
getorgCur(val) {
|
|
303
|
+
console.log('组织事件返回。。', val[0])
|
|
304
|
+
this.f_orgid = this.$login.convertToIn(val)
|
|
305
|
+
this.f_filialeids = val[0]
|
|
306
|
+
this.$parent.f_filialeid = val[0]
|
|
307
|
+
this.search()
|
|
308
|
+
},
|
|
309
|
+
importFile() {
|
|
310
|
+
this.show = true
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
},
|
|
314
|
+
events: {
|
|
315
|
+
onFileUpload: function (file, res) {
|
|
316
|
+
console.log(this.$login.f, '======')
|
|
317
|
+
console.log(res)
|
|
318
|
+
let batchParam = {
|
|
319
|
+
filepath: res.f_downloadpath,
|
|
320
|
+
f_operator: this.$login.f.name,
|
|
321
|
+
f_operatorid: this.$login.f.id,
|
|
322
|
+
f_orgid: this.$login.f.orgid,
|
|
323
|
+
f_orgname: this.$login.f.orgs,
|
|
324
|
+
f_depid: this.$login.f.depids,
|
|
325
|
+
f_depname: this.$login.f.deps
|
|
326
|
+
}
|
|
327
|
+
let jobParam = {
|
|
328
|
+
f_operatorid: this.$login.f.id,
|
|
329
|
+
total: 0,
|
|
330
|
+
operator: this.$login.f.name,
|
|
331
|
+
jobType: '调价补差'
|
|
332
|
+
}
|
|
333
|
+
let param = {
|
|
334
|
+
jobParam: jobParam,
|
|
335
|
+
batchParam: batchParam
|
|
336
|
+
}
|
|
337
|
+
console.log(param, '++++++++++++++++++++++++++')
|
|
338
|
+
this.$resetpost('rs/business/batchRunExcelDefault/thirdSurplusSave/thirdSurplus', {data: param}, {
|
|
339
|
+
resolveMsg: '上传成功',
|
|
340
|
+
rejectMsg: '上传失败'
|
|
341
|
+
}).then((res) => {
|
|
342
|
+
// window.location.href = '/excel/表具导入异常信息.txt';
|
|
343
|
+
this.show = false
|
|
344
|
+
this.search()
|
|
345
|
+
})
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
</script>
|
|
350
|
+
<style>
|
|
351
|
+
.form-input-group label {
|
|
352
|
+
text-align: right;
|
|
353
|
+
width: auto;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.datapanel {
|
|
357
|
+
color: #333;
|
|
358
|
+
background-color: white;
|
|
359
|
+
box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
|
|
360
|
+
padding: 10px 30px 10px 30px;
|
|
361
|
+
border-radius: 15px;
|
|
362
|
+
}
|
|
363
|
+
</style>
|
|
364
|
+
|
|
@@ -87,4 +87,6 @@ export default function () {
|
|
|
87
87
|
Vue.component('file-user-meter-info-new', (resolve) => { require(['./UserMeterInfoTest'], resolve) })
|
|
88
88
|
// 表具设备信息
|
|
89
89
|
Vue.component('file-user-device-info', (resolve) => { require(['./UserDeviceInfoTest'], resolve) })
|
|
90
|
+
// 调价补差导入
|
|
91
|
+
Vue.component('third-surplus', (resolve) => { require(['./components/thirdSurplus'], resolve) })
|
|
90
92
|
}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
<button class="btn btn-info photo" @click="bb()">拍照</button>
|
|
14
14
|
<button class="btn btn-info" @click="cam_switch(1)">打开视频1</button>
|
|
15
15
|
<button class="btn btn-info" @click="cam_switch(2)">打开视频2</button>
|
|
16
|
-
<button class="btn btn-info" @click="
|
|
17
|
-
<button class="btn btn-info" @click="
|
|
16
|
+
<button class="btn btn-info" @click="reloadVideo()">重载视频</button>
|
|
17
|
+
<!-- <button class="btn btn-info" @click="CloseVideo()">关闭</button>-->
|
|
18
18
|
<div style="display: inline-block;margin-left: 570px">
|
|
19
19
|
<strong class="operation">读取身份证:</strong>
|
|
20
20
|
<button class="btn btn-info readIDCard" @click=Begin()>读身份证</button>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<IMG ID="Base64IMG" src="" class="img"></IMG>
|
|
26
26
|
<!-- <button style="position: absolute;buttom:-10px;left:0px;" @click="splitsimg">旋转</button>-->
|
|
27
27
|
<textarea id="Console" disabled="disabled"></textarea>
|
|
28
|
-
<IMG id="cam"
|
|
28
|
+
<IMG id="cam" :src="cameraurl" width="640" height="640">
|
|
29
29
|
</IMG>
|
|
30
30
|
</div>
|
|
31
31
|
<div class="IdCard">
|
|
@@ -67,11 +67,15 @@
|
|
|
67
67
|
<script>
|
|
68
68
|
let ws
|
|
69
69
|
let server_addr = 'ws://127.0.0.1:38088'// 本机端口地址
|
|
70
|
+
import * as Util from '../../Util'
|
|
70
71
|
export default {
|
|
71
72
|
title: '高拍仪',
|
|
72
73
|
data () {
|
|
73
74
|
return {
|
|
74
75
|
cameraurl: '',
|
|
76
|
+
capID:1,
|
|
77
|
+
connected:false,
|
|
78
|
+
ws:null,
|
|
75
79
|
jd: 'transform:rotate(0deg)',
|
|
76
80
|
degs: 0
|
|
77
81
|
}
|
|
@@ -85,13 +89,17 @@ export default {
|
|
|
85
89
|
// 页面load消息
|
|
86
90
|
onLoad () {
|
|
87
91
|
return new Promise((resolve, reject) => {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
//
|
|
92
|
+
console.log(ws)
|
|
93
|
+
// if (ws) {
|
|
94
|
+
// console.log('222')
|
|
95
|
+
// resolve()
|
|
96
|
+
// }
|
|
97
|
+
this.output("正在连接:" + server_addr);
|
|
92
98
|
ws = new WebSocket(server_addr)
|
|
99
|
+
|
|
93
100
|
ws.onopen = (evt) => {
|
|
94
101
|
if (this.connected) {
|
|
102
|
+
console.log('333')
|
|
95
103
|
resolve()
|
|
96
104
|
}
|
|
97
105
|
this.connected = true
|
|
@@ -103,7 +111,12 @@ export default {
|
|
|
103
111
|
// 打开自动裁边
|
|
104
112
|
resolve()
|
|
105
113
|
}
|
|
114
|
+
ws.onerror = function(e){
|
|
115
|
+
console.log('链接失败'+ e)
|
|
116
|
+
//如果出现连接、处理、接收、发送数据失败的时候触发onerror事件
|
|
117
|
+
}
|
|
106
118
|
ws.onclose = (evt) => {
|
|
119
|
+
console.log('关闭'+ evt)
|
|
107
120
|
if (!this.connected) {
|
|
108
121
|
window.location.href = 'FLShell://'
|
|
109
122
|
setTimeout('this.onLoad()', 3)
|
|
@@ -115,6 +128,7 @@ export default {
|
|
|
115
128
|
reject(new Error('连接失败'))
|
|
116
129
|
}
|
|
117
130
|
ws.onmessage = (evt) => {
|
|
131
|
+
console.log(evt.data)
|
|
118
132
|
if (evt.data.length === 0) {
|
|
119
133
|
return
|
|
120
134
|
}
|
|
@@ -148,12 +162,12 @@ export default {
|
|
|
148
162
|
}
|
|
149
163
|
}
|
|
150
164
|
let canvas = document.getElementById('cam')
|
|
165
|
+
console.log(4444)
|
|
151
166
|
canvas.onmousedown = (e) => {
|
|
152
167
|
canvas.style.cursor = 'crosshair'
|
|
153
|
-
|
|
154
168
|
this.clicked = true
|
|
155
|
-
|
|
156
169
|
this.sendMsg(this.CLT_MSG.PRESET_MOUSEDOWN, {origX: e.layerX, origY: e.layerY}, function (msg) {
|
|
170
|
+
console.log(msg)
|
|
157
171
|
if (msg.err !== 0) { }
|
|
158
172
|
})
|
|
159
173
|
}
|
|
@@ -185,20 +199,34 @@ export default {
|
|
|
185
199
|
},
|
|
186
200
|
// 打开视频
|
|
187
201
|
cam_switch (capID) {
|
|
202
|
+
this.capID = capID
|
|
188
203
|
if (capID == 1) {
|
|
189
204
|
|
|
190
|
-
this.cameraurl =
|
|
205
|
+
this.cameraurl = `http://127.0.0.1:38088/video=stream&camidx=0&uuid=${Util.guid()}`
|
|
191
206
|
}
|
|
192
207
|
if (capID == 2) {
|
|
193
|
-
this.cameraurl
|
|
208
|
+
this.cameraurl =`http://127.0.0.1:38088/video=stream&camidx=1&uuid=${Util.guid()}`
|
|
194
209
|
}
|
|
195
210
|
},
|
|
196
|
-
//
|
|
197
|
-
|
|
211
|
+
// 重新初始化视频
|
|
212
|
+
reloadVideo () {
|
|
198
213
|
this.cameraurl = ''
|
|
214
|
+
|
|
215
|
+
let url = `http://127.0.0.1:38088/video=close&camidx=${this.capID}`
|
|
216
|
+
this.$resetpost(url,{},{rejectMsg:null,resolveMsg:null}).then((res)=>{
|
|
217
|
+
setTimeout(this.onLoad,2000)
|
|
218
|
+
})
|
|
219
|
+
},
|
|
220
|
+
CloseVideo(){
|
|
221
|
+
window.location.href = 'cameraServicetis:0'
|
|
222
|
+
let url = `http://127.0.0.1:38088/video=close&camidx=${this.capID}`
|
|
223
|
+
this.$resetpost(url).then((res)=>{
|
|
224
|
+
setTimeout(this.onLoad,2000)
|
|
225
|
+
})
|
|
199
226
|
},
|
|
200
227
|
openApp () {
|
|
201
228
|
window.location.href = 'cameraServicetis:0' // 启动 CameraService 服务程序
|
|
229
|
+
|
|
202
230
|
},
|
|
203
231
|
// //获取初始化结果
|
|
204
232
|
// GetInitRet(){
|
|
@@ -924,9 +952,12 @@ export default {
|
|
|
924
952
|
},
|
|
925
953
|
close () {
|
|
926
954
|
this.show = !this.show
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
955
|
+
this.CloseVideo()
|
|
956
|
+
},
|
|
957
|
+
getSatate(){
|
|
958
|
+
this.$resetpost('http://127.0.0.1:38088/video=status').then((res)=>{
|
|
959
|
+
console.log(res.data)
|
|
960
|
+
})
|
|
930
961
|
},
|
|
931
962
|
confirmIdCard () {
|
|
932
963
|
let param = this.IdCardInfo
|
|
@@ -938,9 +969,10 @@ export default {
|
|
|
938
969
|
},
|
|
939
970
|
ready () {
|
|
940
971
|
this.onLoad().then(() => {
|
|
941
|
-
|
|
972
|
+
console.log(12345)
|
|
973
|
+
// setInterval(this.getSatate,1000)
|
|
942
974
|
}).catch((error) => {
|
|
943
|
-
|
|
975
|
+
|
|
944
976
|
})
|
|
945
977
|
}
|
|
946
978
|
}
|
|
@@ -126,9 +126,9 @@
|
|
|
126
126
|
<div :class="$parent.$parent.styles">
|
|
127
127
|
<label class="font_normal_body">补卡日期</label>
|
|
128
128
|
<datepicker placeholder="补卡日期" style="width: 60%"
|
|
129
|
-
v-model="model.
|
|
130
|
-
condition="
|
|
131
|
-
:value.sync="model.
|
|
129
|
+
v-model="model.f_operate_date"
|
|
130
|
+
condition=" f_operate_date >= '{}'"
|
|
131
|
+
:value.sync="model.f_operate_date"
|
|
132
132
|
:format="'yyyy-MM-dd HH:mm:ss'">
|
|
133
133
|
</datepicker>
|
|
134
134
|
</div>
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
<td style="text-align: center;"><nobr>{{row.f_bill_style}}</nobr></td>
|
|
211
211
|
<td style="text-align: center;"><nobr>{{row.f_ispick_table}}</nobr></td>
|
|
212
212
|
<td style="text-align: center;"><nobr>{{row.f_comments}}</nobr></td>
|
|
213
|
-
<td style="text-align: center;"><nobr>{{row.
|
|
213
|
+
<td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
214
214
|
<td style="text-align: center;"><nobr>{{row.f_state}}</nobr></td>
|
|
215
215
|
<td style="text-align: center;"><nobr>{{row.f_orgname}}</nobr></td>
|
|
216
216
|
<td style="text-align: center;"><nobr>{{row.f_depname}}</nobr></td>
|