apply-clients 5.0.35-ezhou-16 → 5.0.35-ezhou-18

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 (20) hide show
  1. package/package.json +1 -1
  2. package/src/apply.js +1 -2
  3. package/src/components/product/EngineeringManagement/EngineerUpload.vue +304 -304
  4. package/src/components/product/EngineeringManagement/EngineeringSelect.vue +586 -586
  5. package/src/components/product/EngineeringSupervisory/EngineeringApplyStopInfo.vue +281 -281
  6. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryControl.vue +132 -132
  7. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryList.vue +340 -340
  8. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryServiceControl.vue +490 -490
  9. package/src/components/product/Function/InstallInfoSelect.vue +255 -255
  10. package/src/components/product/Function/functions/BuyerMessage.vue +512 -512
  11. package/src/components/product/Overview/addMaterialScience.vue +217 -217
  12. package/src/components/product/Process/ExplorationSelect.vue +805 -805
  13. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +405 -405
  14. package/src/components/product/Process/Processes/Service/ServiceControl.vue +2285 -2285
  15. package/src/components/product/Process/Processes/selectUserinfo.vue +13 -11
  16. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +556 -556
  17. package/src/components/product/Supervisory/SupervisoryList.vue +435 -435
  18. package/src/components/product/report/ChargeMoneyReport.vue +150 -136
  19. package/src/components/product/stopInfo/ApplyStopInfo.vue +281 -281
  20. package/src/ezhouAndroid.js +48 -48
@@ -1,435 +1,435 @@
1
- <template>
2
- <div class="d1">
3
- <div class="left col-sm-12" style="height:90%;">
4
- <criteria-paged :model="model" v-ref:cp>
5
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri style="padding: 20px;background-color: #f6f6f6;">
6
- <form novalidate class="" partial>
7
- <div class="col-sm-12">
8
- <div class="col-sm-2 ">
9
- <label class="col-sm-4 control-label ">联系人</label>
10
- <div class="col-sm-8">
11
- <input type="text" class="form-control" placeholder='联系人' v-model="model.f_user_name"
12
- v-on:keyup.enter="search"
13
- condition="f_user_name like '%{}%'">
14
- </div>
15
- </div>
16
-
17
- <div class="col-sm-2 ">
18
- <label class="col-sm-4 control-label">报建编号</label>
19
- <div class="col-sm-8">
20
- <input type="text" class="form-control" placeholder='报建编号' v-model="model.f_phone"
21
- v-on:keyup.enter="search"
22
- condition="f_apply_num like '{}%'">
23
- </div>
24
- </div>
25
-
26
- <div class="col-sm-2 ">
27
- <label class="col-sm-4 control-label">地址</label>
28
- <div class="col-sm-8">
29
- <input type="text" class="form-control" placeholder='地址' v-model="model.f_address"
30
- v-on:keyup.enter="search"
31
- condition="f_address like '%{}%'">
32
- </div>
33
- </div>
34
-
35
- <div class="col-sm-2 ">
36
- <label class="col-sm-4 control-label">单位/小区名称</label>
37
- <div class="col-sm-8">
38
- <input type="text" class="form-control" placeholder='单位/小区名称' v-model="model.f_residential_area"
39
- v-on:keyup.enter="search"
40
- condition="f_residential_area like '%{}%'">
41
- </div>
42
- </div>
43
- <div class="col-sm-2 ">
44
- <label class="col-sm-4 control-label">用户类型</label>
45
- <div class="col-sm-8">
46
- <v-select :options="$parent.$parent.usertype"
47
- placeholder='用户类型'
48
- condition="f_user_type like '{}%'"
49
- :width="100"
50
- style="width:100%"
51
- v-model="model.f_user_type"
52
- :value.sync="model.f_user_type" close-on-select>
53
- </v-select>
54
- </div>
55
- </div>
56
- <div class="col-sm-2" >
57
- <label class="col-sm-4 control-label">支付账户</label>
58
- <div class="col-sm-8">
59
- <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'安泰',value:'安泰'},{label:'欣泰',value:'欣泰'}]"
60
- condition="f_payment_account = '{}'" placeholder='支付账户'
61
- v-model="model.f_payment_account" :value.sync="model.f_payment_account" close-on-select>
62
- </v-select>
63
- </div>
64
- </div>
65
- </div>
66
- <div class="col-sm-12" style="margin-top:5px;">
67
- <div class="col-sm-2">
68
- <label class="col-sm-4 control-label">流程状态</label>
69
- <div class="col-sm-8">
70
- <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.alloptions"
71
- condition="defname = '{}'" placeholder='流程状态'
72
- v-model="model.defname" :value.sync="model.defname" close-on-select>
73
- </v-select>
74
- </div>
75
- </div>
76
- <div class="col-sm-2" >
77
- <label class="col-sm-4 control-label">业务类型</label>
78
- <div class="col-sm-8">
79
- <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'新报装',value:'新报装'},{label:'改管',value:'改管'}]"
80
- condition="f_work_type = '{}'" placeholder='业务类型'
81
- v-model="model.f_work_type" :value.sync="model.f_work_type" close-on-select>
82
- </v-select>
83
- </div>
84
- </div>
85
- <div class="col-sm-2">
86
- <label for="startDate" class="col-sm-4 control-label">开始日期</label>
87
- <div class="col-sm-8">
88
- <datepicker @change="$dispatch('setQueryCondition',model)" id="startDate" placeholder="开始日期"
89
- style="display: block;"
90
- v-model="model.startDate"
91
- :value.sync="model.startDate"
92
- :format="'yyyy-MM-dd HH:mm:ss'"
93
- :show-reset-button="true"
94
- condition="f_apply_date >= '{}'">
95
- </datepicker>
96
- </div>
97
- </div>
98
- <div class="col-sm-2">
99
- <label for="startDate" class="col-sm-4 control-label">终止日期</label>
100
- <div class="col-sm-8">
101
- <datepicker @change="$dispatch('setQueryCondition',model)" id="endDate" placeholder="终止日期"
102
- style="display: block;"
103
- v-model="model.endDate"
104
- :value.sync="model.endDate"
105
- :format="'yyyy-MM-dd HH:mm:ss'"
106
- :show-reset-button="true"
107
- condition="f_apply_date <= '{}'">
108
- </datepicker>
109
- </div>
110
-
111
- </div>
112
- <div class="col-sm-2">
113
- <label class="col-sm-4 control-label">终止查询</label>
114
- <div class="col-sm-8">
115
- <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'是',value:'终止'},{label:'否',value:''}]"
116
- condition="f_sub_state = '{}'" placeholder='终止查询'
117
- v-model="model.f_sub_state" :value.sync="model.f_sub_state" close-on-select>
118
- </v-select>
119
- </div>
120
- </div>
121
- <!-- <div class="col-sm-2" style="float: left">
122
- <label class="col-sm-4 control-label">报装来源</label>
123
- <div class="col-sm-8">
124
- <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.alloption"
125
- condition="f_apply_source = '{}'" placeholder='报装来源'
126
- v-model="model.f_apply_source" :value.sync="model.f_apply_source" close-on-select>
127
- </v-select>
128
- </div>
129
- </div> -->
130
- <div class="col-sm-2" style="float: left">
131
- <label class="col-sm-4 control-label">报装来源</label>
132
- <div class="col-sm-8">
133
- <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.Submission"
134
- condition="f_apply_source = '{}'" placeholder='报装来源'
135
- v-model="model.f_apply_source" :value.sync="model.f_apply_source" close-on-select>
136
- </v-select>
137
- </div>
138
- </div>
139
- <div class="col-sm-1" style="margin-left:20px;">
140
- <button style="margin-left:5%;" class="btn btn-primary btn-sm width-80 button_spacing" type="button" @click="search(),$parent.$parent.cleaner()">
141
- <span class="glyphicon glyphicon-search"></span>查询
142
- </button>
143
- <button class="btn-primary btn btn-sm button_spacing" @click.prevent="$parent.$parent.clear()">清空</button>
144
- </div>
145
- </div>
146
- </form>
147
- </criteria>
148
- <data-grid :model="model" partial='list' v-ref:grid class="data-grid" is-fixed='false' style="overflow-x:auto">
149
- <template partial='head'>
150
- <tr class="title">
151
- <th>
152
- <nobr>序号</nobr>
153
- </th>
154
- <th>
155
- <nobr>来源</nobr>
156
- </th>
157
- <th>
158
- <nobr>当前状态</nobr>
159
- </th>
160
- <th>
161
- <nobr>报建编号</nobr>
162
- </th>
163
- <th>
164
- <nobr>业务类型</nobr>
165
- </th>
166
- <th>
167
- <nobr>客户名称</nobr>
168
- </th>
169
- <th>
170
- <nobr>用户类型</nobr>
171
- </th>
172
- <th>
173
- <nobr>电话</nobr>
174
- </th>
175
- <th>
176
- <nobr>地址</nobr>
177
- </th>
178
- <th>
179
- <nobr>流程状态</nobr>
180
- </th>
181
- <th>
182
- <nobr>报建类型</nobr>
183
- </th>
184
- <th>
185
- <nobr>应缴金额</nobr>
186
- </th>
187
- <th>
188
- <nobr>已缴金额</nobr>
189
- </th>
190
- <th>
191
- <nobr>未缴金额</nobr>
192
- </th>
193
- <th>
194
- <nobr>报建日期</nobr>
195
- </th>
196
- </tr>
197
- </template>
198
- <template partial='body'>
199
- <tr>
200
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
201
- <nobr>{{$index+1}}</nobr>
202
- </td>
203
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
204
- <nobr>{{row.f_apply_source}}</nobr>
205
- </td>
206
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
207
- <nobr>{{row.f_sub_state==''||!row.f_sub_state ?'未完工':row.f_sub_state}}</nobr>
208
- </td>
209
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
210
- <nobr>{{row.f_apply_num}}</nobr>
211
- </td>
212
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
213
- <nobr>{{row.f_work_type}}</nobr>
214
- </td>
215
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
216
- <nobr>{{row.f_user_name}}</nobr>
217
- </td>
218
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
219
- <nobr>{{row.f_user_type}}</nobr>
220
- </td>
221
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
222
- <nobr>{{row.f_phone}}</nobr>
223
- </td>
224
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
225
- <nobr>{{row.f_address}}</nobr>
226
- </td>
227
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
228
- <nobr>{{row.defname}}</nobr>
229
- </td>
230
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
231
- <nobr>{{row.f_apply_type}}</nobr>
232
- </td>
233
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
234
- <nobr>{{row.f_total_cost}}</nobr>
235
- </td>
236
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
237
- <nobr>{{row.f_cumulative_money}}</nobr>
238
- </td>
239
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
240
- <nobr>{{row.f_unaccounts_money}}</nobr>
241
- </td>
242
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
243
- <nobr>{{row.f_apply_date}}</nobr>
244
- </td>
245
- </tr>
246
- </template>
247
- </data-grid>
248
- </criteria-paged>
249
- </div>
250
- <div class="flex" style="height: 10%;width: 100%;">
251
- <div novalidate class="form-inline auto" partial>
252
- <p class="bg-info text-center" style="padding: 8px;font-size: 20px">合计收费记录共
253
- <span style="color: red">{{model.rows.length}}</span>笔,
254
- 合计应缴总金额<span style="color: red">{{price.rows[0].f_total_cost}}</span>元,
255
- 已缴<span style="color: red">{{price.rows[0].f_cumulative_money}}</span>元,未缴<span style="color: red">{{price.rows[0].f_unaccounts_money}}</span>元
256
- </p>
257
- </div>
258
- </div>
259
- </div>
260
- </template>
261
- <script>
262
- import AppData from '../../../stores/AppData.js'
263
-
264
- import {
265
- PagedList
266
- } from 'vue-client'
267
- import getNowDate from '../../getNowDate.js'
268
- import {HttpResetClass} from 'vue-client'
269
- import * as Util from '../../Util'
270
- Date.prototype.Format = function (fmt) {
271
- var o = {
272
- "M+": this.getMonth() + 1, //月份
273
- "d+": this.getDate(), //日
274
- "H+": this.getHours(), //小时
275
- "m+": this.getMinutes(), //分
276
- "s+": this.getSeconds(), //秒
277
- "q+": Math.floor((this.getMonth() + 3) / 3), //季度
278
- "S": this.getMilliseconds() //毫秒
279
- };
280
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
281
- for (var k in o)
282
- if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
283
- return fmt;
284
- }
285
-
286
- export default {
287
- title: '勘探详情',
288
- data() {
289
- return {
290
- model: new PagedList('rs/sql/supervisory', 20, {
291
- data: {
292
- id: `${this.$login.f.name}`,
293
- fengongsi: `${this.$login.f.f_fengongsi}`,
294
- f_product_id :0
295
- }
296
- }),
297
- modeluse: new PagedList('rs/sql/supervisory', 999999, {
298
- data: {
299
- id: `${this.$login.f.name}`,
300
- fengongsi: `${this.$login.f.f_fengongsi}`,
301
- f_product_id :0
302
- }
303
- }),
304
- price: new PagedList('rs/sql/getChargeAllSum', 999999, {orderitem: '`f_total_cost`'}),
305
- condition: '',
306
- select: '',
307
- alloptions:[],
308
- alloption:[],
309
- Submission:[{label: '全部', value: ''},...this.$appdata.getParam('报装来源')]
310
- }
311
- },
312
- ready() {
313
- this.$refs.cp.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
314
- this.$refs.cp.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
315
- this.search()
316
- this.getConfig();
317
- },
318
- methods: {
319
- selfSearch (args) {
320
- args.condition = args.condition + ` and u.f_filiale = '${this.$login.f.f_fengongsi}' `
321
- this.model.search(args.condition,args.model)
322
- },
323
- search () {
324
- let startDate = Util.toStandardDateString() + ' 00:00:00'
325
- let endDate = Util.toStandardDateString() + ' 23:59:59'
326
- this.$refs.cp.$refs.cri.condition = this.$refs.cp.$refs.cri.condition + ` and u.f_filiale = '${this.$login.f.f_fengongsi}' `
327
- this.$refs.cp.$refs.cri.search()
328
- },
329
- cleaner () {
330
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
331
- this.$refs.cp.$refs.cri.model[key] = ''
332
- })
333
- let condition = this.$refs.cp.$refs.cri.condition + ` and u.f_filiale = '${this.$login.f.f_fengongsi}' `
334
- // console.log('condition2:', this.$refs.cp.$refs.cri.condition)
335
- // this.modeluse.search(condition)
336
- this.price.search(condition)
337
- this.$dispatch('close')
338
- },
339
- clear(){
340
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
341
- this.$refs.cp.$refs.cri.model[key] = []
342
- })
343
- },
344
- getapplyName(datas){
345
- debugger
346
- // console.log("开始获取所有名"+ data.fields[1].value)
347
- console.log('现在取得的值为这个东西'+datas)
348
- let str = datas
349
- console.log("开始获取所有名"+JSON.stringify(str))
350
- let param = [];
351
- // let ces = [];
352
- // let workflow = JSON.parse(str);
353
- // 动态获取报装来源
354
- // let http = new HttpResetClass()
355
- // http.load('POST', 'rs/sql/findParameter').then((res) => {
356
- // console.log("这是报装来源:" + res.name)
357
- // res.forEach(function(res){
358
- // ces.push({label:res.name,value:res.name});
359
- // })
360
- // this.alloption = ces;
361
- // })
362
- param.push({label:"全部",value:""})
363
- str.activitys.forEach(function(item){
364
- let title = item.title;
365
- console.log("这是title的值:" + title)
366
- param.push({label:title,value:title});
367
- })
368
- this.alloptions = param;
369
- },
370
- async getConfig(){
371
- let http = new HttpResetClass()
372
- await http.load('POST','rs/logic/ApplyGetConfigs', {data:this.$login.f}, {resolveMsg: null, rejectMsg: null}
373
- ).then((res)=>{
374
- if(res.data.code && res.data.code == 200){
375
- this.getapplyName(res.data.workflow_vue);
376
- }else{
377
- this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
378
- return
379
- }
380
- })
381
-
382
- },
383
- generateUUID() {
384
- var d = new Date().getTime()
385
- var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
386
- var r = (d + Math.random() * 16) % 16 | 0
387
- d = Math.floor(d / 16)
388
- return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16)
389
- })
390
- return uuid
391
- },
392
- check(val) {
393
- val.appid=val.id
394
- this.$dispatch('check', val)
395
- },
396
- close() {
397
- this.$dispatch('close')
398
- },
399
- compare(val) {
400
- val === '完工'
401
- console.log('完工', val)
402
- return false
403
- }
404
- },
405
- computed: {
406
- date() {
407
- return getNowDate()
408
- },
409
- selected() {
410
- return this.$refs.cp.$refs.grid.selected
411
- },
412
- usertype() {
413
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
414
- },
415
- defnameType() {
416
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('流程状态')]
417
- },
418
- applytype() {
419
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')]
420
- }
421
- }
422
- }
423
- </script>
424
- <style>
425
- /*label {*/
426
- /* display: flex;*/
427
- /* justify-content:center;*/
428
- /* align-items:Center;*/
429
- /* padding-top: 8px;*/
430
- /*}*/
431
- tr.title {
432
- background-color: #6666ff;
433
- }
434
-
435
- </style>
1
+ <template>
2
+ <div class="d1">
3
+ <div class="left col-sm-12" style="height:90%;">
4
+ <criteria-paged :model="model" v-ref:cp>
5
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri style="padding: 20px;background-color: #f6f6f6;">
6
+ <form novalidate class="" partial>
7
+ <div class="col-sm-12">
8
+ <div class="col-sm-2 ">
9
+ <label class="col-sm-4 control-label ">联系人</label>
10
+ <div class="col-sm-8">
11
+ <input type="text" class="form-control" placeholder='联系人' v-model="model.f_user_name"
12
+ v-on:keyup.enter="search"
13
+ condition="f_user_name like '%{}%'">
14
+ </div>
15
+ </div>
16
+
17
+ <div class="col-sm-2 ">
18
+ <label class="col-sm-4 control-label">报建编号</label>
19
+ <div class="col-sm-8">
20
+ <input type="text" class="form-control" placeholder='报建编号' v-model="model.f_phone"
21
+ v-on:keyup.enter="search"
22
+ condition="f_apply_num like '{}%'">
23
+ </div>
24
+ </div>
25
+
26
+ <div class="col-sm-2 ">
27
+ <label class="col-sm-4 control-label">地址</label>
28
+ <div class="col-sm-8">
29
+ <input type="text" class="form-control" placeholder='地址' v-model="model.f_address"
30
+ v-on:keyup.enter="search"
31
+ condition="f_address like '%{}%'">
32
+ </div>
33
+ </div>
34
+
35
+ <div class="col-sm-2 ">
36
+ <label class="col-sm-4 control-label">单位/小区名称</label>
37
+ <div class="col-sm-8">
38
+ <input type="text" class="form-control" placeholder='单位/小区名称' v-model="model.f_residential_area"
39
+ v-on:keyup.enter="search"
40
+ condition="f_residential_area like '%{}%'">
41
+ </div>
42
+ </div>
43
+ <div class="col-sm-2 ">
44
+ <label class="col-sm-4 control-label">用户类型</label>
45
+ <div class="col-sm-8">
46
+ <v-select :options="$parent.$parent.usertype"
47
+ placeholder='用户类型'
48
+ condition="f_user_type like '{}%'"
49
+ :width="100"
50
+ style="width:100%"
51
+ v-model="model.f_user_type"
52
+ :value.sync="model.f_user_type" close-on-select>
53
+ </v-select>
54
+ </div>
55
+ </div>
56
+ <div class="col-sm-2" >
57
+ <label class="col-sm-4 control-label">支付账户</label>
58
+ <div class="col-sm-8">
59
+ <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'安泰',value:'安泰'},{label:'欣泰',value:'欣泰'}]"
60
+ condition="f_payment_account = '{}'" placeholder='支付账户'
61
+ v-model="model.f_payment_account" :value.sync="model.f_payment_account" close-on-select>
62
+ </v-select>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ <div class="col-sm-12" style="margin-top:5px;">
67
+ <div class="col-sm-2">
68
+ <label class="col-sm-4 control-label">流程状态</label>
69
+ <div class="col-sm-8">
70
+ <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.alloptions"
71
+ condition="defname = '{}'" placeholder='流程状态'
72
+ v-model="model.defname" :value.sync="model.defname" close-on-select>
73
+ </v-select>
74
+ </div>
75
+ </div>
76
+ <div class="col-sm-2" >
77
+ <label class="col-sm-4 control-label">业务类型</label>
78
+ <div class="col-sm-8">
79
+ <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'新报装',value:'新报装'},{label:'改管',value:'改管'}]"
80
+ condition="f_work_type = '{}'" placeholder='业务类型'
81
+ v-model="model.f_work_type" :value.sync="model.f_work_type" close-on-select>
82
+ </v-select>
83
+ </div>
84
+ </div>
85
+ <div class="col-sm-2">
86
+ <label for="startDate" class="col-sm-4 control-label">开始日期</label>
87
+ <div class="col-sm-8">
88
+ <datepicker @change="$dispatch('setQueryCondition',model)" id="startDate" placeholder="开始日期"
89
+ style="display: block;"
90
+ v-model="model.startDate"
91
+ :value.sync="model.startDate"
92
+ :format="'yyyy-MM-dd HH:mm:ss'"
93
+ :show-reset-button="true"
94
+ condition="f_apply_date >= '{}'">
95
+ </datepicker>
96
+ </div>
97
+ </div>
98
+ <div class="col-sm-2">
99
+ <label for="startDate" class="col-sm-4 control-label">终止日期</label>
100
+ <div class="col-sm-8">
101
+ <datepicker @change="$dispatch('setQueryCondition',model)" id="endDate" placeholder="终止日期"
102
+ style="display: block;"
103
+ v-model="model.endDate"
104
+ :value.sync="model.endDate"
105
+ :format="'yyyy-MM-dd HH:mm:ss'"
106
+ :show-reset-button="true"
107
+ condition="f_apply_date <= '{}'">
108
+ </datepicker>
109
+ </div>
110
+
111
+ </div>
112
+ <div class="col-sm-2">
113
+ <label class="col-sm-4 control-label">终止查询</label>
114
+ <div class="col-sm-8">
115
+ <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'是',value:'终止'},{label:'否',value:''}]"
116
+ condition="f_sub_state = '{}'" placeholder='终止查询'
117
+ v-model="model.f_sub_state" :value.sync="model.f_sub_state" close-on-select>
118
+ </v-select>
119
+ </div>
120
+ </div>
121
+ <!-- <div class="col-sm-2" style="float: left">
122
+ <label class="col-sm-4 control-label">报装来源</label>
123
+ <div class="col-sm-8">
124
+ <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.alloption"
125
+ condition="f_apply_source = '{}'" placeholder='报装来源'
126
+ v-model="model.f_apply_source" :value.sync="model.f_apply_source" close-on-select>
127
+ </v-select>
128
+ </div>
129
+ </div> -->
130
+ <div class="col-sm-2" style="float: left">
131
+ <label class="col-sm-4 control-label">报装来源</label>
132
+ <div class="col-sm-8">
133
+ <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.Submission"
134
+ condition="f_apply_source = '{}'" placeholder='报装来源'
135
+ v-model="model.f_apply_source" :value.sync="model.f_apply_source" close-on-select>
136
+ </v-select>
137
+ </div>
138
+ </div>
139
+ <div class="col-sm-1" style="margin-left:20px;">
140
+ <button style="margin-left:5%;" class="btn btn-primary btn-sm width-80 button_spacing" type="button" @click="search(),$parent.$parent.cleaner()">
141
+ <span class="glyphicon glyphicon-search"></span>查询
142
+ </button>
143
+ <button class="btn-primary btn btn-sm button_spacing" @click.prevent="$parent.$parent.clear()">清空</button>
144
+ </div>
145
+ </div>
146
+ </form>
147
+ </criteria>
148
+ <data-grid :model="model" partial='list' v-ref:grid class="data-grid" is-fixed='false' style="overflow-x:auto">
149
+ <template partial='head'>
150
+ <tr class="title">
151
+ <th>
152
+ <nobr>序号</nobr>
153
+ </th>
154
+ <th>
155
+ <nobr>来源</nobr>
156
+ </th>
157
+ <th>
158
+ <nobr>当前状态</nobr>
159
+ </th>
160
+ <th>
161
+ <nobr>报建编号</nobr>
162
+ </th>
163
+ <th>
164
+ <nobr>业务类型</nobr>
165
+ </th>
166
+ <th>
167
+ <nobr>客户名称</nobr>
168
+ </th>
169
+ <th>
170
+ <nobr>用户类型</nobr>
171
+ </th>
172
+ <th>
173
+ <nobr>电话</nobr>
174
+ </th>
175
+ <th>
176
+ <nobr>地址</nobr>
177
+ </th>
178
+ <th>
179
+ <nobr>流程状态</nobr>
180
+ </th>
181
+ <th>
182
+ <nobr>报建类型</nobr>
183
+ </th>
184
+ <th>
185
+ <nobr>应缴金额</nobr>
186
+ </th>
187
+ <th>
188
+ <nobr>已缴金额</nobr>
189
+ </th>
190
+ <th>
191
+ <nobr>未缴金额</nobr>
192
+ </th>
193
+ <th>
194
+ <nobr>报建日期</nobr>
195
+ </th>
196
+ </tr>
197
+ </template>
198
+ <template partial='body'>
199
+ <tr>
200
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
201
+ <nobr>{{$index+1}}</nobr>
202
+ </td>
203
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
204
+ <nobr>{{row.f_apply_source}}</nobr>
205
+ </td>
206
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
207
+ <nobr>{{row.f_sub_state==''||!row.f_sub_state ?'未完工':row.f_sub_state}}</nobr>
208
+ </td>
209
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
210
+ <nobr>{{row.f_apply_num}}</nobr>
211
+ </td>
212
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
213
+ <nobr>{{row.f_work_type}}</nobr>
214
+ </td>
215
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
216
+ <nobr>{{row.f_user_name}}</nobr>
217
+ </td>
218
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
219
+ <nobr>{{row.f_user_type}}</nobr>
220
+ </td>
221
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
222
+ <nobr>{{row.f_phone}}</nobr>
223
+ </td>
224
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
225
+ <nobr>{{row.f_address}}</nobr>
226
+ </td>
227
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
228
+ <nobr>{{row.defname}}</nobr>
229
+ </td>
230
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
231
+ <nobr>{{row.f_apply_type}}</nobr>
232
+ </td>
233
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
234
+ <nobr>{{row.f_total_cost}}</nobr>
235
+ </td>
236
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
237
+ <nobr>{{row.f_cumulative_money}}</nobr>
238
+ </td>
239
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
240
+ <nobr>{{row.f_unaccounts_money}}</nobr>
241
+ </td>
242
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
243
+ <nobr>{{row.f_apply_date}}</nobr>
244
+ </td>
245
+ </tr>
246
+ </template>
247
+ </data-grid>
248
+ </criteria-paged>
249
+ </div>
250
+ <div class="flex" style="height: 10%;width: 100%;">
251
+ <div novalidate class="form-inline auto" partial>
252
+ <p class="bg-info text-center" style="padding: 8px;font-size: 20px">合计收费记录共
253
+ <span style="color: red">{{model.rows.length}}</span>笔,
254
+ 合计应缴总金额<span style="color: red">{{price.rows[0].f_total_cost}}</span>元,
255
+ 已缴<span style="color: red">{{price.rows[0].f_cumulative_money}}</span>元,未缴<span style="color: red">{{price.rows[0].f_unaccounts_money}}</span>元
256
+ </p>
257
+ </div>
258
+ </div>
259
+ </div>
260
+ </template>
261
+ <script>
262
+ import AppData from '../../../stores/AppData.js'
263
+
264
+ import {
265
+ PagedList
266
+ } from 'vue-client'
267
+ import getNowDate from '../../getNowDate.js'
268
+ import {HttpResetClass} from 'vue-client'
269
+ import * as Util from '../../Util'
270
+ Date.prototype.Format = function (fmt) {
271
+ var o = {
272
+ "M+": this.getMonth() + 1, //月份
273
+ "d+": this.getDate(), //日
274
+ "H+": this.getHours(), //小时
275
+ "m+": this.getMinutes(), //分
276
+ "s+": this.getSeconds(), //秒
277
+ "q+": Math.floor((this.getMonth() + 3) / 3), //季度
278
+ "S": this.getMilliseconds() //毫秒
279
+ };
280
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
281
+ for (var k in o)
282
+ if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
283
+ return fmt;
284
+ }
285
+
286
+ export default {
287
+ title: '勘探详情',
288
+ data() {
289
+ return {
290
+ model: new PagedList('rs/sql/supervisory', 20, {
291
+ data: {
292
+ id: `${this.$login.f.name}`,
293
+ fengongsi: `${this.$login.f.f_fengongsi}`,
294
+ f_product_id :0
295
+ }
296
+ }),
297
+ modeluse: new PagedList('rs/sql/supervisory', 999999, {
298
+ data: {
299
+ id: `${this.$login.f.name}`,
300
+ fengongsi: `${this.$login.f.f_fengongsi}`,
301
+ f_product_id :0
302
+ }
303
+ }),
304
+ price: new PagedList('rs/sql/getChargeAllSum', 999999, {orderitem: '`f_total_cost`'}),
305
+ condition: '',
306
+ select: '',
307
+ alloptions:[],
308
+ alloption:[],
309
+ Submission:[{label: '全部', value: ''},...this.$appdata.getParam('报装来源')]
310
+ }
311
+ },
312
+ ready() {
313
+ this.$refs.cp.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
314
+ this.$refs.cp.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
315
+ this.search()
316
+ this.getConfig();
317
+ },
318
+ methods: {
319
+ selfSearch (args) {
320
+ args.condition = args.condition + ` and u.f_filiale = '${this.$login.f.f_fengongsi}' `
321
+ this.model.search(args.condition,args.model)
322
+ },
323
+ search () {
324
+ let startDate = Util.toStandardDateString() + ' 00:00:00'
325
+ let endDate = Util.toStandardDateString() + ' 23:59:59'
326
+ this.$refs.cp.$refs.cri.condition = this.$refs.cp.$refs.cri.condition + ` and u.f_filiale = '${this.$login.f.f_fengongsi}' `
327
+ this.$refs.cp.$refs.cri.search()
328
+ },
329
+ cleaner () {
330
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
331
+ this.$refs.cp.$refs.cri.model[key] = ''
332
+ })
333
+ let condition = this.$refs.cp.$refs.cri.condition + ` and u.f_filiale = '${this.$login.f.f_fengongsi}' `
334
+ // console.log('condition2:', this.$refs.cp.$refs.cri.condition)
335
+ // this.modeluse.search(condition)
336
+ this.price.search(condition)
337
+ this.$dispatch('close')
338
+ },
339
+ clear(){
340
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
341
+ this.$refs.cp.$refs.cri.model[key] = []
342
+ })
343
+ },
344
+ getapplyName(datas){
345
+ debugger
346
+ // console.log("开始获取所有名"+ data.fields[1].value)
347
+ console.log('现在取得的值为这个东西'+datas)
348
+ let str = datas
349
+ console.log("开始获取所有名"+JSON.stringify(str))
350
+ let param = [];
351
+ // let ces = [];
352
+ // let workflow = JSON.parse(str);
353
+ // 动态获取报装来源
354
+ // let http = new HttpResetClass()
355
+ // http.load('POST', 'rs/sql/findParameter').then((res) => {
356
+ // console.log("这是报装来源:" + res.name)
357
+ // res.forEach(function(res){
358
+ // ces.push({label:res.name,value:res.name});
359
+ // })
360
+ // this.alloption = ces;
361
+ // })
362
+ param.push({label:"全部",value:""})
363
+ str.activitys.forEach(function(item){
364
+ let title = item.title;
365
+ console.log("这是title的值:" + title)
366
+ param.push({label:title,value:title});
367
+ })
368
+ this.alloptions = param;
369
+ },
370
+ async getConfig(){
371
+ let http = new HttpResetClass()
372
+ await http.load('POST','rs/logic/ApplyGetConfigs', {data:this.$login.f}, {resolveMsg: null, rejectMsg: null}
373
+ ).then((res)=>{
374
+ if(res.data.code && res.data.code == 200){
375
+ this.getapplyName(res.data.workflow_vue);
376
+ }else{
377
+ this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
378
+ return
379
+ }
380
+ })
381
+
382
+ },
383
+ generateUUID() {
384
+ var d = new Date().getTime()
385
+ var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
386
+ var r = (d + Math.random() * 16) % 16 | 0
387
+ d = Math.floor(d / 16)
388
+ return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16)
389
+ })
390
+ return uuid
391
+ },
392
+ check(val) {
393
+ val.appid=val.id
394
+ this.$dispatch('check', val)
395
+ },
396
+ close() {
397
+ this.$dispatch('close')
398
+ },
399
+ compare(val) {
400
+ val === '完工'
401
+ console.log('完工', val)
402
+ return false
403
+ }
404
+ },
405
+ computed: {
406
+ date() {
407
+ return getNowDate()
408
+ },
409
+ selected() {
410
+ return this.$refs.cp.$refs.grid.selected
411
+ },
412
+ usertype() {
413
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
414
+ },
415
+ defnameType() {
416
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('流程状态')]
417
+ },
418
+ applytype() {
419
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')]
420
+ }
421
+ }
422
+ }
423
+ </script>
424
+ <style>
425
+ /*label {*/
426
+ /* display: flex;*/
427
+ /* justify-content:center;*/
428
+ /* align-items:Center;*/
429
+ /* padding-top: 8px;*/
430
+ /*}*/
431
+ tr.title {
432
+ background-color: #6666ff;
433
+ }
434
+
435
+ </style>