manage-client 3.1.10 → 3.1.11-ls

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 (149) hide show
  1. package/.gradle/6.1.1/fileHashes/fileHashes.bin +0 -0
  2. package/build/dev-server.js +6 -19
  3. package/package.json +3 -3
  4. package/src/components/SellReport/ManageBusSummary.vue +150 -187
  5. package/src/components/SellReport/ManageDayGas.vue +120 -120
  6. package/src/components/SellReport/ManageMonthGas.vue +124 -124
  7. package/src/components/SellReport/ManageOtherCharge.vue +121 -121
  8. package/src/components/SellReport/ManageSellType.vue +133 -133
  9. package/src/components/SellReport/ReportItems.vue +1 -2
  10. package/src/components/SellReport/jingwei/ManageHandSellMoney.vue +120 -120
  11. package/src/components/handReport/GeneraHandReport.vue +235 -0
  12. package/src/components/sale/businessquery/AccountQuery/GasReimbursementRate.vue +1 -1
  13. package/src/components/sale/businessquery/BusinesQuery.vue +3 -3
  14. package/src/components/sale/businessquery/BusinessManage.vue +152 -155
  15. package/src/components/sale/businessquery/CancellationQuery.vue +1 -1
  16. package/src/components/sale/businessquery/CardHandplanQuery.vue +1 -1
  17. package/src/components/sale/businessquery/ChangeMeterQuery.vue +1 -12
  18. package/src/components/sale/businessquery/ChangeUserQuery.vue +1 -7
  19. package/src/components/sale/businessquery/DisableQuery.vue +1 -1
  20. package/src/components/sale/businessquery/EnableQuery.vue +1 -1
  21. package/src/components/sale/businessquery/FillCardQuery.vue +1 -1
  22. package/src/components/sale/businessquery/FillGasQuery.vue +1 -1
  23. package/src/components/sale/businessquery/GasInspection.vue +1 -1
  24. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +19 -10
  25. package/src/components/sale/businessquery/HandplanQuery.vue +1 -1
  26. package/src/components/sale/businessquery/InspectListGas.vue +1 -1
  27. package/src/components/sale/businessquery/InspectListUser.vue +1 -1
  28. package/src/components/sale/businessquery/MoveMeterQuery.vue +1 -1
  29. package/src/components/sale/businessquery/OtherChargeQuery.vue +1 -1
  30. package/src/components/sale/businessquery/ReverseQuery.vue +1 -1
  31. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  32. package/src/components/sale/businessquery/SellingHand.vue +1 -1
  33. package/src/components/sale/businessquery/SendbookQuery.vue +1 -1
  34. package/src/components/sale/businessquery/SuspiciousUserQuery.vue +1 -1
  35. package/src/components/sale/businessquery/TransferQuery.vue +1 -1
  36. package/src/components/sale/businessquery/UserInsured.vue +1 -1
  37. package/src/components/sale/businessquery/overDueQuery.vue +1 -1
  38. package/src/components/sale/businessquery/priceadjustQuery.vue +1 -1
  39. package/src/components/sale/config/exportConfig.js +6 -12
  40. package/src/components/sale/filesquery/ArchivesManage.vue +0 -3
  41. package/src/components/sale/filesquery/DeviceQuery.vue +1 -1
  42. package/src/components/sale/filesquery/MeterQuery.vue +1 -1
  43. package/src/components/sale/filesquery/RecordInfoQuery.vue +9 -83
  44. package/src/components/sale/filesquery/UserDeviceQuery.vue +1 -1
  45. package/src/components/sale/filesquery/UserQuery.vue +0 -46
  46. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +28 -19
  48. package/src/components/webmeter/DrillData/LostContactEcharts.vue +14 -32
  49. package/src/components/webmeter/DrillData/UserGasAll.vue +600 -596
  50. package/src/components/webmeter/DrillData/UserGasEcharts.vue +4 -4
  51. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +27 -13
  52. package/src/components/webmeter/instruction/NewQueryInstructMain.vue +1 -1
  53. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +1 -1
  54. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +566 -753
  55. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +2 -6
  56. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +3 -10
  57. package/src/components/webmeter/newwebmeter/UserGasList.vue +10 -12
  58. package/src/components/webmeter/newwebmeter/UserInstructList.vue +1 -1
  59. package/src/components/webmeter/report/ReportList.vue +1 -1
  60. package/src/filiale/WEINAN/MeterQuery.vue +1 -1
  61. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  62. package/src/filiale/WEINAN/RecordInfoQuery.vue +1 -1
  63. package/src/filiale/WEINAN/manage/ChangeMeterQuery.vue +1 -1
  64. package/src/filiale/gongyi/sale/businessquery/BusinessManage.vue +19 -19
  65. package/src/filiale/gongyi/sale/businessquery/ChangeMeterQuery.vue +0 -11
  66. package/src/filiale/gongyi/sale/filesquery/UserQuery.vue +0 -17
  67. package/src/filiale/jingwei/RecordInfoQuery.vue +1 -1
  68. package/src/filiale/jingzhou/ChargeQuery.vue +5 -15
  69. package/src/filiale/jingzhou/HandplanQuery.vue +1 -1
  70. package/src/filiale/jingzhou/config/exportConfig.js +13 -17
  71. package/src/filiale/liaoyuan/RecordInfoQuery.vue +14 -55
  72. package/src/filiale/liaoyuan/ReportList.vue +1 -1
  73. package/src/filiale/macheng/MeterQuery.vue +1 -1
  74. package/src/filiale/meihekou/CardHandplanQuery.vue +1 -1
  75. package/src/filiale/meihekou/ChargeQuery.vue +4 -4
  76. package/src/filiale/meihekou/HandplanQuery.vue +1 -1
  77. package/src/filiale/meihekou/RecordInfoQuery.vue +21 -3
  78. package/src/filiale/meihekou/sale.js +1 -5
  79. package/src/filiale/pingxiang/ChangeUserQuery.vue +1 -1
  80. package/src/filiale/pingxiang/sale.js +9 -9
  81. package/src/filiale/qingtongxia/sale.js +13 -13
  82. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  83. package/src/filiale/shaoguan/BusinessManage.vue +162 -162
  84. package/src/filiale/shaoguan/HandplanQuery.vue +1 -1
  85. package/src/filiale/shaoguan/OtherChargeQuery.vue +590 -590
  86. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  87. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  88. package/src/filiale/shaoguan/overDueQuery.vue +1 -1
  89. package/src/filiale/shaoguan/sale/businessquery/ChangeUserQuery.vue +1 -1
  90. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  91. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  92. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  93. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  94. package/src/filiale/shaoguan/sale.js +33 -33
  95. package/src/main.js +5 -5
  96. package/src/newmanage.js +0 -34
  97. package/src/reportManage.js +4 -0
  98. package/src/saleManage.js +483 -492
  99. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  100. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  101. package/.gradle/5.4.1/gc.properties +0 -0
  102. package/src/.idea/misc.xml +0 -9
  103. package/src/.idea/modules.xml +0 -8
  104. package/src/.idea/src.iml +0 -9
  105. package/src/.idea/vcs.xml +0 -6
  106. package/src/.idea/workspace.xml +0 -93
  107. package/src/components/daping/BarChart.vue +0 -256
  108. package/src/components/daping/BarChartLine.vue +0 -284
  109. package/src/components/daping/CallCenter.vue +0 -369
  110. package/src/components/daping/DataManagement.vue +0 -697
  111. package/src/components/daping/DataManagement1.vue +0 -345
  112. package/src/components/daping/DataStatistics.vue +0 -241
  113. package/src/components/daping/ExpireMeter.vue +0 -272
  114. package/src/components/daping/GMap.vue +0 -636
  115. package/src/components/daping/ManageMain.vue +0 -255
  116. package/src/components/daping/Pie.vue +0 -171
  117. package/src/components/daping/ResidentsSecurity.vue +0 -132
  118. package/src/components/daping/Ring.vue +0 -227
  119. package/src/components/daping/SafeCheckRing.vue +0 -160
  120. package/src/components/daping/SafecheckBarChart.vue +0 -294
  121. package/src/components/daping/Scada.vue +0 -198
  122. package/src/components/daping/SellBarEcharts.vue +0 -220
  123. package/src/components/daping/SellEcharts.vue +0 -219
  124. package/src/components/daping/Style/qinhuaStyle.less +0 -223
  125. package/src/components/daping/Style//346/261/211/344/273/252/350/217/261/345/277/203/344/275/223/347/256/200.ttf +0 -0
  126. package/src/components/daping/XianMap.vue +0 -275
  127. package/src/components/daping/js/AMap.js +0 -19
  128. package/src/components/daping/js/BMap.js +0 -13
  129. package/src/components/daping/json/mapStyle.json +0 -1299
  130. package/src/components/daping/json/xian.json +0 -1
  131. package/src/components/daping/qinHuaMap.vue +0 -338
  132. package/src/components/sale/businessquery/PriceChange.vue +0 -411
  133. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +0 -334
  134. package/src/components/sale/filesquery/PriceChangeQuery.vue +0 -357
  135. package/src/filiale/meihekou/OtherChargeDetailQuery.vue +0 -74
  136. package/src/filiale/meihekou/OtherChargeQuery.vue +0 -613
  137. package/src/filiale/meihekou/UserGasEform.vue +0 -267
  138. package/src/filiale/rongchuang/SellingTable.vue +0 -250
  139. package/src/filiale/rongchuang/reportManage.js +0 -11
  140. package/src/filiale/tongchuan/UserQuery.vue +0 -846
  141. package/src/filiale/tongchuan/config/DefaultPrint.js +0 -6
  142. package/src/filiale/tongchuan/config/exportConfig.js +0 -857
  143. package/src/filiale/tongchuan/sale.js +0 -11
  144. package/src/plugins/transformer.js +0 -117
  145. package/static/NewManageHome/green.png +0 -0
  146. package/static/NewManageHome/title.png +0 -0
  147. package/static/NewManageHome//345/233/276/345/261/202527.png +0 -0
  148. package/static/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2353.png +0 -0
  149. package/static/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2354.png +0 -0
@@ -11,24 +11,17 @@ var compiler = webpack(config)
11
11
  // Define HTTP proxies to your custom API backend
12
12
  // https://github.com/chimurai/http-proxy-middleware
13
13
  // var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
14
- //韶关
15
- // var fuwu='http://119.146.1.106:8300/'
14
+ var shaoguan='http://119.146.1.106:8300/'
16
15
  var qtx='http://36.103.222.144:6300/'
17
- var bendi = 'http://127.0.0.1:8083/'
18
- var fuwu_login = 'http://192.168.50.4:8400'
19
- //公司
20
- var fuwu = 'http://192.168.50.4:8400'
21
-
22
- // var fuwu = 'http://172.168.1.11:9001/'
16
+ var bendi = 'http://39.105.154.109:9001/', fuwu_login = 'http://39.105.154.109:9001/'
17
+ var fuwu = 'http://39.105.154.109:9001/'
18
+ var system = 'http://192.168.50.4:8400'
23
19
  //192.168.
24
20
  // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
25
21
  // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
26
22
  var proxyTable = {
27
23
  '/rs/logic/exportfile': {
28
- target: bendi
29
- },
30
- '/rs/entity':{
31
- target:'http://127.0.0.1:8080'
24
+ target: fuwu
32
25
  },
33
26
  '/files': {
34
27
  target: fuwu
@@ -74,7 +67,7 @@ var proxyTable = {
74
67
  target: fuwu
75
68
  },
76
69
  '/rs/report': {
77
- target: bendi
70
+ target: fuwu
78
71
  },
79
72
  '/rs/vue': {
80
73
  target: fuwu
@@ -85,12 +78,6 @@ var proxyTable = {
85
78
  '/rs/logic/SumSettleFileImport': {
86
79
  target: 'http://127.0.0.1:8080'
87
80
  },
88
- '/rs/logic/getBatchOperaPro':{
89
- target: 'http://127.0.0.1:8080'
90
- },
91
- '/rs/logic/machineChargePay':{
92
- target: 'http://127.0.0.1:8080'
93
- },
94
81
  '/rs': {
95
82
  target: bendi
96
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.1.10",
3
+ "version": "3.1.11-ls",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -57,7 +57,7 @@
57
57
  "moment": "2.24.0",
58
58
  "ncp": "^2.0.0",
59
59
  "rimraf": "^2.5.0",
60
- "sale-client": "3.2.18-1",
60
+ "sale-client": "3.2.13-71",
61
61
  "selenium-server": "2.52.0",
62
62
  "sinon": "^2.1.0",
63
63
  "sinon-chai": "^2.8.0",
@@ -66,7 +66,7 @@
66
66
  "system-clients": "3.1.89-18",
67
67
  "url-loader": "^0.5.7",
68
68
  "vue-amap": "0.5.10",
69
- "vue-client": "1.24.21",
69
+ "vue-client": "1.24.87",
70
70
  "vue-hot-reload-api": "^1.2.0",
71
71
  "vue-html-loader": "^1.0.0",
72
72
  "vue-loader": "8.2.1",
@@ -1,12 +1,9 @@
1
1
  <template>
2
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>
3
+ <criteria-paged :model="model" :pager='false' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
7
5
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
8
- <div class="row">
9
- <res-select-group :mul="false" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:res_select></res-select-group>
6
+ <div class="row">
10
7
  <div class="col-sm-2 form-group" >
11
8
  <label class="font_normal_body" for="startDate">开始日期:</label>
12
9
  <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
@@ -27,207 +24,173 @@
27
24
  :show-reset-button="reset">
28
25
  </datepicker>
29
26
  </div>
30
- <div class="col-sm-2 form-group">
31
- <label class="font_normal_body">收费状态</label>
32
- <v-select :value.sync="$parent.$parent.f_state" multiple
33
- v-model="$parent.$parent.f_state"
34
- :options='$parent.$parent.charge_state' placeholder='请选择'
35
- condition="f_state in {}"
36
- close-on-select></v-select>
27
+ <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
37
28
  </div>
38
- </div>
39
29
  <div class="span" style = "float:right;">
40
30
  <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
41
- <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
42
- <report-excel id='gasprice'></report-excel>
31
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
32
+ <report-excel id='gasprice'></report-excel>
33
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
34
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
43
35
  </div>
44
- </div>
45
- </criteria>
46
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
47
- <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
48
- <thead>
49
- <tr>
50
- <th colspan='9' style="font-weight: normal; text-align: left;">
51
- <h3 style="text-align: center">{{$parent.orgname==null||$parent.orgname==''?$parent.orgname}}收费结账报表</h3>
52
- </th>
53
- </tr>
54
- <tr>
55
- <th colspan='9' style="font-weight: normal; text-align: center;">
56
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
57
- 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
58
- <!--打印时间:{{{$parent.printTime}}}-->
59
- 打印时间:{{$parent.printTime}}
60
- <!--收费员:{{// $parent.operatorname}}-->
61
- </th>
62
- </tr>
63
- <tr>
64
- <th colspan='9' style="font-weight: normal; text-align: center;">
65
- <div>
66
- <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
67
- <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
68
- <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
36
+ <div class="row" v-show="$parent.$parent.criteriaShow">
37
+ <div class="col-sm-2 form-group">
38
+ <label class="font_normal_body">用户类型</label>
39
+ <v-select :value.sync="$parent.$parent.f_user_type"
40
+ v-model="$parent.$parent.f_user_type"
41
+ :options='$parent.$parent.user_type' placeholder='请选择'
42
+ condition="f_user_type = '{}'"
43
+ close-on-select></v-select>
69
44
  </div>
70
- </th>
71
- </tr>
72
- </thead>
73
- <tr>
74
- <td colspan='9'>
75
- {{{ model.data.substring(26,model.data.length-8) }}}
76
- </td>
77
- </tr>
78
- <tfoot>
79
- <tr style="text-align: left">
80
- <th colspan='3'>财务审核:</th>
81
- <th colspan='3'>收款审核:</th>
82
- <th colspan='3'>收款员:</th>
83
- </tr>
84
- </tfoot>
85
- </table>
86
- {{{ $parent.reportStr}}}
87
- </div>
88
- </criteria-paged>
89
- <modal :show.sync="show" v-ref:modal small backdrop="false">
90
- <header slot="modal-header" class="modal-header">
91
- <h4 class="modal-title">输入文件名称</h4>
92
- </header>
93
- <article slot="modal-body" class="modal-body">
94
- <div class="form-group">
95
- <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
45
+ </div>
46
+ </div>
47
+ </criteria>
48
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
49
+ <table class='tableprint' style="margin: 0px auto">
50
+ <thead>
51
+ <tr>
52
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
53
+ <h3 style="text-align: center">收费结账报表</h3>
54
+ </th>
55
+ </tr>
56
+ <tr>
57
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
58
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
59
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
60
+ <!--打印时间:{{{$parent.printTime}}}-->
61
+ 打印时间:{{$parent.printTime}}
62
+ <!--收费员:{{// $parent.operatorname}}-->
63
+ </th>
64
+ </tr>
65
+ <tr>
66
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
67
+ <div>
68
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
69
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
70
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname">人员:{{$parent.operatorname}}</span>
71
+ </div>
72
+ </th>
73
+ </tr>
74
+ </thead>
75
+ <tr>
76
+ <td :colspan='$parent.spans' class="noborder">
77
+ {{{ model.data.substring(26,model.data.length-8) }}}
78
+ </td>
79
+ </tr>
80
+ <tfoot>
81
+ <tr style="text-align: left">
82
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
83
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
84
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
85
+ </tr>
86
+ </tfoot>
87
+ </table>
88
+ {{{ $parent.reportStr}}}
96
89
  </div>
97
- </article>
98
- <footer slot="modal-footer" class="modal-footer">
99
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
100
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
101
- </footer>
102
- </modal>
90
+ </criteria-paged>
103
91
  </div>
104
92
  </template>
105
93
 
106
94
  <script>
107
- import { DataModel } from 'vue-client'
108
- import co from 'co'
109
- let saveFile = function * (self) {
110
- // 线验证文件是否重名
111
- let count = yield self.$resetpost('rs/sql/manageSingleTable',
112
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
113
- {resolveMsg: null, rejectMsg: null})
114
- if (count.data.length > 0) {
115
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
116
- return
117
- }
118
- let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
119
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
120
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
121
- f_outlets: this.$login.f.depname})
122
- if (saveBack.data.status === 'succeed') {
123
- self.show = false
124
- self.filename = ''
125
- // 后台保存完成,通知刷新
126
- self.$dispatch('save-success', self.filename)
95
+ import { DataModel } from 'vue-client'
96
+ import co from 'co'
97
+
98
+ export default {
99
+ title: '收费结账报表',
100
+ props: ['data'],
101
+ data () {
102
+ return {
103
+ printTime: this.$login.toStandardTimeString(),
104
+ depresid: [],
105
+ userresid: [],
106
+ f_orgid: this.$login.f.orgid,
107
+ f_depid: this.$login.f.depids,
108
+ // f_operatorid: this.$login.f.id,
109
+ operatorid: [],
110
+ depid: [],
111
+ orgname: '',
112
+ depname: '',
113
+ criteriaShow: false,
114
+ operatorname: '',
115
+ orgCondtionStr: '1=1',
116
+ f_user_type: '',
117
+ f_state:['有效'],
118
+ model: new DataModel('rs/report/getmoneyall', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
119
+ f_orgid: 'this.model.f_orgid'}),
120
+ reportStr: null,
121
+ resshow:['company','department','operator'],
122
+ spans: 0,
123
+ initres: {
124
+ org: [this.$login.f.orgid],
125
+ dep: [],
126
+ user: []
127
+ }
127
128
  }
128
- }
129
- export default {
130
- title: '收费结账报表',
131
- props: ['data'],
132
- data () {
133
- return {
134
- printTime: this.$login.toStandardTimeString(),
135
- depresid: [],
136
- userresid: [],
137
- f_orgid: this.$login.f.orgid,
138
- f_depid: this.$login.f.depids,
139
- f_operatorid: this.$login.f.id,
140
- operatorid: [],
141
- depid: [],
142
- orgname: '',
143
- depname: '',
144
- operatorname: '',
145
- orgCondtionStr: '1=1',
146
- f_state:['有效'],
147
- model: new DataModel('rs/report/getmoneyall', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
148
- f_orgid: 'this.model.f_orgid'}),
149
- reportStr: null,
150
- show: false,
151
- initres: {
152
- org: [this.$login.f.orgid],
153
- dep: [],
154
- user: []
155
- }
129
+ },
130
+ ready () {
131
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
132
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
133
+ console.log(this.$login.f)
134
+ },
135
+ methods: {
136
+ searchData () {
137
+ this.$refs.paged.$refs.criteria.search()
138
+ },
139
+ selfSearch (args) {
140
+ this.printTime = this.$login.toStandardTimeString()
141
+ let orgcondition = '1=1'
142
+ let orgstr = this.orgCondtionStr
143
+ orgcondition = orgcondition + orgstr
144
+ if(this.f_user_type && this.f_user_type[0]) {
145
+ orgcondition += ` and f_user_type = '${ this.f_user_type} '`
156
146
  }
147
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
148
+ this.$refs.paged.search(args)
157
149
  },
158
- ready () {
159
- this.$refs.paged.$refs.criteria.$refs.res_select.sliceareashow = false
160
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
161
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
162
- // this.$refs.paged.$refs.criteria.search()
163
- console.log(this.$login.f)
150
+
151
+ hidden() {
152
+ this.criteriaShow = !this.criteriaShow
164
153
  },
165
- methods: {
166
- searchData () {
167
- this.$refs.paged.$refs.criteria.search()
168
- },
169
- selfSearch (args) {
170
- this.printTime = this.$login.toStandardTimeString()
171
- console.log('xxxxxxxxxxx',this.orgCondtionStr)
172
- let orgstr = this.f_state && this.f_state!='' ? "f_state='"+this.f_state+"' "+ this.orgCondtionStr:this.orgCondtionStr.replace('and', '')
173
- this.$refs.paged.$refs.criteria.model.f_orgid = orgstr
174
- this.$refs.paged.search(args)
175
- },
176
- // 根据文件路径获取储存的报表内容
177
- getFileContent (path) {
178
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
179
- this.reportStr = res.data.filecontent
180
- this.model.state = '正确'
181
- })
182
- },
183
- confirm () {
184
- if (!this.filename || this.filename === '') {
185
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
186
- }
187
- let saveGen = saveFile(this)
188
- co(saveGen)
189
- },
190
- close () {
191
- this.show = false
192
- },
193
- // 将报表保存成文件
194
- confirmReport () {
195
- this.show = true
196
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
197
- },
198
- async getRes (condition, obj) {
199
- this.orgCondtionStr = condition
200
- if(obj.orgnames.length>0){
201
- this.orgname = obj.orgnames[0];
202
- }
203
- if(obj.operatornames.length>0){
204
- let users = await this.$resetpost('rs/sql/manageSingleTable',
205
- {data: {tablename: 't_user', condition: ` id = '${obj.operatornames[0]}'`}},
206
- {resolveMsg: null, rejectMsg: null});
207
- if(users.data){
208
- this.operatorname = users.data[0].name;
209
- }
210
- }
211
- }
154
+ getRes (condition, obj) {
155
+ this.orgCondtionStr = condition
156
+ this.orgname = obj.orgnames[0]
157
+ this.depname = obj.depnames[0]
158
+ this.operatorname = obj.operatornames[0]
212
159
  },
213
- watch: {
214
- 'data' (val) {
215
- if (val.f_files_path) {
216
- this.getFileContent(val.f_files_path)
217
- } else {
218
- this.reportStr = null
160
+ getdep (obj, val) {
161
+ this.depname = val[0]
162
+ this.userresid = obj
163
+ this.f_depid = obj
164
+ },
165
+ getuser ( obj, val) {
166
+ this.operatorname = val[0]
167
+ this.f_operatorid = obj
168
+ }
169
+ },
170
+ watch: {
171
+ 'model.data' (val) {
172
+ let len=0
173
+ let a=val.split('</tr>')
174
+ for(let i=0;i<a.length;i++){
175
+ if(a[i].split('</td>').length-1>len){
176
+ len=a[i].split('</td>').length-1
219
177
  }
220
178
  }
179
+ this.spans = len
180
+ }
181
+ },
182
+ computed: {
183
+ charge_state() {
184
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
221
185
  },
222
- computed: {
223
- charge_state() {
224
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
225
- }
186
+ user_type () {
187
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
226
188
  }
227
189
  }
190
+ }
228
191
  </script>
229
192
  <style scoped>
230
- .noborder{
231
- border: none;
232
- }
193
+ .noborder{
194
+ border: none;
195
+ }
233
196
  </style>