apply-clients 5.0.361 → 6.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/build/css-loaders.js +34 -0
  2. package/build/dev-android.js +101 -0
  3. package/build/dev-client.js +8 -0
  4. package/build/dev-server-app.js +76 -0
  5. package/build/dev-server.js +72 -0
  6. package/build/example-server.js +80 -0
  7. package/build/release.sh +28 -0
  8. package/build/utils.js +80 -0
  9. package/build/webpack.base.conf.js +83 -0
  10. package/build/webpack.baseandroid.conf.js +84 -0
  11. package/build/webpack.dev.conf.js +39 -0
  12. package/build/webpack.devandroid.conf.js +34 -0
  13. package/build/webpack.example.conf.js +49 -0
  14. package/build/webpack.prod.conf.js +60 -0
  15. package/build/webpack.prodandroid.conf.js +60 -0
  16. package/build/webpack.test.conf.js +31 -0
  17. package/dist-android/static/.gitkeep +0 -0
  18. package/dist-android/static/batchleft.png +0 -0
  19. package/dist-android/static/batchright.png +0 -0
  20. package/dist-android/static/bluemainbg.jpg +0 -0
  21. package/dist-android/static/huangtengbiaozhi.png +0 -0
  22. package/dist-android/static/login_bg.jpg +0 -0
  23. package/dist-android/static/login_title.png +0 -0
  24. package/dist-android/static/login_title1.png +0 -0
  25. package/dist-android/static/loginbg.jpg +0 -0
  26. package/dist-android/static/loginlogo.png +0 -0
  27. package/dist-android/static/main_logo.png +0 -0
  28. package/dist-android/static/mainbg.jpg +0 -0
  29. package/dist-android/static/menulogo.png +0 -0
  30. package/dist-android/static/newmainbg.jpg +0 -0
  31. package/dist-android/static/psicon.png +0 -0
  32. package/dist-android/static/singleleft.png +0 -0
  33. package/dist-android/static/singleright.png +0 -0
  34. package/dist-android/static/treeopen.png +0 -0
  35. package/dist-android/static/treeout.png +0 -0
  36. package/dist-android/static/treeset.png +0 -0
  37. package/dist-android/static/usericon.png +0 -0
  38. package/dist-android/static/xinxi.png +0 -0
  39. package/package.json +5 -10
  40. package/src/AndroidApp.vue +1 -1
  41. package/src/App.vue +0 -1
  42. package/src/apply.js +172 -104
  43. package/src/applyAndroid.js +0 -5
  44. package/src/assets/shipin1.mp4 +0 -0
  45. package/src/bootstrap/less/bootstrap.less +2 -1
  46. package/src/components/Hello.vue +39 -0
  47. package/src/components/Table.js +2 -2
  48. package/src/components/Test.vue +26 -0
  49. package/src/components/Util.js +6 -11
  50. package/src/components/app_apply/Acceptance.vue +2 -7
  51. package/src/components/app_apply/ApplyApp.vue +6 -16
  52. package/src/components/app_apply/ApplyInfo.vue +1 -1
  53. package/src/components/app_apply/ApplyListUpload.vue +3 -3
  54. package/src/components/app_apply/ApplyToDoList.vue +3 -3
  55. package/src/components/app_apply/ApplyUserInfo.vue +3 -2
  56. package/src/components/app_apply/FieldExploration.vue +1 -3
  57. package/src/components/app_apply/PlaceControler.vue +49 -38
  58. package/src/components/{product/VueUtils → apply/base}/rightview/InstallCardList2.vue +38 -29
  59. package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/ReduceFeeDetail2.vue +77 -77
  60. package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/StopApplyDetail2.vue +1 -1
  61. package/src/components/build/Install/ApplyChargeSearch.vue +210 -0
  62. package/src/components/build/Install/ExplorationSelect.vue +308 -0
  63. package/src/components/build/Install/ExplorationUser.vue +315 -0
  64. package/src/components/build/Install/InstallFee/AddContract.vue +257 -0
  65. package/src/components/build/Install/InstallFee/InstallFee.vue +929 -0
  66. package/src/components/build/Install/InstallFee/InstallFee2.vue +291 -0
  67. package/src/components/{product/Function/functions → build/Install/InstallFee}/InstallFeeInfo.vue +11 -42
  68. package/src/components/build/Install/InstallFee/InstallFunction.vue +242 -0
  69. package/src/components/build/Install/InstallFee/InstallInfoSelect.vue +232 -0
  70. package/src/components/{product/Process → build/Install}/ModifyUserFiles.vue +1 -1
  71. package/src/components/build/Install/Process/BuildJob.vue +242 -0
  72. package/src/components/build/Install/Process/ContratSigne.vue +283 -0
  73. package/src/components/build/Install/Process/CustomerEssentialInfo.vue +325 -0
  74. package/src/components/build/Install/Process/CustomerFile.vue +423 -0
  75. package/src/components/build/Install/Process/CustomerMaterialMessage.vue +414 -0
  76. package/src/components/build/Install/Process/CustomerRecordMessage.vue +749 -0
  77. package/src/components/build/Install/Process/DispatchingJob.vue +261 -0
  78. package/src/components/build/Install/Process/FeeNorme.vue +252 -0
  79. package/src/components/build/Install/Process/FeeNormeAndContratSigne.vue +376 -0
  80. package/src/components/build/Install/Process/FeeVerifier.vue +199 -0
  81. package/src/components/build/Install/Process/IgnitionVentilation.vue +232 -0
  82. package/src/components/build/Install/Process/MeterType.vue +379 -0
  83. package/src/components/build/Install/Process/PlaceControler.vue +304 -0
  84. package/src/components/build/Install/Process/ProjeterFigure.vue +211 -0
  85. package/src/components/build/Install/Process/ReceivingNote.vue +317 -0
  86. package/src/components/build/Install/Process/boneng/qbj_placecontroler.vue +370 -0
  87. package/src/components/build/Install/Process/zhongran/ZR_Construction.vue +388 -0
  88. package/src/components/build/Install/Process/zhongran/ZR_ContratSigne.vue +496 -0
  89. package/src/components/build/Install/Process/zhongran/ZR_CustomerEssentialInfo.vue +415 -0
  90. package/src/components/build/Install/Process/zhongran/ZR_DispatchingJob.vue +409 -0
  91. package/src/components/build/Install/Process/zhongran/ZR_FeeNorme.vue +342 -0
  92. package/src/components/build/Install/Process/zhongran/ZR_IgnitionVentilation.vue +253 -0
  93. package/src/components/build/Install/Process/zhongran/ZR_IgnitionVentilation_transfer.vue +198 -0
  94. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlan.vue +259 -0
  95. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlanExamine.vue +243 -0
  96. package/src/components/build/Install/Process/zhongran/ZR_PlaceControler.vue +426 -0
  97. package/src/components/build/Install/Process/zhongran/ZR_PlaceControler_print.vue +187 -0
  98. package/src/components/build/Install/Process/zhongran/ZR_ReceivingNote.vue +404 -0
  99. package/src/components/build/Install/Process/zhongran/ZR_ReceivingNote1.vue +301 -0
  100. package/src/components/build/Install/Process/zhongran/ZR_TestDesign.vue +441 -0
  101. package/src/components/build/Install/Process/zhongran/ZR_end.vue +20 -0
  102. package/src/components/build/Install/ProcessInfo/BasicInfo.vue +68 -0
  103. package/src/components/build/Install/ProcessInfo/BuildInfo.vue +110 -0
  104. package/src/components/build/Install/ProcessInfo/ContratProcessInfo.vue +116 -0
  105. package/src/components/build/Install/ProcessInfo/DispatchingInfo.vue +114 -0
  106. package/src/components/build/Install/ProcessInfo/FeeNormeInfo.vue +108 -0
  107. package/src/components/build/Install/ProcessInfo/FeeVerifierInfo.vue +102 -0
  108. package/src/components/build/Install/ProcessInfo/IgnitionInfo.vue +99 -0
  109. package/src/components/build/Install/ProcessInfo/MeterProcessInfo.vue +114 -0
  110. package/src/components/build/Install/ProcessInfo/PlaceProcessInfo.vue +115 -0
  111. package/src/components/build/Install/ProcessInfo/ProjeterProcessInfo.vue +107 -0
  112. package/src/components/build/Install/ProcessInfo/ReceivingInfo.vue +107 -0
  113. package/src/components/build/Install/ProcessInfo/zhongran/ZR_BasicInfo.vue +74 -0
  114. package/src/components/build/Install/ProcessInfo/zhongran/ZR_BuildInfo.vue +114 -0
  115. package/src/components/build/Install/ProcessInfo/zhongran/ZR_ContratProcessInfo.vue +114 -0
  116. package/src/components/build/Install/ProcessInfo/zhongran/ZR_DispatchingInfo.vue +119 -0
  117. package/src/components/build/Install/ProcessInfo/zhongran/ZR_FeeNormeInfo.vue +105 -0
  118. package/src/components/build/Install/ProcessInfo/zhongran/ZR_IgnitionInfo.vue +99 -0
  119. package/src/components/build/Install/ProcessInfo/zhongran/ZR_MaterialPlan_info.vue +104 -0
  120. package/src/components/build/Install/ProcessInfo/zhongran/ZR_PlaceProcessInfo.vue +109 -0
  121. package/src/components/build/Install/ProcessInfo/zhongran/ZR_ReceivingInfo.vue +102 -0
  122. package/src/components/build/Install/ProcessInfo/zhongran/ZR_ignition_transfer_info.vue +104 -0
  123. package/src/components/{product/Bill → build/Install/bill}/BillXSDMakeInfo.vue +1 -1
  124. package/src/components/build/Install/monitor/SupervisoryControl.vue +178 -0
  125. package/src/components/build/Install/monitor/SupervisoryList.vue +209 -0
  126. package/src/components/{product/Supervisory → build/Install/monitor}/SupervisoryhCart.vue +3 -29
  127. package/src/components/product/Process/Processes/Service/ServiceControl.vue +91 -1718
  128. package/src/main.js +2 -9
  129. package/src/stores/ApplyLoadParams.js +1 -1
  130. package/src/bootstrap/less/standard.less +0 -208
  131. package/src/components/app_apply/ServiceControl.vue +0 -442
  132. package/src/components/app_apply/ServiceView.vue +0 -356
  133. package/src/components/product/Common/ApplyValidateBill.vue +0 -55
  134. package/src/components/product/Common/PrintBill.vue +0 -120
  135. package/src/components/product/Function/InstallFunction.vue +0 -142
  136. package/src/components/product/Function/InstallInfoSelect.vue +0 -254
  137. package/src/components/product/Function/Service/FunctionServiceControl.vue +0 -328
  138. package/src/components/product/Function/functions/AddContract.vue +0 -301
  139. package/src/components/product/Function/functions/BuyerMessage.vue +0 -512
  140. package/src/components/product/Function/functions/InstallFee.vue +0 -919
  141. package/src/components/product/Function/functions/material_recording.vue +0 -237
  142. package/src/components/product/MaterialBatchList.vue +0 -109
  143. package/src/components/product/MaterialBatchManage.vue +0 -34
  144. package/src/components/product/Process/ExplorationSelect.vue +0 -636
  145. package/src/components/product/Process/ExplorationUser.vue +0 -131
  146. package/src/components/product/Process/MaterialUseList.vue +0 -159
  147. package/src/components/product/Process/ProcessInfo/history_control.vue +0 -134
  148. package/src/components/product/Process/Processes/CustomerMaterialMessage.vue +0 -776
  149. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +0 -910
  150. package/src/components/product/Process/Processes/ProjectSettlement.vue +0 -383
  151. package/src/components/product/Process/Processes/ReceiveBatch.vue +0 -957
  152. package/src/components/product/Process/Processes/SendOrder.vue +0 -47
  153. package/src/components/product/Process/Processes/Service/ApplyAcceptBill.vue +0 -89
  154. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +0 -305
  155. package/src/components/product/Process/Processes/Service/GasStop.vue +0 -96
  156. package/src/components/product/Process/ShowBackReason.vue +0 -18
  157. package/src/components/product/ServiceView.vue +0 -800
  158. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +0 -407
  159. package/src/components/product/Supervisory/SupervisoryControl.vue +0 -130
  160. package/src/components/product/Supervisory/SupervisoryList.vue +0 -349
  161. package/src/components/product/stopInfo/ApplyStopInfo.vue +0 -280
  162. package/src/plugins/commonService.js +0 -229
  163. package/yarn.lock +0 -8072
  164. /package/src/components/{product/VueUtils → apply/base}/ToolsPage.vue +0 -0
  165. /package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/BuildFeeDetail2.vue +0 -0
  166. /package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/ChangeFeeDetail2.vue +0 -0
  167. /package/src/components/{product/Function/functions → build/Install/InstallFee}/AllSelect.vue +0 -0
  168. /package/src/components/{product/Function → build/Install/InstallFee}/InstallInfoDown.vue +0 -0
  169. /package/src/components/{product/Function/functions → build/Install/InstallFee}/PreparationFee.vue +0 -0
  170. /package/src/components/{product/Function/functions → build/Install/InstallFee}/PrestoreFee.vue +0 -0
  171. /package/src/components/{product/Function/functions → build/Install/InstallFee}/ReduceFee.vue +0 -0
  172. /package/src/components/{product/Function/functions → build/Install/InstallFee}/StopInstall.vue +0 -0
  173. /package/src/components/{product/Function/functions → build/Install/InstallFee}/UpdateFee.vue +0 -0
  174. /package/src/components/{product/Process/Processes → build/Install/Process}/CustomerBuildingMessage.vue +0 -0
  175. /package/src/components/{product/Process/Processes → build/Install/Process}/CustomerEquipmentMessage.vue +0 -0
  176. /package/src/components/{product/Function/functions → build/Install/ProcessInfo}/ApplyRecordCancel.vue +0 -0
  177. /package/src/components/{product/Bill → build/Install/bill}/BillGZK.vue +0 -0
  178. /package/src/components/{product/Bill → build/Install/bill}/BillGZKMakeInfo.vue +0 -0
  179. /package/src/components/{product/Bill → build/Install/bill}/BillGZKRecordInfo.vue +0 -0
  180. /package/src/components/{product/Bill → build/Install/bill}/BillJLB.vue +0 -0
  181. /package/src/components/{product/Bill → build/Install/bill}/BillJLBMakeInfo.vue +0 -0
  182. /package/src/components/{product/Bill → build/Install/bill}/BillJLBRecordInfo.vue +0 -0
  183. /package/src/components/{product/Bill → build/Install/bill}/BillKTK.vue +0 -0
  184. /package/src/components/{product/Bill → build/Install/bill}/BillKTKMakeInfo.vue +0 -0
  185. /package/src/components/{product/Bill → build/Install/bill}/BillKTKRecordInfo.vue +0 -0
  186. /package/src/components/{product/Bill → build/Install/bill}/BillQRK.vue +0 -0
  187. /package/src/components/{product/Bill → build/Install/bill}/BillQRKMakeInfo.vue +0 -0
  188. /package/src/components/{product/Bill → build/Install/bill}/BillQRKRecordInfo.vue +0 -0
  189. /package/src/components/{product/Bill → build/Install/bill}/BillSelect.vue +0 -0
  190. /package/src/components/{product/Bill → build/Install/bill}/BillXSD.vue +0 -0
  191. /package/src/components/{product/Bill → build/Install/bill}/BillXSDRecordInfo.vue +0 -0
  192. /package/src/components/{product/Supervisory → build/Install/monitor}/SupervisoryBaseInfo.vue +0 -0
@@ -1,919 +0,0 @@
1
- <template>
2
- <div class="col-sm-12 auto select-overspread" >
3
- <div class="auto select-overspread">
4
- <div class="panel panel-info">
5
- <div class="panel-heading auto">
6
- <div class="col-sm-12 recordTable" style="height: 200px">
7
- <partial-view v-ref:single-load v-if="!isSingleUser">
8
- <data-grid :model="model" v-ref:grid >
9
- <template partial='head'>
10
- <tr>
11
- <th><nobr>序号</nobr></th>
12
- <th><nobr>用户</nobr></th>
13
- <th><nobr>地址</nobr></th>
14
- <th><nobr>收费金额(元)</nobr></th>
15
- <th><nobr>收费人员</nobr></th>
16
- <th><nobr>日期</nobr></th>
17
- <th><nobr>备注</nobr></th>
18
- <th><nobr>操作</nobr></th>
19
- </tr>
20
- </template>
21
- <template partial='body'>
22
- <td style="text-align: center">{{$index+1}}</td>
23
- <td style="text-align: center">{{row.f_charge_user}}</td>
24
- <td style="text-align: center">{{row.f_charge_address}}</td>
25
- <td style="text-align: center">{{row.f_charge_money}}</td>
26
- <td style="text-align: center">{{row.f_charge_collectors}}</td>
27
- <td style="text-align: center">{{row.f_charge_date}}</td>
28
- <td style="text-align: center">{{row.f_charge_remarks}}</td>
29
- <td style="text-align: center" >
30
- <button class="btn btn-default" @click="$parent.$parent.$parent.tovoid($index)" >冲正</button>
31
- </td>
32
- </template>
33
- </data-grid>
34
- </partial-view>
35
- <partial-view v-ref:single-user v-if="isSingleUser">
36
- <data-grid :model="userinfoRow" v-ref:grid >
37
- <template partial='head'>
38
- <tr>
39
- <th><nobr>序号</nobr></th>
40
- <th><nobr>用户名</nobr></th>
41
- <th><nobr>用户电话</nobr></th>
42
- <th><nobr>地址</nobr></th>
43
- <th><nobr>操作</nobr></th>
44
- </tr>
45
- </template>
46
- <template partial='body' >
47
- <td style="text-align: center">{{$index+1}}</td>
48
- <td style="text-align: center" >{{row.f_user_name}}</td>
49
- <td style="text-align: center">{{row.f_user_phone}}</td>
50
- <td style="text-align: center">{{row.address}}</td>
51
- <button type="button" name="button" class="btn btn-link"
52
- @click.stop="$parent.$parent.$parent.getUserinfo($index)">收费
53
- </button>
54
- </template>
55
- </data-grid>
56
- </partial-view>
57
- <form novalidate class="form-horizontal">
58
- <p class="bg-info text-center" style="padding: 10px;"> </p>
59
- <p class="bg-info text-center" style="padding: 10px;">收费信息</p>
60
- <div class="row" style="margin-top:10px;">
61
- <div class="form-input-group col-sm-3">
62
- <label for="f_user_name" class="control-label col-sm-2 ">用户名称</label>
63
- <div class="col-sm-2">
64
- <input type="text" class="form-control" @blur="getUserinfo" v-model="model.f_user_name" >
65
- </div>
66
- </div>
67
- <div class="form-input-group col-sm-3">
68
- <label for="f_phone" class="control-label col-sm-2 ">联系电话</label>
69
- <div class="col-sm-2">
70
- <input type="text" class="form-control" @blur="getUserinfo" v-model="model.f_phone" readonly >
71
-
72
- </div>
73
- </div>
74
- <div class="form-input-group col-sm-6">
75
- <label for="f_address" class="control-label col-sm-2 ">地址</label>
76
- <div class="col-sm-2">
77
- <input type="text" class="form-control" @blur="getUserinfo" v-model="model.f_address" readonly >
78
- </div>
79
- </div>
80
- </div>
81
- <div class="row" style="margin-top:10px;">
82
- <div class="form-input-group col-sm-3">
83
- <label for="f_brand_spec" class="control-label col-sm-2 ">应交金额(元)</label>
84
- <div class="col-sm-2">
85
- <input type="text" class="form-control" v-model="model.f_total_cost" readonly>
86
- </div>
87
- </div>
88
- <div class="form-input-group col-sm-3">
89
- <label for="f_brand_spec" class="control-label col-sm-2 ">累计缴费金额(元)</label>
90
- <div class="col-sm-2">
91
- <input type="text" class="form-control" v-model="model.f_cumulative_money" readonly>
92
- </div>
93
- </div>
94
- <div class="form-input-group col-sm-3">
95
- <label for="f_brand_spec" class="control-label col-sm-2 ">未结总金额(元)</label>
96
- <div class="col-sm-2">
97
- <input type="text" class="form-control" v-model="model.f_unaccounts_money" readonly>
98
- </div>
99
- </div>
100
- <div class="form-input-group col-sm-3">
101
- <label for="f_brand_spec" class="control-label col-sm-2 ">金额(元)</label>
102
- <div class="col-sm-2">
103
- <input type="text" class="form-control" :placeholder="0" v-model="model.f_charge_money" disabled="true">
104
- </div>
105
- </div>
106
- </div>
107
- <div class="row" style="margin-top:10px;">
108
- <div class="form-input-group col-sm-3">
109
- <label for="f_isone" class="control-label col-sm-2">单户打印:</label>
110
- <div class="col-sm-2">
111
- <v-select id="isone" width="100%"
112
- v-model="f_isone"
113
- placeholder='请选择'
114
- :value.sync="model.f_isone"
115
- :options='isOne'
116
- close-on-select clear-button>
117
- </v-select>
118
- </div>
119
- </div>
120
- <div class="form-input-group col-sm-3">
121
- <label for="f_paytype" class="control-label col-sm-2">付款方式:</label>
122
- <div class="col-sm-2">
123
- <v-select id="f_payment" width="100%"
124
- v-model="f_payment"
125
- placeholder='请选择'
126
- :value.sync="model.f_payment"
127
- :options='paymenttypes'
128
- close-on-select clear-button>
129
- </v-select>
130
- </div>
131
- </div>
132
- <div class="form-input-group col-sm-3">
133
-
134
- <label for="f_print" class="control-label col-sm-2">打印格式:</label>
135
- <div class="col-sm-2">
136
- <v-select id="print" width="100%"
137
- v-model="f_print"
138
- placeholder='请选择'
139
- :value.sync="model.f_print"
140
- :options='printstyle'
141
- close-on-select clear-button>
142
- </v-select>
143
- </div>
144
- </div>
145
- <div class="form-input-group col-sm-3">
146
- <label for="f_brand_spec" class="control-label col-sm-2 ">金额大写(元)</label>
147
- <div class="col-sm-2">
148
- <input type="text" class="form-control" v-model="getCapital" readonly>
149
- </div>
150
- </div>
151
- </div>
152
- <div class="row" style="margin-top:10px;" v-for="(index,row) in charges">
153
- <div class="form-input-group col-sm-12">
154
- <div class="form-input-group col-sm-3">
155
- <label for="f_charge_item" class="control-label col-sm-2">
156
- <button class="glyphicon glyphicon-minus btn-danger" v-if="$index>0" @click.stop="delItems($index)"></button>&nbsp;&nbsp;&nbsp;
157
- <button class="glyphicon glyphicon-plus btn-success" @click.stop="addItems()"></button>
158
- </label>
159
- <div class="col-sm-2">
160
- <v-select id="f_charge_item"+$index
161
- v-model="f_project_item" width="100%"
162
- placeholder='收费项目'
163
- :value.sync="row.f_project_item"
164
- :options='chargeitems'
165
- close-on-select clear-button>
166
- </v-select>
167
- </div>
168
- </div>
169
- <div class="form-input-group col-sm-3">
170
- <label for="f_amount" class="control-label col-sm-2">数量:</label>
171
- <div class="col-sm-2">
172
- <input class="form-control" style="background-color: white" type="number" v-model="row.f_amount" :disabled="isDisable"
173
- placeholder="数量" :blur="calcmoney(index)" >
174
- </div>
175
- </div>
176
- <div class="form-input-group col-sm-3">
177
- <label for="f_price" class="control-label col-sm-2">单价:</label>
178
- <div class="col-sm-2">
179
- <input class="form-control" style="background-color: white" type="number" v-model="row.f_price" :disabled="isDisable"
180
- placeholder="单价" :blur="calcmoney(index)">
181
- </div>
182
- </div>
183
- <div class="form-input-group col-sm-3">
184
- <label for="f_money" class="control-label col-sm-2">金额:</label>
185
- <div class="col-sm-2">
186
- <input class="form-control" style="background-color: white" type="number" v-model="row.f_money" :disabled="true"
187
- placeholder="金额" >
188
- </div>
189
- </div>
190
- </div>
191
- </div>
192
- <div class="row" style="margin-top:10px;">
193
- <div class="form-input-group col-sm-8">
194
- <label for="f_paytype" class="control-label col-sm-2">备注:</label>
195
- <input type="text" class="form-control" v-model="model.f_charge_remarks">
196
- </div>
197
- </div>
198
- <apply-validate-bill v-if="hasValidateBill" :show="refresh" :data="model" @validate-bill="validateBill"></apply-validate-bill>
199
- <printbill :show="print" :data='model' :selfclean="selfclean" :bill-config='config' :bill-data='billData' v-on:toggle="close" :selfsearch="load" @printok="printok" v-ref:printbill></printbill>
200
-
201
- <printbill :show="delprint" :data='model' :selfclean="selfclean" :bill-config='config2' :bill-data='billData' v-on:toggle="close" :selfsearch="load" @printok="printok" v-ref:printbill></printbill>
202
- <div class="row" style="text-align:right;">
203
- <button :readonly="!validateOk" type="button" class="btn btn-success" style="" @click='confirm'>确认</button>
204
- </div>
205
- </form>
206
- </div>
207
- </div>
208
- </div>
209
- </div>
210
- </div>
211
-
212
- </template>
213
- <script>
214
- import {HttpResetClass} from 'vue-client'
215
- import InputAndSelect from "vue-client/src/vue-strap/src/InputAndSelect";
216
- import { DataModel } from 'vue-client'
217
- import Vue from "vue";
218
-
219
- let gen = function* (self, val) {
220
- val.f_actualfee_type = val.f_actualfee_type[0]
221
- yield self.$resetpost('rs/logic/saveentity', {data: {tablename: 't_apply', parameters: val}})
222
- delete val.id
223
- self.$resetpost('rs/logic/saveentity', {data: {tablename: 't_record', parameters: val}})
224
- .then(() => {
225
- self.reset()
226
- })
227
- }
228
- export default {
229
- components: {InputAndSelect},
230
- title: '报装收费',
231
- data() {
232
- return {
233
- billtype:{
234
- name:"收费发票"
235
- },
236
- isSingleUser: false,
237
- isOne: [{label:'是',value: '是'},{label:'否',value: '否'}],
238
- printUserInfo: {
239
- f_user_name:'',
240
- f_phone: '',
241
- f_address: ''
242
- },
243
- refresh: false,
244
- ifsearch:false,
245
- showpay: false, // 新增收费模态框开关
246
- showbuyerinfo: false, // 新增收费模态框开关
247
- selectsellid: null, //需要打票收费id
248
- buyerinfo:{
249
- id:'',
250
- f_buyer_name: '',
251
- f_buyer_identify: '',
252
- f_buyer_addphone: '',
253
- f_buyer_bank: '',
254
- f_buyer_email: '',
255
- rows: [] // 购货方信息
256
- },
257
- model: {
258
- f_isone: ['否'],
259
- chargeid:'',
260
- f_print: ['普通收据'],
261
- f_bill_type:'普通收据',
262
- f_bill_style:'普通发票',
263
- f_use_type:'报建费用',
264
- f_payment:['现金缴费'],
265
- f_charge_money:0,
266
- f_apply_num: '',//报建编号
267
- f_process_id: '',//流程ID
268
- f_payments: '',//首付
269
- f_pro_payment: '',//进度款
270
- f_end_payment: '',//尾款
271
- f_additional_payment: '',//追加款
272
- f_jmhj_cost: '',//减免金额
273
- subcost: 0, // 剩余付款
274
- f_total_cost: 0, // 总费用
275
- f_payfee_operator: '',//操作人
276
- f_payfee_department: '',//操作部门
277
- f_filiale: '',//分公司
278
- f_payfee_date: '',//操作日期
279
- f_contract_number: '',//合同编号
280
- f_cumulative_money: '',//累计缴费金额
281
- f_budget_money: '',//应交金额
282
- f_contract_money: '',//合同金额
283
- f_unaccounts_money: '',//未结总金额
284
- f_cumulative_invoicing: '',//--累计开票金额--
285
- f_residual_invoicing: '',//剩余开票金额
286
- f_main_contract_num: 0,//主合同编号
287
- rows: [], // 付费数据数组
288
- f_user_name:"",
289
- f_phone:"",
290
- f_address:"",
291
- f_userinfo_id:""
292
- },
293
- billmodel: {
294
- f_user_name:"",
295
- f_phone:"",
296
- f_address:"",
297
- f_userinfo_id:""
298
- },
299
- chargemoney:0,
300
- chargeitems: this.$appdata.getParam('收费项目'),
301
- billstyles: this.$appdata.getParam('票据类型'),
302
- paymenttypes: this.$appdata.getParam('付款方式'),
303
- printstyle: this.$appdata.getParam('打印格式'),
304
- print: false,
305
- delprint:false,
306
- taxprint: false,
307
- billData: {
308
- url: 'rs/report/applyCharge_bill',
309
- bill: ''
310
- },
311
- config: {
312
- hasPrint: true, //默认打票
313
- hasBillManage: true, //默认不启用发票管理
314
- billType: '报建收费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
315
- printType: '普通收据', // 收据/电子票/专用发票/国税发票
316
- payment: '现金缴费', // 付款方式
317
- brandspec: '材料费', // 收费类型
318
- billtype:"收费发票"
319
- },
320
- config2: {
321
- hasPrint: true, //默认打票
322
- hasBillManage: true, //默认不启用发票管理
323
- billType: '报建收费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
324
- printType: '普通收据', // 收据/电子票/专用发票/国税发票
325
- payment: '现金缴费', // 付款方式
326
- brandspec: '材料费', // 收费类型
327
- billtype:"冲正发票"
328
- },
329
- addItem:{
330
- f_charge_money :0,
331
- f_amount_words :'',
332
- f_payment_type :'',
333
- f_charge_collectors : this.$login.f.name,
334
- f_charge_date :'',
335
- f_charge_remarks :'',
336
- f_filiale : this.$login.f.f_fengongsi,
337
- f_process_id :'',
338
- f_apply_num :'',
339
- f_payment_method:'',
340
- f_charging_status : '有效',
341
- f_is_correct : '否',
342
- f_bill_style:''
343
- },
344
- charges: [{f_project_item:'合同总额', f_amount: 0, f_price: 0,f_money:0}],
345
- // 启用发票管理需要对票号进行验证
346
- hasValidateBill: true,
347
- validateOk: false,
348
- userinfoRow:{
349
- rows:[]
350
- },
351
- oldInfo:{},
352
- bill: '' // 票数据
353
- }
354
- },
355
- props: ['infee', 'showfee'],
356
- ready() {
357
- this.load() // 初始化数据
358
-
359
- },
360
-
361
- methods: {
362
- //冲正
363
- deleteChargeRecord(index){
364
- console.log(JSON.stringify(this.model.rows[index]))
365
- if (this.config.hasPrint) {
366
- if (this.model.f_print[0] === '普通收据') {
367
- if (this.config.hasBillManage) {
368
-
369
- this.model.f_bill_type = this.model.f_print[0]
370
- this.model.f_bill_style = this.model.f_print[0]
371
- this.print = true
372
-
373
- console.log('f_bill_style'+this.model.f_bill_style)
374
-
375
- } else {
376
- this.print = true
377
- }
378
- } else if (this.model.f_print[0] === '国税发票') {
379
- // TODO
380
- this.$dispatch('success')
381
- } else if (this.model.f_print[0]=== '电子发票') {
382
- // TODO
383
- this.$dispatch('success')
384
- }
385
- } else {
386
- this.$dispatch('success')
387
- }
388
- this.$showMessage('是否冲正此条记录?', ['confirm', 'cancel']).then((res)=>{
389
- if (res === 'confirm') {
390
- let param= {
391
- row: this.model.rows[index]
392
- }
393
- this.$resetpost('rs/logic/restChargeRecord', {data: param}, {resolveMsg: null, rejectMsg: "冲正失败!"})
394
- .then((res) => {
395
- this.$showAlert('冲正成功!', 'success',5000)
396
- this.load()
397
- })
398
- }else{
399
- this.load()
400
- }
401
- })
402
- },
403
- getUserinfo(index){
404
- console.log(index)
405
- console.log("a")
406
- this.model.f_user_name = this.userinfoRow.rows[index].f_user_name;
407
- this.model.f_phone = this.userinfoRow.rows[index].f_user_phone;
408
- this.model.f_address = this.userinfoRow.rows[index].address;
409
- this.model.f_userinfo_id = this.userinfoRow.rows[index].f_userinfo_id;
410
- this.billmodel.f_user_name = this.userinfoRow.rows[index].f_user_name;
411
- this.billmodel.f_phone = this.userinfoRow.rows[index].f_user_phone;
412
- this.billmodel.f_address = this.userinfoRow.rows[index].address;
413
- this.billmodel.f_userinfo_id = this.userinfoRow.rows[index].f_userinfo_id;
414
-
415
- },
416
- calcmoney(index){
417
- console.log("开始计算");
418
- this.charges[index].f_money = this.charges[index].f_price*this.charges[index].f_amount
419
- let allmoney = 0;
420
- for(let i=0;i<this.charges.length;i++){
421
- allmoney += parseFloat(this.charges[i].f_money)
422
- }
423
- this.model.f_charge_money = allmoney
424
- // row.f_money = parseFloat(row.f_amount)*parseFloat(row.f_price);
425
- },
426
- addItems () {
427
- this.charges.push({f_project_item:'合同总额', f_amount: 0, f_price: 0,f_money:0})
428
- },
429
- delItems (index) {
430
- console.log('index==', index);
431
- if (this.charges.length > 1) {
432
- this.charges.splice(index, 1)
433
- }
434
- },
435
- selfclean(){
436
- console.log("清空输入框")
437
- this.model.f_charge_money =0
438
- this.model.f_amount_words =''
439
- this.model.f_charge_remarks =''
440
- },
441
- clean () {
442
- this.addItem={
443
- f_charge_money :0,
444
- f_amount_words :'',
445
- f_payment_type :'',
446
- f_charge_collectors : this.$login.f.name,
447
- f_charge_date :'',
448
- f_charge_remarks :'',
449
- f_filiale : this.$login.f.f_fengongsi,
450
- f_process_id :'',
451
- f_apply_num :'',
452
- f_charging_status : '有效',
453
- f_is_correct : '否',
454
- f_bill_style:''
455
- }
456
-
457
- // this.$dispatch('refresh', this.model)
458
- },
459
- close () {
460
- console.log("关闭打印框")
461
- this.taxprint = false
462
- this.print = false
463
- this.delprint = false
464
- this.clean()
465
- },
466
- printok () {
467
- console.log("successs............")
468
- this.$dispatch('success')
469
- },
470
- validateBill (val) {
471
- this.validateOk = !val.isOk
472
- this.billData.bill = val.bill
473
- },
474
-
475
- confirmbuyerinfo (args) {
476
- let drawbilldata = {
477
- sellid : this.selectsellid,
478
- buyerid : args.id,
479
- operator: this.$login.f.name
480
- }
481
- this.closebuyerinfo()
482
- this.$resetpost('rs/logic/applyDrawBill', {data: drawbilldata}, {resolveMsg: null, rejectMsg: "开发票失败"})
483
- .then((res) => {
484
- if (res.data.status === 200){
485
- this.$showAlert('申请开具增值税电子发票成功,请稍后到报建功能中【报建收费】中查看电子发票', 'success',5000)
486
-
487
- }else {
488
- this.$showAlert('电子发票开票失败,失败代码为:' + res.data.status , 'warning',3000)
489
- }
490
- })
491
- },
492
- // 输入金额校验
493
- check() {
494
- console.log('check')
495
- let re = /^[+-]?\d+(\.\d+)?$/ //判断字符串是否为数字
496
- if (!this.model.f_charge_money) {//判断缴费金额是否为空
497
- console.log('check1')
498
- this.model.f_charge_money = 0
499
- } else {
500
- if (!re.test(this.model.f_charge_money)) {
501
- this.$showMessage("请输入数字")
502
- this.model.f_charge_money = ''
503
- return false
504
- }
505
- }
506
-
507
-
508
- return true
509
- },
510
-
511
- // 小写转换大写
512
- smalltoBIG(n) {
513
- let fraction = ['角', '分'];
514
- let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
515
- let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
516
- let head = n < 0 ? '欠' : '';
517
- n = Math.abs(n);
518
-
519
- let s = '';
520
-
521
- for (var i = 0; i < fraction.length; i++) {
522
- s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
523
- }
524
- s = s || '整';
525
- n = Math.floor(n);
526
-
527
- for (var i = 0; i < unit[0].length && n > 0; i++) {
528
- let p = '';
529
- for (var j = 0; j < unit[1].length && n > 0; j++) {
530
- p = digit[n % 10] + unit[1][j] + p;
531
- n = Math.floor(n / 10);
532
- }
533
- s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
534
- }
535
- return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
536
- },
537
-
538
- // 模态框确定按钮保存数据
539
-
540
- //
541
- // f_cumulative_money: 0,//累计缴费金额
542
- // f_unaccounts_money: '',//未结总金额
543
- // f_cumulative_invoicing: '',//--累计开票金额--
544
- // f_residual_invoicing: '',//剩余开票金额
545
- async confirm() {
546
- if(this.validateOk){
547
- this.$showMessage("当前未分配发票号,请联系管理员!!");
548
- return;
549
- }
550
- Object.assign(this.model,this.model,this.billmodel);
551
-
552
- let flag = this.check()
553
- if (!flag) {
554
- return
555
- }
556
- if (Number(this.model.f_charge_money) > Number(this.model.f_unaccounts_money)) {
557
- this.$showMessage("缴费金额不能大于剩余金额")
558
- this.model.f_charge_money=0
559
- this.model.f_amount_words=''
560
- } else if (this.model.f_charge_money == 0||this.model.f_charge_money == ""||this.model.f_charge_money == null) {
561
- this.$showMessage("不能缴费0元")
562
- this.model.f_charge_money=0
563
- this.model.f_amount_words=''
564
- }
565
- else {
566
- //获取购货方信息
567
- http = new HttpResetClass()
568
- data = {
569
- tablename: 't_buyer_info',
570
- condition: `f_process_id = '${this.infee.f_process_id}' and f_apply_num = '${this.infee.f_apply_num}' `
571
- }
572
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
573
- resolveMsg: null,
574
- rejectMsg: '获取购货方信息失败'
575
- })
576
- this.buyerinfo.rows = res.data
577
- if (this.buyerinfo.rows.length < 1 && this.model.f_print[0] === '增值税电子发票' && this.$appdata.getSingleValue('默认打印票据') === '是') {
578
- this.$showAlert('未找到购买方信息,请去报建功能"购买方信息"中完善购买方信息后再收费', 'info', 2000)
579
- return
580
- }
581
-
582
- // 累计缴费金额
583
- let flag1 = this.accAdd(Number(this.model.f_charge_money), Number(this.model.f_cumulative_money))
584
- // 未结金额
585
- let flag2 = this.accSub(Number(this.model.f_unaccounts_money), Number(this.model.f_charge_money))
586
-
587
-
588
- let http = new HttpResetClass()
589
- console.log('f_charge_money' + Number(this.model.f_charge_money))
590
- console.log('f_unaccounts_money' + Number(this.model.f_unaccounts_money))
591
- this.addItem.f_charge_money = this.model.f_charge_money
592
- this.addItem.f_amount_words = this.model.f_amount_words
593
- console.log('f_payment' + this.model.f_payment)
594
- this.addItem.f_payment_method= this.model.f_payment[0]
595
- this.addItem.f_charge_collectors = this.$login.f.name
596
- this.addItem.f_charge_date = this.model.f_charge_date
597
- this.addItem.f_charge_remarks = this.model.f_charge_remarks
598
- this.addItem.f_filiale = this.$login.f.f_fengongsi
599
- this.addItem.f_process_id = this.infee.f_process_id
600
- this.addItem.f_apply_num = this.infee.f_apply_num
601
- this.model.rows.push(this.addItem)
602
- let chargemoney = this.addItem.f_charge_money
603
- let chargeitem = this.addItem.f_f_charge_item
604
- let chargeremarks = this.addItem.f_charge_remarks ? this.addItem.f_charge_remarks : ''
605
- let chargebillstyle = this.model.f_print[0]
606
- this.chargemoney = this.addItem.f_charge_money
607
- this.addItem.f_bill_style=this.model.f_print[0]
608
- this.addItem.f_userinfo_id=this.model.f_userinfo_id
609
- this.addItem.f_charge_state = '已收费'
610
- if(this.model.f_user_name == ""){
611
-
612
- this.addItem.f_charge_user = this.oldInfo.f_user_name;
613
- }else{
614
- this.addItem.f_charge_user = this.model.f_user_name;
615
- }
616
- if(this.model.f_user_name==""){
617
- this.addItem.f_charge_address = this.oldInfo.f_address;
618
- }else{
619
- this.addItem.f_charge_address = this.model.f_address;
620
- }
621
- console.log("==>"+JSON.stringify(this.oldInfo))
622
- let data = {
623
- tablename: 't_charge_record',
624
- parameters: this.addItem
625
- }
626
- // 生成收费记录的id
627
- let sellid = ''
628
- let ret = await http.load('POST', 'rs/logic/saveentity', {data: data})
629
- this.model.chargeid = ret.data.id
630
- console.log('ret==',ret)
631
- data = {
632
- f_cumulative_money: flag1,
633
- f_unaccounts_money: flag2,
634
- f_apply_num: this.infee.f_apply_num
635
- }
636
- //开始收费
637
- for(let i=0;i<this.charges.length;i++){
638
- let saveen = this.charges[i]
639
- saveen.f_project_item=this.charges[i].f_project_item[0]
640
- saveen.f_charge_record_id=parseFloat(ret.data.id);
641
- await http.load('POST','rs/logic/saveentity', {data: {tablename: 't_charge_record_item', parameters: saveen}},{resolveMsg: null, rejectMsg: "失败"})
642
- }
643
-
644
- await http.load('POST', 'rs/logic/updatechargemoney', {data: data}, {resolveMsg: null, rejectMsg: "添加累计金额失败"})
645
- .then((res) => {
646
- this.charges =[{f_project_item:'合同总额', f_amount: 0, f_price: 0,f_money:0}],
647
- this.close()
648
- this.load()
649
- })
650
- if (this.config.hasPrint) {
651
- if (this.model.f_print[0] === '普通收据') {
652
- if (this.config.hasBillManage) {
653
-
654
- this.model.f_bill_type = this.model.f_print[0]
655
- this.model.f_bill_style = this.model.f_print[0]
656
- this.print = true
657
-
658
- console.log('f_bill_style'+this.model.f_bill_style)
659
-
660
- } else {
661
- this.print = true
662
- }
663
- } else if (this.model.f_print[0] === '国税发票') {
664
- // TODO
665
- this.$dispatch('success')
666
- } else if (this.model.f_print[0]=== '电子发票') {
667
- // TODO
668
- this.$dispatch('success')
669
- }
670
- } else {
671
- this.$dispatch('success')
672
- }
673
-
674
- }
675
- this.model.f_amount_words=''
676
- this.model.f_charge_money=0
677
- },
678
- async invoice(val){
679
- console.log('打印票据')
680
- if (val.f_bill_style === '增值税电子发票') {
681
- this.selectsellid = val.id
682
- this.showbuyerinfo = true
683
- }
684
- },
685
-
686
- goback() {
687
- this.$dispatch('hiddenbtn')
688
- this.showview = false
689
- },
690
- async tovoid(index) {
691
- console.log(index)
692
- console.log(JSON.stringify(this.model.rows))
693
- this.model.rows[index].f_amount_words = "负"+this.model.rows[index].f_amount_words;
694
- this.model.rows[index].f_charge_money = -this.model.rows[index].f_charge_money;
695
- var val = this.model.rows[index];
696
- this.model.chargeid=val.id;
697
-
698
- this.delprint = false;
699
- this.charges =[{f_project_item:'合同总额', f_amount: 0, f_price: 0,f_money:0}],
700
- console.log(JSON.stringify(val))
701
- // this.charges =[{f_project_item:'合同总额', f_amount: 0, f_price: 0,f_money:0}],
702
- if (val.f_is_correct==='是' || val.f_charging_status !== '有效' || val.f_is_correct==='冲正中') {
703
- this.$showMessage('已冲正或正在冲正,不能操作!')
704
- } else {
705
- let param= {
706
- sellid:val.id,
707
- operator:this.$login.f.name
708
- }
709
- this.$resetpost('rs/logic/applyCancelDrawBill', {data:param }, {
710
- resolveMsg: null,
711
- rejectMsg: '冲正失败'
712
- }).then((res) => {
713
- if (res.data.status === 200 ){
714
- this.model.chargeid = res.data.charge_id;
715
- if (val.f_bill_style === '增值税电子发票') {
716
- this.$showAlert('申请增值税电子发票冲正成功,请稍后到报建功能中【报建收费】中查看电子发票', 'success',5000)
717
- this.delprint = true;
718
- }else {
719
- this.$showAlert('冲正成功','success',2000)
720
- this.delprint = true;
721
- }
722
- this.delprint = true;
723
- this.load()
724
- } else {
725
- this.$showAlert('冲正失败', 'warning',5000)
726
- }
727
- })
728
-
729
-
730
- }
731
- },
732
- tomakeup(val) {
733
- if (val.f_invoice_num ) {
734
- this.$showMessage('此记录有票据,不能操作!')
735
- }else{
736
- this.invoice(val)
737
- }
738
- },
739
- //根据票据流水号查看票据
740
- async seeeticket(val) {
741
- console.log('该票据流水号为:',val.f_fpqqlsh)
742
- var eticketData = await this.$resetpost('rs/sql/querySingleTable', {data:{items: 'f_bill_url,f_url_code',tablename: 't_eticket', condition: `f_serial_number=${val.f_fpqqlsh}` }}, {resolveMsg: null, rejectMsg: null})
743
- console.log('eticketData:',eticketData)
744
- var data = eticketData.data[0]
745
- if(data.f_bill_url && data.f_bill_url != ''){
746
- console.log(data)
747
- var auth = data.f_bill_url.split("/")
748
- console.log("截取",auth)
749
- var authCode = auth[auth.length-1]
750
- var url = `https://${auth[2]}/ent-views/fpExtract/get_fapiao.html?pwd=${data.f_url_code}&authCode=${authCode}`
751
- this.$showAlert('开票成功!', 'success',500)
752
- window.open(url)
753
- return 'success'
754
- }
755
- return 'fail'
756
- },
757
- accSub(arg1, arg2) {
758
- var r1, r2, m, n;
759
- try {
760
- r1 = arg1.toString().split(".")[1].length
761
- } catch (e) {
762
- r1 = 0
763
- }
764
- try {
765
- r2 = arg2.toString().split(".")[1].length
766
- } catch (e) {
767
- r2 = 0
768
- }
769
- m = Math.pow(10, Math.max(r1, r2));
770
- //last modify by deeka
771
- //动态控制精度长度
772
- n = (r1 >= r2) ? r1 : r2;
773
- return ((arg1 * m - arg2 * m) / m).toFixed(n);
774
- },
775
- reset() {
776
- this.$dispatch('close')
777
- this.$dispatch('selfsearch')
778
- },
779
- accAdd(arg1, arg2) {
780
- var r1, r2, m;
781
- try {
782
- r1 = arg1.toString().split(".")[1].length
783
- } catch (e) {
784
- r1 = 0
785
- }
786
- try {
787
- r2 = arg2.toString().split(".")[1].length
788
- } catch (e) {
789
- r2 = 0
790
- }
791
- m = Math.pow(10, Math.max(r1, r2))
792
- return (arg1 * m + arg2 * m) / m
793
- },
794
-
795
- // 获取数据
796
- async load() {
797
-
798
- this.refresh = !this.refresh
799
- console.log("刷新validate,重新加载"+this.refresh)
800
- // this.ifsearch = !this.ifsearch
801
- let http = new HttpResetClass()
802
- let data = {
803
- tablename: 't_apply',
804
- condition: `f_process_id = '${this.infee.f_process_id}'`
805
- //
806
- }
807
- //获取报建信息
808
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取报建信息失败'})
809
- Object.assign(this.model, this.model, res.data[0])
810
- data = {
811
- tablename: 't_charge_record',
812
- condition: `f_process_id = '${this.infee.f_process_id}' and f_charging_status='有效' and f_is_correct='否'`
813
- }
814
- //获取付款详情信息
815
- res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取付款数据失败'})
816
- // 去除付款时间的时分秒
817
- for (var i = 0; i < res.data.length; i++) {
818
- res.data[i].f_charge_date = res.data[i].f_charge_date.substring(0, 11)
819
- }
820
- this.model.rows = res.data
821
- this.model.f_cumulative_money=0;
822
- for(let i=0;i<res.data.length;i++) {
823
- this.model.f_cumulative_money = this.model.f_cumulative_money + parseInt(res.data[i].f_charge_money);
824
- }
825
-
826
-
827
- //获取购货方信息
828
- data = {
829
- tablename: 't_buyer_info',
830
- condition: `f_process_id = '${this.infee.f_process_id}' and f_apply_num = '${this.infee.f_apply_num}' `
831
- }
832
- res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取购货方信息失败'})
833
- this.buyerinfo.rows = res.data
834
-
835
- //获取用户信息
836
- data = {
837
- condition:this.infee.f_process_id
838
- }
839
- let userinfores = await http.load('POST', 'rs/sql/getBillUserinfo', {data: data}, {resolveMsg: null, rejectMsg: '获取用户信息失败!'})
840
- this.userinfoRow.rows = userinfores.data;
841
-
842
- this.oldInfo.f_user_name=this.model.f_user_name;
843
- this.oldInfo.f_phone=this.model.f_phone;
844
- this.oldInfo.f_address = this.model.f_address;
845
- this.model.f_isone= ['否'];
846
- this.charges= [{f_project_item:'合同总额', f_amount: 0, f_price: 0,f_money:0}];
847
- }
848
- },
849
- computed: {
850
-
851
- // 计算大写
852
- getCapital() {
853
- if (this.model.f_charge_money) {
854
- this.model.f_amount_words = this.smalltoBIG(Number(this.model.f_charge_money))
855
- }
856
-
857
- return this.model.f_amount_words
858
- },
859
- subcost() {
860
- let temp = Number(this.model.f_total_cost)
861
- let temp2 = 0
862
- for (var i = 0; i < this.model.rows.length; i++) {
863
- temp2 += Number(this.model.rows[i].f_fee)
864
- }
865
- this.model.f_cumulative_money = Math.round(temp2 * 100) / 100
866
- this.model.subcost = Math.round((temp - temp2) * 100) / 100
867
- if (this.model.f_cumulative_money && this.model.f_jmhj_cost) {
868
- temp = Math.round((temp - Number(this.model.f_jmhj_cost)) * 100) / 100
869
- }
870
- this.model.subcost = Math.round((temp - temp2) * 100) / 100
871
- return this.model.subcost
872
- },
873
- // totalcost () {
874
- // this.model.f_total_cost = Number(this.model.f_construction_cost) + Number(this.model.f_material_cost)
875
- // + Number(this.model.f_labor_cost) + Number(this.model.f_change_pipeline_cost)
876
- // + Number(this.model.f_sbaz_cost) - Number(this.model.f_jmhj_cost)
877
- // return this.model.f_total_cost
878
- // },
879
- aaa() {
880
- this.model.f_jmhj_cost = Number(this.model.f_total_cost) - Number(this.model.f_actualfee)
881
- return this.model.f_jmhj_cost
882
- },
883
- feeoptions() {
884
- return this.$appdata.getParam('费用类型')
885
- },
886
- dayin() {
887
- return this.$appdata.getParam('打印格式')
888
- },
889
- jiaofei() {
890
- return this.$appdata.getParam('付款方式')
891
- // return [{label: '全部', value: ''}, ...AppData.getParam('缴费类型')]
892
- }
893
- },
894
- watch : {
895
- 'model.f_isone' (val) {
896
- console.log('111111111is one', val, val[0] == '是')
897
- if (val[0] == '是') {
898
- this.isSingleUser = true
899
- this.model.f_user_name=""
900
- this.model.f_phone =""
901
- this.model.f_address=""
902
- this.model.f_userinfo_id="";
903
- } else {
904
- this.isSingleUser = false
905
- this.model.f_user_name=this.oldInfo.f_user_name
906
- this.model.f_phone =this.oldInfo.f_phone
907
- this.model.f_address=this.oldInfo.f_address
908
- this.model.f_userinfo_id="";
909
- }
910
- },
911
- 'infee' (val) {
912
- this.load()
913
- },
914
- 'print' (val) {
915
- this.load()
916
- }
917
- },
918
- }
919
- </script>