sale-client 4.0.49-preview → 4.0.50-preview

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": "4.0.49-preview",
3
+ "version": "4.0.50-preview",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -0,0 +1,275 @@
1
+ <template>
2
+ <div @keyup.enter="search" class="flex-auto" style="flex:1;">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria @condition-changed='$parent.selfSearch' partial='criteria' v-ref:cri>
5
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
6
+ <div class="row">
7
+ <res-select-group :style="$parent.$parent.style" :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getorg" v-ref:sel></res-select-group>
8
+ <div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
9
+ <label class="font_normal_body">用户编号</label>
10
+ <input class="input_search" condition="f_userinfo_code like '%{}%'" placeholder="用户编号" style="width:60%"
11
+ style="width: 90px"
12
+ type="text" v-model="model.ename"
13
+ />
14
+ </div>
15
+ <div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
16
+ v-if="!$parent.$parent.$parent.isdetail">
17
+ <label class="font_normal_body">用户姓名</label>
18
+ <input class="input_search" condition="f_user_name = '{}'" placeholder="用户姓名" style="width:60%" style="width: 90px"
19
+ type="text" v-model="model.name"
20
+ />
21
+ </div>
22
+ <div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
23
+ v-if="!$parent.$parent.downshow && !$parent.$parent.$parent.isdetail">
24
+ <label class="font_normal_body">电&emsp;&emsp;话</label>
25
+ <input :size="model.f_user_phone ? model.f_user_phone.length : 2" class="input_search" condition="f_user_phone = '{}'" placeholder='电话' style="width:60%"
26
+ type="text"
27
+ v-model="model.f_user_phone">
28
+ </div>
29
+ <div class="form-group col-sm-3 button-range" style="padding-right: 10px">
30
+ <import-excel v-if="$parent.$parent.blackImport === '黑名单导入'" template-name="黑名单用户导入模板" logic-name="BlackListImport" import-json="blacklist.json"></import-excel>
31
+ <button @click="$parent.$parent.search()" class="button_search button_spacing" style="width:80px;margin-left:30px;" v-el:cx>查询</button>
32
+ <button @click="$parent.$parent.add()" class="button_export button_spacing" style="width: max-content;"
33
+ v-el:cx>新增异常用户
34
+ </button>
35
+ <export-excel
36
+ :data="$parent.$parent.getCondition"
37
+ :field="$parent.$parent.getfield"
38
+ sqlurl="api/af-revenue/logic/saleExport" progress="saleGetExportProgress" sql-name="sale_getBlackList" template-name='黑名单导出'
39
+ :choose-col="true">
40
+ </export-excel>
41
+ <div
42
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
43
+ @click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
44
+ </div>
45
+ </div>
46
+ <div class="row" v-if="$parent.$parent.criteriaShow">
47
+ <div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
48
+ v-if="$parent.$parent.$parent.isdetail">
49
+ <label class="font_normal_body">用户姓名</label>
50
+ <input class="input_search" condition="f_user_name = '{}'" placeholder="用户姓名" style="width:60%" style="width: 90px"
51
+ type="text" v-model="model.name"
52
+ />
53
+ </div>
54
+
55
+
56
+ <div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
57
+ v-if="!$parent.$parent.downshow&&!$parent.$parent.$parent.isdetail">
58
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
59
+ <input :size="model.f_meternumber ? model.f_meternumber.length * 2 : 4" class="input_search" condition="f_meternumber = '{}'" placeholder='表号' style="width:60%"
60
+ type="text"
61
+ v-model="model.f_meternumber">
62
+ </div>
63
+ <div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
64
+ v-if="!$parent.$parent.downshow&&!$parent.$parent.$parent.isdetail">
65
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
66
+ <input :size="model.f_card_id ? model.f_card_id.length * 2 : 4" class="input_search" condition="f_card_id = '{}'" placeholder='卡号' style="width:60%"
67
+ type="text"
68
+ v-model="model.f_card_id">
69
+ </div>
70
+
71
+
72
+ <div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
73
+ v-if="!$parent.$parent.downshow&&!$parent.$parent.$parent.isdetail">
74
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
75
+ <input :size="model.f_address ? model.f_address.length * 2 : 4" class="input_search" condition="f_address like '%{}%'" placeholder='用户地址' style="width:60%"
76
+ type="text"
77
+ v-model="model.f_address">
78
+ </div>
79
+ <div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
80
+ v-if="!(!$parent.$parent.downshow && !$parent.$parent.$parent.isdetail)">
81
+ <label class="font_normal_body">电&emsp;&emsp;话</label>
82
+ <input :size="model.f_user_phone ? model.f_user_phone.length : 2" class="input_search" condition="f_user_phone = '{}'" placeholder='电话' style="width:60%"
83
+ type="text"
84
+ v-model="model.f_user_phone">
85
+ </div>
86
+ <div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
87
+ v-if="!(!$parent.$parent.downshow&&!$parent.$parent.$parent.isdetail)">
88
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
89
+ <input :size="model.f_address ? model.f_address.length * 2 : 4" class="input_search" condition="f_address like '%{}%'" placeholder='用户地址' style="width:60%"
90
+ type="text"
91
+ v-model="model.f_address">
92
+ </div>
93
+ <div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
94
+ <label class="font_normal_body">安检日期</label>
95
+ <datepicker placeholder="开始日期"
96
+ style="width:60%"
97
+ class="datepicker"
98
+ v-model="model.f_last_check_date"
99
+ :value.sync="model.f_last_check_date"
100
+ :format="'yyyy-MM-dd'"
101
+ condition="f_last_check_date >= '{} 00:00:00'"
102
+ ></datepicker>
103
+ </div>
104
+ <div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
105
+ <label class="font_normal_body">限购日期</label>
106
+ <datepicker placeholder="开始日期"
107
+ style="width:60%"
108
+ class="datepicker"
109
+ v-model="model.f_parameter_value"
110
+ :value.sync="model.f_parameter_value"
111
+ :format="'yyyy-MM-dd'"
112
+ condition="f_parameter_value >= '{} 00:00:00'"
113
+ ></datepicker>
114
+ </div>
115
+ <div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
116
+ <label class="font_normal_body">操&nbsp;作&nbsp;人</label>
117
+ <input :size="model.f_operator ? model.f_operator.length * 2 : 4" class="input_search" condition="f_operator like '%{}%'" placeholder='操作人' style="width:60%"
118
+ type="text"
119
+ v-model="model.f_operator">
120
+ </div>
121
+ </div>
122
+
123
+ </div>
124
+ </criteria>
125
+ <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
126
+ <template partial='head'>
127
+ <tr>
128
+ <th style="text-align: center; ">序号</th>
129
+ <th style="text-align: center;">用户编号</th>
130
+ <th style="text-align: center;">姓名</th>
131
+ <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>表号</th>
132
+ <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>卡号</th>
133
+ <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>电话</th>
134
+ <th style="text-align: center;">地址</th>
135
+ <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>安检日期</th>
136
+ <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>限购日期</th>
137
+ <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>操作人</th>
138
+ <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>限购原因</th>
139
+ </tr>
140
+ </template>
141
+ <template partial='body'>
142
+
143
+ <td style="text-align: center;">{{$index+1}}</td>
144
+ <td style="text-align: center;">{{row.f_userinfo_code}}</td>
145
+ <td style="text-align: center;">{{row.f_user_name}}</td>
146
+ <td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_meternumber}}</td>
147
+ <td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_card_id}}</td>
148
+ <td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_user_phone}}</td>
149
+ <td style="text-align: center;">{{row.f_address}}</td>
150
+ <td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_last_check_date}}</td>
151
+ <td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_parameter_value}}</td>
152
+ <td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_operator}}</td>
153
+ <td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_comments}}</td>
154
+ </template>
155
+ <template partial='foot'></template>
156
+ </data-grid>
157
+ </criteria-paged>
158
+ </div>
159
+ </template>
160
+
161
+ <script>
162
+ import {PagedList} from 'vue-client'
163
+ import Vue from 'vue'
164
+
165
+ export default {
166
+ data () {
167
+ return {
168
+ initres: {
169
+ org: [this.$login.f.orgid],
170
+ dep: [],
171
+ user: []
172
+ },
173
+ criteriaShow: false,
174
+ blackImport: '',
175
+ model: new PagedList('api/af-revenue/sql/sale_getBlackList', 20),
176
+ // 公司下拉
177
+ curorgid: [this.$login.f.orgid],
178
+ f_orgid: '',
179
+ getfield: {
180
+ 'f_userinfo_code': '用户编号',
181
+ 'f_user_name': '姓名',
182
+ 'f_meternumber': '表号',
183
+ 'f_card_id': '卡号',
184
+ 'f_user_phone': '电话',
185
+ 'f_address': '地址',
186
+ 'f_last_check_date': '安检日期',
187
+ 'f_parameter_value': '限购日期',
188
+ 'f_comments': '限购原因'
189
+ }
190
+ }
191
+ },
192
+ props: {
193
+ style: {
194
+ type: String,
195
+ default: 'form-group col-sm-2'
196
+ },
197
+ row: {},
198
+ ispartial: false
199
+ },
200
+ ready () {
201
+ this.getAuthority()
202
+ this.search()
203
+ },
204
+ methods: {
205
+ getAuthority () {
206
+ if (this.$login.r.find(value => value == '黑名单导入')) {
207
+ this.blackImport = '黑名单导入'
208
+ }
209
+ },
210
+ async getRes (condition, obj) {
211
+ console.log('condition =', condition)
212
+ console.log('obj =', obj)
213
+
214
+ // //更新抄表册
215
+ // this.meterbooks = [{label: '全部',value: ''}];
216
+ // if(this.lastorgstr != condition){
217
+ // this.tempfalg = true;
218
+ // this.lastorgstr = condition;
219
+ // }
220
+ // if(this.tempfalg && condition != null && condition!='' && condition.indexOf("(")>-1){
221
+ // this.tempfalg = false;
222
+ // let a = condition.substring(condition.indexOf("(")+2)
223
+ // }
224
+ // this.orgCondtionStr = condition
225
+ },
226
+ hidden () {
227
+ this.criteriaShow = !this.criteriaShow
228
+ },
229
+ search () {
230
+ this.$refs.paged.$refs.cri.search()
231
+ this.$dispatch('search')
232
+ },
233
+ getorg (val) {
234
+ this.f_orgid = val
235
+ },
236
+ selfSearch (args) {
237
+ if (!this.f_orgid) {
238
+ this.getorg('and f_orgid in' + '(\'' + [this.$login.f.orgid] + '\')')
239
+ }
240
+ console.log('查询。。。', this.f_orgid)
241
+ if (this.f_orgid) {
242
+ // args.condition = `${args.condition} and s.f_filialeid in ${this.f_orgid}`
243
+ args.condition = `${args.condition} ${this.f_orgid} `
244
+ }
245
+
246
+ this.model.search(args.condition, args.model)
247
+ },
248
+ add () {
249
+ if (!this.$login.r.find(value => value == '新增黑名单')) {
250
+ this.$showMessage('你没有新增黑名单的权限,请联系管理员!')
251
+ return
252
+ }
253
+ this.style = 'col-sm-3'
254
+ this.$dispatch('add')
255
+ },
256
+ dblclick (val) {
257
+ console.log(val)
258
+ this.$emit('dblclick', val)
259
+ }
260
+
261
+ },
262
+ watch: {
263
+ 'model.rows.length' (val) {
264
+ if (val === 1) {
265
+ this.$refs.paged.$refs.grid.select(this.model.rows[0])
266
+ }
267
+ }
268
+ },
269
+ computed: {
270
+ getCondition () {
271
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.f_orgid}
272
+ }
273
+ }
274
+ }
275
+ </script>
@@ -0,0 +1,64 @@
1
+ <template>
2
+ <!-- <div v-if="listpage">-->
3
+ <tab-button v-ref:list :active="-1">
4
+ <tabs header="低保户管理" v-if="permission('低保户管理')">
5
+ <basic-living-manage @deal-msg="dealMsg" ></basic-living-manage>
6
+ </tabs>
7
+ <tabs header="异常用户管理" v-if="permission('黑名单管理')">
8
+ <black-list-mangae @deal-msg="dealMsg"></black-list-mangae>
9
+ </tabs>
10
+ <tabs header="异常用户查询" v-if="permission('黑名单记录查询')">
11
+ <black-record-query @deal-msg="dealMsg"></black-record-query>
12
+ </tabs>
13
+ </tab-button>
14
+ <!-- </div>-->
15
+ <!-- <div v-if="!listpage">-->
16
+ <!-- <meter-info-manage :row="rowData" :f_start_date="f_start_date" :f_end_date="f_end_date"></meter-info-manage>-->
17
+ <!-- </div>-->
18
+ </template>
19
+
20
+ <script>
21
+ import TabButton from '../../components/revenue/comprehen/SpecialUser/common/TabButton'
22
+ import Tabs from '../../components/revenue/comprehen/SpecialUser/common/Tabs'
23
+
24
+ export default {
25
+ name: 'SpecialUserManage',
26
+ title: '特殊用户管理',
27
+ data () {
28
+ return {// 页面开关
29
+ f_start_date: '',
30
+ f_end_date: '',
31
+ listpage: true,
32
+ width: {
33
+ left: '100%',
34
+ right: '0%'
35
+ },
36
+ // searchNumber:'',
37
+ rowData: {},
38
+ show: [true]
39
+ }
40
+ },
41
+ components: {Tabs, TabButton},
42
+ ready () {
43
+ console.log(this.$refs.list)
44
+ console.log('业务查询')
45
+ },
46
+ methods: {
47
+ permission (name) {
48
+ if (!this.$login.r.find(value => value == name)) {
49
+ return false
50
+ }
51
+ return true
52
+ },
53
+ cancel (obj) {
54
+ this.listpage = true
55
+ },
56
+ dealMsg (obj) {
57
+ }
58
+ }
59
+ }
60
+ </script>
61
+
62
+ <style scoped>
63
+
64
+ </style>
@@ -14,4 +14,8 @@ export default function () {
14
14
  Vue.component('replace-card-manage', (resolve) => { require(['./ReplaceCardManage'], resolve) })
15
15
  // 发卡售气
16
16
  Vue.component('show-card-sell-gas', (resolve) => { require(['./ShowCardSellGas'], resolve) })
17
+ // 特殊用户
18
+ Vue.component('special-user-manage', (resolve) => { require(['./SpecialUserManage'], resolve) })
19
+ // 黑名单
20
+ Vue.component('black-list-list', (resolve) => { require(['./BlackListList'], resolve) })
17
21
  }
package/src/main.js CHANGED
@@ -3,7 +3,7 @@ import all from 'vue-client/src/all'
3
3
  import App from './App'
4
4
  import system from 'system-clients/src/system'
5
5
  import sale from './sale'
6
- import FilialeSale from './filiale/siyang/sale'
6
+ import FilialeSale from './filiale/ronghao/sale'
7
7
  import address from 'address-client/src/address'
8
8
  import ldap from 'ldap-clients/src/ldap'
9
9
  import VueClipboard from 'vue-clipboard2'