sale-client 3.6.399 → 3.6.400

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.399",
3
+ "version": "3.6.400",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -154,10 +154,11 @@ export default {
154
154
  let temp = res.data.array[j].f_downloadpath
155
155
  let URL = temp.substring(temp.lastIndexOf(':\\') + 2)
156
156
  if (res.data.array[j].fusetype == '安检照片') {
157
- res.data.array[j].f_downloadURL = 'http://' + location.host + '/rs/image/file/' + res.data.array[j].f_filename
157
+ res.data.array[j].f_downloadURL = location.protocol + location.host + '/rs/image/file/' + res.data.array[j].f_filename
158
158
  } else {
159
- res.data.array[j].f_downloadURL = 'http://' + location.host + '/' + URL
159
+ res.data.array[j].f_downloadURL = location.protocol + location.host + '/' + URL
160
160
  }
161
+ console.log('res.data.array[j].f_downloadURL', res.data.array[j].f_downloadURL)
161
162
  this.files[i].arrays.push(res.data.array[j])
162
163
  }
163
164
  }
@@ -305,7 +305,7 @@
305
305
  <h4 class="modal-title" align="center">阀控管理</h4>
306
306
  </header>
307
307
  <article slot="modal-body" class="modal-body">
308
- <div class="form-group" style="padding-left: 8px">
308
+ <div class="form-group col-sm-12" style="padding-left: 8px">
309
309
  <label class="font_normal_body">阀控状态</label>
310
310
  <div class="col-sm-3">
311
311
  <select v-model="selectedOption" class="input_search">
@@ -317,7 +317,7 @@
317
317
  </div>
318
318
  </div>
319
319
 
320
- <div class="form-group " style="padding-left: 8px">
320
+ <div class="form-group col-sm-12 " style="padding-left: 8px">
321
321
  <label class="font_normal_body" :class="operateReason?'':'text-danger'">操作原因</label>
322
322
  <textarea class="form-control" style="width:80%" v-model="operateReason" rows="1"
323
323
  placeholder="请填写操作原因"></textarea>
@@ -352,7 +352,7 @@
352
352
  close-on-select>
353
353
  </v-select>
354
354
  </div>
355
- <div class="form-group " style="padding-left: 8px">
355
+ <div class="form-group " style="padding-left: 8px" :class="{'color-red':f_beizhu}">
356
356
  <label class="font_normal_body">{{val1}}原因:</label>
357
357
  <textarea class="search_area" v-model="f_beizhu" rows="10" cols="75" placeholder="备注信息"></textarea>
358
358
  </div>
@@ -954,7 +954,9 @@ import axios from 'axios'
954
954
  width: 100%;
955
955
  height: 40px;
956
956
  }
957
-
957
+ .text-danger{
958
+ color:darkred;
959
+ }
958
960
  .PanelTD {
959
961
  width: 5%;
960
962
  }
@@ -0,0 +1,290 @@
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" @keyup.enter="getinfo('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" @keyup.enter="getinfo('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" class="input_search" style="width:60%"
25
+ v-model="model.f_userinfo_code" @keyup.enter="getinfo('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" class="input_search" style="width:60%" 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="f_limit_times" :class="[$v.f_limit_times.required ? 'has-error' : 'has-success']">
43
+ <!-- <label for="f_limit_times" class=" font_normal_body">限购次数</label>-->
44
+ <label class="font_normal_body">限购次数</label>
45
+ <input class="input_search" style="width:60%" type="number"
46
+ v-model="model.f_limit_times" v-validate:f_limit_times='{required: true }'
47
+ placeholder="限购次数">
48
+
49
+ </div>
50
+ <div :class="[model.isshow ? 'col-sm-2 form-group' : 'col-sm-3 form-group']" id="f_limit">
51
+ <!-- <label for="f_limit_times" class=" font_normal_body">限购次数</label>-->
52
+ <label v-if="model.isshow" class="font_normal_body">{{ f_limit }}</label>
53
+ <v-select
54
+ v-model="f_limit"
55
+ :value.sync="f_limit"
56
+ :options='limites'
57
+ width="80%" v-if="!model.isshow">
58
+ </v-select>
59
+ </div>
60
+ <div class="col-sm-3 form-group" id="f_limit_gas" style="right: 3%;">
61
+ <input class="input_search" style="width:60%" type="number" v-if="f_limit=='限购气量'"
62
+ v-model="model.f_limit_value"
63
+ v-scale="[model.f_limit_value, 2]"
64
+ @click="gg()"
65
+ placeholder="限购气量">
66
+ <input class="input_search" style="width:60%" type="number" v-if="f_limit=='限购金额'"
67
+ v-model="model.f_limit_amount"
68
+ v-scale="[model.f_limit_amount, 2]"
69
+ @click="gg()"
70
+ placeholder="限购金额">
71
+
72
+ </div>
73
+ </div>
74
+
75
+ <div class="row">
76
+ <div class="col-sm-12 form-group" id="address">
77
+ <label for="f_address" class=" font_normal_body">地&emsp;&emsp;址</label>
78
+ <input class="input_search" type="text" class="input_search" style="width:87%" v-model="model.f_address"
79
+ readonly
80
+ placeholder="地址">
81
+ </div>
82
+ <div class="col-sm-12 form-group" id="f_comments" :class="[$v.f_comments.required ? 'has-error' : 'has-success']">
83
+ <label for="f_comments" class=" font_normal_body">原&emsp;&emsp;因</label>
84
+ <input class="input_search" type="text" class="input_search" style="width:87%" v-model="model.f_comments"
85
+ placeholder="原因" v-validate:f_comments='{required: true }' >
86
+ </div>
87
+
88
+ </div>
89
+
90
+ <div style="text-align:right;height:auto;margin-top:6px;">
91
+ <button class="button_search" type="button" style="width:80px;" @click="confirm('拉黑')" v-show="!isBlackList && model.isblacklist =='false'" :disabled='!$v.valid'>
92
+ 拉黑
93
+ </button>
94
+ <button class="button_search" type="button" style="width:80px;" @click="confirm('取消拉黑')"
95
+ v-show="isBlackList || model.isblacklist =='true'" :disabled='!$v.valid'>
96
+ 取消拉黑
97
+ </button>
98
+ <button class="button_export" type="button" style="width:80px;" @click="close()">取消</button>
99
+ </div>
100
+ </div>
101
+
102
+ </form>
103
+
104
+
105
+ </validator>
106
+
107
+ </div>
108
+ </template>
109
+ <script>
110
+ import {HttpResetClass} from 'vue-client'
111
+ import Vue from 'vue'
112
+ let initGen = async function (self, val) {
113
+ // 获取低保气价
114
+ let http = new HttpResetClass()
115
+ let res = await http.load('POST', 'rs/sql/sale_getUserAndVersion', {data: {condition:`u.f_userinfo_id='${self.data.f_userinfo_id}'` , f_orgid: self.$login.f.orgid}}, {
116
+ resolveMsg: null,
117
+ rejectMsg: null
118
+ })
119
+ console.log(res.data)
120
+ console.log('用户id:' + res.data[0].f_userinfo_id)
121
+ self.model = Object.assign({}, self.model, val)
122
+ self.model.f_userinfo_code = res.data[0].f_userinfo_code
123
+ self.model.f_meternumber = res.data[0].f_meternumber
124
+ self.model.f_card_id = res.data[0].f_card_id
125
+ self.model.f_userinfo_id = res.data[0].f_userinfo_id
126
+ self.model.f_user_phone = res.data[0].f_user_phone
127
+ self.model.f_address = res.data[0].f_address
128
+ self.model.f_user_phone = res.data[0].f_user_phone
129
+ self.model.version = res.data[0].version
130
+ self.model.f_limit_value = res.data[0].f_limit_value
131
+ self.model.f_limit_times = res.data[0].f_limit_times
132
+ self.model.f_limit_amount = res.data[0].f_limit_amount
133
+ self.model.isshow = true
134
+ if (typeof res.data[0].f_limit_type === 'undefined') {
135
+ self.f_limit = '限购气量'
136
+ } else {
137
+ self.f_limit = (res.data[0].f_limit_type === '金额') ? '限购金额' : '限购气量'
138
+ }
139
+ }
140
+
141
+ export default {
142
+ title: '黑名单',
143
+ props: {
144
+ f_islow_income: {
145
+ type: String,
146
+ default: '1'
147
+ },
148
+ data: {
149
+ type: Object
150
+ }
151
+ },
152
+ data () {
153
+ return {
154
+ pricename: [{value: '', label: ''}],
155
+ model: {
156
+ f_userinfo_code: '',
157
+ f_userinfo_id: '',
158
+ f_user_name: '',
159
+ f_address: '',
160
+ f_user_phone: '',
161
+ f_comments: '',
162
+ version: null,
163
+ // 限购次数
164
+ f_limit_times: '',
165
+ // 限购气量
166
+ f_limit_value: '',
167
+ // 限购金额
168
+ f_limit_amount: '',
169
+ isshow: false
170
+
171
+ },
172
+ // 编辑控制
173
+ isBlackList: false,
174
+ f_filialeid: '', // 所属公司
175
+ f_filialename: '', // 所属公司名称
176
+ f_limit: '限购气量',
177
+ limites: [{label: '限购气量', value: '限购气量'}, {label: '限购金额', value: '限购金额'}]
178
+
179
+ }
180
+ },
181
+ ready () {
182
+ if (this.data) {
183
+ this.isBlackList = true
184
+ initGen(this, this.data)
185
+ } else {
186
+ this.initModel()
187
+ }
188
+ },
189
+ watch: {
190
+ 'data' (val) {
191
+ if (val) {
192
+ this.isBlackList = true
193
+ initGen(this, val)
194
+ } else {
195
+ this.isBlackList = false
196
+ this.initModel()
197
+ }
198
+ }
199
+ },
200
+ methods: {
201
+ gg () {
202
+ if (this.f_limit[0] === '限购气量') {
203
+ this.model.f_limit_amount = ''
204
+ } else {
205
+ this.model.f_limit_value = ''
206
+ }
207
+ },
208
+ getinfo (type) {
209
+ var condition =`${type} = '${this.model[type]}'`
210
+ this.$resetpost('rs/sql/sale_getUserAndVersion', {data: {condition: condition, f_orgid: this.$login.f.orgid}}, {
211
+ resolveMsg: null,
212
+ rejectMsg: null
213
+ }).then((res) => {
214
+ console.log(res.data[0])
215
+ this.model = res.data[0]
216
+ this.$parent.blodid = this.model.f_userinfo_id
217
+ })
218
+ },
219
+ async confirm (type) {
220
+ if (type == '取消拉黑' && !this.$login.r.find(value => value == '取消拉黑')) {
221
+ this.$showMessage('你没有取消拉黑的权限,请联系管理员!')
222
+ return
223
+ }
224
+ let data = {
225
+ f_operat_type: type,
226
+ f_state: '有效',
227
+ f_user_id: this.model.f_user_id,
228
+ f_user_name: this.model.f_user_name,
229
+ f_comments: this.model.f_comments,
230
+ f_operator: this.$login.f.name,
231
+ f_operatorid: this.$login.f.id,
232
+ f_orgid: this.$login.f.orgid,
233
+ f_orgname: this.$login.f.orgs,
234
+ f_depid: this.$login.f.depids,
235
+ f_depname: this.$login.f.deps,
236
+ f_operate_date: this.$login.toStandardTimeString(),
237
+ f_describe: `${this.$login.f.name}对客户${this.model.f_user_name}进行${type}`,
238
+ f_userinfo_id: {
239
+ f_userinfo_id: this.model.f_userinfo_id,
240
+ f_user_state: '正常',
241
+ version: this.model.version
242
+ },
243
+ f_limit_times: this.model.f_limit_times,
244
+ f_limit_amount: this.model.f_limit_amount,
245
+ f_limit_value: this.model.f_limit_value
246
+ }
247
+ console.log('查看参数data', data)
248
+ let res =await this.$resetpost('rs/logic/backlistOperate', data,{resolveMsg: null, rejectMsg: null})
249
+ if (res.data.code == 200) {
250
+ this.$showMessage(`${type}成功`)
251
+ }
252
+ if (res.data.code == 500) {
253
+ this.$showMessage(`${type}失败,用户已被拉黑,请先取消拉黑`)
254
+ return
255
+ }
256
+ this.initModel()
257
+ this.$dispatch('success')
258
+ },
259
+ getorg (id, name) {
260
+ this.f_filialeid = id[0]
261
+ this.f_filialename = name[0]
262
+ },
263
+ initModel () {
264
+ this.model = {
265
+ f_userinfo_code: '',
266
+ f_userinfo_id: '',
267
+ f_user_name: '',
268
+ f_address: '',
269
+ f_user_phone: '',
270
+ f_comments: '',
271
+ version: null,
272
+ isblacklist: 'false',
273
+ isshow: false
274
+ }
275
+ },
276
+ close () {
277
+ this.$dispatch('close')
278
+ }
279
+ }
280
+ }
281
+ </script>
282
+ <style lang="less">
283
+ #gas-price-form {
284
+ .form-group {
285
+ margin-left: 0px;
286
+ margin-right: 0px;
287
+ }
288
+ }
289
+
290
+ </style>
@@ -53,4 +53,6 @@ export default function () {
53
53
  Vue.component('file-user-general-info-new', (resolve) => { require(['./FilesManageNew/UserGeneralInfoTest'], resolve) })
54
54
  // 用户综合信息
55
55
  Vue.component('file-user-general-info', (resolve) => { require(['./FilesManage/UserGeneralInfoTest'], resolve) })
56
+ // 黑名单
57
+ Vue.component('black-list', (resolve) => { require(['./BlackList'], resolve) })
56
58
  }
@@ -74,7 +74,7 @@
74
74
  let http = new HttpResetClass()
75
75
  // this.condition = `1=1 and f_user_id = '${this.searchdata.f_user_id}'`
76
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}}, {
77
+ let record = await http.load('POST', 'rs/sql/sale_RecordQuery?pageNo=1&pageSize=9999999', {data: {condition: this.condition}}, {
78
78
  rejectMsg: '流水查询出错!!',
79
79
  resolveMsg: null
80
80
  })