apply-clients 5.0.35-5 → 5.0.35-52

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 (84) hide show
  1. package/.eslintrc.js +16 -16
  2. package/package.json +3 -3
  3. package/src/AndroidApp.vue +28 -28
  4. package/src/android.js +1 -1
  5. package/src/apply.js +14 -1
  6. package/src/assets//347/224/250/346/210/267/345/234/260/345/235/200.png +0 -0
  7. package/src/assets//347/224/250/346/210/267/345/247/223/345/220/215.png +0 -0
  8. package/src/assets//347/224/250/346/210/267/347/224/265/350/257/235.png +0 -0
  9. package/src/components/app_apply/ApplyDownList.vue +168 -164
  10. package/src/components/app_apply/ApplyInfo.vue +56 -56
  11. package/src/components/app_apply/ApplyListUpload.vue +268 -268
  12. package/src/components/app_apply/ApplyToDoList.vue +2660 -10
  13. package/src/components/app_apply/Gongcheng.vue +2836 -0
  14. package/src/components/app_apply/OneToMany.vue +194 -0
  15. package/src/components/app_apply/PlaceControler.vue +299 -256
  16. package/src/components/app_apply/ServiceControl.vue +354 -335
  17. package/src/components/app_apply/ServiceView.vue +383 -383
  18. package/src/components/app_apply/ezhou/FeiMinYongV.vue +109 -109
  19. package/src/components/app_apply/ezhou/FeiMinYongVV.vue +100 -100
  20. package/src/components/app_apply/ezhou/MinYong.vue +92 -92
  21. package/src/components/app_apply/ezhou/ServiceView.vue +790 -620
  22. package/src/components/image/doc.jpg +0 -0
  23. package/src/components/image/dwg.png +0 -0
  24. package/src/components/image/dxf.png +0 -0
  25. package/src/components/image/excel.jpg +0 -0
  26. package/src/components/image/pdf.jpg +0 -0
  27. package/src/components/product/Common/ApplyValidateBill.vue +13 -6
  28. package/src/components/product/Common/PrintBill.vue +3 -2
  29. package/src/components/product/EngineeringManagement/EngineerUpload.vue +304 -0
  30. package/src/components/product/EngineeringManagement/EngineeringManagement.vue +137 -0
  31. package/src/components/product/EngineeringManagement/EngineeringSelect.vue +588 -0
  32. package/src/components/product/EngineeringSupervisory/EngineeringApplyStopInfo.vue +281 -0
  33. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryControl.vue +130 -0
  34. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryList.vue +350 -0
  35. package/src/components/product/Function/InstallInfoSelect.vue +255 -254
  36. package/src/components/product/Function/Service/FunctionServiceControl.vue +37 -1
  37. package/src/components/product/Function/functions/ApplyUpload.vue +556 -0
  38. package/src/components/product/Function/functions/BuyerMessage.vue +512 -512
  39. package/src/components/product/Function/functions/InstallFee.vue +546 -343
  40. package/src/components/product/Process/ExplorationSelect.vue +640 -636
  41. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +2 -5
  42. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +123 -37
  43. package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +85 -0
  44. package/src/components/product/Process/Processes/Service/ServiceControl.vue +268 -19
  45. package/src/components/product/ServiceView.vue +16 -6
  46. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +53 -6
  47. package/src/components/product/Supervisory/SupervisoryList.vue +350 -349
  48. package/src/components/product/applyReport/ApplyReport.vue +205 -0
  49. package/src/components/product/applyReport/PrintApplyReport.vue +116 -0
  50. package/src/components/product/stopInfo/ApplyStopInfo.vue +281 -280
  51. package/src/ezhouAndroid.js +13 -10
  52. package/src/index.js +8 -8
  53. package/src/main.js +1 -1
  54. package/src/plugins/commonService.js +11 -7
  55. package/static/newStyle/clear.png +0 -0
  56. package/static/newStyle/fife.png +0 -0
  57. package/static/newStyle/hidden.png +0 -0
  58. package/static/newStyle/label-clear.png +0 -0
  59. package/static/newStyle/left-img.png +0 -0
  60. package/static/newStyle/list_ok.png +0 -0
  61. package/static/newStyle/login-check.png +0 -0
  62. package/static/newStyle/login-con.png +0 -0
  63. package/static/newStyle/login-do.gif +0 -0
  64. package/static/newStyle/login-f.png +0 -0
  65. package/static/newStyle/login-info.png +0 -0
  66. package/static/newStyle/login-left.png +0 -0
  67. package/static/newStyle/login-org.png +0 -0
  68. package/static/newStyle/login-pwd.png +0 -0
  69. package/static/newStyle/login-user.png +0 -0
  70. package/static/newStyle/loginbg.gif +0 -0
  71. package/static/newStyle/loginbg1280.gif +0 -0
  72. package/static/newStyle/loginbg1366.gif +0 -0
  73. package/static/newStyle/loginbg_1.gif +0 -0
  74. package/static/newStyle/searchin.png +0 -0
  75. package/static/newStyle/searchout.png +0 -0
  76. package/static/newStyle/setting.png +0 -0
  77. package/static/newStyle/setting1.png +0 -0
  78. package/static/newStyle/shirk.png +0 -0
  79. package/static/newStyle/stretch_bottom.png +0 -0
  80. package/static/newStyle/stretch_left.png +0 -0
  81. package/static/newStyle/stretch_right.png +0 -0
  82. package/static/newStyle/stretch_top.png +0 -0
  83. package/static/newStyle/system-off.png +0 -0
  84. package/static/newStyle//350/261/252/344/275/263/347/207/203/346/260/224.png +0 -0
@@ -1,80 +1,106 @@
1
1
  <template>
2
- <div class="col-sm-12 auto select-overspread" >
2
+ <div class="col-sm-12 auto select-overspread">
3
3
  <div class="auto select-overspread">
4
4
  <div class="panel panel-info">
5
5
  <div class="panel-heading auto">
6
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>
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>
12
+ <nobr>序号</nobr>
13
+ </th>
14
+ <th>
15
+ <nobr>用户</nobr>
16
+ </th>
17
+ <th>
18
+ <nobr>地址</nobr>
19
+ </th>
20
+ <th>
21
+ <nobr>收费金额(元)</nobr>
22
+ </th>
23
+ <th>
24
+ <nobr>收费人员</nobr>
25
+ </th>
26
+ <th>
27
+ <nobr>日期</nobr>
28
+ </th>
29
+ <th>
30
+ <nobr>备注</nobr>
31
+ </th>
32
+ <th>
33
+ <nobr>操作</nobr>
34
+ </th>
35
+ </tr>
36
+ </template>
37
+ <template partial='body'>
38
+ <td style="text-align: center">{{$index+1}}</td>
39
+ <td style="text-align: center">{{row.f_charge_user}}</td>
40
+ <td style="text-align: center">{{row.f_charge_address}}</td>
41
+ <td style="text-align: center">{{row.f_charge_money}}</td>
42
+ <td style="text-align: center">{{row.f_charge_collectors}}</td>
43
+ <td style="text-align: center">{{row.f_charge_date}}</td>
44
+ <td style="text-align: center">{{row.f_charge_remarks}}</td>
45
+ <td style="text-align: center">
46
+ <button class="btn btn-default" @click="$parent.$parent.$parent.tovoid($index)">冲正</button>
47
+ </td>
48
+ </template>
49
+ </data-grid>
50
+ </partial-view>
35
51
  <partial-view v-ref:single-user v-if="isSingleUser">
36
- <data-grid :model="userinfoRow" v-ref:grid >
52
+ <data-grid :model="userinfoRow" v-ref:grid>
37
53
  <template partial='head'>
38
54
  <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>
55
+ <th>
56
+ <nobr>序号</nobr>
57
+ </th>
58
+ <th>
59
+ <nobr>用户名</nobr>
60
+ </th>
61
+ <th>
62
+ <nobr>用户电话</nobr>
63
+ </th>
64
+ <th>
65
+ <nobr>地址</nobr>
66
+ </th>
67
+ <th>
68
+ <nobr>操作</nobr>
69
+ </th>
44
70
  </tr>
45
71
  </template>
46
- <template partial='body' >
72
+ <template partial='body'>
47
73
  <td style="text-align: center">{{$index+1}}</td>
48
- <td style="text-align: center" >{{row.f_user_name}}</td>
74
+ <td style="text-align: center">{{row.f_user_name}}</td>
49
75
  <td style="text-align: center">{{row.f_user_phone}}</td>
50
76
  <td style="text-align: center">{{row.address}}</td>
51
77
  <button type="button" name="button" class="btn btn-link"
52
- @click.stop="$parent.$parent.$parent.getUserinfo($index)">收费
78
+ @click.stop="$parent.$parent.$parent.getUserinfo($index)">收费
53
79
  </button>
54
80
  </template>
55
81
  </data-grid>
56
82
  </partial-view>
57
83
  <form novalidate class="form-horizontal">
58
- <p class="bg-info text-center" style="padding: 10px;"> </p>
84
+ <p class="bg-info text-center" style="padding: 10px;"></p>
59
85
  <p class="bg-info text-center" style="padding: 10px;">收费信息</p>
60
86
  <div class="row" style="margin-top:10px;">
61
87
  <div class="form-input-group col-sm-3">
62
88
  <label for="f_user_name" class="control-label col-sm-2 ">用户名称</label>
63
89
  <div class="col-sm-2">
64
- <input type="text" class="form-control" @blur="getUserinfo" v-model="model.f_user_name" >
90
+ <input type="text" class="form-control" @blur="getUserinfo" v-model="model.f_user_name">
65
91
  </div>
66
92
  </div>
67
93
  <div class="form-input-group col-sm-3">
68
94
  <label for="f_phone" class="control-label col-sm-2 ">联系电话</label>
69
95
  <div class="col-sm-2">
70
- <input type="text" class="form-control" @blur="getUserinfo" v-model="model.f_phone" readonly >
96
+ <input type="text" class="form-control" @blur="getUserinfo" v-model="model.f_phone" readonly>
71
97
 
72
98
  </div>
73
99
  </div>
74
100
  <div class="form-input-group col-sm-6">
75
101
  <label for="f_address" class="control-label col-sm-2 ">地址</label>
76
102
  <div class="col-sm-2">
77
- <input type="text" class="form-control" @blur="getUserinfo" v-model="model.f_address" readonly >
103
+ <input type="text" class="form-control" @blur="getUserinfo" v-model="model.f_address" readonly>
78
104
  </div>
79
105
  </div>
80
106
  </div>
@@ -100,7 +126,8 @@
100
126
  <div class="form-input-group col-sm-3">
101
127
  <label for="f_brand_spec" class="control-label col-sm-2 ">金额(元)</label>
102
128
  <div class="col-sm-2">
103
- <input type="text" class="form-control" :placeholder="0" v-model="model.f_charge_money" disabled="true">
129
+ <input type="text" class="form-control" :placeholder="0" v-model="model.f_charge_money"
130
+ disabled="true">
104
131
  </div>
105
132
  </div>
106
133
  </div>
@@ -145,62 +172,76 @@
145
172
  <div class="form-input-group col-sm-3">
146
173
  <label for="f_brand_spec" class="control-label col-sm-2 ">金额大写(元)</label>
147
174
  <div class="col-sm-2">
148
- <input type="text" class="form-control" v-model="getCapital" readonly>
175
+ <input type="text" class="form-control" v-model="getCapital" readonly>
149
176
  </div>
150
177
  </div>
151
178
  </div>
152
179
  <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;
180
+ <div class="form-input-group col-sm-12">
181
+ <div class="form-input-group col-sm-3">
182
+ <label for="f_charge_item" class="control-label col-sm-2">
183
+ <button class="glyphicon glyphicon-minus btn-danger" v-if="$index>0"
184
+ @click.stop="delItems($index)"></button>&nbsp;&nbsp;&nbsp;
157
185
  <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
186
+ </label>
187
+ <div class="col-sm-2">
188
+ <v-select id="f_charge_item" +$index
161
189
  v-model="f_project_item" width="100%"
162
190
  placeholder='收费项目'
163
191
  :value.sync="row.f_project_item"
164
192
  :options='chargeitems'
165
193
  close-on-select clear-button>
166
194
  </v-select>
167
- </div>
168
195
  </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>
196
+ </div>
197
+ <div class="form-input-group col-sm-3">
198
+ <label for="f_amount" class="control-label col-sm-2">数量:</label>
199
+ <div class="col-sm-2">
200
+ <input class="form-control" style="background-color: white" type="number" v-model="row.f_amount"
201
+ :disabled="isDisable"
202
+ placeholder="数量" :blur="calcmoney(index)">
175
203
  </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"
204
+ </div>
205
+ <div class="form-input-group col-sm-3">
206
+ <label for="f_price" class="control-label col-sm-2">单价:</label>
207
+ <div class="col-sm-2">
208
+ <input class="form-control" style="background-color: white" type="number" v-model="row.f_price"
209
+ :disabled="isDisable"
180
210
  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
211
  </div>
190
212
  </div>
213
+ <div class="form-input-group col-sm-3">
214
+ <label for="f_money" class="control-label col-sm-2">金额:</label>
215
+ <div class="col-sm-2">
216
+ <input class="form-control" style="background-color: white" type="number" v-model="row.f_money"
217
+ :disabled="true"
218
+ placeholder="金额">
219
+ </div>
191
220
  </div>
221
+ </div>
222
+ </div>
192
223
  <div class="row" style="margin-top:10px;">
193
224
  <div class="form-input-group col-sm-8">
194
225
  <label for="f_paytype" class="control-label col-sm-2">备注:</label>
195
226
  <input type="text" class="form-control" v-model="model.f_charge_remarks">
196
227
  </div>
197
228
  </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>
229
+ <apply-validate-bill v-if="hasValidateBill" :show="refresh" :data="model"
230
+ @validate-bill="validateBill"></apply-validate-bill>
231
+ <printbill :show="print" :data='model' :selfclean="selfclean" :bill-config='config' :bill-data='billData'
232
+ v-on:toggle="close" :selfsearch="load" @printok="printok" v-ref:printbill></printbill>
233
+ <printbill :show="printat" :data='model' :selfclean="selfclean" :bill-config='config' :bill-data='billDataantai'
234
+ v-on:toggle="close" :selfsearch="load" @printok="printok" v-ref:printbill></printbill>
235
+ <bjpaper-ticket-bill :show="paperticket" :data='ids' @toggle="closeticket"></bjpaper-ticket-bill>
236
+ <printbill :show="delprint" :data='model' :selfclean="selfclean" :bill-config='config2'
237
+ :bill-data='billData' v-on:toggle="close" :selfsearch="load" @printok="printok"
238
+ v-ref:printbill></printbill>
239
+ <printbill :show="delprintat" :data='model' :selfclean="selfclean" :bill-config='config2'
240
+ :bill-data='billDataantai' v-on:toggle="close" :selfsearch="load" @printok="printok"
241
+ v-ref:printbill></printbill>
202
242
  <div class="row" style="text-align:right;">
203
- <button :readonly="!validateOk" type="button" class="btn btn-success" style="" @click='confirm'>确认</button>
243
+ <button :readonly="!validateOk" type="button" class="btn btn-success" style="" @click='confirm'>确认
244
+ </button>
204
245
  </div>
205
246
  </form>
206
247
  </div>
@@ -208,13 +249,63 @@
208
249
  </div>
209
250
  </div>
210
251
  </div>
252
+ <modal :show.sync="papershow" v-ref:modal large backdrop="false">
253
+ <header slot="modal-header" class="modal-header">
254
+ <h3 style="color:black" class="modal-title">购货方信息</h3>
255
+ </header>
256
+ <article slot="modal-body" class="modal-body">
257
+
258
+ <validator name='v'>
259
+ <form class="form-horizontal select-overspread">
260
+ <div class="row" style="display: flex;justify-content: center;" id='normal-bill'>
261
+ <div class="form-group col-sm-6">
262
+ <label class=" col-sm-2 control-label">购买方名称:</label>
263
+ <input type="text" class="form-control" v-model="paperinfo.f_buy_name" style="width:60%"
264
+ :value.sync="paperinfo.f_buy_name" placeholder="购买方名称"
265
+ >
266
+ </div>
267
+ <div class="form-group col-sm-6">
268
+ <label class=" col-sm-2 control-label">纳税人识别号:</label>
269
+ <input type="text" class="form-control" v-model="paperinfo.f_pay_id" style="width:60%"
270
+ placeholder="纳税人识别号" :value.sync="paperinfo.f_pay_id"
271
+ >
272
+ </div>
273
+ </div>
274
+ <div class="row">
275
+ <div class="form-group col-sm-6">
276
+ <label class=" col-sm-2 control-label">购买方地址电话:</label>
277
+ <input type="text" class="form-control" v-model="paperinfo.f_buy_address" style="width:60%"
278
+ placeholder="购买方地址" :value.sync="paperinfo.f_buy_address"
279
+ >
280
+ </div>
281
+ <div class="form-group col-sm-6">
282
+ <label class=" col-sm-2 control-label">购买方开户行及账号:</label>
283
+ <input type="text" class="form-control" v-model="paperinfo.f_buy_openbank" style="width:60%"
284
+ placeholder="购买方开户行及账号" :value.sync="paperinfo.f_buy_openbank"
285
+ >
286
+ </div>
287
+ <div class="form-group col-sm-6">
288
+ <label class=" col-sm-2 control-label">邮箱:</label>
289
+ <input type="text" class="form-control" v-model="paperinfo.f_email_push" style="width:60%"
290
+ placeholder="邮箱" :value.sync="paperinfo.f_email_push"
291
+ >
292
+ </div>
293
+ </div>
211
294
 
295
+
296
+ </form>
297
+ </validator>
298
+ </article>
299
+ <footer slot="modal-footer" class="modal-footer">
300
+ <button type="button" class="btn btn-default" @click='papaercom()'>确认</button>
301
+ </footer>
302
+ </modal>
212
303
  </template>
213
304
  <script>
214
305
  import {HttpResetClass} from 'vue-client'
215
306
  import InputAndSelect from "vue-client/src/vue-strap/src/InputAndSelect";
216
- import { DataModel } from 'vue-client'
217
- import Vue from "vue";
307
+ import {DataModel} from 'vue-client'
308
+ import commonService from "../../../../plugins/commonService.js";
218
309
 
219
310
  let gen = function* (self, val) {
220
311
  val.f_actualfee_type = val.f_actualfee_type[0]
@@ -226,43 +317,44 @@
226
317
  })
227
318
  }
228
319
  export default {
320
+
229
321
  components: {InputAndSelect},
230
322
  title: '报装收费',
231
323
  data() {
232
324
  return {
233
- billtype:{
234
- name:"收费发票"
235
- },
325
+ billtype: {
326
+ name: "收费发票"
327
+ },
236
328
  isSingleUser: false,
237
- isOne: [{label:'是',value: '是'},{label:'否',value: '否'}],
329
+ isOne: [{label: '是', value: '是'}, {label: '否', value: '否'}],
238
330
  printUserInfo: {
239
- f_user_name:'',
240
- f_phone: '',
331
+ f_user_name: '',
332
+ f_phone: '',
241
333
  f_address: ''
242
334
  },
243
335
  refresh: false,
244
- ifsearch:false,
336
+ ifsearch: false,
245
337
  showpay: false, // 新增收费模态框开关
246
338
  showbuyerinfo: false, // 新增收费模态框开关
247
339
  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: [] // 购货方信息
340
+ buyerinfo: {
341
+ id: '',
342
+ f_buyer_name: '',
343
+ f_buyer_identify: '',
344
+ f_buyer_addphone: '',
345
+ f_buyer_bank: '',
346
+ f_buyer_email: '',
347
+ rows: [] // 购货方信息
256
348
  },
257
349
  model: {
258
350
  f_isone: ['否'],
259
- chargeid:'',
351
+ chargeid: '',
260
352
  f_print: ['普通收据'],
261
- f_bill_type:'普通收据',
262
- f_bill_style:'普通发票',
263
- f_use_type:'报建费用',
264
- f_payment:['现金缴费'],
265
- f_charge_money:0,
353
+ f_bill_type: '普通收据',
354
+ f_bill_style: '普通发票',
355
+ f_use_type: '报建费用',
356
+ f_payment: ['现金缴费'],
357
+ f_charge_money: 0,
266
358
  f_apply_num: '',//报建编号
267
359
  f_process_id: '',//流程ID
268
360
  f_payments: '',//首付
@@ -285,29 +377,35 @@
285
377
  f_residual_invoicing: '',//剩余开票金额
286
378
  f_main_contract_num: 0,//主合同编号
287
379
  rows: [], // 付费数据数组
288
- f_user_name:"",
289
- f_phone:"",
290
- f_address:"",
291
- f_userinfo_id:""
380
+ f_user_name: "",
381
+ f_phone: "",
382
+ f_address: "",
383
+ f_userinfo_id: ""
292
384
  },
293
- billmodel: {
294
- f_user_name:"",
295
- f_phone:"",
296
- f_address:"",
297
- f_userinfo_id:""
298
- },
299
- chargemoney:0,
385
+ billmodel: {
386
+ f_user_name: "",
387
+ f_phone: "",
388
+ f_address: "",
389
+ f_userinfo_id: ""
390
+ },
391
+ chargemoney: 0,
300
392
  chargeitems: this.$appdata.getParam('收费项目'),
301
393
  billstyles: this.$appdata.getParam('票据类型'),
302
394
  paymenttypes: this.$appdata.getParam('付款方式'),
303
395
  printstyle: this.$appdata.getParam('打印格式'),
304
396
  print: false,
305
- delprint:false,
397
+ printat: false,
398
+ delprint: false,
399
+ delprintat:false,
306
400
  taxprint: false,
307
401
  billData: {
308
402
  url: 'rs/report/applyCharge_bill',
309
403
  bill: ''
310
404
  },
405
+ billDataantai: {
406
+ url: 'rs/report/applyChargeAT_bill',
407
+ bill: ''
408
+ },
311
409
  config: {
312
410
  hasPrint: true, //默认打票
313
411
  hasBillManage: true, //默认不启用发票管理
@@ -315,41 +413,52 @@
315
413
  printType: '普通收据', // 收据/电子票/专用发票/国税发票
316
414
  payment: '现金缴费', // 付款方式
317
415
  brandspec: '材料费', // 收费类型
318
- billtype:"收费发票"
416
+ billtype: "收费发票"
319
417
  },
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:''
418
+ config2: {
419
+ hasPrint: true, //默认打票
420
+ hasBillManage: true, //默认不启用发票管理
421
+ billType: '报建收费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
422
+ printType: '普通收据', // 收据/电子票/专用发票/国税发票
423
+ payment: '现金缴费', // 付款方式
424
+ brandspec: '材料费', // 收费类型
425
+ billtype: "冲正发票"
426
+ },
427
+ addItem: {
428
+ f_charge_money: 0,
429
+ f_amount_words: '',
430
+ f_payment_type: '',
431
+ f_charge_collectors: this.$login.f.name,
432
+ f_charge_date: '',
433
+ f_charge_remarks: '',
434
+ f_filiale: '',
435
+ f_process_id: '',
436
+ f_apply_num: '',
437
+ f_payment_method: '',
438
+ f_charging_status: '有效',
439
+ f_is_correct: '否',
440
+ f_bill_style: ''
343
441
  },
344
- charges: [{f_project_item:'合同总额', f_amount: 0, f_price: 0,f_money:0}],
442
+ charges: [{f_project_item: '合同总额', f_amount: 0, f_price: 0, f_money: 0}],
345
443
  // 启用发票管理需要对票号进行验证
346
- hasValidateBill: true,
444
+ hasValidateBill: false,
347
445
  validateOk: false,
348
- userinfoRow:{
349
- rows:[]
446
+ userinfoRow: {
447
+ rows: []
350
448
  },
351
- oldInfo:{},
352
- bill: '' // 票数据
449
+ oldInfo: {},
450
+ bill: '', // 票数据
451
+ paperticket: false,
452
+ ids: {},
453
+ paperinfo: {
454
+ f_buy_name : '',
455
+ f_pay_id : '',
456
+ f_buy_address : '',
457
+ f_buy_openbank : '',
458
+ f_email_push:''
459
+ },
460
+ param: {},
461
+ papershow: false
353
462
  }
354
463
  },
355
464
  props: ['infee', 'showfee'],
@@ -359,135 +468,175 @@
359
468
  },
360
469
 
361
470
  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
- }
471
+ async papaercom() {
472
+ this.papershow = false
473
+ console.log("this.paperinfo.",this.paperinfo)
474
+ this.param.paperinfo=this.paperinfo
475
+ // this.param.paperinfo.f_buy_name = this.paperinfo.f_buy_name ? this.paperinfo.f_buy_name : ''
476
+ // this.param.paperinfo.f_pay_id = this.paperinfo.f_pay_id ? this.paperinfo.f_pay_id : ''
477
+ // this.param.paperinfo.f_buy_address = this.paperinfo.f_buy_address ? this.paperinfo.f_buy_address : ''
478
+ // this.param.paperinfo.f_buy_openbank = this.paperinfo.f_buy_openbank ? this.paperinfo.f_buy_openbank : ''
479
+ if (this.param.f_print === '电子发票') {
480
+ let temp = await this.$commonService.openEticket(this.param, '报装收费')
481
+ console.log("temp", temp.data.f_bill_url)
482
+ this.f_bill_url = temp.data.f_bill_url
483
+ window.open(this.f_bill_url)
484
+ this.param = {}
485
+ this.$dispatch('success')
486
+ } else if (this.param.f_print === '纸质专票') {
487
+ await this.$commonService.openEticket(this.param, '报装收费')
488
+ this.ids.id = this.param.id
489
+ this.param = {}
490
+ this.paperticket = true
491
+ } else if (this.param.f_print === '纸质普票') {
492
+ await this.$commonService.openEticket(this.param, '报装收费')
493
+ this.ids.id = this.param.id
494
+ this.param = {}
495
+ this.paperticket = true
496
+ }
497
+ this.paperinfo.f_buy_name = ''
498
+ this.paperinfo.f_pay_id = ''
499
+ this.paperinfo.f_buy_address = ''
500
+ this.paperinfo.f_buy_openbank = ''
501
+ this.paperinfo.f_email_push=''
502
+ },
503
+ closeticket() {
504
+ this.paperticket = false
505
+ this.$dispatch('success')
506
+ },
507
+ //冲正
508
+ deleteChargeRecord(index) {
509
+ console.log(JSON.stringify(this.model.rows[index]))
510
+ if (this.config.hasPrint) {
511
+ if (this.model.f_print[0] === '普通收据') {
512
+ if (this.config.hasBillManage) {
513
+
514
+ this.model.f_bill_type = this.model.f_print[0]
515
+ this.model.f_bill_style = this.model.f_print[0]
516
+ this.print = true
517
+
518
+ console.log('f_bill_style' + this.model.f_bill_style)
519
+
385
520
  } else {
386
- this.$dispatch('success')
521
+ this.print = true
387
522
  }
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)
523
+ } else if (this.model.f_print[0] === '国税发票') {
524
+ // TODO
525
+ this.$dispatch('success')
526
+ } else if (this.model.f_print[0] === '电子发票') {
527
+ // TODO
528
+ this.$dispatch('success')
529
+ }
530
+ } else {
531
+ this.$dispatch('success')
532
+ }
533
+ this.$showMessage('是否冲正此条记录?', ['confirm', 'cancel']).then((res) => {
534
+ if (res === 'confirm') {
535
+ let param = {
536
+ row: this.model.rows[index]
422
537
  }
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})
538
+ this.$resetpost('rs/logic/restChargeRecord', {data: param}, {resolveMsg: null, rejectMsg: "冲正失败!"})
539
+ .then((res) => {
540
+ this.$showAlert('冲正成功!', 'success', 5000)
541
+ this.load()
542
+ })
543
+ } else {
544
+ this.load()
545
+ }
546
+ })
428
547
  },
429
- delItems (index) {
548
+ getUserinfo(index) {
549
+ console.log(index)
550
+ console.log("a")
551
+ this.model.f_user_name = this.userinfoRow.rows[index].f_user_name;
552
+ this.model.f_process_id = this.userinfoRow.rows[index].f_process_id;
553
+ this.model.f_phone = this.userinfoRow.rows[index].f_user_phone;
554
+ this.model.f_address = this.userinfoRow.rows[index].address;
555
+ this.model.f_userinfo_id = this.userinfoRow.rows[index].f_userinfo_id;
556
+ this.billmodel.f_user_name = this.userinfoRow.rows[index].f_user_name;
557
+ this.billmodel.f_phone = this.userinfoRow.rows[index].f_user_phone;
558
+ this.billmodel.f_address = this.userinfoRow.rows[index].address;
559
+ this.billmodel.f_userinfo_id = this.userinfoRow.rows[index].f_userinfo_id;
560
+
561
+ },
562
+ calcmoney(index) {
563
+ console.log("开始计算");
564
+ this.charges[index].f_money = this.charges[index].f_price * this.charges[index].f_amount
565
+ let allmoney = 0;
566
+ for (let i = 0; i < this.charges.length; i++) {
567
+ allmoney += parseFloat(this.charges[i].f_money)
568
+ }
569
+ this.model.f_charge_money = allmoney
570
+ // row.f_money = parseFloat(row.f_amount)*parseFloat(row.f_price);
571
+ },
572
+ addItems() {
573
+ this.charges.push({f_project_item: '合同总额', f_amount: 0, f_price: 0, f_money: 0})
574
+ },
575
+ delItems(index) {
430
576
  console.log('index==', index);
431
577
  if (this.charges.length > 1) {
432
578
  this.charges.splice(index, 1)
433
579
  }
434
580
  },
435
- selfclean(){
581
+ selfclean() {
436
582
  console.log("清空输入框")
437
- this.model.f_charge_money =0
438
- this.model.f_amount_words =''
439
- this.model.f_charge_remarks =''
583
+ this.model.f_charge_money = 0
584
+ this.model.f_amount_words = ''
585
+ this.model.f_charge_remarks = ''
440
586
  },
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:''
587
+ clean() {
588
+ this.addItem = {
589
+ f_charge_money: 0,
590
+ f_amount_words: '',
591
+ f_payment_type: '',
592
+ f_charge_collectors: this.$login.f.name,
593
+ f_charge_date: '',
594
+ f_charge_remarks: '',
595
+ f_filiale: '',
596
+ f_process_id: '',
597
+ f_apply_num: '',
598
+ f_charging_status: '有效',
599
+ f_is_correct: '否',
600
+ f_bill_style: ''
455
601
  }
456
602
 
457
603
  // this.$dispatch('refresh', this.model)
458
604
  },
459
- close () {
460
- console.log("关闭打印框")
605
+ close() {
606
+ console.log("关闭打印框")
461
607
  this.taxprint = false
462
608
  this.print = false
609
+ this.printat = false
463
610
  this.delprint = false
611
+ this.delprintat = false
464
612
  this.clean()
465
613
  },
466
- printok () {
614
+ printok() {
467
615
  console.log("successs............")
468
616
  this.$dispatch('success')
469
617
  },
470
- validateBill (val) {
618
+ validateBill(val) {
471
619
  this.validateOk = !val.isOk
472
620
  this.billData.bill = val.bill
621
+ this.billDataantai.bill = val.bill
473
622
  },
474
623
 
475
- confirmbuyerinfo (args) {
624
+ confirmbuyerinfo(args) {
476
625
  let drawbilldata = {
477
- sellid : this.selectsellid,
478
- buyerid : args.id,
479
- operator: this.$login.f.name
626
+ sellid: this.selectsellid,
627
+ buyerid: args.id,
628
+ operator: this.$login.f.name
480
629
  }
481
630
  this.closebuyerinfo()
482
631
  this.$resetpost('rs/logic/applyDrawBill', {data: drawbilldata}, {resolveMsg: null, rejectMsg: "开发票失败"})
483
- .then((res) => {
484
- if (res.data.status === 200){
485
- this.$showAlert('申请开具增值税电子发票成功,请稍后到报建功能中【报建收费】中查看电子发票', 'success',5000)
632
+ .then((res) => {
633
+ if (res.data.status === 200) {
634
+ this.$showAlert('申请开具增值税电子发票成功,请稍后到报建功能中【报建收费】中查看电子发票', 'success', 5000)
486
635
 
487
- }else {
488
- this.$showAlert('电子发票开票失败,失败代码为:' + res.data.status , 'warning',3000)
489
- }
490
- })
636
+ } else {
637
+ this.$showAlert('电子发票开票失败,失败代码为:' + res.data.status, 'warning', 3000)
638
+ }
639
+ })
491
640
  },
492
641
  // 输入金额校验
493
642
  check() {
@@ -543,11 +692,11 @@
543
692
  // f_cumulative_invoicing: '',//--累计开票金额--
544
693
  // f_residual_invoicing: '',//剩余开票金额
545
694
  async confirm() {
546
- if(this.validateOk){
695
+ if (this.validateOk) {
547
696
  this.$showMessage("当前未分配发票号,请联系管理员!!");
548
697
  return;
549
698
  }
550
- Object.assign(this.model,this.model,this.billmodel);
699
+ Object.assign(this.model, this.model, this.billmodel);
551
700
 
552
701
  let flag = this.check()
553
702
  if (!flag) {
@@ -555,14 +704,13 @@
555
704
  }
556
705
  if (Number(this.model.f_charge_money) > Number(this.model.f_unaccounts_money)) {
557
706
  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) {
707
+ this.model.f_charge_money = 0
708
+ this.model.f_amount_words = ''
709
+ } else if (this.model.f_charge_money == 0 || this.model.f_charge_money == "" || this.model.f_charge_money == null) {
561
710
  this.$showMessage("不能缴费0元")
562
- this.model.f_charge_money=0
563
- this.model.f_amount_words=''
564
- }
565
- else {
711
+ this.model.f_charge_money = 0
712
+ this.model.f_amount_words = ''
713
+ } else {
566
714
  //获取购货方信息
567
715
  http = new HttpResetClass()
568
716
  data = {
@@ -591,11 +739,11 @@
591
739
  this.addItem.f_charge_money = this.model.f_charge_money
592
740
  this.addItem.f_amount_words = this.model.f_amount_words
593
741
  console.log('f_payment' + this.model.f_payment)
594
- this.addItem.f_payment_method= this.model.f_payment[0]
742
+ this.addItem.f_payment_method = this.model.f_payment[0]
595
743
  this.addItem.f_charge_collectors = this.$login.f.name
596
744
  this.addItem.f_charge_date = this.model.f_charge_date
597
745
  this.addItem.f_charge_remarks = this.model.f_charge_remarks
598
- this.addItem.f_filiale = this.$login.f.f_fengongsi
746
+ this.addItem.f_filiale = this.model.f_payment_account =='安泰' ? '欣泰集团.安泰天然气' : '欣泰天然气'
599
747
  this.addItem.f_process_id = this.infee.f_process_id
600
748
  this.addItem.f_apply_num = this.infee.f_apply_num
601
749
  this.model.rows.push(this.addItem)
@@ -604,21 +752,21 @@
604
752
  let chargeremarks = this.addItem.f_charge_remarks ? this.addItem.f_charge_remarks : ''
605
753
  let chargebillstyle = this.model.f_print[0]
606
754
  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
755
+ this.addItem.f_bill_style = this.model.f_print[0]
756
+ this.addItem.f_userinfo_id = this.model.f_userinfo_id
609
757
  this.addItem.f_charge_state = '已收费'
610
- if(this.model.f_user_name == ""){
758
+ if (this.model.f_user_name == "") {
611
759
 
612
- this.addItem.f_charge_user = this.oldInfo.f_user_name;
613
- }else{
614
- this.addItem.f_charge_user = this.model.f_user_name;
760
+ this.addItem.f_charge_user = this.oldInfo.f_user_name;
761
+ } else {
762
+ this.addItem.f_charge_user = this.model.f_user_name;
615
763
  }
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;
764
+ if (this.model.f_user_name == "") {
765
+ this.addItem.f_charge_address = this.oldInfo.f_address;
766
+ } else {
767
+ this.addItem.f_charge_address = this.model.f_address;
620
768
  }
621
- console.log("==>"+JSON.stringify(this.oldInfo))
769
+ console.log("==>" + JSON.stringify(this.oldInfo))
622
770
  let data = {
623
771
  tablename: 't_charge_record',
624
772
  parameters: this.addItem
@@ -627,24 +775,29 @@
627
775
  let sellid = ''
628
776
  let ret = await http.load('POST', 'rs/logic/saveentity', {data: data})
629
777
  this.model.chargeid = ret.data.id
630
- console.log('ret==',ret)
778
+ console.log('ret==', ret)
631
779
  data = {
632
780
  f_cumulative_money: flag1,
633
781
  f_unaccounts_money: flag2,
634
782
  f_apply_num: this.infee.f_apply_num
635
783
  }
636
784
  //开始收费
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: "失败"})
785
+ for (let i = 0; i < this.charges.length; i++) {
786
+ let saveen = this.charges[i]
787
+ saveen.f_project_item = this.charges[i].f_project_item[0]
788
+ saveen.f_charge_record_id = parseFloat(ret.data.id);
789
+ await http.load('POST', 'rs/logic/saveentity', {
790
+ data: {
791
+ tablename: 't_charge_record_item',
792
+ parameters: saveen
793
+ }
794
+ }, {resolveMsg: null, rejectMsg: "失败"})
642
795
  }
643
796
 
644
797
  await http.load('POST', 'rs/logic/updatechargemoney', {data: data}, {resolveMsg: null, rejectMsg: "添加累计金额失败"})
645
798
  .then((res) => {
646
- this.charges =[{f_project_item:'合同总额', f_amount: 0, f_price: 0,f_money:0}],
647
- this.close()
799
+ this.charges = [{f_project_item: '合同总额', f_amount: 0, f_price: 0, f_money: 0}],
800
+ this.close()
648
801
  this.load()
649
802
  })
650
803
  if (this.config.hasPrint) {
@@ -653,29 +806,56 @@
653
806
 
654
807
  this.model.f_bill_type = this.model.f_print[0]
655
808
  this.model.f_bill_style = this.model.f_print[0]
656
- this.print = true
809
+ debugger
810
+ console.log('打印this.model.f_print[0]',this.model.f_print[0])
811
+ debugger
812
+ if(this.model.f_payment_account==='欣泰'){
813
+ this.print = true
814
+ }else{
815
+ this.printat = true
816
+ }
817
+
657
818
 
658
- console.log('f_bill_style'+this.model.f_bill_style)
819
+ console.log('f_bill_style' + this.model.f_bill_style)
659
820
 
660
821
  } else {
661
- this.print = true
822
+ debugger
823
+ if(this.model.f_payment_account==='欣泰'){
824
+ this.print = true
825
+ }else{
826
+ this.printat = true
827
+ }
662
828
  }
663
- } else if (this.model.f_print[0] === '国税发票') {
829
+ } else if (this.model.f_print[0] === '纸质普票') {
830
+ this.param.f_print = this.model.f_print[0],
831
+ this.param.id = ret.data.id,
832
+ this.param.bz = this.model.f_charge_remarks
833
+ this.papershow = true
834
+ } else if (this.model.f_print[0] === '纸质专票') {
664
835
  // TODO
665
- this.$dispatch('success')
666
- } else if (this.model.f_print[0]=== '电子发票') {
836
+ this.param.f_print = this.model.f_print[0]
837
+ this.param.id = ret.data.id
838
+ this.param.bz = this.model.f_charge_remarks
839
+ this.papershow = true
840
+
841
+ } else if (this.model.f_print[0] === '电子发票') {
667
842
  // TODO
668
- this.$dispatch('success')
843
+ this.param.f_print = this.model.f_print[0],
844
+ this.param.id = ret.data.id,
845
+ this.param.bz = this.model.f_charge_remarks
846
+ this.papershow = true
847
+
848
+
669
849
  }
670
850
  } else {
671
851
  this.$dispatch('success')
672
852
  }
673
853
 
674
854
  }
675
- this.model.f_amount_words=''
676
- this.model.f_charge_money=0
855
+ this.model.f_amount_words = ''
856
+ this.model.f_charge_money = 0
677
857
  },
678
- async invoice(val){
858
+ async invoice(val) {
679
859
  console.log('打印票据')
680
860
  if (val.f_bill_style === '增值税电子发票') {
681
861
  this.selectsellid = val.id
@@ -689,40 +869,52 @@
689
869
  },
690
870
  async tovoid(index) {
691
871
  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;
872
+ console.log(JSON.stringify(this.model.rows))
873
+ this.model.rows[index].f_amount_words = "负" + this.model.rows[index].f_amount_words;
694
874
  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==='冲正中') {
875
+ var val = this.model.rows[index];
876
+ this.model.chargeid = val.id;
877
+ this.delprint = false;
878
+ this.charges = [{f_project_item: '合同总额', f_amount: 0, f_price: 0, f_money: 0}],
879
+ console.log(JSON.stringify(val))
880
+ // this.charges =[{f_project_item:'合同总额', f_amount: 0, f_price: 0,f_money:0}],
881
+ if (val.f_is_correct === '' || val.f_charging_status !== '有效' || val.f_is_correct === '冲正中') {
703
882
  this.$showMessage('已冲正或正在冲正,不能操作!')
704
883
  } else {
705
- let param= {
706
- sellid:val.id,
707
- operator:this.$login.f.name
884
+ let param = {
885
+ sellid: val.id,
886
+ operator: this.$login.f.name
708
887
  }
709
- this.$resetpost('rs/logic/applyCancelDrawBill', {data:param }, {
888
+ this.$resetpost('rs/logic/applyCancelDrawBill', {data: param}, {
710
889
  resolveMsg: null,
711
890
  rejectMsg: '冲正失败'
712
891
  }).then((res) => {
713
- if (res.data.status === 200 ){
892
+ if (res.data.status === 200) {
714
893
  this.model.chargeid = res.data.charge_id;
715
894
  if (val.f_bill_style === '增值税电子发票') {
716
- this.$showAlert('申请增值税电子发票冲正成功,请稍后到报建功能中【报建收费】中查看电子发票', 'success',5000)
895
+ this.$showAlert('申请增值税电子发票冲正成功,请稍后到报建功能中【报建收费】中查看电子发票', 'success', 5000)
896
+ if(this.model.f_payment_account==='欣泰'){
717
897
  this.delprint = true;
718
- }else {
719
- this.$showAlert('冲正成功','success',2000)
720
- this.delprint = true;
898
+ }else{
899
+ this.delprintat = true
900
+ }
901
+
902
+ } else {
903
+ this.$showAlert('冲正成功', 'success', 2000)
904
+ if(this.model.f_payment_account==='欣泰'){
905
+ this.delprint = true;
906
+ }else{
907
+ this.delprintat = true
908
+ }
721
909
  }
910
+ if(this.model.f_payment_account==='欣泰'){
722
911
  this.delprint = true;
723
- this.load()
912
+ }else{
913
+ this.delprintat = true
914
+ }
915
+ this.load()
724
916
  } else {
725
- this.$showAlert('冲正失败', 'warning',5000)
917
+ this.$showAlert('冲正失败', 'warning', 5000)
726
918
  }
727
919
  })
728
920
 
@@ -730,29 +922,35 @@
730
922
  }
731
923
  },
732
924
  tomakeup(val) {
733
- if (val.f_invoice_num ) {
925
+ if (val.f_invoice_num) {
734
926
  this.$showMessage('此记录有票据,不能操作!')
735
- }else{
927
+ } else {
736
928
  this.invoice(val)
737
929
  }
738
930
  },
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'
931
+ //根据票据流水号查看票据
932
+ async seeeticket(val) {
933
+ console.log('该票据流水号为:', val.f_fpqqlsh)
934
+ var eticketData = await this.$resetpost('rs/sql/querySingleTable', {
935
+ data: {
936
+ items: 'f_bill_url,f_url_code',
937
+ tablename: 't_eticket',
938
+ condition: `f_serial_number=${val.f_fpqqlsh}`
939
+ }
940
+ }, {resolveMsg: null, rejectMsg: null})
941
+ console.log('eticketData:', eticketData)
942
+ var data = eticketData.data[0]
943
+ if (data.f_bill_url && data.f_bill_url != '') {
944
+ console.log(data)
945
+ var auth = data.f_bill_url.split("/")
946
+ console.log("截取", auth)
947
+ var authCode = auth[auth.length - 1]
948
+ var url = `https://${auth[2]}/ent-views/fpExtract/get_fapiao.html?pwd=${data.f_url_code}&authCode=${authCode}`
949
+ this.$showAlert('开票成功!', 'success', 500)
950
+ window.open(url)
951
+ return 'success'
952
+ }
953
+ return 'fail'
756
954
  },
757
955
  accSub(arg1, arg2) {
758
956
  var r1, r2, m, n;
@@ -794,9 +992,9 @@
794
992
 
795
993
  // 获取数据
796
994
  async load() {
797
-
995
+ console.log('load被重新调用111')
798
996
  this.refresh = !this.refresh
799
- console.log("刷新validate,重新加载"+this.refresh)
997
+ console.log("刷新validate,重新加载" + this.refresh)
800
998
  // this.ifsearch = !this.ifsearch
801
999
  let http = new HttpResetClass()
802
1000
  let data = {
@@ -818,9 +1016,9 @@
818
1016
  res.data[i].f_charge_date = res.data[i].f_charge_date.substring(0, 11)
819
1017
  }
820
1018
  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);
1019
+ this.model.f_cumulative_money = 0;
1020
+ for (let i = 0; i < res.data.length; i++) {
1021
+ this.model.f_cumulative_money =parseFloat(parseFloat(this.model.f_cumulative_money) + parseFloat(res.data[i].f_charge_money)).toFixed(2) ;
824
1022
  }
825
1023
 
826
1024
 
@@ -834,16 +1032,21 @@
834
1032
 
835
1033
  //获取用户信息
836
1034
  data = {
837
- condition:this.infee.f_process_id
1035
+ condition: this.infee.f_process_id
838
1036
  }
839
- let userinfores = await http.load('POST', 'rs/sql/getBillUserinfo', {data: data}, {resolveMsg: null, rejectMsg: '获取用户信息失败!'})
1037
+ let userinfores = await http.load('POST', 'rs/sql/getBillUserinfo', {data: data}, {
1038
+ resolveMsg: null,
1039
+ rejectMsg: '获取用户信息失败!'
1040
+ })
840
1041
  this.userinfoRow.rows = userinfores.data;
841
1042
 
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}];
1043
+ this.oldInfo.f_user_name = this.model.f_user_name;
1044
+ this.oldInfo.f_phone = this.model.f_phone;
1045
+ this.oldInfo.f_address = this.model.f_address;
1046
+ this.model.f_isone = ['否'];
1047
+ this.charges = [{f_project_item: '合同总额', f_amount: 0, f_price: 0, f_money: 0}];
1048
+ this.hasValidateBill=true
1049
+ console.log('load被重新调用222')
847
1050
  }
848
1051
  },
849
1052
  computed: {
@@ -891,27 +1094,27 @@
891
1094
  // return [{label: '全部', value: ''}, ...AppData.getParam('缴费类型')]
892
1095
  }
893
1096
  },
894
- watch : {
895
- 'model.f_isone' (val) {
1097
+ watch: {
1098
+ 'model.f_isone'(val) {
896
1099
  console.log('111111111is one', val, val[0] == '是')
897
1100
  if (val[0] == '是') {
898
1101
  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="";
1102
+ this.model.f_user_name = ""
1103
+ this.model.f_phone = ""
1104
+ this.model.f_address = ""
1105
+ this.model.f_userinfo_id = "";
903
1106
  } else {
904
1107
  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="";
1108
+ this.model.f_user_name = this.oldInfo.f_user_name
1109
+ this.model.f_phone = this.oldInfo.f_phone
1110
+ this.model.f_address = this.oldInfo.f_address
1111
+ this.model.f_userinfo_id = "";
909
1112
  }
910
1113
  },
911
- 'infee' (val) {
912
- this.load()
913
- },
914
- 'print' (val) {
1114
+ 'infee'(val) {
1115
+ this.load()
1116
+ },
1117
+ 'print'(val) {
915
1118
  this.load()
916
1119
  }
917
1120
  },