apply-clients 3.0.4 → 3.0.5-ys

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 (371) hide show
  1. package/.gradle/3.5/file-changes/last-build.bin +0 -0
  2. package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
  3. package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
  4. package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
  5. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  6. package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
  7. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  8. package/{dist-android/static/.gitkeep → .gradle/5.2.1/gc.properties} +0 -0
  9. package/.gradle/buildOutputCleanup/built.bin +0 -0
  10. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  11. package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
  12. package/.gradle/vcs-1/gc.properties +0 -0
  13. package/doc//346/226/260/347/224/250/346/210/267/350/212/261/345/220/215/345/206/214/345/257/274/345/205/245/346/250/241/346/235/277.xls +0 -0
  14. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  15. package/gradle/wrapper/gradle-wrapper.properties +5 -0
  16. package/gradlew +0 -0
  17. package/gradlew.bat +84 -0
  18. package/index.html +26 -17
  19. package/package.json +8 -5
  20. package/src/App.vue +14 -21
  21. package/src/apply.js +55 -2
  22. package/src/applyAndroid.js +1 -1
  23. package/src/bootstrap/less/aofeng/animate.min.css +11 -0
  24. package/src/bootstrap/less/aofeng/standard.less +591 -0
  25. package/src/bootstrap/less/aofeng/themeOne/BinaryTemplate.less +478 -0
  26. package/src/bootstrap/less/aofeng/themeOne/loginStyle.less +1586 -0
  27. package/src/bootstrap/less/aofeng/themeOne/systemStyle.less +1915 -0
  28. package/src/bootstrap/less/aofeng/themeOne.less +10 -0
  29. package/src/bootstrap/less/aofeng/themeTwo/newStyle1.less +415 -0
  30. package/src/bootstrap/less/aofeng/themeTwo.less +2 -0
  31. package/src/bootstrap/less/bootstrap.less +11 -0
  32. package/src/bootstrap/less/forms.less +2 -2
  33. package/src/bootstrap/less/manageStyle/manageChile.less +180 -0
  34. package/src/bootstrap/less/manageStyle/manageStyle.less +1103 -0
  35. package/src/bootstrap/less/manageStyle/qinhuaStyle.less +116 -0
  36. package/src/bootstrap/less/manageStyle/safeStyle.less +498 -0
  37. package/src/bootstrap/less/manageStyle/telephoneanaly.less +92 -0
  38. package/src/bootstrap/less/navs.less +2 -3
  39. package/src/bootstrap/less/stand.less +207 -0
  40. package/src/bootstrap/less/standard.less +503 -0
  41. package/src/bootstrap/less/systemStyle.less +860 -0
  42. package/src/bootstrap/less/variables.less +2 -1
  43. package/src/components/Util.js +26 -22
  44. package/src/components/app_apply/ApplyDownList.vue +21 -8
  45. package/src/components/app_apply/ApplyToDoList.vue +94 -59
  46. package/src/components/app_apply/ApplyUserInfo.vue +3 -3
  47. package/src/components/app_apply/FieldExploration.vue +2 -2
  48. package/src/components/app_apply/PlaceControler.vue +16 -19
  49. package/src/components/app_apply/ServiceControl.vue +1136 -16
  50. package/src/components/app_apply/ServiceView.vue +395 -167
  51. package/src/components/app_apply/Ventilation.vue +2 -2
  52. package/src/components/image/doc.jpg +0 -0
  53. package/src/components/image/excel.jpg +0 -0
  54. package/src/components/image/pdf.jpg +0 -0
  55. package/src/components/image//345/233/276/345/261/20212.png +0 -0
  56. package/src/components/image//345/233/276/345/261/20213.png +0 -0
  57. package/src/components/image//345/233/276/345/261/20216.png +0 -0
  58. package/src/components/image//345/244/232/350/276/271/345/275/2422.png +0 -0
  59. package/src/components/image//345/244/232/350/276/271/345/275/2422/346/213/267/350/264/235.png +0 -0
  60. package/src/components/image//346/244/255/345/234/2062.png +0 -0
  61. package/src/components/image//346/244/255/345/234/2065.png +0 -0
  62. package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/235.png +0 -0
  63. package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2352.png +0 -0
  64. package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2353.png +0 -0
  65. package/src/components/image//347/273/2044.png +0 -0
  66. package/src/components/image//347/273/2045.png +0 -0
  67. package/src/components/image//347/273/2046.png +0 -0
  68. package/src/components/image//350/257/235/345/212/241/347/273/237/350/256/241/346/225/260/346/215/256/345/261/225/347/244/272.png +0 -0
  69. package/src/components/product/BatchFunction/BatchPay.vue +694 -0
  70. package/src/components/product/Bill/BillXSDMakeInfo.vue +1 -1
  71. package/src/components/product/Function/InstallFunction.vue +17 -13
  72. package/src/components/product/Function/InstallInfoSelect.vue +293 -71
  73. package/src/components/product/Function/Service/FunctionServiceControl.vue +50 -5
  74. package/src/components/product/Function/functions/AddContract.vue +161 -139
  75. package/src/components/product/Function/functions/BuyerMessage.vue +285 -137
  76. package/src/components/product/Function/functions/InstallFee.vue +1141 -912
  77. package/src/components/product/Function/functions/InstallFeeInfo.vue +5 -5
  78. package/src/components/product/Function/functions/PrestoreFee.vue +4 -4
  79. package/src/components/product/Function/functions/StopInstall.vue +14 -2
  80. package/src/components/product/HiddenDangersInProjects/AddHiddenDangers.vue +965 -0
  81. package/src/components/product/HiddenDangersInProjects/HiddenProjectList.vue +433 -0
  82. package/src/components/product/HiddenDangersInProjects/HiddenProjectSchedule.vue +146 -0
  83. package/src/components/product/MaterialBatchList.vue +109 -0
  84. package/src/components/product/MaterialBatchManage.vue +34 -0
  85. package/src/components/product/Procedures/ProceduresDataGrid.vue +1022 -0
  86. package/src/components/product/Process/ExplorationSelect.vue +767 -416
  87. package/src/components/product/Process/ExplorationUser.vue +96 -51
  88. package/src/components/product/Process/MaterialUseList.vue +159 -0
  89. package/src/components/product/Process/ModifyUserFiles.vue +1 -1
  90. package/src/components/product/Process/ProcessInfo/history_control.vue +29 -6
  91. package/src/components/product/Process/Processes/CustomerBuildingMessage.vue +5 -5
  92. package/src/components/product/Process/Processes/CustomerEquipmentMessage.vue +1 -1
  93. package/src/components/product/Process/Processes/CustomerMaterialMessage.vue +499 -210
  94. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +1457 -753
  95. package/src/components/product/Process/Processes/ProjectSettlement.vue +535 -24
  96. package/src/components/product/Process/Processes/ReceiveBatch.vue +301 -121
  97. package/src/components/product/Process/Processes/Service/ApplyChangeHistory.vue +105 -0
  98. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +87 -68
  99. package/src/components/product/Process/Processes/Service/ServiceControl.vue +2521 -422
  100. package/src/components/product/Process/ShowBackReason.vue +1 -1
  101. package/src/components/product/ProjectManagement/AddProjectSchedule.vue +896 -0
  102. package/src/components/product/ProjectManagement/ProjectList.vue +406 -0
  103. package/src/components/product/ProjectManagement/ProjectSchedule.vue +144 -0
  104. package/src/components/product/ReportForm/PaymentRecord.vue +801 -0
  105. package/src/components/product/ReportForm/PaymentRecordAdd.vue +105 -0
  106. package/src/components/product/ReportForm/PaymentRecordBad.vue +1273 -0
  107. package/src/components/product/ReportForm/PaymentRecordDetailed.vue +472 -0
  108. package/src/components/product/ReportForm/PaymentRecordTooBad.vue +60 -0
  109. package/src/components/product/ReportForm/PaymentReport.vue +532 -0
  110. package/src/components/product/ReportForm/ProjectReport.vue +447 -0
  111. package/src/components/product/ReportForm/SettlementReport.vue +336 -0
  112. package/src/components/product/ReportForm/SummaryReport.vue +451 -0
  113. package/src/components/product/ReportForm/UserReport.vue +402 -0
  114. package/src/components/product/ServiceView.vue +383 -123
  115. package/src/components/product/Statistics/ApplyStatisticsROOT.vue +27 -0
  116. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +247 -23
  117. package/src/components/product/Supervisory/SupervisoryControl.vue +104 -44
  118. package/src/components/product/Supervisory/SupervisoryList.vue +412 -54
  119. package/src/components/product/Supervisory/SupervisoryhCart.vue +6 -3
  120. package/src/components/product/VueUtils/ApplyUpload.vue +310 -0
  121. package/src/components/product/VueUtils/Tree.vue +330 -0
  122. package/src/components/product/VueUtils/rightview/InstallCardList2.vue +35 -44
  123. package/src/components/product/VueUtils/rightview/carddetail/BuildFeeDetail2.vue +1 -1
  124. package/src/components/product/VueUtils/rightview/carddetail/ChangeFeeDetail2.vue +1 -1
  125. package/src/components/product/VueUtils/rightview/carddetail/ReduceFeeDetail2.vue +1 -1
  126. package/src/components/product/VueUtils/rightview/carddetail/StopApplyDetail2.vue +2 -2
  127. package/src/main.js +4 -2
  128. package/src/stores/ApplyLoadParams.js +1 -1
  129. package/src/stores/PagedListLogic.js +173 -0
  130. package/{dist-android/static/denglu.png → static/images/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png} +0 -0
  131. package/static/images/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
  132. package/static/images/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
  133. package/static/images/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
  134. package/static/images/lefticon//345/233/276/345/261/202577.png +0 -0
  135. package/static/images/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
  136. package/static/images/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
  137. package/static/images/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
  138. package/static/images/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
  139. package/static/images/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
  140. package/static/images/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
  141. package/static/images/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
  142. package/static/images/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
  143. package/static/images/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
  144. package/static/images/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
  145. package/static/images/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  146. package/static/images/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
  147. package/static/images/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
  148. package/static/images/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
  149. package/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  150. package/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
  151. package/static/images/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
  152. package/static/images/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
  153. package/static/newStyle/clear.png +0 -0
  154. package/static/newStyle/fife.png +0 -0
  155. package/static/newStyle/hidden.png +0 -0
  156. package/static/newStyle/label-clear.png +0 -0
  157. package/{dist-android/static/psicon.png → static/newStyle/left-img.png} +0 -0
  158. package/static/newStyle/list_ok.png +0 -0
  159. package/static/newStyle/login-check.png +0 -0
  160. package/static/newStyle/login-con.png +0 -0
  161. package/static/newStyle/login-do.gif +0 -0
  162. package/static/newStyle/login-f.png +0 -0
  163. package/static/newStyle/login-info.png +0 -0
  164. package/static/newStyle/login-left.png +0 -0
  165. package/static/newStyle/login-org.png +0 -0
  166. package/static/newStyle/login-pwd.png +0 -0
  167. package/static/newStyle/login-user.png +0 -0
  168. package/static/newStyle/loginbg.gif +0 -0
  169. package/static/newStyle/loginbg1280.gif +0 -0
  170. package/static/newStyle/loginbg1366.gif +0 -0
  171. package/static/newStyle/setting.png +0 -0
  172. package/static/newStyle/setting1.png +0 -0
  173. package/static/newStyle/shirk.png +0 -0
  174. package/static/newStyle/stretch_bottom.png +0 -0
  175. package/static/newStyle/stretch_left.png +0 -0
  176. package/static/newStyle/stretch_right.png +0 -0
  177. package/static/newStyle/stretch_top.png +0 -0
  178. package/static/newStyle/system-off.png +0 -0
  179. package/success.rar +0 -0
  180. package/.npmignore +0 -12
  181. package/dist-android/index.html +0 -3
  182. package/dist-android/static/0.js +0 -2
  183. package/dist-android/static/0.js.map +0 -1
  184. package/dist-android/static/1.js +0 -2
  185. package/dist-android/static/1.js.map +0 -1
  186. package/dist-android/static/10.js +0 -2
  187. package/dist-android/static/10.js.map +0 -1
  188. package/dist-android/static/11.js +0 -2
  189. package/dist-android/static/11.js.map +0 -1
  190. package/dist-android/static/12.js +0 -2
  191. package/dist-android/static/12.js.map +0 -1
  192. package/dist-android/static/13.js +0 -2
  193. package/dist-android/static/13.js.map +0 -1
  194. package/dist-android/static/14.js +0 -2
  195. package/dist-android/static/14.js.map +0 -1
  196. package/dist-android/static/15.js +0 -2
  197. package/dist-android/static/15.js.map +0 -1
  198. package/dist-android/static/16.js +0 -2
  199. package/dist-android/static/16.js.map +0 -1
  200. package/dist-android/static/17.js +0 -2
  201. package/dist-android/static/17.js.map +0 -1
  202. package/dist-android/static/18.js +0 -2
  203. package/dist-android/static/18.js.map +0 -1
  204. package/dist-android/static/19.js +0 -2
  205. package/dist-android/static/19.js.map +0 -1
  206. package/dist-android/static/2.js +0 -2
  207. package/dist-android/static/2.js.map +0 -1
  208. package/dist-android/static/20.js +0 -2
  209. package/dist-android/static/20.js.map +0 -1
  210. package/dist-android/static/21.js +0 -2
  211. package/dist-android/static/21.js.map +0 -1
  212. package/dist-android/static/22.js +0 -2
  213. package/dist-android/static/22.js.map +0 -1
  214. package/dist-android/static/23.js +0 -2
  215. package/dist-android/static/23.js.map +0 -1
  216. package/dist-android/static/24.js +0 -2
  217. package/dist-android/static/24.js.map +0 -1
  218. package/dist-android/static/25.js +0 -2
  219. package/dist-android/static/25.js.map +0 -1
  220. package/dist-android/static/26.js +0 -2
  221. package/dist-android/static/26.js.map +0 -1
  222. package/dist-android/static/27.js +0 -2
  223. package/dist-android/static/27.js.map +0 -1
  224. package/dist-android/static/28.js +0 -2
  225. package/dist-android/static/28.js.map +0 -1
  226. package/dist-android/static/29.js +0 -2
  227. package/dist-android/static/29.js.map +0 -1
  228. package/dist-android/static/3.js +0 -2
  229. package/dist-android/static/3.js.map +0 -1
  230. package/dist-android/static/30.js +0 -2
  231. package/dist-android/static/30.js.map +0 -1
  232. package/dist-android/static/31.js +0 -2
  233. package/dist-android/static/31.js.map +0 -1
  234. package/dist-android/static/32.js +0 -2
  235. package/dist-android/static/32.js.map +0 -1
  236. package/dist-android/static/33.js +0 -2
  237. package/dist-android/static/33.js.map +0 -1
  238. package/dist-android/static/34.js +0 -2
  239. package/dist-android/static/34.js.map +0 -1
  240. package/dist-android/static/35.js +0 -2
  241. package/dist-android/static/35.js.map +0 -1
  242. package/dist-android/static/36.js +0 -2
  243. package/dist-android/static/36.js.map +0 -1
  244. package/dist-android/static/37.js +0 -2
  245. package/dist-android/static/37.js.map +0 -1
  246. package/dist-android/static/38.js +0 -2
  247. package/dist-android/static/38.js.map +0 -1
  248. package/dist-android/static/39.js +0 -2
  249. package/dist-android/static/39.js.map +0 -1
  250. package/dist-android/static/4.js +0 -2
  251. package/dist-android/static/4.js.map +0 -1
  252. package/dist-android/static/40.js +0 -2
  253. package/dist-android/static/40.js.map +0 -1
  254. package/dist-android/static/41.js +0 -2
  255. package/dist-android/static/41.js.map +0 -1
  256. package/dist-android/static/42.js +0 -2
  257. package/dist-android/static/42.js.map +0 -1
  258. package/dist-android/static/43.js +0 -2
  259. package/dist-android/static/43.js.map +0 -1
  260. package/dist-android/static/44.js +0 -2
  261. package/dist-android/static/44.js.map +0 -1
  262. package/dist-android/static/45.js +0 -2
  263. package/dist-android/static/45.js.map +0 -1
  264. package/dist-android/static/46.js +0 -2
  265. package/dist-android/static/46.js.map +0 -1
  266. package/dist-android/static/47.js +0 -2
  267. package/dist-android/static/47.js.map +0 -1
  268. package/dist-android/static/48.js +0 -2
  269. package/dist-android/static/48.js.map +0 -1
  270. package/dist-android/static/49.js +0 -2
  271. package/dist-android/static/49.js.map +0 -1
  272. package/dist-android/static/5.js +0 -2
  273. package/dist-android/static/5.js.map +0 -1
  274. package/dist-android/static/50.js +0 -2
  275. package/dist-android/static/50.js.map +0 -1
  276. package/dist-android/static/51.js +0 -2
  277. package/dist-android/static/51.js.map +0 -1
  278. package/dist-android/static/52.js +0 -2
  279. package/dist-android/static/52.js.map +0 -1
  280. package/dist-android/static/53.js +0 -2
  281. package/dist-android/static/53.js.map +0 -1
  282. package/dist-android/static/54.js +0 -2
  283. package/dist-android/static/54.js.map +0 -1
  284. package/dist-android/static/55.js +0 -2
  285. package/dist-android/static/55.js.map +0 -1
  286. package/dist-android/static/56.js +0 -2
  287. package/dist-android/static/56.js.map +0 -1
  288. package/dist-android/static/57.js +0 -2
  289. package/dist-android/static/57.js.map +0 -1
  290. package/dist-android/static/58.js +0 -2
  291. package/dist-android/static/58.js.map +0 -1
  292. package/dist-android/static/59.js +0 -2
  293. package/dist-android/static/59.js.map +0 -1
  294. package/dist-android/static/60.js +0 -2
  295. package/dist-android/static/60.js.map +0 -1
  296. package/dist-android/static/61.js +0 -2
  297. package/dist-android/static/61.js.map +0 -1
  298. package/dist-android/static/62.js +0 -2
  299. package/dist-android/static/62.js.map +0 -1
  300. package/dist-android/static/63.js +0 -2
  301. package/dist-android/static/63.js.map +0 -1
  302. package/dist-android/static/64.js +0 -2
  303. package/dist-android/static/64.js.map +0 -1
  304. package/dist-android/static/65.js +0 -2
  305. package/dist-android/static/65.js.map +0 -1
  306. package/dist-android/static/66.js +0 -2
  307. package/dist-android/static/66.js.map +0 -1
  308. package/dist-android/static/67.js +0 -2
  309. package/dist-android/static/67.js.map +0 -1
  310. package/dist-android/static/68.js +0 -2
  311. package/dist-android/static/68.js.map +0 -1
  312. package/dist-android/static/69.js +0 -2
  313. package/dist-android/static/69.js.map +0 -1
  314. package/dist-android/static/7.js +0 -6
  315. package/dist-android/static/7.js.map +0 -1
  316. package/dist-android/static/70.js +0 -2
  317. package/dist-android/static/70.js.map +0 -1
  318. package/dist-android/static/71.js +0 -2
  319. package/dist-android/static/71.js.map +0 -1
  320. package/dist-android/static/72.js +0 -2
  321. package/dist-android/static/72.js.map +0 -1
  322. package/dist-android/static/73.js +0 -2
  323. package/dist-android/static/73.js.map +0 -1
  324. package/dist-android/static/74.js +0 -2
  325. package/dist-android/static/74.js.map +0 -1
  326. package/dist-android/static/75.js +0 -2
  327. package/dist-android/static/75.js.map +0 -1
  328. package/dist-android/static/76.js +0 -2
  329. package/dist-android/static/76.js.map +0 -1
  330. package/dist-android/static/8.js +0 -2
  331. package/dist-android/static/8.js.map +0 -1
  332. package/dist-android/static/9.js +0 -3
  333. package/dist-android/static/9.js.map +0 -1
  334. package/dist-android/static/app.css +0 -2
  335. package/dist-android/static/app.css.map +0 -1
  336. package/dist-android/static/app.js +0 -80
  337. package/dist-android/static/app.js.map +0 -1
  338. package/dist-android/static/batchleft.png +0 -0
  339. package/dist-android/static/batchright.png +0 -0
  340. package/dist-android/static/bluemainbg.jpg +0 -0
  341. package/dist-android/static/config.json +0 -7
  342. package/dist-android/static/glyphicons-halflings-regular.eot +0 -0
  343. package/dist-android/static/glyphicons-halflings-regular.svg +0 -288
  344. package/dist-android/static/glyphicons-halflings-regular.ttf +0 -0
  345. package/dist-android/static/glyphicons-halflings-regular.woff +0 -0
  346. package/dist-android/static/glyphicons-halflings-regular.woff2 +0 -0
  347. package/dist-android/static/huangtengbiaozhi.png +0 -0
  348. package/dist-android/static/jingyin.jpg +0 -0
  349. package/dist-android/static/login_bg.jpg +0 -0
  350. package/dist-android/static/login_title.png +0 -0
  351. package/dist-android/static/login_title1.png +0 -0
  352. package/dist-android/static/loginbg.jpg +0 -0
  353. package/dist-android/static/loginlogo.png +0 -0
  354. package/dist-android/static/main_logo.png +0 -0
  355. package/dist-android/static/mainbg.jpg +0 -0
  356. package/dist-android/static/menulogo.png +0 -0
  357. package/dist-android/static/newmainbg.jpg +0 -0
  358. package/dist-android/static/singleleft.png +0 -0
  359. package/dist-android/static/singleright.png +0 -0
  360. package/dist-android/static/treeopen.png +0 -0
  361. package/dist-android/static/treeout.png +0 -0
  362. package/dist-android/static/treeset.png +0 -0
  363. package/dist-android/static/usericon.png +0 -0
  364. package/dist-android/static/workflow_apply.json +0 -766
  365. package/dist-android/static/xinxi.png +0 -0
  366. package/dist-android/static//344/277/256/346/224/271/345/257/206/347/240/201.png +0 -0
  367. package/dist-android/static//345/256/211/346/243/200/345/257/274/350/210/252/347/253/226/345/261/2173.png +0 -0
  368. package/dist-android/static//345/257/274/345/207/272/346/225/260/346/215/256.png +0 -0
  369. package/dist-android/static//346/270/205/347/251/272/346/225/260/346/215/256.png +0 -0
  370. package/src/assets/shipin1.mp4 +0 -0
  371. package/yarn.lock +0 -9008
@@ -0,0 +1,1273 @@
1
+ <template>
2
+ <div @keyup.enter="search" style="overflow:auto;">
3
+ <partial-view v-ref:pv>
4
+ <criteria-paged :model="model" :pager="false" v-ref:paged>
5
+ <criteria @condition-changed='$parent.$parent.selfSearch' partial='criteria' v-ref:cri>
6
+ <div class="form-horizontal" novalidate partial>
7
+ <div class="row col-sm-12">
8
+
9
+ <div class="form-group col-sm-2">
10
+ <v-select :options='$parent.$parent.$parent.apply_org'
11
+ :value.sync="model.f_filiale"
12
+ :width="'100%'"
13
+ close-on-select
14
+ condition="f_filiale = '{}'"
15
+ placeholder='所属公司'
16
+ style="width: 100%"
17
+ @change="$parent.$parent.$parent.orgChange"
18
+ v-model="model.f_filiale"></v-select>
19
+ </div>
20
+ <div class="form-group col-sm-2">
21
+ <v-select :options='$parent.$parent.$parent.entry_name'
22
+ :value.sync="model.f_entry_name"
23
+ :width="'100%'"
24
+ close-on-select
25
+ condition="f_entry_name = '{}'"
26
+ placeholder='项目名称'
27
+ style="width: 100%"
28
+ @change="$parent.$parent.$parent.entryChange"
29
+ v-model="model.f_entry_name"></v-select>
30
+ </div>
31
+ <div class="form-group col-sm-2">
32
+ <v-select :options='$parent.$parent.$parent.entry_num'
33
+ :value.sync="model.f_entry_num"
34
+ :width="'100%'"
35
+ close-on-select
36
+ condition="f_entry_num = '{}'"
37
+ placeholder='项目编号'
38
+ style="width: 100%"
39
+ v-model="model.f_entry_num"></v-select>
40
+ </div>
41
+ <div class="form-group col-sm-2">
42
+ <input class="input_search" condition="f_operator = '{}'" placeholder='收费员' style="width: 90%"
43
+ type="text"
44
+ v-model="model.f_operator">
45
+ </div>
46
+ <div class="form-group col-sm-2">
47
+ <div class="col-sm-12">
48
+ <datepicker placeholder="打款开始日期"
49
+ style="width: 223.73px"
50
+ v-model="model.f_payment_date_start"
51
+ :value.sync="model.f_payment_date_start"
52
+ :format="'yyyy-MM-dd 00:00:00'"
53
+ condition="f_payment_date >= '{}'"
54
+ ></datepicker>
55
+ </div>
56
+ </div>
57
+ <div class="form-group col-sm-2">
58
+ <div class="col-sm-12">
59
+ <datepicker placeholder="打款结束日期"
60
+ style="width: 223.73px"
61
+ v-model="model.f_payment_date_end"
62
+ :value.sync="model.f_payment_date_end"
63
+ :format="'yyyy-MM-dd 23:59:59'"
64
+ condition="f_payment_date <= '{}'"
65
+ ></datepicker>
66
+ </div>
67
+ </div>
68
+ <div class="form-group col-sm-2">
69
+ <v-select :options='$parent.$parent.$parent.paymentType'
70
+ :value.sync="model.f_payment_type"
71
+ :width="'100%'"
72
+ close-on-select
73
+ condition="f_payment_type = '{}'"
74
+ placeholder='款项类型'
75
+ style="width: 100%"
76
+ v-model="model.f_payment_type"></v-select>
77
+ </div>
78
+ <div class="form-group col-sm-2">
79
+ </div>
80
+ <div class="form-group col-sm-2">
81
+ </div>
82
+ <div class="form-group col-sm-2">
83
+ </div>
84
+ <div class="form-group col-sm-2">
85
+ <div class="form-group col-sm-2 button-range" style="margin-right: 10px">
86
+ <button @click="search(),$parent.$parent.$parent.count_money_sum()" class="button_search">查询</button>
87
+ </div>
88
+ <div class="form-group col-sm-2 button-range" style="margin-right: 10px">
89
+ <button @click="clear()" class="button_search">清空</button>
90
+ </div>
91
+ <div class="form-group col-sm-2 button-range">
92
+ <button @click="$parent.$parent.$parent.add()" class="button_search">新增</button>
93
+ </div>
94
+ <div class="form-group col-sm-2">
95
+ <div class="col-sm-4">
96
+ <export-excel progress="apply_getExportProgress"
97
+ :data="{condition: condition,data: {fengongsi: this.$login.f.orgs, company: $parent.$parent.$parent.company_ok}}"
98
+ :field="$parent.$parent.$parent.getfield()"
99
+ sqlurl="rs/logic/apply_exportfile"
100
+ sql-name="reportFormPayment"
101
+ template-name='打款记录报表导出'
102
+ :choose-col="true">
103
+ </export-excel>
104
+ </div>
105
+ </div>
106
+ </div>
107
+ </div>
108
+ <div class="row col-sm-12">
109
+ </div>
110
+ </div>
111
+ </criteria>
112
+ <div partial="list" style="overflow-y: scroll; overflow-x: scroll;">
113
+
114
+ <accordion :one-at-atime="true" type="info" class="col-sm-12" >
115
+ <div class="" style="height: 44.2px;width: 100%;display: flex">
116
+ <div class=" fontstyle" style="width:6%" show-overflow-tooltip="true"><nobr>序号</nobr></div>
117
+ <div class=" fontstyle" style="width:10%" show-overflow-tooltip="true"><nobr>所属公司</nobr></div>
118
+ <div class=" fontstyle" style="width:15%" show-overflow-tooltip="true"><nobr>项目名称</nobr></div>
119
+ <div class=" fontstyle" style="width:12%" show-overflow-tooltip="true"><nobr>项目编号</nobr></div>
120
+ <div class=" fontstyle" style="width:5%" show-overflow-tooltip="true"><nobr>总户数</nobr></div>
121
+ <div class=" fontstyle" style="width:6%" show-overflow-tooltip="true"><nobr>金额</nobr></div>
122
+ <div class=" fontstyle" style="width:6%" show-overflow-tooltip="true"><nobr style="margin-top: 10px">收费员</nobr></div>
123
+ <div class=" fontstyle" style="width:12%" show-overflow-tooltip="true"><nobr>打款日期</nobr></div>
124
+ <div class=" fontstyle" style="width:6%" show-overflow-tooltip="true"><nobr>打款状态</nobr></div>
125
+ <div class=" fontstyle" style="width:12%" show-overflow-tooltip="true"><nobr>审核日期</nobr></div>
126
+ <div class=" fontstyle" style="width:10%" show-overflow-tooltip="true"><nobr>操作</nobr></div>
127
+
128
+ </div>
129
+ <div class="col-sm-12" style="width: 100%">
130
+ <panel :is-click="false" :is-open="true" type="info" v-for="row in model.rows" >
131
+ <span @click="$parent.$parent.$parent.selected(row)" class="panel-title row" slot="header"
132
+ style="cursor: pointer;">
133
+
134
+ <div style="width: 100%; font-size: 16px">
135
+ <!--主框-->
136
+ <div class="row" style="width: 100%;display: flex">
137
+ <div class=" fontsize" style="width: 6%"><nobr>{{$index+1}}</nobr></div>
138
+ <div class=" fontsize " style="width: 10%"><nobr>{{row.f_filiale}}</nobr></div>
139
+ <div class=" fontsize" style="width: 15%"><nobr>{{row.f_entry_name}}</nobr></div>
140
+ <div class="fontsize" style="width: 12%"><nobr>{{row.f_entry_num}}</nobr></div>
141
+ <div class="fontsize" style="width: 5%"><nobr>{{row.f_payment_number}}</nobr></div>
142
+ <div class=" fontsize" style="width: 6%"><nobr>{{row.f_payment_money}}</nobr></div>
143
+ <div class=" fontsize" style="width: 6%"><nobr>{{row.f_operator}}</nobr></div>
144
+ <div class=" fontsize" style="width: 12%"><nobr>{{row.f_payment_date}}</nobr></div>
145
+ <div class=" fontsize" style="width: 6%"><nobr>{{row.f_payment_state}}</nobr></div>
146
+ <div class=" fontsize" style="width: 12%"><nobr>{{row.f_examine_date}}</nobr></div>
147
+ <div class="" style="text-align: center;color: #0b87e2;width: 10%">
148
+ <button style="width:30px; height:25px; font-size: 5px" @click="$parent.$parent.$parent.update(row)" class="button_search">修</button>
149
+ <button style="width:30px; height:25px; font-size: 5px" @click="$parent.$parent.$parent.examine(row.f_payment_state,row.id)" class="button_search">审</button>
150
+ <button style="width:30px; height:25px; font-size: 5px" @click="$parent.$parent.$parent.cancel(row.id)" class="button_search">废</button>
151
+ </div>
152
+ </div>
153
+ </div>
154
+
155
+ </span>
156
+ <div class="panel-body" v-if="$parent.$parent.$parent.isSelected(row)">
157
+ <payment-record-too-bad :data="row"></payment-record-too-bad>
158
+ </div>
159
+ </panel>
160
+ </div>
161
+
162
+ </accordion>
163
+ </div>
164
+
165
+ </criteria-paged>
166
+ <table class="table-hover" style="position: fixed; bottom: 0; background: white; width: 100%">
167
+ <tr style="position: relative" class="table-bordered">
168
+ <td
169
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
170
+ 汇总信息
171
+ </td>
172
+ <!-- <td-->
173
+ <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
174
+ <!-- 项目汇总:&emsp;{{sumsmodel.f_total_fee}}-->
175
+ <!-- </td>-->
176
+ <td
177
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
178
+ 户数汇总:&emsp;{{count_sum}}
179
+ </td>
180
+ <td
181
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
182
+ 金额汇总:&emsp;{{money_sum.toFixed(2)}}
183
+ </td>
184
+ </tr>
185
+ </table>
186
+ </partial-view>
187
+ <record-cancel :data="cancel_data" :show.sync="cancel_show" @cancel="cancelOper()" @cancel-success="cancelSucc()" v-if="cancel_show"></record-cancel>
188
+ <reissue-bill :data="reissue_data" :show.sync="reissue_show" @cancel="reissueOper()" @reissue-success="reissueSucc()" v-if="reissue_show"></reissue-bill>
189
+ <!-- 普通款项 -->
190
+ <modal :show.sync="recordAdd" v-ref:modal backdrop="false">
191
+ <header slot="modal-header" class="modal-header">
192
+ <button type="button" class="close" @click="close"><span>&times;</span></button>
193
+ <h4 class="modal-title">新增记录</h4>
194
+ </header>
195
+ <article slot="modal-body" class="modal-body">
196
+ <div v-if="recordAdd">
197
+ <div class="from-group" :class="addItem.f_filiale ? '':'has-error'">
198
+ <label>公司名称</label>
199
+ <input-select v-model="addItem.f_filiale" :options='apply_org' :value.sync="addItem.f_filiale"
200
+ @change="orgChange"
201
+ :valueSingle="true"></input-select>
202
+ </div>
203
+ <div class="from-group" :class="addItem.f_entry_name ? '':'has-error'">
204
+ <label>项目名称</label>
205
+ <input-select v-model="addItem.f_entry_name" :options='entry_name' :value.sync="addItem.f_entry_name"
206
+ @change="entryChange"
207
+ :valueSingle="true"></input-select>
208
+ </div>
209
+ <!-- <div class="from-group" :class="addItem.f_entry_num ? '':'has-error'">-->
210
+ <!-- <label>项目编号</label>-->
211
+ <!-- <input-select v-model="addItem.f_entry_num" :options='entry_num' :value.sync="addItem.f_entry_num" :valueSingle="true"></input-select>-->
212
+ <!-- </div>-->
213
+ <div class="from-group" :class="addItem.f_entry_num ? '':'has-error'">
214
+ <label>项目编号</label>
215
+ <input type="text" class="form-control" v-model="addItem.f_entry_num" :value.sync="addItem.f_entry_num" readonly="readonly">
216
+ </div>
217
+ <div class="from-group">
218
+ <payment-record-add :stairmodel.sync='stairmodel' :f_payment_money.sync="addItem.f_payment_money"></payment-record-add>
219
+ </div>
220
+ <div class="from-group" :class="addItem.f_payment_money ? '':'has-error'">
221
+ <label>打款金额</label>
222
+ <input type="number" class="form-control" v-model="addItem.f_payment_money" :value.sync="addItem.f_payment_money" readonly="readonly">
223
+ </div>
224
+ <div class="from-group" :class="addItem.f_payment_date ? '':'has-error'">
225
+ <label>打款日期</label>
226
+ <div>
227
+ <datepicker
228
+ style="width: 568px"
229
+ :value.sync="addItem.f_payment_date"
230
+ :format="'yyyy-MM-dd HH:mm:ss'"
231
+ v-model="addItem.f_payment_date"
232
+ :show-reset-button="reset">
233
+ </datepicker>
234
+ </div>
235
+ </div>
236
+
237
+ </div>
238
+ </article>
239
+ <footer slot="modal-footer" class="modal-footer">
240
+ <!-- <button type="button" class="btn btn-success" @click='paymentPrice'>添加单价明细</button>-->
241
+ <button type="button" class="btn btn-default" @click='close'>取消</button>
242
+ <button type="button" class="btn btn-success" @click='confirm'>确认</button>
243
+ </footer>
244
+ </modal>
245
+ <!-- 赔偿款项 -->
246
+ <modal :show.sync="recordAddOther" v-ref:modal backdrop="false">
247
+ <header slot="modal-header" class="modal-header">
248
+ <button type="button" class="close" @click="close"><span>&times;</span></button>
249
+ <h4 class="modal-title">新增记录</h4>
250
+ </header>
251
+ <article slot="modal-body" class="modal-body">
252
+ <div v-if="recordAddOther">
253
+ <div class="from-group" :class="addItem.f_filiale ? '':'has-error'">
254
+ <label>公司名称</label>
255
+ <input-select v-model="addItem.f_filiale" :options='apply_org' :value.sync="addItem.f_filiale" :valueSingle="true"></input-select>
256
+ </div>
257
+ <div class="from-group" :class="addItem.f_entry_name ? '':'has-error'">
258
+ <label>项目名称</label>
259
+ <input type="text" class="form-control" v-model="addItem.f_entry_name" :value.sync="addItem.f_entry_name">
260
+ </div>
261
+ <div class="from-group">
262
+ <payment-record-add :stairmodel.sync='stairmodel' :f_payment_money.sync="addItem.f_payment_money"></payment-record-add>
263
+ </div>
264
+ <div class="from-group" :class="addItem.f_payment_money ? '':'has-error'">
265
+ <label>打款金额</label>
266
+ <input type="number" class="form-control" v-model="addItem.f_payment_money" :value.sync="addItem.f_payment_money" readonly="readonly">
267
+ </div>
268
+ <div class="from-group" :class="addItem.f_payment_date ? '':'has-error'">
269
+ <label>打款日期</label>
270
+ <div>
271
+ <datepicker
272
+ style="width: 568px"
273
+ :value.sync="addItem.f_payment_date"
274
+ :format="'yyyy-MM-dd HH:mm:ss'"
275
+ v-model="addItem.f_payment_date"
276
+ :show-reset-button="reset">
277
+ </datepicker>
278
+ </div>
279
+ </div>
280
+
281
+ </div>
282
+ </article>
283
+ <footer slot="modal-footer" class="modal-footer">
284
+ <button type="button" class="btn btn-default" @click='close'>取消</button>
285
+ <button type="button" class="btn btn-success" @click='confirm'>确认</button>
286
+ </footer>
287
+ </modal>
288
+ <!-- 款项类型 -->
289
+ <modal
290
+ v-if="paymentTypePage"
291
+ :show.sync="paymentTypePage"
292
+ backdrop="false"
293
+ title="款项类型"
294
+ >
295
+ <div class="form-horizontal" slot="modal-body">
296
+ <div class="form-group" style="margin: 10px auto">
297
+ <label class="col-sm-3 control-label">款项类型:</label>
298
+ <div class="col-sm-9">
299
+ <v-select
300
+ v-model="f_payment_type"
301
+ placeholder='请选择需要发起的款项类型'
302
+ :value.sync="f_payment_type"
303
+ :options='paymentType'
304
+ :value-single="true"
305
+ class="select select_list"
306
+ :search="false"
307
+ @change="paymentTypeClick(f_payment_type)"
308
+ close-on-select ></v-select>
309
+ </div>
310
+ </div>
311
+ </div>
312
+ <footer slot="modal-footer" class="modal-footer">
313
+ <button
314
+ class="btn btn-default"
315
+ @click="closeAddactive()">
316
+ 取消
317
+ </button>
318
+ <button
319
+ class="btn btn-primary"
320
+ type="button"
321
+ :disabled="applyButton_disabled"
322
+ @click="addactive(f_payment_type)">
323
+ 确认
324
+ </button>
325
+ </footer>
326
+ </modal>
327
+ </div>
328
+ </template>
329
+ <script>
330
+ /**
331
+ *操作记录信息
332
+ */
333
+ import {HttpResetClass, PagedList} from 'vue-client'
334
+ import co from 'co'
335
+ import PagedListLogic from '../../../stores/PagedListLogic'
336
+ import Table from '../../Table'
337
+ import {isEmpty} from '../../Util'
338
+ import getNowDate from '../../getNowDate.js'
339
+
340
+ let cancelGen = function *(self, data) {
341
+ let msgRet = yield self.$showMessage('撤销后数据不可恢复,确认撤销录入吗?', ['confirm', 'cancel'])
342
+ if (msgRet === 'cancel') return
343
+ // 撤销操作完成,刷新界面
344
+ self.search()
345
+ }
346
+
347
+ /**
348
+ * 发票补打
349
+ */
350
+ let reprintGen = function *(self, row) {
351
+ try {
352
+ row.f_bill_type = row.type
353
+ row.f_bill_style = '普通收据'
354
+ row.f_operator = self.$login.f.name
355
+ row.f_operatorid = self.$login.f.id
356
+ row.f_orgid = self.$login.f.orgid
357
+ row.f_orgname = self.$login.f.orgs
358
+ row.f_depid = self.$login.f.depids
359
+ row.f_depname = self.$login.f.deps
360
+ row.billUrl = self.getBillUrl(row.type)
361
+ self.reissue_data = row
362
+ self.reissue_show = true
363
+ } catch (error) {
364
+ if (error.status) {
365
+ self.$warn(`加载数据出错, ${JSON.stringify(error)}`, 'CardList')
366
+ }
367
+ throw error
368
+ }
369
+ }
370
+ let asyncCardList = async function (self) {
371
+ await self.$getConfig(self, 'CardList')
372
+ console.log('操作汇总config', self.config)
373
+ }
374
+ // Date格式化
375
+ Date.prototype.Format = function (fmt) {
376
+ var o = {
377
+ "M+": this.getMonth() + 1, //月份
378
+ "d+": this.getDate(), //日
379
+ "H+": this.getHours(), //小时
380
+ "m+": this.getMinutes(), //分
381
+ "s+": this.getSeconds(), //秒
382
+ "q+": Math.floor((this.getMonth() + 3) / 3), //季度
383
+ "S": this.getMilliseconds() //毫秒
384
+ };
385
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
386
+ for (var k in o)
387
+ if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
388
+ return fmt;
389
+ }
390
+ export default {
391
+ title: '打款报表',
392
+ data () {
393
+ return {
394
+ config: {
395
+ cancleother: false, // 默认可以撤销别人的操作
396
+ cancletime: true // 默认可以冲正今天以前的操作
397
+ },
398
+ model: new PagedListLogic('rs/sql/reportFormPayment', 20, {
399
+ data: {
400
+ id: `${this.$login.f.name}`,
401
+ fengongsi: `${this.$login.f.orgs}`,
402
+ company: `${this.$login.f.orgs === '重庆盛焰集团' || this.$login.f.orgs === '湖南燎原燃气有限公司' ? "f_filiale = '1' or 1 = 1" : '1 = 1'}`
403
+ }
404
+ }),
405
+ show: false,
406
+ asideTitle: '用户操作',
407
+ row: Object,
408
+ comp: null,
409
+ operationtypes: this.$appdata.getParam('操作类型') ? [{
410
+ label: '全部',
411
+ value: ''
412
+ }, ...this.$appdata.getParam('操作类型')] : [],
413
+
414
+ cancel_show: false,
415
+ cancel_data: null,
416
+
417
+ reissue_show: false,
418
+ reissue_data: null,
419
+ authArr: this.$login.r ? this.$login.r : [],
420
+ entry_name: [], //项目名称
421
+ entry_num: [], //项目编号
422
+ apply_org: [],
423
+ company: this.$login.f.orgs === '重庆盛焰集团' || this.$login.f.orgs === '湖南燎原燃气有限公司' ? " 1 = 1" : " f_filiale = '" + this.$login.f.orgs + "'",
424
+ company_ok: this.$login.f.orgs === '重庆盛焰集团' || this.$login.f.orgs === '湖南燎原燃气有限公司' ? "f_filiale = '1' or 1 = 1" : '1 = 1',
425
+ recordAdd: false, //打款记录新增记录开关
426
+ recordAddOther: false, //打款记录新增记录开关-赔偿款项
427
+ recordSearch: false, //打款记录明细开关
428
+ mainPage: true,
429
+ addItem: {
430
+ f_filiale: '',
431
+ f_entry_name: '',
432
+ f_entry_num: '',
433
+ f_payment_money: 0,
434
+ f_payment_date: null
435
+
436
+ },
437
+ numberItem: {
438
+ f_install_price: 0,
439
+ f_payment_number: 0,
440
+ f_price_summary: ''
441
+ },
442
+ price_summary: '',
443
+ project_name: this.$appdata.getParam('项目名称'),
444
+ project_num: this.$appdata.getParam('项目编号'),
445
+ condition: '',
446
+ f_payment_record_id: '',
447
+ paymentAdd: false,
448
+ priceArray: [],
449
+ stairmodel: [{f_install_price: 0, f_payment_number: 0, f_payment_subtotal: 0, f_payment_remarks: ''}],
450
+ detailedmodel :{
451
+ rows: []
452
+ },
453
+ paymentTypePage: false,
454
+ paymentType: [{label:"全部",value:''},...this.$appdata.getParam('款项类型')],
455
+ // paymentType: [{label:"普通款项",value:'普通款项'},{label:"赔偿款项",value:'赔偿款项'}],
456
+ applyButton_disabled: true,
457
+ f_payment_type: '',
458
+ page_type: 'insert',
459
+ page_type_id: '',
460
+ count_sum: '',
461
+ money_sum: ''
462
+ }
463
+ },
464
+ props: {
465
+ sqlurl: {
466
+ type: String,
467
+ default: 'rs/sql/reportFormPayment'
468
+ },
469
+ items: {
470
+ type: String,
471
+ // default: `${this.$login.f.orgs}`
472
+ },
473
+ orderitem: {
474
+ type: String,
475
+ default: 'f_operate_date desc'
476
+ },
477
+ btns: {
478
+ type: Array
479
+ },
480
+ operationtype: {
481
+ type: String,
482
+ default: ''
483
+ },
484
+ userinfoid: {},
485
+ isOperate: {
486
+ type: Boolean,
487
+ default: true
488
+ },
489
+ f_orgid: ''
490
+ },
491
+ ready () {
492
+ this.$refs.paged.$refs.cri.model.f_operat_type = [this.operationtype]
493
+ asyncCardList(this)
494
+ this.getOrgName()
495
+ // this.search()
496
+ },
497
+ methods: {
498
+ dateDes (date) {
499
+ return this.$login.dateDescripte(date)
500
+ },
501
+ selected (row) {
502
+ if (this.row === row) {
503
+ this.row = null
504
+ } else {
505
+ this.row = row
506
+ }
507
+ },
508
+ isSelected (row) {
509
+ return this.row === row
510
+ },
511
+ search () {
512
+
513
+ let condition = '1=1'
514
+ if (this.model.condition) {
515
+ condition = this.model.condition
516
+ }
517
+ // if (this.f_orgid) {
518
+ // condition += `and f_filiale in ${this.f_orgid} `
519
+ // } else {
520
+ // console.log('12143124')
521
+ // condition += `and f_filiale = '${this.$login.f.orgs}'` + ` and ${this.$login.f.orgs === '重庆盛焰集团' || this.$login.f.orgs === '湖南燎原燃气有限公司' ? "f_filiale = '1' or 1 = 1" : '1 = 1'}`
522
+ // condition += `and f_filiale = '${this.$login.f.orgs}'` + ` and ${this.$login.f.orgs === '重庆盛焰集团' || this.$login.f.orgs === '湖南燎原燃气有限公司' ? "f_filiale = '1' or 1 = 1" : '1 = 1'}`
523
+ // }
524
+ let data = {
525
+ condition: condition,
526
+ data: {
527
+ fengongsi: `${this.$login.f.orgs}`,
528
+ company: `${this.$login.f.orgs === '重庆盛焰集团' || this.$login.f.orgs === '湖南燎原燃气有限公司' ? "f_filiale = '1' or 1 = 1" : '1 = 1'}`
529
+ }
530
+ }
531
+ this.$refs.pv.load(this.sqlurl, {data: data}).then((a) => {
532
+ if (a.data.length === 0) {
533
+ this.model.rows = []
534
+ this.model.state = '错误'
535
+ this.model.error = '没有符合条件的记录'
536
+ return
537
+ }
538
+ this.model.state = '正确'
539
+ this.model.rows = a.data
540
+ })
541
+ // this.count_money_sum()
542
+ },
543
+ disEvent (btn) {
544
+ this.$dispatch(`${btn.eventName}`)
545
+ },
546
+ async operate (title, row) {
547
+ debugger
548
+
549
+ console.log('撤销的这条数据的信息', row)
550
+ if (title === '撤销') {
551
+ if (row.type === '物联网收费' || row.type === '卡表赠气' || row.type === '物联网赠费' || row.type === '卡表赠费' || row.type === '物联网赠气') {
552
+ let getWebHand = await this.$SqlService.singleTable('t_handplan', `f_hand_state = '有效' and f_input_date > '${row.f_operate_date}' and f_userfiles_id = '${row.f_userfiles_id}'`)
553
+ console.log('长度', getWebHand)
554
+ if (getWebHand.data.length > 0) {
555
+ this.$showAlert('此次物联网收费之后有结算,不能撤销此纪录', 'warning', 1500)
556
+ return
557
+ }
558
+ } else if (row.type === '机表收费') {
559
+ let getWebHand = await this.$SqlService.singleTable('t_handplan', `f_hand_state = '有效' and f_input_date > '${row.f_operate_date}' and f_whether_pay = '是' and f_userfiles_id = '${row.f_userfiles_id}'`)
560
+
561
+ console.log('长度', getWebHand)
562
+ if (getWebHand.data.length > 0) {
563
+ this.$showAlert('此次机表收费之后有自动下账,不能撤销此纪录', 'warning', 1500)
564
+ return
565
+ }
566
+ let sql = `select th.*from t_handplan th
567
+ left join t_sellinghand tsh on th.id=tsh.f_hand_id
568
+ where th.f_hand_state = '有效' and th.f_input_date > '${row.f_operate_date}' and tsh.f_debt_money>0
569
+ and th.f_userfiles_id = '${row.f_userfiles_id}' and tsh.f_state='有效'`
570
+ let getwate = await this.$resetpost('rs/logic/sqlquery', {data: {sql: sql}})
571
+ if (getwate.data.length > 0) {
572
+ this.$showAlert('此次机表收费之后有自动下账,不能撤销此纪录', 'warning', 1500)
573
+ return
574
+ }
575
+ } else {
576
+ if (this.authArr.includes('冲正权限')) {
577
+ if (this.config.cancleother) {
578
+ if (row.f_operator != this.$login.f.name) {
579
+ this.$showAlert('不能撤销不是自己进行的操作', 'warning', 1500)
580
+ return
581
+ }
582
+ }
583
+ if (this.config.cancletime) {
584
+ let a = this.$login.toStandardYearMonth()
585
+ console.log('当前时间', a < row.f_operate_date)
586
+ if (!this.authArr.includes('跨月撤销')) {
587
+ if (row.f_operate_date < a) {
588
+ this.$showAlert('不能撤销不是当月的操作', 'warning', 1500)
589
+ return
590
+ }
591
+ }
592
+ }
593
+ } else {
594
+ this.$showAlert('当前用户没有冲正权限', 'warning', 1500)
595
+ return
596
+ }
597
+ }
598
+ }
599
+
600
+ if (title === '撤销') {
601
+ this.cancel_show = true
602
+ this.cancel_data = row
603
+ } else {
604
+ let reprint = reprintGen(this, row)
605
+ return co(reprint)
606
+ }
607
+ },
608
+ cancelOper () {
609
+ this.cancel_data = null
610
+ this.cancel_show = false
611
+ },
612
+ cancelSucc () {
613
+ this.cancel_show = false
614
+ this.$dispatch('refresh')
615
+ },
616
+ reissueOper () {
617
+ this.reissue_data = null
618
+ this.reissue_show = false
619
+ },
620
+ reissueSucc () {
621
+ this.reissue_show = false
622
+ this.$dispatch('refresh')
623
+ },
624
+
625
+ getBillUrl (type) {
626
+ let name = ''
627
+ // 根据type数据 选择调用的Logic
628
+ if (type === '过户') {
629
+ name = 'rs/report/transfer_bill'
630
+ } else if (type === '换表') {
631
+ console.log('看看row..', this.row)
632
+ name = 'rs/report/change_meter'
633
+ } else if (type === '机表收费') {
634
+ name = 'rs/report/machine_bill'
635
+ } else if (type === '物联网收费' || type === '物联网开户' || type === '物联网赠气') {
636
+ name = 'rs/report/iot_bill'
637
+ } else if (type === '物联网补费' || type === '物联网扣费' || type === '物联网补气' || type === '物联网扣气' || type === '机表补费' || type === '机表扣费') {
638
+ name = 'rs/report/MakeUp'
639
+ } else if (type === '超用收费') {
640
+ name = 'rs/report/overuse_bill'
641
+ } else if (type === '其他收费') {
642
+ name = 'rs/report/otherCharge_bill'
643
+ } else if (type === '补卡') {
644
+ name = 'rs/report/replace_sell'
645
+ } else if (type === '发卡售气') {
646
+ name = 'rs/report/sendCard_bill'
647
+ } else if (type === '卡表收费' || type === '卡表赠气' || type === '卡表收费撤销') {
648
+ name = 'rs/report/card_bill'
649
+ } else if (type === '预存缴费') {
650
+ name = 'rs/report/pre_sell'
651
+ } else if (type === '退费') {
652
+ name = 'rs/report/refund_sell'
653
+ } else if (type === '调价补费') {
654
+ name = 'rs/report/compensation_bill'
655
+ }
656
+ return name
657
+ },
658
+ // 撤销为统一操作,所以写到基础组件中
659
+ operateCancel (row) {
660
+ let cancel = cancelGen(this, row)
661
+ co(cancel)
662
+ },
663
+ selfSearch (args) {
664
+ // if (!this.$login.f.parent.parent.name.includes('统一资源管理')) {
665
+ // args.condition += `and f_filialeids = '${this.$login.f.f_orgids}'`
666
+ // }
667
+ if (this.f_orgid) {
668
+ args.condition
669
+ } else {
670
+ args.condition
671
+ }
672
+ this.model.search(args.condition, args.model)
673
+ },
674
+ orgChange(val) {
675
+ console.log("被选中的数据:" + val)
676
+ this.getEntry(val)
677
+ },
678
+ entryChange(val) {
679
+ console.log("被选中的数据:" + val)
680
+ this.getNum(val)
681
+ },
682
+ // 获取所有组织名称
683
+ async getOrgName() {
684
+ let http = new HttpResetClass()
685
+ let org = this.$login.f.orgs === '重庆盛焰集团' || this.$login.f.orgs === '湖南燎原燃气有限公司' ? " 1 = 1" : " name = '" + this.$login.f.orgs + "'"
686
+ let data = {
687
+ tablename: 't_organization',
688
+ condition: " name != '组织机构' and " + org
689
+
690
+ }
691
+ let res = await http.load('POST','rs/sql/applysingleTable',{data:data}, {
692
+ resolveMsg: null,
693
+ rejectMsg: '获取公司名称失败'
694
+ })
695
+ for (let i = 0; i < res.data.length; i++) {
696
+ // 所属公司
697
+ let data1 = []
698
+ let array1 = []
699
+ data1 = res.data.map(item => {
700
+ return item.name;
701
+ })
702
+ for (let q = 0; q < data1.length; q++) {
703
+ let arraydata = {
704
+ 'label': data1[q],
705
+ 'value': data1[q]
706
+ }
707
+ if (array1.length != 0) {
708
+ for (let w = 0; w < array1.length; w++) {
709
+ if (array1[w].label == data1[q]) {
710
+ break
711
+ }
712
+ while (w == array1.length - 1) {
713
+ array1.push(arraydata)
714
+ break
715
+ }
716
+ }
717
+ } else {
718
+ array1.push(arraydata)
719
+ }
720
+ }
721
+ this.apply_org = array1
722
+ }
723
+ },
724
+ async getEntry(val) {
725
+ // 获取项目名称和项目编号
726
+ let http = new HttpResetClass()
727
+ let data = {
728
+ tablename: 't_apply',
729
+ condition: this.company
730
+ }
731
+ // 判断是不是总公司得账号
732
+ if (this.$login.f.orgs == '重庆盛焰集团' || this.$login.f.orgs == '湖南燎原燃气有限公司') {
733
+ data.condition = " f_filiale = '" + val + "'"
734
+ }
735
+ let res = await http.load('POST','rs/sql/applysingleTable',{data:data}, {
736
+ resolveMsg: null,
737
+ rejectMsg: '获取项目名称和项目编号失败'
738
+ })
739
+ for (let i = 0; i < res.data.length; i++) {
740
+ // 项目名称
741
+ let data = []
742
+ let array = []
743
+ data = res.data.map(item => {
744
+ return item.f_entry_name;
745
+ })
746
+ for (let q = 0; q < data.length; q++) {
747
+ let arraydata = {
748
+ 'label': data[q],
749
+ 'value': data[q]
750
+ }
751
+ if (array.length != 0) {
752
+ for (let w = 0; w < array.length; w++) {
753
+ if (array[w].label == data[q]) {
754
+ break
755
+ }
756
+ while (w == array.length - 1) {
757
+ array.push(arraydata)
758
+ break
759
+ }
760
+ }
761
+ } else {
762
+ array.push(arraydata)
763
+ }
764
+ }
765
+ this.entry_name = array
766
+
767
+ }
768
+ },
769
+ async getNum(val) {
770
+ // 获取项目编号
771
+ let http = new HttpResetClass()
772
+ let data = {
773
+ tablename: 't_apply',
774
+ condition: this.$login.f.orgs === '重庆盛焰集团' || this.$login.f.orgs === '湖南燎原燃气有限公司' ? "f_entry_name = '" + val + "'" : "f_filiale = '" + this.$login.f.orgs + "'" + " and f_entry_name = '" + val + "'"
775
+ }
776
+ let res = await http.load('POST','rs/sql/applysingleTable',{data:data}, {
777
+ resolveMsg: null,
778
+ rejectMsg: '获取项目名称和项目编号失败'
779
+ })
780
+ for (let i = 0; i < res.data.length; i++) {
781
+ // 项目编号
782
+ let data1 = []
783
+ let array1 = []
784
+ data1 = res.data.map(item => {
785
+ return item.f_entry_num;
786
+ })
787
+ for (let q = 0; q < data1.length; q++) {
788
+ let arraydata = {
789
+ 'label': data1[q],
790
+ 'value': data1[q]
791
+ }
792
+ if (array1.length != 0) {
793
+ for (let w = 0; w < array1.length; w++) {
794
+ if (array1[w].label == data1[q]) {
795
+ break
796
+ }
797
+ while (w == array1.length - 1) {
798
+ array1.push(arraydata)
799
+ break
800
+ }
801
+ }
802
+ } else {
803
+ array1.push(arraydata)
804
+ }
805
+ }
806
+ this.entry_num = array1
807
+ this.addItem.f_entry_num = array1[0].value
808
+ this.addItem = Object.assign({},this.addItem,{f_entry_num:array1[0].value})
809
+ }
810
+ },
811
+ clear() {
812
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
813
+ this.$refs.cp.$refs.cri.model[key] = []
814
+ })
815
+ },
816
+ add() {
817
+ this.paymentTypePage = true
818
+ },
819
+ getfield() {
820
+ let report = {
821
+ 'f_filiale': '所属公司',
822
+ 'f_entry_name': '项目名称',
823
+ 'f_entry_num': '项目编号',
824
+ 'f_payment_number': '总户数',
825
+ 'f_payment_money': '金额',
826
+ 'f_operator': '收费员',
827
+ 'f_payment_date': '打款日期',
828
+ 'f_payment_state': '打款状态',
829
+ 'f_examine_date': '审核日期'
830
+ }
831
+ return report
832
+ },
833
+ close(apply) {
834
+ this.recordAdd = false
835
+ this.recordAddOther = false
836
+ this.addItem = {
837
+ f_payment_money: 0
838
+ }
839
+ this.priceArray = []
840
+ this.f_payment_type = ''
841
+ this.page_type = 'insert'
842
+ this.page_type_id = ''
843
+ this.$dispatch('close')
844
+ },
845
+ closeSearch() {
846
+ // this.mainPage = true
847
+ this.recordSearch = false
848
+ this.$dispatch('close')
849
+ },
850
+ async confirm() {
851
+ if (this.f_payment_type == '初装费款项') {
852
+ if (isEmpty(this.addItem.f_filiale)) {
853
+ this.$showAlert('请选择公司名称!!!', 'warning', 3000)
854
+ return
855
+ }
856
+ if (isEmpty(this.addItem.f_entry_name)) {
857
+ this.$showAlert('请选择项目名称!!!', 'warning', 3000)
858
+ return
859
+ }
860
+ }
861
+ if (this.page_type == 'insert') {
862
+ //先增加明细
863
+ if (this.stairmodel[0].f_install_price && this.stairmodel[0].f_payment_number) {
864
+
865
+ let http = new HttpResetClass()
866
+ let data = {
867
+ tablename: 't_price_count',
868
+ stairmodel: this.stairmodel
869
+ }
870
+ let res = await http.load('POST','rs/logic/addPrice',{data: data}, {
871
+ resolveMsg: null,
872
+ rejectMsg: '新增单价户数失败'
873
+ })
874
+ console.log("添加成功:" + JSON.stringify(res.data))
875
+ if (res.data.length > 0) {
876
+ console.log("修改成功")
877
+ this.priceArray = res.data
878
+ // this.$showMessage("添加成功!")
879
+ }
880
+
881
+ }
882
+ // 后增加记录
883
+
884
+ if (this.addItem.f_payment_money) {
885
+ // this.addItem.f_payment_date = new Date().Format("yyyy-MM-dd HH:mm:ss")
886
+ // this.addItem.f_operate_date = new Date().Format('yyyy-MM-dd HH:mm:ss')
887
+ this.addItem.f_operator = this.$login.f.name
888
+ this.addItem.f_payment_state = '审核中'
889
+ this.addItem.f_payment_type = this.f_payment_type
890
+ if (this.f_payment_type != '初装费款项') {
891
+ this.addItem.f_entry_num = '无'
892
+ }
893
+ let http = new HttpResetClass()
894
+ let data = {
895
+ tablename: 't_payment_record',
896
+ parameters: this.addItem
897
+ }
898
+ let res = await http.load('POST','rs/logic/apply_save',{data: data}, {
899
+ resolveMsg: null,
900
+ rejectMsg: '新增打款记录失败'
901
+ })
902
+ console.log("添加成功:" + res.data.id)
903
+ if (res.data.id) {
904
+ let http1 = new HttpResetClass()
905
+ let data1 = {
906
+ f_payment_record_id: res.data.id,
907
+ priceArray: this.priceArray
908
+ }
909
+ console.log("更新的数据" + JSON.stringify(data1))
910
+ let res1 = await http1.load('POST','rs/logic/updatePrice',{data: data1}, {
911
+ resolveMsg: null,
912
+ rejectMsg: '更新打款记录id失败'
913
+ })
914
+ this.priceArray = []
915
+ this.page_type = 'insert'
916
+ this.page_type_id = ''
917
+ this.close()
918
+ this.search()
919
+ this.$showMessage("添加成功!")
920
+ }
921
+ }
922
+ }else {
923
+ //删除原单价明细
924
+ // let http = new HttpResetClass()
925
+ // let data = {
926
+ // f_payment_record_id: this.page_type_id
927
+ // }
928
+ // let res = await http.load('POST','rs/sql/deletePaymentDetailed',{data: data}, {
929
+ // resolveMsg: null,
930
+ // rejectMsg: '删除明细失败'
931
+ // })
932
+ // let http = new HttpResetClass()
933
+ // http.load('DELETE', `rs/entity/t_price_count/${this.page_type_id}`).then((res) => {
934
+ // console.log("删除明细:" + JSON.stringify(res))
935
+ // })
936
+ //先增加明细
937
+ if (this.stairmodel[0].f_install_price && this.stairmodel[0].f_payment_number) {
938
+
939
+ let http = new HttpResetClass()
940
+ let data = {
941
+ tablename: 't_price_count',
942
+ stairmodel: this.stairmodel
943
+ }
944
+ for (const model of data.stairmodel) {
945
+ model.f_payment_record_id = this.page_type_id
946
+ }
947
+ let res = await http.load('POST','rs/logic/addPrice',{data: data}, {
948
+ resolveMsg: null,
949
+ rejectMsg: '新增单价户数失败'
950
+ })
951
+ console.log("添加成功:" + JSON.stringify(res.data))
952
+ if (res.data.length > 0) {
953
+ console.log("修改成功")
954
+ this.priceArray = res.data
955
+ // this.$showMessage("添加成功!")
956
+ }
957
+
958
+ }
959
+ // 后增加记录
960
+
961
+ if (this.addItem.f_payment_money) {
962
+ // this.addItem.f_payment_date = new Date().Format("yyyy-MM-dd HH:mm:ss")
963
+ // this.addItem.f_operate_date = new Date().Format('yyyy-MM-dd HH:mm:ss')
964
+ let http = new HttpResetClass()
965
+ let data = {
966
+ tablename: 't_payment_record',
967
+ parameters: this.addItem
968
+ }
969
+ data.parameters.id = this.page_type_id
970
+ let res = await http.load('POST','rs/logic/apply_save',{data: data}, {
971
+ resolveMsg: null,
972
+ rejectMsg: '更新打款记录失败'
973
+ })
974
+ console.log("更新成功:" + res.data.id)
975
+ this.priceArray = []
976
+ this.page_type = 'insert'
977
+ this.page_type_id = ''
978
+ this.close()
979
+ this.search()
980
+ this.$showMessage("更新成功!")
981
+
982
+ }
983
+ }
984
+
985
+
986
+ },
987
+ paymentPrice() {
988
+ this.numberItem.f_install_price = 0
989
+ this.numberItem.f_payment_number = 0
990
+ this.recordAdd = false
991
+ this.paymentAdd = true
992
+ },
993
+ closePrice() {
994
+ this.recordAdd = true
995
+ this.paymentAdd = false
996
+ },
997
+ examine(f_payment_state,id) {
998
+ if (this.$login.f.rolesnames.includes("打款审核")) {
999
+ if (f_payment_state != '审核中') {
1000
+ this.$showMessage('该记录无需审核!')
1001
+ } else {
1002
+ this.$showMessage('是否已确认财务到账?', ['confirm', 'cancel']).then(async (res) => {
1003
+ if (res === 'confirm') {
1004
+ let http = new HttpResetClass()
1005
+ let data = {
1006
+ tablename: 't_payment_record',
1007
+ parameters: {
1008
+ id: id,
1009
+ f_payment_state: '有效',
1010
+ f_examine_date: new Date().Format("yyyy-MM-dd HH:mm:ss")
1011
+ }
1012
+ }
1013
+
1014
+ let result = await http.load('POST','rs/logic/apply_save',{data: data}, {
1015
+ resolveMsg: null,
1016
+ rejectMsg: '审核失败'
1017
+ })
1018
+ console.log("审核成功:" + result.data.id)
1019
+ if (result.data.id) {
1020
+ this.search()
1021
+ this.$showMessage("审核成功!")
1022
+ }
1023
+ }
1024
+ })
1025
+ }
1026
+
1027
+ } else {
1028
+ this.$showMessage("您没有此操作权限!")
1029
+ }
1030
+
1031
+
1032
+ },
1033
+ async update(row) {
1034
+ if (!(row.f_examine_date)) {
1035
+ console.log("修改数据--:" + JSON.stringify(row))
1036
+ if (row.f_payment_type === '初装费款项') {
1037
+ console.log("进来没有--:" + row.f_payment_type)
1038
+ this.recordAdd = true
1039
+ this.addItem = {
1040
+ f_filiale: row.f_filiale,
1041
+ f_entry_name: row.f_entry_name,
1042
+ f_entry_num: row.f_entry_num,
1043
+ f_payment_money: row.f_payment_money,
1044
+ f_payment_date: row.f_payment_date
1045
+ }
1046
+ this.stairmodel = [{f_install_price: 0, f_payment_number: 0, f_payment_subtotal: 0, f_payment_remarks: ''}]
1047
+ let http = new HttpResetClass()
1048
+ let data = {
1049
+ tablename: 't_price_count',
1050
+ condition: "f_payment_record_id = '" + row.id + "'"
1051
+ }
1052
+ let res = await http.load('POST','rs/sql/applysingleTable',{data: data}, {
1053
+ resolveMsg: null,
1054
+ rejectMsg: '明细查询失败'
1055
+ })
1056
+ console.log("明细查询:" + JSON.stringify(res))
1057
+ this.stairmodel = res.data
1058
+ this.pageType(row.id)
1059
+ }else {
1060
+ console.log("进来没有--:")
1061
+ this.recordAddOther = true
1062
+ this.addItem = {
1063
+ f_filiale: row.f_filiale,
1064
+ f_entry_name: row.f_entry_name,
1065
+ f_payment_money: row.f_payment_money,
1066
+ f_payment_date: row.f_payment_date
1067
+ }
1068
+ this.stairmodel = [{f_install_price: 0, f_payment_number: 0, f_payment_subtotal: 0, f_payment_remarks: ''}]
1069
+ let http = new HttpResetClass()
1070
+ let data = {
1071
+ tablename: 't_price_count',
1072
+ condition: "f_payment_record_id = '" + row.id + "'"
1073
+ }
1074
+ let res = await http.load('POST','rs/sql/applysingleTable',{data: data}, {
1075
+ resolveMsg: null,
1076
+ rejectMsg: '明细查询失败'
1077
+ })
1078
+ console.log("明细查询:" + JSON.stringify(res))
1079
+ this.stairmodel = res.data
1080
+ this.pageType(row.id)
1081
+ }
1082
+ } else {
1083
+ this.$showMessage("该记录已被审核,无法进行修改!")
1084
+ }
1085
+
1086
+ },
1087
+ cancel(id) {
1088
+ if (this.$login.f.rolesnames.includes("打款作废")) {
1089
+ this.$showMessage('是否将此条记录作废?', ['confirm', 'cancel']).then(async (res) => {
1090
+ if (res === 'confirm') {
1091
+ let http = new HttpResetClass()
1092
+ let data = {
1093
+ tablename: 't_payment_record',
1094
+ parameters: {
1095
+ id: id,
1096
+ f_payment_state: '作废',
1097
+ f_cancel_date: new Date().Format("yyyy-MM-dd HH:mm:ss")
1098
+ }
1099
+ }
1100
+
1101
+ let result = await http.load('POST','rs/logic/apply_save',{data: data}, {
1102
+ resolveMsg: null,
1103
+ rejectMsg: '作废失败'
1104
+ })
1105
+ console.log("作废成功:" + result.data.id)
1106
+ if (result.data.id) {
1107
+ this.search()
1108
+ this.$showMessage("作废成功!")
1109
+ }
1110
+ }
1111
+ })
1112
+
1113
+ } else {
1114
+ this.$showMessage("您没有此操作权限!")
1115
+ }
1116
+ },
1117
+ async confirmPrice() {
1118
+ if (isEmpty(this.numberItem.f_install_price)) {
1119
+ this.$showAlert('请输入安装费单价!!!', 'warning', 3000)
1120
+ return
1121
+ }
1122
+ if (isEmpty(this.numberItem.f_payment_number)) {
1123
+ this.$showAlert('请输入户数!!!', 'warning', 3000)
1124
+ return
1125
+ }
1126
+ if (this.numberItem.f_install_price && this.numberItem.f_payment_number) {
1127
+
1128
+ let http = new HttpResetClass()
1129
+ let data = {
1130
+ tablename: 't_price_count',
1131
+ parameters: this.numberItem
1132
+ }
1133
+ let res = await http.load('POST','rs/logic/apply_save',{data: data}, {
1134
+ resolveMsg: null,
1135
+ rejectMsg: '新增单价户数失败'
1136
+ })
1137
+ console.log("添加成功:" + res.data.id)
1138
+ if (res.data.id) {
1139
+ this.price_summary = this.price_summary + this.numberItem.f_install_price + ' | ' + this.numberItem.f_payment_number + ' || '
1140
+ this.numberItem = Object.assign({},this.numberItem,{f_price_summary:this.price_summary})
1141
+ this.addItem = Object.assign({},this.addItem,{f_price_summary:this.price_summary})
1142
+ this.addItem.f_payment_money = Number(this.addItem.f_payment_money) + Number(this.numberItem.f_install_price * this.numberItem.f_payment_number)
1143
+ console.log("修改成功")
1144
+ this.priceArray.push(res.data.id)
1145
+ // this.closePrice()
1146
+ this.$showMessage("添加成功!")
1147
+ this.numberItem.f_install_price = 0
1148
+ this.numberItem.f_payment_number = 0
1149
+ }
1150
+
1151
+ }
1152
+ },
1153
+ addactive(value) {
1154
+ if (value === '初装费款项') {
1155
+ this.paymentTypePage = false
1156
+ this.recordAdd = true
1157
+ this.addItem.f_payment_date = new Date().Format("yyyy-MM-dd HH:mm:ss")
1158
+ this.stairmodel = [{f_install_price: 0, f_payment_number: 0, f_payment_subtotal: 0, f_payment_remarks: ''}]
1159
+ this.applyButton_disabled = true
1160
+ }else {
1161
+ this.paymentTypePage = false
1162
+ this.recordAddOther = true
1163
+ this.addItem.f_payment_date = new Date().Format("yyyy-MM-dd HH:mm:ss")
1164
+ this.stairmodel = [{f_install_price: 0, f_payment_number: 0, f_payment_subtotal: 0, f_payment_remarks: ''}]
1165
+ this.applyButton_disabled = true
1166
+ }
1167
+
1168
+ },
1169
+ closeAddactive() {
1170
+ this.paymentTypePage = false
1171
+ this.f_payment_type = ''
1172
+ this.applyButton_disabled = true
1173
+ },
1174
+ async paymentTypeClick(value) {
1175
+ console.log("款项类型------------")
1176
+ if (value === "" || value === null || value === undefined){
1177
+ this.applyButton_disabled = true
1178
+ }else {
1179
+ this.applyButton_disabled = false
1180
+ }
1181
+
1182
+ },
1183
+ pageType(id) {
1184
+ this.page_type = 'update'
1185
+ this.page_type_id = id
1186
+ },
1187
+ async count_money_sum() { //户数、金额汇总
1188
+ let http = new HttpResetClass()
1189
+ let data = {
1190
+ condition: this.model.condition,
1191
+ data: {
1192
+ fengongsi: this.$login.f.orgs,
1193
+ company: this.$login.f.orgs === '重庆盛焰集团' || this.$login.f.orgs === '湖南燎原燃气有限公司' ? "f_filiale = '1' or 1 = 1" : '1 = 1'
1194
+ }
1195
+ }
1196
+ let res = await http.load('POST','rs/sql/reportFormPayment',{data: data}, {resolveMsg: null, rejectMsg: null})
1197
+
1198
+ if (res.data) {
1199
+ let count = 0
1200
+ let money = 0.00
1201
+ console.log("数据长度:" + res.data.length)
1202
+ console.log("数据:" + JSON.stringify(res.data))
1203
+ for (let i = 0; i < res.data.length; i++) {
1204
+ count = count + res.data[i].f_payment_number
1205
+ money = money + res.data[i].f_payment_money
1206
+ }
1207
+ this.count_sum = count
1208
+ this.money_sum = money
1209
+ console.log("户数汇总:" + count + "金额汇总:" + money)
1210
+ }
1211
+
1212
+ }
1213
+ },
1214
+ computed: {
1215
+ date() {
1216
+ return getNowDate()
1217
+ }
1218
+ },
1219
+ watch: {
1220
+
1221
+ 'userinfoid' (newVal) {
1222
+ if (newVal && newVal !== '') {
1223
+ this.$nextTick(function () {
1224
+ this.$refs.paged.$refs.cri.model.f_userinfo_code = newVal
1225
+ }.bind(this))
1226
+ this.$refs.paged.$refs.cri.model.f_operat_type = ''
1227
+ let condition = `f_userinfo_code = '${newVal}' and u.f_filialeid = '${this.$login.f.orgid}'`
1228
+ this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
1229
+ if (a.data.length === 0) {
1230
+ this.model.rows = []
1231
+ this.model.state = '错误'
1232
+ this.model.error = '没有符合条件的记录'
1233
+ return
1234
+ }
1235
+ this.model.state = '正确'
1236
+ this.model.rows = a.data
1237
+ })
1238
+ } else {
1239
+ this.model.rows = {}
1240
+ this.$nextTick(function () {
1241
+ this.$refs.paged.$refs.cri.model.f_userinfo_code = ''
1242
+ }.bind(this))
1243
+ }
1244
+ }
1245
+ // f_payment_type: function() {
1246
+ // if (this.f_apply_type === "" || this.f_apply_type === null || this.f_apply_type === undefined){
1247
+ // this.applyButton_disabled = true
1248
+ // return
1249
+ // }
1250
+ // this.applyButton_disabled = false
1251
+ // }
1252
+ }
1253
+ }
1254
+ </script>
1255
+
1256
+ <style>
1257
+ body.margin {
1258
+ left: 10px;
1259
+ top: 10px;
1260
+ }
1261
+ .fontstyle {
1262
+ background-color: #00A3F0;
1263
+ color: white;
1264
+ font-size: 16px;
1265
+ font-family: 微软雅黑;
1266
+ /*height: 44.2px;*/
1267
+ text-align: center;
1268
+ }
1269
+ .fontsize {
1270
+ font-size: 14px;
1271
+ text-align: center;
1272
+ }
1273
+ </style>