manage-client 3.2.112 → 3.2.113

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.
@@ -0,0 +1,2 @@
1
+ Manifest-Version: 1.0
2
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.112",
3
+ "version": "3.2.113",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -95,6 +95,9 @@ export default{
95
95
  'f_stair2amount': '二阶气量', 'f_stair2price': '二阶单价', 'f_stair2fee': '二阶气费',
96
96
  'f_stair3amount': '三阶气量', 'f_stair3price': '三阶单价', 'f_stair3fee': '三阶气费', 'f_inputtor': '抄表员','f_residential_area':'小区','f_serial_number':'业务单号'
97
97
  },
98
+ loginQueryConfig:{
99
+ 'f_userinfo_id': '登录人编号','f_user_name': '登录人名称', 'logindate': '登录时间', 'type': '类型'
100
+ },
98
101
  pricetypeGasConfig: {
99
102
  'f_price': '价格类型', 'f_gas': '当日售气量', 'f_money': '当日售气金额'
100
103
  },
@@ -104,6 +107,9 @@ export default{
104
107
  chargeexportConfig: {
105
108
  'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_pregas': '气量', 'f_collection': '收款', 'f_stairamount1': '一阶气量', 'f_stair2amount': '二阶气量', 'f_stair3amount': '三阶气量'
106
109
  },
110
+ loginQueryexportConfig:{
111
+ 'f_userinfo_id': '登录人编号','f_user_name': '登录人名称', 'logindate': '登录时间', 'type': '类型'
112
+ },
107
113
  reverseexportConfig: {
108
114
  'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_address': '客户地址'
109
115
  },
@@ -0,0 +1,244 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex">
5
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ condition="logindate >= '{}'">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ condition="logindate <= '{}'">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">登录人编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.userid"
32
+ condition="userid = '{}' " placeholder="登录人编号">
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body">登录人名称</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.username"
37
+ condition="username like '%{}%'" placeholder="客户名称">
38
+ </div>
39
+ <div class="span" style="float:right;">
40
+ <button class="button_search button_spacing" @click="search()">查询</button>
41
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
42
+
43
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
44
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
45
+ :defaultselect="$parent.$parent.defaultexport"
46
+ sqlurl="rs/logic/exportfile" sql-name="manage_singleTable" template-name='登录信息查询导出'
47
+ :choose-col="true">
48
+ </export-excel>
49
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
50
+ </div>
51
+ </div>
52
+ <div class="row" v-show="$parent.$parent.criteriaShow">
53
+ <div class="col-sm-2 form-group">
54
+ <label class="font_normal_body">类&emsp;&emsp;型</label>
55
+ <v-select :value.sync="model.type"
56
+ :options='$parent.$parent.logintype' placeholder='请选择' v-model="model.type"
57
+ condition="type = '{}'"
58
+ :value-single="true"
59
+ close-on-select>
60
+ </v-select>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </criteria>
65
+
66
+ <data-grid :model="model" partial='list' class="list_area table_sy" style="height: 95%" v-ref:grid>
67
+ <template partial='head'>
68
+ <tr>
69
+ <th>
70
+ <data-order field="userid" name="登录人编号"
71
+ :order.sync="$parent.$parent.$parent.orderFields.userid">
72
+ </data-order>
73
+ </th>
74
+ <th>
75
+ <nobr>登录人名称</nobr>
76
+ </th>
77
+ <th>
78
+ <nobr>登录时间</nobr>
79
+ </th>
80
+ <th>
81
+ <nobr>类型</nobr>
82
+ </th>
83
+ </tr>
84
+ </template>
85
+ <template partial='body'>
86
+ <td style="text-align: center;">
87
+ <nobr>{{row.userid}}</nobr>
88
+ </td>
89
+ <td style="text-align: center;">
90
+ <nobr>{{row.username}}</nobr>
91
+ </td>
92
+ <td style="text-align: center;">
93
+ <nobr>{{row.logindate}}</nobr>
94
+ </td>
95
+ <td style="text-align: center;">
96
+ <nobr>{{row.type}}</nobr>
97
+ </td>
98
+ </template>
99
+ <template partial='foot'>
100
+ </template>
101
+ </data-grid>
102
+ </criteria-paged>
103
+ </div>
104
+ </div>
105
+ </div>
106
+ </template>
107
+
108
+ <script>
109
+ import {HttpResetClass, PagedList} from 'vue-client'
110
+ import exportConfig from '../config/exportConfig'
111
+ export default {
112
+ title: '登录信息查询',
113
+ data() {
114
+ return {
115
+ other:[],
116
+ footer:[],
117
+ config: {
118
+ defaultPrint: ['userid', 'username', 'logindate']
119
+ },
120
+ //排序
121
+ orderitem:'logindate desc',
122
+ orderFields: {
123
+ logindate: ''
124
+ },
125
+ data: {},
126
+ rowdata:{},
127
+ initres: {
128
+ org:[this.$login.f.orgid],
129
+ dep:[],
130
+ user:[]
131
+ },
132
+ model: new PagedList('rs/sql/manage_singleTable', 50, {items: '"*"', tablename: '"t_loginrecord"', orderitem: this.orderitem?'"' + this.orderitem + ' "':`'logindate desc'`}),
133
+ criteriaShow: false,
134
+ orgCondtionStr: '',
135
+ defaultfield: [],
136
+ sumsmodel: {},
137
+ logintype:[
138
+ {label: '登入', value: '登入'},
139
+ {label: '登出', value: '登出'}
140
+ ],
141
+ showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
142
+ }
143
+ },
144
+ ready() {
145
+ this.$refs.paged.$refs.cri.model.type = '登入'
146
+ },
147
+ methods: {
148
+ getotherfooter () {
149
+ this.other = [];
150
+ this.footer = [];
151
+ let exportdata = this.getCondition;
152
+ let otherInData = [];
153
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
154
+ let footerData = [], exportfield = this.getfield;
155
+ footerData.push("合计");
156
+ let self = this;
157
+ for (var field in self.sumsmodel) {
158
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
159
+ }
160
+ this.footer.push(footerData);
161
+ this.other.push(otherInData);
162
+ },
163
+ //把数据库查询数据转换为下拉数据
164
+ search(){
165
+ this.$refs.paged.$refs.cri.search()
166
+ },
167
+ selfSearch(args) {
168
+ let f_orgstr = this.orgCondtionStr
169
+ args.condition = `${args.condition} ` + f_orgstr
170
+ this.model.search(args.condition, args.model)
171
+ },
172
+ clear() {
173
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
174
+ this.$refs.paged.$refs.cri.model[key] = []
175
+ })
176
+
177
+ },
178
+ show() {
179
+ this.criteriaShow = true
180
+ },
181
+ hidden() {
182
+ this.criteriaShow = !this.criteriaShow
183
+ },
184
+ sort (field, rule) {
185
+ // 将所有排序方式设为不排序,实现相互排斥
186
+ for (let key in this.orderFields) {
187
+ if (key === field) {
188
+ this.orderFields[key] = rule
189
+ } else {
190
+ this.orderFields[key] = 'no'
191
+ }
192
+ }
193
+ // 如果新规则不排序,还原为默认排序
194
+ if (rule === 'no') {
195
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
196
+ } else {
197
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
198
+ }
199
+
200
+ this.search()
201
+ }
202
+
203
+ },
204
+ events:{
205
+ },
206
+ watch: {
207
+ 'model.rows'(val) {
208
+ //如果有合计 这里为true, 其他为false ,反正相反
209
+ this.showbottomsum=false;
210
+ if(val.length === 0){
211
+ this.sumsmodel = {}
212
+ this.showbottomsum=false;
213
+ }
214
+ },
215
+ sumsmodel:{
216
+ handler: function(val) {
217
+ this.getotherfooter();
218
+ },
219
+ deep: true
220
+ }
221
+ },
222
+ computed: {
223
+ chooserow(){
224
+ let aaa= true
225
+ if(this.$login.r && this.$login.r.includes('打印项选择')){
226
+ aaa = false
227
+ }
228
+ return aaa
229
+ },
230
+ getCondition() {
231
+ return {
232
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
233
+ orderitem: this.orderitem?`${this.orderitem}`: " logindate desc"
234
+ }
235
+ },
236
+ getfield() {
237
+ return exportConfig.loginQueryConfig
238
+ },
239
+ defaultexport() {
240
+ return exportConfig.loginQueryexportConfig
241
+ }
242
+ }
243
+ }
244
+ </script>
@@ -0,0 +1,36 @@
1
+ <template>
2
+ <tab-button class="foot_tabset" :active="-1">
3
+ <tabs header="登录查询" v-if="permission('登录查询')">
4
+ <login-query v-if="show.includes('登录查询')"></login-query>
5
+ </tabs>
6
+ </tab-button>
7
+
8
+ </template>
9
+
10
+ <script>
11
+ import TabButton from "../common/TabButton";
12
+ import Tabs from "../common/Tabs";
13
+
14
+ export default {
15
+ title: '登录查询',
16
+ data(){
17
+ return{
18
+ show: []
19
+ }
20
+ },
21
+ components: {Tabs, TabButton},
22
+ methods: {
23
+ permission (name) {
24
+ if (this.$login.r.find(value => value == '综合查询')) {
25
+ if (!this.$login.r.find(value => value == name)) {
26
+ return false
27
+ }
28
+ }
29
+ return true
30
+ }
31
+ }
32
+ }
33
+ </script>
34
+
35
+ <style scoped>
36
+ </style>
@@ -524,7 +524,7 @@
524
524
  <script>
525
525
  import {HttpResetClass, PagedList} from 'vue-client'
526
526
  import defaultPrint from '../../components/sale/config/DefaultPrint'
527
- import exportConfig from '../../components/sale/config/exportConfig'
527
+ import exportConfig from './exportConfig'
528
528
 
529
529
  let readySomething = async function (self) {
530
530
  self.$MagGetSaleParam.initinputtor();
@@ -1,35 +1,13 @@
1
1
  export default{
2
2
  arrearsConfig: {
3
- 'f_userinfo_code': '客户编号',
4
- 'f_user_name': '客户姓名',
5
- 'f_address': '地址',
6
- 'f_user_phone': '客户电话',
7
- 'f_rent_phone': '备用电话',
8
- 'f_residential_area': '小区名称',
9
- 'f_olduserinfo_code': '档案编号',
10
- 'f_book_no': '用户证号',
11
- 'f_meter_book_sort': '册内序号',
12
- 'f_inputtor': '抄表员',
13
- 'f_book_name': '抄表册',
14
- 'f_dainputtores': '档案抄表员',
15
- 'f_user_type': '客户类型',
16
- 'f_gasproperties': '用气性质',
17
- 'f_meter_classify': '气表类型',
18
- 'f_cost_type': '缴费类型',
19
- 'c': '欠费期数',
20
- 'f_hand_date': '欠费区间',
21
- 'f_last_tablebase': '上期抄表底数',
22
- 'f_tablebase': '本期抄表底数',
23
- 'f_oughtamount': '用气量',
24
- 'f_oughtfee': '用气金额',
25
- 'f_operate_date': '缴费时间',
26
- 'f_debt_money': '已交金额',
27
- 'f_oughtfee_new': '应交气费',
28
- 'overdue': '滞纳金',
29
- 'f_garbage_fee': '附加费',
30
- 'f_balance': '上期余额',
31
- 'f_oughtfee_all': '合计欠费',
32
- 'f_comments': '备注'
3
+ 'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_address': '地址', 'f_user_phone': '客户电话',
4
+ 'f_rent_phone': '备用电话', 'f_residential_area': '小区名称', 'f_olduserinfo_code': '档案编号', 'f_book_no': '用户证号',
5
+ 'f_meter_book_sort': '册内序号', 'f_inputtor': '抄表员', 'f_book_name': '抄表册', 'f_dainputtores': '档案抄表员',
6
+ 'f_user_type': '客户类型', 'f_gasproperties': '用气性质', 'f_meter_classify': '气表类型',
7
+ 'f_cost_type': '缴费类型', 'c': '欠费期数', 'f_hand_date': '欠费区间', 'f_last_tablebase': '上期抄表底数',
8
+ 'f_tablebase': '本期抄表底数', 'f_oughtamount': '用气量', 'f_oughtfee': '用气金额', 'f_operate_date': '缴费时间',
9
+ 'f_debt_money': '已交金额', 'f_oughtfee_new': '应交气费', 'overdue': '滞纳金', 'f_garbage_fee': '附加费',
10
+ 'f_balance': '上期余额', 'f_oughtfee_all': '合计欠费', 'f_comments': '备注'
33
11
  },
34
12
  chargeConfig: {
35
13
  'id': '收费编号', 'f_userinfo_code': '客户编号', 'f_olduserinfo_code': '档案编号', 'f_user_name': '客户名称', 'f_user_phone': '客户电话', 'f_address': '客户地址', 'f_zones': '片区', 'f_user_type': '客户类型',
@@ -61,9 +39,17 @@ export default{
61
39
  'f_userinfo_code': '客户编号', 'f_olduserinfo_code': '档案编号', 'f_user_name': '客户名称', 'f_address': '客户地址', 'f_user_phone': '客户电话', 'f_meter_classify': '气表类型',
62
40
  'f_meter_brand': '气表品牌', 'f_bill_number': '收据票号', 'f_brand_spec': '收费类型', 'f_typename': '品名规格',
63
41
  'f_typenumber': '型号', 'f_unitprice': '单价', 'f_number': '数量',
64
- 'f_money': '收款', 'f_newbalance': '支出', 'f_newcurbalance': '收入','f_payment': '付款方式', 'f_state': '状态',
42
+ 'f_money': '收款', 'f_newbalance': '支出', 'f_newcurbalance': '收入', 'f_payment': '付款方式', 'f_state': '状态',
65
43
  'f_operate_date': '收费日期', 'f_service_person': '服务人员', 'f_comments': '备注',
66
44
  'f_operator': '操作员', 'f_depname': '部门', 'f_orgname': '公司'
45
+ },
46
+ userConfig: { 'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_olduserinfo_code': '档案编号', 'f_user_phone': '客户电话',
47
+ 'f_idnumber': '身份证号', 'f_balance': '账户余额', 'f_user_level': '客户等级', 'f_user_type': '用户类型',
48
+ 'f_address': '客户地址', 'f_residential_area': '小区',
49
+ 'f_building': '楼栋', 'f_unit': '单元', 'f_floor': '楼层', 'f_room': '门牌号',
50
+ 'f_user_state': '客户状态', 'f_createfile_date': '建档日期', 'f_createfile_person': '建档人', 'f_comments': '备注',
51
+ 'f_cost_type': '缴费类型', 'f_bank_accopen': '银行户名', 'f_bank_name': '银行名称', 'f_bank_account': '银行账号',
52
+ 'f_bank_idnumber': '银行身份证号', 'f_bank_pay_number': '缴费编号'
67
53
  }
68
54
  }
69
55