sale-client 3.4.110 → 3.4.113

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 (101) hide show
  1. package/.gradle/4.4/fileChanges/last-build.bin +0 -0
  2. package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
  3. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
  4. package/build/dev-server.js +7 -7
  5. package/npm +0 -0
  6. package/package.json +1 -1
  7. package/src/components/FilesManage/MeterinfoTest.vue +0 -1
  8. package/src/components/FilesManage/TemplateManage.vue +167 -167
  9. package/src/components/FilesManage/UserGeneralInfoTest.vue +4 -2
  10. package/src/components/FilesManageNew/UserEssentialInfoTest.vue +1 -1
  11. package/src/components/FilesManageNew/UserGeneralInfoTest.vue +7 -7
  12. package/src/components/charge/business/CardChangeFill.vue +4 -4
  13. package/src/components/charge/business/CardMeterCenter.vue +4 -4
  14. package/src/components/charge/business/FilesComplete.vue +253 -253
  15. package/src/components/charge/business/IOTMeterCenter.vue +801 -801
  16. package/src/components/charge/business/refund/IOTRefund.vue +236 -236
  17. package/src/components/charge/business/refund/RefundManage.vue +28 -28
  18. package/src/components/chargeNew/thirdSurplus.vue +2 -0
  19. package/src/components/meterBook/MeterManger.vue +61 -61
  20. package/src/components/revenue/Common/MeterMessage.vue +184 -184
  21. package/src/components/revenue/HandManager/MeterBookList.vue +488 -488
  22. package/src/components/revenue/HandManager/MeterBookUser.vue +702 -702
  23. package/src/components/revenue/HandManager/OverdueSet.vue +45 -45
  24. package/src/components/revenue/base/leftview/MixPriceInfo.vue +60 -60
  25. package/src/components/revenue/base/leftview/SafeCheck.vue +311 -311
  26. package/src/components/revenue/base/leftview/Stairinfo.vue +156 -156
  27. package/src/components/revenue/base/leftview/meterinfodetail.vue +195 -195
  28. package/src/components/revenue/base/rightview/CardList.vue +477 -478
  29. package/src/components/revenue/comprehen/ComprehenOperation/OtherGas/OtherGas.vue +5 -1
  30. package/src/components/revenue/comprehen/ComprehenOperation/removeTable.vue +1 -1
  31. package/src/components/revenue/comprehen/Maintenance/hand/handListMaintain.vue +33 -10
  32. package/src/components/revenue/comprehen/Maintenance/revenue/StockListmain.vue +7 -7
  33. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackList.vue +1 -1
  34. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackListManage.vue +1 -1
  35. package/src/components/revenue/comprehen/handAudit/MeterReadAudit.vue +342 -342
  36. package/src/components/revenue/comprehen/replacement/replacementHandInfoRecord.vue +155 -155
  37. package/src/components/revenue/comprehen/wechatpay/WeChat.vue +62 -62
  38. package/src/components/revenue/machineHandManage/machineDown.vue +1105 -1105
  39. package/src/components/revenue/machineHandManage/machineHand.vue +1 -5
  40. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +8 -4
  41. package/src/filiale/{weinan → WEINAN}/AutomaticPurse.vue +0 -0
  42. package/src/filiale/{weinan → WEINAN}/CardList.vue +0 -0
  43. package/src/filiale/{weinan → WEINAN}/CardMeterCenter.vue +0 -0
  44. package/src/filiale/{weinan → WEINAN}/CardMeterChargeCancel.vue +0 -0
  45. package/src/filiale/{weinan → WEINAN}/ChangeMeter.vue +0 -0
  46. package/src/filiale/{weinan → WEINAN}/ChargeList.vue +0 -0
  47. package/src/filiale/{weinan → WEINAN}/ChargeManageNew.vue +0 -0
  48. package/src/filiale/{weinan → WEINAN}/ChargeQueryUser.vue +0 -0
  49. package/src/filiale/{weinan → WEINAN}/ChargeRecordQuery.vue +0 -0
  50. package/src/filiale/{weinan → WEINAN}/DisableManage.vue +0 -0
  51. package/src/filiale/{weinan → WEINAN}/EnableManage.vue +0 -0
  52. package/src/filiale/{weinan → WEINAN}/FileAddressManage.vue +0 -0
  53. package/src/filiale/{weinan → WEINAN}/FileUserAddress.vue +0 -0
  54. package/src/filiale/{weinan → WEINAN}/HighMeter.vue +0 -0
  55. package/src/filiale/{weinan → WEINAN}/IOTMeterCenter.vue +0 -0
  56. package/src/filiale/{weinan → WEINAN}/MachineMeterCenter.vue +0 -0
  57. package/src/filiale/{weinan → WEINAN}/MeterMessage.vue +0 -0
  58. package/src/filiale/{weinan → WEINAN}/MeterinfoTest.vue +0 -0
  59. package/src/filiale/{weinan → WEINAN}/OffGasAddGas.vue +0 -0
  60. package/src/filiale/{weinan → WEINAN}/OtherGas.vue +0 -0
  61. package/src/filiale/{weinan → WEINAN}/OverUseCharge.vue +0 -0
  62. package/src/filiale/{weinan → WEINAN}/RecordCancel.vue +0 -0
  63. package/src/filiale/{weinan → WEINAN}/RecordQueryUser.vue +0 -0
  64. package/src/filiale/{weinan → WEINAN}/ReplaceCardManage.vue +0 -0
  65. package/src/filiale/{weinan → WEINAN}/ShowCardSellGas.vue +0 -0
  66. package/src/filiale/{weinan → WEINAN}/Stairinfo.vue +0 -0
  67. package/src/filiale/{weinan → WEINAN}/TransferManage.vue +0 -0
  68. package/src/filiale/{weinan → WEINAN}/UserBaseInfoNew.vue +0 -0
  69. package/src/filiale/{weinan → WEINAN}/UserEssentialInfoTest.vue +0 -0
  70. package/src/filiale/{weinan → WEINAN}/UserGeneralInfoTest.vue +0 -0
  71. package/src/filiale/{weinan → WEINAN}/UserInfoDetailManageNew.vue +0 -0
  72. package/src/filiale/{weinan → WEINAN}/Userinfo.vue +0 -0
  73. package/src/filiale/{weinan → WEINAN}/gasmove.vue +0 -0
  74. package/src/filiale/{weinan → WEINAN}/meterinfodetail.vue +0 -0
  75. package/src/filiale/{weinan → WEINAN}/plugins/FileManageService.js +0 -0
  76. package/src/filiale/{weinan → WEINAN}/plugins/getTimeService.js +0 -0
  77. package/src/filiale/{weinan → WEINAN}/sale.js +0 -0
  78. package/src/filiale/{weinan → WEINAN}/sale.js~Stashed changes +0 -0
  79. package/src/filiale/{weinan → WEINAN}/static/mainicon//347/237/251/345/275/2421828.png +0 -0
  80. package/src/filiale/alashan/PrintBill.vue +116 -116
  81. package/src/filiale/jingwei/CardHand.vue +742 -742
  82. package/src/filiale/macheng/FilesManageNew/FileUserFiles.vue +743 -0
  83. package/src/filiale/macheng/FilesManageNew/UserEssentialInfoTest.vue +21 -1
  84. package/src/filiale/macheng/UserEssentialInfoTest.vue +4 -2
  85. package/src/filiale/meihekou/MeterinfoTest.vue +0 -1
  86. package/src/filiale/meihekou/PrintBill.vue +140 -140
  87. package/src/filiale/meihekou/ReissueBill.vue +322 -322
  88. package/src/filiale/qianneng/FilesManage/MeterinfoTest.vue +0 -1
  89. package/src/filiale/qianneng/HandManager.vue +1838 -1838
  90. package/src/filiale/qianneng/OtherChargeNew.vue +6 -2
  91. package/src/filiale/qianneng/revenue/comprehen/closeaccount/Batchmanage.vue +58 -58
  92. package/src/filiale/qianneng/sale.js +30 -30
  93. package/src/filiale/qingtongxia/UserGeneralInfoTest.vue +538 -533
  94. package/src/filiale/rongcheng/FilesManageNew/UserGeneralInfoTest.vue +608 -608
  95. package/src/filiale/rongchuang/OtherGas.vue +329 -329
  96. package/src/filiale/tongchuan/CardList.vue +482 -482
  97. package/src/filiale/zhongsheng/rightview/CardList.vue +492 -492
  98. package/src/filiale/zhongsheng/wechatpay/WeChatPayDetail.vue +469 -469
  99. package/src/main.js +1 -1
  100. package/src/plugins/CardService.js +1798 -1798
  101. package/src/plugins/ChangeMeterService.js +756 -756
@@ -1,702 +1,702 @@
1
- <template>
2
- <div class="flex">
3
- <criteria-paged :model="model" v-ref:paged @sort="sort">
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row" >
7
- <div class="form-group col-sm-4" >
8
- <label class="font_normal_body">客户编号</label>
9
- <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
10
- condition="info.f_userinfo_code = '{}'" @keyup.enter="search()">
11
- </div>
12
-
13
- <div class="form-group col-sm-4 button-range" >
14
-
15
- <button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
16
- <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.saveSort()">保存当前顺序</button>
17
- <button class="button_search" v-if="$parent.$parent.editsort==false" @click="$parent.$parent.editsort=true" v-el:cba>调整顺序</button>
18
- <button class="button_search" v-if="$parent.$parent.editsort==true" @click="$parent.$parent.saveEditSort" v-el:cba>保存顺序</button>
19
- <export-excel
20
- :data="{condition: $parent.$parent.condition}"
21
- :field="$parent.$parent.getfield"
22
- sqlurl="rs/logic/exportfile" sql-name="saleGetMeterBookUser" :template-name="$parent.$parent.model.rows[0].f_book_name+'抄表册名'"
23
- :choose-col="true"></export-excel>
24
- <button class="button_export button_spacing" @click="$parent.$parent.importFile">导入</button>
25
-
26
- <div
27
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
28
- @click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"
29
- class="button_spacing"
30
- style="float: right"></div>
31
- </div>
32
- </div>
33
- <div class="row" v-show="$parent.$parent.criteriaShow">
34
- <div class="col-sm-4 form-group">
35
- <label class="font_normal_body">客户姓名</label>
36
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name" placeholder='客户姓名'
37
- condition="info.f_user_name like '%{}%'">
38
- </div>
39
- <div class="col-sm-4 form-group">
40
- <label class="font_normal_body">客户地址</label>
41
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
42
- condition="address.f_address like '%{}%'" placeholder='客户地址'>
43
- </div>
44
- <div class="col-sm-4 form-group">
45
- <label class="font_normal_body">表&emsp;&emsp;号</label>
46
- <input style="width:60%" type="text" class="form-control" v-model="model.f_meternumber"
47
- condition="uf.f_meternumber like '%{}%'" placeholder='表号'
48
- >
49
- </div>
50
- <div class="col-sm-4 form-group">
51
- <label class="font_normal_body">气表品牌</label>
52
- <v-select :value.sync="model.f_gasbrand_id"
53
- v-model="model.f_gasbrand_id"
54
- :options='$parent.$parent.meterbrands' placeholder='请选择'
55
- condition="gb.f_meter_brand = '{}'"
56
- close-on-select></v-select>
57
- </div>
58
- <div class="col-sm-4 form-group">
59
- <label class="font_normal_body">气表类型</label>
60
- <v-select :value.sync="model.f_meter_type"
61
- v-model="model.f_meter_type"
62
- :options='$parent.$parent.meterTypes' placeholder='请选择'
63
- condition="gb.f_meter_type = '{}'"
64
- close-on-select></v-select>
65
- </div>
66
- <div class="col-sm-4 form-group">
67
- <label class="font_normal_body">客户类型</label>
68
- <v-select :value.sync="model.f_user_type"
69
- :options='$parent.$parent.usertypes'
70
- @change="$parent.$parent.userTypeChange()"
71
- placeholder='请选择' v-model="model.f_user_type"
72
- condition="uf.f_user_type = '{}'"
73
- close-on-select></v-select>
74
- </div>
75
- <div class="col-sm-4 form-group">
76
- <label class="font_normal_body">用气性质</label>
77
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
78
- :options='$parent.$parent.gasproperties' placeholder='请选择'
79
- condition="uf.f_gasproperties = '{}'"
80
- close-on-select></v-select>
81
- </div>
82
- <div class="col-sm-4 form-group">
83
- <label class="font_normal_body">气价类型</label>
84
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
85
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
86
- condition="sp.f_price_type = '{}'"
87
- close-on-select v-ref:type>
88
- </v-select>
89
- </div>
90
- <div class="col-sm-4 form-group">
91
- <label class="font_normal_body">气价名称</label>
92
- <v-select :value.sync="model.f_price_id"
93
- v-model="model.f_price_id"
94
- :options="$parent.$parent.getPricenames"
95
- placeholder='请选择'
96
- condition="uf.f_price_id = '{}'"
97
- close-on-select></v-select>
98
- </div>
99
- <div class="col-sm-4 form-group">
100
- <label class="font_normal_body">客户电话</label>
101
- <input class="input_search"
102
- condition="info.f_user_phone = '{}'" placeholder='电话' style="width:60%"
103
- type="text"
104
- v-model="model.f_user_phone">
105
- </div>
106
- <div class="col-sm-4 form-group">
107
- <label class="font_normal_body">小&emsp;&emsp;区</label>
108
- <input style="width:60%" type="text" class="form-control" v-model="model.f_residential_area"
109
- condition="address.f_residential_area like '%{}%'" placeholder='小区'
110
- >
111
- </div>
112
- <div class="col-sm-4 form-group">
113
- <label class="font_normal_body">楼&emsp;&emsp;栋</label>
114
- <input style="width:60%" type="text" class="form-control" v-model="model.f_building"
115
- condition="address.f_building like '%{}%'" placeholder='楼栋'
116
- >
117
- </div>
118
- <div class="col-sm-4 form-group">
119
- <label class="font_normal_body">单&emsp;&emsp;元</label>
120
- <input style="width:60%" type="text" class="form-control" v-model="model.f_unit"
121
- condition="address.f_unit like '%{}%'" placeholder='单元'
122
- >
123
- </div>
124
- <div class="col-sm-4 form-group">
125
- <label class="font_normal_body">表箱号&emsp;</label>
126
- <input style="width:60%" type="text" class="form-control" v-model="model.f_metertitles"
127
- condition="uf.f_metertitles like '%{}%'" placeholder='表箱号'
128
- >
129
- </div>
130
- <div class="col-sm-4 form-group">
131
- <label class="font_normal_body">入户证号</label>
132
- <input style="width:60%" type="text" class="form-control" v-model="model.f_book_no"
133
- condition="info.f_book_no like '%{}%'" placeholder='入户证号'
134
- >
135
- </div>
136
- <div class="col-sm-4 form-group">
137
- <label class="font_normal_body">抄&nbsp;表&nbsp;员&nbsp;</label>
138
- <v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
139
- style="width:60%"
140
- multiple="true"
141
- condition="uf.f_inputtor in {}"
142
- :options='$parent.$parent.inputtores' placeholder='抄表员'
143
- close-on-select
144
- v-el:cc></v-select>
145
- </div>
146
- </div>
147
- </div>
148
- </criteria>
149
- <data-grid :model="model" class="table_sy" partial='list' v-ref:grid>
150
- <template partial='head' >
151
- <tr>
152
- <th v-if="$parent.$parent.$parent.editsort"><nobr>操作</nobr></th>
153
- <th><nobr>客户编号</nobr></th>
154
- <th><nobr>客户名称</nobr></th>
155
- <th>
156
- <data-order field="f_street" name="街道"
157
- :order.sync="$parent.$parent.$parent.orderFields.f_street"></data-order>
158
- </th>
159
- <th>
160
- <data-order field="f_residential_area" name="小区"
161
- :order.sync="$parent.$parent.$parent.orderFields.f_residential_area"></data-order>
162
- </th>
163
- <th>
164
- <data-order field="f_building" name="楼栋"
165
- :order.sync="$parent.$parent.$parent.orderFields.f_building"></data-order>
166
- </th>
167
- <th>
168
- <data-order field="f_unit" name="单元"
169
- :order.sync="$parent.$parent.$parent.orderFields.f_unit"></data-order>
170
- </th>
171
- <th>
172
- <data-order field="f_floor" name="楼层"
173
- :order.sync="$parent.$parent.$parent.orderFields.f_floor"></data-order>
174
- </th>
175
- <th>
176
- <data-order field="f_room" name="房间号"
177
- :order.sync="$parent.$parent.$parent.orderFields.f_room"></data-order>
178
- </th>
179
- <th>
180
- <data-order field="f_address" name="客户地址"
181
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
182
- </th>
183
- <th><nobr>客户电话</nobr></th>
184
- <th><nobr>表号</nobr></th>
185
- <th>
186
- <data-order field="f_meter_book_sort" name="册内排序"
187
- :order.sync="$parent.$parent.$parent.orderFields.f_meter_book_sort"></data-order>
188
- </th>
189
- <th><nobr>抄表册名称</nobr></th>
190
- <th><nobr>抄表员</nobr></th>
191
- <th><nobr>表箱号</nobr></th>
192
- <th><nobr>入户证号</nobr></th>
193
- <th><nobr>表底数</nobr></th>
194
- <th><nobr>用户类型</nobr></th>
195
- <th><nobr>用气类型</nobr></th>
196
- <th><nobr>气表品牌</nobr></th>
197
- <th><nobr>气表型号</nobr></th>
198
- <th><nobr>抄表日期</nobr></th>
199
- </tr>
200
- </template>
201
- <template partial='body' >
202
- <tr >
203
- <td style="text-align:center" v-if="$parent.$parent.$parent.editsort"><nobr>
204
- <span class="glyphicon glyphicon-arrow-up" @click="$parent.$parent.$parent.sortUp($index, row)" v-el:cba></span></nobr>
205
- <span class="glyphicon glyphicon-arrow-down" @click="$parent.$parent.$parent.sortDown($index, row)" v-el:cba></span></nobr>
206
- </td>
207
- <td style="text-align:center"><nobr><span @click="$parent.$parent.$parent.dealmsg(row)"><a><b>{{row.f_userinfo_code}}</b></a></span></nobr></td>
208
- <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
209
- <td style="text-align:center;white-space: nowrap;"><nobr>{{row.f_street}}</nobr></td>
210
- <td style="text-align:center;white-space: nowrap;"><nobr>{{row.f_residential_area}}</nobr></td>
211
- <td style="text-align:center;white-space: nowrap;"><nobr>{{row.f_building}}</nobr></td>
212
- <td style="text-align:center;white-space: nowrap;"><nobr>{{row.f_unit}}</nobr></td>
213
- <td style="text-align:center;white-space: nowrap;"><nobr>{{row.f_floor}}</nobr></td>
214
- <td style="text-align:center;white-space: nowrap;"><nobr>{{row.f_room}}</nobr></td>
215
- <td style="text-align:center;white-space: nowrap;"><nobr>{{row.f_address}}</nobr></td>
216
- <td style="text-align:center"><nobr>{{row.f_user_phone}}</nobr></td>
217
- <td style="text-align:center;white-space: nowrap;"><nobr>{{row.f_meternumber}}</nobr></td>
218
- <td style="text-align:center;"><nobr>{{row.f_meter_book_sort}}</nobr></td>
219
- <td style="text-align:center"><nobr>{{row.f_book_name}}</nobr></td>
220
- <td style="text-align:center"><nobr>{{row.f_inputtor}}</nobr></td>
221
- <td style="text-align:center"><nobr>{{row.f_metertitles}}</nobr></td>
222
- <td style="text-align:center"><nobr>{{row.f_book_no}}</nobr></td>
223
- <td style="text-align:center"><nobr>{{row.f_meter_base}}</nobr></td>
224
- <td style="text-align:center"><nobr>{{row.f_user_type}}</nobr></td>
225
- <td style="text-align:center"><nobr>{{row.f_gasproperties}}</nobr></td>
226
- <td style="text-align:center"><nobr>{{row.f_meter_brand}}</nobr></td>
227
- <td style="text-align:center"><nobr>{{row.f_meter_style}}</nobr></td>
228
- <td style="text-align:center"><nobr>{{row.f_hand_date}}</nobr></td>
229
- </tr>
230
- </template>
231
- <template partial='foot'></template>
232
- </data-grid>
233
- </criteria-paged>
234
- </div>
235
- <modal :show.sync="sortShow" width="500px" title="修改册内排序" v-ref:modal large backdrop="false">
236
- <article slot="modal-body" class="modal-body">
237
- <div>
238
- <div class="row app-row">
239
- <p class="col-sm-6">客户编号:{{row.f_userinfo_code}}</p>
240
- <p class="col-sm-6">客户姓名:{{row.f_user_name}}</p>
241
- <p class="col-sm-6">所在表册:{{row.f_book_name}}</p>
242
- <p class="col-sm-6">册内排序:{{row.f_meter_book_sort}}</p>
243
- <label for="f_plan_name" class="font text-left">目标用户编号:</label>
244
- <input type="text" @change="getBook()" class="search_input input-font" v-model="fileinfo.code" placeholder='目标用户编号'
245
- >
246
- </div>
247
- <div class="row app-row" v-show="fileinfo.meterbook && fileinfo.sort">
248
- <p class="col-sm-6">表册:{{fileinfo.meterbook}}</p>
249
- <p class="col-sm-6">册内排序:{{fileinfo.sort}}</p>
250
- </div>
251
- <div class="row app-row">
252
- <div class="col-sm-6" style="text-align: center;">
253
-
254
- <button type="button" class="button_search" style="width:40%;background-color: #499EDF;color:#f2f6fa" :disabled="!(fileinfo.meterbook && fileinfo.sort)" @click="sortEdit(0)"><img src="./../../../../static/images/meterBook/up.png" style="width: 20%;margin-left:-10px"></img>&nbsp;前</button>
255
- </div>
256
- <div class="col-sm-6" style="text-align: center;">
257
- <button type="button" class="button_search" style="width:40%;background-color: #499EDF;color:#f2f6fa" :disabled="!(fileinfo.meterbook && fileinfo.sort)" @click="sortEdit(1)">后&nbsp;<img src="./../../../../static/images/meterBook/down.png" style="width: 20%;"></img></button>
258
- </div>
259
- </div>
260
- </div>
261
-
262
-
263
- </article>
264
- <footer slot="modal-footer" class="modal-footer" v-show="false">
265
-
266
- </footer>
267
- </modal>
268
- <modal :show.sync="show" width="800px" title="文件导入" v-ref:modal large backdrop="false">
269
- <article slot="modal-body" class="modal-body">
270
- <file-upload class="my-file-uploader " name="UploadFile" style="border-radius: 2px;"
271
- action="rs/file/uploadFile" tagname="导入表册用户" v-ref:file multiple></file-upload>
272
- </article>
273
- <footer slot="modal-footer" class="modal-footer">
274
- </footer>
275
- </modal>
276
- </template>
277
-
278
- <script>
279
- import {HttpResetClass, PagedList} from 'vue-client'
280
- let readyGen = async function (self) {
281
- self.getfield = self.config.excelHeaders
282
- // await this.$LoadParams.loadParam(this.f_filialeid)
283
- self.search()
284
- await self.$LoadParams.loadParam()
285
- self.initParams()
286
- }
287
-
288
- export default {
289
- title: '',
290
- data () {
291
- return {
292
- model: new PagedList('rs/sql/getMeterBookUser', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_meter_book_sort asc'`}),
293
- condition: '',
294
- getfield: {},
295
- show: false,
296
- row:null,
297
- sortShow:false,
298
- fileinfo: {
299
- code:null,
300
- meterbook:null,
301
- booknum:null,
302
- sort:null,
303
- fileid:null,
304
- infoid:null
305
- },
306
- gasproperties: [],
307
- f_filialeid: this.$login.f.orgid,
308
- newinfo: {
309
- f_user_type: '',
310
- f_gasproperties: '',
311
- pricetype: '',
312
- bookname: '',
313
- f_perform_date: this.$login.toStandardDateString() + ' 00:00:00' // 操作时间
314
- },
315
- meterbrands: [],
316
- adjustables: [],
317
- meterstyle: {},
318
- criteriaShow: false,
319
- editsort:false,
320
- //排序
321
- sortitem:'f_meter_book_sort',
322
- rule:'asc',
323
- orderitem:'f_meter_book_sort desc',
324
- orderFields: {
325
- f_meter_book_sort: 'no'
326
- },
327
- config: {
328
- excelHeaders: {
329
- 'f_userfiles_id': '系统识别号',
330
- 'f_book_name': '抄表册名称',
331
- 'f_userinfo_code': '客户编号',
332
- 'f_user_name': '客户姓名',
333
- 'f_user_phone': '客户电话',
334
- 'f_meternumber': '表号',
335
- 'f_address': '客户地址',
336
- 'f_inputtor': '抄表员',
337
- 'f_meter_book_sort': '册内排序',
338
- 'f_metertitles': '表箱号',
339
- 'f_meter_base': '表底数',
340
- 'f_user_type': '用户类型',
341
- 'f_gasproperties': '用气类型',
342
- 'f_meter_classify': '气表品牌',
343
- 'f_gasmodel_id': '气表型号',
344
- 'f_hand_date': '抄表日期'
345
- }
346
- }
347
- }
348
- },
349
- props: ['f_meterbook_num','usercount'],
350
- async ready () {
351
- readyGen(this)
352
- },
353
- methods: {
354
- sort (field, rule) {
355
- // 将所有排序方式设为不排序,实现相互排斥
356
- for (let key in this.orderFields) {
357
- if (key === field) {
358
- this.orderFields[key] = rule
359
- } else {
360
- this.orderFields[key] = 'no'
361
- }
362
- }
363
- // 如果新规则不排序,还原为默认排序
364
- if (rule === 'no') {
365
- this.model.paramSource.orderitem = `'f_meter_book_sort asc'`
366
- this.rule= 'asc'
367
- this.sortitem='f_meter_book_sort'
368
- } else {
369
- this.model.paramSource.orderitem = `'${field} ${rule}'`
370
- this.rule= rule
371
- this.sortitem=field
372
- }
373
- this.search()
374
- },
375
- async saveSort(){
376
- if (!this.$login.r.find(value => value == '册内用户排序')) {
377
- this.$showMessage('你没有【册内用户排序】的权限,请联系管理员!')
378
- return
379
- }
380
- if(this.model.count<this.usercount){
381
- this.$showAlert('该功能适用于给表册内所有用户排序的情况,请去掉查询条件', 'warning', 3000)
382
- }else{
383
- this.$showMessage('此操作会将表册内用户按照现有查询结果的顺序排序,是否继续', ['confirm', 'cancel']).then((res) => {
384
- if (res == 'confirm') {
385
- this.$resetpost('rs/logic/changeBookSort',
386
- {
387
- data: {
388
- f_meter_book_num: this.f_meterbook_num,
389
- sortitem: this.sortitem,
390
- rule: this.rule
391
- }
392
- }, {resolveMsg: '已成功修改册内排序!!', rejectMsg: '册内排序修改失败!!'})
393
- this.search()
394
- }
395
- })
396
- }
397
- },
398
- importFile () {
399
- if (!this.$login.r.find(value => value == '表册排序导入')) {
400
- this.$showMessage('你没有【表册排序导入】的权限,请联系管理员!')
401
- return
402
- }
403
- this.show = true
404
- },
405
- async sortEdit(position){
406
- if(!this.fileinfo.code){
407
- this.$showMessage('请输入目标用户编号')
408
- return
409
- }
410
- // position:
411
- // 0--将改用户的表册顺序排到目标用户前
412
- // 1--将改用户的表册顺序排到目标用户后
413
- if((!this.fileinfo.sort) ||(!this.fileinfo.booknum) ){
414
- this.$showMessage('目标用户无表册或在表册内无排序')
415
- return
416
- }
417
- let http = new HttpResetClass()
418
- await http.load('POST', 'rs/logic/sale_editBookSort', {data: {fileinfo: this.fileinfo,position:position,userfilesid:this.row.f_userfiles_id}}, {resolveMsg: '已成功将改表移到指定的表册位置', rejectMsg: '移动册内位置失败'})
419
- this.fileinfo= {
420
- code:null,
421
- fileid:null,
422
- booknum:null,
423
- meterbook:null,
424
- infoid:null,
425
- sort:null
426
- }
427
- this.sortShow=false
428
- this.search()
429
- },
430
- async getBook(){
431
- if(this.fileinfo.code){
432
- let http = new HttpResetClass()
433
- let res = await http.load('POST', 'rs/sql/sale_getUserMeterBook', {
434
- data: {
435
- condition: `i.f_userinfo_code='${this.fileinfo.code}'`
436
- }
437
- }, {resolveMsg: null, rejectMsg: null})
438
- console.log("-------------------res:",res.data)
439
- if(res.data.length===1){
440
- if((!res.data[0].f_meter_book_sort )||(!res.data[0].f_meter_book_num) ){
441
- this.$showMessage('该用户不在表册内或在表册内无排序')
442
- this.fileinfo= {
443
- code:this.fileinfo.code,
444
- fileid:null,
445
- booknum:null,
446
- meterbook:null,
447
- infoid:null,
448
- sort:null
449
- }
450
- return
451
- }
452
- this.fileinfo.meterbook=res.data[0].f_book_name
453
- this.fileinfo.sort=res.data[0].f_meter_book_sort
454
- this.fileinfo.fileid=res.data[0].f_userfiles_id
455
- this.fileinfo.infoid=res.data[0].f_userinfo_id
456
- this.fileinfo.booknum=res.data[0].f_meter_book_num
457
- }else{
458
- this.$showMessage('请核对输入的用户编号')
459
- this.fileinfo= {
460
- code:this.fileinfo.code,
461
- fileid:null,
462
- booknum:null,
463
- meterbook:null,
464
- infoid:null,
465
- sort:null
466
- }
467
- }
468
- }
469
-
470
- },
471
- // dblclick(obj){
472
- // console.log("-------------------------row",obj)
473
- // this.row=obj
474
- // this.sortShow=true
475
- // },
476
- async saveEditSort (){
477
- for (let item of this.$refs.paged.$refs.grid.model.rows) {
478
- let param={
479
- f_userfiles_id:item.f_userfiles_id,
480
- version:item.fileversion,
481
- f_meter_book_sort:item.f_meter_book_sort
482
- }
483
- let http = new HttpResetClass()
484
- await http.load('POST', 'rs/entity/t_userfiles',
485
- param,
486
- {resolveMsg: null, rejectMsg: "保存失败"})
487
- }
488
- this.editsort=false
489
- },
490
- // 下移按钮
491
- sortDown (index, row) {
492
- if (index === (this.model.rows.length - 1)) {
493
- this.$showAlert('已经是本页最后一个了', 'warning', 2000)
494
- } else {
495
- let rows=this.$refs.paged.$refs.grid.model.rows
496
- this.$refs.paged.$refs.grid.model.rows=[]
497
- let temp = rows[index + 1]
498
- rows[index+1]=rows[index]
499
- rows[index]=temp
500
-
501
- let tempsort=rows[index + 1].f_meter_book_sort
502
- rows[index+1].f_meter_book_sort=rows[index].f_meter_book_sort
503
- rows[index].f_meter_book_sort=tempsort
504
-
505
- this.$refs.paged.$refs.grid.model.rows=rows
506
-
507
- }
508
- },
509
- // 上移按钮
510
- sortUp (index, row) {
511
-
512
- if (index === 0) {
513
- this.$showAlert('已经是本页第一个了', 'warning', 2000)
514
- } else {
515
-
516
-
517
- let rows=this.$refs.paged.$refs.grid.model.rows
518
-
519
- this.$refs.paged.$refs.grid.model.rows=[]
520
- let temp = rows[index - 1]
521
- rows[index-1]=rows[index]
522
- rows[index]=temp
523
- console.log("--------------this.$refs.paged.$refs.grid.model.rows,",rows)
524
-
525
- let tempsort=rows[index - 1].f_meter_book_sort
526
- rows[index-1].f_meter_book_sort=rows[index].f_meter_book_sort
527
- rows[index].f_meter_book_sort=tempsort
528
- this.$refs.paged.$refs.grid.model.rows=rows
529
- }
530
- },
531
- close () {
532
- this.show = false
533
- this.newinfo = {
534
- f_user_type: '',
535
- f_gasproperties: '',
536
- pricetype: '',
537
- bookname: ''
538
- }
539
- },
540
-
541
- userTypeChange () {
542
- this.gasproperties = []
543
- if (this.$refs.paged.$refs.criteria.model !== null) {
544
- this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
545
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
546
- } else {
547
- this.gasproperties = [{label: '全部', value: ''}]
548
- }
549
- },
550
-
551
- async initParams () {
552
- console.log('=================>加载', this.$GetSaleParam.getGasbrand())
553
- let arr = []
554
- let filter = this.$login.f.orgid
555
- this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
556
- let temp = {}
557
- temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
558
- temp.value = `${item.value.id}`
559
- arr.push(temp)
560
- })
561
- this.adjustables = [{label: '全部', value: ''}, ...arr]
562
- // 初始化气表品牌
563
- let brandArr = []
564
- this.$GetSaleParam.getGasbrand().forEach((item) => {
565
- let temp = {}
566
- temp.label = item.label
567
- temp.value = item.value.id
568
- brandArr.push(temp)
569
- // 取出对应气表型号
570
- let styleArr = []
571
- for (let row of item.value.gasmodel) {
572
- styleArr.push({label: row.label, value: row.value.id})
573
- }
574
- this.meterstyle[temp.value] = styleArr
575
- })
576
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
577
- // 初始化气表价格
578
- this.prices = this.$GetSaleParam.getPrice(filter)
579
- },
580
- sortModelval () {
581
- let sortModel = []
582
- Object.keys(this.fields).forEach((key) => {
583
- if (this.modelval.includes(key)) {
584
- sortModel.push(key)
585
- }
586
- })
587
- this.modelval = sortModel
588
- console.log('选择的打印的字段', this.modelval)
589
- },
590
- async updateParams () {
591
- await this.$MagLoadParams.loadParam(this.f_filialeid)
592
- this.initParams()
593
- },
594
-
595
- loadMeterBooks () {
596
- let meterbrand = this.$GetSaleParam.getGasbrand()
597
- for (let row of meterbrand) {
598
- console.log(row)
599
- this.meterbrands.push({label: row.label, value: row.value.id})
600
- }
601
- },
602
- search () {
603
- this.$refs.paged.$refs.criteria.search()
604
- },
605
-
606
- selfSearch (args) {
607
- this.editsort=false
608
- args.condition = `${args.condition} and f_meter_book_num = '${this.f_meterbook_num}'`
609
- this.condition = args.condition
610
- this.model.search(args.condition, args.model)
611
- },
612
- dealmsg (val) {
613
- this.$parent.f_userinfo_id = val.f_userinfo_id
614
- this.$parent.listpage = false
615
- }
616
-
617
- },
618
- watch: {
619
- 'f_meterbook_num' (val) {
620
- this.search()
621
- }
622
- },
623
- events: {
624
- onFileUpload: function (file, res) {
625
- // let URL = res.f_downloadpath.substring(res.f_downloadpath.lastIndexOf(":\\") + 2)
626
- // res.f_downloadpath = "http://" + location.host + "/" + URL
627
- // res.f_downloadpath.replace('\\','/')
628
- this.$resetpost('rs/logic/upLoadBookFile',
629
- {data: {
630
- condition: this.condition,
631
- filepath: res.f_downloadpath
632
- }
633
- },
634
- {resolveMsg: null, rejectMsg: '上传失败'}).then((res) => {
635
- this.show = false
636
- this.$showAlert(`导入成功`, 'success', 2000)
637
- this.search()
638
- })
639
- }
640
- },
641
- computed: {
642
- inputtores () {
643
- // 获取抄表员
644
- console.log('获取抄表员', this.$login.f)
645
- let rs = []
646
- if (this.$login.f.f_gasman.length > 0) {
647
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
648
- let temp = {
649
- label: this.$login.f.f_gasman[i].name,
650
- value: this.$login.f.f_gasman[i].name
651
- }
652
- rs.push(temp)
653
- }
654
- }
655
- return [ ...rs]
656
- },
657
- pricetypes () {
658
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
659
- },
660
- meterTypes () {
661
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
662
- },
663
- usertypes () {
664
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
665
- },
666
- getPricenames () {
667
- console.log('getPricenames======')
668
- let f_user_type = this.$refs.paged.$refs.criteria.model.f_user_type
669
- let f_gasproperties = this.$refs.paged.$refs.criteria.model.f_gasproperties
670
- let pricetype = this.$refs.paged.$refs.criteria.model.pricetype
671
- console.log('打印一下:', pricetype)
672
- if (this.$refs.paged.$refs.criteria.model !== null) {
673
- let rs = []
674
- let priceArr = []
675
- if (pricetype.length > 0 && f_user_type.length > 0 && f_gasproperties.length > 0) {
676
- let params = {
677
- f_user_type: f_user_type[0],
678
- f_gasproperties: f_gasproperties[0],
679
- f_price_type: pricetype[0]
680
- }
681
- console.log('params', params)
682
- console.log('getPricenames======', this.$GetSaleParam.getPrice(params))
683
- this.$GetSaleParam.getPrice(params).forEach((item) => {
684
- let temp = {}
685
- temp.label = item.label
686
- temp.value = item.value.f_price_id
687
- priceArr.push(temp)
688
- })
689
- rs = [ ...priceArr]
690
- }
691
- if (rs.length === 0) {
692
- console.log('rs读出来是空')
693
- this.$refs.paged.$refs.criteria.model.f_price_name = ''
694
- }
695
- return rs
696
- }
697
- }
698
-
699
- }
700
-
701
- }
702
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row" >
7
+ <div class="form-group col-sm-4" >
8
+ <label class="font_normal_body">客户编号</label>
9
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
10
+ condition="info.f_userinfo_code = '{}'" @keyup.enter="search()">
11
+ </div>
12
+
13
+ <div class="form-group col-sm-4 button-range" >
14
+
15
+ <button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
16
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.saveSort()">保存当前顺序</button>
17
+ <button class="button_search" v-if="$parent.$parent.editsort==false" @click="$parent.$parent.editsort=true" v-el:cba>调整顺序</button>
18
+ <button class="button_search" v-if="$parent.$parent.editsort==true" @click="$parent.$parent.saveEditSort" v-el:cba>保存顺序</button>
19
+ <export-excel
20
+ :data="{condition: $parent.$parent.condition}"
21
+ :field="$parent.$parent.getfield"
22
+ sqlurl="rs/logic/exportfile" sql-name="saleGetMeterBookUser" :template-name="$parent.$parent.model.rows[0].f_book_name+'抄表册名'"
23
+ :choose-col="true"></export-excel>
24
+ <button class="button_export button_spacing" @click="$parent.$parent.importFile">导入</button>
25
+
26
+ <div
27
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
28
+ @click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"
29
+ class="button_spacing"
30
+ style="float: right"></div>
31
+ </div>
32
+ </div>
33
+ <div class="row" v-show="$parent.$parent.criteriaShow">
34
+ <div class="col-sm-4 form-group">
35
+ <label class="font_normal_body">客户姓名</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name" placeholder='客户姓名'
37
+ condition="info.f_user_name like '%{}%'">
38
+ </div>
39
+ <div class="col-sm-4 form-group">
40
+ <label class="font_normal_body">客户地址</label>
41
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
42
+ condition="address.f_address like '%{}%'" placeholder='客户地址'>
43
+ </div>
44
+ <div class="col-sm-4 form-group">
45
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
46
+ <input style="width:60%" type="text" class="form-control" v-model="model.f_meternumber"
47
+ condition="uf.f_meternumber like '%{}%'" placeholder='表号'
48
+ >
49
+ </div>
50
+ <div class="col-sm-4 form-group">
51
+ <label class="font_normal_body">气表品牌</label>
52
+ <v-select :value.sync="model.f_gasbrand_id"
53
+ v-model="model.f_gasbrand_id"
54
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
55
+ condition="gb.f_meter_brand = '{}'"
56
+ close-on-select></v-select>
57
+ </div>
58
+ <div class="col-sm-4 form-group">
59
+ <label class="font_normal_body">气表类型</label>
60
+ <v-select :value.sync="model.f_meter_type"
61
+ v-model="model.f_meter_type"
62
+ :options='$parent.$parent.meterTypes' placeholder='请选择'
63
+ condition="gb.f_meter_type = '{}'"
64
+ close-on-select></v-select>
65
+ </div>
66
+ <div class="col-sm-4 form-group">
67
+ <label class="font_normal_body">客户类型</label>
68
+ <v-select :value.sync="model.f_user_type"
69
+ :options='$parent.$parent.usertypes'
70
+ @change="$parent.$parent.userTypeChange()"
71
+ placeholder='请选择' v-model="model.f_user_type"
72
+ condition="uf.f_user_type = '{}'"
73
+ close-on-select></v-select>
74
+ </div>
75
+ <div class="col-sm-4 form-group">
76
+ <label class="font_normal_body">用气性质</label>
77
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
78
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
79
+ condition="uf.f_gasproperties = '{}'"
80
+ close-on-select></v-select>
81
+ </div>
82
+ <div class="col-sm-4 form-group">
83
+ <label class="font_normal_body">气价类型</label>
84
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
85
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
86
+ condition="sp.f_price_type = '{}'"
87
+ close-on-select v-ref:type>
88
+ </v-select>
89
+ </div>
90
+ <div class="col-sm-4 form-group">
91
+ <label class="font_normal_body">气价名称</label>
92
+ <v-select :value.sync="model.f_price_id"
93
+ v-model="model.f_price_id"
94
+ :options="$parent.$parent.getPricenames"
95
+ placeholder='请选择'
96
+ condition="uf.f_price_id = '{}'"
97
+ close-on-select></v-select>
98
+ </div>
99
+ <div class="col-sm-4 form-group">
100
+ <label class="font_normal_body">客户电话</label>
101
+ <input class="input_search"
102
+ condition="info.f_user_phone = '{}'" placeholder='电话' style="width:60%"
103
+ type="text"
104
+ v-model="model.f_user_phone">
105
+ </div>
106
+ <div class="col-sm-4 form-group">
107
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
108
+ <input style="width:60%" type="text" class="form-control" v-model="model.f_residential_area"
109
+ condition="address.f_residential_area like '%{}%'" placeholder='小区'
110
+ >
111
+ </div>
112
+ <div class="col-sm-4 form-group">
113
+ <label class="font_normal_body">楼&emsp;&emsp;栋</label>
114
+ <input style="width:60%" type="text" class="form-control" v-model="model.f_building"
115
+ condition="address.f_building like '%{}%'" placeholder='楼栋'
116
+ >
117
+ </div>
118
+ <div class="col-sm-4 form-group">
119
+ <label class="font_normal_body">单&emsp;&emsp;元</label>
120
+ <input style="width:60%" type="text" class="form-control" v-model="model.f_unit"
121
+ condition="address.f_unit like '%{}%'" placeholder='单元'
122
+ >
123
+ </div>
124
+ <div class="col-sm-4 form-group">
125
+ <label class="font_normal_body">表箱号&emsp;</label>
126
+ <input style="width:60%" type="text" class="form-control" v-model="model.f_metertitles"
127
+ condition="uf.f_metertitles like '%{}%'" placeholder='表箱号'
128
+ >
129
+ </div>
130
+ <div class="col-sm-4 form-group">
131
+ <label class="font_normal_body">入户证号</label>
132
+ <input style="width:60%" type="text" class="form-control" v-model="model.f_book_no"
133
+ condition="info.f_book_no like '%{}%'" placeholder='入户证号'
134
+ >
135
+ </div>
136
+ <div class="col-sm-4 form-group">
137
+ <label class="font_normal_body">抄&nbsp;表&nbsp;员&nbsp;</label>
138
+ <v-select :value.sync="model.f_inputtor" v-model='model.f_inputtor'
139
+ style="width:60%"
140
+ multiple="true"
141
+ condition="uf.f_inputtor in {}"
142
+ :options='$parent.$parent.inputtores' placeholder='抄表员'
143
+ close-on-select
144
+ v-el:cc></v-select>
145
+ </div>
146
+ </div>
147
+ </div>
148
+ </criteria>
149
+ <data-grid :model="model" class="table_sy" partial='list' v-ref:grid>
150
+ <template partial='head' >
151
+ <tr>
152
+ <th v-if="$parent.$parent.$parent.editsort"><nobr>操作</nobr></th>
153
+ <th><nobr>客户编号</nobr></th>
154
+ <th><nobr>客户名称</nobr></th>
155
+ <th>
156
+ <data-order field="f_street" name="街道"
157
+ :order.sync="$parent.$parent.$parent.orderFields.f_street"></data-order>
158
+ </th>
159
+ <th>
160
+ <data-order field="f_residential_area" name="小区"
161
+ :order.sync="$parent.$parent.$parent.orderFields.f_residential_area"></data-order>
162
+ </th>
163
+ <th>
164
+ <data-order field="f_building" name="楼栋"
165
+ :order.sync="$parent.$parent.$parent.orderFields.f_building"></data-order>
166
+ </th>
167
+ <th>
168
+ <data-order field="f_unit" name="单元"
169
+ :order.sync="$parent.$parent.$parent.orderFields.f_unit"></data-order>
170
+ </th>
171
+ <th>
172
+ <data-order field="f_floor" name="楼层"
173
+ :order.sync="$parent.$parent.$parent.orderFields.f_floor"></data-order>
174
+ </th>
175
+ <th>
176
+ <data-order field="f_room" name="房间号"
177
+ :order.sync="$parent.$parent.$parent.orderFields.f_room"></data-order>
178
+ </th>
179
+ <th>
180
+ <data-order field="f_address" name="客户地址"
181
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
182
+ </th>
183
+ <th><nobr>客户电话</nobr></th>
184
+ <th><nobr>表号</nobr></th>
185
+ <th>
186
+ <data-order field="f_meter_book_sort" name="册内排序"
187
+ :order.sync="$parent.$parent.$parent.orderFields.f_meter_book_sort"></data-order>
188
+ </th>
189
+ <th><nobr>抄表册名称</nobr></th>
190
+ <th><nobr>抄表员</nobr></th>
191
+ <th><nobr>表箱号</nobr></th>
192
+ <th><nobr>入户证号</nobr></th>
193
+ <th><nobr>表底数</nobr></th>
194
+ <th><nobr>用户类型</nobr></th>
195
+ <th><nobr>用气类型</nobr></th>
196
+ <th><nobr>气表品牌</nobr></th>
197
+ <th><nobr>气表型号</nobr></th>
198
+ <th><nobr>抄表日期</nobr></th>
199
+ </tr>
200
+ </template>
201
+ <template partial='body' >
202
+ <tr >
203
+ <td style="text-align:center" v-if="$parent.$parent.$parent.editsort"><nobr>
204
+ <span class="glyphicon glyphicon-arrow-up" @click="$parent.$parent.$parent.sortUp($index, row)" v-el:cba></span></nobr>
205
+ <span class="glyphicon glyphicon-arrow-down" @click="$parent.$parent.$parent.sortDown($index, row)" v-el:cba></span></nobr>
206
+ </td>
207
+ <td style="text-align:center"><nobr><span @click="$parent.$parent.$parent.dealmsg(row)"><a><b>{{row.f_userinfo_code}}</b></a></span></nobr></td>
208
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
209
+ <td style="text-align:center;white-space: nowrap;"><nobr>{{row.f_street}}</nobr></td>
210
+ <td style="text-align:center;white-space: nowrap;"><nobr>{{row.f_residential_area}}</nobr></td>
211
+ <td style="text-align:center;white-space: nowrap;"><nobr>{{row.f_building}}</nobr></td>
212
+ <td style="text-align:center;white-space: nowrap;"><nobr>{{row.f_unit}}</nobr></td>
213
+ <td style="text-align:center;white-space: nowrap;"><nobr>{{row.f_floor}}</nobr></td>
214
+ <td style="text-align:center;white-space: nowrap;"><nobr>{{row.f_room}}</nobr></td>
215
+ <td style="text-align:center;white-space: nowrap;"><nobr>{{row.f_address}}</nobr></td>
216
+ <td style="text-align:center"><nobr>{{row.f_user_phone}}</nobr></td>
217
+ <td style="text-align:center;white-space: nowrap;"><nobr>{{row.f_meternumber}}</nobr></td>
218
+ <td style="text-align:center;"><nobr>{{row.f_meter_book_sort}}</nobr></td>
219
+ <td style="text-align:center"><nobr>{{row.f_book_name}}</nobr></td>
220
+ <td style="text-align:center"><nobr>{{row.f_inputtor}}</nobr></td>
221
+ <td style="text-align:center"><nobr>{{row.f_metertitles}}</nobr></td>
222
+ <td style="text-align:center"><nobr>{{row.f_book_no}}</nobr></td>
223
+ <td style="text-align:center"><nobr>{{row.f_meter_base}}</nobr></td>
224
+ <td style="text-align:center"><nobr>{{row.f_user_type}}</nobr></td>
225
+ <td style="text-align:center"><nobr>{{row.f_gasproperties}}</nobr></td>
226
+ <td style="text-align:center"><nobr>{{row.f_meter_brand}}</nobr></td>
227
+ <td style="text-align:center"><nobr>{{row.f_meter_style}}</nobr></td>
228
+ <td style="text-align:center"><nobr>{{row.f_hand_date}}</nobr></td>
229
+ </tr>
230
+ </template>
231
+ <template partial='foot'></template>
232
+ </data-grid>
233
+ </criteria-paged>
234
+ </div>
235
+ <modal :show.sync="sortShow" width="500px" title="修改册内排序" v-ref:modal large backdrop="false">
236
+ <article slot="modal-body" class="modal-body">
237
+ <div>
238
+ <div class="row app-row">
239
+ <p class="col-sm-6">客户编号:{{row.f_userinfo_code}}</p>
240
+ <p class="col-sm-6">客户姓名:{{row.f_user_name}}</p>
241
+ <p class="col-sm-6">所在表册:{{row.f_book_name}}</p>
242
+ <p class="col-sm-6">册内排序:{{row.f_meter_book_sort}}</p>
243
+ <label for="f_plan_name" class="font text-left">目标用户编号:</label>
244
+ <input type="text" @change="getBook()" class="search_input input-font" v-model="fileinfo.code" placeholder='目标用户编号'
245
+ >
246
+ </div>
247
+ <div class="row app-row" v-show="fileinfo.meterbook && fileinfo.sort">
248
+ <p class="col-sm-6">表册:{{fileinfo.meterbook}}</p>
249
+ <p class="col-sm-6">册内排序:{{fileinfo.sort}}</p>
250
+ </div>
251
+ <div class="row app-row">
252
+ <div class="col-sm-6" style="text-align: center;">
253
+
254
+ <button type="button" class="button_search" style="width:40%;background-color: #499EDF;color:#f2f6fa" :disabled="!(fileinfo.meterbook && fileinfo.sort)" @click="sortEdit(0)"><img src="./../../../../static/images/meterBook/up.png" style="width: 20%;margin-left:-10px"></img>&nbsp;前</button>
255
+ </div>
256
+ <div class="col-sm-6" style="text-align: center;">
257
+ <button type="button" class="button_search" style="width:40%;background-color: #499EDF;color:#f2f6fa" :disabled="!(fileinfo.meterbook && fileinfo.sort)" @click="sortEdit(1)">后&nbsp;<img src="./../../../../static/images/meterBook/down.png" style="width: 20%;"></img></button>
258
+ </div>
259
+ </div>
260
+ </div>
261
+
262
+
263
+ </article>
264
+ <footer slot="modal-footer" class="modal-footer" v-show="false">
265
+
266
+ </footer>
267
+ </modal>
268
+ <modal :show.sync="show" width="800px" title="文件导入" v-ref:modal large backdrop="false">
269
+ <article slot="modal-body" class="modal-body">
270
+ <file-upload class="my-file-uploader " name="UploadFile" style="border-radius: 2px;"
271
+ action="rs/file/uploadFile" tagname="导入表册用户" v-ref:file multiple></file-upload>
272
+ </article>
273
+ <footer slot="modal-footer" class="modal-footer">
274
+ </footer>
275
+ </modal>
276
+ </template>
277
+
278
+ <script>
279
+ import {HttpResetClass, PagedList} from 'vue-client'
280
+ let readyGen = async function (self) {
281
+ self.getfield = self.config.excelHeaders
282
+ // await this.$LoadParams.loadParam(this.f_filialeid)
283
+ self.search()
284
+ await self.$LoadParams.loadParam()
285
+ self.initParams()
286
+ }
287
+
288
+ export default {
289
+ title: '',
290
+ data () {
291
+ return {
292
+ model: new PagedList('rs/sql/getMeterBookUser', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_meter_book_sort asc'`}),
293
+ condition: '',
294
+ getfield: {},
295
+ show: false,
296
+ row:null,
297
+ sortShow:false,
298
+ fileinfo: {
299
+ code:null,
300
+ meterbook:null,
301
+ booknum:null,
302
+ sort:null,
303
+ fileid:null,
304
+ infoid:null
305
+ },
306
+ gasproperties: [],
307
+ f_filialeid: this.$login.f.orgid,
308
+ newinfo: {
309
+ f_user_type: '',
310
+ f_gasproperties: '',
311
+ pricetype: '',
312
+ bookname: '',
313
+ f_perform_date: this.$login.toStandardDateString() + ' 00:00:00' // 操作时间
314
+ },
315
+ meterbrands: [],
316
+ adjustables: [],
317
+ meterstyle: {},
318
+ criteriaShow: false,
319
+ editsort:false,
320
+ //排序
321
+ sortitem:'f_meter_book_sort',
322
+ rule:'asc',
323
+ orderitem:'f_meter_book_sort desc',
324
+ orderFields: {
325
+ f_meter_book_sort: 'no'
326
+ },
327
+ config: {
328
+ excelHeaders: {
329
+ 'f_userfiles_id': '系统识别号',
330
+ 'f_book_name': '抄表册名称',
331
+ 'f_userinfo_code': '客户编号',
332
+ 'f_user_name': '客户姓名',
333
+ 'f_user_phone': '客户电话',
334
+ 'f_meternumber': '表号',
335
+ 'f_address': '客户地址',
336
+ 'f_inputtor': '抄表员',
337
+ 'f_meter_book_sort': '册内排序',
338
+ 'f_metertitles': '表箱号',
339
+ 'f_meter_base': '表底数',
340
+ 'f_user_type': '用户类型',
341
+ 'f_gasproperties': '用气类型',
342
+ 'f_meter_classify': '气表品牌',
343
+ 'f_gasmodel_id': '气表型号',
344
+ 'f_hand_date': '抄表日期'
345
+ }
346
+ }
347
+ }
348
+ },
349
+ props: ['f_meterbook_num','usercount'],
350
+ async ready () {
351
+ readyGen(this)
352
+ },
353
+ methods: {
354
+ sort (field, rule) {
355
+ // 将所有排序方式设为不排序,实现相互排斥
356
+ for (let key in this.orderFields) {
357
+ if (key === field) {
358
+ this.orderFields[key] = rule
359
+ } else {
360
+ this.orderFields[key] = 'no'
361
+ }
362
+ }
363
+ // 如果新规则不排序,还原为默认排序
364
+ if (rule === 'no') {
365
+ this.model.paramSource.orderitem = `'f_meter_book_sort asc'`
366
+ this.rule= 'asc'
367
+ this.sortitem='f_meter_book_sort'
368
+ } else {
369
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
370
+ this.rule= rule
371
+ this.sortitem=field
372
+ }
373
+ this.search()
374
+ },
375
+ async saveSort(){
376
+ if (!this.$login.r.find(value => value == '册内用户排序')) {
377
+ this.$showMessage('你没有【册内用户排序】的权限,请联系管理员!')
378
+ return
379
+ }
380
+ if(this.model.count<this.usercount){
381
+ this.$showAlert('该功能适用于给表册内所有用户排序的情况,请去掉查询条件', 'warning', 3000)
382
+ }else{
383
+ this.$showMessage('此操作会将表册内用户按照现有查询结果的顺序排序,是否继续', ['confirm', 'cancel']).then((res) => {
384
+ if (res == 'confirm') {
385
+ this.$resetpost('rs/logic/changeBookSort',
386
+ {
387
+ data: {
388
+ f_meter_book_num: this.f_meterbook_num,
389
+ sortitem: this.sortitem,
390
+ rule: this.rule
391
+ }
392
+ }, {resolveMsg: '已成功修改册内排序!!', rejectMsg: '册内排序修改失败!!'})
393
+ this.search()
394
+ }
395
+ })
396
+ }
397
+ },
398
+ importFile () {
399
+ if (!this.$login.r.find(value => value == '表册排序导入')) {
400
+ this.$showMessage('你没有【表册排序导入】的权限,请联系管理员!')
401
+ return
402
+ }
403
+ this.show = true
404
+ },
405
+ async sortEdit(position){
406
+ if(!this.fileinfo.code){
407
+ this.$showMessage('请输入目标用户编号')
408
+ return
409
+ }
410
+ // position:
411
+ // 0--将改用户的表册顺序排到目标用户前
412
+ // 1--将改用户的表册顺序排到目标用户后
413
+ if((!this.fileinfo.sort) ||(!this.fileinfo.booknum) ){
414
+ this.$showMessage('目标用户无表册或在表册内无排序')
415
+ return
416
+ }
417
+ let http = new HttpResetClass()
418
+ await http.load('POST', 'rs/logic/sale_editBookSort', {data: {fileinfo: this.fileinfo,position:position,userfilesid:this.row.f_userfiles_id}}, {resolveMsg: '已成功将改表移到指定的表册位置', rejectMsg: '移动册内位置失败'})
419
+ this.fileinfo= {
420
+ code:null,
421
+ fileid:null,
422
+ booknum:null,
423
+ meterbook:null,
424
+ infoid:null,
425
+ sort:null
426
+ }
427
+ this.sortShow=false
428
+ this.search()
429
+ },
430
+ async getBook(){
431
+ if(this.fileinfo.code){
432
+ let http = new HttpResetClass()
433
+ let res = await http.load('POST', 'rs/sql/sale_getUserMeterBook', {
434
+ data: {
435
+ condition: `i.f_userinfo_code='${this.fileinfo.code}'`
436
+ }
437
+ }, {resolveMsg: null, rejectMsg: null})
438
+ console.log("-------------------res:",res.data)
439
+ if(res.data.length===1){
440
+ if((!res.data[0].f_meter_book_sort )||(!res.data[0].f_meter_book_num) ){
441
+ this.$showMessage('该用户不在表册内或在表册内无排序')
442
+ this.fileinfo= {
443
+ code:this.fileinfo.code,
444
+ fileid:null,
445
+ booknum:null,
446
+ meterbook:null,
447
+ infoid:null,
448
+ sort:null
449
+ }
450
+ return
451
+ }
452
+ this.fileinfo.meterbook=res.data[0].f_book_name
453
+ this.fileinfo.sort=res.data[0].f_meter_book_sort
454
+ this.fileinfo.fileid=res.data[0].f_userfiles_id
455
+ this.fileinfo.infoid=res.data[0].f_userinfo_id
456
+ this.fileinfo.booknum=res.data[0].f_meter_book_num
457
+ }else{
458
+ this.$showMessage('请核对输入的用户编号')
459
+ this.fileinfo= {
460
+ code:this.fileinfo.code,
461
+ fileid:null,
462
+ booknum:null,
463
+ meterbook:null,
464
+ infoid:null,
465
+ sort:null
466
+ }
467
+ }
468
+ }
469
+
470
+ },
471
+ // dblclick(obj){
472
+ // console.log("-------------------------row",obj)
473
+ // this.row=obj
474
+ // this.sortShow=true
475
+ // },
476
+ async saveEditSort (){
477
+ for (let item of this.$refs.paged.$refs.grid.model.rows) {
478
+ let param={
479
+ f_userfiles_id:item.f_userfiles_id,
480
+ version:item.fileversion,
481
+ f_meter_book_sort:item.f_meter_book_sort
482
+ }
483
+ let http = new HttpResetClass()
484
+ await http.load('POST', 'rs/entity/t_userfiles',
485
+ param,
486
+ {resolveMsg: null, rejectMsg: "保存失败"})
487
+ }
488
+ this.editsort=false
489
+ },
490
+ // 下移按钮
491
+ sortDown (index, row) {
492
+ if (index === (this.model.rows.length - 1)) {
493
+ this.$showAlert('已经是本页最后一个了', 'warning', 2000)
494
+ } else {
495
+ let rows=this.$refs.paged.$refs.grid.model.rows
496
+ this.$refs.paged.$refs.grid.model.rows=[]
497
+ let temp = rows[index + 1]
498
+ rows[index+1]=rows[index]
499
+ rows[index]=temp
500
+
501
+ let tempsort=rows[index + 1].f_meter_book_sort
502
+ rows[index+1].f_meter_book_sort=rows[index].f_meter_book_sort
503
+ rows[index].f_meter_book_sort=tempsort
504
+
505
+ this.$refs.paged.$refs.grid.model.rows=rows
506
+
507
+ }
508
+ },
509
+ // 上移按钮
510
+ sortUp (index, row) {
511
+
512
+ if (index === 0) {
513
+ this.$showAlert('已经是本页第一个了', 'warning', 2000)
514
+ } else {
515
+
516
+
517
+ let rows=this.$refs.paged.$refs.grid.model.rows
518
+
519
+ this.$refs.paged.$refs.grid.model.rows=[]
520
+ let temp = rows[index - 1]
521
+ rows[index-1]=rows[index]
522
+ rows[index]=temp
523
+ console.log("--------------this.$refs.paged.$refs.grid.model.rows,",rows)
524
+
525
+ let tempsort=rows[index - 1].f_meter_book_sort
526
+ rows[index-1].f_meter_book_sort=rows[index].f_meter_book_sort
527
+ rows[index].f_meter_book_sort=tempsort
528
+ this.$refs.paged.$refs.grid.model.rows=rows
529
+ }
530
+ },
531
+ close () {
532
+ this.show = false
533
+ this.newinfo = {
534
+ f_user_type: '',
535
+ f_gasproperties: '',
536
+ pricetype: '',
537
+ bookname: ''
538
+ }
539
+ },
540
+
541
+ userTypeChange () {
542
+ this.gasproperties = []
543
+ if (this.$refs.paged.$refs.criteria.model !== null) {
544
+ this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
545
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
546
+ } else {
547
+ this.gasproperties = [{label: '全部', value: ''}]
548
+ }
549
+ },
550
+
551
+ async initParams () {
552
+ console.log('=================>加载', this.$GetSaleParam.getGasbrand())
553
+ let arr = []
554
+ let filter = this.$login.f.orgid
555
+ this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
556
+ let temp = {}
557
+ temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
558
+ temp.value = `${item.value.id}`
559
+ arr.push(temp)
560
+ })
561
+ this.adjustables = [{label: '全部', value: ''}, ...arr]
562
+ // 初始化气表品牌
563
+ let brandArr = []
564
+ this.$GetSaleParam.getGasbrand().forEach((item) => {
565
+ let temp = {}
566
+ temp.label = item.label
567
+ temp.value = item.value.id
568
+ brandArr.push(temp)
569
+ // 取出对应气表型号
570
+ let styleArr = []
571
+ for (let row of item.value.gasmodel) {
572
+ styleArr.push({label: row.label, value: row.value.id})
573
+ }
574
+ this.meterstyle[temp.value] = styleArr
575
+ })
576
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
577
+ // 初始化气表价格
578
+ this.prices = this.$GetSaleParam.getPrice(filter)
579
+ },
580
+ sortModelval () {
581
+ let sortModel = []
582
+ Object.keys(this.fields).forEach((key) => {
583
+ if (this.modelval.includes(key)) {
584
+ sortModel.push(key)
585
+ }
586
+ })
587
+ this.modelval = sortModel
588
+ console.log('选择的打印的字段', this.modelval)
589
+ },
590
+ async updateParams () {
591
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
592
+ this.initParams()
593
+ },
594
+
595
+ loadMeterBooks () {
596
+ let meterbrand = this.$GetSaleParam.getGasbrand()
597
+ for (let row of meterbrand) {
598
+ console.log(row)
599
+ this.meterbrands.push({label: row.label, value: row.value.id})
600
+ }
601
+ },
602
+ search () {
603
+ this.$refs.paged.$refs.criteria.search()
604
+ },
605
+
606
+ selfSearch (args) {
607
+ this.editsort=false
608
+ args.condition = `${args.condition} and f_meter_book_num = '${this.f_meterbook_num}'`
609
+ this.condition = args.condition
610
+ this.model.search(args.condition, args.model)
611
+ },
612
+ dealmsg (val) {
613
+ this.$parent.f_userinfo_id = val.f_userinfo_id
614
+ this.$parent.listpage = false
615
+ }
616
+
617
+ },
618
+ watch: {
619
+ 'f_meterbook_num' (val) {
620
+ this.search()
621
+ }
622
+ },
623
+ events: {
624
+ onFileUpload: function (file, res) {
625
+ // let URL = res.f_downloadpath.substring(res.f_downloadpath.lastIndexOf(":\\") + 2)
626
+ // res.f_downloadpath = "http://" + location.host + "/" + URL
627
+ // res.f_downloadpath.replace('\\','/')
628
+ this.$resetpost('rs/logic/upLoadBookFile',
629
+ {data: {
630
+ condition: this.condition,
631
+ filepath: res.f_downloadpath
632
+ }
633
+ },
634
+ {resolveMsg: null, rejectMsg: '上传失败'}).then((res) => {
635
+ this.show = false
636
+ this.$showAlert(`导入成功`, 'success', 2000)
637
+ this.search()
638
+ })
639
+ }
640
+ },
641
+ computed: {
642
+ inputtores () {
643
+ // 获取抄表员
644
+ console.log('获取抄表员', this.$login.f)
645
+ let rs = []
646
+ if (this.$login.f.f_gasman.length > 0) {
647
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
648
+ let temp = {
649
+ label: this.$login.f.f_gasman[i].name,
650
+ value: this.$login.f.f_gasman[i].name
651
+ }
652
+ rs.push(temp)
653
+ }
654
+ }
655
+ return [ ...rs]
656
+ },
657
+ pricetypes () {
658
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
659
+ },
660
+ meterTypes () {
661
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
662
+ },
663
+ usertypes () {
664
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
665
+ },
666
+ getPricenames () {
667
+ console.log('getPricenames======')
668
+ let f_user_type = this.$refs.paged.$refs.criteria.model.f_user_type
669
+ let f_gasproperties = this.$refs.paged.$refs.criteria.model.f_gasproperties
670
+ let pricetype = this.$refs.paged.$refs.criteria.model.pricetype
671
+ console.log('打印一下:', pricetype)
672
+ if (this.$refs.paged.$refs.criteria.model !== null) {
673
+ let rs = []
674
+ let priceArr = []
675
+ if (pricetype.length > 0 && f_user_type.length > 0 && f_gasproperties.length > 0) {
676
+ let params = {
677
+ f_user_type: f_user_type[0],
678
+ f_gasproperties: f_gasproperties[0],
679
+ f_price_type: pricetype[0]
680
+ }
681
+ console.log('params', params)
682
+ console.log('getPricenames======', this.$GetSaleParam.getPrice(params))
683
+ this.$GetSaleParam.getPrice(params).forEach((item) => {
684
+ let temp = {}
685
+ temp.label = item.label
686
+ temp.value = item.value.f_price_id
687
+ priceArr.push(temp)
688
+ })
689
+ rs = [ ...priceArr]
690
+ }
691
+ if (rs.length === 0) {
692
+ console.log('rs读出来是空')
693
+ this.$refs.paged.$refs.criteria.model.f_price_name = ''
694
+ }
695
+ return rs
696
+ }
697
+ }
698
+
699
+ }
700
+
701
+ }
702
+ </script>