sale-client 3.6.64 → 3.6.65

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.
@@ -1,5 +1,5 @@
1
1
  var path = require('path')
2
- const [localUrl, serverRul] = ['https://qnjtkf.cn:8400/', 'https://qnjtkf.cn:8400/']
2
+ const [localUrl, serverRul] = ['http://121.36.106.17:8400/', 'http://121.36.106.17:8400/']
3
3
  var merge = require('webpack-merge')
4
4
  var baseConfig = require('./webpack.dev.conf')
5
5
  var devConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.64",
3
+ "version": "3.6.65",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -65,7 +65,7 @@ export default {
65
65
  show: [true],
66
66
  selectFiled: '其他信息',
67
67
  worktype: '其他信息',
68
- searchTime : 1000,
68
+ searchTime: 1000,
69
69
  interval: null
70
70
  }
71
71
  },
@@ -1,6 +1,9 @@
1
1
  <template>
2
2
  <!-- <div v-if="listpage">-->
3
3
  <tab-button v-ref:list>
4
+ <!-- <tabs header="物联网表调价补差">-->
5
+ <!-- <price-adjustment-webmeter @deal-msg="dealMsg"></price-adjustment-webmeter>-->
6
+ <!-- </tabs>-->
4
7
  <tabs header="机表调价补差">
5
8
  <price-adjustment @deal-msg="dealMsg"></price-adjustment>
6
9
  </tabs>
@@ -0,0 +1,404 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch">
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="form-group col-sm-2" >
10
+ <label class="font_normal_body">客户编号</label>
11
+ <input type="text" class="input_search" style="width:60%"
12
+ v-model="model.f_userinfo_code" placeholder='客户编号'
13
+ condition="f_userinfo_code = '{}'" >
14
+ </div>
15
+ <div class="form-group col-sm-2">
16
+ <label class="font_normal_body">客户名称</label>
17
+ <input type="text" class="input_search" style="width:60%"
18
+ v-model="model.f_user_name" placeholder='客户名称'
19
+ condition="f_user_name = '{}'">
20
+ </div>
21
+ <div class="form-group col-sm-2" >
22
+ <label class="font_normal_body">开始日期</label>
23
+ <datepicker placeholder="开始日期"
24
+ style="width:60%"
25
+ v-model="model.startDate"
26
+ :value.sync="model.startDate"
27
+ :format="'yyyy-MM-dd'"
28
+ ></datepicker>
29
+ </div>
30
+ <div class="form-group col-sm-2" >
31
+ <label class="font_normal_body">结束日期</label>
32
+ <datepicker placeholder="结束日期"
33
+ style="width:60%"
34
+ v-model="model.endDate"
35
+ :value.sync="model.endDate"
36
+ :format="'yyyy-MM-dd'"
37
+ ></datepicker>
38
+ </div>
39
+ <div class="span" style="float:right;">&nbsp;&nbsp;
40
+ <button class="button_new" style="width: max-content" v-show="$parent.$parent.pricechange" @click="$parent.$parent.priceshow()">批量调价</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
41
+ <button class="button_search" @click="search()" v-el:cx>查询</button>
42
+ <button class="button_clear" @click="$parent.$parent.clear()">清空</button>
43
+ <div style="float: right" class="button_spacing"
44
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
45
+ @click="$parent.$parent.hidden()"></div>
46
+ </div>
47
+ </div>
48
+ <div class="row" v-show="$parent.$parent.criteriaShow">
49
+ <div class="form-group col-sm-2">
50
+ <label class="font_normal_body">客户地址</label>
51
+ <input type="text" class="input_search" style="width:60%" style="width:60%" v-model="model.f_address" placeholder='客户地址'
52
+ condition="u3.f_address like '%{}%'">
53
+ </div>
54
+ <div class="form-group col-sm-2">
55
+ <label class="font_normal_body">电&emsp;&emsp;话</label>
56
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_user_phone" placeholder='电话'
57
+ condition="f_user_phone like '%{}%'">
58
+ </div>
59
+ <div class="form-group col-sm-2">
60
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
61
+ <input type="text" class="input_search" style="width:60%" style="width:60%" v-model="model.f_meternumber" placeholder='表号'
62
+ condition="f_meternumber like '%{}%'">
63
+ </div>
64
+ <div class="form-group col-sm-2">
65
+ <label class="font_normal_body">状&emsp;&emsp;态</label>
66
+ <v-select id="price_states"
67
+ v-model="model.price_states"
68
+ placeholder='未调价'
69
+ style="width: 60%"
70
+ :value.sync="model.price_states"
71
+ :options='$parent.$parent.price_states'
72
+ condition="nvl(f_new_price,0) {}"
73
+ close-on-select></v-select>
74
+ </div>
75
+ <div class="form-group col-sm-2">
76
+ <label class="font_normal_body">用户类型</label>
77
+ <v-select id="f_user_tye"
78
+ v-model="model.f_user_type"
79
+ placeholder='用户类型'
80
+ style="width: 60%"
81
+ @change="$parent.$parent.userTypeChange"
82
+ :value.sync="model.f_user_type"
83
+ :options='$parent.$parent.userTypes'
84
+ condition="u2.f_user_type = '{}'"
85
+ close-on-select></v-select>
86
+ </div>
87
+ <div class="form-group col-sm-2">
88
+ <label class="font_normal_body">气&emsp;&emsp;价</label>
89
+ <v-select id="f_price_name"
90
+ v-model="model.price_name"
91
+ placeholder='气价名称'
92
+ style="width: 60%"
93
+ :value.sync="model.price_name"
94
+ :options='$parent.$parent.price_name'
95
+ condition="sp.id = '{}'"
96
+ close-on-select></v-select>
97
+ </div>
98
+ </div>
99
+ </div>
100
+ </criteria>
101
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
102
+ <template partial='head'>
103
+ <tr>
104
+ <th><nobr>序号</nobr></th>
105
+ <th><nobr>客户编号</nobr></th>
106
+ <th><nobr>表号</nobr></th>
107
+ <th><nobr>姓名</nobr></th>
108
+ <th><nobr>用户类型</nobr></th>
109
+ <th><nobr>气表类型</nobr></th>
110
+ <th><nobr>开始抄表时间</nobr></th>
111
+ <th><nobr>结束抄表时间</nobr></th>
112
+ <th><nobr>气价名称</nobr></th>
113
+ <th><nobr>系统气价</nobr></th>
114
+ <th><nobr>输入气价</nobr></th>
115
+ <th><nobr>单价差值</nobr></th>
116
+ <th><nobr>上期底数</nobr></th>
117
+ <th><nobr>本期底数</nobr></th>
118
+ <th><nobr>补差气量</nobr></th>
119
+ <th><nobr>补差金额</nobr></th>
120
+ <th><nobr>差价来源</nobr></th>
121
+ <th><nobr>操作</nobr></th>
122
+ </tr>
123
+ </template>
124
+ <template partial='body'>
125
+ <td style="text-align: center;">{{$index+1}}</td>
126
+ <th style="text-align: center;">{{row.f_userinfo_code}}</th>
127
+ <th style="text-align: center;">{{row.f_meternumber}}</th>
128
+ <th style="text-align: center;">{{row.f_user_name}}</th>
129
+ <th style="text-align: center;">{{row.f_user_type}}</th>
130
+ <th style="text-align: center;">{{row.f_meter_type}}</th>
131
+ <th style="text-align: center;"><nobr>{{row.f_start_date}}</nobr></th>
132
+ <th style="text-align: center;"><nobr>{{row.f_end_date}}</nobr></th>
133
+ <th style="text-align: center;">{{row.f_price_name}}</th>
134
+ <!-- <th style="text-align: center;">{{row.f_address}}</th>-->
135
+ <th style="text-align: center;">
136
+ <div class="form-group" style="margin-bottom:0px;"
137
+ v-if="!row.f_new_price>0">
138
+ <input type="text" class="form-control" v-model="row.oldprice"
139
+ v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;" :disabled="row.state === '开始'">
140
+ </div>
141
+ <div v-else>{{row.f_old_price}}</div>
142
+ </th>
143
+ <th style="text-align: center;">
144
+ <div class="form-group" style="margin-bottom:0px;"
145
+ v-if="!row.f_new_price>0">
146
+ <input type="text" class="form-control" v-model="row.newprice" @blur="$parent.$parent.$parent.enter(row)"
147
+ v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;" :disabled="row.state === '开始'">
148
+ </div>
149
+ <div v-else>{{row.f_new_price}}</div>
150
+ </th>
151
+ <th style="text-align: center;">{{row.f_change_price}}</th>
152
+ <th style="text-align: center;">{{row.f_last_tablebase}}</th>
153
+ <th style="text-align: center;">{{row.f_tablebase}}</th>
154
+ <th style="text-align: center;">{{row.pregas}}</th>
155
+ <th style="text-align: center;">{{row.f_surplus_fee}}</th>
156
+ <th style="text-align: center;">{{row.f_source}}</th>
157
+ <th style="text-align: center;">
158
+ <button type="button" name="button" class="btn btn-link" v-if="row.f_new_price"
159
+ @click.stop="$parent.$parent.$parent.delectHand(row) && row.states === 1">冲正
160
+ </button>
161
+ </th>
162
+ </template>
163
+ </data-grid>
164
+ </criteria-paged>
165
+ <modal :show.sync="show" >
166
+ <header slot="modal-header" class="modal-header">
167
+ <h4 class="modal-title">调 价 补 差</h4>
168
+ </header>
169
+ <article slot="modal-body" class="modal-body">
170
+ <div class="form-group">
171
+ <p>旧单价:</p>
172
+ <input type="text" class="form-control" v-model="f_old_price" >
173
+ </div>
174
+ <div class="form-group">
175
+ <p>新单价:</p>
176
+ <input type="text" class="form-control" v-model="f_new_price" >
177
+ </div>
178
+ </article>
179
+ <footer slot="modal-footer" class="modal-footer">
180
+ <button class="button_search" @click="priceadjustment">生成调价补差表</button>
181
+ <button type="button" class="btn btn-default" @click='close'>取消</button>
182
+ </footer>
183
+ </modal>
184
+ <work-busy :is-busy="locking" v-show="locking"></work-busy>
185
+ </div>
186
+ </div>
187
+ </div>
188
+ </template>
189
+
190
+ <script>
191
+ import { HttpResetClass } from 'vue-client'
192
+ import { PagedList } from 'vue-client'
193
+ import Vue from 'vue'
194
+ let readySomething = async function (self) {
195
+ self.$refs.paged.$refs.criteria.model.startDate = self.$login.toStandardDateString()
196
+ self.$refs.paged.$refs.criteria.model.endDate = self.$login.toStandardDateString()
197
+ self.$resetpost('rs/sql/getpriceid', {data: {f_filialeids: self.$login.f.orgid}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
198
+ console.log(res.data)
199
+ let rs = []
200
+ for (let i = 0; i < res.data.length; i++) {
201
+ if (res.data[i].f_price_type === '固定气价') {
202
+ let temp = {
203
+ label: res.data[i].f_price_name,
204
+ flage: res.data[i].f_user_type,
205
+ value: res.data[i].id
206
+ }
207
+ rs.push(temp)
208
+ }
209
+ }
210
+ console.log(rs)
211
+ self.pricers = [{label: '全部', value: '', flage: ''}, ...rs]
212
+ self.$refs.paged.$refs.criteria.search()
213
+ })
214
+ }
215
+
216
+ export default {
217
+ title: '调价补差',
218
+ data () {
219
+ return {
220
+ pricechange: true,
221
+ criteriaShow: false,
222
+ pricers: [{label: '全部', value: '', flage: ''}],
223
+ price_name: [{label: '全部', value: ''}],
224
+ price_states: [{label: '全部', value: ''}, {label: '已调价', value: ' >0'}, {label: '未调价', value: ' <=0'}],
225
+ source: [{label: '卡表抄表', value: '卡表抄表'}, {label: '机表抄表', value: '机表抄表'}],
226
+ userTypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
227
+ condition: '',
228
+ locking: false,
229
+ model: new PagedList('rs/sql/get_WebUserCharge', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', price_states: 'this.model.price_states[0]', addSelectParam: 'this.model.addSelectParam'}),
230
+ f_new_price: 0.0,
231
+ f_old_price:0.0,
232
+ show: false,
233
+ addSelectParam: ''
234
+ // joinTable:'',
235
+ }
236
+ },
237
+ ready () {
238
+ readySomething(this).then(() => {
239
+ this.$emit('ready')
240
+ }).catch((error) => {
241
+ this.$emit('error', error)
242
+ })
243
+ },
244
+ methods: {
245
+ hidden () {
246
+ this.criteriaShow = !this.criteriaShow
247
+ },
248
+ // 用户类型发生改变
249
+ userTypeChange () {
250
+ this.price_name = []
251
+ if (this.$refs.paged.$refs.criteria.model.f_user_type) {
252
+ if (this.$refs.paged.$refs.criteria.model.f_user_type[0]) {
253
+ for (let i = 0; i < this.pricers.length; i++) {
254
+ if (this.pricers[i].flage === this.$refs.paged.$refs.criteria.model.f_user_type[0]) {
255
+ let rs = {
256
+ label: this.pricers[i].label,
257
+ value: this.pricers[i].value
258
+ }
259
+ this.price_name.push(rs)
260
+ }
261
+ }
262
+ }
263
+ }
264
+ // 选择全部时就放进去所有的气价
265
+ if (this.price_name.length === 0) {
266
+ for (let i = 0; i < this.pricers.length; i++) {
267
+ let rs = {
268
+ label: this.pricers[i].label,
269
+ value: this.pricers[i].value
270
+ }
271
+ this.price_name.push(rs)
272
+ }
273
+ }
274
+ },
275
+ // 冲正
276
+ delectHand (row) {
277
+ this.$showMessage('冲正后不可恢复,确定冲正吗?', ['confirm', 'cancel']).then((res) => {
278
+ if (res === 'confirm') {
279
+ row.f_operator = this.$login.f.name
280
+ row.f_operatorid = this.$login.f.id
281
+ row.f_orgid = this.$login.f.orgid
282
+ row.f_orgname = this.$login.f.orgs
283
+ row.f_depid = this.$login.f.depids
284
+ row.f_depname = this.$login.f.deps
285
+ this.$resetpost('rs/logic/priceAdjustmentOffset', {data: row}).then(() => {
286
+ // this.$dispatch('refresh', '正在处理', row)
287
+ this.selfSearch(this.model)
288
+ })
289
+ }
290
+ })
291
+ },
292
+ priceshow () {
293
+ this.show = true
294
+ },
295
+ close () {
296
+ this.show = false
297
+ this.f_new_price = 0.0
298
+ },
299
+ async priceadjustment () {
300
+ this.$showMessage('确认生成补差记录吗?', ['cancel', 'confirm']).then(
301
+ (response) => {
302
+ if (response === 'confirm') {
303
+ this.show = false
304
+ this.locking = true
305
+ this.getAdjustData()
306
+ }
307
+ })
308
+ },
309
+ async enter (row) {
310
+ if(row.oldprice && row.newprice){
311
+ this.$showMessage('是否确认对此记录进行调价补差操作?', ['confirm', 'cancel']).then((res) => {
312
+ if (res === 'confirm') {
313
+ let http2 = new HttpResetClass()
314
+ let param = {
315
+ f_state: '有效',
316
+ f_old_price:parseFloat(row.oldprice),
317
+ f_new_price: parseFloat(row.newprice),
318
+ f_operator: this.$login.f.name,
319
+ f_operatorid: this.$login.f.id,
320
+ f_orgid: this.$login.f.orgid,
321
+ f_orgname: this.$login.f.orgs,
322
+ f_depid: this.$login.f.depids,
323
+ f_depname: this.$login.f.deps,
324
+ f_start_date: this.model.model.startDate + ' 00:00:00',
325
+ f_end_date: this.model.model.endDate + ' 23:59:59',
326
+ row: row
327
+ }
328
+ this.$resetpost('rs/logic/priceAdjustmentWebmeter', {data: param}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
329
+ this.selfSearch(this.model)
330
+ })
331
+
332
+ }
333
+ })
334
+
335
+ }else{
336
+ this.$showMessage('请输入系统气价及补差气价')
337
+ }
338
+
339
+ },
340
+ async getAdjustData () {
341
+ try {
342
+ let http = new HttpResetClass()
343
+ let detail = await http.load('POST', 'rs/sql/get_WebUserCharge',
344
+ {data: {condition: this.condition, startDate: this.model.model.startDate, endDate: this.model.model.endDate, addSelectParam: '', price_states: 'not'}}, {resolveMsg: null, rejectMsg: null})
345
+ console.log(detail.data)
346
+ let param = {
347
+ f_state: '有效',
348
+ f_old_price:parseFloat(this.oldprice),
349
+ f_new_price: parseFloat(this.f_new_price),
350
+ f_operator: this.$login.f.name,
351
+ f_operatorid: this.$login.f.id,
352
+ f_orgid: this.$login.f.orgid,
353
+ f_orgname: this.$login.f.orgs,
354
+ f_depid: this.$login.f.depids,
355
+ f_depname: this.$login.f.deps,
356
+ f_start_date: this.model.model.startDate + ' 00:00:00',
357
+ f_end_date: this.model.model.endDate + ' 23:59:59',
358
+ condition: this.condition
359
+ }
360
+ let http2 = new HttpResetClass()
361
+ for (var i = 0; i < detail.data.length; i++) {
362
+ param.row = detail.data[i]
363
+ await http2.load('POST', 'rs/logic/priceAdjustmentWebmeter', {data: param}, {resolveMsg: null, rejectMsg: null})
364
+ }
365
+ this.close()
366
+ this.$showMessage('已生成了' + detail.data.length + '条调价补差记录', ['confirm'])
367
+ this.$refs.paged.$refs.criteria.search()
368
+ this.locking = false
369
+ } catch (error) {
370
+ this.$showAlert('生成调价补差表失败!!!', 'error', 3)
371
+ this.locking = false
372
+ }
373
+ },
374
+ search () {
375
+ this.selfSearch()
376
+ },
377
+ selfSearch (args) {
378
+ args.model.addSelectParam = ''
379
+ // args.model.joinTable =''
380
+ if (args.model.price_states.toString() === '') {
381
+ this.pricechange = false
382
+ // args.model.addSelectParam = 'u5.f_surplus_fee,u5.id,u5.f_state,u5.f_new_price,u5.f_old_price,u5.f_change_price,u5.f_whether_pay,u5.f_sell_id,'
383
+ // args.model.joinTable = 'left join t_surplus_detail u5 on u5.f_handplan_id = u1.f_handplan_id'
384
+ } else {
385
+ this.pricechange = true
386
+ }
387
+ this.condition = `${args.condition} and u2.f_orgid = '${this.$login.f.orgid}'`
388
+ this.model.search(this.condition, args.model)
389
+ },
390
+ clear () {
391
+ Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
392
+ this.$refs.paged.$refs.criteria.model[key] = ''
393
+ })
394
+ }
395
+ },
396
+ computed: {
397
+ },
398
+ watch: {
399
+ }
400
+ }
401
+ </script>
402
+
403
+ <style >
404
+ </style>
@@ -17,10 +17,10 @@
17
17
  close-on-select clear-button>
18
18
  </v-select>
19
19
  </div>
20
- <div class="col-sm-4 form-group">
21
- <label for="f_change_operator" class=" font_normal_body">换&ensp;表&ensp;人</label>
22
- <input class="input_search" style="width:60%" type="text" v-model="model.f_change_operator"
23
- placeholder="换表人">
20
+ <div class="col-sm-4 form-group" v-if="row.f_collection_type == '按金额'">
21
+ <label for="f_change_operator" class=" font_normal_body">旧表金额</label>
22
+ <input class="input_search" style="width:60%" type="text" v-model="model.f_using_fee_old"
23
+ placeholder="旧表金额" @blur="feeOldChange()">
24
24
  </div>
25
25
 
26
26
  <div class="col-sm-4 form-group"
@@ -236,6 +236,11 @@
236
236
  :options='opentype'
237
237
  close-on-select clear-button></v-select>
238
238
  </div>
239
+ <div class="col-sm-4 form-group">
240
+ <label for="f_change_operator" class=" font_normal_body">换&ensp;表&ensp;人</label>
241
+ <input class="input_search" style="width:60%" type="text" v-model="model.f_change_operator"
242
+ placeholder="换表人">
243
+ </div>
239
244
  </div>
240
245
  <div class="row auto">
241
246
  <div class="col-sm-12"
@@ -394,7 +399,9 @@ export default {
394
399
  f_state: '有效',
395
400
  f_changemeter_date: this.$login.toStandardTimeString(),
396
401
  f_changemeter_fee: this.$appdata.getSingleValue('换表金额') ? this.$appdata.getSingleValue('换表金额') : 0,
397
- f_difference_reason: ''
402
+ f_difference_reason: '',
403
+ // 金额表剩余金额
404
+ f_using_fee_old: 0
398
405
  },
399
406
  meterinfo: false,
400
407
 
@@ -498,6 +505,11 @@ export default {
498
505
  }
499
506
  },
500
507
  methods: {
508
+ feeOldChange () {
509
+ if (this.model.f_using_fee_old) {
510
+ this.model.f_remanent_money = this.model.f_using_fee_old
511
+ }
512
+ },
501
513
  addTaskModalClose () {
502
514
  this.addTaskModel.f_work_flow_name = ''
503
515
  this.addTaskModel.f_task_name = ''
@@ -306,8 +306,15 @@
306
306
  <div class="col-sm-2">
307
307
  <p class="form-control-static">{{userAddress}}</p>
308
308
  </div>
309
+ <label class="col-sm-2 control-label" v-if="showOrgname">所属公司</label>
310
+ <div class="col-sm-2" v-if="showOrgname">
311
+ <p class="form-control-static" style="color: red">{{orgName}}</p>
312
+ </div>
313
+ </div>
314
+ <div class="form-group" style="margin-left:10%;" v-if="showOrgname">
315
+ <p class="text-left" style="font-size:20px;line-height:60px;font-height:800;">当前卡所属分公司与当前分公司不符</p>
309
316
  </div>
310
- <div class="form-group" style="margin-left:10%;">
317
+ <div class="form-group" style="margin-left:10%;" v-if="!showOrgname">
311
318
  <p class="text-left" style="font-size:20px;line-height:60px;font-height:800;">当前卡充值次数与系统不符,请检查是否是正确的卡</p>
312
319
  </div>
313
320
  </form>
@@ -382,22 +389,40 @@
382
389
  let getUser = null
383
390
  if (self.cardInfo.Factory == 'JiBiao' || self.cardInfo.Factory == 'JiChengADSystem') {
384
391
  // 获取用户信息
385
- getUser = await self.$resetpost('rs/sql/sale_getUser', {
392
+ let data = {
386
393
  data: {
387
394
  condition: `f_meter_type in ('机表','物联网表') and u.f_card_id='${self.cardInfo.CardID}'
388
395
  and u.f_filialeid = '${self.$login.f.orgid}' and f_whether_hairpin != '未发'`,
389
396
  orderitem: `${self.orderitem} Desc`
390
- }
391
- }, {resolveMsg: '读卡成功', rejectMsg: '读卡失败'})
397
+ }}
398
+ if(!self.config.checkFiliale){
399
+ data = {
400
+ data: {
401
+ condition: `f_meter_type in ('机表','物联网表') and u.f_card_id='${self.cardInfo.CardID}'
402
+ and f_whether_hairpin != '未发'`,
403
+ orderitem: `${self.orderitem} Desc`
404
+ }}
405
+ }
406
+ getUser = await self.$resetpost('rs/sql/sale_getUser', data, {resolveMsg: '读卡成功', rejectMsg: '读卡失败'})
392
407
  } else {
393
- // 获取用户信息
394
- getUser = await self.$resetpost('rs/sql/sale_getUser', {
408
+ let data = {
395
409
  data: {
396
410
  condition: `gb.f_meter_type in ('气量卡表', '金额卡表','物联网表') and u.f_card_id='${self.cardInfo.CardID}'
397
411
  and u.f_filialeid = '${self.$login.f.orgid}' and f_alias='${self.cardInfo.Factory}' and f_whether_hairpin != '未发'`,
398
412
  orderitem: `${self.orderitem} Desc`
399
413
  }
400
- }, {resolveMsg: '读卡成功', rejectMsg: '读卡失败'})
414
+ }
415
+ if(!self.config.checkFiliale){
416
+ data = {
417
+ data: {
418
+ condition: `gb.f_meter_type in ('气量卡表', '金额卡表','物联网表') and u.f_card_id='${self.cardInfo.CardID}'
419
+ and f_alias='${self.cardInfo.Factory}' and f_whether_hairpin != '未发'`,
420
+ orderitem: `${self.orderitem} Desc`
421
+ }
422
+ }
423
+ }
424
+ // 获取用户信息
425
+ getUser = await self.$resetpost('rs/sql/sale_getUser', data, {resolveMsg: '读卡成功', rejectMsg: '读卡失败'})
401
426
  }
402
427
 
403
428
  if (getUser.data.length === 0) {
@@ -451,23 +476,41 @@
451
476
  // 还有一种方式: 在建立气表品牌的时候机表和物联网表别名直接给成JiBiao
452
477
  let getUser = null
453
478
  if (self.cardInfo.Factory == 'JiBiao' || self.cardInfo.Factory == 'JiChengADSystem') {
454
- // 获取用户信息
455
- getUser = await self.$resetpost('rs/sql/sale_getUser', {
479
+ let data = {
456
480
  data: {
457
481
  condition: `f_meter_type in ('机表','物联网表') and u.f_card_id='${self.cardInfo.CardID}'
458
482
  and u.f_filialeid = '${self.$login.f.orgid}' and f_whether_hairpin != '未发'`,
459
483
  orderitem: `${self.orderitem} Desc`
460
- }
461
- }, {resolveMsg: '读卡成功', rejectMsg: '读卡失败'})
462
- } else {
484
+ }}
485
+ if(!self.config.checkFiliale){
486
+ data = {
487
+ data: {
488
+ condition: `f_meter_type in ('机表','物联网表') and u.f_card_id='${self.cardInfo.CardID}'
489
+ and f_whether_hairpin != '未发'`,
490
+ orderitem: `${self.orderitem} Desc`
491
+ }}
492
+ }
463
493
  // 获取用户信息
464
- getUser = await self.$resetpost('rs/sql/sale_getUser', {
494
+ getUser = await self.$resetpost('rs/sql/sale_getUser', data, {resolveMsg: '读卡成功', rejectMsg: '读卡失败'})
495
+ } else {
496
+ let data = {
465
497
  data: {
466
498
  condition: `gb.f_meter_type in ('气量卡表', '金额卡表','物联网表') and u.f_card_id='${self.cardInfo.CardID}'
467
499
  and u.f_filialeid = '${self.$login.f.orgid}' and f_alias='${self.cardInfo.Factory}' and f_whether_hairpin != '未发'`,
468
500
  orderitem: `${self.orderitem} Desc`
469
501
  }
470
- }, {resolveMsg: '读卡成功', rejectMsg: '读卡失败'})
502
+ }
503
+ if(!self.config.checkFiliale){
504
+ data = {
505
+ data: {
506
+ condition: `gb.f_meter_type in ('气量卡表', '金额卡表','物联网表') and u.f_card_id='${self.cardInfo.CardID}'
507
+ and f_alias='${self.cardInfo.Factory}' and f_whether_hairpin != '未发'`,
508
+ orderitem: `${self.orderitem} Desc`
509
+ }
510
+ }
511
+ }
512
+ // 获取用户信息
513
+ getUser = await self.$resetpost('rs/sql/sale_getUser', data, {resolveMsg: '读卡成功', rejectMsg: '读卡失败'})
471
514
  }
472
515
  self.model.rows = getUser.data
473
516
  }
@@ -479,23 +522,41 @@
479
522
  // 还有一种方式: 在建立气表品牌的时候机表和物联网表别名直接给成JiBiao
480
523
  let getUser = null
481
524
  if (self.cardInfo.Factory == 'JiBiao' || self.cardInfo.Factory == 'JiChengADSystem') {
482
- // 获取用户信息
483
- getUser = await self.$resetpost('rs/sql/sale_getUser', {
525
+ let data = {
484
526
  data: {
485
- condition: `gb.f_meter_type in ('机表','物联网表') and u.f_card_id='${self.cardInfo.CardID}'
527
+ condition: `f_meter_type in ('机表','物联网表') and u.f_card_id='${self.cardInfo.CardID}'
486
528
  and u.f_filialeid = '${self.$login.f.orgid}' and f_whether_hairpin != '未发'`,
487
529
  orderitem: `${self.orderitem} Desc`
488
- }
489
- }, {resolveMsg: '读卡成功', rejectMsg: '读卡失败'})
490
- } else {
530
+ }}
531
+ if(!self.config.checkFiliale){
532
+ data = {
533
+ data: {
534
+ condition: `f_meter_type in ('机表','物联网表') and u.f_card_id='${self.cardInfo.CardID}'
535
+ and f_whether_hairpin != '未发'`,
536
+ orderitem: `${self.orderitem} Desc`
537
+ }}
538
+ }
491
539
  // 获取用户信息
492
- getUser = await self.$resetpost('rs/sql/sale_getUser', {
540
+ getUser = await self.$resetpost('rs/sql/sale_getUser', data, {resolveMsg: '读卡成功', rejectMsg: '读卡失败'})
541
+ } else {
542
+ let data = {
493
543
  data: {
494
544
  condition: `gb.f_meter_type in ('气量卡表', '金额卡表','物联网表') and u.f_card_id='${self.cardInfo.CardID}'
495
545
  and u.f_filialeid = '${self.$login.f.orgid}' and f_alias='${self.cardInfo.Factory}' and f_whether_hairpin != '未发'`,
496
546
  orderitem: `${self.orderitem} Desc`
497
547
  }
498
- }, {resolveMsg: '读卡成功', rejectMsg: '读卡失败'})
548
+ }
549
+ if(!self.config.checkFiliale){
550
+ data = {
551
+ data: {
552
+ condition: `gb.f_meter_type in ('气量卡表', '金额卡表','物联网表') and u.f_card_id='${self.cardInfo.CardID}'
553
+ and f_alias='${self.cardInfo.Factory}' and f_whether_hairpin != '未发'`,
554
+ orderitem: `${self.orderitem} Desc`
555
+ }
556
+ }
557
+ }
558
+ // 获取用户信息
559
+ getUser = await self.$resetpost('rs/sql/sale_getUser', data, {resolveMsg: '读卡成功', rejectMsg: '读卡失败'})
499
560
  }
500
561
  // 判断是否是旧卡
501
562
  if (getUser.data.length > 0) {
@@ -504,11 +565,18 @@
504
565
  self.userCode = getUser.data[0].f_userinfo_code
505
566
  self.userName = getUser.data[0].f_user_name
506
567
  self.userAddress = getUser.data[0].f_address
568
+ self.orgName = getUser.data[0].f_orgname
507
569
  if (getUser.data[0].f_is_check != '否') {
508
570
  self.showCardError = true
509
571
  self.showCardError2 = true
510
572
  return
511
573
  }
574
+ if (getUser.data[0].f_filialeid != self.$login.f.orgid) {
575
+ self.showCardError = true
576
+ self.showCardError2 = true
577
+ self.showOrgname = true
578
+ return
579
+ }
512
580
  // self.$showMessage('当前卡充值次数与系统不符,请检查是否是正确的卡.')
513
581
  }
514
582
  }
@@ -519,11 +587,19 @@
519
587
  self.userCode = getUser.data[0].f_userinfo_code
520
588
  self.userName = getUser.data[0].f_user_name
521
589
  self.userAddress = getUser.data[0].f_address
590
+ self.orgName = getUser.data[0].f_orgname
591
+ if (getUser.data[0].f_filialeid != self.$login.f.orgid) {
592
+ self.showCardError = true
593
+ self.showCardError2 = true
594
+ self.showOrgname = true
595
+ return
596
+ }
522
597
  if (getUser.data[0].f_is_check != '否') {
523
598
  self.showCardError2 = false
524
599
  self.showCardError = true
525
600
  return
526
601
  }
602
+
527
603
  }
528
604
  }
529
605
 
@@ -587,6 +663,7 @@
587
663
  await self.$LoadParams.loadParam()
588
664
  await self.initQueryParam()
589
665
  await self.clear()
666
+ await self.getCardConfig()
590
667
  if (!self.authArr.includes('读卡限定')) {
591
668
  self.search()
592
669
  }
@@ -596,7 +673,11 @@
596
673
  title: '收费',
597
674
  data () {
598
675
  return {
676
+ config:{
677
+ checkFiliale:false
678
+ },
599
679
  // 公司下拉
680
+ showOrgname:false,
600
681
  curorgid: [this.$login.f.orgid],
601
682
  f_orgid: '',
602
683
  showCardError2: false,
@@ -649,11 +730,11 @@
649
730
  // 读卡是否需要额外参数
650
731
  readCardNeedParam: false,
651
732
  readCardParam: {},
652
- systemTimes: '',
733
+ systemTimes: '',
653
734
  userCode: '',
654
735
  userName: '',
655
736
  userAddress: '',
656
-
737
+ orgName:'',
657
738
  // 当列表是一户的时候直接读卡,跳过判卡
658
739
  isSingleUser: null,
659
740
 
@@ -694,6 +775,13 @@
694
775
  }
695
776
  },
696
777
  methods: {
778
+ getCardConfig(){
779
+
780
+ this.$resetget(`rs/vue/checkcard.json`, {resolveMsg: null, rejectMsg: null}).then((result)=>{
781
+ Object.assign(self.config, result.data)
782
+ })
783
+
784
+ },
697
785
  getorg (val) {
698
786
  this.f_orgid = this.$login.convertToIn(val)
699
787
  this.$parent.f_orgid = this.f_orgid
@@ -806,6 +894,7 @@
806
894
  this.showCardInfo = false
807
895
  this.showCardError = false
808
896
  this.showCardError2 = false
897
+ this.showOrgname = false
809
898
  },
810
899
  async testCard () {
811
900
  try {
@@ -17,12 +17,11 @@
17
17
  close-on-select clear-button>
18
18
  </v-select>
19
19
  </div>
20
- <div class="col-sm-4 form-group">
21
- <label for="f_change_operator" class=" font_normal_body">换&ensp;表&ensp;人</label>
22
- <input class="input_search" style="width:60%" type="text" v-model="model.f_change_operator"
23
- placeholder="换表人" :readonly="!applyButtonShow">
20
+ <div class="col-sm-4 form-group" v-if="row.f_collection_type == '按金额'">
21
+ <label for="f_change_operator" class=" font_normal_body">旧表金额</label>
22
+ <input class="input_search" style="width:60%" type="text" v-model="model.f_using_fee_old"
23
+ placeholder="旧表金额" @blur="feeOldChange()">
24
24
  </div>
25
-
26
25
  <div class="col-sm-4 form-group"
27
26
  :class="[$v.f_using_base_old.required || $v.f_using_base_old.dctest ? 'has-error' : 'has-success']">
28
27
  <label for="f_remanent_gas" class=" font_normal_body">旧表底数</label>
@@ -251,6 +250,11 @@
251
250
  :disabled="!applyButtonShow"
252
251
  close-on-select clear-button></v-select>
253
252
  </div>
253
+ <div class="col-sm-4 form-group">
254
+ <label for="f_change_operator" class=" font_normal_body">换&ensp;表&ensp;人</label>
255
+ <input class="input_search" style="width:60%" type="text" v-model="model.f_change_operator"
256
+ placeholder="换表人">
257
+ </div>
254
258
  </div>
255
259
  <div class="row auto">
256
260
  <div class="col-sm-12"
@@ -435,7 +439,9 @@ export default {
435
439
  f_state: '有效',
436
440
  f_changemeter_date: this.$login.toStandardTimeString(),
437
441
  f_changemeter_fee: this.$appdata.getSingleValue('换表金额') ? this.$appdata.getSingleValue('换表金额') : 0,
438
- f_difference_reason: ''
442
+ f_difference_reason: '',
443
+ // 金额表剩余金额
444
+ f_using_fee_old: 0
439
445
  },
440
446
  meterinfo: false,
441
447
 
@@ -540,6 +546,11 @@ export default {
540
546
  }
541
547
  },
542
548
  methods: {
549
+ feeOldChange () {
550
+ if (this.model.f_using_fee_old) {
551
+ this.model.f_remanent_money = this.model.f_using_fee_old
552
+ }
553
+ },
543
554
  addTaskModalClose () {
544
555
  this.addTaskModel.f_work_flow_name = ''
545
556
  this.addTaskModel.f_task_name = ''
@@ -333,6 +333,7 @@
333
333
  f_price_type: this.newinfo.pricetype[0],
334
334
  f_price_name: this.newinfo.pricename[0].f_price_name,
335
335
  f_price_id: this.newinfo.pricename[0].f_price_id,
336
+ f_perform_date: this.newinfo.pricename[0].f_perform_date,
336
337
  f_stairprice_id: this.newinfo.pricename[0].id,
337
338
  // 修改原因
338
339
  f_comments: this.newinfo.f_comments,
package/src/sale.js CHANGED
@@ -873,6 +873,7 @@ export default function () {
873
873
  Vue.component('price-adjustment', (resolve) => { require(['./components/revenue/HandManager/PriceAdjustment'], resolve) })
874
874
  Vue.component('price-adjustment-manage', (resolve) => { require(['./components/revenue/HandManager/PriceAdjustmentManage'], resolve) })
875
875
  Vue.component('price-adjustment-card', (resolve) => { require(['./components/revenue/HandManager/PriceAdjustmentCard'], resolve) })
876
+ Vue.component('price-adjustment-webmeter', (resolve) => { require(['./components/revenue/HandManager/PriceAdjustmentWebmeter'], resolve) })
876
877
  // 收费记录补差
877
878
  Vue.component('price-adjustment-selling', (resolve) => { require(['./components/revenue/HandManager/PriceAdjustmentSelling'], resolve) })
878
879