apply-clients 5.0.35-ezhou-9 → 5.0.35-ezhou-10

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.
@@ -105,6 +105,19 @@
105
105
  <button v-show="apply_show" type="button" class="btn btn-default" @click='addactive()'>确认</button>
106
106
  </footer>
107
107
  </modal>
108
+ <!--小区工程移交概况表-->
109
+ <modal :show.sync="overviewprint" v-ref:modal :large="true" :backdrop="false" title="打印预览">
110
+ <header slot="modal-header" class="modal-header">
111
+ <button type="button" class="close" @click="overviewprint = !overviewprint"><span>&times;</span></button>
112
+ <h4 class="modal-title">打印预览</h4>
113
+ </header>
114
+ <article slot="modal-body" class="modal-body clearfix">
115
+ <overview :report="show_data" :overviewname="overviewname" v-ref:print></overview>
116
+ </article>
117
+ <footer slot="modal-footer" class="modal-footer">
118
+ <button type="button" class="btn btn-primary" @click="print()">打印</button>
119
+ </footer>
120
+ </modal>
108
121
  </template>
109
122
  <script>
110
123
  import Vue from 'vue'
@@ -179,7 +192,9 @@ export default {
179
192
  f_filiale: this.$login.f.f_fengongsi
180
193
  },
181
194
  models2:{},
182
- selectShow: false
195
+ selectShow: false,
196
+ overviewprint:false,
197
+ overviewname:''
183
198
  }
184
199
  },
185
200
  methods: {
@@ -323,6 +338,13 @@ export default {
323
338
  this.printData.f_address = `'${model.f_address}'`
324
339
  this.printData.f_user_phone = `'${model.f_phone}'`
325
340
  },
341
+ print () {
342
+ this.$refs.print.$refs.print.PrintTable()
343
+ },
344
+ printoverview(name){
345
+ this.overviewprint = true
346
+ this.overviewname = name
347
+ },
326
348
 
327
349
  async printbill(sellid) {
328
350
  let result = await this.$resetpost('rs/report/applyCharge_bill', {data: {condition: `c.id = ${sellid}`}}, {
@@ -1918,6 +1940,10 @@ export default {
1918
1940
  this.refurbish()
1919
1941
  return
1920
1942
  }
1943
+ if (model.button.button_name === '打印表1' || model.button.button_name === '打印表2') {
1944
+ this.printoverview(model.button.button_name)
1945
+ return
1946
+ }
1921
1947
  if (model.button.button_name === '打印回单') {
1922
1948
  this.printReceipt(model)
1923
1949
  return
@@ -1,184 +1,184 @@
1
- <template>
2
- <div style="margin-bottom: 20px;" class="form-group select-overspread">
3
- <label class="control-label-justify control-label col-sm-3">选择用户</label>
4
- <div class="col-sm-10" style="top: 42px;">
5
- <button class="button_search button_spacing" type="button" style="width: max-content;position: absolute" @click="openSelect" :disabled="mark === 1">选择</button>
6
- </div>
7
- </div>
8
-
9
- <modal v-if="showselect" :show.sync="showselect" width="80%" title="用户信息" v-ref:modal large backdrop="false">
10
- <article slot="modal-body" class="modal-body" style="height: 600px!important;">
11
- <criteria-paged :model="model" v-ref:cp>
12
- <criteria partial='criteria' @condition-changed='$parent.$parent.searchCondition' v-ref:cri>
13
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
14
- <div class="row">
15
- <div class="form-group col-sm-3">
16
- <label class="font_normal_body">客户编号:</label>
17
- <input type="text" style="width:60%" class="input_search" placeholder='客户编号' v-model="model.f_userinfo_code"
18
- v-on:keyup.enter="search"
19
- condition="ui.f_userinfo_code = '{}'">
20
- </div>
21
- <div class="form-group col-sm-3">
22
- <label class="font_normal_body">客户名称:</label>
23
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
24
- v-on:keyup.enter="search" condition="ui.f_user_name like '%{}%'" placeholder='客户名称'>
25
- </div>
26
- <div class="form-group col-sm-3">
27
- <label class="font_normal_body">客户电话:</label>
28
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
29
- v-on:keyup.enter="search" condition="ui.f_user_phone = '{}'" placeholder='客户电话'>
30
- </div>
31
-
32
- <div class="form-group col-sm-3 button-range">
33
- <button class="button_search button_spacing" @click.prevent="search" v-el:cx>查询</button>
34
- <button class="button_clear button_spacing" @click.prevent="$parent.$parent.$parent.clear()">清空</button>
35
- <div
36
- :class="{'button_shrink_top':$parent.$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.$parent.criteriaShow}"
37
- @click="$parent.$parent.$parent.criteriaShow = !$parent.$parent.$parent.criteriaShow"
38
- class="button_spacing"
39
- style="float: right">
40
- </div>
41
- </div>
42
- </div>
43
- <div class="row" v-show="$parent.$parent.$parent.criteriaShow">
44
- <div class="form-group col-sm-3">
45
- <label class="font_normal_body">客户地址:</label>
46
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
47
- v-on:keyup.enter="search" condition="ua.f_address like '%{}%'" placeholder='客户地址'>
48
- </div>
49
- </div>
50
- </div>
51
- </criteria>
52
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
53
- <template partial='head'>
54
- <tr>
55
- <th style="white-space: nowrap;">序号</th>
56
- <th style="white-space: nowrap;">客户编号</th>
57
- <th style="white-space: nowrap;">客户名称</th>
58
- <th style="white-space: nowrap;">客户电话</th>
59
- <th style="white-space: nowrap;">地址信息</th>
60
- <th style="white-space: nowrap;">选择</th>
61
- </tr>
62
- </template>
63
- <template partial='body'>
64
- <tr >
65
- <td style="text-align: center;">
66
- <nobr><font>{{$index+1}}</font></nobr>
67
- </td>
68
- <td style="text-align: center;">
69
- <nobr><font>{{ row.f_userinfo_code }}</font></nobr>
70
- </td>
71
- <td style="text-align: center;">
72
- <nobr><font>{{ row.f_user_name }}</font></nobr>
73
- </td>
74
- <td style="text-align: center;">
75
- <nobr><font>{{ row.f_user_phone }}</font></nobr>
76
- </td>
77
- <td style="text-align: center;">
78
- <nobr><font>{{ row.f_address }}</font></nobr>
79
- </td>
80
- <td style="text-align: center;">
81
- <nobr><font>
82
- <button type="button" name="button" class="button_export" @click.prevent="$parent.$parent.$parent.$parent.select(row)">确认选择</button>
83
- </font></nobr>
84
- </td>
85
- </tr>
86
- </template>
87
- </data-grid>
88
- </criteria-paged>
89
- </article>
90
- <footer slot="modal-footer" class="modal-footer">
91
- </footer>
92
- </modal>
93
- </template>
94
- <script>
95
- import {PagedList} from 'vue-client'
96
- import Vue from 'vue'
97
-
98
- export default {
99
- title: '收费管理',
100
- props: {
101
- selectdata: {
102
- type: Object
103
- },
104
- mark: {
105
- type: Number,
106
- default: 0
107
- }
108
- },
109
- data () {
110
- return {
111
- showselect: false,
112
- model: new PagedList('rs/sql/applyGetUserinfos', 20, null),
113
- criteriaShow: false
114
- }
115
- },
116
- ready () {
117
- },
118
- methods: {
119
- select (row) {
120
- console.log("当前传入数据ccc",row)
121
- this.$dispatch('selectUserinfo', row)
122
-
123
- this.showselect = false
124
- },
125
- searchCondition (args) {
126
- args.condition = `${args.condition}`
127
-
128
- this.model.search(args.condition, args.model)
129
- },
130
- clear () {
131
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
132
- this.$refs.cp.$refs.cri.model[key] = null
133
- })
134
- },
135
- openSelect () {
136
- this.showselect = true
137
- setTimeout(() => {
138
- this.$refs.cp.$refs.cri.search()
139
- }, 100)
140
- }
141
- },
142
- events: {
143
- },
144
- computed: {
145
- },
146
- watch: {
147
- }
148
- }
149
- </script>
150
- <style scoped>
151
- .control-label-justify {
152
- top: 42px;
153
- display: inline-block;
154
- vertical-align: top;
155
- width: 110px;
156
- text-align: justify;
157
- font-family: PingFang-SC-Bold;
158
- }
159
-
160
- .control-label-justify::after {
161
- content: "";
162
- display: inline-block;
163
- width: 100%;
164
- overflow: hidden;
165
- height: 0;
166
- }
167
- .input_view{
168
- padding: 8px;
169
- background-color: #ffffff;
170
- border-radius: 2px;
171
- border: solid 1px #c7c7c7!important;
172
- color: #333333!important;
173
- font-size: 15px!important;
174
- }
175
-
176
- .input_view[readonly]{
177
- border: 1px solid #DDD!important;
178
- color:#ACA899!important;
179
- }
180
- .input_view:disabled{
181
- border: 1px solid #DDD!important;
182
- color:#ACA899!important;
183
- }
184
- </style>
1
+ <template>
2
+ <div style="margin-bottom: 20px;" class="form-group select-overspread">
3
+ <label class="control-label-justify control-label col-sm-3">选择用户</label>
4
+ <div class="col-sm-10" style="top: 42px;">
5
+ <button class="button_search button_spacing" type="button" style="width: max-content;position: absolute" @click="openSelect" :disabled="mark === 1">选择</button>
6
+ </div>
7
+ </div>
8
+
9
+ <modal v-if="showselect" :show.sync="showselect" width="80%" title="用户信息" v-ref:modal large backdrop="false">
10
+ <article slot="modal-body" class="modal-body" style="height: 600px!important;">
11
+ <criteria-paged :model="model" v-ref:cp>
12
+ <criteria partial='criteria' @condition-changed='$parent.$parent.searchCondition' v-ref:cri>
13
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
14
+ <div class="row">
15
+ <div class="form-group col-sm-3">
16
+ <label class="font_normal_body">客户编号:</label>
17
+ <input type="text" style="width:60%" class="input_search" placeholder='客户编号' v-model="model.f_userinfo_code"
18
+ v-on:keyup.enter="search"
19
+ condition="ui.f_userinfo_code = '{}'">
20
+ </div>
21
+ <div class="form-group col-sm-3">
22
+ <label class="font_normal_body">客户名称:</label>
23
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
24
+ v-on:keyup.enter="search" condition="ui.f_user_name like '%{}%'" placeholder='客户名称'>
25
+ </div>
26
+ <div class="form-group col-sm-3">
27
+ <label class="font_normal_body">客户电话:</label>
28
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
29
+ v-on:keyup.enter="search" condition="ui.f_user_phone = '{}'" placeholder='客户电话'>
30
+ </div>
31
+
32
+ <div class="form-group col-sm-3 button-range">
33
+ <button class="button_search button_spacing" @click.prevent="search" v-el:cx>查询</button>
34
+ <button class="button_clear button_spacing" @click.prevent="$parent.$parent.$parent.clear()">清空</button>
35
+ <div
36
+ :class="{'button_shrink_top':$parent.$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.$parent.criteriaShow}"
37
+ @click="$parent.$parent.$parent.criteriaShow = !$parent.$parent.$parent.criteriaShow"
38
+ class="button_spacing"
39
+ style="float: right">
40
+ </div>
41
+ </div>
42
+ </div>
43
+ <div class="row" v-show="$parent.$parent.$parent.criteriaShow">
44
+ <div class="form-group col-sm-3">
45
+ <label class="font_normal_body">客户地址:</label>
46
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
47
+ v-on:keyup.enter="search" condition="ua.f_address like '%{}%'" placeholder='客户地址'>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </criteria>
52
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
53
+ <template partial='head'>
54
+ <tr>
55
+ <th style="white-space: nowrap;">序号</th>
56
+ <th style="white-space: nowrap;">客户编号</th>
57
+ <th style="white-space: nowrap;">客户名称</th>
58
+ <th style="white-space: nowrap;">客户电话</th>
59
+ <th style="white-space: nowrap;">地址信息</th>
60
+ <th style="white-space: nowrap;">选择</th>
61
+ </tr>
62
+ </template>
63
+ <template partial='body'>
64
+ <tr >
65
+ <td style="text-align: center;">
66
+ <nobr><font>{{$index+1}}</font></nobr>
67
+ </td>
68
+ <td style="text-align: center;">
69
+ <nobr><font>{{ row.f_userinfo_code }}</font></nobr>
70
+ </td>
71
+ <td style="text-align: center;">
72
+ <nobr><font>{{ row.f_user_name }}</font></nobr>
73
+ </td>
74
+ <td style="text-align: center;">
75
+ <nobr><font>{{ row.f_user_phone }}</font></nobr>
76
+ </td>
77
+ <td style="text-align: center;">
78
+ <nobr><font>{{ row.f_address }}</font></nobr>
79
+ </td>
80
+ <td style="text-align: center;">
81
+ <nobr><font>
82
+ <button type="button" name="button" class="button_export" @click.prevent="$parent.$parent.$parent.$parent.select(row)">确认选择</button>
83
+ </font></nobr>
84
+ </td>
85
+ </tr>
86
+ </template>
87
+ </data-grid>
88
+ </criteria-paged>
89
+ </article>
90
+ <footer slot="modal-footer" class="modal-footer">
91
+ </footer>
92
+ </modal>
93
+ </template>
94
+ <script>
95
+ import {PagedList} from 'vue-client'
96
+ import Vue from 'vue'
97
+
98
+ export default {
99
+ title: '收费管理',
100
+ props: {
101
+ selectdata: {
102
+ type: Object
103
+ },
104
+ mark: {
105
+ type: Number,
106
+ default: 0
107
+ }
108
+ },
109
+ data () {
110
+ return {
111
+ showselect: false,
112
+ model: new PagedList('rs/sql/applyGetUserinfos', 20, null),
113
+ criteriaShow: false
114
+ }
115
+ },
116
+ ready () {
117
+ },
118
+ methods: {
119
+ select (row) {
120
+ console.log("当前传入数据ccc",row)
121
+ this.$dispatch('selectUserinfo', row)
122
+
123
+ this.showselect = false
124
+ },
125
+ searchCondition (args) {
126
+ args.condition = `${args.condition}`
127
+
128
+ this.model.search(args.condition, args.model)
129
+ },
130
+ clear () {
131
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
132
+ this.$refs.cp.$refs.cri.model[key] = null
133
+ })
134
+ },
135
+ openSelect () {
136
+ this.showselect = true
137
+ setTimeout(() => {
138
+ this.$refs.cp.$refs.cri.search()
139
+ }, 100)
140
+ }
141
+ },
142
+ events: {
143
+ },
144
+ computed: {
145
+ },
146
+ watch: {
147
+ }
148
+ }
149
+ </script>
150
+ <style scoped>
151
+ .control-label-justify {
152
+ top: 42px;
153
+ display: inline-block;
154
+ vertical-align: top;
155
+ width: 110px;
156
+ text-align: justify;
157
+ font-family: PingFang-SC-Bold;
158
+ }
159
+
160
+ .control-label-justify::after {
161
+ content: "";
162
+ display: inline-block;
163
+ width: 100%;
164
+ overflow: hidden;
165
+ height: 0;
166
+ }
167
+ .input_view{
168
+ padding: 8px;
169
+ background-color: #ffffff;
170
+ border-radius: 2px;
171
+ border: solid 1px #c7c7c7!important;
172
+ color: #333333!important;
173
+ font-size: 15px!important;
174
+ }
175
+
176
+ .input_view[readonly]{
177
+ border: 1px solid #DDD!important;
178
+ color:#ACA899!important;
179
+ }
180
+ .input_view:disabled{
181
+ border: 1px solid #DDD!important;
182
+ color:#ACA899!important;
183
+ }
184
+ </style>