apply-clients 3.5.4-92 → 3.5.4-94

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 (51) hide show
  1. package/build/dev-server.js +11 -6
  2. package/package.json +1 -1
  3. package/src/apply.js +139 -139
  4. package/src/components/android/AppCheckTakePic.vue +168 -168
  5. package/src/components/android/AppTakePic.vue +182 -182
  6. package/src/components/android/Process/AppServiceControl.vue +1755 -1755
  7. package/src/components/product/Material/MaterialDetailed.vue +268 -268
  8. package/src/components/product/PcZhihuanManagement.vue +160 -160
  9. package/src/components/product/Process/Processes/selectApply.vue +251 -251
  10. package/src/components/product/Process/Processes/selectBcakApply.vue +250 -250
  11. package/src/filiale/fugou/android/AppAddMaterialScience.vue +440 -440
  12. package/src/filiale/fugou/android/AppAddReplacement.vue +341 -341
  13. package/src/filiale/fugou/android/AppChargeManagement.vue +739 -739
  14. package/src/filiale/fugou/android/AppDevicesManagement.vue +519 -519
  15. package/src/filiale/fugou/android/AppInstallationDetails.vue +541 -541
  16. package/src/filiale/fugou/android/AppServiceControl.vue +1845 -1845
  17. package/src/filiale/fugou/android/AppZhihuanManagement.vue +197 -197
  18. package/src/filiale/fugou/android/printCharge.vue +162 -162
  19. package/src/filiale/fugou/android.js +16 -16
  20. package/src/filiale/fugou/pc/AddReplacement.vue +340 -340
  21. package/src/filiale/fugou/pc/ApplyChargeList.vue +480 -480
  22. package/src/filiale/fugou/pc/ExplorationSelect.vue +525 -525
  23. package/src/filiale/fugou/pc/ServiceControl.vue +1705 -1705
  24. package/src/filiale/fugou/pc/ServiceView.vue +941 -941
  25. package/src/filiale/fugou/pc/addMaterialScience.vue +481 -481
  26. package/src/filiale/fugou/pc/addressAndUserinfoManagement.vue +216 -216
  27. package/src/filiale/fugou/pc/chargeReport.vue +143 -143
  28. package/src/filiale/fugou/pc/devicesManagement.vue +483 -483
  29. package/src/filiale/fugou/pc/printChargepc.vue +148 -148
  30. package/src/filiale/fugou/pc.js +16 -16
  31. package/src/filiale/gongyi/android/AppAddMaterialScience.vue +493 -493
  32. package/src/filiale/qianneng/android/AppChargeManagement.vue +686 -686
  33. package/src/filiale/qianneng/android/AppServiceView.vue +795 -794
  34. package/src/filiale/qianneng/android.js +15 -15
  35. package/src/filiale/qianneng/pc/ApplyMaterialDetailed.vue +261 -261
  36. package/src/filiale/qianneng/pc/Applydetail.vue +378 -378
  37. package/src/filiale/qianneng/pc/InstallFunction.vue +188 -188
  38. package/src/filiale/qianneng/pc.js +29 -29
  39. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +520 -516
  40. package/src/filiale/yangchunboneng/android/AppDevicesManagement.vue +645 -645
  41. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +1703 -1681
  42. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +547 -547
  43. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +2112 -2112
  44. package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +605 -605
  45. package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +683 -683
  46. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +1052 -1052
  47. package/src/filiale/yangchunboneng/pc/devicesManagement.vue +574 -574
  48. package/src/main.js +4 -3
  49. package/src/test/SessionTestServlet.java +0 -69
  50. package/webapp/WEB-INF/web.xml +0 -52
  51. package/webapp/session-test.jsp +0 -59
@@ -1,268 +1,268 @@
1
- <template>
2
- <div class="flex-row">
3
- <div style="height: 95%" class="basic-main" >
4
- <criteria-paged :model="model" v-ref:cp>
5
- <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
6
- <div class="form-horizontal select-overspread container-fluid auto" partial>
7
- <div class="row">
8
- <div class="form-group col-sm-3">
9
- <label class="font_normal_body">组织机构:</label>
10
- <res-select
11
- restype='organization'
12
- :initresid='$parent.$parent.curorgid'
13
- @res-select="$parent.$parent.getorg"
14
- is-mul="false"
15
- ></res-select>
16
- </div>
17
- <div class="form-group col-sm-3">
18
- <label class="font_normal_body">工程编号:</label>
19
- <input type="text" style="width: 60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
20
- v-on:keyup.enter="$parent.$parent.search()"
21
- condition="a.f_apply_num like '%{}%'">
22
- </div>
23
- <div class="form-group col-sm-3">
24
- <label class="font_normal_body">操&ensp;作&ensp;人:</label>
25
- <input type="text" style="width: 60%" class="input_search" placeholder='操作人' v-model="model.f_operator"
26
- v-on:keyup.enter="$parent.$parent.search()"
27
- condition="ma.f_operator like '%{}%'">
28
- </div>
29
- <div class="form-group col-sm-3 button-range">
30
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
31
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
32
- <export-excel :data="$parent.$parent.getCondition"
33
- :field="$parent.$parent.getfield"
34
- sqlurl="rs/logic/applyExportfile"
35
- sql-name="applyGetMaterial"
36
- template-name='材料明细导出'
37
- :choose-col="true"></export-excel>
38
- <!-- <div-->
39
- <!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
40
- <!-- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"-->
41
- <!-- class="button_spacing"-->
42
- <!-- style="float: right">-->
43
- <!-- </div>-->
44
- </div>
45
- </div>
46
- <div class="row" v-show="$parent.$parent.criteriaShow">
47
- <div class="form-group col-sm-3">
48
- <label class="font_normal_body">用户编号:</label>
49
- <input type="text" style="width:60%" class="input_search" placeholder='用户编号' v-model="model.f_userinfo_code"
50
- v-on:keyup.enter="$parent.$parent.search()"
51
- condition="a.f_userinfo_code like '%{}%'">
52
- </div>
53
- <div class="form-group col-sm-3">
54
- <label class="font_normal_body">客户名称:</label>
55
- <input type="text" style="width: 60%" class="input_search" placeholder='客户名称' v-model="model.f_user_name"
56
- v-on:keyup.enter="$parent.$parent.search()"
57
- condition="a.f_user_name like '%{}%'">
58
- </div>
59
- <div class="form-group col-sm-3">
60
- <label class="font_normal_body">地&emsp;&emsp;址:</label>
61
- <input type="text" style="width: 60%" class="input_search" placeholder='地址' v-model="model.f_address"
62
- v-on:keyup.enter="$parent.$parent.search()"
63
- condition="a.f_address like '%{}%'">
64
- </div>
65
- <div class="form-group col-sm-3">
66
- <label class="font_normal_body">材料名称:</label>
67
- <input type="text" style="width: 60%" class="input_search" placeholder='材料名称' v-model="model.f_material_name"
68
- v-on:keyup.enter="$parent.$parent.search()"
69
- condition="ma.f_material_name = '{}'">
70
- </div>
71
- <div class="form-group col-sm-3">
72
- <label class="font_normal_body">材料型号:</label>
73
- <input type="text" style="width: 60%" class="input_search" placeholder='材料型号' v-model="model.f_material_style"
74
- v-on:keyup.enter="$parent.$parent.search()"
75
- condition="ma.f_material_style = '{}'">
76
- </div>
77
- <div class="form-group col-sm-3">
78
- <label class="font_normal_body">材料单位:</label>
79
- <input type="text" style="width: 60%" class="input_search" placeholder='材料单位' v-model="model.f_material_unit"
80
- v-on:keyup.enter="$parent.$parent.search()"
81
- condition="ma.f_material_unit = '{}'">
82
- </div>
83
- <div class="form-group col-sm-3">
84
- <label class="font_normal_body">材料数量:</label>
85
- <input type="text" style="width: 60%" class="input_search" placeholder='材料数量' v-model="model.f_material_number"
86
- v-on:keyup.enter="$parent.$parent.search()"
87
- condition="ma.f_material_number = '{}'">
88
- </div>
89
- <div class="form-group col-sm-3">
90
- <label class="font_normal_body">报警器编号:</label>
91
- <input type="text" style="width: 60%" class="input_search" placeholder='报警器编号' v-model="model.f_bjq_sid"
92
- v-on:keyup.enter="$parent.$parent.search()"
93
- condition="ma.f_bjq_sid = '{}'">
94
- </div>
95
- <div class="form-group col-sm-3">
96
- <label for="startDate" class="font_normal_body">开始时间:</label>
97
- <datepicker id="startDate" placeholder="开始日期"
98
- style="width: 60%!important;"
99
- v-model="model.startDate"
100
- :value.sync="model.startDate"
101
- :format="'yyyy-MM-dd 00:00:00'"
102
- :show-reset-button="true"
103
- condition="ma.f_operation_date >= '{}'">
104
- </datepicker>
105
- </div>
106
- <div class="form-group col-sm-3">
107
- <label for="endDate" class="font_normal_body">结束时间:</label>
108
- <datepicker id="endDate" placeholder="结束日期"
109
- style="width: 60%!important;"
110
- v-model="model.endDate"
111
- :value.sync="model.endDate"
112
- :format="'yyyy-MM-dd 23:59:59'"
113
- :show-reset-button="true"
114
- condition="ma.f_operation_date <= '{}'">
115
- </datepicker>
116
- </div>
117
- </div>
118
- </div>
119
- </criteria>
120
- <data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
121
- <template partial='head'>
122
- <tr>
123
- <th>序号</th>
124
- <th>工程编号</th>
125
- <th>客户名称</th>
126
- <th>地址</th>
127
- <th>材料名称</th>
128
- <th>材料型号</th>
129
- <th>材料单位</th>
130
- <th>材料数量</th>
131
- <th>报警器编号</th>
132
- <th>操作人</th>
133
- <th>操作时间</th>
134
- </tr>
135
- </template>
136
- <template partial='body'>
137
- <tr >
138
- <td style="text-align: center;">
139
- <nobr><font>{{$index+1}}</font></nobr>
140
- </td>
141
- <td style="text-align: center;">
142
- <nobr><font>{{row.f_apply_num}}</font></nobr>
143
- </td>
144
- <td style="text-align: center;">
145
- <nobr><font>{{row.f_user_name}}</font></nobr>
146
- </td>
147
- <td style="text-align: center;">
148
- <nobr><font>{{row.f_address}}</font></nobr>
149
- </td>
150
- <td style="text-align: center;">
151
- <nobr><font>{{row.f_material_name}}</font></nobr>
152
- </td>
153
- <td style="text-align: center;">
154
- <nobr><font>{{row.f_material_style}}</font></nobr>
155
- </td>
156
- <td style="text-align: center;">
157
- <nobr><font>{{row.f_material_unit}}</font></nobr>
158
- </td>
159
- <td style="text-align: center;">
160
- <nobr><font>{{row.f_material_number}}</font></nobr>
161
- </td>
162
- <td style="text-align: center;">
163
- <nobr><font>{{row.f_bjq_sid}}</font></nobr>
164
- </td>
165
- <td style="text-align: center;">
166
- <nobr><font>{{row.f_operator}}</font></nobr>
167
- </td>
168
- <td style="text-align: center;">
169
- <nobr><font>{{row.f_operation_date}}</font></nobr>
170
- </td>
171
- </tr>
172
- </template>
173
- </data-grid>
174
-
175
- </criteria-paged>
176
- <p class="bg-info text-center" style="font-size: 20px;height: 5%">
177
- 合计记录共<span style="color: red">{{chargeAll.count}}&ensp;</span>笔,
178
- 合计数量<span style="color: red">&ensp;{{chargeAll.sum}}&ensp;</span>
179
- </p>
180
- </div>
181
-
182
- </div>
183
- </template>
184
-
185
- <script>
186
- import {PagedList} from 'vue-client'
187
- import {HttpResetClass} from 'vue-client'
188
- export default {
189
- title: '材料明细',
190
- data () {
191
- return {
192
- model: new PagedList('rs/sql/applyGetMaterial', 30, null),
193
- curorgid: [this.$login.f.orgid],
194
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
195
- paymentMethod: [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')],
196
- chargeStatus: [
197
- {label: '全部', value: ''},
198
- {label: '有效', value: '有效'},
199
- {label: '作废', value: '作废'},
200
- {label: '退款', value: '退款'}
201
- ],
202
- criteriaShow: true,
203
- chargeAll: {
204
- count: 0,
205
- sum: 0
206
- },
207
- getfield: {
208
- 'f_apply_num': '工程编号',
209
- 'f_user_name': '客户名称',
210
- 'f_address': '地址',
211
- 'f_material_name': '材料名称',
212
- 'f_material_style': '材料型号',
213
- 'f_material_unit': '材料单位',
214
- 'f_material_number': '材料数量',
215
- 'f_operator': '操作人',
216
- 'f_operation_date': '操作时间'
217
- }
218
- }
219
- },
220
- ready () {
221
- // 调用查询
222
- this.search()
223
- },
224
- methods: {
225
- clear () {
226
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
227
- this.$refs.cp.$refs.cri.model[key] = ''
228
- })
229
- },
230
- searchCondition (args) {
231
- args.condition = args.condition + ` and ma.f_orgid = '${this.curorgid[0]}'`
232
- this.model.search(args.condition, args.model)
233
- },
234
- // 查询
235
- search () {
236
- this.$refs.cp.$refs.cri.search()
237
- this.getChargeAll()
238
- },
239
- async getChargeAll () {
240
- let http = new HttpResetClass()
241
- let data = {
242
- condition: this.model.condition
243
- }
244
- let res = await http.load('POST', 'rs/sql/getGetMaterial', {data: data}, {resolveMsg: null, rejectMsg: null})
245
- console.log(res.data[0])
246
- console.log('222')
247
- this.chargeAll = res.data[0]
248
- },
249
- getorg (val) {
250
- if (val.length <= 0) {
251
- return
252
- }
253
- this.curorgid = val
254
- this.search()
255
- }
256
- },
257
- computed: {
258
- getCondition () {
259
- return {
260
- condition: this.model.condition
261
- }
262
- }
263
- }
264
- }
265
- </script>
266
-
267
- <style scoped>
268
- </style>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div style="height: 95%" class="basic-main" >
4
+ <criteria-paged :model="model" v-ref:cp>
5
+ <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
6
+ <div class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="form-group col-sm-3">
9
+ <label class="font_normal_body">组织机构:</label>
10
+ <res-select
11
+ restype='organization'
12
+ :initresid='$parent.$parent.curorgid'
13
+ @res-select="$parent.$parent.getorg"
14
+ is-mul="false"
15
+ ></res-select>
16
+ </div>
17
+ <div class="form-group col-sm-3">
18
+ <label class="font_normal_body">工程编号:</label>
19
+ <input type="text" style="width: 60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
20
+ v-on:keyup.enter="$parent.$parent.search()"
21
+ condition="a.f_apply_num like '%{}%'">
22
+ </div>
23
+ <div class="form-group col-sm-3">
24
+ <label class="font_normal_body">操&ensp;作&ensp;人:</label>
25
+ <input type="text" style="width: 60%" class="input_search" placeholder='操作人' v-model="model.f_operator"
26
+ v-on:keyup.enter="$parent.$parent.search()"
27
+ condition="ma.f_operator like '%{}%'">
28
+ </div>
29
+ <div class="form-group col-sm-3 button-range">
30
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
31
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
32
+ <export-excel :data="$parent.$parent.getCondition"
33
+ :field="$parent.$parent.getfield"
34
+ sqlurl="rs/logic/applyExportfile"
35
+ sql-name="applyGetMaterial"
36
+ template-name='材料明细导出'
37
+ :choose-col="true"></export-excel>
38
+ <!-- <div-->
39
+ <!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
40
+ <!-- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"-->
41
+ <!-- class="button_spacing"-->
42
+ <!-- style="float: right">-->
43
+ <!-- </div>-->
44
+ </div>
45
+ </div>
46
+ <div class="row" v-show="$parent.$parent.criteriaShow">
47
+ <div class="form-group col-sm-3">
48
+ <label class="font_normal_body">用户编号:</label>
49
+ <input type="text" style="width:60%" class="input_search" placeholder='用户编号' v-model="model.f_userinfo_code"
50
+ v-on:keyup.enter="$parent.$parent.search()"
51
+ condition="a.f_userinfo_code like '%{}%'">
52
+ </div>
53
+ <div class="form-group col-sm-3">
54
+ <label class="font_normal_body">客户名称:</label>
55
+ <input type="text" style="width: 60%" class="input_search" placeholder='客户名称' v-model="model.f_user_name"
56
+ v-on:keyup.enter="$parent.$parent.search()"
57
+ condition="a.f_user_name like '%{}%'">
58
+ </div>
59
+ <div class="form-group col-sm-3">
60
+ <label class="font_normal_body">地&emsp;&emsp;址:</label>
61
+ <input type="text" style="width: 60%" class="input_search" placeholder='地址' v-model="model.f_address"
62
+ v-on:keyup.enter="$parent.$parent.search()"
63
+ condition="a.f_address like '%{}%'">
64
+ </div>
65
+ <div class="form-group col-sm-3">
66
+ <label class="font_normal_body">材料名称:</label>
67
+ <input type="text" style="width: 60%" class="input_search" placeholder='材料名称' v-model="model.f_material_name"
68
+ v-on:keyup.enter="$parent.$parent.search()"
69
+ condition="ma.f_material_name = '{}'">
70
+ </div>
71
+ <div class="form-group col-sm-3">
72
+ <label class="font_normal_body">材料型号:</label>
73
+ <input type="text" style="width: 60%" class="input_search" placeholder='材料型号' v-model="model.f_material_style"
74
+ v-on:keyup.enter="$parent.$parent.search()"
75
+ condition="ma.f_material_style = '{}'">
76
+ </div>
77
+ <div class="form-group col-sm-3">
78
+ <label class="font_normal_body">材料单位:</label>
79
+ <input type="text" style="width: 60%" class="input_search" placeholder='材料单位' v-model="model.f_material_unit"
80
+ v-on:keyup.enter="$parent.$parent.search()"
81
+ condition="ma.f_material_unit = '{}'">
82
+ </div>
83
+ <div class="form-group col-sm-3">
84
+ <label class="font_normal_body">材料数量:</label>
85
+ <input type="text" style="width: 60%" class="input_search" placeholder='材料数量' v-model="model.f_material_number"
86
+ v-on:keyup.enter="$parent.$parent.search()"
87
+ condition="ma.f_material_number = '{}'">
88
+ </div>
89
+ <div class="form-group col-sm-3">
90
+ <label class="font_normal_body">报警器编号:</label>
91
+ <input type="text" style="width: 60%" class="input_search" placeholder='报警器编号' v-model="model.f_bjq_sid"
92
+ v-on:keyup.enter="$parent.$parent.search()"
93
+ condition="ma.f_bjq_sid = '{}'">
94
+ </div>
95
+ <div class="form-group col-sm-3">
96
+ <label for="startDate" class="font_normal_body">开始时间:</label>
97
+ <datepicker id="startDate" placeholder="开始日期"
98
+ style="width: 60%!important;"
99
+ v-model="model.startDate"
100
+ :value.sync="model.startDate"
101
+ :format="'yyyy-MM-dd 00:00:00'"
102
+ :show-reset-button="true"
103
+ condition="ma.f_operation_date >= '{}'">
104
+ </datepicker>
105
+ </div>
106
+ <div class="form-group col-sm-3">
107
+ <label for="endDate" class="font_normal_body">结束时间:</label>
108
+ <datepicker id="endDate" placeholder="结束日期"
109
+ style="width: 60%!important;"
110
+ v-model="model.endDate"
111
+ :value.sync="model.endDate"
112
+ :format="'yyyy-MM-dd 23:59:59'"
113
+ :show-reset-button="true"
114
+ condition="ma.f_operation_date <= '{}'">
115
+ </datepicker>
116
+ </div>
117
+ </div>
118
+ </div>
119
+ </criteria>
120
+ <data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
121
+ <template partial='head'>
122
+ <tr>
123
+ <th>序号</th>
124
+ <th>工程编号</th>
125
+ <th>客户名称</th>
126
+ <th>地址</th>
127
+ <th>材料名称</th>
128
+ <th>材料型号</th>
129
+ <th>材料单位</th>
130
+ <th>材料数量</th>
131
+ <th>报警器编号</th>
132
+ <th>操作人</th>
133
+ <th>操作时间</th>
134
+ </tr>
135
+ </template>
136
+ <template partial='body'>
137
+ <tr >
138
+ <td style="text-align: center;">
139
+ <nobr><font>{{$index+1}}</font></nobr>
140
+ </td>
141
+ <td style="text-align: center;">
142
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
143
+ </td>
144
+ <td style="text-align: center;">
145
+ <nobr><font>{{row.f_user_name}}</font></nobr>
146
+ </td>
147
+ <td style="text-align: center;">
148
+ <nobr><font>{{row.f_address}}</font></nobr>
149
+ </td>
150
+ <td style="text-align: center;">
151
+ <nobr><font>{{row.f_material_name}}</font></nobr>
152
+ </td>
153
+ <td style="text-align: center;">
154
+ <nobr><font>{{row.f_material_style}}</font></nobr>
155
+ </td>
156
+ <td style="text-align: center;">
157
+ <nobr><font>{{row.f_material_unit}}</font></nobr>
158
+ </td>
159
+ <td style="text-align: center;">
160
+ <nobr><font>{{row.f_material_number}}</font></nobr>
161
+ </td>
162
+ <td style="text-align: center;">
163
+ <nobr><font>{{row.f_bjq_sid}}</font></nobr>
164
+ </td>
165
+ <td style="text-align: center;">
166
+ <nobr><font>{{row.f_operator}}</font></nobr>
167
+ </td>
168
+ <td style="text-align: center;">
169
+ <nobr><font>{{row.f_operation_date}}</font></nobr>
170
+ </td>
171
+ </tr>
172
+ </template>
173
+ </data-grid>
174
+
175
+ </criteria-paged>
176
+ <p class="bg-info text-center" style="font-size: 20px;height: 5%">
177
+ 合计记录共<span style="color: red">{{chargeAll.count}}&ensp;</span>笔,
178
+ 合计数量<span style="color: red">&ensp;{{chargeAll.sum}}&ensp;</span>
179
+ </p>
180
+ </div>
181
+
182
+ </div>
183
+ </template>
184
+
185
+ <script>
186
+ import {PagedList} from 'vue-client'
187
+ import {HttpResetClass} from 'vue-client'
188
+ export default {
189
+ title: '材料明细',
190
+ data () {
191
+ return {
192
+ model: new PagedList('rs/sql/applyGetMaterial', 30, null),
193
+ curorgid: [this.$login.f.orgid],
194
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
195
+ paymentMethod: [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')],
196
+ chargeStatus: [
197
+ {label: '全部', value: ''},
198
+ {label: '有效', value: '有效'},
199
+ {label: '作废', value: '作废'},
200
+ {label: '退款', value: '退款'}
201
+ ],
202
+ criteriaShow: true,
203
+ chargeAll: {
204
+ count: 0,
205
+ sum: 0
206
+ },
207
+ getfield: {
208
+ 'f_apply_num': '工程编号',
209
+ 'f_user_name': '客户名称',
210
+ 'f_address': '地址',
211
+ 'f_material_name': '材料名称',
212
+ 'f_material_style': '材料型号',
213
+ 'f_material_unit': '材料单位',
214
+ 'f_material_number': '材料数量',
215
+ 'f_operator': '操作人',
216
+ 'f_operation_date': '操作时间'
217
+ }
218
+ }
219
+ },
220
+ ready () {
221
+ // 调用查询
222
+ this.search()
223
+ },
224
+ methods: {
225
+ clear () {
226
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
227
+ this.$refs.cp.$refs.cri.model[key] = ''
228
+ })
229
+ },
230
+ searchCondition (args) {
231
+ args.condition = args.condition + ` and ma.f_orgid = '${this.curorgid[0]}'`
232
+ this.model.search(args.condition, args.model)
233
+ },
234
+ // 查询
235
+ search () {
236
+ this.$refs.cp.$refs.cri.search()
237
+ this.getChargeAll()
238
+ },
239
+ async getChargeAll () {
240
+ let http = new HttpResetClass()
241
+ let data = {
242
+ condition: this.model.condition
243
+ }
244
+ let res = await http.load('POST', 'rs/sql/getGetMaterial', {data: data}, {resolveMsg: null, rejectMsg: null})
245
+ console.log(res.data[0])
246
+ console.log('222')
247
+ this.chargeAll = res.data[0]
248
+ },
249
+ getorg (val) {
250
+ if (val.length <= 0) {
251
+ return
252
+ }
253
+ this.curorgid = val
254
+ this.search()
255
+ }
256
+ },
257
+ computed: {
258
+ getCondition () {
259
+ return {
260
+ condition: this.model.condition
261
+ }
262
+ }
263
+ }
264
+ }
265
+ </script>
266
+
267
+ <style scoped>
268
+ </style>