apply-clients 3.3.110-227 → 3.3.110-230

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.3.110-227",
3
+ "version": "3.3.110-230",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
package/src/apply.js CHANGED
@@ -54,6 +54,7 @@ export default function () {
54
54
  // 收费管理
55
55
  Vue.component('apply-charge-management', (resolve) => { require(['./components/product/Process/Processes/chargeManagement'], resolve) })
56
56
  Vue.component('apply-print-charge', (resolve) => { require(['./components/product/Process/Processes/Print/printCharge'], resolve) })
57
+ Vue.component('apply-print-chargepc', (resolve) => { require(['./components/product/Process/Processes/Print/printChargepc'], resolve) })
57
58
  Vue.component('apply-print-refund', (resolve) => { require(['./components/product/Process/Processes/Print/printRefund'], resolve) })
58
59
 
59
60
  // 补充协议
@@ -260,9 +260,13 @@ export default {
260
260
  )
261
261
  restp.data[0].processname = '散户报建流程'
262
262
  restp.data[0].defname = '合同签订'
263
- this.$dispatch('gotoson',restp.data[0])
264
- this.$goto('app-service-control', {selectdata: restp.data[0]}, 'self', restp.data[0])
265
- // this.$dispatch('apply',restp.data[0])
263
+ let _this = this
264
+ this.$dispatch('gotoson', {
265
+ _this: _this,
266
+ title: restp.data[0].defname,
267
+ safe: true
268
+ })
269
+ this.$goto('app-service-control', {selectdata: restp.data[0]}, 'self')
266
270
 
267
271
  } else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
268
272
  let data2 = {
@@ -282,8 +286,14 @@ export default {
282
286
  console.log('打印查询的内容',restp1)
283
287
  // restp1.data[0].processname = '散户报建流程'
284
288
  // restp1.data[0].defname = '报装缴费'
285
- this.$dispatch('gotoson',restp1.data[0])
286
- this.$goto('app-service-control', {selectdata: restp1.data[0]}, 'self',restp1.data[0])
289
+
290
+ let _this = this
291
+ this.$dispatch('gotoson', {
292
+ _this: _this,
293
+ title: restp1.data[0].defname,
294
+ safe: true
295
+ })
296
+ this.$goto('app-service-control', {selectdata: restp1.data[0]}, 'self')
287
297
  }else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' && this.show_data.button.button_name === '提交'){
288
298
  let data3 = {
289
299
  condition: `u.id = ${this.show_data.id}`,
@@ -300,10 +310,21 @@ export default {
300
310
  {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
301
311
  )
302
312
  console.log('打印查询的内容',restp2)
303
- // restp2.data[0].processname = '散户报建流程'
304
- // restp2.data[0].defname = '工程派工'
305
- this.$dispatch('gotoson',restp2.data[0])
306
- this.$goto('app-service-control', {selectdata: restp2.data[0]}, 'self',restp2.data[0])
313
+ debugger
314
+ if(restp2.length>0){
315
+ let _this = this
316
+ this.$dispatch('gotoson', {
317
+ _this: _this,
318
+ title: restp2.data[0].defname,
319
+ safe: true
320
+ })
321
+ this.$goto('app-service-control', {selectdata: restp2.data[0]}, 'self')
322
+ }else{
323
+ debugger
324
+ this.$dispatch('confirm')
325
+ this.$dispatch('confirm')
326
+ this.$dispatch('confirm')
327
+ }
307
328
  }
308
329
  else{
309
330
  // console.log('-----')
@@ -0,0 +1,142 @@
1
+ <template>
2
+ <style id="printChargeStyle">
3
+ td{
4
+ height: 30px;
5
+ text-align: center;
6
+ }
7
+ table{
8
+ margin: auto;
9
+ /*width: 100%;*/
10
+ border-collapse:collapse;
11
+ border: 1px solid black;
12
+ }
13
+ h1,h2,h3,h4,h5,h6 {
14
+ text-align: center;
15
+ }
16
+ .orgs {
17
+ border-bottom: 2px solid;
18
+ padding: 5px;
19
+ }
20
+ .date {
21
+ float: left;
22
+ padding-left: 10px;
23
+ }
24
+ .status {
25
+ float: right;
26
+ padding-right: 10px;
27
+ }
28
+ .seal {
29
+ position: absolute;
30
+ right: 100px;
31
+ top: 120px;
32
+ width: 150px;
33
+ height: 150px;
34
+ /*opacity: 0.5;*/
35
+ z-index: -1;
36
+ }
37
+ </style>
38
+ <div id="printCharge">
39
+ <h4>
40
+ <span class="orgs">
41
+ {{orgs}}统一收据
42
+ </span>
43
+ </h4>
44
+ <table border="1" width="100%">
45
+ <tr>
46
+ <td colspan="2" style="border: none">
47
+ 开票日期:{{ new Date().Format('yyyy年MM月dd日') }}
48
+ </td>
49
+ <td colspan="2" style="border: none">
50
+ 收据编码:{{ charge.f_charge_number }}
51
+ </td>
52
+ <td colspan="2" style="border: none">
53
+ 状态:{{ charge.f_charge_status }}
54
+ </td>
55
+ </tr>
56
+ <tr>
57
+ <td style="width: 17%">用户姓名</td>
58
+ <td colspan="2" style="width: 33%">{{ selectdata.f_user_name }}</td>
59
+ <td style="width: 17%">用户编号</td>
60
+ <td colspan="2" style="width: 33%">{{ selectdata.f_userinfo_code }}</td>
61
+ </tr>
62
+ <tr>
63
+ <td>用户地址</td>
64
+ <td colspan="5">{{ selectdata.f_address }}</td>
65
+ </tr>
66
+ <tr>
67
+ <td>收款项目</td>
68
+ <td colspan="2">{{ charge.f_payment_term }}</td>
69
+ <td>收款方式</td>
70
+ <td colspan="2">{{ charge.f_payment_method }}</td>
71
+ </tr>
72
+ <tr>
73
+ <td>金额</td>
74
+ <td colspan="2">{{ charge.f_charge_money }}</td>
75
+ <td>金额大写</td>
76
+ <td colspan="2">{{ charge.f_amount_words }}</td>
77
+ </tr>
78
+ <tr>
79
+ <td>收款人</td>
80
+ <td colspan="2">{{ charge.f_charge_collectors }}</td>
81
+ <td>销售方(章)</td>
82
+ <td colspan="2"></td>
83
+ </tr>
84
+ <tr>
85
+ <td>备&emsp;&emsp;注</td>
86
+ <td colspan="5">{{ charge.f_charge_remarks }}</td>
87
+ </tr>
88
+ <tr>
89
+ <td colspan="6">
90
+ 请持此收据到{{orgs}}营业厅换取发票
91
+ </td>
92
+ </tr>
93
+ </table>
94
+ <img class="seal" border="0" :src="src" alt="">
95
+ </div>
96
+
97
+ <print-element v-show="false" v-ref:print id='printCharge' styleid='printChargeStyle'
98
+ top='20' left='30' width='100%' height='100%'>
99
+ </print-element>
100
+ </template>
101
+
102
+ <script>
103
+ import { isEmpty } from '../../../../Util'
104
+ Date.prototype.Format = function (fmt) {
105
+ var o = {
106
+ "M+": this.getMonth() + 1, //月份
107
+ "d+": this.getDate(), //日
108
+ "H+": this.getHours(), //小时
109
+ "m+": this.getMinutes(), //分
110
+ "s+": this.getSeconds(), //秒
111
+ "q+": Math.floor((this.getMonth() + 3) / 3), //季度
112
+ "S": this.getMilliseconds() //毫秒
113
+ };
114
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
115
+ for (var k in o)
116
+ if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
117
+ return fmt;
118
+ }
119
+ export default {
120
+ title: '打印收费票据',
121
+ props: ['selectdata', 'charge'],
122
+ data () {
123
+ return {}
124
+ },
125
+ ready () {
126
+ },
127
+ methods: {
128
+ },
129
+ computed: {
130
+ orgs () {
131
+ return this.$login.f.orgs
132
+ },
133
+ src () {
134
+ return require(`./img/${this.$login.f.number}.png`)
135
+ }
136
+ }
137
+ }
138
+ </script>
139
+
140
+ <style scoped>
141
+
142
+ </style>
@@ -382,7 +382,7 @@
382
382
  <h4 class="modal-title">打印预览</h4>
383
383
  </header>
384
384
  <article slot="modal-body" class="modal-body clearfix">
385
- <apply-print-charge :selectdata="selectdata" :charge="charge" v-ref:print></apply-print-charge>
385
+ <apply-print-chargepc :selectdata="selectdata" :charge="charge" v-ref:print></apply-print-chargepc>
386
386
  </article>
387
387
  <footer slot="modal-footer" class="modal-footer">
388
388
  <button type="button" class="btn btn-primary" @click="print()">打印</button>
@@ -1599,7 +1599,7 @@ export default {
1599
1599
  restgg.data[0].processname = '改管报建流程'
1600
1600
  restgg.data[0].defname = '报装缴费'
1601
1601
  }else{
1602
- restgg.data[0].processname = '增容报建'
1602
+ restgg.data[0].processname = '增容报建流程'
1603
1603
  restgg.data[0].defname = '报装缴费'
1604
1604
  }
1605
1605
 
@@ -1682,9 +1682,12 @@ export default {
1682
1682
  )
1683
1683
  debugger
1684
1684
  console.log('打印查询的内容',restp2)
1685
- // restp2.data[0].processname = '散户报建流程'
1686
- // restp2.data[0].defname = '工程派工'
1687
- this.$dispatch('apply',restp2.data[0])
1685
+ if(restp2.length>0){
1686
+ this.$dispatch('apply',restp2.data[0])
1687
+ }else{
1688
+ debugger
1689
+ this.$dispatch('loadPage')
1690
+ }
1688
1691
  }
1689
1692
  else{
1690
1693
  this.$dispatch('loadPage')