sale-client 3.5.81 → 3.5.85

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.
@@ -158,7 +158,7 @@ app.use(hotMiddleware)
158
158
  // serve pure static assets
159
159
  app.use('/static', express.static('./static'))
160
160
 
161
- module.exports = app.listen(8085, function (err) {
161
+ module.exports = app.listen(8089, function (err) {
162
162
  if (err) {
163
163
  console.log(err)
164
164
  return
package/package.json CHANGED
@@ -1,117 +1,117 @@
1
- {
2
- "name": "sale-client",
3
- "version": "3.5.81",
4
- "description": "收费模块前台组件",
5
- "main": "src/index.js",
6
- "scripts": {
7
- "example": "node build/example-server.js",
8
- "dev": "node build/dev-server.js",
9
- "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
10
- "unit": "karma start test/unit/karma.conf.js",
11
- "build": "rimraf lib && mkdirp lib && cross-env webpack --progress --hide-modules --config build/webpack.prod.conf.js",
12
- "e2e": "node test/e2e/runner.js",
13
- "release": "bash build/release.sh"
14
- },
15
- "repository": {
16
- "type": "git",
17
- "url": "https://gitee.com/aote/product.git"
18
- },
19
- "dependencies": {
20
- "examples": "^0.1.0",
21
- "js-file-download": "0.4.12",
22
- "less-loader": "^2.2.3",
23
- "qrcodejs2": "0.0.2",
24
- "vue": "^1.0.17",
25
- "yarn": "^1.22.10"
26
- },
27
- "devDependencies": {
28
- "address-client": "3.2.29",
29
- "axios": "0.15.3",
30
- "babel-core": "^6.0.0",
31
- "babel-loader": "^6.0.0",
32
- "babel-plugin-transform-runtime": "^6.0.0",
33
- "babel-preset-es2015": "^6.0.0",
34
- "babel-preset-stage-2": "^6.0.0",
35
- "chai": "^3.5.0",
36
- "co": "^4.6.0",
37
- "compression-webpack-plugin": "1.1.2",
38
- "connect-history-api-fallback": "^1.1.0",
39
- "cross-env": "^1.0.7",
40
- "cross-spawn": "^2.1.5",
41
- "css-loader": "^0.23.0",
42
- "echarts": "^4.1.0",
43
- "eslint": "^3.19.0",
44
- "eslint-config-standard": "^10.2.1",
45
- "eslint-friendly-formatter": "^3.0.0",
46
- "eslint-loader": "^1.7.1",
47
- "eslint-plugin-html": "^3.0.0",
48
- "eslint-plugin-import": "^2.7.0",
49
- "eslint-plugin-node": "^5.2.0",
50
- "eslint-plugin-promise": "^3.4.0",
51
- "eslint-plugin-standard": "^3.0.1",
52
- "eventsource-polyfill": "^0.9.6",
53
- "express": "^4.13.3",
54
- "extract-text-webpack-plugin": "^1.0.1",
55
- "file-loader": "^0.8.4",
56
- "filemanager-webpack-plugin": "^2.0.5",
57
- "function-bind": "^1.0.2",
58
- "html-webpack-plugin": "^2.8.1",
59
- "http-proxy-middleware": "^0.11.0",
60
- "inject-loader": "^2.0.1",
61
- "isparta-loader": "^2.0.0",
62
- "jasmine-core": "^2.4.1",
63
- "jquery": "^3.3.1",
64
- "jsencrypt": "3.0.0-rc.1",
65
- "json-loader": "^0.5.4",
66
- "karma": "^1.4.1",
67
- "karma-chrome-launcher": "^2.2.0",
68
- "karma-coverage": "^1.1.1",
69
- "karma-mocha": "^1.3.0",
70
- "karma-sinon-chai": "^1.3.1",
71
- "karma-sourcemap-loader": "^0.3.7",
72
- "karma-spec-reporter": "0.0.31",
73
- "karma-webpack": "^2.0.2",
74
- "ldap-clients": "3.0.7",
75
- "less": "^2.7.3",
76
- "manage-client": "3.1.8-88",
77
- "mkdirp": "^0.5.1",
78
- "mocha": "^3.2.0",
79
- "moment": "2.24.0",
80
- "ncp": "^2.0.0",
81
- "nightwatch": "^0.8.18",
82
- "qrcodejs2": "0.0.2",
83
- "rimraf": "^2.5.0",
84
- "selenium-server": "2.52.0",
85
- "sinon": "^2.1.0",
86
- "sinon-chai": "^2.8.0",
87
- "style": "0.0.3",
88
- "style-loader": "^0.20.3",
89
- "system-clients": "3.2.25",
90
- "url-loader": "^0.5.7",
91
- "vue-client": "1.24.67",
92
- "vue-clipboard2": "0.3.1",
93
- "vue-hot-reload-api": "^1.2.0",
94
- "vue-html-loader": "^1.0.0",
95
- "vue-loader": "^8.2.1",
96
- "vue-resource": "^1.5.0",
97
- "vue-router": "^0.7.13",
98
- "vue-strap": "^1.0.9",
99
- "vue-style-loader": "^1.0.0",
100
- "vue-validator": "2.1.7",
101
- "webpack": "^1.12.2",
102
- "webpack-dev-middleware": "^1.4.0",
103
- "webpack-hot-middleware": "^2.6.0",
104
- "webpack-merge": "^0.8.3",
105
- "webpack-parallel-uglify-plugin": "^1.0.0",
106
- "weixin-js-sdk": "^1.2.0"
107
- },
108
- "keywords": [
109
- "selling-clients"
110
- ],
111
- "author": "张桥",
112
- "license": "ISC",
113
- "directories": {
114
- "example": "examples",
115
- "test": "test"
116
- }
117
- }
1
+ {
2
+ "name": "sale-client",
3
+ "version": "3.5.85",
4
+ "description": "收费模块前台组件",
5
+ "main": "src/index.js",
6
+ "scripts": {
7
+ "example": "node build/example-server.js",
8
+ "dev": "node build/dev-server.js",
9
+ "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
10
+ "unit": "karma start test/unit/karma.conf.js",
11
+ "build": "rimraf lib && mkdirp lib && cross-env webpack --progress --hide-modules --config build/webpack.prod.conf.js",
12
+ "e2e": "node test/e2e/runner.js",
13
+ "release": "bash build/release.sh"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://gitee.com/aote/product.git"
18
+ },
19
+ "dependencies": {
20
+ "examples": "^0.1.0",
21
+ "js-file-download": "0.4.12",
22
+ "less-loader": "^2.2.3",
23
+ "qrcodejs2": "0.0.2",
24
+ "vue": "^1.0.17",
25
+ "yarn": "^1.22.10"
26
+ },
27
+ "devDependencies": {
28
+ "address-client": "3.2.29",
29
+ "axios": "0.15.3",
30
+ "babel-core": "^6.0.0",
31
+ "babel-loader": "^6.0.0",
32
+ "babel-plugin-transform-runtime": "^6.0.0",
33
+ "babel-preset-es2015": "^6.0.0",
34
+ "babel-preset-stage-2": "^6.0.0",
35
+ "chai": "^3.5.0",
36
+ "co": "^4.6.0",
37
+ "compression-webpack-plugin": "1.1.2",
38
+ "connect-history-api-fallback": "^1.1.0",
39
+ "cross-env": "^1.0.7",
40
+ "cross-spawn": "^2.1.5",
41
+ "css-loader": "^0.23.0",
42
+ "echarts": "^4.1.0",
43
+ "eslint": "^3.19.0",
44
+ "eslint-config-standard": "^10.2.1",
45
+ "eslint-friendly-formatter": "^3.0.0",
46
+ "eslint-loader": "^1.7.1",
47
+ "eslint-plugin-html": "^3.0.0",
48
+ "eslint-plugin-import": "^2.7.0",
49
+ "eslint-plugin-node": "^5.2.0",
50
+ "eslint-plugin-promise": "^3.4.0",
51
+ "eslint-plugin-standard": "^3.0.1",
52
+ "eventsource-polyfill": "^0.9.6",
53
+ "express": "^4.13.3",
54
+ "extract-text-webpack-plugin": "^1.0.1",
55
+ "file-loader": "^0.8.4",
56
+ "filemanager-webpack-plugin": "^2.0.5",
57
+ "function-bind": "^1.0.2",
58
+ "html-webpack-plugin": "^2.8.1",
59
+ "http-proxy-middleware": "^0.11.0",
60
+ "inject-loader": "^2.0.1",
61
+ "isparta-loader": "^2.0.0",
62
+ "jasmine-core": "^2.4.1",
63
+ "jquery": "^3.3.1",
64
+ "jsencrypt": "3.0.0-rc.1",
65
+ "json-loader": "^0.5.4",
66
+ "karma": "^1.4.1",
67
+ "karma-chrome-launcher": "^2.2.0",
68
+ "karma-coverage": "^1.1.1",
69
+ "karma-mocha": "^1.3.0",
70
+ "karma-sinon-chai": "^1.3.1",
71
+ "karma-sourcemap-loader": "^0.3.7",
72
+ "karma-spec-reporter": "0.0.31",
73
+ "karma-webpack": "^2.0.2",
74
+ "ldap-clients": "3.0.7",
75
+ "less": "^2.7.3",
76
+ "manage-client": "3.1.8-88",
77
+ "mkdirp": "^0.5.1",
78
+ "mocha": "^3.2.0",
79
+ "moment": "2.24.0",
80
+ "ncp": "^2.0.0",
81
+ "nightwatch": "^0.8.18",
82
+ "qrcodejs2": "0.0.2",
83
+ "rimraf": "^2.5.0",
84
+ "selenium-server": "2.52.0",
85
+ "sinon": "^2.1.0",
86
+ "sinon-chai": "^2.8.0",
87
+ "style": "0.0.3",
88
+ "style-loader": "^0.20.3",
89
+ "system-clients": "3.2.25",
90
+ "url-loader": "^0.5.7",
91
+ "vue-client": "1.24.67",
92
+ "vue-clipboard2": "0.3.1",
93
+ "vue-hot-reload-api": "^1.2.0",
94
+ "vue-html-loader": "^1.0.0",
95
+ "vue-loader": "^8.2.1",
96
+ "vue-resource": "^1.5.0",
97
+ "vue-router": "^0.7.13",
98
+ "vue-strap": "^1.0.9",
99
+ "vue-style-loader": "^1.0.0",
100
+ "vue-validator": "2.1.7",
101
+ "webpack": "^1.12.2",
102
+ "webpack-dev-middleware": "^1.4.0",
103
+ "webpack-hot-middleware": "^2.6.0",
104
+ "webpack-merge": "^0.8.3",
105
+ "webpack-parallel-uglify-plugin": "^1.0.0",
106
+ "weixin-js-sdk": "^1.2.0"
107
+ },
108
+ "keywords": [
109
+ "selling-clients"
110
+ ],
111
+ "author": "张桥",
112
+ "license": "ISC",
113
+ "directories": {
114
+ "example": "examples",
115
+ "test": "test"
116
+ }
117
+ }
@@ -93,7 +93,7 @@
93
93
  </div>
94
94
  <div class="row">
95
95
  <div class="col-sm-2"></div>
96
- <input v-if="fileSaveData.reason==='其他'" class="input_search" style="width:60%" placeholder='修改原因' v-model="fileSaveData.modifyReason"/>
96
+ <input v-if="fileSaveData.reason ==='其他'" class="input_search" style="width:60%" placeholder='修改原因' v-model="fileSaveData.modifyReason"/>
97
97
  </div>
98
98
  </article>
99
99
  <footer slot="modal-footer" class="modal-footer">
@@ -59,7 +59,8 @@
59
59
  data () {
60
60
  return {
61
61
  model: {rows: []},
62
- cardCental:false
62
+ cardCental:false,
63
+ hasCardCental: false
63
64
  }
64
65
  },
65
66
  props: ['searchdata'],
@@ -79,7 +80,8 @@
79
80
  resolveMsg: null
80
81
  })
81
82
  this.model.rows = record.data
82
- if(this.model.rows.length>0 && ( this.model.rows[0].type== '发卡售气' || this.model.rows[0].type== '卡表收费' ) ){
83
+ this.hasCardCental = this.$appdata.getSingleValue('多收提示') ? this.$appdata.getSingleValue('多收提示') : true
84
+ if(this.hasCardCental && this.model.rows.length>0 && ( this.model.rows[0].type== '发卡售气' || this.model.rows[0].type== '卡表收费' ) ){
83
85
  let checkdata = this.model.rows[0].operate_date.substr(0,10)
84
86
  let nowdate = new Date();
85
87
  let pdate = nowdate.getFullYear()+'-'+(nowdate.getMonth()<10? '0'+nowdate.getMonth()+1 : nowdate.getMonth()+1) +'-'+(nowdate.getDate()<10? '0'+nowdate.getDate() : nowdate.getDate());
@@ -57,6 +57,16 @@
57
57
  placeholder="用户编号">
58
58
  </div>
59
59
  </div>
60
+ <!--<div class="row" v-if="row.f_meter_type== '物联网表'||row.f_meter_type== '机表' || row.f_meter_type == '金额卡表'">-->
61
+ <!--<div class="col-sm-6 col-sm-offset-3">-->
62
+ <!--<label for="f_auto_operate" id="f_auto_operate" class="font_normal_body">自动生成补费扣费</label>-->
63
+ <!--<v-select :value.sync="model.f_auto_operate" v-model='model.f_auto_operate'-->
64
+ <!--style="width:60%"-->
65
+ <!--:options='autoOperate' placeholder='是否自动生成补费扣费'-->
66
+ <!--close-on-select-->
67
+ <!--condition="f_state = '{}'"></v-select>-->
68
+ <!--</div>-->
69
+ <!--</div>-->
60
70
  </article>
61
71
  <footer slot="modal-footer" class="modal-footer">
62
72
  <button class="button_search" @click="confirm()" :disabled='!notarize_userinfo_code'>
@@ -99,6 +109,11 @@ export default {
99
109
  name: '划价记录',
100
110
  checked: true,
101
111
  disabled: true
112
+ }, {
113
+ table: 't_record',
114
+ name: '记录',
115
+ checked: true,
116
+ disabled: true
102
117
  }]
103
118
  },
104
119
  model: {
@@ -110,6 +125,7 @@ export default {
110
125
  out_userinfo_id: '',
111
126
  out_userfiles_id: '',
112
127
  out_user_id: '',
128
+ // f_auto_operate: '否',
113
129
  out_userinfo_code: '',
114
130
  in_user_name: '',
115
131
  out_user_name: '',
@@ -120,7 +136,8 @@ export default {
120
136
  f_operatorid: '',
121
137
  f_operator: '',
122
138
  f_comments: ''
123
- }
139
+ },
140
+ autoOperate: [{ label: '是', value: '是' }, { label: '否', value: '否' }]
124
141
  }
125
142
  },
126
143
  ready () {
@@ -159,6 +176,7 @@ export default {
159
176
  this.model.in_user_name = undefined
160
177
  } else {
161
178
  this.model.table_name = this.config.tableNames.map(item => item.table)
179
+ // this.model.f_auto_operate = this.model.f_auto_operate[0]
162
180
  new HttpResetClass().load('post', 'rs/logic/transferRecords',
163
181
  {
164
182
  model: this.model,
@@ -394,7 +394,7 @@
394
394
  import * as Util from '../../../Util'
395
395
 
396
396
  let readyGen = async function (self) {
397
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStartAndEndDateString()[0]
397
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStartAndEndDateString()[0]
398
398
  self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
399
399
  await self.$LoadParams.loadMeterBook(self.f_filialeid)
400
400
  self.loadMeterBooks()
@@ -414,12 +414,13 @@
414
414
  dep: [],
415
415
  user: []
416
416
  },
417
- config:{
418
- examine: false,
417
+ config: {
418
+ examine: false
419
419
  },
420
420
  imgfilename: '',
421
421
  // 小区
422
422
  residentialArea: [],
423
+ inputtouPerson: [],
423
424
  imgshow: false,
424
425
  criteriaShow: false,
425
426
  orgCondtionStr: '',
@@ -444,8 +445,8 @@
444
445
  'f_adjustable_name': '调压箱名称',
445
446
  'f_inputtor': '抄表员'
446
447
  },
447
- auditState:[{label: '全部', value: ''}, {label: '已审核', value: '已抄表'}, {label: '未审核', value: '待审核'}],
448
- auditState1:[{label: '全部', value: ''}, {label: '审核失败', value: '审核失败'}],
448
+ auditState: [{label: '全部', value: ''}, {label: '已审核', value: '已抄表'}, {label: '未审核', value: '待审核'}],
449
+ auditState1: [{label: '全部', value: ''}, {label: '审核失败', value: '审核失败'}],
449
450
  meters: [{label: '全部', value: ''}, {label: '机表', value: '机表'}, {label: '物联网表', value: '物联网表'}],
450
451
  resultstate: this.$appdata.getParam('抄表结果状态'),
451
452
  meterstates: this.$appdata.getParam('抄表状态') ? [{
@@ -475,7 +476,7 @@
475
476
  methods: {
476
477
  // 修正本期底数
477
478
  amend (row) {
478
- let tablebase = window.prompt('请输入你要修正的底数值,上期底数:'+ row.f_meter_base)
479
+ let tablebase = window.prompt('请输入你要修正的底数值,上期底数:' + row.f_meter_base)
479
480
  if (!tablebase) return
480
481
  if (tablebase < 0) {
481
482
  this.$showAlert(`底数不能小于0,请注意!`, 'warning', 2000)
@@ -596,9 +597,9 @@
596
597
  this.imgshow = false
597
598
  },
598
599
  imgShow (val) {
599
- console.log("-----------val2:",val)
600
+ console.log('-----------val2:', val)
600
601
  this.imgfilename = `rs/image/file/` + val
601
- console.log("-----------imgfilename2:",this.imgfilename)
602
+ console.log('-----------imgfilename2:', this.imgfilename)
602
603
  this.imgshow = true
603
604
  },
604
605
  async getaddress () {
@@ -632,6 +633,17 @@
632
633
  } else {
633
634
  args.condition = `${args.condition}` + this.orgCondtionStr
634
635
  }
636
+ // 抄表员查询条件
637
+ this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
638
+ if (this.inputtouPerson.length !== 0) {
639
+ let str = JSON.stringify(this.inputtouPerson)
640
+ str = str.replace(/"/g, `'`)
641
+ str = str.replace(/\[/g, ``)
642
+ str = str.replace(/\]/g, ``)
643
+ console.log('=====抄表员model22222222222绑定====', str)
644
+ // 查询多个抄表员时条件
645
+ args.condition += ` and f_inputtor in ( ${str} )`
646
+ }
635
647
  this.excelCondition = args.condition
636
648
  this.$refs.paged.$refs.grid.selectInit()
637
649
  this.model.search(args.condition, args.model)
@@ -696,7 +708,7 @@
696
708
  },
697
709
  loadMeterBooks () {
698
710
  this.meterbooks = this.$GetSaleParam.getMeterBooks()
699
- },
711
+ }
700
712
 
701
713
  },
702
714
  computed: {