manage-client 3.2.51 → 3.2.56

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.
Files changed (34) hide show
  1. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  2. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  3. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  4. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  5. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  6. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  7. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  8. package/.gradle/7.1/gc.properties +0 -0
  9. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  10. package/build/dev-server.js +6 -5
  11. package/package.json +1 -1
  12. package/src/components/SellReport/PriceReportWH.vue +180 -0
  13. package/src/components/sale/businessquery/BusinessManage.vue +171 -171
  14. package/src/components/sale/businessquery/ChangeMeterQuery.vue +645 -645
  15. package/src/components/sale/businessquery/ChargeQuery.vue +13 -12
  16. package/src/components/sale/businessquery/FillCardQuery.vue +497 -497
  17. package/src/components/sale/businessquery/gasPriceQuery.vue +36 -68
  18. package/src/components/sale/config/exportConfig.js +1 -1
  19. package/src/components/webmeter/instruction/NewQueryInstruct.vue +4 -7
  20. package/src/filiale/liaoyuan/RecordInfoQuery.vue +4 -2
  21. package/src/filiale/rongchuang/ChargeQuery.vue +15 -54
  22. package/src/filiale/rongchuang/PrintData.vue +239 -0
  23. package/src/filiale/rongchuang/PrintTable.vue +241 -0
  24. package/src/filiale/rongchuang/exportConfig.js +5 -1
  25. package/src/filiale/rongchuang/sale.js +3 -1
  26. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  27. package/src/filiale/shaoguan/config/exportConfig.js +11 -0
  28. package/src/filiale/shaoguan/errorHandplanQuery.vue +33 -14
  29. package/src/filiale/wuhai/BusinessManage.vue +171 -0
  30. package/src/filiale/wuhai/common/TabButton.vue +155 -0
  31. package/src/filiale/wuhai/common/Tabs.vue +67 -0
  32. package/src/filiale/wuhai/sale.js +12 -10
  33. package/src/main.js +66 -66
  34. package/src/reportManage.js +4 -0
@@ -0,0 +1,241 @@
1
+ <template>
2
+ <button class="btn btn-default" @click='PrintAsFile()' :id="'vc-printtable-'+attach">打印表格</button>
3
+ </template>
4
+
5
+ <script>
6
+ import co from 'co'
7
+ import getLodop from 'vue-client/src/LodopFuncs'
8
+
9
+ let printGen = function * (self, pageNo) {
10
+
11
+ console.log('开始打印', self.isSelected, self.model, self.tfoot)
12
+ //是否分页打印
13
+ if(pageNo){
14
+ self.PrintSinglePage()
15
+ return
16
+ }
17
+ if (self.isSelected) {
18
+ // 判断是否选择行数据进行打印
19
+ self.PrintSelectedPage()
20
+ return
21
+ }
22
+
23
+ let lodop = getLodop()
24
+ lodop.PRINT_INIT(self.printName+'打印')
25
+ var style
26
+ if (!self.style) {
27
+ style = '<style>table{font-size:12px;border-width: 2px;border-collapse: collapse;border:solid 2px ; border-color:black;}' +
28
+ 'table th {border-width: 1px;padding:0px;border-style: solid;}table td {border-width: 1px;padding:0px;border-style: solid;}</style>'
29
+ } else {
30
+ style = self.style
31
+ }
32
+ let tHtml = style + '<table class="table table-hover"><thead>' + self.thead + '</thead><tbody>'
33
+
34
+ for (var i = 1; i <= self.model.totalPage; i++) {
35
+ console.log('pageIndex = ' + i)
36
+ yield self.model.loadPage(i)
37
+ for (let row of self.model.rows) {
38
+ tHtml += '<tr>'
39
+ for (let field of self.fields) {
40
+ if (field && (row[field] || row[field] === 0) ) {
41
+ tHtml += '<td style="text-align: left;">' + row[field] + '</td>'
42
+ } else {
43
+ tHtml += '<td></td>'
44
+ }
45
+ // console.log(row[field])
46
+ }
47
+ tHtml += '</tr>'
48
+ }
49
+ }
50
+ // 加入合计数据 (最后一页显示)
51
+ if (self.sumhtml) {
52
+ tHtml += self.sumhtml
53
+ }
54
+ // 如果有表尾,则添加表尾,如果内容翻页的话,表尾每一页都要打印
55
+ if (self.tfoot) {
56
+ self.tfoot += `<tr><td width="100%" colspan=${self.fields.length} style="text-align: center;border-width: 0;">第<font tdata="PageNO" format="#" color="blue">#</font>页</span>/共<font tdata="PageCount" format="#" color="blue">##</font></span>页</td></tr>`
57
+ tHtml += `</tbody><tfoot>${self.tfoot}</tfoot></table>`
58
+ } else {
59
+ tHtml += '</tbody></table>'
60
+ }
61
+
62
+ lodop.ADD_PRINT_TABLE(self.top, self.left, 'RightMargin:' + self.right, 'BottomMargin:' + self.bottom, tHtml)
63
+ lodop.SET_PRINT_STYLEA(0, 'HOrient', 3)
64
+ lodop.SET_PRINT_STYLEA(0, 'VOrient', 3)
65
+ // 指定打印方向 0--可通过打印机选择纵向或横向,1--锁定为纵向打印,2---锁定为横向打印
66
+ LODOP.SET_PRINT_PAGESIZE(self.xyprint, 0, 0, "A4");
67
+
68
+ if(self.printview==null){
69
+ // 打印维护
70
+ lodop.PRINT_SETUP()
71
+ }else if(self.printview){
72
+ // 使用打印预览是为了方便调整打印格式。例如:横向打印
73
+ lodop.PREVIEW()
74
+ }else if(!self.printview){
75
+ // 直接打印
76
+ lodop.PRINT()
77
+ }
78
+
79
+ }
80
+
81
+ export default {
82
+ // props: ['model', 'thead', 'fields', 'top', 'left', 'right', 'bottom', 'tfoot'],
83
+ props: {
84
+ model: Object,
85
+ thead: String,
86
+ tfoot: String,
87
+ sumhtml: String,
88
+ fields: Array,
89
+ //null 打印维护, true 打印预览 false 直接打印
90
+ printview:{},
91
+ // 指定打印方向 0--可通过打印机选择纵向或横向,1--锁定为纵向打印,2---锁定为横向打印
92
+ xyprint:{
93
+ default : 0
94
+ },
95
+ top: {},
96
+ left: {},
97
+ right: {},
98
+ bottom: {},
99
+ attach: {
100
+ type: String,
101
+ default: 'name'
102
+ },
103
+ style: {
104
+ type: String
105
+ },
106
+ isSelected: {
107
+ type:Boolean,
108
+ default:false
109
+ },
110
+ //是否分页打印
111
+ printpage:{
112
+ type:Boolean,
113
+ default:false
114
+ },
115
+ // 打印名称,在同一个名称下的打印可以统一风格(打印维护界面点击应用即可)
116
+ printName: {
117
+ type: String
118
+ }
119
+ },
120
+ data(){
121
+ return{
122
+ //打印任务的JOB代码,用于获得打印状态信息及最终结果。
123
+ P_ID:"",
124
+ //第几次任务
125
+ loop:0,
126
+ }
127
+ },
128
+ methods: {
129
+ PrintAsFile () {
130
+ console.log(this.model)
131
+ let gen = printGen(this,this.printpage)
132
+ co(gen)
133
+ },
134
+ async PrintSinglePage(){
135
+ let lodop = getLodop()
136
+ lodop.PRINT_INIT('打印表格'+(this.loop+1))
137
+ var style
138
+ if (!this.style) {
139
+ style = '<style>table{font-size:12px;border-width: 2px;border-collapse: collapse;border:solid 2px ; border-color:black;}' +
140
+ 'table th {border-width: 1px;padding:0px;border-style: solid;}table td {border-width: 1px;padding:0px;border-style: solid;}</style>'
141
+ } else {
142
+ style = this.style
143
+ }
144
+ let tHtml = style + '<table class="table table-hover"><thead>' + this.thead + '</thead><tbody>'
145
+
146
+ //所有数据全部打印,打印任务结束
147
+ if(this.loop+1>this.model.totalPage){
148
+ this.printinit()
149
+ console.log('打印结束')
150
+ return
151
+ }
152
+ console.log('获取数据pageIndex = ' + (this.loop+1))
153
+ await this.model.loadPage(this.loop+1)
154
+ for (let row of this.model.rows) {
155
+ tHtml += '<tr>'
156
+ for (let field of this.fields) {
157
+ if (field && (row[field] || row[field] === 0) ) {
158
+ tHtml += '<td style="text-align: left;">' + row[field] + '</td>'
159
+ } else {
160
+ tHtml += '<td></td>'
161
+ }
162
+ }
163
+ tHtml += '</tr>'
164
+ }
165
+ //插入页码
166
+ let page = `<tr><th width="100%" colspan=${this.fields.length} style="border-width: 0;">当前是第<font format="ChineseNum" color="blue">${this.loop+1}</font>页/共<font format="ChineseNum" color="blue">${this.model.totalPage}</font>页`
167
+ // 如果有表尾,则添加表尾,如果内容翻页的话,表尾每一页都要打印
168
+ if (this.tfoot) {
169
+ tHtml += `</tbody><tfoot>${this.tfoot}${page}</tfoot></table>`
170
+ } else {
171
+ tHtml += '</tbody></table>'
172
+ }
173
+
174
+ lodop.ADD_PRINT_TABLE(this.left, this.top, 'RightMargin:' + this.right, 'BottomMargin:' + this.bottom, tHtml)
175
+ lodop.SET_PRINT_STYLEA(0, 'HOrient', 3)
176
+ lodop.SET_PRINT_STYLEA(0, 'VOrient', 3)
177
+ //设置打印机为默认打印机
178
+ lodop.SET_PRINTER_INDEX(-1)
179
+
180
+ this.P_ID=lodop.PRINT()
181
+ if(this.P_ID){
182
+ this.loop+=1
183
+ console.log("正打印第"+this.loop+"个任务(JOB代码"+this.P_ID)
184
+ }
185
+ //延迟循环缓解压力
186
+ await this.timeout(1500)
187
+ this.PrintSinglePage()
188
+ },
189
+
190
+ async PrintSelectedPage () {
191
+ console.log('选择列打印开始', this.model)
192
+
193
+ if (this.model.rows.length > 100) {
194
+ this.$showAlert('您选择的数据过大,请选择少于100条数据进行打印', 'warning', 3000)
195
+ return
196
+ }
197
+
198
+ let lodop = getLodop()
199
+ lodop.PRINT_INIT('打印表格'+(this.loop+1))
200
+ var style
201
+ if (!this.style) {
202
+ style = '<style>table{font-size:12px;border-width: 2px;border-collapse: collapse;border:solid 2px ; border-color:black;}' +
203
+ 'table th {border-width: 1px;padding:0px;border-style: solid;}table td {border-width: 1px;padding:0px;border-style: solid;}</style>'
204
+ } else {
205
+ style = this.style
206
+ }
207
+ let tHtml = style + '<table class="table table-hover"><thead>' + this.thead + '</thead><tbody>'
208
+ for (let row of this.model.rows) {
209
+ tHtml += '<tr>'
210
+ for (let field of this.fields) {
211
+ tHtml += '<td style="text-align: left;">' + row[field] + '</td>'
212
+ }
213
+ tHtml += '</tr>'
214
+ }
215
+ // // 如果有表尾,则添加表尾,如果内容翻页的话,表尾每一页都要打印
216
+ if (this.tfoot) {
217
+ tHtml += `</tbody><tfoot>${this.tfoot}</tfoot></table>`
218
+ } else {
219
+ tHtml += '</tbody></table>'
220
+ }
221
+ console.log('选择列打印的html', tHtml)
222
+ lodop.ADD_PRINT_TABLE(this.left, this.top, 'RightMargin:' + this.right, 'BottomMargin:' + this.bottom, tHtml)
223
+ lodop.SET_PRINT_STYLEA(0, 'HOrient', 3)
224
+ lodop.SET_PRINT_STYLEA(0, 'VOrient', 3)
225
+ //设置打印机为默认打印机
226
+ lodop.SET_PRINTER_INDEX(-1)
227
+ console.log('开始调用打印。。')
228
+ this.P_ID=lodop.PRINT()
229
+ },
230
+ printinit(){
231
+ this.P_ID="",
232
+ this.loop=0
233
+ },
234
+ async timeout(ms){
235
+ return new Promise((resolve, reject) => {
236
+ setTimeout(resolve, ms)
237
+ })
238
+ }
239
+ }
240
+ }
241
+ </script>
@@ -64,6 +64,7 @@ export default{
64
64
  'f_depname': '部门','f_orgname': '公司'
65
65
  },
66
66
  chargeConfig: {
67
+ 'f_bs': '笔数',
67
68
  'id': '收费编号', 'f_userinfo_code': '客户编号', 'f_olduserinfo_code': '档案编号', 'f_user_name': '客户名称', 'f_address': '客户地址', 'f_zones': '片区', 'f_user_type': '客户类型',
68
69
  'f_gasproperties': '用气性质', 'f_meternumber': '表号', 'f_meter_brand': '气表品牌', 'f_times': '购气次数',
69
70
  'f_pregas': '气量', 'fee': '金额', 'f_preamount': '燃气费', 'f_collection': '收款', 'f_privilege_money': '优惠金额', 'f_privilege_gas': '优惠气量', 'f_balance': '上期结余',
@@ -80,7 +81,10 @@ export default{
80
81
  'f_operate_date': '收费日期', 'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_user_type': '客户类型', 'f_gasproperties': '用气性质', 'f_meter_brand': '气表品牌', 'f_sell_price': '购气单价', 'f_pregas': '购气量', 'f_preamount': '购气金额', 'f_collection': '充值金额', 'f_surplus_fee': '调价补差', 'f_curbalance': '本期结余', 'f_payment': '付款方式', 'f_price': '单价', 'f_real_gas': '用气量', 'f_real_money': '用气金额', 'f_residual_volume': '余量', 'f_total_usegas_amount': '剩余金额'
81
82
  },
82
83
  chargeexportConfig: {
83
- 'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_pregas': '气量', 'f_collection': '收款', 'f_stairamount1': '一阶气量', 'f_stair2amount': '二阶气量', 'f_stair3amount': '三阶气量'
84
+ 'f_userinfo_code': '客户编号', 'f_olduserinfo_code': '档案编号', 'f_user_name': '客户名称', 'f_address': '客户地址',
85
+ 'f_user_type': '客户类型', 'f_gasproperties': '用气性质', 'f_meternumber': '表号', 'f_meter_brand': '气表品牌',
86
+ 'f_pregas': '气量', 'f_collection': '收款', 'f_privilege_money': '优惠金额', 'f_privilege_gas': '优惠气量',
87
+ 'f_type': '收费类型', 'f_payment': '付款方式', 'f_operator': '操作员','f_operate_date': '收费日期'
84
88
  },
85
89
  reverseexportConfig: {
86
90
  'f_userinfo_code': '客户编号','f_user_name': '客户名称', 'f_address': '客户地址'
@@ -1,7 +1,9 @@
1
1
  // 分公司特殊组件页面注册
2
2
  let specialComp = {
3
3
  // 收费查询
4
- 'charge-query': (resolve) => { require(['./ChargeQuery'], resolve) }
4
+ 'charge-query': (resolve) => { require(['./ChargeQuery'], resolve) },
5
+ 'print-data-rc': (resolve) => { require(['./PrintData'], resolve) },
6
+ 'print-table-rc': (resolve) => { require(['./PrintTable'], resolve) }
5
7
 
6
8
  }
7
9
  exports.specialComp = specialComp