sale-client 3.4.72 → 3.4.76

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 (130) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/.gradle/5.5/executionHistory/executionHistory.bin +0 -0
  4. package/.gradle/5.5/executionHistory/executionHistory.lock +0 -0
  5. package/.gradle/{3.5/file-changes → 5.5/fileChanges}/last-build.bin +0 -0
  6. package/.gradle/5.5/fileContent/fileContent.lock +0 -0
  7. package/.gradle/5.5/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/5.5/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/{buildOutputCleanup/built.bin → 5.5/gc.properties} +0 -0
  10. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  11. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  12. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  13. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  14. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  15. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  16. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  17. package/.gradle/7.1/gc.properties +0 -0
  18. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  19. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  20. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  21. package/.gradle/checksums/checksums.lock +0 -0
  22. package/.gradle/vcs-1/gc.properties +0 -0
  23. package/.project +11 -11
  24. package/README.md +38 -38
  25. package/build/css-loaders.js +34 -34
  26. package/build/dev-client.js +8 -8
  27. package/build/dev-server.js +157 -157
  28. package/build/libs/SaleClient-3.1.1-11.jar +0 -0
  29. package/build/release.sh +28 -28
  30. package/build/tmp/jar/MANIFEST.MF +2 -0
  31. package/build/utils.js +71 -71
  32. package/build/webpack.dev.conf.js +31 -31
  33. package/build/webpack.example.conf.js +49 -49
  34. package/build/webpack.test.conf.js +31 -31
  35. package/config/dev.env.js +6 -6
  36. package/config/index.js +38 -38
  37. package/config/prod.env.js +3 -3
  38. package/config/test.env.js +6 -6
  39. package/examples/ReadCard/index.html +11 -11
  40. package/package.json +1 -1
  41. package/release.bat +5 -5
  42. package/sale-client.iml +8 -8
  43. package/src/assets/binding.svg +1 -1
  44. package/src/assets/unbind.svg +1 -1
  45. package/src/assets//345/205/254/345/221/212.svg +1 -1
  46. package/src/assets//347/207/203/346/260/224/347/274/264/350/264/271.eps +116 -116
  47. package/src/assets//350/201/224/347/263/273/346/210/221/344/273/254.svg +1 -1
  48. package/src/components/FilesManage/MeterinfoTest.vue +891 -891
  49. package/src/components/Hello.vue +39 -39
  50. package/src/components/List.vue +51 -51
  51. package/src/components/SellGasCharge/FakaList.vue +23 -23
  52. package/src/components/UserFiles/admissibility.vue +46 -46
  53. package/src/components/charge/business/DigitalCharge.vue +6 -6
  54. package/src/components/charge/business/NoCardMeterCenter.vue +460 -460
  55. package/src/components/charge/business/OtherChargeNew.vue +9 -10
  56. package/src/components/charge/gasloss/gasLossOperate.vue +15 -10
  57. package/src/components/chargeBatch/ChargeGroupList.vue +281 -0
  58. package/src/components/chargeBatch/ChargeManageGroup.vue +2 -2
  59. package/src/components/common/userinfo_detail/UserInfoDetailManageNew.vue +2 -2
  60. package/src/components/getNowDate.js +25 -25
  61. package/src/components/revenue/Common/PaymentCode.vue +3 -3
  62. package/src/components/revenue/HandManager/MbpeopleList.vue +6 -6
  63. package/src/components/revenue/HandManager/MeterBookUser.vue +33 -2
  64. package/src/components/revenue/HandManager/OverdueSet.vue +45 -45
  65. package/src/components/revenue/HandManager/OverdueSetList.vue +295 -295
  66. package/src/components/revenue/HandManager/OverdueSetUser.vue +93 -93
  67. package/src/components/revenue/bank/BankDocking.vue +62 -62
  68. package/src/components/revenue/base/CardServer/CardInfoModal.vue +52 -52
  69. package/src/components/revenue/base/rightview/carddetail/StopApplyDetail.vue +70 -70
  70. package/src/components/revenue/comprehen/CardManage/CardManage.vue +83 -83
  71. package/src/components/revenue/comprehen/ComprehenOperation/ChangeAccount/TransferManage.vue +8 -2
  72. package/src/components/revenue/comprehen/ComprehenOperation/ChangeMeter/NoMessage.vue +30 -30
  73. package/src/components/revenue/comprehen/ComprehenOperation/ComprehenSearch.vue +13 -13
  74. package/src/components/revenue/comprehen/ComprehenOperation/OffGasAddGas/OffGasAddGas.vue +196 -196
  75. package/src/components/revenue/comprehen/ComprehenOperation/OtherGas/OtherGas.vue +344 -344
  76. package/src/components/revenue/comprehen/ComprehenOperation/OverCharge/OverUseCharge.vue +6 -7
  77. package/src/components/revenue/comprehen/Message/MessageList.vue +499 -480
  78. package/src/components/revenue/comprehen/TotalSplit/TotalSplitManage.vue +45 -45
  79. package/src/components/revenue/comprehen/batch/batchEditFiles.vue +237 -237
  80. package/src/components/revenue/comprehen/batch/batchEditManage.vue +131 -131
  81. package/src/components/revenue/comprehen/batch/batchUserList.vue +327 -327
  82. package/src/components/webMeter/MeterManage/WebMeterBatchOperate.vue +150 -0
  83. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +285 -269
  84. package/src/components/webMeter/meterinfo/NewMeterList.vue +9 -9
  85. package/src/components/webMeter/webInfo/WebMeterInfo.vue +1 -1
  86. package/src/components/webMeter/webInfo/WebMeterList.vue +35 -12
  87. package/src/filiale/macheng/UserBaseInfoNew.vue +346 -0
  88. package/src/filiale/macheng/sale.js +2 -1
  89. package/src/filiale/qianneng/GasPriceList.vue +18 -7
  90. package/src/filiale/qianneng/MbpeopleList.vue +2 -17
  91. package/src/filiale/tongchuan/Message/AllUser.vue +569 -0
  92. package/src/filiale/tongchuan/Message/MessageManage.vue +137 -0
  93. package/src/filiale/tongchuan/bill/CustQueryEticket.vue +2 -2
  94. package/src/filiale/tongchuan/sale.js +102 -97
  95. package/src/filiale/wuhai/MeterinfoTest.vue +1 -2
  96. package/src/filiale/wuhai/OtherChargeNew.vue +590 -0
  97. package/src/filiale/wuhai/TransferManage.vue +403 -0
  98. package/src/filiale/wuhai/UserEssentialInfoTest.vue +320 -0
  99. package/src/filiale/wuhai/sale.js +7 -2
  100. package/src/main.js +23 -23
  101. package/src/plugins/CardListen.js +29 -29
  102. package/src/plugins/CardManageService.js +21 -21
  103. package/src/plugins/LogicService.js +477 -474
  104. package/src/plugins/OffGasAddGasService.js +169 -169
  105. package/src/plugins/SelectService.js +41 -41
  106. package/src/project/ProjectPage.vue +24 -24
  107. package/src/project/State.js +17 -17
  108. package/src/sale.js +1059 -1055
  109. package/test/e2e/custom-assertions/elementCount.js +26 -26
  110. package/test/e2e/nightwatch.conf.js +40 -40
  111. package/test/e2e/runner.js +30 -30
  112. package/test/e2e/specs/test.js +13 -13
  113. package/test/unit/.eslintrc +5 -5
  114. package/test/unit/context.html +20 -20
  115. package/test/unit/index.js +13 -13
  116. package/test/unit/init.js +13 -13
  117. package/test/unit/karma.conf.js +55 -55
  118. package/test/unit/specs/components/UserFiles/AreaList.spec.js +25 -25
  119. package/test/unit/specs/components/UserFiles/UserFiles.spec.js +22 -22
  120. package/test/unit/specs/components/UserFiles/UserGeneralInfo.spec.js +55 -55
  121. package/test/unit/specs/components/revenue/Common/ReissueBill.spec.js +29 -29
  122. package/test/unit/specs/components/revenue/base/CardServer/ReadCard.spec.js +23 -23
  123. package/test/unit/specs/components/revenue/base/UserList.spec.js +21 -21
  124. package/test/unit/specs/components/revenue/base/rightview/CardList.spec.js +29 -29
  125. package/test/unit/specs/components/revenue/todoList/ToDoListManage.spec.js +20 -20
  126. package/test/unit/specs/service/delete.spec.js +8 -8
  127. package/test/unit/specs/service/getSaleInitData.spec.js +16 -16
  128. package/test/unit/specs/service/uploadFile.spec.js +8 -8
  129. package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
  130. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
@@ -11,7 +11,7 @@
11
11
  <div class="col-sm-4" :class="{'has-success':row.f_brand_spec,'select-error':!row.f_brand_spec}">
12
12
  <label for="f_brand_spec" class="font_normal_body " title="参数名称:品名及规格">收费类型</label>
13
13
  <v-select id="f_brand_spec"
14
- placeholder='材料'
14
+ placeholder='请选择'
15
15
  v-model="row.f_brand_spec"
16
16
  :value.sync="row.f_brand_spec"
17
17
  :options='brandspec'
@@ -24,7 +24,7 @@
24
24
  <v-select
25
25
  style="width: 100px"
26
26
  v-model="row.f_typename"
27
- placeholder='品名'
27
+ placeholder='请选择'
28
28
  :value.sync="row.f_typename"
29
29
  :options='gettypename'
30
30
  @change="setTypenumber"
@@ -36,7 +36,7 @@
36
36
  <v-select
37
37
  style="width: 100px"
38
38
  v-model="row.f_typenumber"
39
- placeholder='型号'
39
+ placeholder='请选择'
40
40
  :value.sync="row.f_typenumber"
41
41
  :options='gettypenumber'
42
42
  @change="setTypeprice"
@@ -96,15 +96,14 @@
96
96
 
97
97
 
98
98
  <div class="row" style="margin-top:10px;">
99
- <div class="col-sm-4">
100
- <label for="f_paytype" class="font_normal_body" title="参数名称:付款方式">收款方式</label>
101
- <v-select id="f_payment"
102
- v-model="f_payment"
99
+ <div class="col-sm-4 form-group" :class="[$v.payment.required ? 'select-error' : '']">
100
+ <label class=" font_normal_body" title="参数名称:付款方式">收款方式</label>
101
+ <input type="text" v-show="false" v-model="$refs.payment.selectedItems" v-validate:payment='{required: true }'>
102
+ <v-select v-model="model.f_payment"
103
103
  placeholder='请选择'
104
104
  :value.sync="model.f_payment"
105
- :options='paytype'
106
- close-on-select clear-button>
107
- </v-select>
105
+ close-on-select
106
+ :options='paytype' clear-button v-ref:payment></v-select>
108
107
  </div>
109
108
  <div class="col-sm-4">
110
109
  <label for="f_print" class="font_normal_body">&nbsp;打印格式</label>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="flex-row auto">
3
- <div class="span auto" style="height: 90%">
3
+ <div class="span auto" style="height: 98%;overflow-y: auto;">
4
4
  <validator name='v'>
5
5
  <form novalidate class="form-horizontal">
6
6
  <div class="flex-auto">
@@ -135,7 +135,7 @@
135
135
 
136
136
  </div>
137
137
 
138
- <!-- <payment-code v-ref:paymentcode :payment="model.f_payment" :row="row" :money="model.f_collection"></payment-code>-->
138
+ <payment-code v-ref:paymentcode :payment="model.f_payment" :money="model.f_collection"></payment-code>
139
139
 
140
140
  </div>
141
141
  <!-- <div class="auto">-->
@@ -152,7 +152,7 @@
152
152
  let gasLossGen = async function (self) {
153
153
  try {
154
154
  // 加入扫码盒付款码支付流水号
155
- // self.model.f_serial_id = self.$refs.paymentcode.paymentCodeReturnData.f_out_trade_no
155
+ self.model.f_serial_id = self.$refs.paymentcode.paymentCodeReturnData.f_out_trade_no
156
156
  // let resid = await self.$LogicService.otherCharge(self.model, self.row)
157
157
  self.model.f_bill_style=self.model.f_print
158
158
  let http = new HttpResetClass()
@@ -190,7 +190,11 @@
190
190
  }
191
191
 
192
192
  let asyncGasLoss = async function (self) {
193
- await self.$getConfig(self, 'gasLossCharge')
193
+ try{
194
+ await self.$getConfig(self, 'gasLossCharge')
195
+ } catch(error){
196
+ console.log('无配置文件')
197
+ }
194
198
  self.model.f_print = self.config.printType
195
199
  self.model.f_payment = self.config.payment
196
200
  self.model.f_use_type = self.config.billType
@@ -229,6 +233,7 @@
229
233
  f_depid: Vue.$login.f.depids,
230
234
  f_depname: Vue.$login.f.deps,
231
235
  f_operat_type: '气损收费',
236
+ f_print: '',
232
237
  gaslossdetail:[{}]
233
238
  },
234
239
  print: false,
@@ -248,7 +253,6 @@
248
253
  services: this.$appdata.getParam('服务人员')
249
254
  }
250
255
  },
251
- props: ['row'],
252
256
  ready () {
253
257
  asyncGasLoss(this)
254
258
  },
@@ -280,7 +284,8 @@
280
284
  clean(){
281
285
  this.model={
282
286
  f_collection: 0,
283
- f_payment: '',
287
+ f_payment: this.config.payment,
288
+ f_print: this.config.printType,
284
289
  f_bill_style: '',
285
290
  f_comments: '',
286
291
  f_charge_person: '',
@@ -299,10 +304,10 @@
299
304
  },
300
305
  async confirm () {
301
306
  // // 先调用付款码支付组件流程
302
- // let ss = await this.$refs.paymentcode.flowPath()
303
- // this.$refs.paymentcode.paymentCodeShow = false
304
- // console.log('付款码操作返回', ss)
305
- // if (!ss.result) return
307
+ let ss = await this.$refs.paymentcode.flowPath()
308
+ this.$refs.paymentcode.paymentCodeShow = false
309
+ console.log('付款码操作返回', ss)
310
+ if (!ss.result) return
306
311
 
307
312
  gasLossGen(this)
308
313
  },
@@ -0,0 +1,281 @@
1
+ <template>
2
+ <div id="ChargeGroupList">
3
+ <div class="flex" @keyup.enter="search" :style="{height:(oweShow?'auto':'100%')}">
4
+ <criteria-paged :model="model" v-ref:paged :pager="!oweShow">
5
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div :class="$parent.$parent.style">
9
+ <label class="font_normal_body">组织机构</label>
10
+ <res-select restype='organization'
11
+ @res-select="$parent.$parent.getorg"
12
+ :is-mul="false"
13
+ :initresid='$parent.$parent.curorgid'>
14
+ </res-select>
15
+ </div>
16
+ <div :class="$parent.$parent.style">
17
+ <label class="font_normal_body">客戶编码</label>
18
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_customer"
19
+ condition="f_customer like '%{}%'" placeholder="客戶编码"/>
20
+ </div>
21
+ <div :class="$parent.$parent.style" v-show="!$parent.$parent.listShow">
22
+ <label class="font_normal_body">客戶名称</label>
23
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_user_name"
24
+ condition="f_user_name like '%{}%'" placeholder="客戶名称"/>
25
+ </div>
26
+
27
+ <div class="col-sm-3 form-group button-range">
28
+ <button class="button_search button_spacing" @click="search()">查询</button>
29
+ <button class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add()" v-if="!$parent.$parent.chargeToChoose">建档
30
+ </button>
31
+ <button class="button_clear button_spacing" @click="clear">清空</button>
32
+ <div style="float: right" class="button_spacing"
33
+ :class="{'button_shrink_top': criteriaShow,'button_shrink_bottom': !criteriaShow}"
34
+ @click="criteriaShow = !criteriaShow"></div>
35
+ </div>
36
+ <div class="row" v-show="criteriaShow">
37
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.listShow">
38
+ <label class="font_normal_body">客戶名称</label>
39
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_user_name"
40
+ condition="f_user_name like '%{}%'" placeholder="客戶名称"/>
41
+ </div>
42
+ <div :class="$parent.$parent.style">
43
+ <label class="font_normal_body">客戶地址</label>
44
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_address"
45
+ condition="f_address like '%{}%'" placeholder="客戶地址"/>
46
+ </div>
47
+ <div :class="$parent.$parent.style">
48
+ <label class="font_normal_body">客户电话</label>
49
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_user_phone"
50
+ condition="f_user_phone like '%{}%'" placeholder="客户电话"/>
51
+ </div>
52
+ <div :class="$parent.$parent.style">
53
+ <label class="font_normal_body">是否欠费</label>
54
+ <v-select v-model="model.oughtfee"
55
+ :search="fasle"
56
+ placeholder='是否欠费'
57
+ :value.sync="model.oughtfee"
58
+ :options='$parent.$parent.oughtfee'
59
+ condition="f_oughtfee_all {}"
60
+ close-on-select style="width: 60%"></v-select>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ </criteria>
66
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid v-if="!$parent.oweShow" @dblclick="$parent.showOwe">
67
+ <template partial='head'>
68
+ <tr>
69
+ <th>
70
+ <nobr>序号</nobr>
71
+ </th>
72
+ <th>
73
+ <nobr>客戶编码</nobr>
74
+ </th>
75
+ <th>
76
+ <nobr>客戶名称</nobr>
77
+ </th>
78
+ <th>
79
+ <nobr>账户结余</nobr>
80
+ </th>
81
+ <th>
82
+ <nobr>客戶类型</nobr>
83
+ </th>
84
+ <th>
85
+ <nobr>客戶地址</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>客戶电话</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>团缴户数</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>欠费金额</nobr>
95
+ </th>
96
+ <th>
97
+ <nobr>操作</nobr>
98
+ </th>
99
+ </tr>
100
+ </template>
101
+ <template partial='body'>
102
+ <tr>
103
+ <td style="text-align:center">
104
+ <nobr>{{ $index + 1 }}</nobr>
105
+ </td>
106
+ <td style="text-align:center">
107
+ <nobr>{{ row.f_customer }}</nobr>
108
+ </td>
109
+ <td style="text-align:center">
110
+ <nobr>{{ row.f_user_name }}</nobr>
111
+ </td>
112
+ <td style="text-align:center">
113
+ <nobr>{{ row.f_balance }}</nobr>
114
+ </td>
115
+ <td style="text-align:center">
116
+ <nobr>{{ row.f_user_type }}</nobr>
117
+ </td>
118
+ <td style="text-align:center">
119
+ <nobr>{{ row.f_address }}</nobr>
120
+ </td>
121
+ <td style="text-align:center">
122
+ <nobr>{{ row.f_user_phone }}</nobr>
123
+ </td>
124
+ <td style="text-align:center" v-if="!$parent.$parent.$parent.chargeToChoose">
125
+ <button @click.stop="$parent.$parent.$parent.operate(row)"
126
+ class="btn btn-link"><b>{{ row.sumuserfiles }}</b>
127
+ </button>
128
+ </td>
129
+ <td style="text-align:center" v-else>
130
+ <nobr>{{ row.sumuserfiles }}</nobr>
131
+ </td>
132
+ <td style="text-align:center" v-else>
133
+ <nobr>{{ row.f_oughtfee_all }}</nobr>
134
+ </td>
135
+ <td style="text-align:center">
136
+ <nobr>
137
+ <button type="button" name="button" class="btn btn-link"
138
+ @click.stop="$parent.$parent.$parent.print(row)">打印明细
139
+ </button>
140
+ <button type="button" name="button" class="btn btn-link"
141
+ @click.stop="$parent.$parent.$parent.export(row)">导出明细
142
+ </button>
143
+ </nobr>
144
+ </td>
145
+ </tr>
146
+ </template>
147
+ <template partial='foot'></template>
148
+ </data-grid>
149
+ </criteria-paged>
150
+ <print-data :sum-field="getfield" :model="printModel" :field="getfield" :printview="true"
151
+ :defaultfield="defaultfield" titletable="团体欠费明细报表" v-ref:printdata>
152
+ </print-data>
153
+ </div>
154
+
155
+ <export-excel
156
+ :isshow="false" :data="getCondition" :field="getfield" :choose-col="true" v-ref:excel
157
+ sqlurl="rs/logic/saleExport" sql-name="batchOweQuery" template-name='团体欠费明细导出'>
158
+ </export-excel>
159
+
160
+ <owe-record-query v-if="oweShow" :f_civill_id="f_civill_id"></owe-record-query>
161
+ </div>
162
+ </template>
163
+
164
+ <script>
165
+ import {PagedList} from 'vue-client'
166
+
167
+ export default {
168
+ data () {
169
+ return {
170
+ oughtfee: [{label: '全部', value: ''}, {label: '是', value: '> 0'}, {label: '否', value: '<= 0'}],
171
+ model: new PagedList('rs/sql/ncarchivesQuery', 20),
172
+ // 公司下拉
173
+ curorgid: [this.$login.f.orgid],
174
+ f_orgid: '',
175
+ f_civill_id: null,
176
+ oweShow: false,
177
+ getCondition: null,
178
+ getfield: null,
179
+ config: {
180
+ // 导出列
181
+ excelHeaders: {
182
+ 'f_userinfo_code': '客户编号',
183
+ 'f_user_name': '客户姓名',
184
+ 'f_meter_classify': '气表类型',
185
+ 'c': '欠费期数',
186
+ 'f_hand_date': '欠费区间',
187
+ 'f_last_tablebase': '上期底数',
188
+ 'f_tablebase': '本期底数',
189
+ 'f_oughtamount': '用气量',
190
+ 'f_oughtfee': '用气金额',
191
+ 'f_debt_money': '已交金额',
192
+ 'f_oughtfee_new': '应交气费',
193
+ 'overdue': '滞纳金',
194
+ 'f_oughtfee_all': '合计欠费'
195
+ }
196
+ },
197
+ defaultfield: [],
198
+ printModel: new PagedList('rs/sql/batchOweQuery', 20)
199
+ }
200
+ },
201
+ title: '档案查询',
202
+ props: {
203
+ f_filialeids: {
204
+ type: String
205
+ },
206
+ style: {
207
+ type: String,
208
+ default: 'col-sm-3 form-group'
209
+ },
210
+ // 控制在修改数据时显示少的查询条件,剩余隐藏
211
+ listShow: {
212
+ type: Boolean,
213
+ default: false
214
+ },
215
+ // 收费时的展示控制
216
+ chargeToChoose: {
217
+ type: Boolean,
218
+ default: false
219
+ }
220
+ },
221
+ ready () {
222
+ this.getfield = this.config.excelHeaders
223
+ this.search()
224
+ },
225
+ methods: {
226
+ // 打印
227
+ async print (row) {
228
+ let condition = `p.f_civill_id = ${row.id}`
229
+ await this.printModel.search(condition)
230
+ this.$refs.printdata.printData()
231
+ },
232
+ // 导出
233
+ export (row) {
234
+ this.getCondition = {condition: `p.f_civill_id = ${row.id}`}
235
+ this.$refs.excel.exportExcel()
236
+ },
237
+ showOwe (row) {
238
+ if (this.chargeToChoose) {
239
+ this.f_civill_id = row.id
240
+ this.oweShow = true
241
+ }
242
+ },
243
+ search () {
244
+ this.$refs.paged.$refs.cri.search()
245
+ },
246
+ add () {
247
+ if (this.f_filialeids) {
248
+ this.$refs.paged.$refs.grid.selectStore.selected = null
249
+ this.$dispatch('add')
250
+ } else {
251
+ this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
252
+ }
253
+ },
254
+ operate (val) {
255
+ this.$dispatch('operate', val)
256
+ },
257
+ selfSearch (args) {
258
+ if (!this.f_orgid) {
259
+ this.getorg([this.$login.f.orgid])
260
+ }
261
+ args.condition = `${args.condition} and f_orgid in ${this.f_orgid}`
262
+ this.oweShow = false
263
+ this.model.search(args.condition, args.model)
264
+ this.$refs.paged.$refs.grid.selectInit()
265
+ this.$dispatch('newsearch')
266
+ },
267
+ getorg (val) {
268
+ this.f_orgid = this.$login.convertToIn(val)
269
+ this.f_filialeids = val[0]
270
+ }
271
+ }
272
+
273
+ }
274
+ </script>
275
+ <style lang="less">
276
+ #ChargeGroupList {
277
+ .button_export {
278
+ display: none;
279
+ }
280
+ }
281
+ </style>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div id="ChargeManageBatch" class="flex-row three" v-show="listpage">
3
3
  <div class="binary-left" style="width:83%;overflow-y: scroll">
4
- <archives-list v-ref:archiveslist charge-to-choose></archives-list>
4
+ <charge-group-list v-ref:archiveslist charge-to-choose></charge-group-list>
5
5
  </div>
6
6
  <div class="binary-right" style="width:22%">
7
7
  <ul class="nav nav-pills span nav-tabs" style="height:auto;margin:8px 0px;padding:4px 0;border-bottom: 1px solid #e7e7e7;">
@@ -26,7 +26,7 @@
26
26
  <script>
27
27
  import CardListRewrite from './CardList'
28
28
  export default {
29
- title: '批量缴费',
29
+ title: '团体缴费',
30
30
  components: {CardListRewrite},
31
31
  data () {
32
32
  return {
@@ -2,9 +2,9 @@
2
2
  <div class="binary flex" >
3
3
  <div class="row binary-left flex" style="width:99%;height:98%;margin-bottom:0px">
4
4
  <div class="auto"><user-base-info-new :row="row" @cancel-main="cancel"></user-base-info-new></div>
5
- <saletabbut v-if="row" v-ref:list :active="-1" style="height:72%;margin-top: 1%">
5
+ <saletabbut v-if="row" v-ref:list style="height:72%;margin-top: 1%">
6
6
  <saletab header="流水查询" v-if="permission('流水查询')">
7
- <record-query-user :row="row" v-if="show == '流水查询'" @deal-msg="dealMsg"></record-query-user>
7
+ <record-query-user :row="row"></record-query-user>
8
8
  </saletab>
9
9
  <saletab header="机表流水查询" v-if="permission('机表流水查询')&&row.f_meter_type.includes('机表')">
10
10
  <machine-record-query :row="row" v-if="show == '机表流水查询'" @deal-msg="dealMsg"></machine-record-query>
@@ -1,25 +1,25 @@
1
-
2
- export default () => {
3
- // 求取当前时间的工具
4
- let year = ''
5
- let month = ''
6
- let day = ''
7
- let hour = ''
8
- let minutes = ''
9
- let seconds = ''
10
- let mydate = new Date()
11
- let mymonth = mydate.getMonth() + 1
12
- let myday = mydate.getDate()
13
- let myyear = mydate.getYear()
14
- let myhour = mydate.getHours()
15
- let myminutes = mydate.getMinutes()
16
- let myseconds = mydate.getSeconds()
17
- year = (myyear > 200) ? myyear : 1900 + myyear
18
- month = (mymonth > 9) ? mymonth : '0' + mymonth
19
- day = (myday > 9) ? myday : '0' + myday
20
- hour = (myhour > 9) ? myhour : '0' + myhour
21
- minutes = (myminutes > 9) ? myminutes : '0' + myminutes
22
- seconds = (myseconds > 9) ? myseconds : '0' + myseconds
23
- // document.write("<font color=#ffffff>今天是 "+year+"年"+mymonth+"月"+myday+"日 "+weekday+"</font>");
24
- return year + '-' + month + '-' + day + ' ' + hour + ':' + minutes + ':' + seconds
25
- }
1
+
2
+ export default () => {
3
+ // 求取当前时间的工具
4
+ let year = ''
5
+ let month = ''
6
+ let day = ''
7
+ let hour = ''
8
+ let minutes = ''
9
+ let seconds = ''
10
+ let mydate = new Date()
11
+ let mymonth = mydate.getMonth() + 1
12
+ let myday = mydate.getDate()
13
+ let myyear = mydate.getYear()
14
+ let myhour = mydate.getHours()
15
+ let myminutes = mydate.getMinutes()
16
+ let myseconds = mydate.getSeconds()
17
+ year = (myyear > 200) ? myyear : 1900 + myyear
18
+ month = (mymonth > 9) ? mymonth : '0' + mymonth
19
+ day = (myday > 9) ? myday : '0' + myday
20
+ hour = (myhour > 9) ? myhour : '0' + myhour
21
+ minutes = (myminutes > 9) ? myminutes : '0' + myminutes
22
+ seconds = (myseconds > 9) ? myseconds : '0' + myseconds
23
+ // document.write("<font color=#ffffff>今天是 "+year+"年"+mymonth+"月"+myday+"日 "+weekday+"</font>");
24
+ return year + '-' + month + '-' + day + ' ' + hour + ':' + minutes + ':' + seconds
25
+ }
@@ -73,9 +73,9 @@
73
73
  // 付款码支付流程
74
74
  async ConfirmCode () {
75
75
  let data = {
76
- f_userinfo_id: this.row.f_userinfo_id,
77
- f_user_id: this.row.f_user_id,
78
- f_userfiles_id: this.row.f_userfiles_id,
76
+ f_userinfo_id: this.row ? this.row.f_userinfo_id : null,
77
+ f_user_id: this.row ? this.row.f_user_id : null,
78
+ f_userfiles_id: this.row ? this.row.f_userfiles_id : null,
79
79
  money: this.money,
80
80
  f_payment: this.payment,
81
81
  auth_code: this.paymentCode,
@@ -18,12 +18,12 @@
18
18
  <div class="form-group button-range" style="float: right">
19
19
  <button class="button_search button_spacing" @click="$parent.$parent.search()">查询</button>
20
20
  <button class="button_clear button_spacing" @click="clear">清空</button>
21
- <button class="button_export button_spacing" @click="$parent.$parent.importFile">导入</button>
22
- <export-excel
23
- :data="{condition:$parent.$parent.condition}"
24
- :field="$parent.$parent.getfield"
25
- sqlurl="rs/logic/exportfile" sql-name="salembPeopleList" template-name='表册用户导出'
26
- :choose-col="true"></export-excel>
21
+ <!-- <button class="button_export button_spacing" @click="$parent.$parent.importFile">导入</button>-->
22
+ <!-- <export-excel-->
23
+ <!-- :data="{condition:$parent.$parent.condition}"-->
24
+ <!-- :field="$parent.$parent.getfield"-->
25
+ <!-- sqlurl="rs/logic/exportfile" sql-name="salembPeopleList" template-name='表册用户导出'-->
26
+ <!-- :choose-col="true"></export-excel>-->
27
27
  <div style="float: right" class="button_spacing"
28
28
  :class="{'button_shrink_top': $parent.$parent.criteriaShow,'button_shrink_bottom': !$parent.$parent.criteriaShow}"
29
29
  @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"></div>
@@ -15,12 +15,13 @@
15
15
  <button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
16
16
  <button class="button_search" v-if="$parent.$parent.editsort==false" @click="$parent.$parent.editsort=true" v-el:cba>调整顺序</button>
17
17
  <button class="button_search" v-if="$parent.$parent.editsort==true" @click="$parent.$parent.saveEditSort" v-el:cba>保存顺序</button>
18
-
19
18
  <export-excel
20
19
  :data="{condition: $parent.$parent.condition}"
21
20
  :field="$parent.$parent.getfield"
22
- sqlurl="rs/logic/saleExport" sql-name="getMeterBookUser" :template-name="$parent.$parent.model.rows[0].f_book_name+'抄表册名'"
21
+ sqlurl="rs/logic/exportfile" sql-name="saleGetMeterBookUser" :template-name="$parent.$parent.model.rows[0].f_book_name+'抄表册名'"
23
22
  :choose-col="true"></export-excel>
23
+ <button class="button_export button_spacing" @click="$parent.$parent.importFile">导入</button>
24
+
24
25
  <div
25
26
  :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
26
27
  @click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"
@@ -227,6 +228,14 @@
227
228
 
228
229
  </footer>
229
230
  </modal>
231
+ <modal :show.sync="show" width="800px" title="文件导入" v-ref:modal large backdrop="false">
232
+ <article slot="modal-body" class="modal-body">
233
+ <file-upload class="my-file-uploader " name="UploadFile" style="border-radius: 2px;"
234
+ action="rs/file/uploadFile" tagname="导入表册用户" v-ref:file multiple></file-upload>
235
+ </article>
236
+ <footer slot="modal-footer" class="modal-footer">
237
+ </footer>
238
+ </modal>
230
239
  </template>
231
240
 
232
241
  <script>
@@ -273,6 +282,7 @@
273
282
  editsort:false,
274
283
  config: {
275
284
  excelHeaders: {
285
+ 'f_userfiles_id': '系统识别号',
276
286
  'f_book_name': '抄表册名称',
277
287
  'f_userinfo_code': '客户编号',
278
288
  'f_user_name': '客户姓名',
@@ -296,6 +306,9 @@
296
306
  readyGen(this)
297
307
  },
298
308
  methods: {
309
+ importFile () {
310
+ this.show = true
311
+ },
299
312
  async sortEdit(position){
300
313
  if(!this.fileinfo.code){
301
314
  this.$showMessage('请输入目标用户编号')
@@ -514,6 +527,24 @@
514
527
  this.search()
515
528
  }
516
529
  },
530
+ events: {
531
+ onFileUpload: function (file, res) {
532
+ // let URL = res.f_downloadpath.substring(res.f_downloadpath.lastIndexOf(":\\") + 2)
533
+ // res.f_downloadpath = "http://" + location.host + "/" + URL
534
+ // res.f_downloadpath.replace('\\','/')
535
+ this.$resetpost('rs/logic/upLoadBookFile',
536
+ {data: {
537
+ condition: this.condition,
538
+ filepath: res.f_downloadpath
539
+ }
540
+ },
541
+ {resolveMsg: null, rejectMsg: '上传失败'}).then((res) => {
542
+ this.show = false
543
+ this.$showAlert(`导入成功`, 'success', 2000)
544
+ this.search()
545
+ })
546
+ }
547
+ },
517
548
  computed: {
518
549
  inputtores () {
519
550
  // 获取抄表员