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
@@ -0,0 +1,929 @@
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
+ <h3 class="panel-title" style="display: inline-table">报装收费</h3>
7
+ <button v-if="showfee" type="button" style="float: right" class="btn btn-link" @click.stop="printFee()">打印</button>
8
+ </div>
9
+ </div>
10
+ </div>
11
+ <!--打印报表html-->
12
+ <div v-show="false">
13
+ <div class="row" style="display: flex;justify-content: center;" id='bill-fee'>
14
+ {{{bill}}}
15
+ </div>
16
+ <report-print id='bill-fee' top='15mm' left='5mm' width='90%' height='70%' :showbtn="false" preview="true" v-ref:reportprint></report-print>
17
+ </div>
18
+
19
+
20
+ <div class="col-sm-12">
21
+ <span class="col-sm-6" v-show="!($login.f.f_fengongsi.includes('彩虹'))">流程编号:{{model.f_process_id}}</span>
22
+ <span class="col-sm-3" v-show="!($login.f.f_fengongsi.includes('彩虹'))">报建编号:{{model.f_apply_num}}</span>
23
+ <span class="col-sm-3" v-show="!($login.f.f_fengongsi.includes('彩虹'))">合同编号:{{model.f_contract_number}}</span>
24
+ <!--<span class="col-sm-3" v-show="!($login.f.f_fengongsi.includes('彩虹'))">缴费类型(未定):{{}}元</span>-->
25
+ <!--<span class="col-sm-3" v-show="!($login.f.f_fengongsi.includes('彩虹'))">合同总金额:{{model.f_total_cost}}元</span>-->
26
+ <span class="col-sm-3" v-show="!($login.f.f_fengongsi.includes('彩虹'))">合同金额:{{model.f_contract_money}}元</span>
27
+ <span class="col-sm-3" v-show="!($login.f.f_fengongsi.includes('彩虹'))">减免金额:{{model.f_jmhj_cost}}元</span>
28
+ <span class="col-sm-3" v-show="!($login.f.f_fengongsi.includes('彩虹'))">应交金额:{{model.f_budget_money}}元</span>
29
+ <!--<span class="col-sm-3" v-show="!($login.f.f_fengongsi.includes('彩虹'))">首付:{{model.f_payments}}元</span>-->
30
+ <!--<span class="col-sm-3" v-show="!($login.f.f_fengongsi.includes('彩虹'))">进度款:{{model.f_pro_payment}}元</span>-->
31
+ <!--<span class="col-sm-3" v-show="!($login.f.f_fengongsi.includes('彩虹'))">尾款:{{model.f_end_payment}}元</span>-->
32
+ <!--<span class="col-sm-3" v-show="!($login.f.f_fengongsi.includes('彩虹'))">追加款:{{model.f_additional_payment}}元</span>-->
33
+ <!--<span class="col-sm-3" v-show="!($login.f.f_fengongsi.includes('彩虹'))">累计缴费金额:{{model.f_cumulative_money}}元</span>-->
34
+ <!--<span class="col-sm-3" v-show="!($login.f.f_fengongsi.includes('彩虹'))">未结总金额:{{model.f_unaccounts_money}}元</span>-->
35
+ <!--<span class="col-sm-3" v-show="!($login.f.f_fengongsi.includes('彩虹'))">累计开票金额:{{model.f_cumulative_invoicing}}元</span>-->
36
+ <!--<span class="col-sm-3" v-show="!($login.f.f_fengongsi.includes('彩虹'))">未开票金额:{{model.f_residual_invoicing}}元</span>-->
37
+ </div>
38
+ <div class="col-sm-12">
39
+ <button type="button" v-show="!showfee" class="btn btn-success col-sm-2" @click="load()">刷新</button>
40
+ <button type="button" v-show="!showfee" class="btn btn-warning col-sm-2 pull-right" @click="add()">新增收费</button>
41
+ </div>
42
+ <div class="col-sm-12" style="height: auto">
43
+ <div class="form-inline auto" style="margin-bottom: 5px;">
44
+ </div>
45
+ <div class="col-sm-12 span recordTable" style="margin-top: 10px;">
46
+ <partial-view v-ref:single-load>
47
+ <data-grid :model="model" v-ref:grid>
48
+ <template partial='head'>
49
+ <tr>
50
+ <th><nobr>序号</nobr></th>
51
+ <th><nobr>收费金额(元)</nobr></th>
52
+ <th><nobr>金额大写</nobr></th>
53
+ <th><nobr>付款方式</nobr></th>
54
+ <th><nobr>缴费状态</nobr></th>
55
+ <th><nobr>收费人员</nobr></th>
56
+ <th><nobr>收费项目</nobr></th>
57
+ <!--<th><nobr>票据类型</nobr></th>-->
58
+ <!--<th><nobr>发票号码</nobr></th>-->
59
+ <!--<th><nobr>是否冲正</nobr></th>-->
60
+ <!--<th><nobr>冲正发票号</nobr></th>-->
61
+ <th><nobr>日期</nobr></th>
62
+ <th><nobr>备注</nobr></th>
63
+ <th v-show="!$parent.$parent.$parent.showfee">操作</th>
64
+ </tr>
65
+ </template>
66
+ <template partial='body'>
67
+ <td style="text-align: center">{{$index+1}}</td>
68
+ <td style="text-align: center">{{row.f_charge_money}}</td>
69
+ <td style="text-align: center">{{row.f_amount_words}}</td>
70
+ <td style="text-align: center">{{row.f_payment_method}}</td>
71
+ <td style="text-align: center">{{row.f_charging_status}}</td>
72
+ <td style="text-align: center">{{row.f_charge_collectors}}</td>
73
+ <td style="text-align: center">{{row.f_charge_item}}</td>
74
+ <!--<td style="text-align: center">{{row.f_bill_style}}</td>-->
75
+ <!--<td style="text-align: center">{{row.f_invoice_num}}</td>-->
76
+ <!--<td style="text-align: center">{{row.f_is_correct}}</td>-->
77
+ <!--<td style="text-align: center">{{row.f_correct_num}}</td>-->
78
+ <td style="text-align: center">{{row.f_charge_date}}</td>
79
+ <td style="text-align: center">{{row.f_charge_remarks}}</td>
80
+ <td class="flex-around" v-show="!$parent.$parent.$parent.showfee">
81
+ <!--<button v-show="false" type="button" name="button" class="btn btn-link"-->
82
+ <!--@click.stop="$parent.$parent.$parent.tomakeup(row)">补开票据-->
83
+ <!--</button>-->
84
+ <!--<button v-if="(row.f_invoice_num !== '' && row.f_invoice_num !== null )||( row.f_correct_num !== '' && row.f_correct_num !== null)" type="button" name="button" class="btn btn-link"-->
85
+ <!--@click.stop="$parent.$parent.$parent.seeeticket(row)">查看票据-->
86
+ <!--</button>-->
87
+ <button type="button" name="button" class="btn btn-link"
88
+ @click.stop="$parent.$parent.$parent.tovoid(row)" v-if="row.f_charging_status=='有效'">作废
89
+ </button>
90
+ </td>
91
+ </template>
92
+ </data-grid>
93
+ </partial-view>
94
+ </div>
95
+ </div>
96
+
97
+ <!--<div class="form-group col-sm-12">-->
98
+ <!--<div class="col-sm-2">-->
99
+ <!--<label class="control-label col-sm-12">收费备注:</label>-->
100
+ <!--</div>-->
101
+ <!--<div class="col-sm-10">-->
102
+ <!--<textarea class="form-control" rows="3" v-model="model.f_payfee_remarks"></textarea>-->
103
+ <!--</div>-->
104
+ <!--</div>-->
105
+ <!--<div class="form-group col-sm-12">-->
106
+ <!--<div class="col-sm-6">-->
107
+ <!--<label class="control-label col-sm-4">分公司:</label>-->
108
+ <!--<div class="col-sm-8">-->
109
+ <!--<input class="form-control" type="text" v-model="model.f_filiale" disabled>-->
110
+ <!--</div>-->
111
+ <!--</div>-->
112
+ <!--<div class="col-sm-6">-->
113
+ <!--<label class="control-label col-sm-4">操作日期:</label>-->
114
+ <!--<div class="col-sm-8">-->
115
+ <!--<input class="form-control" type="text" v-model="model.f_payfee_date" disabled>-->
116
+ <!--</div>-->
117
+ <!--</div>-->
118
+ <!--</div>-->
119
+ <!--<div class="form-group col-sm-12">-->
120
+ <!--<div class="col-sm-6">-->
121
+ <!--<label class="control-label col-sm-4">部门:</label>-->
122
+ <!--<div class="col-sm-8">-->
123
+ <!--<input class="form-control" type="text" v-model="model.f_payfee_department" disabled>-->
124
+ <!--</div>-->
125
+ <!--</div>-->
126
+ <!--<div class="col-sm-6">-->
127
+ <!--<label class="control-label col-sm-4">操作人:</label>-->
128
+ <!--<div class="col-sm-8">-->
129
+ <!--<input class="form-control" type="text" v-model="model.f_payfee_operator" disabled>-->
130
+ <!--</div>-->
131
+ <!--</div>-->
132
+ <!--</div>-->
133
+
134
+
135
+ <!-- <div class="from-group col-sm-12">
136
+ <center>
137
+ <button type="button" @click="goback()" class="btn btn-primary" style="width:80px; margin-left:50px;"
138
+ :disabled="$v.invalid">
139
+ 保存
140
+ </button>
141
+ <button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:50px;">
142
+ 撤销
143
+ </button>
144
+ </center>
145
+ </div>-->
146
+ <modal :show.sync="showpay" v-ref:modal backdrop="false">
147
+ <header slot="modal-header" class="modal-header">
148
+ <button type="button" class="close" @click="close"><span>&times;</span></button>
149
+ <h4 class="modal-title">新增收费</h4>
150
+ </header>
151
+ <article slot="modal-body" class="modal-body">
152
+ <div v-if="showpay">
153
+ <div class="from-group">
154
+ <label>合同金额(元)</label>
155
+ <input type="text" class="form-control" v-model="model.f_contract_money" readonly>
156
+ </div>
157
+ <!--<div class="from-group">-->
158
+ <!--<label>累计缴费金额(元)</label>-->
159
+ <!--<input type="text" class="form-control" v-model="model.f_cumulative_money" readonly>-->
160
+ <!--</div>-->
161
+ <!--<div class="from-group">-->
162
+ <!--<label>未结总金额(元)</label>-->
163
+ <!--<input type="text" class="form-control" v-model="model.f_unaccounts_money" readonly>-->
164
+ <!--</div>-->
165
+ <div class="from-group">
166
+ <label>金额(元)</label>
167
+ <input type="text" :placeholder=model.f_unaccounts_money class="form-control"
168
+ v-model="addItem.f_charge_money" @blur="check()">
169
+ </div>
170
+ <div class="from-group">
171
+ <label>收费项目</label>
172
+ <input-select v-model="addItem.f_charge_item" :options='chargeitems' :value.sync="addItem.f_charge_item" :valueSingle="true"></input-select>
173
+ </div>
174
+ <!--<div class="from-group">-->
175
+ <!--<label>票据类型</label>-->
176
+ <!--<input-select v-model="addItem.f_bill_style" :options='billstyles' :value.sync="addItem.f_bill_style" :valueSingle="true"></input-select>-->
177
+ <!--</div>-->
178
+ <div class="from-group">
179
+ <label>付款方式</label>
180
+ <input-select v-model="addItem.f_payment_method" :options='paymenttypes' :value.sync="addItem.f_payment_method" :valueSingle="true"></input-select>
181
+ </div>
182
+ <div class="from-group">
183
+ <label>金额大写</label>
184
+ <input type="text" class="form-control" v-model="getCapital" readonly>
185
+ </div>
186
+ <!--<div class="from-group">-->
187
+ <!--<label>缴费类型</label>-->
188
+
189
+ <!--<v-select :options="f_payment_type"-->
190
+ <!--v-model="addItem.f_payment_typed" :value.sync="addItem.f_payment_typed" close-on-select>-->
191
+ <!--</v-select>-->
192
+ <!--</div>-->
193
+ <div class="from-group" v-show = "false">
194
+ <label>交费日期</label>
195
+ <div>
196
+ <datepicker width="600.76px;"
197
+ disabled = "disabled"
198
+ :value.sync="addItem.f_charge_date"
199
+ :format="'yyyy-MM-dd'"
200
+ v-model="addItem.f_charge_date" readonly="readonly"
201
+ :show-reset-button="reset">
202
+ </datepicker>
203
+ </div>
204
+ </div>
205
+
206
+
207
+ <div class="from-group">
208
+ <label>备注</label>
209
+ <input type="text" class="form-control" v-model="addItem.f_charge_remarks">
210
+ <!--<input-select :value.sync="addItem.f_charge_remarks" v-model="addItem.f_charge_remarks"-->
211
+ <!--:options='feeoptions' @change="change" close-on-select></input-select>-->
212
+ </div>
213
+ </div>
214
+ </article>
215
+ <footer slot="modal-footer" class="modal-footer">
216
+ <button v-show="showpay" type="button" class="btn btn-default" @click='close'>取消</button>
217
+ <button v-show="showpay" type="button" class="btn btn-success" @click='confirm'>确认</button>
218
+ </footer>
219
+ </modal>
220
+ <modal :show.sync="showbuyerinfo" v-ref:modal backdrop="false">
221
+
222
+ <header slot="modal-header" class="modal-header">
223
+ <button type="button" class="close" @click="closebuyerinfo"><span>&times;</span></button>
224
+ <h4 class="modal-title">打印电子发票,请请选择购货方信息</h4>
225
+ </header>
226
+ <article slot="modal-body" class="modal-body">
227
+ <div v-if="showbuyerinfo">
228
+
229
+ <div class="col-sm-12 span recordTable" style="margin-top: 10px;min-height: 350px">
230
+ <partial-view v-ref:single-load>
231
+ <data-grid :model="buyerinfo" v-ref:grid>
232
+ <template partial='head'>
233
+ <tr>
234
+ <th>序号</th>
235
+ <th>购货方名称</th>
236
+ <th>购货方纳税人识别号</th>
237
+ <th>购货方地址、电话</th>
238
+ <th>购货方开户行及账号</th>
239
+ <th>购货方电子邮箱</th>
240
+ <th>操作</th>
241
+ </tr>
242
+ </template>
243
+ <template partial='body'>
244
+ <td style="text-align: center">{{$index+1}}</td>
245
+ <td style="text-align: center">{{row.f_buyer_name}}</td>
246
+ <td style="text-align: center">{{row.f_buyer_identify}}</td>
247
+ <td style="text-align: center">{{row.f_buyer_addphone}}</td>
248
+ <td style="text-align: center">{{row.f_buyer_bank}}</td>
249
+ <td style="text-align: center">{{row.f_buyer_email}}</td>
250
+ <td style="text-align: center" >
251
+ <button type="button" class="btn btn-success" @click='$parent.$parent.$parent.$parent.confirmbuyerinfo(row)'>选择</button>
252
+ </td>
253
+ </template>
254
+ </data-grid>
255
+ </partial-view>
256
+ </div>
257
+ </div>
258
+ </article>
259
+ <footer slot="modal-footer" class="modal-footer">
260
+ <button v-show="showbuyerinfo" type="button" class="btn btn-default" @click='closebuyerinfo'>取消</button>
261
+
262
+ </footer>
263
+
264
+ </modal>
265
+
266
+ </div>
267
+ </template>
268
+ <script>
269
+ import {HttpResetClass} from 'vue-client'
270
+ import InputAndSelect from "vue-client/src/vue-strap/src/InputAndSelect";
271
+ import { DataModel } from 'vue-client'
272
+
273
+ let gen = function* (self, val) {
274
+ val.f_actualfee_type = val.f_actualfee_type[0]
275
+ val.f_bill_type = val.f_bill_type[0]
276
+ yield self.$resetpost('rs/logic/saveentity', {data: {tablename: 't_apply', parameters: val}})
277
+ delete val.id
278
+ self.$resetpost('rs/logic/saveentity', {data: {tablename: 't_record', parameters: val}})
279
+ .then(() => {
280
+ self.reset()
281
+ })
282
+ }
283
+ export default {
284
+ components: {InputAndSelect},
285
+ title: '报装收费',
286
+ data() {
287
+ return {
288
+ showpay: false, // 新增收费模态框开关
289
+ showbuyerinfo: false, // 新增收费模态框开关
290
+ selectsellid: null, //需要打票收费id
291
+ buyerinfo:{
292
+ id:'',
293
+ f_buyer_name: '',
294
+ f_buyer_identify: '',
295
+ f_buyer_addphone: '',
296
+ f_buyer_bank: '',
297
+ f_buyer_email: '',
298
+ rows: [] // 购货方信息
299
+ },
300
+ addItem: null, // 模态框数据
301
+ model: {
302
+ f_apply_num: '',//报建编号
303
+ f_process_id: '',//流程ID
304
+ f_payments: '',//首付
305
+ f_pro_payment: '',//进度款
306
+ f_end_payment: '',//尾款
307
+ f_additional_payment: '',//追加款
308
+ f_jmhj_cost: '',//减免金额
309
+ subcost: 0, // 剩余付款
310
+ f_total_cost: 0, // 总费用
311
+ f_payfee_operator: '',//操作人
312
+ f_payfee_department: '',//操作部门
313
+ f_filiale: '',//分公司
314
+ f_payfee_date: '',//操作日期
315
+ f_contract_number: '',//合同编号
316
+ f_cumulative_money: '',//累计缴费金额
317
+ f_budget_money: '',//应交金额
318
+ f_contract_money: '',//合同金额
319
+ f_unaccounts_money: '',//未结总金额
320
+ f_cumulative_invoicing: '',//--累计开票金额--
321
+ f_residual_invoicing: '',//剩余开票金额
322
+ f_main_contract_num: 0,//主合同编号
323
+ rows: [] // 付费数据数组
324
+ },
325
+ f_payment_type: [
326
+ {label: '分期', value: '分期'},
327
+ {label: '一次付清', value: '一次付清'}
328
+ ],
329
+ chargemoney:0,
330
+ chargeitems: this.$appdata.getParam('收费项目'),
331
+ billstyles: this.$appdata.getParam('票据类型'),
332
+ paymenttypes: this.$appdata.getParam('付款方式'),
333
+ bill: '' // 票数据
334
+ }
335
+ },
336
+ props: ['infee', 'showfee'],
337
+ ready() {
338
+ this.load() // 初始化数据
339
+ // console.log('this.model',this.model)
340
+ // this.model.f_payfee_operator = this.$login.f.name
341
+ // this.model.f_payfee_department = this.$login.f.f_parentname
342
+ // this.model.f_filiale = this.$login.f.f_fengongsi
343
+ // this.model.f_payfee_date = this.$login.toStandardDateString()
344
+ // this.infee.f_actualfee_type = [this.infee.f_actualfee_type ? this.infee.f_actualfee_type : '']
345
+ // this.infee.f_bill_type = [this.infee.f_bill_type ? this.infee.f_bill_type : '']
346
+ // this.model = Object.assign({}, this.model, this.infee)
347
+ // this.model.f_actualfee = '0'
348
+ // this.model.f_actualfee_type = '现金缴费'
349
+ // delete this.model.id
350
+ },
351
+ methods: {
352
+ async printbill (sellid) {
353
+ let result = await this.$resetpost('rs/report/billReport',{data: {condition:`f_sell_id = ${sellid}`}}, {resolveMsg: null, rejectMsg: "提取数据出错,请重试!"})
354
+ this.bill = result.data
355
+ this.$nextTick(()=>{
356
+ this.$refs.reportprint.print()
357
+ })
358
+ },
359
+ confirmbuyerinfo (args) {
360
+ let drawbilldata = {
361
+ sellid : this.selectsellid,
362
+ buyerid : args.id,
363
+ operator: this.$login.f.name
364
+ }
365
+ this.closebuyerinfo()
366
+ this.$resetpost('rs/logic/applyDrawBill', {data: drawbilldata}, {resolveMsg: null, rejectMsg: "开发票失败"})
367
+ .then((res) => {
368
+ if (res.data.status === 200){
369
+ this.$showAlert('申请开具增值税电子发票成功,请稍后到报建功能中【报建收费】中查看电子发票', 'success',5000)
370
+ /*let n = 0
371
+ var id = setInterval(async ()=>{
372
+ if(n>=3){
373
+ this.$showMessage('电子票延迟,请稍后查看!')
374
+ clearInterval(id)
375
+ }
376
+ if (this.seeeticket(res.data) === 'success'){
377
+ clearInterval(id)
378
+ this.load()
379
+ }
380
+ n++
381
+ this.$showAlert('电子发票开票中,请稍后...', 'info',3000)
382
+ },3000)*/
383
+ }else {
384
+ this.$showAlert('电子发票开票失败,失败代码为:' + res.data.status , 'warning',3000)
385
+ }
386
+ })
387
+ },
388
+ // 打印信息
389
+ async printFee () {
390
+ // 将所有null转为空字符串
391
+ let printdata = this.model
392
+ for (var k in printdata) {
393
+ if (printdata[k] == null){
394
+ printdata[k] = ''
395
+ }
396
+ }
397
+ let res = await this.$resetpost('rs/report/printFee',{data: printdata}, {resolveMsg: null, rejectMsg: "提取数据出错,请重试!"})
398
+ this.bill = res.data
399
+ this.$nextTick(()=>{
400
+ this.$refs.reportprint.print()
401
+ })
402
+ },
403
+ // 输入金额校验
404
+ check() {
405
+ console.log('check')
406
+ let re = /^[+-]?\d+(\.\d+)?$/ //判断字符串是否为数字
407
+ if (!this.addItem.f_charge_money) {//判断缴费金额是否为空
408
+ console.log('check1')
409
+ this.addItem.f_charge_money = this.model.f_unaccounts_money
410
+ } else {
411
+ if (!re.test(this.addItem.f_charge_money)) {
412
+ this.$showMessage("请输入数字")
413
+ this.addItem.f_charge_money = ''
414
+ return false
415
+ }
416
+ }
417
+
418
+
419
+ return true
420
+ },
421
+ change() {
422
+ // 解决模态框数据不刷新的问题
423
+ if (this.addItem.f_charge_remarks === '开户费') {
424
+ this.addItem.f_charge_money = this.infee.f_account_cost ? this.infee.f_account_cost : 0
425
+ }
426
+ if (this.addItem.f_charge_remarks === '入户安装费') {
427
+ this.addItem.f_charge_money = this.infee.f_construction_cost ? this.infee.f_construction_cost : 0
428
+ }
429
+ if (this.addItem.f_charge_remarks === '材料费') {
430
+ this.addItem.f_charge_money = this.infee.f_material_cost ? this.infee.f_material_cost : 0
431
+ }
432
+ if (this.addItem.f_charge_remarks === '人工费') {
433
+ this.addItem.f_charge_money = this.infee.f_labor_cost ? this.infee.f_labor_cost : 0
434
+ }
435
+ if (this.addItem.f_charge_remarks === '改管费') {
436
+ this.addItem.f_charge_money = this.infee.f_change_pipeline_cost ? this.infee.f_change_pipeline_cost : 0
437
+ }
438
+ if (this.addItem.f_charge_remarks === '设备安装费') {
439
+ this.addItem.f_charge_money = this.infee.f_sbaz_cost ? this.infee.f_sbaz_cost : 0
440
+ }
441
+ },
442
+ // 小写转换大写
443
+ smalltoBIG(n) {
444
+ let fraction = ['角', '分'];
445
+ let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
446
+ let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
447
+ let head = n < 0 ? '欠' : '';
448
+ n = Math.abs(n);
449
+
450
+ let s = '';
451
+
452
+ for (var i = 0; i < fraction.length; i++) {
453
+ s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
454
+ }
455
+ s = s || '整';
456
+ n = Math.floor(n);
457
+
458
+ for (var i = 0; i < unit[0].length && n > 0; i++) {
459
+ let p = '';
460
+ for (var j = 0; j < unit[1].length && n > 0; j++) {
461
+ p = digit[n % 10] + unit[1][j] + p;
462
+ n = Math.floor(n / 10);
463
+ }
464
+ s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
465
+ }
466
+ return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
467
+ },
468
+ //新增收费 开启模态框
469
+ add() {
470
+ this.addItem = {}
471
+ if(this.infee.f_pay_type){
472
+ // this.paymenttypes= [{label: this.infee.f_pay_type, value: this.infee.f_pay_type}, ...this.$appdata.getParam('付款方式'),]
473
+ this.addItem.f_payment_method = ''
474
+ this.addItem.f_payment_method = this.infee.f_pay_type
475
+ }
476
+ this.showpay = true
477
+ },
478
+ // 关闭模态框
479
+ close() {
480
+ this.showpay = false
481
+ this.addItem = null
482
+ },
483
+ // 关闭模态框
484
+ closebuyerinfo() {
485
+ this.showbuyerinfo = false
486
+ this.selectsellid = null
487
+ },
488
+ // 模态框确定按钮保存数据
489
+
490
+ //
491
+ // f_cumulative_money: 0,//累计缴费金额
492
+ // f_unaccounts_money: '',//未结总金额
493
+ // f_cumulative_invoicing: '',//--累计开票金额--
494
+ // f_residual_invoicing: '',//剩余开票金额
495
+ async confirm() {
496
+ let flag = this.check()
497
+ if (!flag) {
498
+ return
499
+ }
500
+ console.log('f_charge_money' + Number(this.addItem.f_charge_money))
501
+ console.log('f_unaccounts_money' + Number(this.model.f_unaccounts_money))
502
+
503
+ // if (Number(this.addItem.f_charge_money) > Number(this.model.f_unaccounts_money)) {
504
+ // this.$showMessage("缴费金额不能大于剩余金额")
505
+ // } else
506
+ if (this.addItem.f_charge_money == 0) {
507
+ this.$showMessage("不能缴费0元")
508
+ } else {
509
+ //获取购货方信息
510
+ // http = new HttpResetClass()
511
+ // data = {
512
+ // tablename: 't_buyer_info',
513
+ // condition: `f_process_id = '${this.infee.f_process_id}' and f_apply_num = '${this.infee.f_apply_num}'`
514
+ // }
515
+ // let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取购货方信息失败'})
516
+ // this.buyerinfo.rows = res.data
517
+ // if (this.buyerinfo.rows.length < 1 && this.addItem.f_bill_style === '增值税电子发票' && this.$appdata.getSingleValue('默认打印票据') === '是'){
518
+ // this.$showAlert('未找到购买方信息,请去报建功能"购买方信息"中完善购买方信息后再收费','info',2000)
519
+ // return
520
+ // }
521
+
522
+ // 累计缴费金额
523
+ let flag1 = this.accAdd(Number(this.addItem.f_charge_money), Number(this.model.f_cumulative_money))
524
+ // 未结金额
525
+ let flag2 = this.accSub(Number(this.model.f_unaccounts_money), Number(this.addItem.f_charge_money))
526
+
527
+
528
+ if (this.addItem.f_payment_typed == '') {
529
+ this.addItem.f_payment_typed = '分期'
530
+ console.log('为空')
531
+ }
532
+ let http = new HttpResetClass()
533
+
534
+ // this.addItem.f_charge_money = this.addItem.f_charge_money
535
+ // this.addItem.f_amount_words = this.addItem.f_amount_words
536
+ // this.addItem.f_payment_type = this.addItem.f_payment_typed
537
+ this.addItem.f_charge_collectors = this.$login.f.name
538
+ // this.addItem.f_charge_date = this.addItem.f_charge_date
539
+ // this.addItem.f_charge_remarks = this.addItem.f_charge_remarks
540
+ this.addItem.f_filiale = this.$login.f.f_fengongsi
541
+ this.addItem.f_process_id = this.infee.f_process_id
542
+ this.addItem.f_apply_num = this.infee.f_apply_num
543
+ this.model.rows.push(this.addItem)
544
+ this.addItem.f_charging_status = '有效'
545
+ this.addItem.f_is_correct = '否'
546
+ let chargemoney= this.addItem.f_charge_money
547
+ let chargeitem = this.addItem.f_f_charge_item
548
+ let chargeremarks = this.addItem.f_charge_remarks?this.addItem.f_charge_remarks:''
549
+ let chargebillstyle = this.addItem.f_bill_style
550
+ this.chargemoney=this.addItem.f_charge_money
551
+ let data = {
552
+ tablename: 't_charge_record',
553
+ parameters: this.addItem
554
+ }
555
+ // 生成收费记录的id
556
+ let sellid = ''
557
+ await http.load('POST', 'rs/logic/saveentity', {data: data}, {resolveMsg: null, rejectMsg: "添加失败"})
558
+ .then((res) => {
559
+ sellid = res.data.id
560
+ this.close()
561
+ })
562
+
563
+
564
+ data = {
565
+ f_cumulative_money: flag1,
566
+ f_unaccounts_money: flag2,
567
+ f_apply_num: this.infee.f_apply_num
568
+ }
569
+ await http.load('POST', 'rs/logic/updatechargemoney', {data: data}, {resolveMsg: null, rejectMsg: "添加累计金额失败"})
570
+ .then((res) => {
571
+ this.close()
572
+ this.load()
573
+ })
574
+ console.log(this.model.f_cumulative_invoicing)
575
+ console.log(chargemoney)
576
+ console.log(this.model.f_cumulative_invoicing)
577
+ console.log(this.model.f_residual_invoicing)
578
+ if (this.$appdata.getSingleValue('默认打印票据') && this.$appdata.getSingleValue('默认打印票据') === '是'){
579
+ this.$showMessage('是否打票据', ['confirm', 'cancel']).then((res) => {
580
+ if (res === 'confirm') {
581
+ console.log('打印票据')
582
+ if (chargebillstyle === '增值税电子发票') {
583
+ this.selectsellid = sellid
584
+ this.showbuyerinfo = true
585
+
586
+ }else {
587
+ this.printbill(sellid)
588
+ }
589
+ } else {
590
+ this.goback()
591
+ }
592
+ })
593
+ }
594
+ }
595
+ },
596
+ async invoice(val){
597
+ console.log('打印票据')
598
+ if (val.f_bill_style === '增值税电子发票') {
599
+ this.selectsellid = val.id
600
+ this.showbuyerinfo = true
601
+ /*this.$resetpost('rs/logic/applyDrawBill', {data: {sellid:val.id,operator:this.$login.f.name}}, {resolveMsg: null, rejectMsg: "开发票失败"})
602
+ .then((res) => {
603
+
604
+ if (res.data.status === 200){
605
+ let n = 0
606
+ var id = setInterval(async ()=>{
607
+ if(n>=3){
608
+ this.$showMessage('电子票延迟,请稍后在票据管理中查看!')
609
+ clearInterval(id)
610
+ }
611
+ if (this.seeeticket(res.data) === 'success'){
612
+ clearInterval(id)
613
+ this.load()
614
+ }
615
+ n++
616
+ this.$showAlert('电子发票开票中,请稍后...', 'info',3000)
617
+ },3000)
618
+ }else {
619
+ this.$showAlert('电子发票开票失败', 'warning',3000)
620
+ }
621
+
622
+ })*/
623
+ }
624
+ /*let http = new HttpResetClass()
625
+ let invoiceInterface = true//开发票接口的结果
626
+ let flag1 = this.accAdd(Number(this.chargemoney), Number(this.model.f_cumulative_invoicing))
627
+ let flag2 = this.accSub(Number(this.model.f_residual_invoicing), Number(this.chargemoney))
628
+
629
+ if (invoiceInterface) {
630
+ let data = {
631
+ f_cumulative_invoicing: flag1,
632
+ f_residual_invoicing: flag2,
633
+ f_apply_num: this.infee.f_apply_num,
634
+ f_invoice_num: '123'//发票号码,
635
+ }
636
+ await http.load('POST', 'rs/logic/updateinvoicemoney', {data: data}, {
637
+ resolveMsg: null,
638
+ rejectMsg: "修改开票金额失败"
639
+ })
640
+ .then((res) => {
641
+ this.close()
642
+ this.load()
643
+ })
644
+
645
+
646
+ } else {
647
+ this.$showMessage('开发票失败')
648
+ }*/
649
+ },
650
+
651
+ goback() {
652
+ // this.$dispatch('hiddenbtn')
653
+ // this.showview = false
654
+ },
655
+ async tovoid(val) {
656
+ if (val.f_is_correct==='是' || val.f_charging_status !== '有效' || val.f_is_correct==='冲正中') {
657
+ this.$showMessage('已冲正或正在冲正,不能操作!')
658
+ } else {
659
+ this.$resetpost('rs/logic/acdb', {data: {sellid:val.id,loginUser:this.$login.f}}, {
660
+ resolveMsg: null,
661
+ rejectMsg: '冲正失败'
662
+ }).then((res) => {
663
+ if (res.data.status === 200 ){
664
+ if (val.f_bill_style === '增值税电子发票') {
665
+ this.$showAlert('申请增值税电子发票冲正成功,请稍后到报建功能中【报建收费】中查看电子发票', 'success',5000)
666
+ /*let n = 0
667
+ var id = setInterval(async ()=>{
668
+ if(n>=3){
669
+ this.$showMessage('电子票延迟,请稍后查看!')
670
+ clearInterval(id)
671
+ }
672
+ if (this.seeeticket(res.data) === 'success'){
673
+ clearInterval(id)
674
+ this.load()
675
+ }
676
+ n++
677
+ this.$showAlert('电子发票开票中,请稍后...', 'info',3000)
678
+ },3000)*/
679
+ }else {
680
+ this.$showAlert('冲正成功','success',2000)
681
+ }
682
+ this.load()
683
+ } else {
684
+ this.$showAlert('冲正失败', 'warning',5000)
685
+ }
686
+ })
687
+
688
+ /*
689
+ let correctionInterface = true//冲正接口的结果
690
+ if (correctionInterface) {
691
+ let http = new HttpResetClass()
692
+ let data = {
693
+ tablename: 't_charge_record',
694
+ condition: `id = '${val.id}'`
695
+ }
696
+ let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
697
+ resolveMsg: null,
698
+ rejectMsg: '获取付款数据失败'
699
+ })
700
+ let flag1 = this.accSub(Number(this.model.f_cumulative_money), Number(val.f_charge_money)) //累计缴费金额
701
+ let flag2 = this.accAdd(Number(this.model.f_unaccounts_money), Number(val.f_charge_money))//未结总金额
702
+ let flag3 = Number(this.model.f_cumulative_invoicing)//--累计开票金额--
703
+ let flag4 = Number(this.model.f_residual_invoicing)//剩余开票金额
704
+ if (res.data[0].f_invoice_num) {
705
+ flag3 = this.accSub(Number(this.model.f_cumulative_invoicing), Number(val.f_charge_money))
706
+ flag4 = this.accAdd(Number(this.model.f_residual_invoicing), Number(val.f_charge_money))
707
+ }
708
+ data = {
709
+ f_cumulative_money: flag1,
710
+ f_unaccounts_money: flag2,
711
+ f_cumulative_invoicing: flag3,
712
+ f_residual_invoicing: flag4,
713
+ f_apply_num: this.infee.f_apply_num,
714
+ id: val.id
715
+ }
716
+ this.$resetpost('rs/logic/tovoidcharge', data, {resolveMsg: '冲正成功', rejectMsg: '冲正失败'}).then((res) => {
717
+ this.load()
718
+ })
719
+ } else {
720
+ this.$showMessage('冲正接口调用失败!')
721
+ }*/
722
+ }
723
+ },
724
+ tomakeup(val) {
725
+ if (val.f_invoice_num ) {
726
+ this.$showMessage('此记录有票据,不能操作!')
727
+ }else{
728
+ this.invoice(val)
729
+ }
730
+ },
731
+ //根据票据流水号查看票据
732
+ async seeeticket(val) {
733
+ console.log('该票据流水号为:',val.f_fpqqlsh)
734
+ 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})
735
+ console.log('eticketData:',eticketData)
736
+ var data = eticketData.data[0]
737
+ if(data.f_bill_url && data.f_bill_url != ''){
738
+ console.log(data)
739
+ var auth = data.f_bill_url.split("/")
740
+ console.log("截取",auth)
741
+ var authCode = auth[auth.length-1]
742
+ var url = `https://${auth[2]}/ent-views/fpExtract/get_fapiao.html?pwd=${data.f_url_code}&authCode=${authCode}`
743
+ this.$showAlert('开票成功!', 'success',500)
744
+ window.open(url)
745
+ return 'success'
746
+ }
747
+ return 'fail'
748
+ },
749
+ accSub(arg1, arg2) {
750
+ var r1, r2, m, n;
751
+ try {
752
+ r1 = arg1.toString().split(".")[1].length
753
+ } catch (e) {
754
+ r1 = 0
755
+ }
756
+ try {
757
+ r2 = arg2.toString().split(".")[1].length
758
+ } catch (e) {
759
+ r2 = 0
760
+ }
761
+ m = Math.pow(10, Math.max(r1, r2));
762
+ //last modify by deeka
763
+ //动态控制精度长度
764
+ n = (r1 >= r2) ? r1 : r2;
765
+ return ((arg1 * m - arg2 * m) / m).toFixed(n);
766
+ },
767
+ reset() {
768
+ this.$dispatch('close')
769
+ this.$dispatch('selfsearch')
770
+ },
771
+ accAdd(arg1, arg2) {
772
+ var r1, r2, m;
773
+ try {
774
+ r1 = arg1.toString().split(".")[1].length
775
+ } catch (e) {
776
+ r1 = 0
777
+ }
778
+ try {
779
+ r2 = arg2.toString().split(".")[1].length
780
+ } catch (e) {
781
+ r2 = 0
782
+ }
783
+ m = Math.pow(10, Math.max(r1, r2))
784
+ return (arg1 * m + arg2 * m) / m
785
+ },
786
+
787
+ // 获取数据
788
+ async load() {
789
+ let http = new HttpResetClass()
790
+ let data = {
791
+ tablename: 't_apply',
792
+ condition: `f_process_id = '${this.infee.f_process_id}'`
793
+ //
794
+ }
795
+ //获取报建信息
796
+ let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取报建信息失败'})
797
+ Object.assign(this.model,this.model, res.data[0])
798
+ data = {
799
+ tablename: 't_charge_record',
800
+ condition: `f_process_id = '${this.infee.f_process_id}'`
801
+ }
802
+ //获取付款详情信息
803
+ res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取付款数据失败'})
804
+ // 去除付款时间的时分秒
805
+ for (var i = 0; i < res.data.length; i++) {
806
+ res.data[i].f_charge_date = res.data[i].f_charge_date.substring(0, 11)
807
+ }
808
+ this.model.rows = res.data
809
+
810
+ //获取购货方信息
811
+ // data = {
812
+ // tablename: 't_buyer_info',
813
+ // condition: `f_process_id = '${this.infee.f_process_id}' and f_apply_num = '${this.infee.f_apply_num}'`
814
+ // }
815
+ // res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取购货方信息失败'})
816
+ // this.buyerinfo.rows = res.data
817
+
818
+ /*
819
+ data = {
820
+ tablename: 't_contract',
821
+ condition: `processid = '${this.infee.f_process_id}'`
822
+ }
823
+
824
+ res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取主合同编号失败'})
825
+ for (var i = 0; i < res.data.length; i++) {
826
+ if (res.data[i].f_contract_number) {
827
+ this.model.f_main_contract_num = res.data[i].f_contract_number
828
+ }
829
+ }
830
+
831
+
832
+ data = {
833
+ tablename: 't_apply',
834
+ condition: `f_apply_num = '${this.infee.f_apply_num}'`
835
+ }
836
+
837
+ res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取累计数据失败'})
838
+ this.model.f_cumulative_money = Number(res.data[0].f_cumulative_money)
839
+ this.model.chargemoney = Number(res.data[0].f_cumulative_money)
840
+ this.model.f_unaccounts_money = Number(res.data[0].f_unaccounts_money)
841
+ this.model.f_cumulative_invoicing = Number(res.data[0].f_cumulative_invoicing)
842
+ this.model.f_residual_invoicing = Number(res.data[0].f_residual_invoicing)*/
843
+ }
844
+ // confirm() {
845
+ // // this.model.f_change_pipeline_cost = this.model.f_change_pipeline_cost
846
+ // // this.model.f_material_cost = this.model.f_material_cost
847
+ // // this.model.f_labor_cost = this.model.f_labor_cost
848
+ // // this.model.f_sbaz_cost = this.model.f_sbaz_cost
849
+ // // this.model.f_construction_cost = this.model.f_construction_cost
850
+ // // this.model.f_total_cost = this.model.f_total_cost
851
+ //
852
+ // this.model.f_fee = this.model.f_actualfee
853
+ // this.model.f_actualfee = Number(this.infee.f_actualfee) + Number(this.model.f_actualfee)
854
+ // this.model.f_paytype = this.model.f_actualfee_type
855
+ // this.model.f_payfeedate = this.model.f_payfee_date
856
+ // this.model.f_payer = this.model.f_actualfee_user
857
+ // this.model.applyid = this.model.id
858
+ // this.model.f_state = '已交款'
859
+ // this.model.f_operator = this.model.f_payfee_operator
860
+ // this.model.f_date = this.model.f_payfee_date
861
+ // this.model.f_department = this.model.f_payfee_department
862
+ // // this.model.f_filiale = this.model.f_filiale
863
+ // this.model.f_operat_type = '报建收费'
864
+ // this.model.f_state = '有效'
865
+ // this.model.f_describe = this.model.f_user_name + '缴费' + this.model.f_fee
866
+ // console.log('输出model', this.model)
867
+ // let getGen = gen(this, this.model)
868
+ // co(getGen)
869
+ // this.$dispatch('searchcard')
870
+ // this.$dispatch('hiddenbtn')
871
+ // },
872
+ // reset() {
873
+ // this.$dispatch('hiddenbtn')
874
+ // // this.$dispatch('hiddenbtn')
875
+ // }
876
+ // },
877
+
878
+ },
879
+ computed: {
880
+ // 计算大写
881
+ getCapital() {
882
+ if (this.addItem.f_charge_money) {
883
+ this.addItem.f_amount_words = this.smalltoBIG(Number(this.addItem.f_charge_money))
884
+ }
885
+
886
+ return this.addItem.f_amount_words
887
+ },
888
+ subcost() {
889
+ let temp = Number(this.model.f_total_cost)
890
+ let temp2 = 0
891
+ for (var i = 0; i < this.model.rows.length; i++) {
892
+ temp2 += Number(this.model.rows[i].f_fee)
893
+ }
894
+ this.model.f_cumulative_money = Math.round(temp2 * 100) / 100
895
+ this.model.subcost = Math.round((temp - temp2) * 100) / 100
896
+ if (this.model.f_cumulative_money && this.model.f_jmhj_cost) {
897
+ temp = Math.round((temp - Number(this.model.f_jmhj_cost)) * 100) / 100
898
+ }
899
+ this.model.subcost = Math.round((temp - temp2) * 100) / 100
900
+ return this.model.subcost
901
+ },
902
+ // totalcost () {
903
+ // this.model.f_total_cost = Number(this.model.f_construction_cost) + Number(this.model.f_material_cost)
904
+ // + Number(this.model.f_labor_cost) + Number(this.model.f_change_pipeline_cost)
905
+ // + Number(this.model.f_sbaz_cost) - Number(this.model.f_jmhj_cost)
906
+ // return this.model.f_total_cost
907
+ // },
908
+ aaa() {
909
+ this.model.f_jmhj_cost = Number(this.model.f_total_cost) - Number(this.model.f_actualfee)
910
+ return this.model.f_jmhj_cost
911
+ },
912
+ feeoptions() {
913
+ return this.$appdata.getParam('费用类型')
914
+ },
915
+ dayin() {
916
+ return this.$appdata.getParam('打印格式')
917
+ },
918
+ jiaofei() {
919
+ return this.$appdata.getParam('付款方式')
920
+ // return [{label: '全部', value: ''}, ...AppData.getParam('缴费类型')]
921
+ }
922
+ },
923
+ watch : {
924
+ 'infee' (val) {
925
+ this.load()
926
+ }
927
+ },
928
+ }
929
+ </script>