sale-client 4.2.99 → 4.2.101

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.
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ #Thu Oct 30 09:31:24 CST 2025
2
+ gradle.version=5.2.1
Binary file
File without changes
package/.npmignore ADDED
@@ -0,0 +1,12 @@
1
+ src/bootstrap
2
+ .idea/
3
+ .DS_Store
4
+ node_modules/
5
+ dist/
6
+ examples/
7
+ gradle/
8
+ npm-debug.log
9
+ selenium-debug.log
10
+ test/unit/coverage
11
+ test/e2e/reports
12
+ lib/**/lib
@@ -1,7 +1,7 @@
1
1
  var path = require('path')
2
2
  var checkVersion = require('./versionCheck.js')
3
3
  checkVersion()
4
- const [ serverRul, localUrl ] = ['http://121.36.106.17:31467/', 'http://121.36.106.17:31467/']
4
+ const [ serverRul, localUrl ] = ['http://192.168.50.67:31567/', 'http://192.168.50.67:31567/']
5
5
  var merge = require('webpack-merge')
6
6
  var baseConfig = require('./webpack.dev.conf')
7
7
  var devConfig = {
@@ -50,12 +50,12 @@ var devConfig = {
50
50
  '/rs/pay': {
51
51
  target: 'http://localhost:8080'
52
52
  },
53
- // '/api/af-revenue': {
54
- // pathRewrite: {
55
- // '/api/af-revenue': '/af-revenue'
56
- // },
57
- // target: "http://localhost:8080"
58
- // },
53
+ '/api/af-revenue': {
54
+ pathRewrite: {
55
+ '/api/af-revenue': '/af-revenue'
56
+ },
57
+ target: "http://localhost:8080"
58
+ },
59
59
  '/api': {
60
60
  target: serverRul
61
61
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "4.2.99",
3
+ "version": "4.2.101",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/.npmignore ADDED
@@ -0,0 +1 @@
1
+
@@ -40,7 +40,9 @@
40
40
 
41
41
  <div class="span" style="float:right;">
42
42
  <button class="button_search button_spacing width-60" @click="search()" v-el:cx>查询</button>
43
- <button class="button_clear button_spacing width-60" @click="$parent.$parent.arrcreate()">生成短信</button>
43
+ <button class="button_clear button_spacing width-60" @click="$parent.$parent.getsendmodel()">选择模板</button>
44
+ <button class="button_clear button_spacing width-60" @click="$parent.$parent.defined()">新增模板</button>
45
+ <button class="button_clear button_spacing width-60" @click="$parent.$parent.arrcreate()" v-if="$parent.$parent.msg">生成短信</button>
44
46
  <button v-show="$parent.$parent.rollback" class="button_clear button_spacing width-60" @click="$parent.$parent.retrun()" v-el:cba>返回</button>
45
47
 
46
48
  <div
@@ -155,7 +157,7 @@
155
157
  </template>
156
158
  </data-grid>
157
159
  </criteria-paged>
158
- <modal :show.sync="arrshow" v-ref:modal backdrop="false">
160
+ <modal :show.sync="arrshow" v-ref:modal backdrop="false" style="z-index: 1051;">
159
161
  <header slot="modal-header" class="modal-header">
160
162
  <h4 class="modal-title">短信发送</h4>
161
163
  </header>
@@ -180,6 +182,66 @@
180
182
  <button v-show="arrshow" type="button" class="btn btn-success" @click='create()'>确认</button>
181
183
  </footer>
182
184
  </modal>
185
+ <modal :show.sync="infoshow" width="1100px" title="短信模板选择" style="z-index: 1050;" v-ref:modal large backdrop="false">
186
+ <article slot="modal-body" class="modal-body">
187
+ <criteria-paged :model="model2" v-ref:paged2>
188
+ <data-grid :model="$parent.$parent.model2" v-ref:grid2 partial='list'>
189
+ <template partial='head'>
190
+ <tr>
191
+ <!--<th style="padding: 0;border: 0">
192
+ <input type="checkbox" id="f_operator" v-model="$parent.$parent.$parent.all[model.pageIndex-1]"
193
+ @change="$parent.$parent.$parent.select()" style="width: 22px;height: 22px"/>
194
+ </th>-->
195
+ <th><nobr>选择</nobr></th>
196
+ <th><nobr>短信类型</nobr></th>
197
+ <th><nobr>模板内容</nobr></th>
198
+ <th><nobr>模板状态</nobr></th>
199
+ <th><nobr><b>创建人</b></nobr></th>
200
+ <th><nobr>操作</nobr></th>
201
+ </tr>
202
+ </template>
203
+ <template partial='body'>
204
+ <td style="text-align: center;"><input type="checkbox" v-model="$parent.$parent.$parent.$parent.sendmodelids" :value="row"></td>
205
+ <td style="text-align: center;">{{row.f_send_type}}</td>
206
+ <td style="text-align: center;" title="{{row.f_user_defined}}" >{{row.f_user_defined}}</td>
207
+ <td style="text-align: center;">{{row.f_state }}</td>
208
+ <td style="text-align: center;"><b>{{row.f_operator}}</b></td>
209
+ <td style="text-align: center;"><nobr>
210
+ <a @click='$parent.$parent.$parent.$parent.edit(row)'>编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;<a @click='$parent.$parent.$parent.$parent.senddelete(row)'>删除</a>
211
+ </nobr></td>
212
+ </template>
213
+ </data-grid>
214
+ </criteria-paged>
215
+ </article>
216
+ <footer slot="modal-footer" class="modal-footer">
217
+ <button type="button" class="btn btn-success width-60" @click='create1'>确定</button>
218
+ <button type="button" class="btn btn-default width-60" @click='infoclose'>关闭</button>
219
+ </footer>
220
+ </modal>
221
+ <modal :show.sync="allshow2" v-ref:modal backdrop="false">
222
+ <header slot="modal-header" class="modal-header">
223
+ <h4 class="modal-title">修正短信内容</h4>
224
+ </header>
225
+ <article slot="modal-body" class="modal-body">
226
+ <div class="form-group row" style="height:auto">
227
+ <label class="label-control">原短信内容:</label>{{msg_old}}
228
+ </div>
229
+ <div class="form-group">
230
+ <label class="label-control">修正为:</label>
231
+ <div class="row auto">
232
+ <textarea class="form-control col-sm-4" v-model="msg_new" rows="8" placeholder=""></textarea>
233
+ </div>
234
+ </div>
235
+ <div class="form-group" style="text-align: center;">
236
+ <h4><b>字数:<span style="color: #5cb85c">{{fontSizeNum}}</span></b></h4>
237
+ </div>
238
+ </article>
239
+ <footer slot="modal-footer" class="modal-footer">
240
+ <button v-show="allshow2" type="button" class="btn btn-default width-60" @click='closeEdit'>取消</button>
241
+ <button v-show="allshow2" type="button" class="btn btn-success width-60" @click='createEdit'>修正</button>
242
+ </footer>
243
+ </modal>
244
+ <user-defined-message :show="definedShow" v-ref:printbill v-on:toggle="closeAdd"></user-defined-message>
183
245
  </template>
184
246
 
185
247
  <script>
@@ -196,6 +258,9 @@
196
258
  userdefinedMessage: '',
197
259
  arrdownDate: '',
198
260
  arrshow: false,
261
+ allshow2: false,
262
+ msg_old: '',
263
+ msg_new: '',
199
264
  // 小区
200
265
  residentialArea: [],
201
266
  chonetype: this.$appdata.getParam('付款类型'),
@@ -218,8 +283,10 @@
218
283
  filiale: '',
219
284
  filialetype: '',
220
285
  isFirst: true,
221
- msg: `'[梅河燃气]用户编号:'+f_userinfo_code+'截止目前为止,表数'+f_tablebase+'欠费'+f_oughtfee
222
- +'元,为了不影响您正常用气,请及时缴费,详询:4660001 。'`
286
+ model2: new PagedList('api/af-revenue/sql/getSendModel', 30, {orderitem: " \'id desc\'"}),
287
+ infoshow: false,
288
+ sendmodelids: [],
289
+ msg: `用户编号:'+f_userinfo_code+',截止目前,您的燃气账户已欠费'+f_oughtfee_all+'元,为了不影响您正常用气,请及时缴费,详询:4660001 。`
223
290
  // msg: `'尊敬的客户:您'+f_hand_date+'-'
224
291
  // +f_hand_date +'月份燃气费为'
225
292
  // +f_oughtfee
@@ -268,6 +335,24 @@
268
335
  this.residentialArea = house
269
336
  },
270
337
 
338
+ closeEdit () {
339
+ this.allshow2 = false
340
+ },
341
+ createEdit () {
342
+ this.allshow2 = false
343
+ let setpos = {
344
+ id: this.rowEdit.id,
345
+ f_user_defined: this.msg_new.replace(/'/g,`''`)
346
+ }
347
+ this.$resetpost('api/af-revenue/entity/save/t_send_model', setpos, {resolveMsg: '模板修正成功', rejectMsg: '模板修正失败'})
348
+ this.rowEdit = ''
349
+ this.msg_new = ''
350
+ this.msg_old = ''
351
+ this.sendmodelids = []
352
+ let condition = "f_state=\'有效\' and f_orgid = \'" + Vue.$login.f.orgid + "\' and f_send_type = \'欠费\'"
353
+ this.model2.search(condition)
354
+ },
355
+
271
356
  retrun () {
272
357
  this.alllist = false
273
358
  this.$dispatch('allchange6')
@@ -285,7 +370,12 @@
285
370
  this.$showAlert('发送截至时间不能为空!', 'danger', 3000)
286
371
  } else {
287
372
  console.log('this.model.condition=====>', this.model.condition)
288
- this.$dispatch('create', this.model.condition, this.userdefinedMessage, this.arrdownDate,null,this.$refs.paged.$refs.cri.model.startDate,this.$refs.paged.$refs.cri.model.endDate)
373
+ if (!this.userdefinedMessage) {
374
+ this.userdefinedMessage = this.msg
375
+ }
376
+ this.$dispatch('create', this.model.condition, '', this.arrdownDate,'欠费通知',this.$refs.paged.$refs.cri.model.startDate,this.$refs.paged.$refs.cri.model.endDate,this.userdefinedMessage)
377
+ this.arrdownDate = ''
378
+ this.userdefinedMessage = ''
289
379
  }
290
380
  },
291
381
  search (args) {
@@ -304,6 +394,49 @@
304
394
  this.alllist = true
305
395
  }
306
396
  },
397
+ edit (row) {
398
+ this.allshow2 = true
399
+ this.rowEdit = row
400
+ this.msg_old = row.f_user_defined
401
+ this.msg_new = row.f_user_defined
402
+ },
403
+ senddelete (row) {
404
+ let setpos = {
405
+ id: row.id,
406
+ f_state: '无效'
407
+ }
408
+ this.$resetpost('api/af-revenue/entity/save/t_send_model', setpos, {resolveMsg: '模板删除成功', rejectMsg: '模板删除失败'})
409
+ let condition = "f_state=\'有效\' and f_orgid = \'" + Vue.$login.f.orgid + "\' and f_send_type = \'欠费\'"
410
+ this.model2.search(condition)
411
+ },
412
+ getsendmodel () {
413
+ let condition = `f_state='有效' and f_send_type = '欠费'`
414
+ let res = this.model2.search(condition)
415
+ console.log('---------------------' + res)
416
+ console.log('this.model2:', this.model2)
417
+ this.infoshow = true
418
+ },
419
+
420
+ infoclose () {
421
+ this .userdefinedMessage = false
422
+ this.infoshow = false
423
+ this.sendmodelids = []
424
+ },
425
+ create1 () {
426
+ console.log('kaishi ===', this.sendmodelids)
427
+ if (this.arrdownDate === '' || this.arrdownDate === null) {
428
+ if (this.sendmodelids.length !== 1) {
429
+ this.$showAlert('短信模板未选择或选择多个!', 'danger', 3000)
430
+ } else {
431
+ console.log('kaishi ===', this.sendmodelids[0])
432
+ this.userdefinedMessage = this.sendmodelids[0].f_user_defined
433
+ this.sendmodelids = []
434
+ this.msg = this.userdefinedMessage
435
+ this.infoshow = false
436
+ this.arrshow = true
437
+ }
438
+ }
439
+ },
307
440
 
308
441
  arrcreate () {
309
442
  this.arrshow = true
@@ -311,7 +444,11 @@
311
444
  defined () {
312
445
  this.definedShow = true
313
446
  },
447
+ closeAdd () {
448
+ this.definedShow = false
449
+ },
314
450
  close () {
451
+ this.userdefinedMessage = ''
315
452
  this.arrshow = false
316
453
  this.definedShow = false
317
454
  },
@@ -344,6 +481,11 @@
344
481
  }
345
482
  }
346
483
  },
484
+ events: {
485
+ 'definedMessage' (val) {
486
+ this.definedShow = false
487
+ }
488
+ },
347
489
  computed: {
348
490
 
349
491
  }
@@ -42,7 +42,7 @@
42
42
  </div>
43
43
 
44
44
  <div class="span" style="float:right;">
45
- <button class="button_search button_spacing" style="width:90px" @click="$parent.$parent.danhuShow()">4单户抄表</button>
45
+ <button class="button_search button_spacing" style="width:90px" @click="$parent.$parent.danhuShow()">单户抄表</button>
46
46
 
47
47
  <button class="button_search button_spacing" @click="$parent.$parent.search()">查询</button>
48
48
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
@@ -303,8 +303,8 @@ export default {
303
303
  sendType: [{label: '全部', value: ''}, ...this.$appdata.getParam('发送状态') ? this.$appdata.getParam('发送状态') : {}],
304
304
  getsendType: this.$appdata.getParam('短信类型'),
305
305
  replyType: this.$appdata.getParam('评价级别'),
306
- bodydata: ['f_user_name', 'code', 'f_phone', 'f_send_type', 'f_content', 'f_send', 'f_sendtime', 'f_statedetail', 'f_reply_type', 'f_reply_content', 'f_reply_content'],
307
- header: ['用户姓名', '用户编号', '电话号码', '短信类型', '短信内容', '发送状态', '发送时间', '状态报告', '评价级别', '回执状态', '评价内容'],
306
+ bodydata: ['f_user_name', 'code', 'f_phone', 'f_send_type', 'f_content', 'f_send', 'f_senddate', 'f_operator'],
307
+ header: ['用户姓名', '用户编号', '电话号码', '短信类型', '短信内容', '发送状态', '发送时间', '操作人'],
308
308
  showFile: false,
309
309
  leftmsg:0
310
310
  }