manage-client 3.2.10-aode → 3.2.11-aode

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.
@@ -1,246 +1,246 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main">
4
- <div class="flex">
5
-
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <div class="col-sm-2 form-group">
11
- <label for="startDate" class="font_normal_body">开始日期</label>
12
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
- v-model="model.startDate"
14
- :value.sync="model.startDate"
15
- :format="'yyyy-MM-dd'"
16
- :show-reset-button="true"
17
- condition="f_operator_date >= '{} 00:00:00'">
18
- </datepicker>
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label for="endDate" class="font_normal_body">结束日期</label>
22
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
- v-model="model.endDate"
24
- :value.sync="model.endDate"
25
- :format="'yyyy-MM-dd'"
26
- :show-reset-button="true"
27
- condition="f_operator_date <= '{} 23:59:59'">
28
- </datepicker>
29
- </div>
30
- <div class="form-group col-sm-2" >
31
- <label class="font_normal_body">操作类型</label>
32
- <v-select :value.sync="model.f_operator_type" :value-single="true"
33
- class="select_list select"
34
- title="参数:抄表错误类型"
35
- style="width: 60%"
36
- v-model="model.f_operator_type"
37
- :options='$parent.$parent.operatortype' placeholder='错误类型'
38
- condition = "f_operator_type = '{}'"
39
- close-on-select search="true">
40
- </v-select>
41
- </div>
42
- <div class="form-group col-sm-2" >
43
- <label class="font_normal_body">错误原因</label>
44
- <v-select :value.sync="model.f_error_type" :value-single="true"
45
- class="select_list select"
46
- title="参数:错误原因"
47
- style="width: 60%"
48
- v-model="model.f_error_type"
49
- :options='$parent.$parent.errortype' placeholder='错误原因'
50
- condition = "f_error_type = '{}'"
51
- close-on-select search="true">
52
- </v-select>
53
- </div>
54
-
55
- <div class="col-sm-2 form-group" v-if="false">
56
- <label class="font_normal_body">公&ensp;&ensp;司</label>
57
- <res-select :initresid="$parent.$parent.orgid"
58
- style="width:60%"
59
- @res-select="$parent.$parent.getRes"
60
-
61
- restype='organization'>
62
- </res-select>
63
- </div>
64
-
65
- <div class="span" style="float:right;">
66
- <button class="button_search button_spacing" @click="search">查询</button>
67
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
68
- <export-excel :data="$parent.$parent.getCondition"
69
- :field="$parent.$parent.getfield"
70
- sqlurl="rs/logic/exportfile" sql-name="battcherror" template-name='报错查询'
71
- :choose-col="true"></export-excel>
72
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
73
- :defaultfield="$parent.$parent.defaultfield"
74
- titletable="报错查询"
75
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
76
-
77
- </div>
78
- </div>
79
-
80
- </div>
81
- </criteria>
82
-
83
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
84
- <template partial='head'>
85
- <tr>
86
- <th>
87
- <nobr>序号</nobr>
88
- </th>
89
- <th>
90
- <nobr>用户编号</nobr>
91
- </th>
92
- <th>
93
- <nobr>表号</nobr>
94
- </th>
95
- <th>
96
- <nobr>抄表时间</nobr>
97
- </th>
98
- <th>
99
- <nobr>操作类型</nobr>
100
- </th>
101
- <th>
102
- <nobr>错误类型</nobr>
103
- </th>
104
- <th>
105
- <nobr>错误信息</nobr>
106
- </th>
107
- <th>
108
- <nobr>公司</nobr>
109
- </th>
110
- <th>
111
- <nobr>部门</nobr>
112
- </th>
113
- <th>
114
- <nobr>操作人</nobr>
115
- </th>
116
- </tr>
117
- </template>
118
- <template partial='body'>
119
- <td style="text-align:center">
120
- <nobr>{{$index+1}}</nobr>
121
- </td>
122
- <td style="text-align: center;">
123
- <nobr>{{row.f_userinfo_code}}</nobr>
124
- </td>
125
- <td style="text-align: center;">
126
- <nobr>{{row.f_meternumber}}</nobr>
127
- </td>
128
- <td style="text-align: center;">
129
- <nobr>{{row.f_operator_date}}</nobr>
130
- </td>
131
- <td style="text-align: center;">
132
- <nobr>{{row.f_operator_type}}</nobr>
133
- </td>
134
- <td style="text-align: center;">
135
- <nobr>{{row.f_error_type}}</nobr>
136
- </td>
137
- <td style="text-align: center;">
138
- <nobr>{{row.f_operator_info}}</nobr>
139
- </td>
140
- <td style="text-align: center;">
141
- <nobr>{{row.f_orgname}}</nobr>
142
- </td>
143
- <td style="text-align: center;">
144
- <nobr>{{row.f_depname}}</nobr>
145
- </td>
146
- <td style="text-align: center;">
147
- <nobr>{{row.f_operator}}</nobr>
148
- </td>
149
-
150
- </template>
151
- <template partial='foot'></template>
152
- </data-grid>
153
- </criteria-paged>
154
- </div>
155
- </div>
156
- </div>
157
- </template>
158
-
159
- <script>
160
- import {PagedList, HttpResetClass} from 'vue-client'
161
- import defaultPrint from '../config/DefaultPrint'
162
- import exportConfig from "../config/exportConfig";
163
- import plugins from "../../../plugins/GetLoginInfoService";
164
-
165
- let readySomething = async function (self) {
166
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
167
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
168
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
169
- // await self.$refs.paged.$refs.cri.search()
170
- await self.$MagLoadParams.loadParam()
171
- self.initParams()
172
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
173
- }
174
-
175
- export default {
176
- title: '错误查询',
177
- data() {
178
- return {
179
- data: {},
180
- model: new PagedList('rs/sql/battcherror', 20),
181
- criteriaShow: false,
182
- f_filialeid: this.$login.f.orgid,
183
- //默认打印列
184
- defaultfield: [],
185
- config: {
186
- defaultPrint: ['f_userinfo_code', 'f_bankname', 'f_error_type']
187
- },
188
- orgid:[this.$login.f.orgid],
189
- //小区
190
- residentialArea: [],
191
- orgCondtionStr: '(' + this.$login.f.orgid + ')',
192
- operatortype:[{label: '全部', value: ''}, ...this.$appdata.getParam('操作类型')?this.$appdata.getParam('操作类型'):[]],
193
- errortype:[{label: '全部', value: ''}, ...this.$appdata.getParam('错误类型')?this.$appdata.getParam('错误类型'):[]],
194
- //合计数据
195
- }
196
- },
197
- ready() {
198
-
199
- readySomething(this).then(() => {
200
- this.$emit('ready')
201
- }).catch((error) => {
202
- this.$emit('error', error)
203
- })
204
- },
205
- methods: {
206
- selfSearch (args){
207
- // console.log(this.f_filialeid,"++++++++",this.$login.f.orgid)
208
- // if (this.orgCondtionStr){
209
- // args.condition = `${args.condition}` + 'and f_orgid in ' + this.orgCondtionStr
210
- // }else{
211
- // args.condition = `${args.condition}` + 'and f_orgid in ' + '(' + this.$login.f.orgid + ')'
212
- // }
213
- this.model.search(args.condition, args.model)
214
- },
215
- getRes (obj) {
216
- this.orgCondtionStr = plugins.convertToIn(obj)
217
- },
218
- clear() {
219
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
220
- this.$refs.paged.$refs.cri.model[key] = []
221
- })
222
- },
223
- hidden() {
224
- this.criteriaShow = !this.criteriaShow
225
- }
226
- },
227
- computed: {
228
- getCondition () {
229
- var con = this.$refs.paged.$refs.cri.condition
230
- // if (this.orgCondtionStr) {
231
- // con = `${this.$refs.paged.$refs.cri.condition} and f_orgid in (${this.orgCondtionStr})`
232
- // }
233
- // else {
234
- // con = `${this.$refs.paged.$refs.cri.condition}and f_orgid in ('${this.$login.f.orgid}' )`
235
- // }
236
- return {
237
- condition: con
238
- }
239
- },
240
- getfield() {
241
- return exportConfig.Wrongquery
242
- }
243
- }
244
-
245
- }
246
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex">
5
+
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label for="startDate" class="font_normal_body">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd'"
16
+ :show-reset-button="true"
17
+ condition="f_operator_date >= '{} 00:00:00'">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd'"
26
+ :show-reset-button="true"
27
+ condition="f_operator_date <= '{} 23:59:59'">
28
+ </datepicker>
29
+ </div>
30
+ <div class="form-group col-sm-2" >
31
+ <label class="font_normal_body">操作类型</label>
32
+ <v-select :value.sync="model.f_operator_type" :value-single="true"
33
+ class="select_list select"
34
+ title="参数:抄表错误类型"
35
+ style="width: 60%"
36
+ v-model="model.f_operator_type"
37
+ :options='$parent.$parent.operatortype' placeholder='错误类型'
38
+ condition = "f_operator_type = '{}'"
39
+ close-on-select search="true">
40
+ </v-select>
41
+ </div>
42
+ <div class="form-group col-sm-2" >
43
+ <label class="font_normal_body">错误原因</label>
44
+ <v-select :value.sync="model.f_error_type" :value-single="true"
45
+ class="select_list select"
46
+ title="参数:错误原因"
47
+ style="width: 60%"
48
+ v-model="model.f_error_type"
49
+ :options='$parent.$parent.errortype' placeholder='错误原因'
50
+ condition = "f_error_type = '{}'"
51
+ close-on-select search="true">
52
+ </v-select>
53
+ </div>
54
+
55
+ <div class="col-sm-2 form-group" v-if="false">
56
+ <label class="font_normal_body">公&ensp;&ensp;司</label>
57
+ <res-select :initresid="$parent.$parent.orgid"
58
+ style="width:60%"
59
+ @res-select="$parent.$parent.getRes"
60
+
61
+ restype='organization'>
62
+ </res-select>
63
+ </div>
64
+
65
+ <div class="span" style="float:right;">
66
+ <button class="button_search button_spacing" @click="search">查询</button>
67
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
68
+ <export-excel :data="$parent.$parent.getCondition"
69
+ :field="$parent.$parent.getfield"
70
+ sqlurl="rs/logic/exportfile" sql-name="battcherror" template-name='报错查询'
71
+ :choose-col="true"></export-excel>
72
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
73
+ :defaultfield="$parent.$parent.defaultfield"
74
+ titletable="报错查询"
75
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
76
+
77
+ </div>
78
+ </div>
79
+
80
+ </div>
81
+ </criteria>
82
+
83
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
84
+ <template partial='head'>
85
+ <tr>
86
+ <th>
87
+ <nobr>序号</nobr>
88
+ </th>
89
+ <th>
90
+ <nobr>用户编号</nobr>
91
+ </th>
92
+ <th>
93
+ <nobr>表号</nobr>
94
+ </th>
95
+ <th>
96
+ <nobr>抄表时间</nobr>
97
+ </th>
98
+ <th>
99
+ <nobr>操作类型</nobr>
100
+ </th>
101
+ <th>
102
+ <nobr>错误类型</nobr>
103
+ </th>
104
+ <th>
105
+ <nobr>错误信息</nobr>
106
+ </th>
107
+ <th>
108
+ <nobr>公司</nobr>
109
+ </th>
110
+ <th>
111
+ <nobr>部门</nobr>
112
+ </th>
113
+ <th>
114
+ <nobr>操作人</nobr>
115
+ </th>
116
+ </tr>
117
+ </template>
118
+ <template partial='body'>
119
+ <td style="text-align:center">
120
+ <nobr>{{$index+1}}</nobr>
121
+ </td>
122
+ <td style="text-align: center;">
123
+ <nobr>{{row.f_userinfo_code}}</nobr>
124
+ </td>
125
+ <td style="text-align: center;">
126
+ <nobr>{{row.f_meternumber}}</nobr>
127
+ </td>
128
+ <td style="text-align: center;">
129
+ <nobr>{{row.f_operator_date}}</nobr>
130
+ </td>
131
+ <td style="text-align: center;">
132
+ <nobr>{{row.f_operator_type}}</nobr>
133
+ </td>
134
+ <td style="text-align: center;">
135
+ <nobr>{{row.f_error_type}}</nobr>
136
+ </td>
137
+ <td style="text-align: center;">
138
+ <nobr>{{row.f_operator_info}}</nobr>
139
+ </td>
140
+ <td style="text-align: center;">
141
+ <nobr>{{row.f_orgname}}</nobr>
142
+ </td>
143
+ <td style="text-align: center;">
144
+ <nobr>{{row.f_depname}}</nobr>
145
+ </td>
146
+ <td style="text-align: center;">
147
+ <nobr>{{row.f_operator}}</nobr>
148
+ </td>
149
+
150
+ </template>
151
+ <template partial='foot'></template>
152
+ </data-grid>
153
+ </criteria-paged>
154
+ </div>
155
+ </div>
156
+ </div>
157
+ </template>
158
+
159
+ <script>
160
+ import {PagedList, HttpResetClass} from 'vue-client'
161
+ import defaultPrint from '../config/DefaultPrint'
162
+ import exportConfig from "../config/exportConfig";
163
+ import plugins from "../../../plugins/GetLoginInfoService";
164
+
165
+ let readySomething = async function (self) {
166
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
167
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
168
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
169
+ // await self.$refs.paged.$refs.cri.search()
170
+ await self.$MagLoadParams.loadParam()
171
+ self.initParams()
172
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
173
+ }
174
+
175
+ export default {
176
+ title: '错误查询',
177
+ data() {
178
+ return {
179
+ data: {},
180
+ model: new PagedList('rs/sql/battcherror', 20),
181
+ criteriaShow: false,
182
+ f_filialeid: this.$login.f.orgid,
183
+ //默认打印列
184
+ defaultfield: [],
185
+ config: {
186
+ defaultPrint: ['f_userinfo_code', 'f_bankname', 'f_error_type']
187
+ },
188
+ orgid:[this.$login.f.orgid],
189
+ //小区
190
+ residentialArea: [],
191
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
192
+ operatortype:[{label: '全部', value: ''}, ...this.$appdata.getParam('操作类型')?this.$appdata.getParam('操作类型'):[]],
193
+ errortype:[{label: '全部', value: ''}, ...this.$appdata.getParam('错误类型')?this.$appdata.getParam('错误类型'):[]],
194
+ //合计数据
195
+ }
196
+ },
197
+ ready() {
198
+
199
+ readySomething(this).then(() => {
200
+ this.$emit('ready')
201
+ }).catch((error) => {
202
+ this.$emit('error', error)
203
+ })
204
+ },
205
+ methods: {
206
+ selfSearch (args){
207
+ // console.log(this.f_filialeid,"++++++++",this.$login.f.orgid)
208
+ // if (this.orgCondtionStr){
209
+ // args.condition = `${args.condition}` + 'and f_orgid in ' + this.orgCondtionStr
210
+ // }else{
211
+ // args.condition = `${args.condition}` + 'and f_orgid in ' + '(' + this.$login.f.orgid + ')'
212
+ // }
213
+ this.model.search(args.condition, args.model)
214
+ },
215
+ getRes (obj) {
216
+ this.orgCondtionStr = plugins.convertToIn(obj)
217
+ },
218
+ clear() {
219
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
220
+ this.$refs.paged.$refs.cri.model[key] = []
221
+ })
222
+ },
223
+ hidden() {
224
+ this.criteriaShow = !this.criteriaShow
225
+ }
226
+ },
227
+ computed: {
228
+ getCondition () {
229
+ var con = this.$refs.paged.$refs.cri.condition
230
+ // if (this.orgCondtionStr) {
231
+ // con = `${this.$refs.paged.$refs.cri.condition} and f_orgid in (${this.orgCondtionStr})`
232
+ // }
233
+ // else {
234
+ // con = `${this.$refs.paged.$refs.cri.condition}and f_orgid in ('${this.$login.f.orgid}' )`
235
+ // }
236
+ return {
237
+ condition: con
238
+ }
239
+ },
240
+ getfield() {
241
+ return exportConfig.Wrongquery
242
+ }
243
+ }
244
+
245
+ }
246
+ </script>
@@ -34,7 +34,7 @@ export default{
34
34
  meterConfig: {
35
35
  'f_userinfo_code': '客户编号','f_user_name':'客户名称','f_user_phone': '客户电话','f_idnumber': '身份证号','f_address': '客户地址','f_balance_amount': '表上余额',
36
36
  'f_user_type': '客户类型','f_gasproperties': '用气性质','f_meternumber': '表号',"f_card_id":'卡号','f_price_name': '气价名称',
37
- 'value': '气价详情','f_meter_brand': '气表品牌', 'f_meter_style': '气表型号',
37
+ 'value': '气价详情','f_meter_classify': '气表类型','f_meter_brand': '气表品牌', 'f_meter_style': '气表型号',
38
38
  'f_gas_person': '通气人','f_gas_date': '通气时间','f_input_date': '建表时间', 'f_table_state': '气表状态'
39
39
  },
40
40
 
@@ -199,7 +199,7 @@ export default{
199
199
  NewAccountConfig:{
200
200
  "f_userinfo_code":"用户编号","f_user_name":"用户姓名","f_user_state":"用户状态","f_table_state":"表具状态","f_user_phone":"用户电话","f_gasproperties":"用气性质","f_idnumber":"身份证号",'f_address': '客户地址',"f_price_name":"气价名称",
201
201
  "f_open_date":"开户时间","f_meternumber":"表号", "f_gas_person":"置换员","f_gas_date":"通气时间",
202
- "f_total_gas":"累购气量","f_meter_brand":"气表品牌","isbgl":"是否有壁挂炉","ishot":"是否有热水器","f_user_back":"是否黑名单","f_substite":"是否置换","f_check_time":"最后一次安检时间",
202
+ "f_total_gas":"累购气量",'f_meter_classify': '气表类型',"f_meter_brand":"气表品牌","isbgl":"是否有壁挂炉","ishot":"是否有热水器","f_user_back":"是否黑名单","f_substite":"是否置换","f_check_time":"最后一次安检时间",
203
203
  "f_canceloperator":"销户人","f_canceltime":"销户时间","f_cancelreason":"销户原因","f_orgname":"所属公司",
204
204
  },
205
205
 
@@ -104,14 +104,14 @@
104
104
  condition="f_meter_brand = '{}'"
105
105
  close-on-select></v-select>
106
106
  </div>
107
- <div class="col-sm-2">
108
- <label class="font_normal_body">气表品牌</label>
109
- <v-select :value.sync="model.f_meter_brand"
110
- v-model="model.f_meter_brand"
111
- :options='$parent.$parent.meterbrands' placeholder='请选择'
112
- condition="f_meter_brand = '{}'"
113
- close-on-select></v-select>
114
- </div>
107
+ <!--<div class="col-sm-2">-->
108
+ <!--<label class="font_normal_body">气表品牌</label>-->
109
+ <!--<v-select :value.sync="model.f_meter_brand"-->
110
+ <!--v-model="model.f_meter_brand"-->
111
+ <!--:options='$parent.$parent.meterbrands' placeholder='请选择'-->
112
+ <!--condition="f_meter_brand = '{}'"-->
113
+ <!--close-on-select></v-select>-->
114
+ <!--</div>-->
115
115
  <div class="col-sm-2">
116
116
  <label class="font_normal_body">气表型号</label>
117
117
  <input type="text" style="width:60%" class="input_search" v-model="model.f_meter_style"
@@ -124,7 +124,7 @@
124
124
  :value.sync="model.startDate"
125
125
  :format="'yyyy-MM-dd'"
126
126
  :show-reset-button="true"
127
- condition="f_input_date >= '{} 00:00:00'">
127
+ condition="f_open_date >= '{} 00:00:00'">
128
128
  </datepicker>
129
129
  </div>
130
130
  <div class="col-sm-2">
@@ -134,7 +134,7 @@
134
134
  :value.sync="model.endDate"
135
135
  :format="'yyyy-MM-dd'"
136
136
  :show-reset-button="true"
137
- condition="f_input_date <= '{} 23:59:59'">
137
+ condition="f_open_date <= '{} 23:59:59'">
138
138
  </datepicker>
139
139
  </div>
140
140
  <div class="col-sm-2">