sale-client 3.5.1 → 3.5.4

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.
Files changed (51) hide show
  1. package/package.json +1 -1
  2. package/src/components/FilesManage/UserEssentialInfoTest.vue +1 -3
  3. package/src/components/FilesManage/UserGeneralInfoTest.vue +3 -3
  4. package/src/components/revenue/base/leftview/SafeCheck.vue +4 -0
  5. package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchCancellation.vue +2 -0
  6. package/src/filiale/tongchuan/HandManager.vue +40 -29
  7. package/src/filiale/tongchuan/StairPrice/GasPrice.vue +3 -0
  8. package/src/filiale/tongchuan/StairPrice/PriceChangeHistory.vue +1 -1
  9. package/src/filiale/{WEINAN → weinan}/AutomaticPurse.vue +0 -0
  10. package/src/filiale/{WEINAN → weinan}/CardList.vue +0 -0
  11. package/src/filiale/{WEINAN → weinan}/CardMeterCenter.vue +0 -0
  12. package/src/filiale/{WEINAN → weinan}/CardMeterChargeCancel.vue +0 -0
  13. package/src/filiale/{WEINAN → weinan}/ChangeMeter.vue +0 -0
  14. package/src/filiale/{WEINAN → weinan}/ChargeList.vue +0 -0
  15. package/src/filiale/{WEINAN → weinan}/ChargeManageNew.vue +0 -0
  16. package/src/filiale/{WEINAN → weinan}/ChargeQueryUser.vue +0 -0
  17. package/src/filiale/{WEINAN → weinan}/ChargeRecordQuery.vue +0 -0
  18. package/src/filiale/{WEINAN → weinan}/DisableManage.vue +0 -0
  19. package/src/filiale/{WEINAN → weinan}/EnableManage.vue +0 -0
  20. package/src/filiale/{WEINAN → weinan}/FileAddressManage.vue +0 -0
  21. package/src/filiale/{WEINAN → weinan}/FileUserAddress.vue +0 -0
  22. package/src/filiale/{WEINAN → weinan}/HighMeter.vue +0 -0
  23. package/src/filiale/{WEINAN → weinan}/IOTMeterCenter.vue +0 -0
  24. package/src/filiale/{WEINAN → weinan}/MachineMeterCenter.vue +0 -0
  25. package/src/filiale/{WEINAN → weinan}/MeterMessage.vue +0 -0
  26. package/src/filiale/{WEINAN → weinan}/MeterinfoTest.vue +0 -0
  27. package/src/filiale/{WEINAN → weinan}/OffGasAddGas.vue +0 -0
  28. package/src/filiale/{WEINAN → weinan}/OtherGas.vue +0 -0
  29. package/src/filiale/{WEINAN → weinan}/OverUseCharge.vue +0 -0
  30. package/src/filiale/{WEINAN → weinan}/RecordCancel.vue +0 -0
  31. package/src/filiale/{WEINAN → weinan}/RecordQueryUser.vue +0 -0
  32. package/src/filiale/{WEINAN → weinan}/ReplaceCardManage.vue +0 -0
  33. package/src/filiale/{WEINAN → weinan}/ShowCardSellGas.vue +0 -0
  34. package/src/filiale/{WEINAN → weinan}/Stairinfo.vue +0 -0
  35. package/src/filiale/{WEINAN → weinan}/TransferManage.vue +0 -0
  36. package/src/filiale/{WEINAN → weinan}/UserBaseInfoNew.vue +0 -0
  37. package/src/filiale/{WEINAN → weinan}/UserEssentialInfoTest.vue +0 -0
  38. package/src/filiale/{WEINAN → weinan}/UserGeneralInfoTest.vue +0 -0
  39. package/src/filiale/{WEINAN → weinan}/UserInfoDetailManageNew.vue +0 -0
  40. package/src/filiale/{WEINAN → weinan}/Userinfo.vue +0 -0
  41. package/src/filiale/{WEINAN → weinan}/gasmove.vue +0 -0
  42. package/src/filiale/{WEINAN → weinan}/meterinfodetail.vue +0 -0
  43. package/src/filiale/{WEINAN → weinan}/plugins/FileManageService.js +0 -0
  44. package/src/filiale/{WEINAN → weinan}/plugins/getTimeService.js +0 -0
  45. package/src/filiale/{WEINAN → weinan}/sale.js +0 -0
  46. package/src/filiale/{WEINAN → weinan}/sale.js~Stashed changes +0 -0
  47. package/src/filiale/{WEINAN → weinan}/static/mainicon//347/237/251/345/275/2421828.png +0 -0
  48. package/src/main.js +1 -1
  49. package/src/plugins/FileManageService.js +27 -27
  50. package/src/plugins/FileService.js +8 -10
  51. package/src/sale.js +1099 -1099
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.1",
3
+ "version": "3.5.4",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -1,8 +1,5 @@
1
1
  <template>
2
2
  <div>
3
- <div style="margin-bottom: 2%; margin-top: 2%">
4
- <button class="button_search" style="width: max-content" @click="phoneManage()">管理备用电话</button>
5
- </div>
6
3
  <validator name='v' @valid="$emit('valid')" @invalid="$emit('invalid')">
7
4
  <form class="form-horizontal select-overspread ">
8
5
  <div class="row">
@@ -17,6 +14,7 @@
17
14
  <input type="text" maxlength="11" v-model="baseinfo.base.f_user_phone"
18
15
  v-validate:f_user_phone="{minlength: 11, maxlength: 11 }" class="input_search" style="width:60%"
19
16
  placeholder="客户电话" v-el:phone v-next-el="area">
17
+ <button type="button" class="glyphicon glyphicon-plus" @click.stop="phoneManage()"></button>
20
18
  </div>
21
19
  <div class="col-sm-4 form-group" style="" v-if="true">
22
20
  <label for="f_user_state" class="font_normal_body">&ensp;客户状态</label>
@@ -6,7 +6,7 @@
6
6
  <img style="margin-top: -5px" src="../../../static/images/lefticon/矩形1183.png">
7
7
  <a style="font-size: 20px;font-weight: 500;">基本信息</a>&nbsp;<a style="color: #999999;text-decoration: none"></a>
8
8
  <button class="button_search" style="width: max-content" v-show="data.baseinfo.base.f_user_nature === '单位'" @click="showUserDevices($index, data.baseinfo)">用户设备信息</button>
9
- <button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>
9
+ <button class="button_search" style="width: max-content" @click="uploadFiles()">上传/查看附件</button>
10
10
  <button class="button_search" style="width: max-content" @click="uploadPictures()">拍照</button>
11
11
  <button class="button_search" style="width: max-content" @click="openBankAccount()" v-if="data.meterinfo[0].f_user_type[0] === '非民用' && ($login.r.includes('银行开户'))">银行开户</button>
12
12
  </div>
@@ -161,7 +161,7 @@ export default {
161
161
  bank: {
162
162
  f_bank_name: ''
163
163
  },
164
- //用户备用电话信息
164
+ // 用户备用电话信息
165
165
  userphonelist: []
166
166
  },
167
167
  addressinfo: {},
@@ -533,7 +533,7 @@ export default {
533
533
  f_meter_book_num: ''
534
534
  },
535
535
  bank: {},
536
- //用户备用电话信息
536
+ // 用户备用电话信息
537
537
  userphonelist: []
538
538
  },
539
539
  addressinfo: {
@@ -104,6 +104,10 @@
104
104
  <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%" >燃气使用:</td>
105
105
  <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ model.f_usegas }}</td>
106
106
  </tr>
107
+ <tr>
108
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;width: 17%" >机械读数:</td>
109
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ model.f_item_name ==='机械读数' ? '无': model.f_item_value }}</td>
110
+ </tr>
107
111
  <tr >
108
112
  <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">用户满意度:</td>
109
113
  <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{ model.f_client_evaluation }}</td>
@@ -186,6 +186,8 @@ export default {
186
186
  if (owe.data.length > 0 && (!this.useraccount[0].f_meter_classify.includes('卡表'))) {
187
187
  this.$showAlert('该表有欠费,无法销户', 'warning', 3000)
188
188
  // this.$dispatch('button-specifies', {name:'机表收费', value: 'machine-charge'}, this.row)
189
+ } else if ((this.model.userinfo.f_meter_classify === '物联网表' && this.model.userinfo.f_balance_amount && this.model.userinfo.f_balance_amount > 0) || (this.model.userinfo.f_meter_classify !== '物联网表' && this.model.userinfo.f_balance && this.model.userinfo.f_balance > 0)) {
190
+ this.$showAlert('该表有余额,无法销户', 'warning', 3000)
189
191
  } else {
190
192
  await this.cancellation()
191
193
  }
@@ -955,9 +955,19 @@
955
955
  this.$showAlert(`请先查询用户信息`, 'warning', 2000)
956
956
  return
957
957
  }
958
- if (this.danhu.f_tablebase < this.danhu.info.f_tablebase) {
959
- this.$showAlert(`输入表底数信息有误上期底数为 ${this.danhu.info.f_tablebase}`, 'warning', 2000)
958
+ if (this.danhu.f_tablebase < 0) {
959
+ this.$showAlert(`底数不能小于0,请注意!`, 'warning', 2000)
960
960
  return
961
+ } else if (this.danhu.f_tablebase - parseInt(this.danhu.f_tablebase) !== 0) {
962
+ this.$showAlert(`底数只能输入整数,请注意!`, 'warning', 2000)
963
+ return
964
+ } else if (this.danhu.f_tablebase < this.danhu.info.f_tablebase && !this.danhu.info.f_capacity) {
965
+ this.$showAlert(`本期表底数不能低于上期表底数`, 'warning', 2000)
966
+ return
967
+ } else {
968
+ if (this.danhu.f_tablebase < this.danhu.info.f_tablebase) {
969
+ this.$showMessage('本次抄表已超越最大量程, 请熟知!')
970
+ }
961
971
  }
962
972
  let param = {
963
973
  downDate: this.downModel.downDate,
@@ -968,35 +978,36 @@
968
978
  f_operatorid: this.$login.f.id
969
979
  }
970
980
  console.log('下发参数:', param)
971
- await this.$resetpost('rs/logic/downHand', {data: param}, {resolveMsg: null, rejectMsg: null}).then((res) => {
972
- console.log('下发计划成功')
973
- }).catch((error) => {
974
- this.danhu.show = false
975
- this.$showAlert(`下发失败,请注意查看,失败原因:` + JSON.toString(error), 'danger', 2000)
976
- })
977
- let hanid = await this.$resetpost('/rs/sql/querySingleTable', {
978
- data: {
979
- items: 'max(id) id',
980
- tablename: 't_handplan',
981
- condition: ` f_userfiles_id = '${this.danhu.info.f_userfiles_id}' `
982
- }
983
- }, {resolveMsg: null, rejectMsg: '查询抄表信息失败'})
984
- let handParam = {
985
- f_meter_classify: this.danhu.info.f_meter_classify,
986
- f_meter_brand: this.danhu.info.f_meter_brand,
987
- f_hand_id: hanid.data[0].id,
988
- f_tablebase: this.danhu.f_tablebase,
989
- f_userinfo_id: this.danhu.info.f_userinfo_id
990
- }
991
- await this.$resetpost('rs/logic/sale_commonEnter', {data: handParam}, {
992
- resolveMsg: null,
993
- rejectMsg: null
994
- }).then((res) => {
995
- this.$showAlert(`单户抄表成功!`, 'success', 2000)
996
- this.danhuShow()
981
+ this.$resetpost('rs/logic/downHand', {data: param}, {resolveMsg: null, rejectMsg: '下发失败,请检查该用户是否在该归属期内已有抄表记录'}).then((res) => {
982
+ console.log('下发计划成功', res)
983
+ this.$resetpost('/rs/sql/querySingleTable', {
984
+ data: {
985
+ items: 'max(id) id',
986
+ tablename: 't_handplan',
987
+ condition: ` f_userfiles_id = '${this.danhu.info.f_userfiles_id}' `
988
+ }
989
+ }, {resolveMsg: null, rejectMsg: '查询抄表信息失败'}).then((res2) => {
990
+ let handParam = {
991
+ f_meter_classify: this.danhu.info.f_meter_classify,
992
+ f_meter_brand: this.danhu.info.f_meter_brand,
993
+ f_hand_id: res2.data[0].id,
994
+ f_tablebase: this.danhu.f_tablebase,
995
+ f_userinfo_id: this.danhu.info.f_userinfo_id
996
+ }
997
+ this.$resetpost('rs/logic/sale_commonEnter', {data: handParam}, {
998
+ resolveMsg: null,
999
+ rejectMsg: null
1000
+ })
1001
+ }).then((res) => {
1002
+ this.$showAlert(`单户抄表成功!`, 'success', 2000)
1003
+ this.danhuShow()
1004
+ }).catch((error) => {
1005
+ this.danhu.show = false
1006
+ this.$showAlert(`单户抄表失败!` + JSON.toString(error), 'danger', 2000)
1007
+ })
997
1008
  }).catch((error) => {
998
1009
  this.danhu.show = false
999
- this.$showAlert(`单户抄表失败!` + JSON.toString(error), 'danger', 2000)
1010
+ this.$showAlert(`抄表失败,请注意查看,失败原因:` + JSON.toString(error), 'danger', 2000)
1000
1011
  })
1001
1012
  },
1002
1013
  // 获得本月的最后一天。
@@ -194,6 +194,9 @@
194
194
  <div v-if="data" style="text-align:right;height:auto;margin-top:6px;">
195
195
  <a @click="showChangeView">查看变更记录</a>
196
196
  </div>
197
+ <div>
198
+ <price-change-history :row="data"></price-change-history>
199
+ </div>
197
200
  <!--</div>-->
198
201
  </validator>
199
202
  <limit-gas :f_price_id="model.id" :show.sync="limitShow" @limit="getLimitGas"></limit-gas>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="auto" style="height: 500px">
2
+ <div class="auto">
3
3
  <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid >
4
4
  <template partial='head'>
5
5
  <tr>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/src/main.js CHANGED
@@ -7,7 +7,7 @@ import VueClipboard from 'vue-clipboard2'
7
7
  Vue.use(VueClipboard)
8
8
  Vue.config.silent = true
9
9
  // 新打包写法
10
- Vue.use(sale, {filiale: 'zhongsheng'})
10
+ Vue.use(sale, {filiale: 'rizhao'})
11
11
  address()
12
12
  ldap()
13
13
  require('system-clients/src/styles/less/bootstrap.less')
@@ -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()
@@ -101,7 +101,7 @@ let FileManageService = {
101
101
  if (meter.f_hand_month) {
102
102
  meter.f_hand_month = meter.f_hand_month.length > 0 ? meter.f_hand_month[0] : null
103
103
  }
104
- if (meter.f_overdue_set){
104
+ if (meter.f_overdue_set) {
105
105
  meter.f_overdue_set = meter.f_overdue_set.length > 0 ? meter.f_overdue_set[0] : null
106
106
  }
107
107
  if (meter.f_riser_shaft) {
@@ -156,24 +156,24 @@ let FileManageService = {
156
156
  }
157
157
 
158
158
  meter.f_user_type = meter.f_user_type.length > 0 ? meter.f_user_type[0] : ''
159
- if(meter.fireinfo){
160
- if(meter.f_user_type=='民用'){
161
- meter.fireinfo.f_llj_scope=meter.fireinfo.f_control_brand=
162
- meter.fireinfo.f_contact_method=
163
- meter.fireinfo.f_control_model=meter.fireinfo.f_control_date=
164
- meter.fireinfo.f_control_code=meter.fireinfo.f_control_number=
165
- meter.fireinfo.f_appliance_type=meter.fireinfo.f_appliance_brand=
166
- meter.fireinfo.f_appliance_model=meter.fireinfo.f_alarm_info=
167
- meter.fireinfo.f_detector_number= null
168
- }else{
169
- meter.fireinfo.f_galvanize_pipe=meter.fireinfo.f_tee=
170
- meter.fireinfo.f_nipple=meter.fireinfo.f_elbow=
171
- meter.fireinfo.f_pipe_strap=meter.fireinfo.f_zqf=
172
- meter.fireinfo.f_sebific_duct=meter.fireinfo.f_zbf=
173
- meter.fireinfo.f_gas_appliance=meter.fireinfo.f_gas_appliance_num=
174
- meter.fireinfo.f_geyser=meter.fireinfo.f_geyser_num=
175
- meter.fireinfo.f_bgl=meter.fireinfo.f_bgl_style=
176
- meter.fireinfo.f_bgl_num= null
159
+ if (meter.fireinfo) {
160
+ if (meter.f_user_type == '民用') {
161
+ meter.fireinfo.f_llj_scope = meter.fireinfo.f_control_brand =
162
+ meter.fireinfo.f_contact_method =
163
+ meter.fireinfo.f_control_model = meter.fireinfo.f_control_date =
164
+ meter.fireinfo.f_control_code = meter.fireinfo.f_control_number =
165
+ meter.fireinfo.f_appliance_type = meter.fireinfo.f_appliance_brand =
166
+ meter.fireinfo.f_appliance_model = meter.fireinfo.f_alarm_info =
167
+ meter.fireinfo.f_detector_number = null
168
+ } else {
169
+ meter.fireinfo.f_galvanize_pipe = meter.fireinfo.f_tee =
170
+ meter.fireinfo.f_nipple = meter.fireinfo.f_elbow =
171
+ meter.fireinfo.f_pipe_strap = meter.fireinfo.f_zqf =
172
+ meter.fireinfo.f_sebific_duct = meter.fireinfo.f_zbf =
173
+ meter.fireinfo.f_gas_appliance = meter.fireinfo.f_gas_appliance_num =
174
+ meter.fireinfo.f_geyser = meter.fireinfo.f_geyser_num =
175
+ meter.fireinfo.f_bgl = meter.fireinfo.f_bgl_style =
176
+ meter.fireinfo.f_bgl_num = null
177
177
  }
178
178
  }
179
179
  // meter.f_industry_comments = meter.f_industry_comments.length > 0 ? meter.f_industry_comments[0] : ''
@@ -204,7 +204,7 @@ let FileManageService = {
204
204
  meter.f_userfiles_address = meter.f_userfiles_address ? meter.f_userfiles_address : null
205
205
  if (!meter.f_userfiles_id) {
206
206
  // 气表状态需要根据表型判断是否需要开通操作 目前物联网表需要做开通操作
207
- meter.f_table_state = '正常'
207
+ meter.f_table_state = result.f_user_state === '预备' ? '待开通' : '正常'
208
208
  // meter.f_whether_hairpin = !item.gasbrand[0].f_meter_type.includes('机表') ? '未发' : '无卡'
209
209
  // 所有表变成未发
210
210
  meter.f_whether_hairpin = '未发'
@@ -271,16 +271,16 @@ let FileManageService = {
271
271
  meter.devicesinfo = userfilesdevices
272
272
  result.userfiles.push(meter)
273
273
  })
274
- //用户设备信息
274
+ // 用户设备信息
275
275
  result.userphonelist = []
276
276
  let userphonelist = []
277
- if(data.baseinfo.userphonelist){
277
+ if (data.baseinfo.userphonelist) {
278
278
  data.baseinfo.userphonelist.forEach((item) => {
279
- if(item.f_rent_phone){
279
+ if (item.f_rent_phone) {
280
280
  let userphone = Object.assign({}, userphone, item)
281
281
  userphone.f_userinfo_id = result.f_userinfo_id ? result.f_userinfo_id + '' : null,
282
- userphone.f_rent_phone = userphone.f_rent_phone ? userphone.f_rent_phone :null,
283
- userphone.f_state= userphone.f_state ? userphone.f_state :'有效'
282
+ userphone.f_rent_phone = userphone.f_rent_phone ? userphone.f_rent_phone : null,
283
+ userphone.f_state = userphone.f_state ? userphone.f_state : '有效'
284
284
  userphone.f_operatorid = Vue.$login.f.id
285
285
  userphone.f_operator = Vue.$login.f.name
286
286
  userphone.f_orgid = Vue.$login.f.orgid
@@ -330,7 +330,7 @@ let FileManageService = {
330
330
  address = {
331
331
  id: data.addressinfo.id,
332
332
  f_area_id: data.addressinfo.f_area_id ? data.addressinfo.f_area_id : undefined,
333
- f_address_state :data.addressinfo.f_address_state
333
+ f_address_state: data.addressinfo.f_address_state
334
334
  }
335
335
  if (data.oldaddressinfo.id) {
336
336
  address.oldid = data.oldaddressinfo.id
@@ -11,20 +11,19 @@ let cancelUserGen = function * (data, type) {
11
11
  if (owe.data === 1 && hasHandplan.data.length > 0) {
12
12
  Vue.showAlert('该客户还有欠费,不能销户!!', 'danger', 0)
13
13
  } else {
14
- yield Vue.resetpost('rs/logic/saveSingleCancellation', data, {resolveMsg: `${type}成功`, rejectMsg: `${type}失败`}).then(res=>{
15
- if(res && res.data){
16
- if(type =='销户'){
17
- if(!(res.data.isaudit==null)){
18
- if(res.data.isaudit == 1){
19
- Vue.showAlert('提交成功,等待管理审核!','success',2000);
20
- return;
14
+ yield Vue.resetpost('rs/logic/saveSingleCancellation', data, {resolveMsg: `${type}成功`, rejectMsg: `${type}失败`}).then(res => {
15
+ if (res && res.data) {
16
+ if (type === '销户') {
17
+ if (!(res.data.isaudit === null)) {
18
+ if (res.data.isaudit === 1) {
19
+ Vue.showAlert('提交成功,等待管理审核!', 'success', 2000)
20
+ return
21
21
  }
22
22
  }
23
23
  }
24
- Vue.showAlert('销户成功','success',2000);
24
+ Vue.showAlert('销户成功', 'success', 2000)
25
25
  }
26
26
  })
27
-
28
27
  }
29
28
  } else {
30
29
  Vue.resetpost('rs/logic/saveSingleCancellation', data, {resolveMsg: `${type}成功`, rejectMsg: `${type}失败`})
@@ -214,7 +213,6 @@ let FileService = {
214
213
  let data = {
215
214
  f_operat_type: operateType,
216
215
  f_describe: `${Vue.$login.f.name}对客户${model.userinfo.f_user_name}进行销户`,
217
- f_state: '有效',
218
216
  f_user_id: model.userinfo.f_user_id,
219
217
  f_user_name: model.userinfo.f_user_name,
220
218
  f_state: type === '启用' ? '正常' : '销户',