manage-client 3.3.122 → 3.3.123

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,227 @@
1
+ <template>
2
+ <div class="basic-main" style="height: 100%">
3
+ <criteria-paged :model="model" :pager='false' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <p class="bg-info text-center" style="padding: 8px;">日售气量汇总表</p>
6
+ <div class="form-group" v-if="!$parent.$parent.data.f_files_path"></div>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
8
+ <div class="row">
9
+ <div class="col-sm-4" >
10
+ <label class="font_normal_body" for="startDate">开始日期:</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :disabled-days-of-Week="[]"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="reset">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-4" >
20
+ <label class="font_normal_body" for="endDate">结束日期:</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :disabled-days-of-Week="[]"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="reset">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-4">
30
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
31
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
32
+ </div>
33
+
34
+ </div>
35
+ <div class="span" style = "float:right;">
36
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
37
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
38
+ <report-excel id='gasprice'></report-excel>
39
+ </div>
40
+ </div>
41
+ </criteria>
42
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
43
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
44
+ <thead>
45
+ <tr>
46
+ <th colspan='7' style="font-weight: normal; text-align: left;">
47
+ <h3 style="text-align: center">日售气量汇总表</h3>
48
+ </th>
49
+ </tr>
50
+ <tr>
51
+ <th colspan='7' style="font-weight: normal; text-align: center;">
52
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
53
+ 结束时间:{{ model.model.endDate }}
54
+ </th>
55
+ </tr>
56
+ <tr>
57
+ <th colspan='7' style="font-weight: normal; text-align: center;">
58
+ 打印时间:{{{$parent.printTime}}}
59
+ </th>
60
+ </tr>
61
+ <tr>
62
+ <th colspan='7' style="font-weight: normal; text-align: center;">
63
+ <div>
64
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
65
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
66
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
67
+ </div>
68
+ </th>
69
+ </tr>
70
+ </thead>
71
+ <tr>
72
+ <td colspan='7'>
73
+ {{{ model.data.substring(26,model.data.length-8) }}}
74
+ </td>
75
+ </tr>
76
+ <tfoot>
77
+ <tr style="text-align: left">
78
+ <th colspan='3'>收款审核:</th>
79
+ <th colspan='1'>收款员:</th>
80
+ </tr>
81
+ </tfoot>
82
+ </table>
83
+ {{{ $parent.reportStr}}}
84
+ </div>
85
+ </criteria-paged>
86
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
87
+ <header slot="modal-header" class="modal-header">
88
+ <h4 class="modal-title">输入文件名称</h4>
89
+ </header>
90
+ <article slot="modal-body" class="modal-body">
91
+ <div class="form-group">
92
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
93
+ </div>
94
+ </article>
95
+ <footer slot="modal-footer" class="modal-footer">
96
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
97
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
98
+ </footer>
99
+ </modal>
100
+ </div>
101
+ </template>
102
+
103
+ <script>
104
+ import { DataModel } from 'vue-client'
105
+ import co from 'co'
106
+ let saveFile = function * (self) {
107
+ // 线验证文件是否重名
108
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
109
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
110
+ {resolveMsg: null, rejectMsg: null})
111
+ if (count.data.length > 0) {
112
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
113
+ return
114
+ }
115
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
116
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
117
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
118
+ f_outlets: this.$login.f.depname})
119
+ if (saveBack.data.status === 'succeed') {
120
+ self.show = false
121
+ self.filename = ''
122
+ // 后台保存完成,通知刷新
123
+ self.$dispatch('save-success', self.filename)
124
+ }
125
+ }
126
+ export default {
127
+ title: '日售气量汇总表',
128
+ props: ['data'],
129
+ data () {
130
+ return {
131
+ printTime: this.$login.toStandardTimeString(),
132
+ depresid: [],
133
+ userresid: [],
134
+ f_orgid: this.$login.f.orgid,
135
+ f_depid: this.$login.f.depids,
136
+ f_operatorid: this.$login.f.id,
137
+ operatorid: [],
138
+ depid: [],
139
+ orgname: '',
140
+ depname: '',
141
+ operatorname: '',
142
+ f_inputtor:[],
143
+ f_user_type:'',
144
+ orgCondtionStr: '1=1',
145
+ model: new DataModel('rs/report/gasMeterBrand', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
146
+ f_orgid: 'this.model.f_orgid'}),
147
+ reportStr: null,
148
+ show: false
149
+ }
150
+ },
151
+ ready () {
152
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
153
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
154
+ this.$refs.paged.$refs.criteria.search()
155
+ console.log(this.$login.f)
156
+ },
157
+ methods: {
158
+ searchData () {
159
+ this.$refs.paged.$refs.criteria.search()
160
+ },
161
+ selfSearch (args) {
162
+ let orgcondition = `f_orgid in ('${this.f_orgid}')`
163
+
164
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
165
+ this.$refs.paged.search(args)
166
+ },
167
+ getRes (obj) {
168
+ this.orgname = obj.res[0]
169
+ this.depresid = obj.resids
170
+ this.f_orgid = obj.resids
171
+ },
172
+ getdep (obj, val) {
173
+ // this.depname = val[0]
174
+ this.userresid = obj
175
+ this.f_depid = obj
176
+ },
177
+ getuser ( obj, val) {
178
+ this.operatorname = val[0]
179
+ this.f_operatorid = obj
180
+ },
181
+ // 根据文件路径获取储存的报表内容
182
+ getFileContent (path) {
183
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
184
+ this.reportStr = res.data.filecontent
185
+ this.model.state = '正确'
186
+ })
187
+ },
188
+ confirm () {
189
+ if (!this.filename || this.filename === '') {
190
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
191
+ }
192
+ let saveGen = saveFile(this)
193
+ co(saveGen)
194
+ },
195
+ close () {
196
+ this.show = false
197
+ },
198
+ // 将报表保存成文件
199
+ confirmReport () {
200
+ this.show = true
201
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
202
+ },
203
+ },
204
+ watch: {
205
+ 'data' (val) {
206
+ if (val.f_files_path) {
207
+ this.getFileContent(val.f_files_path)
208
+ } else {
209
+ this.reportStr = null
210
+ }
211
+ }
212
+ },
213
+ computed: {
214
+ usertypes() {
215
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
216
+ },
217
+ inputtor() {
218
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
219
+ },
220
+ }
221
+ }
222
+ </script>
223
+ <style scoped>
224
+ .noborder{
225
+ border: none;
226
+ }
227
+ </style>
@@ -18,8 +18,7 @@ export default {
18
18
  'f_user_state': '客户状态',
19
19
  'f_createfile_date': '建档日期',
20
20
  'f_createfile_person': '建档人',
21
- 'f_comments': '备注'
22
- ,
21
+ 'f_comments': '备注',
23
22
  'f_bank_accopen': '银行户名',
24
23
  'f_bank_name': '银行名称',
25
24
  'f_bank_account': '银行账号',
@@ -60,7 +59,7 @@ export default {
60
59
  'f_operator': '操作人',
61
60
  'f_meternumber': '表号'
62
61
  },
63
- //收据查询
62
+ // 收据查询
64
63
  receiptConfig: {
65
64
  'f_userinfo_code': '用户编号', 'f_user_name': '客户名称', 'f_address': '客户地址', 'f_meternumber': '表号',
66
65
  'f_olduserinfo_code': '档案编号', 'f_total_money': '余额', 'f_tax_money': '税金', 'f_bill_number': '发票号码',
@@ -70,7 +69,7 @@ export default {
70
69
  'f_orgname': '公司名称', 'f_depid': '部门编号', 'f_depname': '部门名称', 'f_operatorid': '人员编号', 'sf': '收费员',
71
70
  'f_preamount': '预收款', 'f_pregas': '应收气量', 'f_collection': '实收款'
72
71
  },
73
- //收据查询默认选择
72
+ // 收据查询默认选择
74
73
  receiptexportConfig: {
75
74
  'f_userinfo_code': '用户编号', 'f_user_name': '客户名称', 'f_address': '客户地址', 'f_meternumber': '表号'
76
75
  },
@@ -639,8 +638,7 @@ export default {
639
638
  'f_fillcard_times': '补卡次数',
640
639
  'f_sendsuccess': '表同步状态',
641
640
  'f_isband': '微信绑定',
642
- 'f_cost_type': '缴费类型'
643
- ,
641
+ 'f_cost_type': '缴费类型',
644
642
  'f_bank_accopen': '银行户名',
645
643
  'f_bank_name': '银行名称',
646
644
  'f_bank_account': '银行账号',
@@ -856,8 +854,7 @@ export default {
856
854
  'f_bill_style': '打印格式',
857
855
  'f_serial_id': '流水号',
858
856
  'f_pay_id': '支付单号',
859
- 'detail': '详情'
860
- ,
857
+ 'detail': '详情',
861
858
  'f_charge_date': '缴费日期',
862
859
  'f_operator': '操作人',
863
860
  'f_depname': '部门',
@@ -1011,34 +1008,37 @@ export default {
1011
1008
  'f_version': '版本号', 'f_state': '状态', 'detailvalue': '气价信息'
1012
1009
  },
1013
1010
  fmygasConfig: {
1014
- "f_userinfo_code": "客户编号",
1015
- "f_user_name": "客户名称",
1016
- "f_olduserinfo_code": "档案编号",
1017
- "f_user_phone": "客户电话",
1018
- "f_credentials": "证件类型",
1019
- "f_idnumber": "证件号码",
1020
- "f_residential_area": "小区",
1021
- "f_address": "客户地址",
1022
- "f_user_type": "客户类型",
1023
- "f_gasproperties": "用气性质",
1024
- "f_meternumber": "表号",
1025
- "f_meter_brand": "气表品牌",
1026
- "f_meter_classify": "气表类型",
1027
- "f_price_value": "气价详情",
1028
- "f_balance": "账户余额",
1029
- "f_pregas": "预购气量",
1030
- "f_preamount": "预购金额",
1031
- "f_collection": "实交金额",
1032
- "f_inputtor": "抄表员",
1033
- "f_book_slice_area": "表册片区",
1034
- "f_hand_number": "抄表次数",
1035
- "f_date": "抄表区间",
1036
- "f_input_day": "天数",
1037
- "f_oughtamount": "用气量",
1038
- "f_oughtfee": "用气金额",
1039
- "f_last_tablebase": "期初底数",
1040
- "f_tablebase": "期末底数",
1041
- "f_createfile_date": "建档日期"
1011
+ 'f_userinfo_code': '客户编号',
1012
+ 'f_user_name': '客户名称',
1013
+ 'f_olduserinfo_code': '档案编号',
1014
+ 'f_user_phone': '客户电话',
1015
+ 'f_credentials': '证件类型',
1016
+ 'f_idnumber': '证件号码',
1017
+ 'f_residential_area': '小区',
1018
+ 'f_address': '客户地址',
1019
+ 'f_user_type': '客户类型',
1020
+ 'f_gasproperties': '用气性质',
1021
+ 'f_meternumber': '表号',
1022
+ 'f_meter_brand': '气表品牌',
1023
+ 'f_meter_classify': '气表类型',
1024
+ 'f_price_value': '气价详情',
1025
+ 'f_balance': '账户余额',
1026
+ 'f_pregas': '预购气量',
1027
+ 'f_preamount': '预购金额',
1028
+ 'f_collection': '实交金额',
1029
+ 'f_inputtor': '抄表员',
1030
+ 'f_book_slice_area': '表册片区',
1031
+ 'f_hand_number': '抄表次数',
1032
+ 'f_date': '抄表区间',
1033
+ 'f_input_day': '天数',
1034
+ 'f_oughtamount': '用气量',
1035
+ 'f_stair1amount': '一阶气量',
1036
+ 'f_stair1fee': '一阶气费',
1037
+ 'f_stair2amount': '二阶气量',
1038
+ 'f_stair2fee': '二阶气费',
1039
+ 'f_stair3amount': '三阶气量',
1040
+ 'f_stair3fee': '三阶气费',
1041
+ 'f_createfile_date': '建档日期'
1042
1042
  },
1043
1043
  notgasConfig: {
1044
1044
  'f_userinfo_code': '客户编号',
@@ -1813,8 +1813,7 @@ export default {
1813
1813
  'f_meter_style': '气表型号',
1814
1814
  'f_operator': '人员',
1815
1815
  'f_depname': '部门',
1816
- 'f_operate_date': '操作日期'
1817
- ,
1816
+ 'f_operate_date': '操作日期',
1818
1817
  'f_meternumber': '表号'
1819
1818
  },
1820
1819
  InfoOperateRecordConfig: {
@@ -0,0 +1,9 @@
1
+ // 分公司特殊组件页面注册
2
+ import Vue from 'vue'
3
+
4
+ export default function () {
5
+ // 气表品牌汇总表
6
+ Vue.component('gas-meter-brand', (resolve) => {
7
+ require(['./SellReport/GasMeterBrand'], resolve)
8
+ })
9
+ }
@@ -2,5 +2,6 @@
2
2
  import Vue from 'vue'
3
3
 
4
4
  export default function () {
5
-
5
+ // 用气查询
6
+ Vue.component('fmygas-query', (resolve) => { require(['./FMYGasQuery'], resolve) })
6
7
  }
@@ -745,4 +745,16 @@ export default function () {
745
745
  Vue.component('public-gas-price-report', (resolve) => {
746
746
  require(['./components/SellReport/PublicGasPriceReport'], resolve)
747
747
  })
748
+ // 运城 居民用户各项数据统计表(月报)
749
+ Vue.component('yc-month-summary', (resolve) => {
750
+ require(['./components/SellReport/YCMonthSummary'], resolve)
751
+ })
752
+ // 运城 居民用户各项数据统计表
753
+ Vue.component('yc-gas-summary', (resolve) => {
754
+ require(['./components/SellReport/YCGasSummary'], resolve)
755
+ })
756
+ // 泰州 收费结账报表
757
+ Vue.component('tz-bus-summary', (resolve) => {
758
+ require(['./components/SellReport/taizhou/ManageBusSummary'], resolve)
759
+ })
748
760
  }