sale-client 3.4.202 → 3.4.203

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.
@@ -100,7 +100,7 @@ var proxyTable = {
100
100
  '/rs': {
101
101
  // target: 'http://192.168.30.63:8081/'
102
102
  // target: 'http://121.36.106.17:8400/'
103
- target: fuwu
103
+ target: bendi
104
104
  }
105
105
  }
106
106
 
@@ -70,7 +70,7 @@ module.exports = merge(baseConfig, {
70
70
  }),
71
71
  new ParallelUglifyPlugin({
72
72
  // 用作缓存的可选绝对路径。如果未提供,则不使用缓存。
73
- cacheDir: '.cache/',
73
+ // cacheDir: '.cache/',
74
74
  uglifyJS: {
75
75
  output: {
76
76
  // 是否保留代码中的注释,默认为保留
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.4.202",
3
+ "version": "3.4.203",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -8,7 +8,7 @@
8
8
  "dev": "node build/dev-server.js",
9
9
  "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
10
10
  "unit": "karma start test/unit/karma.conf.js",
11
- "build": "rimraf dist && mkdirp dist && ncp static dist/mergeUser && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
11
+ "build": "rimraf lib && mkdirp lib && cross-env webpack --progress --hide-modules --config build/webpack.prod.conf.js",
12
12
  "e2e": "node test/e2e/runner.js",
13
13
  "release": "bash build/release.sh"
14
14
  },
@@ -88,7 +88,7 @@
88
88
  "style-loader": "^0.20.3",
89
89
  "system-clients": "3.2.0-2",
90
90
  "url-loader": "^0.5.7",
91
- "vue-client": "1.24.51",
91
+ "vue-client": "1.24.52",
92
92
  "vue-clipboard2": "0.3.1",
93
93
  "vue-hot-reload-api": "^1.2.0",
94
94
  "vue-html-loader": "^1.0.0",
@@ -75,15 +75,12 @@
75
75
  },
76
76
  title: '地址列表',
77
77
  props: {
78
- f_filialeids: {
78
+ f_filialeid: {
79
79
  type: String
80
- },
81
- company: {
82
- type: String,
83
- default: ''
84
80
  }
85
81
  },
86
82
  ready () {
83
+ console.log('f_filialeid8888:',this.f_filialeid)
87
84
  this.search()
88
85
  },
89
86
  methods: {
@@ -92,7 +89,7 @@
92
89
  },
93
90
  // 添加方法
94
91
  add (val) {
95
- if (this.f_filialeids) {
92
+ if (this.f_filialeid) {
96
93
  this.$refs.paged.$refs.grid.selectStore.selected = null
97
94
  this.$dispatch('add', val)
98
95
  } else {
@@ -114,10 +111,10 @@
114
111
  },
115
112
 
116
113
  selfSearch (args) {
117
- if (!this.f_orgid) {
114
+ if (!this.f_filialeid) {
118
115
  this.getorg([this.$login.f.orgid])
119
116
  }
120
- args.condition = `${args.condition} and a.f_userinfo_id is null and a.f_filialeid = '${this.f_filialeids}'`
117
+ args.condition = `${args.condition} and a.f_userinfo_id is null and a.f_filialeid = '${this.f_filialeid}'`
121
118
  this.model.search(args.condition, args.model)
122
119
  },
123
120
 
@@ -127,14 +124,14 @@
127
124
  },
128
125
  getorg (val) {
129
126
  this.f_orgid = this.$login.convertToIn(val)
130
- this.f_filialeids = val[0]
127
+ this.f_filialeid = val[0]
131
128
  }
132
129
  },
133
130
  watch: {
134
- 'company' (val) {
135
- this.f_orgid = val
136
- this.f_filialeids = val
137
- }
131
+ // 'company' (val) {
132
+ // this.f_orgid = val
133
+ // this.f_filialeids = val
134
+ // }
138
135
  }
139
136
 
140
137
  }
@@ -1,11 +1,12 @@
1
1
  <template>
2
2
  <div id="unit" class="flex-row">
3
3
  <div :class="{'basic-main':!useraddressShow,'binary-left':useraddressShow}" v-show="isSelect">
4
- <file-address-list-new @select-changed="selected" v-ref:addresslist :style="style" :select=select :company=company :f_filialeids.sync="f_filialeids"></file-address-list-new>
4
+ <file-address-list-new @select-changed="selected" v-ref:addresslist :style="style"
5
+ :select=select :f_filialeid="f_filialeid"></file-address-list-new>
5
6
  </div>
6
7
  <div v-show="useraddressShow" :class="{'basic-main':!isSelect, 'binary-right': isSelect}">
7
8
  <div class="flex">
8
- <user-address :f_filialeids.sync="f_filialeids" :usertype="isSpecial" :isedit="isSelect" :row="row" v-ref:fileuseraddress></user-address>
9
+ <user-address :f_filialeids="f_filialeid" :usertype="isSpecial" :isedit="isSelect" :row="row" v-ref:fileuseraddress></user-address>
9
10
 
10
11
  <file-user-address-change-new v-if="addressId" :address_id="addressId"></file-user-address-change-new>
11
12
  </div>
@@ -18,10 +19,12 @@
18
19
  title: '地址管理',
19
20
  components: {
20
21
  },
22
+ props: ['isSelect', 'fileinfo', 'f_filialeid', 'showselectaddress'],
21
23
  data () {
22
24
  return {
23
25
  // 分公司id串
24
- f_filialeids: this.$login.f.orgid,
26
+ // f_filialeids: this.$login.f.orgid,
27
+ f_filialeid: '',
25
28
  area: [],
26
29
  street: [],
27
30
  residential: [],
@@ -31,23 +34,8 @@
31
34
  isSpecial: false
32
35
  }
33
36
  },
34
- props: {
35
- isSelect: {
36
- type: Boolean,
37
- default: false
38
- },
39
- fileinfo: {
40
- type: Object,
41
- default: {}
42
- },
43
- company: {
44
- type: String,
45
- default: ''
46
- },
47
- showselectaddress: {
48
- type: Boolean,
49
- default: false
50
- }
37
+ ready () {
38
+
51
39
  },
52
40
  watch: {
53
41
  'showselectaddress' (val) {
@@ -284,10 +284,13 @@ import Vue from 'vue'
284
284
  let meterBookGen = function * (self) {
285
285
  if (self.$login.r.find(value => value == '抄表册建档')) {
286
286
  self.opteratormetrbook = true
287
- }
287
+ }
288
+ if(!self.f_filialeid){
289
+ self.f_filialeid = self.$login.f.orgid
290
+ }
288
291
  let temp = {
289
292
  tablename: 't_meter_book',
290
- condition: `f_book_state='有效' and f_filiale_id='${self.$login.f.orgid}'`
293
+ condition: `f_book_state='有效' and f_filiale_id='${self.f_filialeid}'`
291
294
  }
292
295
  let http = new HttpResetClass()
293
296
  let meterbooks = yield http.load('POST', 'rs/sql/saleSingleTable', {data: temp},
@@ -193,7 +193,9 @@
193
193
  <modal v-if="showselectaddress" :show.sync="showselectaddress" width="80%" title="地址信息" v-ref:modal large backdrop="false">
194
194
  <article slot="modal-body" class="modal-body" style="height: 700px;padding: 0!important;">
195
195
  <file-address-manage-new :is-select="isSelect" :fileinfo="addressinfo"
196
- @address-valid="doNothing" :showselectaddress.sync="showselectaddress" v-ref:fileaddress ></file-address-manage-new>
196
+ @address-valid="doNothing" :showselectaddress.sync="showselectaddress"
197
+ :f_filialeid="f_filialeid"
198
+ v-ref:fileaddress ></file-address-manage-new>
197
199
  </article>
198
200
  <footer slot="modal-footer" class="modal-footer">
199
201
  </footer>
@@ -220,7 +222,7 @@
220
222
 
221
223
  export default {
222
224
  title: '基本信息',
223
- props: ['baseinfo', 'addressinfo', 'isedit'],
225
+ props: ['baseinfo', 'addressinfo', 'isedit', 'f_filialeid'],
224
226
  data () {
225
227
  return {
226
228
  showselectaddress: false,
@@ -247,6 +249,7 @@
247
249
  }
248
250
  },
249
251
  ready () {
252
+ console.log('f_filialeid222,,,', this.f_filialeid)
250
253
  getEditUserState(this)
251
254
  this.$resetValidation()
252
255
  // this.highMeterPlugin = new HighMeter(this,this.readIDCardCallback)
@@ -9,7 +9,7 @@
9
9
  <button class="button_search" style="width: max-content" @click="uploadPictures()">拍照</button>
10
10
  </div>
11
11
  <file-user-essential-info-new :baseinfo="data.baseinfo" :addressinfo="data.addressinfo" @valid="essentialInfo = true"
12
- @invalid="essentialInfo = false" v-ref:useressential :isedit="isedit"></file-user-essential-info-new>
12
+ :f_filialeid="f_filialeid" @invalid="essentialInfo = false" v-ref:useressential :isedit="isedit"></file-user-essential-info-new>
13
13
  </div>
14
14
 
15
15
  <div style="height: auto;width: 100%">
@@ -179,6 +179,7 @@ export default {
179
179
  async ready () {
180
180
  this.blodid = '临时id' + Date.now()
181
181
  console.log('ready,,,', this.row)
182
+ console.log('f_filialeid111,,,', this.f_filialeid)
182
183
  try {
183
184
  await this.$getConfig(this, 'FilesDetail')
184
185
  } catch (error) {
@@ -305,7 +306,6 @@ export default {
305
306
  if (this.row) {
306
307
  this.data.baseinfo.base.version = this.row.version
307
308
  }
308
- console.log('档案保存之前,。。。', this.data)
309
309
  this.$FileManageService.fileSave(this.$FileManageService.fileSaveBefore(this.data)).then((res) => {
310
310
  this.savePrintSheet(res.data.result[0])
311
311
  this.$dispatch('success')
@@ -16,7 +16,7 @@
16
16
  <span class="glyphicon glyphicon-plus"></span>
17
17
  <!--<img :src="imgmeter" alt="图片加载失败" class="img-rounded" style="width: 50px;margin:10px;">-->
18
18
  </div>
19
- <file-user-device-info-new :devicesinfo.sync="devicesinfo" :show_devices.sync="show_devices"
19
+ <file-user-device-info-new :devicesinfo.sync="devicesinfo" :show_devices.sync="show_devices" :f_filialeid="f_filialeid"
20
20
  :userinfoid='data.baseinfo.base.f_userinfo_id'></file-user-device-info-new>
21
21
  </div>
22
22
  </template>
@@ -191,7 +191,7 @@
191
191
  },
192
192
  getorg (val) {
193
193
  this.f_orgid = this.$login.convertToIn(val)
194
- this.f_filialeids = val[0]
194
+ if (val[0]) this.f_filialeids = val[0]
195
195
  }
196
196
  }
197
197
 
@@ -150,7 +150,7 @@
150
150
  <nobr>{{row.f_price_name}}</nobr>
151
151
  </td>
152
152
  <td style="text-align: center;">
153
- <nobr>{{row.networkState ? '已组网' : '未组网'}}</nobr>
153
+ <nobr>{{row.networkstate ? '已组网' : '未组网'}}</nobr>
154
154
  </td>
155
155
  <td style="text-align: center;">
156
156
  <nobr>{{row.f_meter_brand}}</nobr>
@@ -12,7 +12,7 @@
12
12
  </div>
13
13
  <modal v-if="addmeterinfoshow" :show.sync="addmeterinfoshow" width="80%" title="表具信息" v-ref:modal large backdrop="false">
14
14
  <article slot="modal-body" class="modal-body" style="height: 700px;padding: 0!important;">
15
- <archives-userfiles-manage :is-select="isSelect" :fileinfo="allarearow" :f_filialeid="f_filialeids"
15
+ <archives-userfiles-manage :is-select="isSelect" :fileinfo="allarearow" :f_filialeid.sync="f_filialeids"
16
16
  @address-valid="doNothing" v-ref:userfilesadd ></archives-userfiles-manage>
17
17
  <!-- <concentrator-userfiles-list :is-select="isSelect" :meterinfo="meterinfo" :fileinfo="areamodel" :f_filialeid.sync="f_filialeids" :usertype="areamodel.f_user_type"-->
18
18
  <!-- @address-valid="doNothing" v-ref:userfilesadd ></concentrator-userfiles-list>-->
@@ -308,7 +308,7 @@
308
308
 
309
309
  <script>
310
310
  import {PagedList} from 'vue-client'
311
- import vue from 'vue'
311
+ import Vue from 'vue'
312
312
  import * as Util from '../../../Util'
313
313
  import {HttpResetClass} from 'vue-client'
314
314
 
@@ -276,7 +276,7 @@
276
276
 
277
277
  <script>
278
278
  import {PagedList} from 'vue-client'
279
- import vue from 'vue'
279
+ import Vue from 'vue'
280
280
  import * as Util from '../../Util'
281
281
  import {HttpResetClass} from 'vue-client'
282
282
 
@@ -190,6 +190,7 @@
190
190
  <modal v-if="showselectaddress" :show.sync="showselectaddress" width="80%" title="地址信息" v-ref:modal large backdrop="false">
191
191
  <article slot="modal-body" class="modal-body" style="height: 700px;padding: 0!important;">
192
192
  <file-address-manage-new :is-select="isSelect" :fileinfo="addressinfo"
193
+ :f_filialeid="f_filialeid"
193
194
  @address-valid="doNothing" :showselectaddress.sync="showselectaddress" v-ref:fileaddress ></file-address-manage-new>
194
195
  </article>
195
196
  <footer slot="modal-footer" class="modal-footer">
@@ -217,7 +218,7 @@
217
218
 
218
219
  export default {
219
220
  title: '基本信息',
220
- props: ['baseinfo', 'addressinfo', 'isedit'],
221
+ props: ['baseinfo', 'addressinfo', 'isedit', 'f_filialeid'],
221
222
  data () {
222
223
  return {
223
224
  showselectaddress: false,
@@ -38,15 +38,11 @@
38
38
  </div>
39
39
  </template>
40
40
  <script>
41
- import ChargeList from './ChargeList'
42
- import ChargeOper from './ChargeOper'
41
+
43
42
  import {HttpResetClass} from 'vue-client'
44
43
 
45
44
  export default {
46
45
  title: '收费综合',
47
- components: {
48
- ChargeList, ChargeOper
49
- },
50
46
  data () {
51
47
  return {
52
48
  // 页面开关
@@ -14,9 +14,6 @@
14
14
  *客户相关信息
15
15
  */
16
16
 
17
- import MixPriceInfo from './MixPriceInfo'
18
- import SafeCheck from './SafeCheck'
19
- import ServiceRepair from './ServiceRepair'
20
17
  export default {
21
18
  title: '客户相关信息',
22
19
  data () {
@@ -24,7 +21,7 @@ export default {
24
21
  name: ''
25
22
  }
26
23
  },
27
- components: {MixPriceInfo, SafeCheck, ServiceRepair},
24
+
28
25
  props: {
29
26
  data: {
30
27
  type: Object
@@ -6,6 +6,9 @@ let specialComp = {
6
6
  // 档案信息
7
7
  'file-user-files': (resolve) => { require(['./FileUserFiles'], resolve) },
8
8
  'charge-manage': (resolve) => { require(['./ChargeManage'], resolve) },
9
+ 'charge-list': (resolve) => { require(['./ChargeList'], resolve) },
10
+ 'charge-oper': (resolve) => { require(['./ChargeOper'], resolve) },
11
+ // 导入IC卡相关查询界面
9
12
  'high-meter-idcard': (resolve) => { require(['./HighMeterIdCard'], resolve) },
10
13
  'high-meter': (resolve) => { require(['./HighMeter'], resolve) },
11
14
  'meter-charge-record-query': (resolve) => { require(['./ChargeRecordQuery'], resolve) },
@@ -81,6 +84,10 @@ let specialComp = {
81
84
 
82
85
  // 当前选择用户的其他信息
83
86
  'otherinfo': (resolve) => { require(['./base/otherinfo'], resolve) },
87
+ // 客户相关信息
88
+ 'mix-price-info': (resolve) => { require(['./base/MixPriceInfo'], resolve) },
89
+ 'safe-check': (resolve) => { require(['./base/SafeCheck'], resolve) },
90
+ 'service-repair': (resolve) => { require(['./base/ServiceRepair'], resolve) },
84
91
 
85
92
  'record-cancel': (resolve) => { require(['./base/RecordCancel'], resolve) },
86
93
  'card-meter-charge-cancel': (resolve) => { require(['./CardMeterChargeCancel'], resolve) },
@@ -0,0 +1,98 @@
1
+ <template>
2
+ <div style="height:100%">
3
+ <data-grid :model="model" class="table_sy" partial='list' v-ref:grid >
4
+ <template partial='head' >
5
+ <tr>
6
+ <th><nobr>序号</nobr></th>
7
+
8
+ <th><nobr>气量</nobr></th>
9
+ <th><nobr>应交</nobr></th>
10
+ <th><nobr>付款方式</nobr></th>
11
+ <th><nobr>上期结余</nobr></th>
12
+ <th><nobr>收款</nobr></th>
13
+ <th><nobr>本期结余</nobr></th>
14
+ <th><nobr>操作类型</nobr></th>
15
+ <th><nobr>操作时间 </nobr></th>
16
+ <th><nobr>操作员 </nobr></th>
17
+ <th><nobr>备注</nobr></th>
18
+ </tr>
19
+ </template>
20
+ <template partial='body' >
21
+ <tr >
22
+ <td style="text-align:center;white-space:nowrap;">{{$index+1}}</td>
23
+
24
+ <td style="text-align:center;white-space:nowrap;">{{row.gas.toFixed(2)}}</td>
25
+ <td style="text-align:center;white-space:nowrap;">{{row.fee}}</td>
26
+ <td style="text-align:center;white-space:nowrap;">{{row.f_payment}}</td>
27
+ <td style="text-align:center;white-space:nowrap;">{{row.f_balance}}</td>
28
+ <td style="text-align:center;white-space:nowrap;">{{row.f_collection}}</td>
29
+ <td style="text-align:center;white-space:nowrap;">{{row.f_curbalance}}</td>
30
+ <td style="text-align:center;white-space:nowrap;">{{row.type}}</td>
31
+ <td style="text-align:center;white-space:nowrap;">{{row.f_operate_date}}</td>
32
+ <td style="text-align:center;white-space:nowrap;">{{row.f_operator}}</td>
33
+ <td style="text-align:left;white-space:nowrap;">{{row.note}}{{row.f_write_card}}</td>
34
+ </tr>
35
+ </template>
36
+ </data-grid>
37
+ <modal :show.sync="cardCental" v-ref:modal backdrop="false">
38
+ <header slot="modal-header" class="modal-header">
39
+ <h4 class="modal-title">温馨提示</h4>
40
+ </header>
41
+ <article slot="modal-body" class="modal-body">
42
+ <div class="form-group">
43
+ <p> 当日此用户已经进行过一次购气,若卡上无气,请先进行补卡(未过表),之后掉气补气即可</p>
44
+ </div>
45
+ </article>
46
+ <footer slot="modal-footer" class="modal-footer">
47
+ <button type="button" class="btn btn-success" @click='cancel()'>确认
48
+ </button>
49
+ </footer>
50
+ </modal>
51
+ </div>
52
+ </template>
53
+
54
+ <script>
55
+ import {HttpResetClass} from 'vue-client'
56
+
57
+ export default {
58
+ title: '操作查询',
59
+ data () {
60
+ return {
61
+ model: {rows: []},
62
+ cardCental:false
63
+ }
64
+ },
65
+ props: ['searchdata'],
66
+ ready () {
67
+ this.getsalerecord()
68
+ },
69
+ methods: {
70
+ cancel(){
71
+ this.cardCental = false;
72
+ },
73
+ async getsalerecord () {
74
+ let http = new HttpResetClass()
75
+ // this.condition = `1=1 and f_user_id = '${this.searchdata.f_user_id}'`
76
+ this.condition = `1=1 and f_userfiles_id = '${this.searchdata.f_userfiles_id}'`
77
+ let record = await http.load('POST', 'rs/sql/sale_RecordQuery', {data: {condition: this.condition}}, {
78
+ rejectMsg: '流水查询出错!!',
79
+ resolveMsg: null
80
+ })
81
+ this.model.rows = record.data
82
+ if(this.model.rows.length>0 && ( this.model.rows[0].type== '发卡售气' || this.model.rows[0].type== '卡表收费' ) ){
83
+ let checkdata = this.model.rows[0].operate_date.substr(0,10)
84
+ let nowdate = new Date();
85
+ let pdate = nowdate.getFullYear()+'-'+(nowdate.getMonth()<10? '0'+nowdate.getMonth()+1 : nowdate.getMonth()+1) +'-'+(nowdate.getDate()<10? '0'+nowdate.getDate() : nowdate.getDate());
86
+ if(new Date(checkdata).getTime() == new Date(pdate).getTime()){
87
+ this.cardCental = true;
88
+ }
89
+ }
90
+ }
91
+ },
92
+ watch: {
93
+ 'searchdata' () {
94
+ this.getsalerecord()
95
+ }
96
+ }
97
+ }
98
+ </script>
@@ -16,6 +16,8 @@ let specialComp = {
16
16
  // 其他收费xin
17
17
  'other-charge-new': (resolve) => { require(['./OtherChargeNew'], resolve) },
18
18
  // 过户
19
- 'transfer-manage': (resolve) => { require(['./TransferManage'], resolve) }
19
+ 'transfer-manage': (resolve) => { require(['./TransferManage'], resolve) },
20
+ // 收费页面的流水查询
21
+ 'meter-charge-record-query': (resolve) => { require(['./ChargeRecordQuery'], resolve) },
20
22
  }
21
23
  exports.specialComp = specialComp
package/src/main.js CHANGED
@@ -1,23 +1,18 @@
1
- import Vue from 'vue'
2
- import { all } from 'vue-client'
3
- import App from './App'
4
- import { system } from 'system-clients'
5
- import sale from './sale'
6
- import { address } from 'address-client'
7
- import { ldap } from 'ldap-clients'
8
- import VueClipboard from 'vue-clipboard2'
9
- import moment from 'moment'
10
- Vue.use(VueClipboard)
11
- Vue.config.silent = true
12
-
13
- all()
14
- system(false)
15
- sale()
16
- address()
17
- ldap()
18
- require('system-clients/src/styles/less/bootstrap.less')
19
-
20
- new Vue({
21
- el: 'body',
22
- components: { App }
23
- })
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import sale from './sale'
4
+ import { address } from 'address-client'
5
+ import { ldap } from 'ldap-clients'
6
+ import VueClipboard from 'vue-clipboard2'
7
+ Vue.use(VueClipboard)
8
+ Vue.config.silent = true
9
+ // 新打包写法
10
+ Vue.use(sale, {filiale: null})
11
+ address()
12
+ ldap()
13
+ require('system-clients/src/styles/less/bootstrap.less')
14
+
15
+ new Vue({
16
+ el: 'body',
17
+ components: { App }
18
+ })
@@ -55,7 +55,7 @@ let FileManageService = {
55
55
  result.infobank.f_bank_name = bank.f_bank_name.length > 0 ? bank.f_bank_name[0] : ''
56
56
  }
57
57
  // 获取分公司id (通过ids拆分)
58
- result.f_filialeid = data.f_filialeid
58
+ result.f_filialeid = data.f_filialeid
59
59
  if (result.f_userinfo_id === null) {
60
60
  result.f_createfile_person = Vue.$login.f.name
61
61
  result.f_createfile_date = Vue.$login.toStandardTimeString()
@@ -344,7 +344,6 @@ let FileManageService = {
344
344
  return {userinfo: result, address: address, limit_gas: data.limit_gas, hasnumber: data.hasnumber, inputcode: data.inputcode}
345
345
  },
346
346
  fileSave (data) {
347
- console.log(data)
348
347
  return Vue.resetpost('rs/logic/filemanage_fileSave', {data: data})
349
348
  },
350
349
  batchOperate (model, type) {