apply-clients 7.1.48 → 7.1.49

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 (193) hide show
  1. package/dist.7z +0 -0
  2. package/package.json +5 -5
  3. package/src/components/product/Function/InstallFunction.vue +147 -147
  4. package/src/components/product/Function/InstallInfoSelect.vue +49 -31
  5. package/src/components/product/Process/ExplorationSelect.vue +41 -25
  6. package/src/components/product/Process/ExplorationUser.vue +135 -135
  7. package/src/components/product/Process/Processes/InstallationDetails.vue +520 -520
  8. package/src/components/product/Process/Processes/chargeManagement.vue +563 -563
  9. package/src/components/product/Process/Service/ServiceControl.vue +752 -752
  10. package/src/components/product/ReportForm/GasIgnitionSummary.vue +365 -352
  11. package/src/components/product/Supervisory/SupervisoryControl.vue +121 -121
  12. package/src/components/product/Supervisory/SupervisoryList.vue +40 -23
  13. package/src/components/product/VueUtils/ApplyUpload.vue +266 -266
  14. package/src/main.js +23 -23
  15. package/yarn-error.log +8797 -9060
  16. package/dist-android/static/0.50054aa998577d450157.js +0 -2
  17. package/dist-android/static/1.0b685d8dcbf4f3a8a5b2.js +0 -1
  18. package/dist-android/static/10.2a698c421c0ff5f57336.js +0 -2
  19. package/dist-android/static/11.75a39568e320abbddcc2.js +0 -2
  20. package/dist-android/static/12.4ac0c584da492acc599d.js +0 -1
  21. package/dist-android/static/13.5471bac3b39798923a79.js +0 -1
  22. package/dist-android/static/14.ee274728fdeb5107c357.js +0 -1
  23. package/dist-android/static/15.a1dc233c1804ede2ba87.js +0 -1
  24. package/dist-android/static/16.5081ea8a90d0dacbc748.js +0 -1
  25. package/dist-android/static/17.5b5184c9a9337a88d4f9.js +0 -1
  26. package/dist-android/static/18.0c99e5cb0de0f76008f6.js +0 -1
  27. package/dist-android/static/19.b50c8bf85b8e7fb27e2a.js +0 -1
  28. package/dist-android/static/2.16718caad0da13b463a3.js +0 -1
  29. package/dist-android/static/20.8f6767f58df1fde18784.js +0 -1
  30. package/dist-android/static/21.026f5cbfd90d70d8dd3a.js +0 -1
  31. package/dist-android/static/22.4631f8885615e9b6ad6e.js +0 -1
  32. package/dist-android/static/23.437b569f91863452daeb.js +0 -1
  33. package/dist-android/static/24.f1310985a29496bc5fd8.js +0 -1
  34. package/dist-android/static/25.b6dcf8c6d26f44035506.js +0 -1
  35. package/dist-android/static/27.2185c9e2e7116302e1e1.js +0 -13
  36. package/dist-android/static/28.b429eaf351968226c395.js +0 -3
  37. package/dist-android/static/29.aed6b18ccda9ca3748ce.js +0 -3
  38. package/dist-android/static/3.761de5413a2ed045ab10.js +0 -1
  39. package/dist-android/static/30.567f5fbffc0601227294.js +0 -2
  40. package/dist-android/static/31.179f87c71c11fd562feb.js +0 -1
  41. package/dist-android/static/32.8d45d3f6c5e874582cff.js +0 -1
  42. package/dist-android/static/33.32fd8d2f4e6e7b065a5c.js +0 -1
  43. package/dist-android/static/34.df47f9984baec20bdf5b.js +0 -1
  44. package/dist-android/static/35.5883200f073b546cb1a3.js +0 -1
  45. package/dist-android/static/36.477f89087e507526163f.js +0 -1
  46. package/dist-android/static/37.b82438692bca848519f6.js +0 -1
  47. package/dist-android/static/38.83c950bebdb997be2ef8.js +0 -1
  48. package/dist-android/static/39.333e42c6dbabf1bf2706.js +0 -1
  49. package/dist-android/static/4.eb190515d001a4e1bebd.js +0 -13
  50. package/dist-android/static/40.f6807724af2482375d7c.js +0 -1
  51. package/dist-android/static/41.92f39c44002772179f48.js +0 -1
  52. package/dist-android/static/42.662a0643f36dc759abc0.js +0 -1
  53. package/dist-android/static/43.5b55816aa2ca7b510d72.js +0 -1
  54. package/dist-android/static/44.4a6af5dd359e3973dea4.js +0 -1
  55. package/dist-android/static/45.d5992c604ad9eb4f40d2.js +0 -1
  56. package/dist-android/static/46.aa87912e9361ab053234.js +0 -1
  57. package/dist-android/static/47.b9efca55c1ea582c59e7.js +0 -2
  58. package/dist-android/static/48.8902ce91c715d61c63ef.js +0 -1
  59. package/dist-android/static/49.dd2591b071fe1901d2f2.js +0 -2
  60. package/dist-android/static/5.304b463f21c8253aa514.js +0 -13
  61. package/dist-android/static/50.e49f64d967a7f7350105.js +0 -1
  62. package/dist-android/static/51.0d311b6815373c5a3b1b.js +0 -1
  63. package/dist-android/static/52.344f9d59bb5cb156380d.js +0 -1
  64. package/dist-android/static/53.289984b9a04a7d11ffef.js +0 -1
  65. package/dist-android/static/54.5808cc57ddb689577efe.js +0 -1
  66. package/dist-android/static/55.9874aac28d0d80b55860.js +0 -1
  67. package/dist-android/static/56.babac04ffcc93c5573ed.js +0 -1
  68. package/dist-android/static/57.ca9993d9b0137ec93a81.js +0 -1
  69. package/dist-android/static/58.be8a5ac661eb638aff79.js +0 -1
  70. package/dist-android/static/59.2d0116e8a66e13cbabe2.js +0 -1
  71. package/dist-android/static/6.3f10426d99466042d079.js +0 -13
  72. package/dist-android/static/60.e60b562292633421a3d7.js +0 -1
  73. package/dist-android/static/61.492b25e8e1b66366329b.js +0 -1
  74. package/dist-android/static/62.24924f3f6fd5f97975d1.js +0 -1
  75. package/dist-android/static/63.7628250218be54b5c52f.js +0 -1
  76. package/dist-android/static/64.0c2d7593ebede3d30dc8.js +0 -1
  77. package/dist-android/static/65.220dfd6b1dd8e75c9d08.js +0 -1
  78. package/dist-android/static/66.da91b8ed2181ced4a4de.js +0 -1
  79. package/dist-android/static/67.75a3f13bea3c0ac4bbbe.js +0 -1
  80. package/dist-android/static/68.37aa2fd75666d1461dac.js +0 -1
  81. package/dist-android/static/69.e6a3e52929239e08b8d3.js +0 -1
  82. package/dist-android/static/7.57945431c1f505e425c1.js +0 -13
  83. package/dist-android/static/70.945cf028761bd66a2302.js +0 -1
  84. package/dist-android/static/71.0ae45dcfc105541b051d.js +0 -1
  85. package/dist-android/static/72.d89a35482e9c434d0bd0.js +0 -1
  86. package/dist-android/static/8.830a99f33590aeb637a3.js +0 -13
  87. package/dist-android/static/9.2432be88a7316649f45b.js +0 -12
  88. package/dist-android/static/appca71cf7af0c441a6b6ff.js +0 -135
  89. package/dist-android/static/doc.jpg +0 -0
  90. package/dist-android/static/images/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
  91. package/dist-android/static/images/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
  92. package/dist-android/static/images/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
  93. package/dist-android/static/images/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
  94. package/dist-android/static/images/lefticon//345/233/276/345/261/202577.png +0 -0
  95. package/dist-android/static/images/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
  96. package/dist-android/static/images/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
  97. package/dist-android/static/images/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
  98. package/dist-android/static/images/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
  99. package/dist-android/static/images/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
  100. package/dist-android/static/images/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
  101. package/dist-android/static/images/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
  102. package/dist-android/static/images/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
  103. package/dist-android/static/images/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
  104. package/dist-android/static/images/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
  105. package/dist-android/static/images/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  106. package/dist-android/static/images/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
  107. package/dist-android/static/images/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
  108. package/dist-android/static/images/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
  109. package/dist-android/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  110. package/dist-android/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
  111. package/dist-android/static/images/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
  112. package/dist-android/static/images/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
  113. package/dist-android/static/imgerror.jpg +0 -0
  114. package/dist-android/static/jsoneditor-icons.svg +0 -893
  115. package/dist-android/static/newStyle/clear.png +0 -0
  116. package/dist-android/static/newStyle/fife.png +0 -0
  117. package/dist-android/static/newStyle/hidden.png +0 -0
  118. package/dist-android/static/newStyle/label-clear.png +0 -0
  119. package/dist-android/static/newStyle/left-img.png +0 -0
  120. package/dist-android/static/newStyle/list_ok.png +0 -0
  121. package/dist-android/static/newStyle/login-check.png +0 -0
  122. package/dist-android/static/newStyle/login-con.png +0 -0
  123. package/dist-android/static/newStyle/login-do.gif +0 -0
  124. package/dist-android/static/newStyle/login-f.png +0 -0
  125. package/dist-android/static/newStyle/login-info.png +0 -0
  126. package/dist-android/static/newStyle/login-left.png +0 -0
  127. package/dist-android/static/newStyle/login-org.png +0 -0
  128. package/dist-android/static/newStyle/login-pwd.png +0 -0
  129. package/dist-android/static/newStyle/login-user.png +0 -0
  130. package/dist-android/static/newStyle/loginbg.gif +0 -0
  131. package/dist-android/static/newStyle/loginbg1280.gif +0 -0
  132. package/dist-android/static/newStyle/loginbg1366.gif +0 -0
  133. package/dist-android/static/newStyle/setting.png +0 -0
  134. package/dist-android/static/newStyle/setting1.png +0 -0
  135. package/dist-android/static/newStyle/shirk.png +0 -0
  136. package/dist-android/static/newStyle/stretch_bottom.png +0 -0
  137. package/dist-android/static/newStyle/stretch_left.png +0 -0
  138. package/dist-android/static/newStyle/stretch_right.png +0 -0
  139. package/dist-android/static/newStyle/stretch_top.png +0 -0
  140. package/dist-android/static/newStyle/system-off.png +0 -0
  141. package/dist-android/static/pdf.jpg +0 -0
  142. package/dist-android/static//344/270/213/350/275/275/350/256/241/345/210/222.png +0 -0
  143. package/dist-android/static//344/273/273/345/212/241/346/237/245/350/257/242.png +0 -0
  144. package/dist-android/static//344/277/241/346/201/257/345/205/254/345/221/212.png +0 -0
  145. package/dist-android/static//345/205/254/345/221/212/346/237/245/347/234/213.png +0 -0
  146. package/dist-android/static//345/206/214/345/206/205/351/241/272/345/272/217/344/277/256/346/224/271.png +0 -0
  147. package/dist-android/static//345/215/241/350/241/250/345/234/250/347/272/277/346/212/204/350/241/250.png +0 -0
  148. package/dist-android/static//345/234/250/347/272/277/345/256/211/346/243/200.png +0 -0
  149. package/dist-android/static//345/234/250/347/272/277/345/267/241/346/243/200.png +0 -0
  150. package/dist-android/static//345/234/250/347/272/277/346/212/204/350/241/250.png +0 -0
  151. package/dist-android/static//345/234/250/347/272/277/346/212/242/344/277/256.png +0 -0
  152. package/dist-android/static//345/234/250/347/272/277/346/212/245/350/243/205.png +0 -0
  153. package/dist-android/static//345/234/250/347/272/277/346/223/215/344/275/234.png +0 -0
  154. package/dist-android/static//345/234/250/347/272/277/347/273/264/344/277/256.png +0 -0
  155. package/dist-android/static//345/234/250/347/272/277/347/274/264/350/264/271.png +0 -0
  156. package/dist-android/static//345/234/250/347/272/277/351/200/232/346/260/224.png +0 -0
  157. package/dist-android/static//345/256/211/346/243/200/345/267/262/345/212/236.png +0 -0
  158. package/dist-android/static//345/256/211/346/243/200/345/276/205/345/212/236.png +0 -0
  159. package/dist-android/static//345/256/211/346/243/200/346/212/275/345/215/225.png +0 -0
  160. package/dist-android/static//345/256/211/350/243/205/344/270/212/344/274/240.png +0 -0
  161. package/dist-android/static//345/256/211/350/243/205/345/267/262/345/212/236.png +0 -0
  162. package/dist-android/static//345/256/211/350/243/205/345/276/205/345/212/236.png +0 -0
  163. package/dist-android/static//345/267/241/346/243/200/344/270/212/344/274/240.png +0 -0
  164. package/dist-android/static//345/267/241/346/243/200/345/267/262/345/212/236.png +0 -0
  165. package/dist-android/static//345/274/200/345/205/263/351/230/200.png +0 -0
  166. package/dist-android/static//345/275/242/347/212/2664.png +0 -0
  167. package/dist-android/static//346/211/271/351/207/217/346/212/204/350/241/250.png +0 -0
  168. package/dist-android/static//346/212/204/350/241/250/344/270/212/344/274/240.png +0 -0
  169. package/dist-android/static//346/212/204/350/241/250/345/267/262/345/212/236.png +0 -0
  170. package/dist-android/static//346/212/204/350/241/250/345/276/205/345/212/236.png +0 -0
  171. package/dist-android/static//346/212/204/350/241/250/350/256/260/345/275/225.png +0 -0
  172. package/dist-android/static//346/212/245/345/273/272/346/234/215/345/212/241.png +0 -0
  173. package/dist-android/static//346/224/266/350/264/271/346/261/207/346/200/273/350/241/250.png +0 -0
  174. package/dist-android/static//346/224/266/350/264/271/350/256/260/345/275/225.png +0 -0
  175. package/dist-android/static//346/227/245/346/212/245/346/237/245/350/257/242.png +0 -0
  176. package/dist-android/static//346/241/243/346/241/210/344/277/256/346/224/271.png +0 -0
  177. package/dist-android/static//346/265/201/347/250/213/344/270/232/345/212/241.png +0 -0
  178. package/dist-android/static//346/265/201/347/250/213/347/233/221/346/216/247.png +0 -0
  179. package/dist-android/static//347/247/273/345/212/250/346/212/204/350/241/250.png +0 -0
  180. package/dist-android/static//347/247/273/345/212/250/346/212/204/350/241/250/345/267/262/345/212/236.png +0 -0
  181. package/dist-android/static//347/273/237/350/256/241/346/212/245/350/241/250.png +0 -0
  182. package/dist-android/static//347/273/264/344/277/256/346/264/276/345/217/221.png +0 -0
  183. package/dist-android/static//350/220/245/344/270/232/345/233/276/350/241/250.png +0 -0
  184. package/dist-android/static//350/241/250/345/206/214/351/241/272/345/272/217.png +0 -0
  185. package/dist-android/static//350/260/203/344/273/267/350/241/245/345/267/256/347/274/264/350/264/271.png +0 -0
  186. package/dist-android/static//350/277/233/345/272/246/345/210/227/350/241/250.png +0 -0
  187. package/dist-android/static//351/200/200/345/207/272/347/231/273/345/275/225.png +0 -0
  188. package/dist-android/static//351/200/201/346/260/224/344/270/212/344/274/240.png +0 -0
  189. package/dist-android/static//351/200/201/346/260/224/345/267/262/345/212/236.png +0 -0
  190. package/dist-android/static//351/200/201/346/260/224/345/276/205/345/212/236.png +0 -0
  191. package/dist-android/static//351/232/220/346/202/243/345/244/204/347/220/206.png +0 -0
  192. package/dist-android/static//351/233/206/344/270/255/345/256/211/346/243/200.png +0 -0
  193. package/dist-android/static//351/253/230/345/257/206/345/205/254/345/221/212.png +0 -0
@@ -1,520 +1,520 @@
1
- <template>
2
- <div class="col-sm-12" style="margin: 20px 0px;">
3
-
4
- <data-grid :model="model" v-ref:grid class="list_area table_sy" style="padding: 0px">
5
- <template partial='head'>
6
- <tr>
7
- <th>序号</th>
8
- <th>客户编号</th>
9
- <th>客户名称</th>
10
- <th>客户电话</th>
11
- <th>地址信息</th>
12
- <th>表具数量</th>
13
- <!-- <th v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'">单价(户)</th>-->
14
- <!-- <th v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'">累计缴费</th>-->
15
- <th>
16
- <button type="button" class="btn btn-info head-but"
17
- :disabled="$parent.$parent.mark === 1"
18
- @click="$parent.$parent.showFile = !$parent.$parent.showFile">导入</button>
19
- <a type="button" class="btn btn-info head-but"
20
- href="/applyinstall/Excel/v3报装表具批量导入.xlsx" download>模板下载</a>
21
- 操作
22
- </th>
23
- </tr>
24
- </template>
25
- <template partial='body'>
26
- <tr>
27
- <td style="text-align: center;">
28
- <nobr>{{$index+1}}</nobr>
29
- </td>
30
- <td style="text-align: center;">
31
- <nobr>{{row.f_userinfo_code}}</nobr>
32
- </td>
33
- <td style="text-align: center;">
34
- <nobr>{{row.f_user_name}}</nobr>
35
- </td>
36
- <td style="text-align: center;">
37
- <nobr>{{row.f_user_phone}}</nobr>
38
- </td>
39
- <td style="text-align: center;">
40
- <nobr>{{row.f_address}}</nobr>
41
- </td>
42
- <td style="text-align: center;">
43
- <nobr>{{row.f_userfiles_num === null ? 0 : row.f_userfiles_num}}</nobr>
44
- </td>
45
- <!-- <td style="text-align: center;"-->
46
- <!-- v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'"-->
47
- <!-- >-->
48
- <!-- <nobr>{{$parent.$parent.selectdata.f_price}}</nobr>-->
49
- <!-- </td>-->
50
- <!-- <td style="text-align: center;"-->
51
- <!-- v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'"-->
52
- <!-- >-->
53
- <!-- <nobr>{{row.f_cumulative_payment_money}}</nobr>-->
54
- <!-- </td>-->
55
- <td style="text-align: center;">
56
- <nobr>
57
- <button
58
- type="button"
59
- name="button"
60
- class="btn btn-link"
61
- :disabled="(row.f_cumulative_payment_money < $parent.$parent.selectdata.f_price && ($parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建')) || $parent.$parent.mark === 1"
62
- @click="$parent.$parent.showUserFileModal(row)">
63
- {{row.f_userfiles_num > 0 ? '修正' : '添加'}}
64
- </button>
65
- </nobr>
66
- </td>
67
- </tr>
68
- </template>
69
- </data-grid>
70
- </div>
71
- <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
72
- <header slot="modal-header" class="modal-header">
73
- <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
74
- <h4 class="modal-title">选择文件</h4>
75
- </header>
76
- <article slot="modal-body" class="modal-body">
77
- <div class="form-group">
78
- <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
79
- </div>
80
- </article>
81
- <footer slot="modal-footer" class="modal-footer"></footer>
82
- </modal>
83
-
84
- <modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
85
- <header slot="modal-header" class="modal-header">
86
- <button type="button" class="close" @click="closeUserFile"><span>&times;</span></button>
87
- <h4 class="modal-title">安装明细</h4>
88
- </header>
89
- <article slot="modal-body" class="modal-body clearfix">
90
- <div class="form-group col-sm-12">
91
- <label class="col-sm-2 control-label">地址信息:</label>
92
- <div class="col-sm-10">
93
- <input class="form-control input_view" style=""
94
- v-model="useradders.f_address"
95
- :value="useradders.f_address"
96
- :readonly="true"/>
97
- </div>
98
- </div>
99
-
100
- <div v-for="(i, item) in userinfo.userfiles" class="form-group col-sm-12 panel panel-info">
101
- <div class="panel-heading head" style="background-color: #e8f4ff;margin-bottom: 10px">表具{{$index+1}}信息</div>
102
- <div class="form-group col-sm-6" :class="item.f_gasbrand_id ? '':'has-error'">
103
- <label class="col-sm-4 control-label">气表品牌:</label>
104
- <div class="col-sm-8">
105
- <input-select
106
- class="select select_list"
107
- :value.sync="item.gasbrand"
108
- v-model="item.gasbrand"
109
- :options="meterbrands"
110
- @change="gasbrandChange(i)"
111
- :valueSingle="true"></input-select>
112
- </div>
113
- </div>
114
- <div class="form-group col-sm-6" :class="item.f_gasmodel_id ? '':'has-error'">
115
- <label class="col-sm-4 control-label">气表型号:</label>
116
- <div class="col-sm-8">
117
- <input-select
118
- class="select select_list"
119
- :value.sync="item.gasmodel"
120
- v-model="item.gasmodel"
121
- :options="item.gasbrand.gasmodel"
122
- @change="gasmodelChange(i)"
123
- :valueSingle="true"></input-select>
124
- </div>
125
- </div>
126
- <div class="form-group col-sm-6" :class="item.f_meternumber ? '':'has-error'">
127
- <label class="col-sm-4 control-label">表号:</label>
128
- <div class="col-sm-8">
129
- <input class="form-control input_view" style=""
130
- placeholder="表号"
131
- v-model="item.f_meternumber"
132
- :value="item.f_meternumber"
133
- @change="meternumberValidate(i)"
134
- :readonly="false"/>
135
- </div>
136
- </div>
137
- <div class="form-group col-sm-6" v-if="$parent.$parent.selectdata.defname === '点火通气'" :class="item.f_metertitles ? '':'has-error'">
138
- <label class="col-sm-4 control-label">表封号:</label>
139
- <div class="col-sm-8">
140
- <input class="form-control input_view" style=""
141
- placeholder="表封号"
142
- v-model="item.f_metertitles"
143
- :value="item.f_metertitles"
144
- :readonly="false"/>
145
- </div>
146
- </div>
147
- <div class="form-group col-sm-6" v-if="$parent.$parent.selectdata.defname !== '点火通气'">
148
- <label class="col-sm-4 control-label">表封号:</label>
149
- <div class="col-sm-8">
150
- <input class="form-control input_view" style=""
151
- placeholder="表封号"
152
- v-model="item.f_metertitles"
153
- :value="item.f_metertitles"
154
- :readonly="false"/>
155
- </div>
156
- </div>
157
- <div class="form-group col-sm-6">
158
- <label class="col-sm-4 control-label">表读数:</label>
159
- <div class="col-sm-8">
160
- <input class="form-control input_view" style=""
161
- type="number"
162
- placeholder="表读数"
163
- v-model="item.f_meter_base"
164
- :value="item.f_meter_base"
165
- :readonly="false"/>
166
- </div>
167
- </div>
168
- <div class="form-group col-sm-6">
169
- <label class="col-sm-4 control-label">初始底数:</label>
170
- <div class="col-sm-8">
171
- <input class="form-control input_view" style=""
172
- type="number"
173
- v-model="item.f_initial_base"
174
- :value="item.f_initial_base"
175
- placeholder="初始底数"
176
- :readonly="false"/>
177
- </div>
178
- </div>
179
- <div class="form-group col-sm-6">
180
- <label class="col-sm-4 control-label">表向:</label>
181
- <div class="col-sm-8">
182
- <input-select
183
- class="select select_list"
184
- :value.sync="item.f_aroundmeter"
185
- v-model="item.f_aroundmeter"
186
- :options="aroundmeters"
187
- :valueSingle="true"></input-select>
188
- </div>
189
- </div>
190
- <div class="form-group col-sm-6">
191
- <label class="col-sm-4 control-label">安装位置:</label>
192
- <div class="col-sm-8">
193
- <input-select
194
- class="select select_list"
195
- :value.sync="item.f_position"
196
- v-model="item.f_position"
197
- :options="positions"
198
- :valueSingle="true"></input-select>
199
- </div>
200
- </div>
201
- <div class="form-group col-sm-6" :class="$parent.$parent.userinfo.f_room ? '':'has-error'" v-if="$parent.$parent.selectdata.defname === '点火通气'">
202
- <label class="col-sm-4 control-label">门牌号:</label>
203
- <div class="col-sm-8">
204
- <input class="form-control input_view" style=""
205
- placeholder="门牌号"
206
- v-model="$parent.$parent.userinfo.f_room"
207
- :value="$parent.$parent.userinfo.f_room"
208
- :readonly="false"/>
209
- </div>
210
- </div>
211
- <div class="form-group col-sm-6">
212
- <label class="col-sm-4 control-label">安装人:</label>
213
- <div class="col-sm-8">
214
- <input-select
215
- class="select select_list"
216
- :value.sync="item.f_install_person"
217
- v-model="item.f_install_person"
218
- :options="installperson"
219
- :valueSingle="true"></input-select>
220
- </div>
221
- </div>
222
- <div class="form-group col-sm-6">
223
- <label class="col-sm-4 control-label">安装日期:</label>
224
- <div class="col-sm-8">
225
- <datepicker
226
- placeholder="安装日期"
227
- :value.sync="item.f_install_date"
228
- v-model="item.f_install_date"
229
- format="yyyy-MM-dd HH:mm:ss"
230
- :show-reset-button="reset">
231
- </datepicker>
232
- </div>
233
- </div>
234
- </div>
235
-
236
- </article>
237
- <footer slot="modal-footer" class="modal-footer">
238
- <!-- 去除一户多表 -->
239
- <button type="button" class="btn btn-primary" @click="addUserFile" v-if="false">添加表具</button>
240
- <button type="button" class="btn btn-primary" @click="saveUserFile">确认</button>
241
- </footer>
242
- </modal>
243
- </template>
244
- <script>
245
- import Vue from 'vue'
246
- import {PagedList} from 'vue-client'
247
- import {HttpResetClass} from 'vue-client'
248
- import {isEmpty} from '../../../Util'
249
-
250
- export default {
251
- title: '安装明细',
252
- props: {
253
- selectdata: {
254
- type: Object
255
- },
256
- mark: {
257
- type: Number,
258
- default: 0
259
- }
260
- },
261
- data () {
262
- return {
263
- showFile: false,
264
- showUserFile: false,
265
- model: {
266
- data: null
267
- },
268
- meterbrands: [], // 气表品牌
269
- useradders: null,
270
- userinfo: {}
271
- }
272
- },
273
- ready () {
274
- this.search()
275
- this.getMeterbrands()
276
- },
277
- methods: {
278
- // 保存档案
279
- async saveUserFile() {
280
- if (this.userinfo.userfiles.length > 1) {
281
- this.$showAlert('该地址下已有表具信息,暂不支持一户多表!!!', 'warning', 3000)
282
- return
283
- }
284
- // 检查必填项
285
- for (let i = 0; i < this.userinfo.userfiles.length; i++) {
286
- let userfile = this.userinfo.userfiles[i]
287
- if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
288
- this.$showAlert(`表具${i+1}气表品牌没有选择!!!`, 'warning', 3000)
289
- return
290
- }
291
- if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
292
- this.$showAlert(`表具${i+1}气表型号没有选择!!!`, 'warning', 3000)
293
- return
294
- }
295
- if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
296
- this.$showAlert(`表具${i+1}表号没有填写!!!`, 'warning', 3000)
297
- return
298
- }
299
- if (userfile.f_aroundmeter === null || userfile.f_aroundmeter === '') {
300
- this.$showAlert(`表具${i+1}表向没有填写!!!`, 'warning', 3000)
301
- return
302
- }
303
- if (this.selectdata.defname === '通气下发'){
304
- if (userfile.f_metertitles === null || userfile.f_metertitles === '') {
305
- this.$showAlert(`表具${i+1}表封号没有填写!!!`, 'warning', 3000)
306
- return
307
- }
308
- if (this.userinfo.f_room === null || this.userinfo.f_room === '') {
309
- this.$showAlert(`表具${i+1}门牌号没有填写!!!`, 'warning', 3000)
310
- return
311
- }
312
- }
313
- }
314
- let data = {
315
- user: this.$login.f,
316
- useradders: this.useradders,
317
- userinfo: this.userinfo,
318
- selectdata: this.selectdata
319
- }
320
- let res = await this.$resetpost('rs/logic/addInstallationDetails', {data:data}, {
321
- resolveMsg: null,
322
- rejectMsg: '表具添加失败!!!'
323
- })
324
- this.$dispatch('breakControl', this.selectdata)
325
- },
326
- // 检查表号是否存在
327
- async meternumberValidate(i) {
328
- if (!this.userinfo.userfiles[i].f_gasbrand_id) {
329
- this.userinfo.userfiles[i].f_meternumber = ''
330
- this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
331
- return
332
- }
333
- if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
334
- let data = {
335
- f_meternumber: this.userinfo.userfiles[i].f_meternumber,
336
- f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
337
- }
338
- if (this.userinfo.userfiles[i].f_userfiles_id) {
339
- data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
340
- }
341
- let res = await this.$resetpost('rs/logic/meterbrandsNumberValidate', {data:data}, {
342
- resolveMsg: null,
343
- rejectMsg: '表号验证失败!!'
344
- })
345
- if (res.data) {
346
- this.userinfo.userfiles[i].f_meternumber = ''
347
- this.$showAlert('表号已存在!!', 'warning', 3000)
348
- }
349
- }
350
- },
351
- // 选择气表型号
352
- gasmodelChange(i) {
353
- if (this.userinfo.userfiles[i].gasmodel) {
354
- this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
355
- }
356
- },
357
- // 选择气表品牌
358
- gasbrandChange(i) {
359
- // 清空已保存的气表型号
360
- this.userinfo.userfiles[i].f_gasmodel_id = null
361
- this.userinfo.userfiles[i].gasmodel = null
362
- if (this.userinfo.userfiles[i].gasbrand) {
363
- // 气表品牌id
364
- this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
365
- // 气表分类
366
- this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
367
- }
368
- },
369
- // 追加表具
370
- addUserFile() {
371
- this.userinfo.userfiles.push({})
372
- },
373
- // 打开安装明细
374
- async showUserFileModal (row) {
375
- this.useradders = row
376
-
377
- let http = new HttpResetClass()
378
- let data = {
379
- condition: `f_userinfo_id='${row.f_userinfo_id}'`
380
- }
381
- let res = await http.load('POST', 'rs/logic/getUserinfoAndUserfiles', {data:data}, {
382
- resolveMsg: null,
383
- rejectMsg: null
384
- })
385
-
386
- this.userinfo = res.data
387
-
388
- // 已有表具的 气表信息补充
389
- for (let i = 0; i < this.userinfo.userfiles.length; i++) {
390
- for (const item of this.meterbrands) {
391
- if (item.value.id === this.userinfo.userfiles[i].f_gasbrand_id) {
392
- // this.userinfo.userfiles[i].gasbrand = item.value // 防止双向绑定失败
393
- Vue.set(this.userinfo.userfiles[i], 'gasbrand', item.value)
394
- }
395
- }
396
- if (this.userinfo.userfiles[i].gasbrand) {
397
- for (const item of this.userinfo.userfiles[i].gasbrand.gasmodel) {
398
- if (item.value.id === this.userinfo.userfiles[i].f_gasmodel_id) {
399
- // this.userinfo.userfiles[i].gasmodel = item.value
400
- Vue.set(this.userinfo.userfiles[i], 'gasmodel', item.value)
401
- }
402
- }
403
- }
404
- }
405
-
406
- this.showUserFile = true
407
- },
408
- // 获取气表品牌
409
- async getMeterbrands() {
410
- let http = new HttpResetClass()
411
- let data = {
412
- f_filialeid: this.$login.f.f_orgids
413
- }
414
- let res = await http.load('POST', 'rs/logic/getMeterbrands', {data:data}, {
415
- resolveMsg: null,
416
- rejectMsg: null
417
- })
418
- this.meterbrands = res.data
419
- },
420
- // 查询
421
- async search () {
422
- let http = new HttpResetClass()
423
- let data = {
424
- condition: " 1=1",
425
- f_process_id: this.selectdata.f_process_id
426
- }
427
- let res = await http.load('POST', 'rs/sql/getAddresAndUserinfoAndUserfilesAmount', {data:data}, {
428
- resolveMsg: null,
429
- rejectMsg: null
430
- })
431
- this.model.data = res.data
432
- if (this.selectdata.f_apply_type === '开发商集体报建' || this.selectdata.f_apply_type === '散户集体报建' || this.selectdata.f_apply_type === '煤改气报建') {
433
- let f_installed_households = 0
434
- for (const item of res.data) {
435
- if (item.f_userfiles_num > 0) {
436
- f_installed_households++
437
- }
438
- }
439
- let f_uninstalled_households = this.selectdata.f_apply_count - f_installed_households
440
- for (const item of this.selectdata.fields) {
441
- if (item.label === '已安装户数') {
442
- item.value = f_installed_households
443
- }
444
- if (item.label === '未安装户数') {
445
- item.value = f_uninstalled_households
446
- }
447
- }
448
- }
449
- },
450
- // 关闭安装明细
451
- closeUserFile() {
452
- this.showUserFile = false
453
- this.useradders = null
454
- this.userinfo = null
455
- this.search()
456
- },
457
- // 关闭文件上传对话框
458
- closeFile() {
459
- this.showFile = false
460
- // 将选的文件清空
461
- this.$refs.file.$el.querySelector('input').value = ''
462
- this.search()
463
- }
464
- },
465
- events: {
466
- async 'onFileUpload'(file, result) {
467
- let data = {
468
- selectdata: this.selectdata,
469
- filepath: result.f_downloadpath,
470
- user: this.$login.f
471
- }
472
- let res = await this.$resetpost(`rs/logic/importAddInstallationDetails`, {data:data}, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0)
473
- if(res.data.type === "success"){
474
- this.$showAlert("导入信息:"+res.data.msg, res.data.type, 2000);
475
- }else{
476
- this.$showMessage(res.data.msg);
477
- }
478
- this.$dispatch('breakControl', this.selectdata)
479
- }
480
- },
481
- computed: {
482
- // 安装人
483
- installperson() {
484
- return this.$login.f.f_installman.map(item => {
485
- return {
486
- label: item.name,
487
- value: item.name
488
- }
489
- })
490
- },
491
- // 表向
492
- aroundmeters() {
493
- return this.$appdata.getParam('左右表')
494
- },
495
- // 安装位置
496
- positions() {
497
- return this.$appdata.getParam('安装位置')
498
- }
499
- },
500
- watch: {
501
- }
502
- }
503
- </script>
504
- <style scoped>
505
- .head-but{
506
- margin-left: 5px;
507
- height: 34px;
508
- /*background-color: #6aa6e2;*/
509
- border-radius: 4px;
510
- font-family: PingFang;
511
- color: #ffffff;
512
- }
513
- /*清除model中的浮动*/
514
- .clearfix:after,.clearfix:before{
515
- display: table;
516
- }
517
- .clearfix:after{
518
- clear: both;
519
- }
520
- </style>
1
+ <template>
2
+ <div class="col-sm-12" style="margin: 20px 0px;">
3
+
4
+ <data-grid :model="model" v-ref:grid class="list_area table_sy" style="padding: 0px">
5
+ <template partial='head'>
6
+ <tr>
7
+ <th>序号</th>
8
+ <th>客户编号</th>
9
+ <th>客户名称</th>
10
+ <th>客户电话</th>
11
+ <th>地址信息</th>
12
+ <th>表具数量</th>
13
+ <!-- <th v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'">单价(户)</th>-->
14
+ <!-- <th v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'">累计缴费</th>-->
15
+ <th>
16
+ <button type="button" class="btn btn-info head-but"
17
+ :disabled="$parent.$parent.mark === 1"
18
+ @click="$parent.$parent.showFile = !$parent.$parent.showFile">导入</button>
19
+ <a type="button" class="btn btn-info head-but"
20
+ href="/applyinstall/Excel/v3报装表具批量导入.xlsx" download>模板下载</a>
21
+ 操作
22
+ </th>
23
+ </tr>
24
+ </template>
25
+ <template partial='body'>
26
+ <tr>
27
+ <td style="text-align: center;">
28
+ <nobr>{{$index+1}}</nobr>
29
+ </td>
30
+ <td style="text-align: center;">
31
+ <nobr>{{row.f_userinfo_code}}</nobr>
32
+ </td>
33
+ <td style="text-align: center;">
34
+ <nobr>{{row.f_user_name}}</nobr>
35
+ </td>
36
+ <td style="text-align: center;">
37
+ <nobr>{{row.f_user_phone}}</nobr>
38
+ </td>
39
+ <td style="text-align: center;">
40
+ <nobr>{{row.f_address}}</nobr>
41
+ </td>
42
+ <td style="text-align: center;">
43
+ <nobr>{{row.f_userfiles_num === null ? 0 : row.f_userfiles_num}}</nobr>
44
+ </td>
45
+ <!-- <td style="text-align: center;"-->
46
+ <!-- v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'"-->
47
+ <!-- >-->
48
+ <!-- <nobr>{{$parent.$parent.selectdata.f_price}}</nobr>-->
49
+ <!-- </td>-->
50
+ <!-- <td style="text-align: center;"-->
51
+ <!-- v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'"-->
52
+ <!-- >-->
53
+ <!-- <nobr>{{row.f_cumulative_payment_money}}</nobr>-->
54
+ <!-- </td>-->
55
+ <td style="text-align: center;">
56
+ <nobr>
57
+ <button
58
+ type="button"
59
+ name="button"
60
+ class="btn btn-link"
61
+ :disabled="(row.f_cumulative_payment_money < $parent.$parent.selectdata.f_price && ($parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建')) || $parent.$parent.mark === 1"
62
+ @click="$parent.$parent.showUserFileModal(row)">
63
+ {{row.f_userfiles_num > 0 ? '修正' : '添加'}}
64
+ </button>
65
+ </nobr>
66
+ </td>
67
+ </tr>
68
+ </template>
69
+ </data-grid>
70
+ </div>
71
+ <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
72
+ <header slot="modal-header" class="modal-header">
73
+ <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
74
+ <h4 class="modal-title">选择文件</h4>
75
+ </header>
76
+ <article slot="modal-body" class="modal-body">
77
+ <div class="form-group">
78
+ <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
79
+ </div>
80
+ </article>
81
+ <footer slot="modal-footer" class="modal-footer"></footer>
82
+ </modal>
83
+
84
+ <modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
85
+ <header slot="modal-header" class="modal-header">
86
+ <button type="button" class="close" @click="closeUserFile"><span>&times;</span></button>
87
+ <h4 class="modal-title">安装明细</h4>
88
+ </header>
89
+ <article slot="modal-body" class="modal-body clearfix">
90
+ <div class="form-group col-sm-12">
91
+ <label class="col-sm-2 control-label">地址信息:</label>
92
+ <div class="col-sm-10">
93
+ <input class="form-control input_view" style=""
94
+ v-model="useradders.f_address"
95
+ :value="useradders.f_address"
96
+ :readonly="true"/>
97
+ </div>
98
+ </div>
99
+
100
+ <div v-for="(i, item) in userinfo.userfiles" class="form-group col-sm-12 panel panel-info">
101
+ <div class="panel-heading head" style="background-color: #e8f4ff;margin-bottom: 10px">表具{{$index+1}}信息</div>
102
+ <div class="form-group col-sm-6" :class="item.f_gasbrand_id ? '':'has-error'">
103
+ <label class="col-sm-4 control-label">气表品牌:</label>
104
+ <div class="col-sm-8">
105
+ <input-select
106
+ class="select select_list"
107
+ :value.sync="item.gasbrand"
108
+ v-model="item.gasbrand"
109
+ :options="meterbrands"
110
+ @change="gasbrandChange(i)"
111
+ :valueSingle="true"></input-select>
112
+ </div>
113
+ </div>
114
+ <div class="form-group col-sm-6" :class="item.f_gasmodel_id ? '':'has-error'">
115
+ <label class="col-sm-4 control-label">气表型号:</label>
116
+ <div class="col-sm-8">
117
+ <input-select
118
+ class="select select_list"
119
+ :value.sync="item.gasmodel"
120
+ v-model="item.gasmodel"
121
+ :options="item.gasbrand.gasmodel"
122
+ @change="gasmodelChange(i)"
123
+ :valueSingle="true"></input-select>
124
+ </div>
125
+ </div>
126
+ <div class="form-group col-sm-6" :class="item.f_meternumber ? '':'has-error'">
127
+ <label class="col-sm-4 control-label">表号:</label>
128
+ <div class="col-sm-8">
129
+ <input class="form-control input_view" style=""
130
+ placeholder="表号"
131
+ v-model="item.f_meternumber"
132
+ :value="item.f_meternumber"
133
+ @change="meternumberValidate(i)"
134
+ :readonly="false"/>
135
+ </div>
136
+ </div>
137
+ <div class="form-group col-sm-6" v-if="$parent.$parent.selectdata.defname === '点火通气'" :class="item.f_metertitles ? '':'has-error'">
138
+ <label class="col-sm-4 control-label">表封号:</label>
139
+ <div class="col-sm-8">
140
+ <input class="form-control input_view" style=""
141
+ placeholder="表封号"
142
+ v-model="item.f_metertitles"
143
+ :value="item.f_metertitles"
144
+ :readonly="false"/>
145
+ </div>
146
+ </div>
147
+ <div class="form-group col-sm-6" v-if="$parent.$parent.selectdata.defname !== '点火通气'">
148
+ <label class="col-sm-4 control-label">表封号:</label>
149
+ <div class="col-sm-8">
150
+ <input class="form-control input_view" style=""
151
+ placeholder="表封号"
152
+ v-model="item.f_metertitles"
153
+ :value="item.f_metertitles"
154
+ :readonly="false"/>
155
+ </div>
156
+ </div>
157
+ <div class="form-group col-sm-6">
158
+ <label class="col-sm-4 control-label">表读数:</label>
159
+ <div class="col-sm-8">
160
+ <input class="form-control input_view" style=""
161
+ type="number"
162
+ placeholder="表读数"
163
+ v-model="item.f_meter_base"
164
+ :value="item.f_meter_base"
165
+ :readonly="false"/>
166
+ </div>
167
+ </div>
168
+ <div class="form-group col-sm-6">
169
+ <label class="col-sm-4 control-label">初始底数:</label>
170
+ <div class="col-sm-8">
171
+ <input class="form-control input_view" style=""
172
+ type="number"
173
+ v-model="item.f_initial_base"
174
+ :value="item.f_initial_base"
175
+ placeholder="初始底数"
176
+ :readonly="false"/>
177
+ </div>
178
+ </div>
179
+ <div class="form-group col-sm-6">
180
+ <label class="col-sm-4 control-label">表向:</label>
181
+ <div class="col-sm-8">
182
+ <input-select
183
+ class="select select_list"
184
+ :value.sync="item.f_aroundmeter"
185
+ v-model="item.f_aroundmeter"
186
+ :options="aroundmeters"
187
+ :valueSingle="true"></input-select>
188
+ </div>
189
+ </div>
190
+ <div class="form-group col-sm-6">
191
+ <label class="col-sm-4 control-label">安装位置:</label>
192
+ <div class="col-sm-8">
193
+ <input-select
194
+ class="select select_list"
195
+ :value.sync="item.f_position"
196
+ v-model="item.f_position"
197
+ :options="positions"
198
+ :valueSingle="true"></input-select>
199
+ </div>
200
+ </div>
201
+ <div class="form-group col-sm-6" :class="$parent.$parent.userinfo.f_room ? '':'has-error'" v-if="$parent.$parent.selectdata.defname === '点火通气'">
202
+ <label class="col-sm-4 control-label">门牌号:</label>
203
+ <div class="col-sm-8">
204
+ <input class="form-control input_view" style=""
205
+ placeholder="门牌号"
206
+ v-model="$parent.$parent.userinfo.f_room"
207
+ :value="$parent.$parent.userinfo.f_room"
208
+ :readonly="false"/>
209
+ </div>
210
+ </div>
211
+ <div class="form-group col-sm-6">
212
+ <label class="col-sm-4 control-label">安装人:</label>
213
+ <div class="col-sm-8">
214
+ <input-select
215
+ class="select select_list"
216
+ :value.sync="item.f_install_person"
217
+ v-model="item.f_install_person"
218
+ :options="installperson"
219
+ :valueSingle="true"></input-select>
220
+ </div>
221
+ </div>
222
+ <div class="form-group col-sm-6">
223
+ <label class="col-sm-4 control-label">安装日期:</label>
224
+ <div class="col-sm-8">
225
+ <datepicker
226
+ placeholder="安装日期"
227
+ :value.sync="item.f_install_date"
228
+ v-model="item.f_install_date"
229
+ format="yyyy-MM-dd HH:mm:ss"
230
+ :show-reset-button="reset">
231
+ </datepicker>
232
+ </div>
233
+ </div>
234
+ </div>
235
+
236
+ </article>
237
+ <footer slot="modal-footer" class="modal-footer">
238
+ <!-- 去除一户多表 -->
239
+ <button type="button" class="btn btn-primary" @click="addUserFile" v-if="false">添加表具</button>
240
+ <button type="button" class="btn btn-primary" @click="saveUserFile">确认</button>
241
+ </footer>
242
+ </modal>
243
+ </template>
244
+ <script>
245
+ import Vue from 'vue'
246
+ import {PagedList} from 'vue-client'
247
+ import {HttpResetClass} from 'vue-client'
248
+ import {isEmpty} from '../../../Util'
249
+
250
+ export default {
251
+ title: '安装明细',
252
+ props: {
253
+ selectdata: {
254
+ type: Object
255
+ },
256
+ mark: {
257
+ type: Number,
258
+ default: 0
259
+ }
260
+ },
261
+ data () {
262
+ return {
263
+ showFile: false,
264
+ showUserFile: false,
265
+ model: {
266
+ data: null
267
+ },
268
+ meterbrands: [], // 气表品牌
269
+ useradders: null,
270
+ userinfo: {}
271
+ }
272
+ },
273
+ ready () {
274
+ this.search()
275
+ this.getMeterbrands()
276
+ },
277
+ methods: {
278
+ // 保存档案
279
+ async saveUserFile() {
280
+ if (this.userinfo.userfiles.length > 1) {
281
+ this.$showAlert('该地址下已有表具信息,暂不支持一户多表!!!', 'warning', 3000)
282
+ return
283
+ }
284
+ // 检查必填项
285
+ for (let i = 0; i < this.userinfo.userfiles.length; i++) {
286
+ let userfile = this.userinfo.userfiles[i]
287
+ if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
288
+ this.$showAlert(`表具${i+1}气表品牌没有选择!!!`, 'warning', 3000)
289
+ return
290
+ }
291
+ if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
292
+ this.$showAlert(`表具${i+1}气表型号没有选择!!!`, 'warning', 3000)
293
+ return
294
+ }
295
+ if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
296
+ this.$showAlert(`表具${i+1}表号没有填写!!!`, 'warning', 3000)
297
+ return
298
+ }
299
+ if (userfile.f_aroundmeter === null || userfile.f_aroundmeter === '') {
300
+ this.$showAlert(`表具${i+1}表向没有填写!!!`, 'warning', 3000)
301
+ return
302
+ }
303
+ if (this.selectdata.defname === '通气下发'){
304
+ if (userfile.f_metertitles === null || userfile.f_metertitles === '') {
305
+ this.$showAlert(`表具${i+1}表封号没有填写!!!`, 'warning', 3000)
306
+ return
307
+ }
308
+ if (this.userinfo.f_room === null || this.userinfo.f_room === '') {
309
+ this.$showAlert(`表具${i+1}门牌号没有填写!!!`, 'warning', 3000)
310
+ return
311
+ }
312
+ }
313
+ }
314
+ let data = {
315
+ user: this.$login.f,
316
+ useradders: this.useradders,
317
+ userinfo: this.userinfo,
318
+ selectdata: this.selectdata
319
+ }
320
+ let res = await this.$resetpost('rs/logic/addInstallationDetails', {data:data}, {
321
+ resolveMsg: null,
322
+ rejectMsg: '表具添加失败!!!'
323
+ })
324
+ this.$dispatch('breakControl', this.selectdata)
325
+ },
326
+ // 检查表号是否存在
327
+ async meternumberValidate(i) {
328
+ if (!this.userinfo.userfiles[i].f_gasbrand_id) {
329
+ this.userinfo.userfiles[i].f_meternumber = ''
330
+ this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
331
+ return
332
+ }
333
+ if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
334
+ let data = {
335
+ f_meternumber: this.userinfo.userfiles[i].f_meternumber,
336
+ f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
337
+ }
338
+ if (this.userinfo.userfiles[i].f_userfiles_id) {
339
+ data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
340
+ }
341
+ let res = await this.$resetpost('rs/logic/meterbrandsNumberValidate', {data:data}, {
342
+ resolveMsg: null,
343
+ rejectMsg: '表号验证失败!!'
344
+ })
345
+ if (res.data) {
346
+ this.userinfo.userfiles[i].f_meternumber = ''
347
+ this.$showAlert('表号已存在!!', 'warning', 3000)
348
+ }
349
+ }
350
+ },
351
+ // 选择气表型号
352
+ gasmodelChange(i) {
353
+ if (this.userinfo.userfiles[i].gasmodel) {
354
+ this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
355
+ }
356
+ },
357
+ // 选择气表品牌
358
+ gasbrandChange(i) {
359
+ // 清空已保存的气表型号
360
+ this.userinfo.userfiles[i].f_gasmodel_id = null
361
+ this.userinfo.userfiles[i].gasmodel = null
362
+ if (this.userinfo.userfiles[i].gasbrand) {
363
+ // 气表品牌id
364
+ this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
365
+ // 气表分类
366
+ this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
367
+ }
368
+ },
369
+ // 追加表具
370
+ addUserFile() {
371
+ this.userinfo.userfiles.push({})
372
+ },
373
+ // 打开安装明细
374
+ async showUserFileModal (row) {
375
+ this.useradders = row
376
+
377
+ let http = new HttpResetClass()
378
+ let data = {
379
+ condition: `f_userinfo_id='${row.f_userinfo_id}'`
380
+ }
381
+ let res = await http.load('POST', 'rs/logic/getUserinfoAndUserfiles', {data:data}, {
382
+ resolveMsg: null,
383
+ rejectMsg: null
384
+ })
385
+
386
+ this.userinfo = res.data
387
+
388
+ // 已有表具的 气表信息补充
389
+ for (let i = 0; i < this.userinfo.userfiles.length; i++) {
390
+ for (const item of this.meterbrands) {
391
+ if (item.value.id === this.userinfo.userfiles[i].f_gasbrand_id) {
392
+ // this.userinfo.userfiles[i].gasbrand = item.value // 防止双向绑定失败
393
+ Vue.set(this.userinfo.userfiles[i], 'gasbrand', item.value)
394
+ }
395
+ }
396
+ if (this.userinfo.userfiles[i].gasbrand) {
397
+ for (const item of this.userinfo.userfiles[i].gasbrand.gasmodel) {
398
+ if (item.value.id === this.userinfo.userfiles[i].f_gasmodel_id) {
399
+ // this.userinfo.userfiles[i].gasmodel = item.value
400
+ Vue.set(this.userinfo.userfiles[i], 'gasmodel', item.value)
401
+ }
402
+ }
403
+ }
404
+ }
405
+
406
+ this.showUserFile = true
407
+ },
408
+ // 获取气表品牌
409
+ async getMeterbrands() {
410
+ let http = new HttpResetClass()
411
+ let data = {
412
+ f_filialeid: this.$login.f.f_orgids
413
+ }
414
+ let res = await http.load('POST', 'rs/logic/getMeterbrands', {data:data}, {
415
+ resolveMsg: null,
416
+ rejectMsg: null
417
+ })
418
+ this.meterbrands = res.data
419
+ },
420
+ // 查询
421
+ async search () {
422
+ let http = new HttpResetClass()
423
+ let data = {
424
+ condition: " 1=1",
425
+ f_process_id: this.selectdata.f_process_id
426
+ }
427
+ let res = await http.load('POST', 'rs/sql/getAddresAndUserinfoAndUserfilesAmount', {data:data}, {
428
+ resolveMsg: null,
429
+ rejectMsg: null
430
+ })
431
+ this.model.data = res.data
432
+ if (this.selectdata.f_apply_type === '开发商集体报建' || this.selectdata.f_apply_type === '散户集体报建' || this.selectdata.f_apply_type === '煤改气报建') {
433
+ let f_installed_households = 0
434
+ for (const item of res.data) {
435
+ if (item.f_userfiles_num > 0) {
436
+ f_installed_households++
437
+ }
438
+ }
439
+ let f_uninstalled_households = this.selectdata.f_apply_count - f_installed_households
440
+ for (const item of this.selectdata.fields) {
441
+ if (item.label === '已安装户数') {
442
+ item.value = f_installed_households
443
+ }
444
+ if (item.label === '未安装户数') {
445
+ item.value = f_uninstalled_households
446
+ }
447
+ }
448
+ }
449
+ },
450
+ // 关闭安装明细
451
+ closeUserFile() {
452
+ this.showUserFile = false
453
+ this.useradders = null
454
+ this.userinfo = null
455
+ this.search()
456
+ },
457
+ // 关闭文件上传对话框
458
+ closeFile() {
459
+ this.showFile = false
460
+ // 将选的文件清空
461
+ this.$refs.file.$el.querySelector('input').value = ''
462
+ this.search()
463
+ }
464
+ },
465
+ events: {
466
+ async 'onFileUpload'(file, result) {
467
+ let data = {
468
+ selectdata: this.selectdata,
469
+ filepath: result.f_downloadpath,
470
+ user: this.$login.f
471
+ }
472
+ let res = await this.$resetpost(`rs/logic/importAddInstallationDetails`, {data:data}, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0)
473
+ if(res.data.type === "success"){
474
+ this.$showAlert("导入信息:"+res.data.msg, res.data.type, 2000);
475
+ }else{
476
+ this.$showMessage(res.data.msg);
477
+ }
478
+ this.$dispatch('breakControl', this.selectdata)
479
+ }
480
+ },
481
+ computed: {
482
+ // 安装人
483
+ installperson() {
484
+ return this.$login.f.f_installman.map(item => {
485
+ return {
486
+ label: item.name,
487
+ value: item.name
488
+ }
489
+ })
490
+ },
491
+ // 表向
492
+ aroundmeters() {
493
+ return this.$appdata.getParam('左右表')
494
+ },
495
+ // 安装位置
496
+ positions() {
497
+ return this.$appdata.getParam('安装位置')
498
+ }
499
+ },
500
+ watch: {
501
+ }
502
+ }
503
+ </script>
504
+ <style scoped>
505
+ .head-but{
506
+ margin-left: 5px;
507
+ height: 34px;
508
+ /*background-color: #6aa6e2;*/
509
+ border-radius: 4px;
510
+ font-family: PingFang;
511
+ color: #ffffff;
512
+ }
513
+ /*清除model中的浮动*/
514
+ .clearfix:after,.clearfix:before{
515
+ display: table;
516
+ }
517
+ .clearfix:after{
518
+ clear: both;
519
+ }
520
+ </style>