sale-client 4.2.152 → 4.2.154

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
@@ -1,2 +1,2 @@
1
- #Mon Jan 05 11:37:36 CST 2026
1
+ #Tue Dec 30 10:04:44 CST 2025
2
2
  gradle.version=5.2.1
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "4.2.152",
3
+ "version": "4.2.154",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -142,7 +142,7 @@
142
142
  },
143
143
  async ready () {
144
144
  let data = {
145
- condition: 'f_filialeid in (' + this.$login.f.orgid + ')',
145
+ condition: `f_filialeid in ( '${this.$login.f.orgid}')`,
146
146
  orderitem: this.orderitem
147
147
  }
148
148
  let res = await this.$resetpost('api/af-revenue/sql/getGasPriceInfo', {'data': data}, {
@@ -1004,7 +1004,7 @@
1004
1004
  },
1005
1005
  downloadFiles () {
1006
1006
  let downurl = 'api/af-revenue/downloadfile/file?filename=机表抄表导入Excel模板'
1007
- this.$downFile(downurl,'机表抄表导入Excel模板.xlsx')
1007
+ this.$downFile(downurl, '机表抄表导入Excel模板.xlsx')
1008
1008
  },
1009
1009
  calculationBase (row) {
1010
1010
  let oughtamount = null
@@ -1114,19 +1114,28 @@
1114
1114
  this.$showAlert(`请先查询用户信息`, 'warning', 2000)
1115
1115
  return
1116
1116
  }
1117
-
1117
+ const isReverseHand = this.$login.r.find(value => value === '机表逆向抄表')
1118
1118
  if (this.danhu.f_tablebase < 0) {
1119
1119
  this.$showAlert(`底数不能小于0,请注意!`, 'warning', 2000)
1120
1120
  return
1121
1121
  } else if (this.danhu.f_tablebase.toString().split('.').length > 1 && this.danhu.f_tablebase.toString().split('.')[1].length > 3) {
1122
1122
  this.$showAlert(`底数最多只能输入小数点后3位,请注意!`, 'warning', 2000)
1123
1123
  return
1124
- } else if (this.danhu.f_tablebase < this.danhu.info.f_tablebase && !this.danhu.info.f_capacity) {
1124
+ }
1125
+ if (this.danhu.info.f_whether_pay === '否' && this.danhu.f_tablebase < this.danhu.info.f_tablebase && isReverseHand) {
1126
+ this.$showMessage('当前用户有未缴费的抄表记录,请先冲正当前用户未缴费抄表记录后再进行逆向抄表')
1127
+ return
1128
+ }
1129
+ if (this.danhu.f_tablebase < this.danhu.info.f_tablebase && !this.danhu.info.f_capacity && !isReverseHand) {
1125
1130
  this.$showAlert(`本期表底数不能低于上期表底数`, 'warning', 2000)
1126
1131
  return
1127
- } else {
1128
- if (this.danhu.f_tablebase < this.danhu.info.f_tablebase) {
1129
- this.$showMessage('本次抄表已超越最大量程, 请熟知!')
1132
+ } else if (this.danhu.f_tablebase < this.danhu.info.f_tablebase) {
1133
+ this.$showMessage('本次抄表已超越最大量程, 请熟知!')
1134
+ }
1135
+ if (isReverseHand && this.danhu.f_tablebase < this.danhu.info.f_tablebase) {
1136
+ const messageResult = await this.$showMessage('当前为逆向抄表,本期底数已低于上期底数,请确认操作无误!', ['confirm', 'cancel'])
1137
+ if (messageResult !== 'confirm') {
1138
+ return
1130
1139
  }
1131
1140
  }
1132
1141
  let param = {
@@ -1156,7 +1165,7 @@
1156
1165
  f_tablebase: this.danhu.f_tablebase,
1157
1166
  f_userinfo_id: this.danhu.info.f_userinfo_id
1158
1167
  }
1159
- this.$resetpost('api/af-revenue/logic/sale_commonEnter', {data: handParam}, {
1168
+ this.$resetpost(isReverseHand && this.danhu.f_tablebase < this.danhu.info.f_tablebase ? 'api/af-revenue/logic/sale_reverseHandEnter' : 'api/af-revenue/logic/sale_commonEnter', {data: handParam}, {
1160
1169
  resolveMsg: null,
1161
1170
  rejectMsg: null
1162
1171
  })
@@ -789,7 +789,7 @@
789
789
  'f_meternumber': '表号',
790
790
  'f_inputtor': '抄表员',
791
791
  'f_balance': '上期结余',
792
- 'f_curbalance':'本期结余',
792
+ 'f_curbalance': '本期结余',
793
793
  'f_last_input_date': '上次抄表',
794
794
  'f_hand_date': '下发时间',
795
795
  'f_input_date': '抄表日期',
@@ -920,9 +920,29 @@
920
920
  this.$showAlert(`请先查询用户信息`, 'warning', 2000)
921
921
  return
922
922
  }
923
- if (this.danhu.f_tablebase < this.danhu.info.f_tablebase) {
924
- this.$showAlert(`输入表底数信息有误上期底数为 ${this.danhu.info.f_tablebase}`, 'warning', 2000)
923
+ const isReverseHand = this.$login.r.find(value => value === '机表逆向抄表')
924
+ if (this.danhu.f_tablebase < 0) {
925
+ this.$showAlert(`底数不能小于0,请注意!`, 'warning', 2000)
925
926
  return
927
+ } else if (this.danhu.f_tablebase.toString().split('.').length > 1 && this.danhu.f_tablebase.toString().split('.')[1].length > 3) {
928
+ this.$showAlert(`底数最多只能输入小数点后3位,请注意!`, 'warning', 2000)
929
+ return
930
+ }
931
+ if (this.danhu.info.f_whether_pay === '否' && this.danhu.f_tablebase < this.danhu.info.f_tablebase && isReverseHand) {
932
+ this.$showMessage('当前用户有未缴费的抄表记录,请先冲正当前用户未缴费抄表记录后再进行逆向抄表')
933
+ return
934
+ }
935
+ if (this.danhu.f_tablebase < this.danhu.info.f_tablebase && !this.danhu.info.f_capacity && !isReverseHand) {
936
+ this.$showAlert(`本期表底数不能低于上期表底数`, 'warning', 2000)
937
+ return
938
+ } else if (this.danhu.f_tablebase < this.danhu.info.f_tablebase) {
939
+ this.$showMessage('本次抄表已超越最大量程, 请熟知!')
940
+ }
941
+ if (isReverseHand && this.danhu.f_tablebase < this.danhu.info.f_tablebase) {
942
+ const messageResult = await this.$showMessage('当前为逆向抄表,本期底数已低于上期底数,请确认操作无误!', ['confirm', 'cancel'])
943
+ if (messageResult !== 'confirm') {
944
+ return
945
+ }
926
946
  }
927
947
 
928
948
  // 检查是否跨阶梯
@@ -966,7 +986,7 @@
966
986
  f_tablebase: this.danhu.f_tablebase,
967
987
  f_userinfo_id: this.danhu.info.f_userinfo_id
968
988
  }
969
- await this.$resetpost('api/af-revenue/logic/sale_commonEnter', {data: handParam}, {
989
+ await this.$resetpost(isReverseHand && this.danhu.f_tablebase < this.danhu.info.f_tablebase ? 'api/af-revenue/logic/sale_reverseHandEnter' : 'api/af-revenue/logic/sale_commonEnter', {data: handParam}, {
970
990
  resolveMsg: null,
971
991
  rejectMsg: null
972
992
  }).then((res) => {
@@ -986,8 +1006,7 @@
986
1006
  getLastDayOfMonth (year, month) {
987
1007
  let new_year = year // 取当前的年份
988
1008
  let new_month = month++// 取下一个月的第一天,方便计算(最后一天不固定)
989
- if (month > 12) // 如果当前大于12月,则年份转到下一年
990
- {
1009
+ if (month > 12) { // 如果当前大于12月,则年份转到下一年
991
1010
  new_month -= 12 // 月份减
992
1011
  new_year++ // 年份增
993
1012
  }
@@ -1206,7 +1225,7 @@
1206
1225
  this.inputtor_change = args.condition.includes('未抄表')
1207
1226
 
1208
1227
  if (!this.orgCondtionStr) {
1209
- args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
1228
+ args.condition = `${args.condition}` + ` and f_orgid = ${this.$login.f.orgid}`
1210
1229
  } else {
1211
1230
  args.condition = `${args.condition}` + this.orgCondtionStr
1212
1231
  }
@@ -1531,7 +1550,7 @@
1531
1550
  let currentDown = new Date(this.downModel.downDate)
1532
1551
  console.log(new Date(this.$refs.paged.$refs.criteria.model.startDate))
1533
1552
  console.log(new Date(this.$refs.paged.$refs.criteria.model.endDate))
1534
- return currentDown >= new Date(this.$refs.paged.$refs.criteria.model.startDate ) && currentDown <= new Date(this.$refs.paged.$refs.criteria.model.endDate)
1553
+ return currentDown >= new Date(this.$refs.paged.$refs.criteria.model.startDate) && currentDown <= new Date(this.$refs.paged.$refs.criteria.model.endDate)
1535
1554
  },
1536
1555
 
1537
1556
  downContinue () {
@@ -1666,7 +1685,7 @@
1666
1685
  console.log('计算阶梯信息失败:', error)
1667
1686
  return null
1668
1687
  }
1669
- },
1688
+ }
1670
1689
  },
1671
1690
  watch: {
1672
1691
  'downModel.downWay' (val) {
@@ -1715,7 +1734,7 @@
1715
1734
  }
1716
1735
  }
1717
1736
  this.inputtores2 = rs
1718
- return [ ...rs]
1737
+ return [...rs]
1719
1738
  },
1720
1739
  whetherpaies () {
1721
1740
  return [
@@ -1136,18 +1136,28 @@ export default {
1136
1136
  return
1137
1137
  }
1138
1138
 
1139
+ const isReverseHand = this.$login.r.find(value => value === '机表逆向抄表')
1139
1140
  if (this.danhu.f_tablebase < 0) {
1140
1141
  this.$showAlert(`底数不能小于0,请注意!`, 'warning', 2000)
1141
1142
  return
1142
1143
  } else if (this.danhu.f_tablebase.toString().split('.').length > 1 && this.danhu.f_tablebase.toString().split('.')[1].length > 3) {
1143
1144
  this.$showAlert(`底数最多只能输入小数点后3位,请注意!`, 'warning', 2000)
1144
1145
  return
1145
- } else if (this.danhu.f_tablebase < this.danhu.info.f_tablebase && !this.danhu.info.f_capacity) {
1146
+ }
1147
+ if (this.danhu.info.f_whether_pay === '否' && this.danhu.f_tablebase < this.danhu.info.f_tablebase && isReverseHand) {
1148
+ this.$showMessage('当前用户有未缴费的抄表记录,请先冲正当前用户未缴费抄表记录后再进行逆向抄表')
1149
+ return
1150
+ }
1151
+ if (this.danhu.f_tablebase < this.danhu.info.f_tablebase && !this.danhu.info.f_capacity && !isReverseHand) {
1146
1152
  this.$showAlert(`本期表底数不能低于上期表底数`, 'warning', 2000)
1147
1153
  return
1148
- } else {
1149
- if (this.danhu.f_tablebase < this.danhu.info.f_tablebase) {
1150
- this.$showMessage('本次抄表已超越最大量程, 请熟知!')
1154
+ } else if (this.danhu.f_tablebase < this.danhu.info.f_tablebase) {
1155
+ this.$showMessage('本次抄表已超越最大量程, 请熟知!')
1156
+ }
1157
+ if (isReverseHand && this.danhu.f_tablebase < this.danhu.info.f_tablebase) {
1158
+ const messageResult = await this.$showMessage('当前为逆向抄表,本期底数已低于上期底数,请确认操作无误!', ['confirm', 'cancel'])
1159
+ if (messageResult !== 'confirm') {
1160
+ return
1151
1161
  }
1152
1162
  }
1153
1163
  // 那用气量进行划价 如果跨阶给出提示
@@ -1194,7 +1204,7 @@ export default {
1194
1204
  f_result_state: this.f_new_result_state,
1195
1205
  f_userinfo_id: this.danhu.info.f_userinfo_id
1196
1206
  }
1197
- this.$resetpost('api/af-revenue/logic/sale_commonEnter', {data: handParam}, {
1207
+ this.$resetpost(isReverseHand && this.danhu.f_tablebase < this.danhu.info.f_tablebase ? 'api/af-revenue/logic/sale_reverseHandEnter' : 'api/af-revenue/logic/sale_commonEnter', {data: handParam}, {
1198
1208
  resolveMsg: null,
1199
1209
  rejectMsg: null
1200
1210
  })
@@ -5,7 +5,7 @@ export default function () {
5
5
  // 售气收费 --收费gas-move
6
6
  Vue.component('charge-manage', (resolve) => { require(['./ChargeManage'], resolve) })
7
7
  Vue.component('hand-operate', (resolve) => { require(['./handOperate'], resolve) })
8
- Vue.component('charge-list', (resolve) => { require(['./ChargeList'], resolve)})
8
+ Vue.component('charge-list', (resolve) => { require(['./ChargeList'], resolve) })
9
9
  Vue.component('card-hand', (resolve) => { require(['./CardHand'], resolve) })
10
10
  Vue.component('hand-manager', (resolve) => { require(['./HandManager'], resolve) })
11
11
  Vue.component('machine-charge', (resolve) => { require(['./MachineCharge'], resolve) })
@@ -25,6 +25,4 @@ export default function () {
25
25
  Vue.component('reset-meter', (resolve) => { require(['./newchangemeter/ResetMeter'], resolve) })
26
26
  // 物联网退费管理
27
27
  Vue.component('iot-refund', (resolve) => { require(['./IOTRefund'], resolve) })
28
- // 黑名单
29
- Vue.component('black-list', (resolve) => { require(['.//BlackList'], resolve) })
30
28
  }
@@ -191,7 +191,7 @@
191
191
  <button v-if="row.f_meter_brand.includes('西美')&&row.f_meter_type.includes('物联网表')"
192
192
  class="button_search" type="button" @click="clearBarrier">清除障碍
193
193
  </button>
194
- <button v-if="row.f_meter_brand.includes('美华') && row.f_meter_type.includes('物联网表')"
194
+ <button v-if="row.f_meter_type.includes('物联网表')"
195
195
  class="button_search" type="button" @click="userFilesSync">档案同步
196
196
  </button>
197
197
  <button v-if="row.f_meter_type.includes('物联网表')"
@@ -1,390 +0,0 @@
1
- <template>
2
- <div class="flex-auto" style="overflow-y: scroll;height: 55%">
3
- <validator name='v'>
4
- <form novalidate class="form-horizontal select-overspread ">
5
- <ul class="nav nav-tabs">
6
- <li class="active a-tabs"><a href="#">用户拉黑</a></li>
7
- </ul>
8
- <div>
9
- <div class="row">
10
- <div class="col-sm-4 form-group" id="f_user_id">
11
- <label for="f_userinfo_code" class="font_normal_body">表&emsp;&emsp;号</label>
12
- <input class="input_search" style="width:60%" type="text"
13
- v-model="model.f_meternumber"
14
- :disabled='isEdit' placeholder="输入表号">
15
- </div>
16
- <div class="col-sm-4 form-group" id="f_user_id">
17
- <label for="f_userinfo_code" class="font_normal_body">卡&emsp;&emsp;号</label>
18
- <input class="input_search" style="width:60%" type="text"
19
- v-model="model.f_card_id"
20
- :disabled='isEdit' placeholder="输入卡号">
21
- </div>
22
- <div class="col-sm-4 form-group" id="f_user_id" :class="[$v.f_userinfo_code.required ? 'has-error' : 'has-success']">
23
- <label for="f_userinfo_code" class="font_normal_body">用户编号</label>
24
- <input class="input_search" style="width:60%" type="text"
25
- v-model="model.f_userinfo_code"
26
- v-validate:f_userinfo_code='{required: true }' :disabled='isEdit' placeholder="输入编号">
27
- </div>
28
- <div class="col-sm-4 form-group" id="name" :class="[$v.f_user_name.required ? 'has-error' : 'has-success']">
29
- <label for="f_user_name" class=" font_normal_body">用户姓名</label>
30
- <input class="input_search" style="width:60%" type="text" v-validate:f_user_name='{required: true }'
31
- v-model="model.f_user_name" readonly
32
- placeholder="用户姓名">
33
-
34
- </div>
35
- <div class="col-sm-4 form-group" id="phone" :class="[$v.f_user_phone.required ? 'has-error' : 'has-success']">
36
- <label for="f_user_phone" class=" font_normal_body">联系方式</label>
37
- <input class="input_search" style="width:60%" type="text" class="input_search" style="width:60%" v-validate:f_user_phone='{required: true }'
38
- v-model="model.f_user_phone" readonly
39
- placeholder="联系方式">
40
-
41
- </div>
42
- <div class="col-sm-4 form-group" id="brand">
43
- <label for="f_user_phone" class=" font_normal_body">气表品牌</label>
44
- <input class="input_search" style="width:60%" v-model="model.f_meter_brand" readonly placeholder="气表品牌">
45
- </div>
46
- <div class="col-sm-4 form-group" id="f_limit_times" :class="[$v.f_limit_times.required ? 'has-error' : 'has-success']">
47
- <!-- <label for="f_limit_times" class=" font_normal_body">限购次数</label>-->
48
- <label class="font_normal_body">限购次数</label>
49
- <input class="input_search" style="width:60%" type="number"
50
- v-model="model.f_limit_times" v-validate:f_limit_times='{required: true }'
51
- placeholder="限购次数">
52
-
53
- </div>
54
- <div :class="[model.isshow ? 'col-sm-2 form-group' : 'col-sm-3 form-group']" id="f_limit">
55
- <!-- <label for="f_limit_times" class=" font_normal_body">限购次数</label>-->
56
- <label v-if="model.isshow" class="font_normal_body">{{ f_limit }}</label>
57
- <v-select
58
- v-model="f_limit"
59
- :value.sync="f_limit"
60
- :options='limites'
61
- width="80%" v-if="!model.isshow">
62
- </v-select>
63
- </div>
64
- <div class="col-sm-3 form-group" id="f_limit_gas" style="right: 3%;">
65
- <input class="input_search" style="width:60%" type="number" v-if="f_limit=='限购气量'"
66
- v-model="model.f_limit_value"
67
- v-scale="[model.f_limit_value, 2]"
68
- @click="gg()"
69
- placeholder="限购气量">
70
- <input class="input_search" style="width:60%" type="number" v-if="f_limit=='限购金额'"
71
- v-model="model.f_limit_amount"
72
- v-scale="[model.f_limit_amount, 2]"
73
- @click="gg()"
74
- placeholder="限购金额">
75
-
76
- </div>
77
- </div>
78
-
79
- <div class="row">
80
- <div class="col-sm-8 form-group" id="f_third_pay">
81
- <label class="col-sm-6 form-group font_normal_body">是否限制第三方支付</label>
82
- <v-select class="col-sm-6 form-group"
83
- v-model="f_third_pay"
84
- :value.sync="f_third_pay"
85
- :options='thirdPay'
86
- default-value="1"
87
- >
88
- </v-select>
89
- </div>
90
- <div v-if="config.hasAudit" class="col-sm-4 form-group" :class="[$v.f_audit_person.required ? 'has-error' : 'has-success']">
91
- <label class="font_normal_body">审核人员</label>
92
- <input v-show="false" v-model="model.f_audit_person" v-validate:f_audit_person='{required: true}'>
93
- <v-select :value.sync="model.f_audit_person"
94
- :options='auditor' placeholder='请选择'
95
- selected="审核人员"
96
- :value-single="true"
97
- style="width:60%"
98
- close-on-select></v-select>
99
- </div>
100
- <div class="col-sm-12 form-group" id="address">
101
- <label for="f_address" class=" font_normal_body">地&emsp;&emsp;址</label>
102
- <input class="input_search" type="text" class="input_search" style="width:87%" v-model="model.f_address"
103
- readonly
104
- placeholder="地址">
105
- </div>
106
- <div class="col-sm-12 form-group" id="f_comments" :class="[$v.f_comments.required ? 'has-error' : 'has-success']">
107
- <label for="f_comments" class=" font_normal_body">原&emsp;&emsp;因</label>
108
- <input class="input_search" type="text" class="input_search" style="width:87%" v-model="model.f_comments"
109
- placeholder="原因" v-validate:f_comments='{required: true }' >
110
- </div>
111
-
112
- </div>
113
-
114
- <div style="text-align:right;height:auto;margin-top:6px;">
115
- <button class="button_search" type="button" style="width:80px;" @click="auditConfirm('拉黑')" v-show="config.hasAudit && model.isblacklist == 'false'" :disabled='!$v.valid'>
116
- 拉黑审核
117
- </button>
118
- <button class="button_search" type="button" style="width:80px;" @click="confirm('拉黑')" v-show="!config.hasAudit && model.isblacklist == 'false'" :disabled='!$v.valid'>
119
- 拉黑
120
- </button>
121
- <button class="button_search" type="button" style="width:120px;" @click="auditConfirm('取消拉黑')"
122
- v-show="config.hasAudit && model.isblacklist == 'true'" :disabled='!$v.valid'>
123
- 取消拉黑审核
124
- </button>
125
- <button class="button_search" type="button" style="width:80px;" @click="confirm('取消拉黑')"
126
- v-show="!config.hasAudit && model.isblacklist == 'true'" :disabled='!$v.valid'>
127
- 取消拉黑
128
- </button>
129
- <button class="button_export" type="button" style="width:80px;" @click="close()">取消</button>
130
- </div>
131
- </div>
132
-
133
- </form>
134
-
135
-
136
- </validator>
137
-
138
- </div>
139
- </template>
140
- <script>
141
- import {HttpResetClass} from 'vue-client'
142
- import Vue from 'vue'
143
- let initGen = async function (self, val) {
144
- await self.$getConfig(self, 'BlackList')
145
- // 获取低保气价
146
- let http = new HttpResetClass()
147
- let res = await http.load('POST', 'api/af-revenue/sql/sale_getUserAndVersion', {data: {condition:`f_userinfo_code='${self.data.f_userinfo_code}'` , f_orgid: self.$login.f.orgid}}, {
148
- resolveMsg: null,
149
- rejectMsg: null
150
- })
151
- console.log(res.data)
152
- console.log('用户id:' + res.data[0].f_userinfo_id)
153
- self.model = Object.assign({}, self.model, val)
154
- self.model.f_userinfo_code = res.data[0].f_userinfo_code
155
- self.model.f_meternumber = res.data[0].f_meternumber
156
- self.model.f_card_id = res.data[0].f_card_id
157
- self.model.f_userinfo_id = res.data[0].f_userinfo_id
158
- self.model.f_user_phone = res.data[0].f_user_phone
159
- self.model.f_address = res.data[0].f_address
160
- self.model.f_user_phone = res.data[0].f_user_phone
161
- self.model.version = res.data[0].version
162
- self.model.f_limit_value = res.data[0].f_limit_value
163
- self.model.f_limit_times = res.data[0].f_limit_times
164
- self.model.f_limit_amount = res.data[0].f_limit_amount
165
- self.model.isblacklist = res.data[0].isblacklist
166
- self.model.isshow = true
167
- if (!res.data[0].f_limit_type) {
168
- self.model.isshow = false
169
- // self.f_limit = '限购气量'
170
- } else {
171
- self.f_limit = (res.data[0].f_limit_type === '金额') ? '限购金额' : '限购气量'
172
- }
173
- }
174
-
175
- export default {
176
- title: '黑名单',
177
- props: {
178
- f_islow_income: {
179
- type: String,
180
- default: '1'
181
- },
182
- data: {
183
- type: Object
184
- }
185
- },
186
- data () {
187
- return {
188
- pricename: [{value: '', label: ''}],
189
- auditor: [],
190
- model: {
191
- f_userinfo_code: '',
192
- f_userinfo_id: '',
193
- f_user_name: '',
194
- f_address: '',
195
- f_user_phone: '',
196
- f_comments: '',
197
- version: null,
198
- // 限购次数
199
- f_limit_times: '',
200
- // 限购气量
201
- f_limit_value: '',
202
- // 限购金额
203
- f_limit_amount: '',
204
- isshow: false
205
-
206
- },
207
- config: {
208
- hasAudit: false // 是否审核
209
- },
210
- // 编辑控制
211
- isBlackList: false,
212
- f_filialeid: '', // 所属公司
213
- f_filialename: '', // 所属公司名称
214
- f_limit: '限购气量',
215
- f_third_pay: [1],
216
- limites: [{label: '限购气量', value: '限购气量'}, {label: '限购金额', value: '限购金额'}],
217
- thirdPay: [{label: '否', value: 1}, {label: '是', value: 0}]
218
-
219
- }
220
- },
221
- ready () {
222
- initGen(this, this.data)
223
- this.getAuditor()
224
- },
225
- watch: {
226
- 'data' (val) {
227
- initGen(this, val)
228
- }
229
- },
230
- methods: {
231
- async getAuditor () {
232
- await this.$GetSaleParam.initinputtor()
233
- this.auditor = this.$GetSaleParam.getAudit(this.$login.f.orgid)
234
- },
235
- gg () {
236
- if (this.f_limit[0] === '限购气量') {
237
- this.model.f_limit_amount = ''
238
- } else {
239
- this.model.f_limit_value = ''
240
- }
241
- },
242
- getinfo (type) {
243
- var condition =`${type} = '${this.model[type]}'`
244
- this.$resetpost('api/af-revenue/sql/sale_getUserAndVersion', {data: {condition: condition, f_orgid: this.$login.f.orgid}}, {
245
- resolveMsg: null,
246
- rejectMsg: null
247
- }).then((res) => {
248
- console.log(res.data[0])
249
- this.model = res.data[0]
250
- this.$parent.blodid = this.model.f_userinfo_id
251
- })
252
- },
253
- async confirm (type) {
254
- if (type == '取消拉黑' && !this.$login.r.find(value => value == '取消拉黑')) {
255
- this.$showMessage('你没有取消拉黑的权限,请联系管理员!')
256
- return
257
- }
258
- let data = {
259
- f_operat_type: type,
260
- f_state: '有效',
261
- f_user_id: this.model.f_user_id,
262
- f_user_name: this.model.f_user_name,
263
- f_comments: this.model.f_comments,
264
- f_operator: this.$login.f.name,
265
- f_operatorid: this.$login.f.id,
266
- f_orgid: this.$login.f.orgid,
267
- f_orgname: this.$login.f.orgs,
268
- f_depid: this.$login.f.depids,
269
- f_depname: this.$login.f.deps,
270
- f_third_pay: this.f_third_pay[0],
271
- f_operate_date: this.$login.toStandardTimeString(),
272
- f_describe: `${this.$login.f.name}对客户${this.model.f_user_name}进行${type}`,
273
- f_userinfo_id: {
274
- f_userinfo_id: this.model.f_userinfo_id,
275
- f_user_state: '正常',
276
- version: this.model.version
277
- },
278
- f_limit_times: this.model.f_limit_times,
279
- f_limit_amount: this.model.f_limit_amount,
280
- f_limit_value: this.model.f_limit_value
281
- }
282
- console.log('查看参数data', data)
283
- let res =await this.$resetpost('api/af-revenue/logic/backlistOperate', data,{resolveMsg: null, rejectMsg: null})
284
- if (res.data.code == 200) {
285
- this.$showMessage(`${type}成功`)
286
- }
287
- if (res.data.code == 500) {
288
- this.$showMessage(`${type}失败,用户已被拉黑,请先取消拉黑`)
289
- return
290
- }
291
- this.initModel()
292
- this.$dispatch('success')
293
- },
294
-
295
- async auditConfirm (type) {
296
- let param = {
297
- // 业务参数
298
- requestParam: {
299
- f_operat_type: type,
300
- f_state: '有效',
301
- f_user_id: this.model.f_user_id,
302
- f_user_name: this.model.f_user_name,
303
- f_comments: this.model.f_comments,
304
- f_operator: this.$login.f.name,
305
- f_operatorid: this.$login.f.id,
306
- f_orgid: this.$login.f.orgid,
307
- f_orgname: this.$login.f.orgs,
308
- f_depid: this.$login.f.depids,
309
- f_depname: this.$login.f.deps,
310
- f_operate_date: this.$login.toStandardTimeString(),
311
- f_describe: `${this.$login.f.name}对客户${this.model.f_user_name}进行${type}`,
312
- f_userinfo_id: {
313
- f_userinfo_id: this.model.f_userinfo_id,
314
- f_user_state: '正常',
315
- version: this.model.version
316
- },
317
- f_limit_times: this.model.f_limit_times,
318
- f_limit_amount: this.model.f_limit_amount,
319
- f_limit_value: this.model.f_limit_value
320
- },
321
- // 审核人
322
- f_audit_person: this.model.f_audit_person,
323
- // 描述
324
- f_describe: `${this.$login.f.name}对客户${this.model.f_user_name}进行${type}`,
325
- // 附件
326
- fileParam: [],
327
- // 登录人信息
328
- userBaseInfo: {
329
- f_operator: Vue.$login.f.name,
330
- f_userinfo_code: this.model.f_userinfo_code,
331
- f_userinfo_id: this.model.f_userinfo_id,
332
- f_operatorid: Vue.$login.f.id,
333
- f_orgid: Vue.$login.f.orgid,
334
- f_orgname: Vue.$login.f.orgs,
335
- f_depid: Vue.$login.f.depids,
336
- f_depname: Vue.$login.f.deps
337
- },
338
- // 业务类型
339
- type: type,
340
- // 执行业务
341
- f_type: type,
342
- // 其他业务请求
343
- f_otherparam: [],
344
- // 备注
345
- f_comments: this.model.f_comments,
346
- // 执行logic
347
- logicName: 'backlistOperate'
348
- }
349
- this.$resetpost('api/af-revenue/logic/commonAuditLogic', {data: param}, {
350
- warnMsg: `确定要对用户${this.model.f_user_name}进行${type}审核吗?`,
351
- resolveMsg: `提交审核完成!!`,
352
- rejectMsg: `提交审核失败!!请重试!!`
353
- }).then((res) => {
354
- this.initModel()
355
- this.$dispatch('success')
356
- this.close()
357
- })
358
- },
359
- getorg (id, name) {
360
- this.f_filialeid = id[0]
361
- this.f_filialename = name[0]
362
- },
363
- initModel () {
364
- this.model = {
365
- f_userinfo_code: '',
366
- f_userinfo_id: '',
367
- f_user_name: '',
368
- f_address: '',
369
- f_user_phone: '',
370
- f_comments: '',
371
- version: null,
372
- isblacklist: 'false',
373
- isshow: false
374
- }
375
- },
376
- close () {
377
- this.$dispatch('close')
378
- }
379
- }
380
- }
381
- </script>
382
- <style lang="less">
383
- #gas-price-form {
384
- .form-group {
385
- margin-left: 0px;
386
- margin-right: 0px;
387
- }
388
- }
389
-
390
- </style>