apply-clients 5.0.361 → 6.0.3

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 (192) hide show
  1. package/build/css-loaders.js +34 -0
  2. package/build/dev-android.js +101 -0
  3. package/build/dev-client.js +8 -0
  4. package/build/dev-server-app.js +76 -0
  5. package/build/dev-server.js +72 -0
  6. package/build/example-server.js +80 -0
  7. package/build/release.sh +28 -0
  8. package/build/utils.js +80 -0
  9. package/build/webpack.base.conf.js +83 -0
  10. package/build/webpack.baseandroid.conf.js +84 -0
  11. package/build/webpack.dev.conf.js +39 -0
  12. package/build/webpack.devandroid.conf.js +34 -0
  13. package/build/webpack.example.conf.js +49 -0
  14. package/build/webpack.prod.conf.js +60 -0
  15. package/build/webpack.prodandroid.conf.js +60 -0
  16. package/build/webpack.test.conf.js +31 -0
  17. package/dist-android/static/.gitkeep +0 -0
  18. package/dist-android/static/batchleft.png +0 -0
  19. package/dist-android/static/batchright.png +0 -0
  20. package/dist-android/static/bluemainbg.jpg +0 -0
  21. package/dist-android/static/huangtengbiaozhi.png +0 -0
  22. package/dist-android/static/login_bg.jpg +0 -0
  23. package/dist-android/static/login_title.png +0 -0
  24. package/dist-android/static/login_title1.png +0 -0
  25. package/dist-android/static/loginbg.jpg +0 -0
  26. package/dist-android/static/loginlogo.png +0 -0
  27. package/dist-android/static/main_logo.png +0 -0
  28. package/dist-android/static/mainbg.jpg +0 -0
  29. package/dist-android/static/menulogo.png +0 -0
  30. package/dist-android/static/newmainbg.jpg +0 -0
  31. package/dist-android/static/psicon.png +0 -0
  32. package/dist-android/static/singleleft.png +0 -0
  33. package/dist-android/static/singleright.png +0 -0
  34. package/dist-android/static/treeopen.png +0 -0
  35. package/dist-android/static/treeout.png +0 -0
  36. package/dist-android/static/treeset.png +0 -0
  37. package/dist-android/static/usericon.png +0 -0
  38. package/dist-android/static/xinxi.png +0 -0
  39. package/package.json +5 -10
  40. package/src/AndroidApp.vue +1 -1
  41. package/src/App.vue +0 -1
  42. package/src/apply.js +172 -104
  43. package/src/applyAndroid.js +0 -5
  44. package/src/assets/shipin1.mp4 +0 -0
  45. package/src/bootstrap/less/bootstrap.less +2 -1
  46. package/src/components/Hello.vue +39 -0
  47. package/src/components/Table.js +2 -2
  48. package/src/components/Test.vue +26 -0
  49. package/src/components/Util.js +6 -11
  50. package/src/components/app_apply/Acceptance.vue +2 -7
  51. package/src/components/app_apply/ApplyApp.vue +6 -16
  52. package/src/components/app_apply/ApplyInfo.vue +1 -1
  53. package/src/components/app_apply/ApplyListUpload.vue +3 -3
  54. package/src/components/app_apply/ApplyToDoList.vue +3 -3
  55. package/src/components/app_apply/ApplyUserInfo.vue +3 -2
  56. package/src/components/app_apply/FieldExploration.vue +1 -3
  57. package/src/components/app_apply/PlaceControler.vue +49 -38
  58. package/src/components/{product/VueUtils → apply/base}/rightview/InstallCardList2.vue +38 -29
  59. package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/ReduceFeeDetail2.vue +77 -77
  60. package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/StopApplyDetail2.vue +1 -1
  61. package/src/components/build/Install/ApplyChargeSearch.vue +210 -0
  62. package/src/components/build/Install/ExplorationSelect.vue +308 -0
  63. package/src/components/build/Install/ExplorationUser.vue +315 -0
  64. package/src/components/build/Install/InstallFee/AddContract.vue +257 -0
  65. package/src/components/build/Install/InstallFee/InstallFee.vue +929 -0
  66. package/src/components/build/Install/InstallFee/InstallFee2.vue +291 -0
  67. package/src/components/{product/Function/functions → build/Install/InstallFee}/InstallFeeInfo.vue +11 -42
  68. package/src/components/build/Install/InstallFee/InstallFunction.vue +242 -0
  69. package/src/components/build/Install/InstallFee/InstallInfoSelect.vue +232 -0
  70. package/src/components/{product/Process → build/Install}/ModifyUserFiles.vue +1 -1
  71. package/src/components/build/Install/Process/BuildJob.vue +242 -0
  72. package/src/components/build/Install/Process/ContratSigne.vue +283 -0
  73. package/src/components/build/Install/Process/CustomerEssentialInfo.vue +325 -0
  74. package/src/components/build/Install/Process/CustomerFile.vue +423 -0
  75. package/src/components/build/Install/Process/CustomerMaterialMessage.vue +414 -0
  76. package/src/components/build/Install/Process/CustomerRecordMessage.vue +749 -0
  77. package/src/components/build/Install/Process/DispatchingJob.vue +261 -0
  78. package/src/components/build/Install/Process/FeeNorme.vue +252 -0
  79. package/src/components/build/Install/Process/FeeNormeAndContratSigne.vue +376 -0
  80. package/src/components/build/Install/Process/FeeVerifier.vue +199 -0
  81. package/src/components/build/Install/Process/IgnitionVentilation.vue +232 -0
  82. package/src/components/build/Install/Process/MeterType.vue +379 -0
  83. package/src/components/build/Install/Process/PlaceControler.vue +304 -0
  84. package/src/components/build/Install/Process/ProjeterFigure.vue +211 -0
  85. package/src/components/build/Install/Process/ReceivingNote.vue +317 -0
  86. package/src/components/build/Install/Process/boneng/qbj_placecontroler.vue +370 -0
  87. package/src/components/build/Install/Process/zhongran/ZR_Construction.vue +388 -0
  88. package/src/components/build/Install/Process/zhongran/ZR_ContratSigne.vue +496 -0
  89. package/src/components/build/Install/Process/zhongran/ZR_CustomerEssentialInfo.vue +415 -0
  90. package/src/components/build/Install/Process/zhongran/ZR_DispatchingJob.vue +409 -0
  91. package/src/components/build/Install/Process/zhongran/ZR_FeeNorme.vue +342 -0
  92. package/src/components/build/Install/Process/zhongran/ZR_IgnitionVentilation.vue +253 -0
  93. package/src/components/build/Install/Process/zhongran/ZR_IgnitionVentilation_transfer.vue +198 -0
  94. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlan.vue +259 -0
  95. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlanExamine.vue +243 -0
  96. package/src/components/build/Install/Process/zhongran/ZR_PlaceControler.vue +426 -0
  97. package/src/components/build/Install/Process/zhongran/ZR_PlaceControler_print.vue +187 -0
  98. package/src/components/build/Install/Process/zhongran/ZR_ReceivingNote.vue +404 -0
  99. package/src/components/build/Install/Process/zhongran/ZR_ReceivingNote1.vue +301 -0
  100. package/src/components/build/Install/Process/zhongran/ZR_TestDesign.vue +441 -0
  101. package/src/components/build/Install/Process/zhongran/ZR_end.vue +20 -0
  102. package/src/components/build/Install/ProcessInfo/BasicInfo.vue +68 -0
  103. package/src/components/build/Install/ProcessInfo/BuildInfo.vue +110 -0
  104. package/src/components/build/Install/ProcessInfo/ContratProcessInfo.vue +116 -0
  105. package/src/components/build/Install/ProcessInfo/DispatchingInfo.vue +114 -0
  106. package/src/components/build/Install/ProcessInfo/FeeNormeInfo.vue +108 -0
  107. package/src/components/build/Install/ProcessInfo/FeeVerifierInfo.vue +102 -0
  108. package/src/components/build/Install/ProcessInfo/IgnitionInfo.vue +99 -0
  109. package/src/components/build/Install/ProcessInfo/MeterProcessInfo.vue +114 -0
  110. package/src/components/build/Install/ProcessInfo/PlaceProcessInfo.vue +115 -0
  111. package/src/components/build/Install/ProcessInfo/ProjeterProcessInfo.vue +107 -0
  112. package/src/components/build/Install/ProcessInfo/ReceivingInfo.vue +107 -0
  113. package/src/components/build/Install/ProcessInfo/zhongran/ZR_BasicInfo.vue +74 -0
  114. package/src/components/build/Install/ProcessInfo/zhongran/ZR_BuildInfo.vue +114 -0
  115. package/src/components/build/Install/ProcessInfo/zhongran/ZR_ContratProcessInfo.vue +114 -0
  116. package/src/components/build/Install/ProcessInfo/zhongran/ZR_DispatchingInfo.vue +119 -0
  117. package/src/components/build/Install/ProcessInfo/zhongran/ZR_FeeNormeInfo.vue +105 -0
  118. package/src/components/build/Install/ProcessInfo/zhongran/ZR_IgnitionInfo.vue +99 -0
  119. package/src/components/build/Install/ProcessInfo/zhongran/ZR_MaterialPlan_info.vue +104 -0
  120. package/src/components/build/Install/ProcessInfo/zhongran/ZR_PlaceProcessInfo.vue +109 -0
  121. package/src/components/build/Install/ProcessInfo/zhongran/ZR_ReceivingInfo.vue +102 -0
  122. package/src/components/build/Install/ProcessInfo/zhongran/ZR_ignition_transfer_info.vue +104 -0
  123. package/src/components/{product/Bill → build/Install/bill}/BillXSDMakeInfo.vue +1 -1
  124. package/src/components/build/Install/monitor/SupervisoryControl.vue +178 -0
  125. package/src/components/build/Install/monitor/SupervisoryList.vue +209 -0
  126. package/src/components/{product/Supervisory → build/Install/monitor}/SupervisoryhCart.vue +3 -29
  127. package/src/components/product/Process/Processes/Service/ServiceControl.vue +91 -1718
  128. package/src/main.js +2 -9
  129. package/src/stores/ApplyLoadParams.js +1 -1
  130. package/src/bootstrap/less/standard.less +0 -208
  131. package/src/components/app_apply/ServiceControl.vue +0 -442
  132. package/src/components/app_apply/ServiceView.vue +0 -356
  133. package/src/components/product/Common/ApplyValidateBill.vue +0 -55
  134. package/src/components/product/Common/PrintBill.vue +0 -120
  135. package/src/components/product/Function/InstallFunction.vue +0 -142
  136. package/src/components/product/Function/InstallInfoSelect.vue +0 -254
  137. package/src/components/product/Function/Service/FunctionServiceControl.vue +0 -328
  138. package/src/components/product/Function/functions/AddContract.vue +0 -301
  139. package/src/components/product/Function/functions/BuyerMessage.vue +0 -512
  140. package/src/components/product/Function/functions/InstallFee.vue +0 -919
  141. package/src/components/product/Function/functions/material_recording.vue +0 -237
  142. package/src/components/product/MaterialBatchList.vue +0 -109
  143. package/src/components/product/MaterialBatchManage.vue +0 -34
  144. package/src/components/product/Process/ExplorationSelect.vue +0 -636
  145. package/src/components/product/Process/ExplorationUser.vue +0 -131
  146. package/src/components/product/Process/MaterialUseList.vue +0 -159
  147. package/src/components/product/Process/ProcessInfo/history_control.vue +0 -134
  148. package/src/components/product/Process/Processes/CustomerMaterialMessage.vue +0 -776
  149. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +0 -910
  150. package/src/components/product/Process/Processes/ProjectSettlement.vue +0 -383
  151. package/src/components/product/Process/Processes/ReceiveBatch.vue +0 -957
  152. package/src/components/product/Process/Processes/SendOrder.vue +0 -47
  153. package/src/components/product/Process/Processes/Service/ApplyAcceptBill.vue +0 -89
  154. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +0 -305
  155. package/src/components/product/Process/Processes/Service/GasStop.vue +0 -96
  156. package/src/components/product/Process/ShowBackReason.vue +0 -18
  157. package/src/components/product/ServiceView.vue +0 -800
  158. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +0 -407
  159. package/src/components/product/Supervisory/SupervisoryControl.vue +0 -130
  160. package/src/components/product/Supervisory/SupervisoryList.vue +0 -349
  161. package/src/components/product/stopInfo/ApplyStopInfo.vue +0 -280
  162. package/src/plugins/commonService.js +0 -229
  163. package/yarn.lock +0 -8072
  164. /package/src/components/{product/VueUtils → apply/base}/ToolsPage.vue +0 -0
  165. /package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/BuildFeeDetail2.vue +0 -0
  166. /package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/ChangeFeeDetail2.vue +0 -0
  167. /package/src/components/{product/Function/functions → build/Install/InstallFee}/AllSelect.vue +0 -0
  168. /package/src/components/{product/Function → build/Install/InstallFee}/InstallInfoDown.vue +0 -0
  169. /package/src/components/{product/Function/functions → build/Install/InstallFee}/PreparationFee.vue +0 -0
  170. /package/src/components/{product/Function/functions → build/Install/InstallFee}/PrestoreFee.vue +0 -0
  171. /package/src/components/{product/Function/functions → build/Install/InstallFee}/ReduceFee.vue +0 -0
  172. /package/src/components/{product/Function/functions → build/Install/InstallFee}/StopInstall.vue +0 -0
  173. /package/src/components/{product/Function/functions → build/Install/InstallFee}/UpdateFee.vue +0 -0
  174. /package/src/components/{product/Process/Processes → build/Install/Process}/CustomerBuildingMessage.vue +0 -0
  175. /package/src/components/{product/Process/Processes → build/Install/Process}/CustomerEquipmentMessage.vue +0 -0
  176. /package/src/components/{product/Function/functions → build/Install/ProcessInfo}/ApplyRecordCancel.vue +0 -0
  177. /package/src/components/{product/Bill → build/Install/bill}/BillGZK.vue +0 -0
  178. /package/src/components/{product/Bill → build/Install/bill}/BillGZKMakeInfo.vue +0 -0
  179. /package/src/components/{product/Bill → build/Install/bill}/BillGZKRecordInfo.vue +0 -0
  180. /package/src/components/{product/Bill → build/Install/bill}/BillJLB.vue +0 -0
  181. /package/src/components/{product/Bill → build/Install/bill}/BillJLBMakeInfo.vue +0 -0
  182. /package/src/components/{product/Bill → build/Install/bill}/BillJLBRecordInfo.vue +0 -0
  183. /package/src/components/{product/Bill → build/Install/bill}/BillKTK.vue +0 -0
  184. /package/src/components/{product/Bill → build/Install/bill}/BillKTKMakeInfo.vue +0 -0
  185. /package/src/components/{product/Bill → build/Install/bill}/BillKTKRecordInfo.vue +0 -0
  186. /package/src/components/{product/Bill → build/Install/bill}/BillQRK.vue +0 -0
  187. /package/src/components/{product/Bill → build/Install/bill}/BillQRKMakeInfo.vue +0 -0
  188. /package/src/components/{product/Bill → build/Install/bill}/BillQRKRecordInfo.vue +0 -0
  189. /package/src/components/{product/Bill → build/Install/bill}/BillSelect.vue +0 -0
  190. /package/src/components/{product/Bill → build/Install/bill}/BillXSD.vue +0 -0
  191. /package/src/components/{product/Bill → build/Install/bill}/BillXSDRecordInfo.vue +0 -0
  192. /package/src/components/{product/Supervisory → build/Install/monitor}/SupervisoryBaseInfo.vue +0 -0
@@ -1,910 +0,0 @@
1
- <template>
2
- <div class="flex">
3
- <div class="form-inline auto" style="margin-bottom: 5px;">
4
- <label >用户查找:</label>
5
- <input type="text" class="form-control" placeholder='请输入查找的用户姓名' v-model="param"
6
- @keyup.enter="filterParams(param)" >
7
- <button type="button" class="btn btn-primary" @click="filterParams(param)">查询</button>
8
- <!--<div class="form-inline" style="float: right;margin-left: 1%" v-if="key == '户档案管理' && edit == true">
9
- <export-excel :data="{condition: ` 1=1 and f_process_id = '${selectdata.f_process_id}'`}"
10
- :field="getfield"
11
- sqlurl="rs/logic/fileExport" sql-name="singleTableUser" template-name='报建户档案导出'
12
- :choose-col="false"></export-excel>
13
- </div>-->
14
-
15
- <div class="form-inline" style="float: right" >
16
- <button type="button" class="btn btn-warning add-postition" @click="impexcel()" v-show="edit">导入档案</button>
17
- </div>
18
-
19
- </div>
20
-
21
-
22
-
23
-
24
- <!--户档案管理组件-->
25
- <div class="col-sm-12 span recordTable" style="margin-top: 10px;height:auto;">
26
-
27
- <partial-view v-ref:single-load>
28
- <data-grid :model="model" v-ref:grid>
29
- <template partial='head'>
30
- <tr>
31
- <th>档案编号</th>
32
- <th>用户姓名</th>
33
- <th>用户电话</th>
34
- <th>地址</th>
35
- <th>安全员</th>
36
- <th>缴费类型</th>
37
- <th>结算状态</th>
38
- <th>人口数</th>
39
- <th>用户状态</th>
40
- <th >操作</th>
41
- </tr>
42
- </template>
43
- <template partial='body' >
44
- <td @click="$parent.$parent.$parent.showdetail(row.f_userinfo_id)" style="text-align: center">{{row.f_userinfo_id}}</td>
45
- <td @click="$parent.$parent.$parent.showdetail(row.f_userinfo_id)" style="text-align: center">{{row.f_user_name}}</td>
46
- <td @click="$parent.$parent.$parent.showdetail(row.f_userinfo_id)" style="text-align: center">{{row.f_user_phone}}</td>
47
- <td @click="$parent.$parent.$parent.showdetail(row.f_userinfo_id)" style="text-align: center">{{row.f_address}}</td>
48
- <td @click="$parent.$parent.$parent.showdetail(row.f_userinfo_id)" style="text-align: center">{{row.f_checker}}</td>
49
- <td @click="$parent.$parent.$parent.showdetail(row.f_userinfo_id)" style="text-align: center">{{row.f_cost_type}}</td>
50
- <td @click="$parent.$parent.$parent.showdetail(row.f_userinfo_id)" style="text-align: center">{{row.f_cost_state}}</td>
51
- <td @click="$parent.$parent.$parent.showdetail(row.f_userinfo_id)" style="text-align: center">{{row.f_people_num}}</td>
52
- <td @click="$parent.$parent.$parent.showdetail(row.f_userinfo_id)" style="text-align: center">{{row.f_user_state}}</td>
53
- <!--<td>{{row.f_remarks}}</td>-->
54
- <td v-show="edit"><input type="checkbox" v-model="row.f_pay" @click="$parent.$parent.$parent.paychange(row)"/></td>
55
- <td class="" style="text-align: center">
56
- <!-- <button type="button" name="button" class="btn btn-link"-->
57
- <!-- @click.stop="$parent.$parent.$parent.modifyParam(row)" >修改-->
58
- <!-- </button>-->
59
- <button type="button" name="button" class="btn btn-link"
60
- @click.stop="$parent.$parent.$parent.delete(row)">删除
61
- </button>
62
- <!--<button type="button" name="button" class="btn btn-link"-->
63
- <!--@click.stop="$parent.$parent.$parent.deleteItem(row)">删除-->
64
- <!--</button>-->
65
- </td>
66
- </template>
67
- </data-grid>
68
-
69
- </partial-view>
70
- </div>
71
-
72
- <div class="col-sm-12 span recordTable" style="margin-top: 10px;height:auto;" v-if="isShowdetail" >
73
- <p class="text-center" style="padding: 8px;font-size: 20px">表档案列表
74
-
75
- <button type="button" class="close" @click="isShowdetail=false" aria-hidden="true">&times;</button>
76
- </p>
77
- <partial-view v-ref:single-load>
78
- <data-grid :model="batchmodel" v-ref:batchgrid>
79
- <template partial='head'>
80
- <tr>
81
- <th>序号</th>
82
- <th>户档案编号</th>
83
- <th>表档案编号</th>
84
- <th>表号</th>
85
- <th>气表品牌</th>
86
- <th>表型号</th>
87
- <th>用户类型</th>
88
- <th >操作</th>
89
- </tr>
90
- </template>
91
- <template partial='body'>
92
- <td style="text-align: center">{{$index+1}}</td>
93
- <td style="text-align: center">{{row.f_userinfo_id}}</td>
94
- <td style="text-align: center">{{row.f_user_id}}</td>
95
- <td style="text-align: center">{{row.f_meternumber}}</td>
96
- <td style="text-align: center">{{row.f_meter_brand}}</td>
97
- <td style="text-align: center">{{row.f_meter_style}}</td>
98
- <td style="text-align: center">{{row.f_user_type}}</td>
99
- <!--<td>{{row.f_remarks}}</td>-->
100
- <td class="" style="text-align: center">
101
- <button type="button" name="button" class="btn btn-link"
102
- @click.stop="$parent.$parent.$parent.filesModify(row)" >修改
103
- </button>
104
- <button type="button" name="button" class="btn btn-link"
105
- @click.stop="$parent.$parent.$parent.deleteItem(row)">删除
106
- </button>
107
- <!-- <button type="button" name="button" class="btn btn-link"
108
- @click.stop="$parent.$parent.$parent.deleteItem(row)" >删除
109
- </button>-->
110
- </td>
111
- </template>
112
- </data-grid>
113
-
114
-
115
-
116
-
117
- </partial-view>
118
- </div>
119
-
120
- </div>
121
- <modal :show.sync="show" v-ref:modal backdrop="false">
122
- <header slot="modal-header" class="modal-header">
123
- <button type="button" class="close" @click="close"><span>&times;</span></button>
124
- <h4 class="modal-title">配置</h4>
125
- </header>
126
- <!--户档案修改-->
127
- <article slot="modal-body" class="modal-body" >
128
- <div class="from-group" style="width: 100%">
129
- <label style="width: 15%;float: left">用户姓名</label>
130
- <input type="text" class="form-control" v-model="selectItem.f_user_name" style="width: 80%;float: left"/>
131
- </div>
132
- <div class="from-group" style="width: 100%">
133
- <label style="width: 15%;float: left">用户电话</label>
134
- <input type="text" class="form-control" v-model="selectItem.f_user_phone" style="width: 80%;float: left">
135
- </div>
136
- <div class="from-group" style="width: 100%">
137
- <label style="width: 15%;float: left">楼号</label>
138
- <input type="text" class="form-control" v-model="selectItem.f_building" style="width: 80%;float: left">
139
- </div>
140
- <div class="from-group" style="width: 100%">
141
- <label style="width: 15%;float: left">单元号</label>
142
- <input type="text" class="form-control" v-model="selectItem.f_unit" style="width: 80%;float: left">
143
- </div>
144
- <div class="from-group" style="width: 100%">
145
- <label style="width: 15%;float: left">楼层</label>
146
- <input type="text" class="form-control" v-model="selectItem.f_floor" style="width: 80%;float: left">
147
- </div>
148
- <div class="from-group" style="width: 100%">
149
- <label style="width: 15%;float: left">门牌号</label>
150
- <input type="text" class="form-control" v-model="selectItem.f_room" style="width: 80%;float: left">
151
- </div>
152
- <div class="from-group" style="width: 100%">
153
- <label style="width: 15%;float: left">人口数</label>
154
- <input type="number" class="form-control" v-model="selectItem.f_people_num" style="width: 80%;float: left">
155
- </div>
156
- <div class="from-group" style="width: 100%">
157
- <label style="width: 15%;float: left">缴费类型</label>
158
- <v-select :value.sync="selectItem.f_cost_type" v-model="selectItem.f_cost_type"
159
- :options='costtype' placeholder='请选择' style="width: 80%;float: left"
160
- close-on-select >
161
- </v-select>
162
- </div>
163
- <div class="from-group" style="width: 100%">
164
- <label style="width: 15%;float: left">结算状态</label>
165
- <v-select :value.sync="selectItem.f_cost_state" v-model="selectItem.f_cost_state"
166
- :options='coststate' placeholder='请选择' style="width: 80%;float: left"
167
- close-on-select >
168
- </v-select>
169
- </div>
170
-
171
- <div class="from-group" style="width: 100%">
172
- <label style="width: 15%;float: left">安全员</label>
173
- <v-select :value.sync="selectItem.f_checker" v-model="selectItem.f_checker"
174
- :options='checker' placeholder='请选择' style="width: 80%;float: left"
175
- close-on-select >
176
- </v-select>
177
- </div>
178
- <div class="from-group" style="width: 100%">
179
- <label style="width: 15%;float: left">用户状态</label>
180
- <v-select :value.sync="selectItem.f_user_state" v-model="selectItem.f_user_state"
181
- :options='userstate' placeholder='请选择' style="width: 80%;float: left"
182
- close-on-select >
183
- </v-select>
184
- </div>
185
- </article>
186
-
187
-
188
- <footer slot="modal-footer" class="modal-footer">
189
- <div class="from-group" style="width: 100%;float: left">
190
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
191
- <button v-show="show" type="button" class="btn btn-success" @click='confirm'>确认</button>
192
- </div>
193
- </footer>
194
- </modal>
195
-
196
-
197
- <modal :show.sync="addshow" v-ref:modal backdrop="false">
198
- <header slot="modal-header" class="modal-header">
199
- <button type="button" class="close" @click="addclose"><span>&times;</span></button>
200
- <h4 class="modal-title">配置</h4>
201
- </header>
202
- <!--户档案修改-->
203
- <article slot="modal-body" class="modal-body" >
204
- <div class="from-group">
205
- <label style="width: 20%;float: left">表号</label>
206
- <input type="text" style="width: 80%;float: left" readonly class="form-control" v-model="selectItem.f_meternumber"/>
207
- </div>
208
- <div class="from-group">
209
- <label style="width: 20%;float: left">用户类型</label>
210
- <v-select :value.sync="selectItem.f_user_type" v-model="selectItem.f_user_type"
211
- :options='usertypes' placeholder='请选择' style="width: 80%;float: left"
212
- close-on-select >
213
- </v-select>
214
- </div>
215
- <div class="from-group">
216
- <label style="width: 20%;float: left">用气性质</label>
217
- <v-select :value.sync="selectItem.f_gasproperties" v-model="selectItem.f_gasproperties"
218
- :options='gasproperties' placeholder='请选择' style="width: 80%;float: left"
219
- close-on-select >
220
- </v-select>
221
- </div>
222
- <div class="from-group">
223
- <label style="width: 20%;float: left">表底数</label>
224
- <input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_meter_base"/>
225
- </div>
226
- <div class="from-group">
227
- <label style="width: 20%;float: left">气表品牌</label>
228
- <v-select :value.sync="selectItem.f_meter_brand" v-model="selectItem.f_meter_brand"
229
- :options='meterbrand' placeholder='请选择' style="width: 80%;float: left"
230
- close-on-select search="">
231
- </v-select>
232
- </div>
233
- <div class="from-group">
234
- <label style="width: 20%;float: left">表型号</label>
235
- <v-select :value.sync="selectItem.f_meter_style" v-model="selectItem.f_meter_style"
236
- :options='meterstyle' placeholder='请选择' style="width: 80%;float: left"
237
- close-on-select >
238
- </v-select>
239
- </div>
240
- <div class="from-group">
241
- <label style="width: 20%;float: left">左右表</label>
242
- <v-select :value.sync="selectItem.f_aroundmeter" v-model="selectItem.f_aroundmeter"
243
- :options='aroundmeter' placeholder='请选择' style="width: 80%;float: left"
244
- close-on-select >
245
- </v-select>
246
- </div>
247
- <div class="from-group">
248
- <label style="width: 20%;float: left">气价类型</label>
249
- <v-select :value.sync="selectItem.f_price_type" v-model="selectItem.f_price_type"
250
- :options='pricetype' placeholder='请选择' style="width: 80%;float: left"
251
- close-on-select >
252
- </v-select>
253
- </div>
254
- <div class="from-group">
255
- <label style="width: 20%;float: left">气价名称</label>
256
- <v-select :value.sync="selectItem.f_price_name" v-model="selectItem.f_price_name"
257
- :options='pricename' placeholder='请选择' style="width: 80%;float: left"
258
- close-on-select >
259
- </v-select>
260
- </div>
261
- <div class="from-group">
262
- <label style="width: 20%;float: left">剩余气量</label>
263
- <input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_heater_gas"/>
264
- </div>
265
- <div class="from-group">
266
- <label style="width: 20%;float: left">表状态</label>
267
- <v-select :value.sync="selectItem.f_table_state" v-model="selectItem.f_table_state"
268
- :options='tablestate' placeholder='请选择' style="width: 80%;float: left"
269
- close-on-select >
270
- </v-select>
271
- </div>
272
- <div class="from-group">
273
- <label style="width: 20%;float: left">气表类型</label>
274
- <v-select :value.sync="selectItem.f_meter_classify" v-model="selectItem.f_meter_classify"
275
- :options='meterclassify' placeholder='请选择' style="width: 80%;float: left"
276
- close-on-select >
277
- </v-select>
278
- </div>
279
- <div class="from-group">
280
- <label style="width: 20%;float: left">是否发卡</label>
281
- <v-select :value.sync="selectItem.f_whether_hairpin" v-model="selectItem.f_whether_hairpin"
282
- :options='whetherhairpin' placeholder='请选择' style="width: 80%;float: left"
283
- close-on-select >
284
- </v-select>
285
- </div>
286
- <div class="from-group">
287
- <label style="width: 20%;float: left">安装位置</label>
288
- <v-select :value.sync="selectItem.f_position" v-model="selectItem.f_position"
289
- :options='position' placeholder='请选择' style="width: 80%;float: left"
290
- close-on-select >
291
- </v-select>
292
- </div>
293
- <div class="from-group">
294
- <label style="width: 20%;float: left">抄表员</label>
295
- <v-select :value.sync="selectItem.f_inputtor" v-model="selectItem.f_inputtor"
296
- :options='inputtor' placeholder='请选择' style="width: 80%;float: left"
297
- close-on-select >
298
- </v-select>
299
- </div>
300
- <!--<div class="from-group">
301
- <label style="width: 20%;float: left">输损率</label>
302
- <input type="number" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_lossrate" v-validate:f_lossrate='{dctest: [1, "<" ] }'/>
303
- </div>-->
304
-
305
- </article>
306
- <footer slot="modal-footer" class="modal-footer">
307
- <button type="button" class="btn btn-default" @click='addclose'>取消</button>
308
- <button type="button" class="btn btn-success" @click='addconfirm'>确认</button>
309
- </footer>
310
- </modal>
311
-
312
- <modal :show.sync="updateshow" v-ref:modal backdrop="false">
313
- <header slot="modal-header" class="modal-header">
314
- <button type="button" class="close" @click="updateclose"><span>&times;</span></button>
315
- <h4 class="modal-title">配置</h4>
316
- </header>
317
- <!--户档案修改-->
318
- <article slot="modal-body" class="modal-body" >
319
- <div class="from-group">
320
- <label style="width: 20%;float: left">表号</label>
321
- <input type="text" style="width: 80%;float: left" class="form-control" v-model="selectItem.f_meternumber"/>
322
- </div>
323
- <div class="from-group">
324
- <label style="width: 20%;float: left">气表品牌</label>
325
- <v-select :value.sync="selectItem.f_meter_brand" v-model="selectItem.f_meter_brand"
326
- :options='meterbrand' placeholder='请选择' style="width: 80%;float: left"
327
- close-on-select search="">
328
- </v-select>
329
- </div>
330
- <div class="from-group">
331
- <label style="width: 20%;float: left">表型号</label>
332
- <v-select :value.sync="selectItem.f_meter_style" v-model="selectItem.f_meter_style"
333
- :options='meterstyle' placeholder='请选择' style="width: 80%;float: left"
334
- close-on-select >
335
- </v-select>
336
- </div>
337
- </article>
338
- <footer slot="modal-footer" class="modal-footer">
339
- <button type="button" class="btn btn-default" @click='updateclose'>取消</button>
340
- <button type="button" class="btn btn-success" @click='updateconfirm'>确认</button>
341
- </footer>
342
- </modal>
343
-
344
-
345
- <modal :show.sync="showFile" v-ref:modal backdrop="false">
346
- <header slot="modal-header" class="modal-header">
347
- <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
348
- <h4 class="modal-title">档案导入</h4>
349
- </header>
350
- <article slot="modal-body" class="modal-body">
351
- <div class="form-group">
352
- <file-upload class="my-file-uploader" :name="key+Math.random()"
353
- action="rs/file/uploadFile" tagname="文件导入" :headers="headers" v-ref:file></file-upload>
354
- </div>
355
- </article>
356
- <footer slot="modal-footer" class="modal-footer"></footer>
357
- </modal>
358
-
359
- </template>
360
-
361
- <script>
362
- import {HttpResetClass} from 'vue-client'
363
-
364
- export default {
365
- title: '档案信息',
366
- props: ['selectdata', 'key','edit'],
367
- data() {
368
- return {
369
- headers: {'username': this.$login.f.name, 'blodid': this.selectdata.f_process_id, 'fusetype': '报建execl导入用户档案'},
370
- //户档案表头
371
- userHeadData: ['档案编号', '用户姓名', '用户电话', '区', '片区', '街道名称', '小区名称', '楼号', '单元号', '楼层', '门牌号', '用气性质', '用户状态'],
372
- //户档案内容
373
- userBodyData: ['f_userinfo_id', 'f_user_name', 'f_user_phone', 'f_area', 'f_slice_area', 'f_street', 'f_residential_area', 'f_building', 'f_unit', 'f_floor', 'f_room', 'f_gasproperties', 'f_user_state'],
374
- //表档案表头
375
- surHeadData: ['户档案编号', '表号', '气表品牌', '表型号'],
376
- //表档案内容
377
- surBodyData: ['f_userinfo_id', 'f_meternumber', 'f_meter_brand', 'f_meter_style'],
378
- //设备表头
379
- eqHeadData: ['户档案编号', '设备编号', '设备类型', '设备品牌','设备型号','设备数量'],
380
- //设备内容
381
- eqBodyData: ['f_userinfo_id', 'f_devices_no', 'f_devices_type', 'f_brand','f_devices_model','f_devices_num'],
382
- // params: null,
383
- record: {},
384
- selectItem: {},
385
- pricetype:[],
386
- pricename:[],
387
- model: {
388
- rows: []
389
- },
390
- batchmodel :{
391
- rows: []
392
- },
393
- params: { // 选择的具体内容
394
- rows: []
395
- },
396
- condition: '',
397
- show: false,
398
- showFile: false,
399
- ischecked: false,
400
- getfield: {},
401
- checked: [],
402
- isShowdetail:false,
403
- userinfo_id: null,
404
- addshow:false,
405
- meterstyle:[],
406
- meterbrand:[],
407
- updateshow:false,
408
- importtype:null,
409
- userstate:this.$appdata.getParam('用户状态'),
410
- checker:this.$appdata.getParam('安全员'),
411
- coststate:this.$appdata.getParam('结算状态'),
412
- costtype:this.$appdata.getParam('缴费类型'),
413
- aroundmeter:this.$appdata.getParam('左右表'),
414
- gasproperties:this.$appdata.getParam('用气性质'),
415
- usertypes:this.$appdata.getParam('用户类型'),
416
- tablestate:this.$appdata.getParam('表状态'),
417
- meterclassify:this.$appdata.getParam('气表类型'),
418
- whetherhairpin:this.$appdata.getParam('是否发卡'),
419
- position:this.$appdata.getParam('安装位置'),
420
- inputtor:this.$appdata.getParam('抄表员')
421
- }
422
- },
423
- ready() {
424
- this.load()
425
- this.getitem()
426
- },
427
- watch: {
428
- 'selectdata'() {
429
- this.headers.blodid = this.selectdata.f_process_id
430
- this.load()
431
- },
432
-
433
- 'selectItem.f_meter_brand[0]'(val) {
434
- console.log('选择的品牌改变了',val)
435
- if (!val){
436
- return
437
- }
438
- this.$resetpost('rs/logic/getMeterStyle', {data:{f_meter_brand :val}} ,{resolveMsg: null, rejectMsg: null}).then((res) => {
439
- console.log('获取的选项',res)
440
- let house2 = []
441
- for (let row of res.data){
442
- house2.push({label: row.f_meter_style,value: row.f_meter_style})
443
- }
444
- this.meterstyle = house2
445
- })
446
- },
447
- 'selectItem.f_user_type[0]'(val) {
448
- let condition =`f_user_type = '${val}' and f_filiale = '${this.$login.f.f_fengongsi}'
449
- and f_gasproperties = '${this.selectItem.f_gasproperties}'`
450
- this.$resetpost('rs/logic/getRecordItem', {condition}, {resolveMsg: null, rejectMsg: null}).then((res) => {
451
- console.log('获取的选项',res)
452
- let house2 = []
453
- for (let row of res.data.pricetype){
454
- house2.push({label: row.f_price_type,value: row.f_price_type})
455
- }
456
- this.pricetype = house2
457
- })
458
- },
459
- 'selectItem.f_gasproperties[0]'(val) {
460
- let condition =`f_user_type = '${this.selectItem.f_user_type}' and f_filiale = '${this.$login.f.f_fengongsi}'
461
- and f_gasproperties = '${val}'`
462
- this.$resetpost('rs/logic/getRecordItem', {condition}, {resolveMsg: null, rejectMsg: null}).then((res) => {
463
- console.log('获取的选项',res)
464
- let house2 = []
465
- for (let row of res.data.pricetype){
466
- house2.push({label: row.f_price_type,value: row.f_price_type})
467
- }
468
- this.pricetype = house2
469
- })
470
- },
471
- 'selectItem.f_price_type[0]'(val) {
472
- console.log('选择的品牌改变了',val)
473
- if (!val){
474
- return
475
- }
476
- let condition =`f_user_type = '${this.selectItem.f_user_type}' and f_filiale = '${this.$login.f.f_fengongsi}'
477
- and f_gasproperties = '${this.selectItem.f_gasproperties}'
478
- and f_price_type = '${val}'`
479
- this.$resetpost('rs/logic/getRecordItem', {condition}, {resolveMsg: null, rejectMsg: null}).then((res) => {
480
- console.log('获取的选项',res)
481
- let house2 = []
482
- for (let row of res.data.pricename){
483
- house2.push({label: row.f_price_name,value: row.f_price_name})
484
- }
485
- this.pricename = house2
486
- })
487
-
488
- }
489
- },
490
-
491
- computed: {
492
- address() {
493
- let strAddress = `${this.record.f_area ? this.record.f_area
494
- + '-' : ''}${this.record.f_street ? this.record.f_street
495
- + '-' : ''}${this.record.f_residential_area ? this.record.f_residential_area
496
- + '' : ''}${this.record.f_building ? this.record.f_building
497
- + '号楼' : ''}${this.record.f_unit ? this.record.f_unit
498
- + '单元' : ''}${this.record.f_floor ? this.record.f_floor
499
- + '层' : ''}${this.record.f_room ? this.record.f_room
500
- + '室' : ''}`
501
- this.record.f_address = strAddress
502
- return strAddress
503
- },
504
- getfield() {
505
- let data = {}
506
- this.userBodyData.forEach((value, index) => {
507
- data[this.userBodyData[index]] = this.userHeadData[index]
508
- })
509
-
510
- console.log('data', data)
511
- return data
512
- }
513
- },
514
- methods: {
515
- getitem(){
516
- console.log('开始获取品牌')
517
- let condition =`1=1`
518
- this.$resetpost('rs/logic/getRecordItem', {condition}, {resolveMsg: null, rejectMsg: null}).then((res) => {
519
- console.log('获取的选项',res)
520
- let house2 = []
521
- for (let row of res.data.meterbrand){
522
- house2.push({label: row.f_meter_brand,value: row.f_meter_brand})
523
- }
524
- this.meterbrand = house2
525
- })
526
- },
527
- addDetailed(){
528
- this.importtype='2'
529
- this.showFile = true
530
- },
531
- addclose(){
532
- this.addshow = false
533
- this.selectItem = {}
534
- },
535
-
536
- updateclose(){
537
- this.updateshow = false
538
- this.selectItem = {}
539
- },
540
- showdetail(val) {
541
-
542
- console.log(val)
543
- this.userinfo_id = val
544
- this.isShowdetail=true
545
- this.loadfiles()
546
- },
547
- async loadfiles() {
548
- if (!this.selectdata)
549
- return
550
- let data = {
551
- tablename: 't_userfiles',
552
- condition: 'a.f_userinfo_id=' + '\'' + this.userinfo_id + '\''
553
- }
554
-
555
- let self = this
556
- let http = new HttpResetClass()
557
- let res = await http.load('POST', 'rs/sql/getUserfiles', {data: data}, {
558
- resolveMsg: null,
559
- rejectMsg: '获取表档案信息失败'
560
- })
561
- self.batchmodel.rows = []
562
-
563
- self.batchmodel.rows = res.data
564
- },
565
- selected (val) {
566
- this.selectItem = {"q":"q"}
567
- },
568
- //选择需要转银收的户档案
569
- chooseOne(e, row, rows) {
570
- console.log('row', row)
571
- console.log('e', e)
572
- this.ischecked = e.target.checked
573
- console.log("state", e.target.checked)
574
- //判断当前行是否被选中
575
- if (this.ischecked) {
576
- this.checked.push(row)
577
- }
578
- },
579
- //修改选中的数据状态
580
- changeState() {
581
- if (this.checked.length > 0) {
582
- let http = new HttpResetClass()
583
- http.load('POST', 'rs/logic/updateUserState', {data: {rows: this.checked}}).then((res) => {
584
- this.show = false
585
- this.ischecked = false
586
- // 如果没有id,需要在数组中添加
587
- this.load()
588
- this.checked = []
589
- })
590
- }
591
- },
592
- // 父组件更新子组件属性
593
- updateData(val) {
594
- this.headers.blodid = val.f_process_id
595
- this.selectdata = val
596
- },
597
- async load() {
598
- if (!this.selectdata)
599
- return
600
- let data = {
601
- tablename: 't_userinfo',
602
- condition: 'f_process_id=' + '\'' + this.selectdata.f_process_id + '\''
603
- }
604
- let self = this
605
- let http = new HttpResetClass()
606
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
607
- resolveMsg: null,
608
- rejectMsg: '获取户档案信息失败'
609
- })
610
- self.model.rows = []
611
-
612
- self.model.rows = res.data
613
- self.params = res.data
614
-
615
-
616
- },
617
- impexcel() {
618
- this.importtype='1'
619
- this.showFile = true
620
- },
621
- closeFile() {
622
- this.showFile = false
623
- // 将选的文件清空
624
- this.$refs.file.$el.querySelector('input').value = ''
625
- },
626
- delete(row){
627
- console.log('开始删除')
628
- let http = new HttpResetClass()
629
- http.load('POST', 'rs/logic/deleteUserinfo', {data: {f_userinfo_id: row.f_userinfo_id}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
630
- console.log('返回的数据:',res)
631
- if (res.data != null && res.data != "") {
632
- this.$showMessage(res.data)
633
- }else {
634
- this.$showMessage("删除成功!")
635
- this.load()
636
- }
637
- })
638
- },
639
-
640
- deleteItem(row) {
641
-
642
-
643
- /* this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
644
- if (res === 'confirm') {
645
- let http = new HttpResetClass()
646
- http.load('DELETE', `rs/entity/t_userinfo/${row.f_userinfo_id}`).then((res) => {
647
- this.load()
648
- })
649
- }
650
- })*/
651
-
652
- this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
653
- if (res === 'confirm') {
654
- let http = new HttpResetClass()
655
- http.load('DELETE', `rs/entity/t_userfiles/${row.f_user_id}`).then((res) => {
656
- this.loadfiles()
657
- })
658
- }
659
- })
660
-
661
- },
662
- //户档案查询
663
- filterParams(param) {
664
- this.isShowdetail=false
665
- if (param && param !== "") {
666
- let temp = []
667
- for (var i = 0; i < this.model.rows.length; i++) {
668
- if (this.model.rows[i].f_user_name.includes(param)) {
669
- temp.push(this.model.rows[i])
670
- }
671
- }
672
- this.model.rows = temp
673
- } else {
674
- this.model.rows = this.params
675
- }
676
- },
677
- //表档案查询
678
- filterParam(param) {
679
- if (param && param !== "") {
680
- let temp = []
681
- for (var i = 0; i < this.model.rows.length; i++) {
682
- if (this.model.rows[i].f_meter_brand.includes(param)) {
683
- temp.push(this.model.rows[i])
684
- }
685
- }
686
- this.model.rows = temp
687
- } else {
688
- this.model.rows = this.params
689
- }
690
- },
691
- //设备列表查询
692
- findEq(param) {
693
- debugger
694
- if (param && param !== "") {
695
- let temp = []
696
- for (var i = 0; i < this.model.rows.length; i++) {
697
- if (this.model.rows[i].f_meter_brand.includes(param)) {
698
- temp.push(this.model.rows[i])
699
- }
700
- }
701
- this.model.rows = temp
702
- } else {
703
- this.model.rows = this.params
704
- }
705
- },
706
- add() {
707
- this.show = true
708
- console.log("点击了添加")
709
- },
710
- // 修改按钮
711
- modifyParam(row) {
712
- this.$set('selectItem.f_userinfo_id', row.f_userinfo_id)
713
- this.$set('selectItem.f_user_name', row.f_user_name)
714
- this.$set('selectItem.f_user_phone', row.f_user_phone)
715
- this.$set('selectItem.f_area', row.f_area)
716
- this.$set('selectItem.f_slice_area', row.f_slice_area)
717
- this.$set('selectItem.f_street', row.f_street)
718
- this.$set('selectItem.f_residential_area', row.f_residential_area)
719
- this.$set('selectItem.f_building', row.f_building)
720
- this.$set('selectItem.f_unit', row.f_unit)
721
- this.$set('selectItem.f_floor', row.f_floor)
722
- this.$set('selectItem.f_room', row.f_room)
723
- this.selectItem.f_cost_type= [row.f_cost_type]
724
- this.selectItem.f_cost_state=[row.f_cost_state]
725
- this.$set('selectItem.f_people_num', row.f_people_num)
726
- this.selectItem.f_checker=[row.f_checker]
727
- this.selectItem.f_user_state= [row.f_user_state]
728
- this.$set('selectItem.version', row.version)
729
- this.show = true
730
- },
731
-
732
- //获取当前用户表档案信息
733
- getUserFiles(row) {
734
- this.isShowFiles = true
735
- console.log('获取户档案信息')
736
-
737
- data = {
738
- tablename: 't_userfiles',
739
- condition: `f_userinfo_id=${row.f_userinfo_id}`
740
- }
741
- http = new HttpResetClass()
742
- let resGasbrand = http.load('POST', 'rs/sql/singleTable', {data: data}, {
743
- resolveMsg: null,
744
- rejectMsg: '获取档案信息失败'
745
- })
746
- self.model.rows = []
747
- self.model.rows = res.data
748
- },
749
- //表档案修改
750
- filesModify(row) {
751
- console.log('表档案数据',row)
752
- this.$set('selectItem.f_userinfo_id', row.f_userinfo_id)
753
- this.$set('selectItem.f_user_id', row.f_user_id)
754
- this.$set('selectItem.f_meternumber', row.f_meternumber)
755
- this.selectItem.version = row.version
756
- this.selectItem.f_user_type = [row.f_user_type]
757
- this.selectItem.f_gasproperties = [row.f_gasproperties]
758
- this.$set('selectItem.f_meter_base', row.f_meter_base)
759
- this.selectItem.f_meter_brand = [row.f_meter_brand]
760
- this.selectItem.f_meter_style = [row.f_meter_style]
761
- this.selectItem.f_aroundmeter = [row.f_aroundmeter]
762
- this.selectItem.f_price_type = [row.f_price_type]
763
- this.selectItem.f_price_name = [row.f_price_name]
764
- this.$set('selectItem.f_heater_gas', row.f_heater_gas)
765
- this.selectItem.f_table_state = [row.f_table_state]
766
- this.selectItem.f_meter_classify = [row.f_meter_classify]
767
- this.selectItem.f_whether_hairpin = [row.f_whether_hairpin]
768
- this.selectItem.f_position=[row.f_position]
769
- this.selectItem.f_inputtor=[row.f_inputtor]
770
- this.$set('selectItem.f_lossrate', row.f_lossrate)
771
- this.addshow = true
772
- this.getpricetype()
773
-
774
- },
775
- getpricetype(){
776
- console.log('开始获取气价类别')
777
- let condition =`f_user_type = '${this.selectItem.f_user_type}' and f_filiale = '${this.$login.f.f_fengongsi}'
778
- and f_gasproperties = '${this.selectItem.f_gasproperties}'`
779
- this.$resetpost('rs/logic/getRecordItem', {condition}, {resolveMsg: null, rejectMsg: null}).then((res) => {
780
- console.log('获取的选项',res)
781
- let house2 = []
782
- for (let row of res.data.pricetype){
783
- house2.push({label: row.f_price_type,value: row.f_price_type})
784
- }
785
- this.pricetype = house2
786
- let house = []
787
- for (let row of res.data.meterbrand){
788
- house.push({label: row.f_meter_brand,value: row.f_meter_brand})
789
- }
790
- this.meterbrand = house
791
- let house3 = []
792
- for (let row of res.data.pricename){
793
- house3.push({label: row.f_price_name,value: row.f_price_name})
794
- }
795
- this.pricename = house3
796
- })
797
- },
798
- //新增修改或删除提交
799
- async confirm() {
800
- let http = new HttpResetClass()
801
- await http.load('POST', 'rs/logic/recordSave', this.selectItem).then((res) => {
802
- this.show = false
803
- // 如果没有id,需要在数组中添加
804
- this.load()
805
- this.selectItem = {}
806
- })
807
-
808
- },
809
-
810
- async addconfirm() {
811
- if (!this.selectItem.f_price_type[0]){
812
- this.$showAlert("气价类型不能为空","warning", 1500)
813
- return
814
- }
815
- if (!this.selectItem.f_price_name[0]){
816
- this.$showAlert("气价名称不能为空","warning", 1500)
817
- return
818
- }
819
- let http = new HttpResetClass()
820
- this.$set('selectItem.f_userinfo_id', this.userinfo_id)
821
- this.selectItem.f_filiale=this.$login.f.f_fengongsi
822
- await http.load('POST', 'rs/logic/addmeterrecord', this.selectItem).then((res) => {
823
- this.addshow = false
824
- // 如果没有id,需要在数组中添加
825
- this.loadfiles()
826
- this.selectItem = {}
827
- if (res.data.msg != null && res.data.msg != "") {
828
- this.$showMessage(res.data.msg)
829
- }else {
830
- this.$showMessage("修改成功!")
831
- }
832
- })
833
- },
834
- async updateconfirm(){
835
- let http = new HttpResetClass()
836
-
837
- await http.load('POST', 'rs/logic/updatemetrecord', this.selectItem,{resolveMsg: null, rejectMsg: '修改失败'}).then((res) => {
838
- this.updateshow = false
839
- // 如果没有id,需要在数组中添加
840
- this.loadfiles()
841
- this.selectItem = {}
842
-
843
- })
844
- },
845
-
846
-
847
- // 关闭模态框
848
- close() {
849
- this.show = false
850
- this.selectItem = {}
851
- },
852
- },
853
- events: {
854
- async onFileUpload(file, res) {
855
- if (!this.selectdata.f_process_id) {
856
- this.$showMessage("数据异常,导入失败")
857
- return
858
- }
859
- if (this.importtype ==='1') {
860
- //户档案导入
861
- let data = {
862
- tablename: 't_userinfo',
863
- filepath: res.f_downloadpath,
864
- f_area:this.selectdata.f_area,
865
- f_slice_area:this.selectdata.f_slice_area,
866
- f_street:this.selectdata.f_street,
867
- f_residential_area:this.selectdata.f_residential_area,
868
- f_process_id: this.selectdata.f_process_id,
869
- f_key: this.$login.f.f_orgids,
870
- f_operator: this.$login.f.name,
871
- f_filiale: this.$login.f.f_fengongsi,
872
- f_outlets: this.$login.f.f_parentname,
873
- f_orgstr: this.$login.f.orgpathstr,
874
- f_filialeids: this.$login.f.f_orgids,
875
- f_filialeid: this.$login.f.f_orgids.split('.')[this.$login.f.f_orgids.split('.').length - 2] + '.'
876
- }
877
- let http2 = new HttpResetClass()
878
- console.log('即将转发的数据',data)
879
- await http2.load('POST', 'rs/logic/recordImport', data, {
880
- resolveMsg: "",
881
- rejectMsg: "导入失败!",
882
- }).then((res) => {
883
- console.log('返回信息',res)
884
- this.load()
885
- this.closeFile()
886
- if (res.data.msg != null && res.data.msg != "") {
887
- this.$showMessage(res.data.msg)
888
- } else if (res.data.userIds.length > 0) {
889
- this.$showMessage("以下编号的户档案不存在,请先添加户档案再添加表档案:" + res.data.userIds.toString())
890
- } else if (res.data.reuserIds.length > 0) {
891
- this.$showMessage("以下户档案编号的表档案已存在,请删除后重新导入:" + res.data.reuserIds.toString())
892
- } else {
893
- this.$showMessage("导入成功!")
894
- }
895
- })
896
- }
897
-
898
- }
899
- }
900
- }
901
- </script>
902
- <style>
903
- .recordTable table tr th {
904
- font-weight: bold;
905
- }
906
-
907
- .recordTable table tr:hover {
908
- background-color: rgb(230, 230, 230);
909
- }
910
- </style>