apply-clients 3.1.37 → 3.1.40

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.
@@ -1,232 +1,30 @@
1
- <template>
2
- <div class="basic-main">
3
- <criteria-paged :model="model" v-ref:cp>
4
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
- <div class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="form-group col-sm-3">
8
- <label class="font_normal_body">项目名称:</label>
9
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_entry_name"
10
- v-on:keyup.enter="$parent.$parent.search()" condition="a.f_entry_name like '%{}%'" placeholder='项目名'>
11
- </div>
12
- <div class="form-group col-sm-3">
13
- <label for="startDate" class="font_normal_body">开始时间:</label>
14
- <datepicker id="startDate" placeholder="开始日期"
15
- style="width: 60%!important;"
16
- v-model="model.startDate"
17
- :value.sync="model.startDate"
18
- :format="'yyyy-MM-dd HH:mm:ss'"
19
- :show-reset-button="true"
20
- condition="cr.f_charge_date >= '{}'">
21
- </datepicker>
22
- </div>
23
- <div class="form-group col-sm-3">
24
- <label for="endDate" class="font_normal_body">结束时间:</label>
25
- <datepicker id="endDate" placeholder="结束日期"
26
- style="width: 60%!important;"
27
- v-model="model.endDate"
28
- :value.sync="model.endDate"
29
- :format="'yyyy-MM-dd HH:mm:ss'"
30
- :show-reset-button="true"
31
- condition="cr.f_charge_date <= '{}'">
32
- </datepicker>
33
- </div>
34
- <div class="form-group col-sm-3 button-range">
35
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
36
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
37
- <div
38
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
39
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
40
- class="button_spacing"
41
- style="float: right">
42
- </div>
43
- </div>
44
- </div>
45
- <div class="row" v-show="$parent.$parent.criteriaShow">
46
- <div class="form-group col-sm-3">
47
- <label class="font_normal_body">报建编号:</label>
48
- <input type="text" style="width: 60%" class="input_search" placeholder='报建编号' v-model="model.f_apply_num"
49
- v-on:keyup.enter="$parent.$parent.search()"
50
- condition="a.f_apply_num = '{}'">
51
- </div>
52
- <div class="form-group col-sm-3">
53
- <label class="font_normal_body">合同编号:</label>
54
- <input type="text" style="width: 60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
55
- v-on:keyup.enter="$parent.$parent.search()"
56
- condition="a.f_contract_number = '{}'">
57
- </div>
58
- <div class="form-group col-sm-3">
59
- <label class="font_normal_body">报建类型:</label>
60
- <v-select
61
- v-model="model.f_apply_type"
62
- placeholder='请选择'
63
- condition="a.f_apply_type = '{}'"
64
- :value.sync="model.f_apply_type"
65
- :options='$parent.$parent.applytype'
66
- class="select select_list"
67
- :value-single="true"
68
- close-on-select ></v-select>
69
- </div>
70
- <div class="form-group col-sm-3">
71
- <label class="font_normal_body">收费人员:</label>
72
- <input type="text" class="input_search" style="width: 60%" placeholder='收费人员' v-model="model.f_charge_collectors"
73
- v-on:keyup.enter="$parent.$parent.search()"
74
- condition="cr.f_charge_collectors like '%{}%'">
75
- </div>
76
- <div class="form-group col-sm-3">
77
- <label class="font_normal_body">付款方式:</label>
78
- <v-select
79
- v-model="model.f_payment_method"
80
- placeholder='请选择'
81
- condition="cr.f_payment_method = '{}'"
82
- :value.sync="model.f_payment_method"
83
- :options='$parent.$parent.paymentMethod'
84
- class="select select_list"
85
- :value-single="true"
86
- close-on-select ></v-select>
87
- </div>
88
- <div class="form-group col-sm-3">
89
- <label class="font_normal_body">缴费状态:</label>
90
- <v-select
91
- v-model="model.f_charging_status"
92
- placeholder='请选择'
93
- condition="cr.f_charging_status = '{}'"
94
- :value.sync="model.f_charging_status"
95
- :options='$parent.$parent.chargingStatus'
96
- class="select select_list"
97
- :value-single="true"
98
- close-on-select ></v-select>
99
- </div>
100
- </div>
101
- </div>
102
- </criteria>
103
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
104
- <template partial='head'>
105
- <tr>
106
- <th>序号</th>
107
- <th>报建编号</th>
108
- <th>项目名称</th>
109
- <th>合同编号</th>
110
- <th>报建类型</th>
111
- <th>收费金额</th>
112
- <th>付款方式</th>
113
- <th>收费人员</th>
114
- <th>收费日期</th>
115
- <th>状态</th>
116
- <th>地址</th>
117
- </tr>
118
- </template>
119
- <template partial='body'>
120
- <tr >
121
- <td style="text-align: center;">
122
- <nobr><font>{{$index+1}}</font></nobr>
123
- </td>
124
- <td style="text-align: center;">
125
- <nobr><font>{{row.f_apply_num}}</font></nobr>
126
- </td>
127
- <td style="text-align: center;">
128
- <nobr><font>{{row.f_entry_name}}</font></nobr>
129
- </td>
130
- <td style="text-align: center;">
131
- <nobr><font>{{row.f_contract_number}}</font></nobr>
132
- </td>
133
- <td style="text-align: center;">
134
- <nobr><font>{{row.f_apply_type}}</font></nobr>
135
- </td>
136
- <td style="text-align: center;">
137
- <nobr><font>{{row.f_charge_money}}</font></nobr>
138
- </td>
139
- <td style="text-align: center;">
140
- <nobr><font>{{row.f_payment_method}}</font></nobr>
141
- </td>
142
- <td style="text-align: center;">
143
- <nobr><font>{{row.f_charge_collectors}}</font></nobr>
144
- </td>
145
- <td style="text-align: center;">
146
- <nobr><font>{{row.f_charge_date}}</font></nobr>
147
- </td>
148
- <td style="text-align: center;">
149
- <nobr><font>{{row.f_charging_status}}</font></nobr>
150
- </td>
151
- <td style="text-align: center;">
152
- <nobr><font>{{row.f_address}}</font></nobr>
153
- </td>
154
- </tr>
155
- </template>
156
- </data-grid>
157
- </criteria-paged>
158
- <div class="flex" style="height: 10%">
159
- <div novalidate class="form-inline auto" partial>
160
- <p class="bg-info text-center" style="padding: 8px;font-size: 20px">合计收费记录共
161
- <span style="color: red">{{chargeAll.count}}</span>笔,合计金额<span style="color: red">{{chargeAll.sum}}</span>元
162
- </p>
163
- </div>
164
- </div>
165
- </div>
166
- </template>
167
-
168
- <script>
169
- import {PagedList} from 'vue-client'
170
- import {HttpResetClass} from 'vue-client'
171
- export default {
172
- title: '报建收费明细',
173
- data () {
174
- return {
175
- model: new PagedList('rs/sql/getApplyCharge', 30, {
176
- data: {
177
- orgid: this.$login.f.orgid
178
- }
179
- }),
180
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
181
- paymentMethod: [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')],
182
- chargingStatus: [
183
- {label: '全部', value: ''},
184
- {label: '有效', value: '有效'},
185
- {label: '作废', value: '作废'}
186
- ],
187
- criteriaShow: false,
188
- chargeAll: {
189
- count: 0,
190
- sum: 0
191
- }
192
- }
193
- },
194
- ready () {
195
- // 调用查询
196
- this.search()
197
- },
198
- methods: {
199
- clear() {
200
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
201
- this.$refs.cp.$refs.cri.model[key] = []
202
- })
203
- },
204
- // 查询
205
- search () {
206
- this.$refs.cp.$refs.cri.search()
207
- this.getChargeAll()
208
- },
209
- async getChargeAll () {
210
- let http = new HttpResetClass()
211
- let data = {
212
- condition: this.model.condition,
213
- data: {
214
- orgid: this.$login.f.orgid
215
- }
216
- }
217
- let res = await http.load('POST', 'rs/sql/getChargeAll', {data: data}, {resolveMsg: null, rejectMsg: null})
218
-
219
- this.chargeAll = res.data[0]
220
- }
221
- }
222
- }
223
- </script>
224
-
225
- <style scoped>
226
- .button-range {
227
- display: flex;
228
- float: right;
229
- width: auto;
230
- align-items: center;
231
- }
232
- </style>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <div style="height: 95%">
5
+ <apply-charge-list v-ref:query ></apply-charge-list>
6
+ </div>
7
+ <p class="bg-info text-center" style="font-size: 20px;height: 5%">
8
+ 合计记录共<span style="color: red">&ensp;{{$refs.query.chargeAll.count}}&ensp;</span>笔,
9
+ 合计金额<span style="color: red">&ensp;{{$refs.query.chargeAll.sum}}&ensp;</span>元
10
+ </p>
11
+ </div>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ export default {
17
+ title: '报建收费明细',
18
+ data () {
19
+ return {
20
+ }
21
+ },
22
+ ready () {
23
+ },
24
+ methods: {
25
+ }
26
+ }
27
+ </script>
28
+
29
+ <style scoped>
30
+ </style>
@@ -1,165 +1,165 @@
1
- <template>
2
- <div class="basic-main">
3
- <div class="col-sm-10">
4
- <div class="col-sm-12" :style="{height: selectheight}">
5
- <installinfoselect v-ref:installselect></installinfoselect>
6
- </div>
7
- <div class="col-sm-12" :style="{height: funcheight}" v-if="show">
8
- <div class="col-sm-3">
9
- <installfeeinfo :selectdata="selectdata"></installfeeinfo>
10
- </div>
11
- <div class="col-sm-9">
12
- <div class="panel panel-info">
13
- <div class="panel-heading head auto" style="background-color: #e8f4ff">{{funcdata.title}}</div>
14
- <div class="panel-body" style="overflow: auto;">
15
- <function-service-control v-ref:func :funcdata="funcdata" :selectdata="selectdata"></function-service-control>
16
- </div>
17
- </div>
18
- </div>
19
- </div>
20
- </div>
21
- <div class="col-sm-2">
22
- <stop-apply-cardlist v-ref:card></stop-apply-cardlist>
23
- </div>
24
- </div>
25
- </template>
26
- <script>
27
- import Vue from 'vue'
28
- import {HttpResetClass} from 'vue-client'
29
- export default {
30
- title: '报建业务',
31
- data () {
32
- return {
33
- funcdata: null, // 选中功能
34
- selectdata: null,
35
- show: false,
36
- selectheight: '100%',
37
- funcheight: '0%'
38
- }
39
- },
40
- created () {
41
- this.getConfig()
42
- },
43
- methods: {
44
- // 获取功能配置
45
- getConfig () {
46
- let http = new HttpResetClass()
47
- let data = {
48
- data: this.$login.f
49
- }
50
- http.load('POST', 'rs/logic/ApplyGetFunction', {data: data}, {resolveMsg: null, rejectMsg: null}
51
- ).then((res) => {
52
- if (res.data.code && res.data.code === 200) {
53
- Vue.prototype.$function_vue = res.data.function_vue
54
- } else {
55
- this.$showMessage('获取配置失败,原因:' + res.data.msg)
56
- return
57
- }
58
- })
59
- }
60
- },
61
- events: {
62
- 'onMessage' (data) {
63
- console.log('接收消息')
64
- console.log(data)
65
- if (data.type === 'apply-task') {
66
- this.$refs.installselect.$refs.cp.$refs.cri.search()
67
- }
68
- },
69
- // 点击功能操作
70
- 'func' (funcdata, row) {
71
- this.funcdata = funcdata
72
- this.selectdata = row
73
- this.selectheight = '10%'
74
- this.funcheight = '90%'
75
- this.$refs.installselect.$refs.cp.pager = false
76
- this.show = true
77
- },
78
- 'close' () {
79
- this.show = false
80
- this.selectheight = '100%'
81
- this.funcheight = '0%'
82
- this.$refs.installselect.$refs.cp.$refs.cri.search()
83
- this.$refs.installselect.$refs.cp.pager = true
84
- },
85
- // 控制查询条件 显示高度
86
- 'hidden' (criteriaShow) {
87
- if (!this.show && !criteriaShow) {
88
-
89
- }
90
- if (!this.show && criteriaShow) {
91
-
92
- }
93
- if (this.show && !criteriaShow) {
94
- this.selectheight = '20%'
95
- this.funcheight = '80%'
96
- }
97
- if (this.show && criteriaShow) {
98
- this.selectheight = '10%'
99
- this.funcheight = '90%'
100
- }
101
- },
102
- 'query' () {
103
- this.show = false
104
- this.selectheight = '100%'
105
- this.funcheight = '0%'
106
- this.$refs.installselect.$refs.cp.$refs.cri.search()
107
- this.$refs.installselect.$refs.cp.pager = true
108
-
109
- this.$refs.card.$refs.paged.$refs.cri.search()
110
- },
111
- 'operate' (row) {
112
- this.show = false
113
- this.funcdata = {
114
- title: '撤销'
115
- }
116
- let http = new HttpResetClass()
117
- let data = {
118
- tablename: 't_apply',
119
- condition: `f_process_id='${row.processid}' and f_apply_orgs = '${this.$login.f.orgs}'`
120
- }
121
- http.load('POST', 'rs/sql/applysingleTable', {data: data}, {resolveMsg: null,rejectMsg: '工程查询失败'})
122
- .then(res => {
123
- console.log(res.data[0])
124
- this.selectdata = res.data[0]
125
- this.selectdata.stopapply = row
126
- this.selectheight = '10%'
127
- this.funcheight = '90%'
128
- this.$refs.installselect.$refs.cp.pager = false
129
- this.show = true
130
- })
131
- },
132
- // 刷新控制层
133
- async 'breakControl' () {
134
- let http = new HttpResetClass()
135
- let data = {
136
- tablename: "t_material",
137
- condition: `f_process_id = ${this.selectdata.f_process_id}`
138
- }
139
-
140
- try {
141
- let res = await http.load('POST', 'rs/sql/applysingleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
142
-
143
- this.showtotal = false
144
- this.selectdata = res.data[0]
145
- this.$nextTick(() => {
146
- this.showtotal = true
147
- })
148
- } catch (e) {
149
- this.$showAlert('数据更新失败,请手查询更新!!!', 'danger', 3000)
150
- }
151
- },
152
- 'selfsearch'() {
153
- this.$refs.installselect.$refs.cp.$refs.cri.search()
154
- },
155
- }
156
- }
157
- </script>
158
- <style scoped>
159
- .head{
160
- height: auto;
161
- font-weight: bold;
162
- color: #000000;
163
- font-family: 微软雅黑;
164
- }
165
- </style>
1
+ <template>
2
+ <div class="basic-main">
3
+ <div class="col-sm-10">
4
+ <div class="col-sm-12" :style="{height: selectheight}">
5
+ <installinfoselect v-ref:installselect></installinfoselect>
6
+ </div>
7
+ <div class="col-sm-12" :style="{height: funcheight}" v-if="show">
8
+ <div class="col-sm-3">
9
+ <installfeeinfo :selectdata="selectdata"></installfeeinfo>
10
+ </div>
11
+ <div class="col-sm-9" style="overflow: auto; height: 95%">
12
+ <div class="panel panel-info">
13
+ <div class="panel-heading head auto" style="background-color: #e8f4ff">{{funcdata.title}}</div>
14
+ <div class="panel-body">
15
+ <function-service-control v-ref:func :funcdata="funcdata" :selectdata="selectdata"></function-service-control>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ </div>
21
+ <div class="col-sm-2">
22
+ <stop-apply-cardlist v-ref:card></stop-apply-cardlist>
23
+ </div>
24
+ </div>
25
+ </template>
26
+ <script>
27
+ import Vue from 'vue'
28
+ import {HttpResetClass} from 'vue-client'
29
+ export default {
30
+ title: '报建业务',
31
+ data () {
32
+ return {
33
+ funcdata: null, // 选中功能
34
+ selectdata: null,
35
+ show: false,
36
+ selectheight: '100%',
37
+ funcheight: '0%'
38
+ }
39
+ },
40
+ created () {
41
+ this.getConfig()
42
+ },
43
+ methods: {
44
+ // 获取功能配置
45
+ getConfig () {
46
+ let http = new HttpResetClass()
47
+ let data = {
48
+ data: this.$login.f
49
+ }
50
+ http.load('POST', 'rs/logic/ApplyGetFunction', {data: data}, {resolveMsg: null, rejectMsg: null}
51
+ ).then((res) => {
52
+ if (res.data.code && res.data.code === 200) {
53
+ Vue.prototype.$function_vue = res.data.function_vue
54
+ } else {
55
+ this.$showMessage('获取配置失败,原因:' + res.data.msg)
56
+ return
57
+ }
58
+ })
59
+ }
60
+ },
61
+ events: {
62
+ 'onMessage' (data) {
63
+ console.log('接收消息')
64
+ console.log(data)
65
+ if (data.type === 'apply-task') {
66
+ this.$refs.installselect.$refs.cp.$refs.cri.search()
67
+ }
68
+ },
69
+ // 点击功能操作
70
+ 'func' (funcdata, row) {
71
+ this.funcdata = funcdata
72
+ this.selectdata = row
73
+ this.selectheight = '10%'
74
+ this.funcheight = '90%'
75
+ this.$refs.installselect.$refs.cp.pager = false
76
+ this.show = true
77
+ },
78
+ 'close' () {
79
+ this.show = false
80
+ this.selectheight = '100%'
81
+ this.funcheight = '0%'
82
+ this.$refs.installselect.$refs.cp.$refs.cri.search()
83
+ this.$refs.installselect.$refs.cp.pager = true
84
+ },
85
+ // 控制查询条件 显示高度
86
+ 'hidden' (criteriaShow) {
87
+ if (!this.show && !criteriaShow) {
88
+
89
+ }
90
+ if (!this.show && criteriaShow) {
91
+
92
+ }
93
+ if (this.show && !criteriaShow) {
94
+ this.selectheight = '20%'
95
+ this.funcheight = '80%'
96
+ }
97
+ if (this.show && criteriaShow) {
98
+ this.selectheight = '10%'
99
+ this.funcheight = '90%'
100
+ }
101
+ },
102
+ 'query' () {
103
+ this.show = false
104
+ this.selectheight = '100%'
105
+ this.funcheight = '0%'
106
+ this.$refs.installselect.$refs.cp.$refs.cri.search()
107
+ this.$refs.installselect.$refs.cp.pager = true
108
+
109
+ this.$refs.card.$refs.paged.$refs.cri.search()
110
+ },
111
+ 'operate' (row) {
112
+ this.show = false
113
+ this.funcdata = {
114
+ title: '撤销'
115
+ }
116
+ let http = new HttpResetClass()
117
+ let data = {
118
+ tablename: 't_apply',
119
+ condition: `f_process_id='${row.processid}' and f_apply_orgs = '${this.$login.f.orgs}'`
120
+ }
121
+ http.load('POST', 'rs/sql/applysingleTable', {data: data}, {resolveMsg: null,rejectMsg: '工程查询失败'})
122
+ .then(res => {
123
+ console.log(res.data[0])
124
+ this.selectdata = res.data[0]
125
+ this.selectdata.stopapply = row
126
+ this.selectheight = '10%'
127
+ this.funcheight = '90%'
128
+ this.$refs.installselect.$refs.cp.pager = false
129
+ this.show = true
130
+ })
131
+ },
132
+ // 刷新控制层
133
+ async 'breakControl' () {
134
+ let http = new HttpResetClass()
135
+ let data = {
136
+ tablename: "t_material",
137
+ condition: `f_process_id = ${this.selectdata.f_process_id}`
138
+ }
139
+
140
+ try {
141
+ let res = await http.load('POST', 'rs/sql/applysingleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
142
+
143
+ this.showtotal = false
144
+ this.selectdata = res.data[0]
145
+ this.$nextTick(() => {
146
+ this.showtotal = true
147
+ })
148
+ } catch (e) {
149
+ this.$showAlert('数据更新失败,请手查询更新!!!', 'danger', 3000)
150
+ }
151
+ },
152
+ 'selfsearch'() {
153
+ this.$refs.installselect.$refs.cp.$refs.cri.search()
154
+ },
155
+ }
156
+ }
157
+ </script>
158
+ <style scoped>
159
+ .head{
160
+ height: auto;
161
+ font-weight: bold;
162
+ color: #000000;
163
+ font-family: 微软雅黑;
164
+ }
165
+ </style>