apply-clients 3.4.2 → 3.4.3

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 (85) hide show
  1. package/android.html +23 -23
  2. package/build/dev-server.js +119 -119
  3. package/build/webpack.base.conf.js +2 -1
  4. package/build/webpack.dev.conf.js +12 -0
  5. package/dingding.html +23 -0
  6. package/index.html +33 -33
  7. package/package.json +2 -1
  8. package/src/AndroidApp.vue +35 -35
  9. package/src/DingDingApp.vue +51 -0
  10. package/src/android.js +21 -21
  11. package/src/apply.js +7 -1
  12. package/src/applyAndroid.js +32 -32
  13. package/src/applyDingDing.js +12 -0
  14. package/src/components/android/AppOnetomany.vue +301 -301
  15. package/src/components/android/AppServiceView.vue +566 -566
  16. package/src/components/android/AppSign.vue +142 -142
  17. package/src/components/android/AppTakePic.vue +143 -143
  18. package/src/components/android/Process/AppExplorationUser.vue +320 -320
  19. package/src/components/android/Process/AppServiceControl.vue +757 -757
  20. package/src/components/android/Process/Processes/AppInstallationDetails.vue +456 -456
  21. package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -64
  22. package/src/components/android/Supervisory/AppSupervisoryCart.vue +121 -121
  23. package/src/components/android/TaskGraph.vue +125 -125
  24. package/src/components/product/Business/BusinessApply.vue +269 -0
  25. package/src/components/product/Business/CivilApply.vue +269 -0
  26. package/src/components/product/Function/InstallFunction.vue +131 -125
  27. package/src/components/product/Function/InstallInfoSelect.vue +300 -292
  28. package/src/components/product/Function/Service/FunctionServiceControl.vue +420 -222
  29. package/src/components/product/GroupByApply/ApplyGroupByList.vue +253 -0
  30. package/src/components/product/GroupByApply/ApplyGroupByMain.vue +53 -0
  31. package/src/components/product/GroupByApply/ApplyGroupByPaper.vue +376 -0
  32. package/src/components/product/Material/MaterialDetailed.vue +262 -0
  33. package/src/components/product/Onetomany.vue +377 -377
  34. package/src/components/product/Print/BuildOrder/buildOrderList.vue +339 -0
  35. package/src/components/product/Print/BuildOrder/printBuildOrder.vue +157 -0
  36. package/src/components/product/Print/IgnitionBill/IgnitionBill.vue +259 -0
  37. package/src/components/product/Print/IgnitionBill/printIgnitionBill.vue +168 -0
  38. package/src/components/product/Process/ExplorationSelect.vue +7 -0
  39. package/src/components/product/Process/ExplorationUser.vue +138 -138
  40. package/src/components/product/Process/Processes/InstallationDetails.vue +592 -592
  41. package/src/components/product/Process/Processes/Print/printCharge.vue +142 -142
  42. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +207 -207
  43. package/src/components/product/Process/Processes/chargeManagement.vue +638 -639
  44. package/src/components/product/Process/Service/ServiceControl.vue +10 -10
  45. package/src/components/product/Process/Service/ShowBackReason.vue +33 -33
  46. package/src/components/product/ServiceView.vue +631 -631
  47. package/src/components/product/Stop/StopApply.vue +105 -103
  48. package/src/components/product/Stop/StopApplyList.vue +269 -269
  49. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +186 -186
  50. package/src/components/product/Supervisory/SupervisoryControl.vue +100 -100
  51. package/src/components/product/Supervisory/SupervisoryList.vue +233 -233
  52. package/src/components/product/Supervisory/SupervisoryhCart.vue +107 -107
  53. package/src/components/product/VueUtils/ApplyUpload.vue +273 -273
  54. package/src/components/product/VueUtils/HighMeter.vue +208 -208
  55. package/src/dingding.js +19 -0
  56. package/src/expandcssAndroid.less +1034 -1034
  57. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +735 -731
  58. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +824 -824
  59. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetailsCivil.vue +650 -650
  60. package/src/filiale/yuchuan/android/Sign/AppSignTask.vue +182 -182
  61. package/src/filiale/yuchuan/android/Sign/BuildSign.vue +50 -50
  62. package/src/filiale/yuchuan/android/Sign/ConstructSign.vue +50 -50
  63. package/src/filiale/yuchuan/android/Sign/DesignSign.vue +50 -50
  64. package/src/filiale/yuchuan/android/Sign/SupervisorSign.vue +50 -50
  65. package/src/filiale/yuchuan/android/Task/Build/BuildTsak.vue +60 -60
  66. package/src/filiale/yuchuan/android/Task/Survey/SurveyTsak.vue +60 -60
  67. package/src/filiale/yuchuan/android.js +14 -14
  68. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +528 -528
  69. package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +343 -343
  70. package/src/filiale/yuchuan/pc/Print/BuildOrder/buildOrderList.vue +264 -0
  71. package/src/filiale/yuchuan/pc/Print/BuildOrder/printBuildOrder.vue +152 -0
  72. package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +149 -149
  73. package/src/filiale/yuchuan/pc/Process/Processes/ApplyMapCom.vue +67 -67
  74. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetails.vue +809 -809
  75. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetailsCivil.vue +595 -595
  76. package/src/filiale/yuchuan/pc/Process/Processes/Print/printCharge.vue +125 -0
  77. package/src/filiale/yuchuan/pc/Process/Processes/chargeManagement.vue +621 -470
  78. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +1108 -1074
  79. package/src/filiale/yuchuan/pc/Sign/SignRecord.vue +24 -0
  80. package/src/filiale/yuchuan/pc/Sign/SignRecordList.vue +174 -0
  81. package/src/filiale/yuchuan/pc.js +20 -12
  82. package/src/main.js +1 -1
  83. package/src/components/product/Function/StopApplyCrrdList.vue +0 -176
  84. package/src/components/product/Function/functions/ApplyRecordCancel.vue +0 -102
  85. package/src/components/product/Function/functions/StopInstall.vue +0 -106
@@ -0,0 +1,376 @@
1
+ <template>
2
+ <criteria-paged :model="model" v-ref:cp>
3
+ <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
4
+ <div class="form-horizontal select-overspread container-fluid auto" partial>
5
+ <div class="row">
6
+ <div class="form-group col-sm-3">
7
+ <label class="font_normal_body">组织机构:</label>
8
+ <res-select
9
+ restype='organization'
10
+ :initresid='$parent.$parent.curorgid'
11
+ @res-select="$parent.$parent.getorg"
12
+ :is-mul="false"
13
+ ></res-select>
14
+ </div>
15
+ <div class="form-group col-sm-3">
16
+ <label for="startDate" class="font_normal_body">开始时间:</label>
17
+ <datepicker id="startDate" placeholder="开始日期"
18
+ style="width: 60%!important;"
19
+ v-model="model.startDate"
20
+ :value.sync="model.startDate"
21
+ :format="'yyyy-MM-dd 00:00:00'"
22
+ :show-reset-button="true"
23
+ condition="a.f_apply_date >= '{}'">
24
+ </datepicker>
25
+ </div>
26
+ <div class="form-group col-sm-3">
27
+ <label for="endDate" class="font_normal_body">结束时间:</label>
28
+ <datepicker id="endDate" placeholder="结束日期"
29
+ style="width: 60%!important;"
30
+ v-model="model.endDate"
31
+ :value.sync="model.endDate"
32
+ :format="'yyyy-MM-dd 23:59:59'"
33
+ :show-reset-button="true"
34
+ condition="a.f_apply_date <= '{}'">
35
+ </datepicker>
36
+ </div>
37
+ <div class="form-group col-sm-3 button-range">
38
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
39
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
40
+ <export-excel :data="$parent.$parent.getCondition"
41
+ :field="$parent.$parent.getfield"
42
+ sqlurl="rs/logic/applyExportfile"
43
+ sql-name="getApplyCharge"
44
+ template-name='收费记录信息导出'
45
+ :choose-col="true"></export-excel>
46
+ <div
47
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
48
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
49
+ class="button_spacing"
50
+ style="float: right">
51
+ </div>
52
+ </div>
53
+ </div>
54
+ <div class="row" v-show="$parent.$parent.criteriaShow">
55
+ <div class="form-group col-sm-3">
56
+ <label class="font_normal_body">房产名称:</label>
57
+ <input type="text" style="width: 60%" class="input_search" placeholder='房产名称' v-model="model.f_user_name"
58
+ v-on:keyup.enter="$parent.$parent.search()"
59
+ condition="a.f_user_name = '{}'">
60
+ </div>
61
+ <div class="form-group col-sm-3">
62
+ <label class="font_normal_body">地址:</label>
63
+ <input type="text" style="width: 60%" class="input_search" placeholder='地址' v-model="model.f_residential_area"
64
+ v-on:keyup.enter="$parent.$parent.search()"
65
+ condition="a.f_residential_area = '{}'">
66
+ </div>
67
+ <div class="form-group col-sm-3">
68
+ <label class="font_normal_body">报建地区:</label>
69
+ <v-select
70
+ v-model="model.f_entry_type"
71
+ placeholder='请选择'
72
+ condition="a.f_entry_type = '{}'"
73
+ :value.sync="model.f_entry_type"
74
+ :options='$parent.$parent.applytype'
75
+ class="select select_list"
76
+ :value-single="true"
77
+ @change="$parent.$parent.applyTypeChange()"
78
+ close-on-select ></v-select>
79
+ </div>
80
+ <div class="form-group col-sm-3">
81
+ <label class="font_normal_body">报建性质:</label>
82
+ <v-select
83
+ v-model="model.f_apply_nature"
84
+ placeholder='报建性质'
85
+ condition="a.f_apply_nature = '{}'"
86
+ :value.sync="model.f_apply_nature"
87
+ :options='$parent.$parent.applyNatures'
88
+ class="select select_list"
89
+ :value-single="true"
90
+ close-on-select ></v-select>
91
+ </div>
92
+ <div class="form-group col-sm-3">
93
+ <label class="font_normal_body">合同编号:</label>
94
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_contract_number"
95
+ v-on:keyup.enter="$parent.$parent.search()" condition="a.f_contract_number like '%{}%'" placeholder='合同编号'>
96
+ </div>
97
+ <div class="form-group col-sm-3">
98
+ <label class="font_normal_body">工程编号:</label>
99
+ <input type="text" style="width:60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
100
+ v-on:keyup.enter="$parent.$parent.search()"
101
+ condition="a.f_apply_num like '%{}%'">
102
+ </div>
103
+ <div class="form-group col-sm-3">
104
+ <label class="font_normal_body">项目负责人:</label>
105
+ <input type="text" style="width:60%" class="input_search" placeholder='项目负责人' v-model="model.f_corporate_name"
106
+ v-on:keyup.enter="$parent.$parent.search()"
107
+ condition="a.f_corporate_name like '%{}%'">
108
+ </div>
109
+ <div class="form-group col-sm-3">
110
+ <label class="font_normal_body">联系电话:</label>
111
+ <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
112
+ v-on:keyup.enter="$parent.$parent.search()"
113
+ condition="a.f_phone like '%{}%'">
114
+ </div>
115
+ <div class="form-group col-sm-3">
116
+ <label class="font_normal_body">工程状态(是否完工):</label>
117
+ <v-select
118
+ v-model="model.F_is_STATE"
119
+ placeholder='请选择'
120
+ condition="a.f_is_wangong='{}'"
121
+ :value.sync="model.F_is_STATE"
122
+ :options='$parent.$parent.chargeStatus'
123
+ class="select select_list"
124
+ :value-single="true"
125
+ close-on-select ></v-select>
126
+ </div>
127
+
128
+ <div class="form-group col-sm-3">
129
+ <label class="font_normal_body">合同金额:</label>
130
+ <input type="text" style="width: 60%" class="input_search" placeholder='合同金额' v-model="model.f_contract_money"
131
+ v-on:keyup.enter="$parent.$parent.search()"
132
+ condition="a.f_contract_money = '{}'">
133
+ </div>
134
+ <div class="form-group col-sm-3">
135
+ <label class="font_normal_body">责任人:</label>
136
+ <v-select
137
+ v-model="model.f_operator"
138
+ placeholder='请选择'
139
+ condition="a.f_operator = '{}'"
140
+ :value.sync="model.f_operator"
141
+ class="select select_list"
142
+ :options='$parent.$parent.operatorList'
143
+ :value-single="true"
144
+ close-on-select ></v-select>
145
+ </div>
146
+ </div>
147
+ </div>
148
+ </criteria>
149
+ <data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
150
+ <template partial='head'>
151
+ <tr>
152
+ <th style="text-align: center;" colspan="18">周口市已签房产项目</th>
153
+ </tr>
154
+ <tr>
155
+ <th style="white-space: nowrap;">序号</th>
156
+ <th style="white-space: nowrap;">房产名称</th>
157
+ <th style="white-space: nowrap;">地址</th>
158
+ <th style="white-space: nowrap;">报建地区</th>
159
+ <th style="white-space: nowrap;">报建性质</th>
160
+ <th style="white-space: nowrap;">签约户数</th>
161
+ <th style="white-space: nowrap;">签约时间</th>
162
+ <th style="white-space: nowrap;">合同金额(元)</th>
163
+ <th style="white-space: nowrap;">已回款金额(元)</th>
164
+ <th style="white-space: nowrap;">剩余金额(元)</th>
165
+ <th style="white-space: nowrap;">签约金额</th>
166
+ <th style="white-space: nowrap;">签约单位价格(元)</th>
167
+ <th style="white-space: nowrap;">备注</th>
168
+ <th style="white-space: nowrap;">签约合同之外回款</th>
169
+ <th style="white-space: nowrap;">项目负责人</th>
170
+ <th style="white-space: nowrap;">联系电话</th>
171
+ <th style="white-space: nowrap;">责任人</th>
172
+ </tr>
173
+ </template>
174
+ <template partial='body'>
175
+ <tr >
176
+ <td style="text-align: center;">
177
+ <nobr><font>{{$index+1}}</font></nobr>
178
+ </td>
179
+ <td style="text-align: center;">
180
+ <nobr><font>{{row.f_user_name}}</font></nobr>
181
+ </td>
182
+ <td style="text-align: center;">
183
+ <nobr><font>{{row.f_residential_area}}</font></nobr>
184
+ </td>
185
+ <td style="text-align: center;">
186
+ <nobr><font>{{row.f_entry_type}}</font></nobr>
187
+ </td>
188
+ <td style="text-align: center;">
189
+ <nobr><font>{{row.f_apply_nature}}</font></nobr>
190
+ </td>
191
+ <td style="text-align: center;">
192
+ <nobr><font>{{row.f_apply_count}}</font></nobr>
193
+ </td>
194
+ <td style="text-align: center;">
195
+ <nobr><font>{{row.f_apply_date}}</font></nobr>
196
+ </td>
197
+ <td style="text-align: center;">
198
+ <nobr><font>{{row.f_contract_money}}</font></nobr>
199
+ </td>
200
+ <td style="text-align: center;">
201
+ <nobr><font>{{row.f_cumulative_payment_money}}</font></nobr>
202
+ </td>
203
+ <td style="text-align: center;">
204
+ <nobr><font>{{row.f_surplus_money}}</font></nobr>
205
+ </td>
206
+ <td style="text-align: center;">
207
+ <nobr><font>{{row.f_qy_jine}}</font></nobr>
208
+ </td>
209
+ <td style="text-align: center;">
210
+ <nobr><font>{{row.f_qy_danjia}}</font></nobr>
211
+ </td>
212
+ <td style="text-align: center;">
213
+ <nobr><font>{{row.f_apply_remarks}}</font></nobr>
214
+ </td>
215
+ <td style="text-align: center;">
216
+ <nobr><font>{{row.f_add_contract_money}}</font></nobr>
217
+ </td>
218
+ <td style="text-align: center;">
219
+ <nobr><font>{{row.f_corporate_name}}</font></nobr>
220
+ </td>
221
+ <td style="text-align: center;">
222
+ <nobr><font>{{row.f_phone}}</font></nobr>
223
+ </td>
224
+ <td style="text-align: center;">
225
+ <nobr><font>{{row.f_operator}}</font></nobr>
226
+ </td>
227
+ </tr>
228
+ </template>
229
+ </data-grid>
230
+ </criteria-paged>
231
+ </template>
232
+
233
+ <script>
234
+ import {PagedList} from 'vue-client'
235
+ import {HttpResetClass} from 'vue-client'
236
+ import {isEmpty} from "../../Util";
237
+ export default {
238
+ title: '报建团购数据查询列表',
239
+ data () {
240
+ return {
241
+ model: new PagedList('rs/sql/getGroupBy', 30, null),
242
+ curorgid: [this.$login.f.orgid],
243
+ curdepid: [],
244
+ servicerList:[],
245
+ operatorList:[],
246
+ curuserid: [],
247
+ // paymentTerm :[{label: '全部', value: ''}, ...this.$appdata.getParam('收费项目')],
248
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建地区')],
249
+ applyNatures: [{label: '全部', value: ''},...this.$appdata.getParam('团购报建性质')], // 报建性质
250
+ // istongqi: [{label: '全部', value: ''},
251
+ // {label: '是', value: '是'},
252
+ // {label: '否', value: '否'},
253
+ // ],
254
+ chargeStatus: [
255
+ {label: '全部', value: ''},
256
+ {label: '是', value: '是'},
257
+ {label: '否', value: '否'},
258
+ ],
259
+ criteriaShow: false,
260
+ chargeAll: {
261
+ count: 0,
262
+ sum: 0
263
+ },
264
+ getfield: {
265
+ 'f_apply_num': '工程编号',
266
+ 'f_contract_number': '合同编号',
267
+ 'f_user_name': '房产名称',
268
+ 'f_residential_area':'地址',
269
+ 'f_entry_type':'报建地区',
270
+ 'f_apply_nature': '报建性质',
271
+ 'f_apply_count': '签约户数',
272
+ 'f_apply_date':'签约时间',
273
+ 'f_contract_money':'签约金额(万元)',
274
+ 'f_cumulative_payment_money':'已回款金额(万元)',
275
+ 'f_surplus_money':'剩余金额(万元)',
276
+ 'f_qy_jine':'签约金额',
277
+ 'f_qy_danjia':'签约单价(元)',
278
+ 'f_apply_remarks': '备注',
279
+ 'f_add_contract_money': '签约合同之外回款',
280
+ 'f_corporate_name': '项目负责人',
281
+ 'f_phone': '联系电话',
282
+ 'f_operator': '责任人',
283
+
284
+ }
285
+ }
286
+ },
287
+ ready () {
288
+ // 调用查询
289
+ this.search()
290
+ this.getapplyoperator()
291
+ },
292
+ methods: {
293
+ async getapplyoperator(){
294
+ let data = {
295
+ condition: `1=1 and f_apply_type='团购报建'`
296
+ }
297
+ let http = new HttpResetClass()
298
+ let res = await http.load('POST', 'rs/sql/getapplyOperator', {data: data}, {resolveMsg: null, rejectMsg: null})
299
+ res.data.forEach(item => {
300
+ this.operatorList.push({
301
+ 'label': item.f_operator,
302
+ 'value': item.f_operator
303
+ })
304
+ })},
305
+
306
+ applyTypeChange () {
307
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
308
+ this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
309
+ } else {
310
+ this.applyNatures = [{label: '全部', value: ''}]
311
+ }
312
+ },
313
+ clear () {
314
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
315
+ this.$refs.cp.$refs.cri.model[key] = ''
316
+ })
317
+ this.curdepid = []
318
+ this.curuserid = []
319
+ },
320
+ searchCondition (args) {
321
+ args.condition = args.condition + ` and f_orgid in (${this.curorgid})`
322
+ if (this.curdepid.length > 0) {
323
+ args.condition = args.condition + ` and f_depid in (${this.curdepid})`
324
+ }
325
+ if (this.curuserid.length > 0) {
326
+ args.condition = args.condition + ` and f_charge_collectors_id in (${this.curuserid})`
327
+ }
328
+ this.model.search(args.condition, args.model)
329
+ },
330
+ // 查询
331
+ search () {
332
+ this.$refs.cp.$refs.cri.search()
333
+ this.getapplyoperator()
334
+ },
335
+
336
+ getuser (val) {
337
+ if (val.length <= 0) {
338
+ return
339
+ }
340
+ this.curuserid = val
341
+ this.search()
342
+ },
343
+ getdep (val) {
344
+ if (val.length <= 0) {
345
+ return
346
+ }
347
+ this.curdepid = val
348
+ this.curuserid = []
349
+ this.search()
350
+ },
351
+ getorg (val) {
352
+ if (val.length <= 0) {
353
+ return
354
+ }
355
+ this.curorgid = val
356
+ this.curdepid = []
357
+ this.curuserid = []
358
+ this.search()
359
+ },
360
+
361
+ },
362
+ computed: {
363
+ getCondition () {
364
+ return {
365
+ condition: this.model.condition
366
+ }
367
+ },
368
+ selected() {
369
+ return this.$refs.cp.$refs.grid.selected
370
+ }
371
+ }
372
+ }
373
+ </script>
374
+
375
+ <style scoped>
376
+ </style>
@@ -0,0 +1,262 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div style="height: 95%" >
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 = '{}'">
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_user_name"
50
+ v-on:keyup.enter="$parent.$parent.search()"
51
+ condition="a.f_user_name like '%{}%'">
52
+ </div>
53
+ <div class="form-group col-sm-3">
54
+ <label class="font_normal_body">地&emsp;&emsp;址:</label>
55
+ <input type="text" style="width: 60%" class="input_search" placeholder='地址' v-model="model.f_address"
56
+ v-on:keyup.enter="$parent.$parent.search()"
57
+ condition="a.f_address like '%{}%'">
58
+ </div>
59
+ <div class="form-group col-sm-3">
60
+ <label class="font_normal_body">材料名称:</label>
61
+ <input type="text" style="width: 60%" class="input_search" placeholder='材料名称' v-model="model.f_material_name"
62
+ v-on:keyup.enter="$parent.$parent.search()"
63
+ condition="ma.f_material_name = '{}'">
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_style"
68
+ v-on:keyup.enter="$parent.$parent.search()"
69
+ condition="ma.f_material_style = '{}'">
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_unit"
74
+ v-on:keyup.enter="$parent.$parent.search()"
75
+ condition="ma.f_material_unit = '{}'">
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_number"
80
+ v-on:keyup.enter="$parent.$parent.search()"
81
+ condition="ma.f_material_number = '{}'">
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_bjq_sid"
86
+ v-on:keyup.enter="$parent.$parent.search()"
87
+ condition="ma.f_bjq_sid = '{}'">
88
+ </div>
89
+ <div class="form-group col-sm-3">
90
+ <label for="startDate" class="font_normal_body">开始时间:</label>
91
+ <datepicker id="startDate" placeholder="开始日期"
92
+ style="width: 60%!important;"
93
+ v-model="model.startDate"
94
+ :value.sync="model.startDate"
95
+ :format="'yyyy-MM-dd 00:00:00'"
96
+ :show-reset-button="true"
97
+ condition="ma.f_operation_date >= '{}'">
98
+ </datepicker>
99
+ </div>
100
+ <div class="form-group col-sm-3">
101
+ <label for="endDate" class="font_normal_body">结束时间:</label>
102
+ <datepicker id="endDate" placeholder="结束日期"
103
+ style="width: 60%!important;"
104
+ v-model="model.endDate"
105
+ :value.sync="model.endDate"
106
+ :format="'yyyy-MM-dd 23:59:59'"
107
+ :show-reset-button="true"
108
+ condition="ma.f_operation_date <= '{}'">
109
+ </datepicker>
110
+ </div>
111
+ </div>
112
+ </div>
113
+ </criteria>
114
+ <data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
115
+ <template partial='head'>
116
+ <tr>
117
+ <th>序号</th>
118
+ <th>工程编号</th>
119
+ <th>客户名称</th>
120
+ <th>地址</th>
121
+ <th>材料名称</th>
122
+ <th>材料型号</th>
123
+ <th>材料单位</th>
124
+ <th>材料数量</th>
125
+ <th>报警器编号</th>
126
+ <th>操作人</th>
127
+ <th>操作时间</th>
128
+ </tr>
129
+ </template>
130
+ <template partial='body'>
131
+ <tr >
132
+ <td style="text-align: center;">
133
+ <nobr><font>{{$index+1}}</font></nobr>
134
+ </td>
135
+ <td style="text-align: center;">
136
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
137
+ </td>
138
+ <td style="text-align: center;">
139
+ <nobr><font>{{row.f_user_name}}</font></nobr>
140
+ </td>
141
+ <td style="text-align: center;">
142
+ <nobr><font>{{row.f_address}}</font></nobr>
143
+ </td>
144
+ <td style="text-align: center;">
145
+ <nobr><font>{{row.f_material_name}}</font></nobr>
146
+ </td>
147
+ <td style="text-align: center;">
148
+ <nobr><font>{{row.f_material_style}}</font></nobr>
149
+ </td>
150
+ <td style="text-align: center;">
151
+ <nobr><font>{{row.f_material_unit}}</font></nobr>
152
+ </td>
153
+ <td style="text-align: center;">
154
+ <nobr><font>{{row.f_material_number}}</font></nobr>
155
+ </td>
156
+ <td style="text-align: center;">
157
+ <nobr><font>{{row.f_bjq_sid}}</font></nobr>
158
+ </td>
159
+ <td style="text-align: center;">
160
+ <nobr><font>{{row.f_operator}}</font></nobr>
161
+ </td>
162
+ <td style="text-align: center;">
163
+ <nobr><font>{{row.f_operation_date}}</font></nobr>
164
+ </td>
165
+ </tr>
166
+ </template>
167
+ </data-grid>
168
+
169
+ </criteria-paged>
170
+ <p class="bg-info text-center" style="font-size: 20px;height: 5%">
171
+ 合计记录共<span style="color: red">{{chargeAll.count}}&ensp;</span>笔,
172
+ 合计数量<span style="color: red">&ensp;{{chargeAll.sum}}&ensp;</span>元
173
+ </p>
174
+ </div>
175
+
176
+ </div>
177
+ </template>
178
+
179
+ <script>
180
+ import {PagedList} from 'vue-client'
181
+ import {HttpResetClass} from 'vue-client'
182
+ export default {
183
+ title: '材料明细',
184
+ data () {
185
+ return {
186
+ model: new PagedList('rs/sql/applyGetMaterial', 30, null),
187
+ curorgid: [this.$login.f.orgid],
188
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
189
+ paymentMethod: [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')],
190
+ chargeStatus: [
191
+ {label: '全部', value: ''},
192
+ {label: '有效', value: '有效'},
193
+ {label: '作废', value: '作废'},
194
+ {label: '退款', value: '退款'}
195
+ ],
196
+ criteriaShow: false,
197
+ chargeAll: {
198
+ count: 0,
199
+ sum: 0
200
+ },
201
+ getfield: {
202
+ 'f_apply_num': '工程编号',
203
+ 'f_user_name': '客户名称',
204
+ 'f_address': '地址',
205
+ 'f_material_name': '材料名称',
206
+ 'f_material_style': '材料型号',
207
+ 'f_material_unit': '材料单位',
208
+ 'f_material_number': '材料数量',
209
+ 'f_operator': '操作人',
210
+ 'f_operation_date': '操作时间'
211
+ }
212
+ }
213
+ },
214
+ ready () {
215
+ // 调用查询
216
+ this.search()
217
+ },
218
+ methods: {
219
+ clear () {
220
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
221
+ this.$refs.cp.$refs.cri.model[key] = ''
222
+ })
223
+ },
224
+ searchCondition (args) {
225
+ args.condition = args.condition + ` and ma.f_orgid = '${this.curorgid[0]}'`
226
+ this.model.search(args.condition, args.model)
227
+ },
228
+ // 查询
229
+ search () {
230
+ this.$refs.cp.$refs.cri.search()
231
+ this.getChargeAll()
232
+ },
233
+ async getChargeAll () {
234
+ let http = new HttpResetClass()
235
+ let data = {
236
+ condition: this.model.condition
237
+ }
238
+ let res = await http.load('POST', 'rs/sql/getGetMaterial', {data: data}, {resolveMsg: null, rejectMsg: null})
239
+ console.log(res.data[0])
240
+ console.log('222')
241
+ this.chargeAll = res.data[0]
242
+ },
243
+ getorg (val) {
244
+ if (val.length <= 0) {
245
+ return
246
+ }
247
+ this.curorgid = val
248
+ this.search()
249
+ }
250
+ },
251
+ computed: {
252
+ getCondition () {
253
+ return {
254
+ condition: this.model.condition
255
+ }
256
+ }
257
+ }
258
+ }
259
+ </script>
260
+
261
+ <style scoped>
262
+ </style>