apply-clients 3.0.10-203 → 3.0.10-206

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.0.10-203",
3
+ "version": "3.0.10-206",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -292,7 +292,11 @@ export default {
292
292
  console.log(this.f_meter_brand)
293
293
 
294
294
  }
295
- if(this.data.fields[i].type==='datepicker'&&!this.data.fields[i].value){
295
+ if (this.data.fields[i].label === '通气人'){
296
+ console.log("通气人")
297
+ this.data.fields[i].value = Vue.user.name
298
+ }
299
+ if (this.data.fields[i].type==='datepicker'&&!this.data.fields[i].value){
296
300
  this.data.fields[i].value=new Date().Format("yyyy-MM-dd HH:mm:ss")
297
301
  }
298
302
  }
@@ -6,8 +6,9 @@
6
6
  <div class="col-sm-4 form-group item" :class="[$v.f_orgname.required ? 'has-error' : '']">
7
7
  <label class="control-label-justify control-label col-sm-6">所属公司</label>
8
8
  <div class="col-sm-6">
9
- <input type="text" v-model="contract.f_orgname" v-validate:f_orgname = "['required']" v-show="false">
9
+ <input type="text" v-model="contract.f_orgname" v-validate:f_orgname = "['required']" v-show="false">
10
10
  <input-select
11
+ :disable="((tp.f_orgname != '' && tp.f_orgname != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
11
12
  class="select select_list"
12
13
  :readonly="type === 'view'"
13
14
  :value.sync="contract.f_orgname"
@@ -21,6 +22,7 @@
21
22
  <div class="col-sm-6">
22
23
  <input type="text" v-model="contract.f_hidden_name" v-validate:f_hidden_name = "['required']" v-show="false">
23
24
  <input
25
+ :disabled="((tp.f_hidden_name != '' && tp.f_hidden_name != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
24
26
  class="text"
25
27
  :readonly="type === 'view'"
26
28
  :value.sync="contract.f_hidden_name"
@@ -33,6 +35,7 @@
33
35
  <div class="col-sm-6">
34
36
  <input type="text" v-model="contract.f_hidden_address" v-validate:f_hidden_address = "['required']" v-show="false">
35
37
  <input
38
+ :disabled="((tp.f_hidden_address != '' && tp.f_hidden_address != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
36
39
  class="text"
37
40
  :readonly="type === 'view'"
38
41
  :value.sync="contract.f_hidden_address"
@@ -45,6 +48,7 @@
45
48
  <div class="col-sm-6">
46
49
  <input type="text" v-model="contract.f_hidden_classes" v-validate:f_hidden_classes = "['required']" v-show="false">
47
50
  <input
51
+ :disabled="((tp.f_hidden_classes != '' && tp.f_hidden_classes != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
48
52
  class="text"
49
53
  :readonly="type === 'view'"
50
54
  :value.sync="contract.f_hidden_classes"
@@ -58,6 +62,7 @@
58
62
  <div class="col-sm-6">
59
63
  <input type="text" v-model="contract.f_hidden_rank" v-validate:f_hidden_rank = "['required']" v-show="false">
60
64
  <input-select
65
+ :disable="((tp.f_hidden_rank != '' && tp.f_hidden_rank != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
61
66
  class="select select_list"
62
67
  :readonly="type === 'view'"
63
68
  :value.sync="contract.f_hidden_rank"
@@ -71,7 +76,7 @@
71
76
  <div class="col-sm-6">
72
77
  <input type="text" v-model="contract.f_hidden_describe" v-validate:f_hidden_describe = "['required']" v-show="false">
73
78
  <input
74
-
79
+ :disabled="((tp.f_hidden_describe != '' && tp.f_hidden_describe != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
75
80
  class="text col-sm-6"
76
81
  style="width: 1000px;height: 35px"
77
82
  :readonly="type === 'view'"
@@ -88,6 +93,7 @@
88
93
  <input type="text" v-model="contract.f_hidden_scheme" v-validate:f_hidden_scheme = "['required']" v-show="false">
89
94
  <input
90
95
  style="width: 1000px;height: 35px"
96
+ :disabled="((tp.f_hidden_scheme != '' && tp.f_hidden_scheme != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
91
97
  class="text"
92
98
  :readonly="type === 'view'"
93
99
  :value.sync="contract.f_hidden_scheme"
@@ -104,6 +110,7 @@
104
110
  <input
105
111
  class="text"
106
112
  :readonly="type === 'view'"
113
+ :disabled="((tp.f_hidden_schemer != '' && tp.f_hidden_schemer != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
107
114
  :value.sync="contract.f_hidden_schemer"
108
115
  v-model="contract.f_hidden_schemer"
109
116
  :valueSingle="true"/>
@@ -118,6 +125,7 @@
118
125
  <input
119
126
  class="text"
120
127
  :readonly="type === 'view'"
128
+ :disabled="((tp.f_project_unit != '' && tp.f_project_unit != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
121
129
  :value.sync="contract.f_project_unit"
122
130
  v-model="contract.f_project_unit"
123
131
  :valueSingle="true"/>
@@ -130,6 +138,7 @@
130
138
  <input type="text" v-model="contract.f_troubleshoot_date" v-validate:f_troubleshoot_date = "['required']" v-show="false">
131
139
  <datepicker
132
140
  :readonly="type === 'view'"
141
+ :disabled="((tp.f_troubleshoot_date != '' && tp.f_troubleshoot_date != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
133
142
  :click="getleadtime()"
134
143
  :value.sync="contract.f_troubleshoot_date"
135
144
  format="yyyy-MM-dd"
@@ -144,6 +153,7 @@
144
153
  <input-select
145
154
  class="select select_list"
146
155
  :readonly="type === 'view'"
156
+ :disable="((tp.f_oa_approval != '' && tp.f_oa_approval != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
147
157
  :value.sync="contract.f_oa_approval"
148
158
  v-model="contract.f_oa_approval"
149
159
  :options="oaapproval"
@@ -156,6 +166,7 @@
156
166
  <input type="text" v-model="contract.f_project_state" v-show="false">
157
167
  <input-select
158
168
  class="select select_list"
169
+ :disable="((org !== '重庆盛焰集团' || (org === '重庆盛焰集团' && deps !== '安全部')) && type != 'add') || type == 'view'"
159
170
  :readonly="type === 'view'"
160
171
  :value.sync="contract.f_project_state"
161
172
  v-model="contract.f_project_state"
@@ -172,6 +183,7 @@
172
183
  :readonly="type === 'view'"
173
184
  :value.sync="contract.f_budget_correction_fee"
174
185
  v-model="contract.f_budget_correction_fee"
186
+ :disabled="((tp.f_budget_correction_fee != '' && tp.f_budget_correction_fee != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
175
187
  :valueSingle="true"/>
176
188
  </div>
177
189
  </div>
@@ -248,6 +260,7 @@
248
260
  <input type="text" v-model="contract.f_start_working_date" v-validate:f_start_working_date = "['required']" v-show="false">
249
261
  <datepicker
250
262
  :readonly="type === 'view'"
263
+ :disabled="((tp.f_start_working_date != '' && tp.f_start_working_date != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
251
264
  :click="getleadtime()"
252
265
  :value.sync="contract.f_start_working_date"
253
266
  format="yyyy-MM-dd"
@@ -263,6 +276,7 @@
263
276
  :click="getleadtime()"
264
277
  :readonly="type === 'view'"
265
278
  :value.sync="contract.f_complete_working_date"
279
+ :disabled="((tp.f_complete_working_date != '' && tp.f_complete_working_date != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
266
280
  format="yyyy-MM-dd"
267
281
  v-model="contract.f_complete_working_date">
268
282
  </datepicker>
@@ -276,6 +290,7 @@
276
290
  class="text"
277
291
  :readonly="type === 'view'"
278
292
  :value.sync="contract.f_working_date"
293
+ :disabled="true"
279
294
  v-model="contract.f_working_date"
280
295
  :valueSingle="true"/>
281
296
  </div>
@@ -286,6 +301,7 @@
286
301
  <input type="text" v-model="contract.f_start_practical_date" v-show="false">
287
302
  <datepicker
288
303
  :readonly="type === 'view'"
304
+ :disabled="((tp.f_start_practical_date != '' && tp.f_start_practical_date != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
289
305
  :click="getleadtime()"
290
306
  :value.sync="contract.f_start_practical_date"
291
307
  format="yyyy-MM-dd"
@@ -300,6 +316,7 @@
300
316
  <datepicker
301
317
  :click="getleadtime()"
302
318
  :readonly="type === 'view'"
319
+ :disabled="((tp.f_complete_practical_date != '' && tp.f_complete_practical_date != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
303
320
  :value.sync="contract.f_complete_practical_date"
304
321
  format="yyyy-MM-dd"
305
322
  v-model="contract.f_complete_practical_date">
@@ -313,6 +330,7 @@
313
330
  <input
314
331
  class="text"
315
332
  :readonly="type === 'view'"
333
+ :disabled="true"
316
334
  @input="select_change"
317
335
  :value.sync="contract.f_practical_date"
318
336
  v-model="contract.f_practical_date"
@@ -340,6 +358,7 @@
340
358
  <input type="text" v-model="contract.f_hidden_dangers" v-show="false">
341
359
  <input-select
342
360
  class="select select_list"
361
+ :disable="((org !== '重庆盛焰集团' || (org === '重庆盛焰集团' && deps !== '安全部')) && type != 'add') || type == 'view'"
343
362
  :readonly="type === 'view'"
344
363
  :value.sync="contract.f_hidden_dangers"
345
364
  v-model="contract.f_hidden_dangers"
@@ -354,6 +373,7 @@
354
373
  <input-select
355
374
  class="select select_list"
356
375
  :readonly="type === 'view'"
376
+ :disable="((org !== '重庆盛焰集团' || (org === '重庆盛焰集团' && deps !== '安全部')) && type != 'add') || type == 'view'"
357
377
  :value.sync="contract.f_hidden_budget_correction"
358
378
  v-model="contract.f_hidden_budget_correction"
359
379
  :options="budgetcorrection"
@@ -367,6 +387,7 @@
367
387
  <input type="text" v-model="contract.f_ziorg_info" v-show="false">
368
388
  <input
369
389
  class="text"
390
+ :disabled="((org == '重庆盛焰集团') || type == 'view')"
370
391
  style="width: 600px;height: 35px"
371
392
  :readonly="type === 'view'"
372
393
  :value.sync="contract.f_ziorg_info"
@@ -381,11 +402,39 @@
381
402
  <datepicker
382
403
  :readonly="type === 'view'"
383
404
  :value.sync="contract.f_ziorg_date"
405
+ :disabled="((org == '重庆盛焰集团') || type == 'view')"
384
406
  format="yyyy-MM-dd"
385
407
  v-model="contract.f_ziorg_date">
386
408
  </datepicker>
387
409
  </div>
388
410
  </div>
411
+ <div class="col-sm-8 form-group item">
412
+ <label class="control-label-justify control-label col-sm-6">总部安全部意见反馈</label>
413
+ <div class="col-sm-6">
414
+ <input type="text" v-model="contract.f_zong_aq_info" v-show="false">
415
+ <input
416
+ class="text"
417
+ style="width: 600px;height: 35px"
418
+ :readonly="type === 'view'"
419
+ :disabled="!(org === '重庆盛焰集团' && deps === '安全部') || type == 'view'"
420
+ :value.sync="contract.f_zong_aq_info"
421
+ v-model="contract.f_zong_aq_info"
422
+ :valueSingle="true"/>
423
+ </div>
424
+ </div>
425
+ <div class="col-sm-4 form-group item">
426
+ <label class="control-label-justify control-label col-sm-6">预计完成时间</label>
427
+ <div class="col-sm-6">
428
+ <input type="text" v-model="contract.f_zong_aq_date" v-show="false">
429
+ <datepicker
430
+ :readonly="type === 'view'"
431
+ :disabled="!(org === '重庆盛焰集团' && deps === '安全部') || type == 'view'"
432
+ :value.sync="contract.f_zong_aq_date"
433
+ format="yyyy-MM-dd"
434
+ v-model="contract.f_zong_aq_date">
435
+ </datepicker>
436
+ </div>
437
+ </div>
389
438
  <div class="col-sm-8 form-group item">
390
439
  <label class="control-label-justify control-label col-sm-6">总部工程部意见反馈</label>
391
440
  <div class="col-sm-6">
@@ -394,6 +443,7 @@
394
443
  class="text"
395
444
  style="width: 600px;height: 35px"
396
445
  :readonly="type === 'view'"
446
+ :disabled="!((org === '重庆盛焰集团' && deps === '工程部')) || type == 'view'"
397
447
  :value.sync="contract.f_zong_gc_info"
398
448
  v-model="contract.f_zong_gc_info"
399
449
  :valueSingle="true"/>
@@ -405,6 +455,7 @@
405
455
  <input type="text" v-model="contract.f_ziorg_gc_date" v-show="false">
406
456
  <datepicker
407
457
  :readonly="type === 'view'"
458
+ :disabled="!((org === '重庆盛焰集团' && deps === '工程部')) || type == 'view'"
408
459
  :value.sync="contract.f_ziorg_gc_date"
409
460
  format="yyyy-MM-dd"
410
461
  v-model="contract.f_ziorg_gc_date">
@@ -418,6 +469,7 @@
418
469
  <input
419
470
  class="text"
420
471
  style="width: 600px;height: 35px"
472
+ :disabled="!((org === '重庆盛焰集团' && deps === '物资部')) || type == 'view'"
421
473
  :readonly="type === 'view'"
422
474
  :value.sync="contract.f_zong_wz_info"
423
475
  v-model="contract.f_zong_wz_info"
@@ -431,6 +483,7 @@
431
483
  <datepicker
432
484
  :readonly="type === 'view'"
433
485
  :value.sync="contract.f_zong_wz_date"
486
+ :disabled="!((org === '重庆盛焰集团' && deps === '物资部')) || type == 'view'"
434
487
  format="yyyy-MM-dd"
435
488
  v-model="contract.f_zong_wz_date">
436
489
  </datepicker>
@@ -443,6 +496,7 @@
443
496
  <input
444
497
  class="text"
445
498
  style="width: 600px;height: 35px"
499
+ :disabled="!((org === '重庆盛焰集团' && deps === '设计部')) || type == 'view'"
446
500
  :readonly="type === 'view'"
447
501
  :value.sync="contract.f_zong_sj_info"
448
502
  v-model="contract.f_zong_sj_info"
@@ -456,6 +510,7 @@
456
510
  <datepicker
457
511
  :readonly="type === 'view'"
458
512
  :value.sync="contract.f_zong_sj_date"
513
+ :disabled="!((org === '重庆盛焰集团' && deps === '设计部')) || type == 'view'"
459
514
  format="yyyy-MM-dd"
460
515
  v-model="contract.f_zong_sj_date">
461
516
  </datepicker>
@@ -468,6 +523,7 @@
468
523
  <input
469
524
  class="text"
470
525
  style="width: 600px;height: 35px"
526
+ :disabled="!((org === '重庆盛焰集团' && deps === '运营部')) || type == 'view'"
471
527
  :readonly="type === 'view'"
472
528
  :value.sync="contract.f_zong_yy_info"
473
529
  v-model="contract.f_zong_yy_info"
@@ -480,6 +536,7 @@
480
536
  <input type="text" v-model="contract.f_zong_yy_date" v-show="false">
481
537
  <datepicker
482
538
  :readonly="type === 'view'"
539
+ :disabled="!((org === '重庆盛焰集团' && deps === '运营部')) || type == 'view'"
483
540
  :value.sync="contract.f_zong_yy_date"
484
541
  format="yyyy-MM-dd"
485
542
  v-model="contract.f_zong_yy_date">
@@ -495,6 +552,7 @@
495
552
  <input
496
553
  class="text"
497
554
  style="width: 600px;height: 35px"
555
+ :disabled="!((org === '重庆盛焰集团' && deps === '审计部')) || type == 'view'"
498
556
  :readonly="type === 'view'"
499
557
  :value.sync="contract.f_zong_sjb_info"
500
558
  v-model="contract.f_zong_sjb_info"
@@ -507,6 +565,7 @@
507
565
  <input type="text" v-model="contract.f_zong_sjb_date" v-show="false">
508
566
  <datepicker
509
567
  :readonly="type === 'view'"
568
+ :disabled="!((org === '重庆盛焰集团' && deps === '审计部')) || type == 'view'"
510
569
  :value.sync="contract.f_zong_sjb_date"
511
570
  format="yyyy-MM-dd"
512
571
  v-model="contract.f_zong_sjb_date">
@@ -514,16 +573,20 @@
514
573
  </div>
515
574
  </div>
516
575
  </div>
576
+ <div class="col-sm-12 form-group" style="text-align: center">
577
+ <button class="btn btn-primary" v-if="type === 'add'" @click.prevent="addHidden()" :disabled='!($v.valid)'>保存</button>
578
+ <button class="btn btn-primary" v-if="type === 'renew'" @click.prevent="renewHidden()" :disabled='!($v.valid)'>修改</button>
579
+ </div>
517
580
  <div v-if="type != 'view'">
518
- <apply-upload :blodid="contract.f_process_id"
519
- :isupload = "true"
520
- :isdelete="true"
521
- :isusetype="true"
522
- :isremark = "true"
523
- :takeimg="false"
524
- :issearch="true"
525
- :defname="隐患项目">
526
- </apply-upload>
581
+ <apply-upload :blodid="contract.f_process_id"
582
+ :isupload = "true"
583
+ :isdelete="true"
584
+ :isusetype="true"
585
+ :isremark = "true"
586
+ :takeimg="false"
587
+ :issearch="true"
588
+ :defname="隐患项目">
589
+ </apply-upload>
527
590
  </div>
528
591
  <div v-if="type === 'view'">
529
592
  <apply-upload :blodid="contract.f_process_id"
@@ -536,10 +599,6 @@
536
599
  :defname="隐患项目">
537
600
  </apply-upload>
538
601
  </div>
539
- <div class="col-sm-12 form-group" style="text-align: center">
540
- <button class="btn btn-primary" v-if="type === 'add'" @click.prevent="addHidden()" :disabled='!($v.valid)'>保存</button>
541
- <button class="btn btn-primary" v-if="type === 'renew'" @click.prevent="renewHidden()" :disabled='!($v.valid)'>修改</button>
542
- </div>
543
602
  </form>
544
603
  </validator>
545
604
  <data-grid v-if="type==='view'" :model="changemessage" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
@@ -610,6 +669,8 @@
610
669
  budgetcorrection:[{label: '全部', value: ''}, {label: '是', value: '是'},{label: '否',value: '否'},{label:'其他',value:'其他'}],
611
670
  hiddendangers:[{label: '全部', value: ''}, {label: '是', value: '是'},{label: '否',value: '否'}],
612
671
  hiddenrank: [{label: '全部', value: ''}, {label: '一般', value: '一般'},{label: '较大',value: '较大'},{label: '重大', value: '重大'}],
672
+ org: this.$login.f.orgs,
673
+ deps: this.$login.f.deps,
613
674
  projectStatus: [{label: '全部', value: ''}, {label: '完工', value: '完工'},{label: '未完工', value: '未完工'},],
614
675
  oaapproval:[{label:'全部',value:''},{label:'是',value:'是'},{label:'否',value:'否'}],
615
676
  showModal: false,
@@ -618,6 +679,7 @@
618
679
  newzhi:{},
619
680
  oldzhi:{},
620
681
  ziduan:{},
682
+ tp: {},
621
683
  facility: {},
622
684
  completedate:"",
623
685
  index: null,
@@ -630,10 +692,10 @@
630
692
  },
631
693
  ready () {
632
694
  this.getOrgName()
633
- debugger
695
+ this.$set('tp',Object.assign({},this.tp,this.contract))
634
696
  if(this.type==='view'){
635
697
  this.$resetpost(
636
- `gongcheng/rs/ql/changeMessage`,
698
+ `gongcheng/rs/sql/changeMessage`,
637
699
  {data: this.contract},
638
700
  {resolveMsg: null,rejectMsg: '查询失败!!!'}
639
701
  ).then((res) => {
@@ -709,6 +771,13 @@
709
771
  this.$set(`contract.f_practical_date`,leadtime)
710
772
  console.log("打印时间差",this.contract.f_practical_date)
711
773
  }
774
+ if(!this.contract.f_practical_date){
775
+ debugger
776
+ this.$set(`contract.f_practical_date`,0)
777
+ }
778
+ if(!this.contract.f_working_date){
779
+ this.$set(`contract.f_working_date`,0)
780
+ }
712
781
  },
713
782
  // 获取所有组织名称
714
783
  async getOrgName() {
@@ -767,7 +836,7 @@
767
836
  data: this.model.data,
768
837
  }
769
838
  let res = await this.$resetpost(
770
- `gongcheng/rs/logic/hiddenchangeMessage`,
839
+ `gongcheng//logic/hiddenchangeMessage`,
771
840
  {data: this.contract},
772
841
  {resolveMsg: null,rejectMsg: '保存失败!!!'}
773
842
  )
@@ -62,17 +62,6 @@
62
62
  condition="f_start_working_date >= '{}'">
63
63
  </datepicker>
64
64
  </div>
65
- <div class="form-group col-sm-2">
66
- <label for="endDate" class="font_normal_body">结束时间:</label>
67
- <datepicker id="endDate" placeholder="结束日期"
68
- style="width: 60%!important;"
69
- v-model="model.endDate"
70
- :value.sync="model.endDate"
71
- :format="'yyyy-MM-dd HH:mm:ss'"
72
- :show-reset-button="true"
73
- condition="f_start_working_date <= '{}'">
74
- </datepicker>
75
- </div>
76
65
  <div class="form-group col-sm-3">
77
66
  <label for="startDate" class="font_normal_body">预计完工时间:</label>
78
67
  <datepicker id="startDate1" placeholder="开始日期"
@@ -81,35 +70,27 @@
81
70
  :value.sync="model.startDate"
82
71
  :format="'yyyy-MM-dd HH:mm:ss'"
83
72
  :show-reset-button="true"
84
- condition="f_complete_working_date >= '{}'">
85
- </datepicker>
86
- </div>
87
- <div class="form-group col-sm-2">
88
- <label for="endDate" class="font_normal_body">结束时间:</label>
89
- <datepicker id="endDate1" placeholder="结束日期"
90
- style="width: 60%!important;"
91
- v-model="model.endDate1"
92
- :value.sync="model.endDate1"
93
- :format="'yyyy-MM-dd HH:mm:ss'"
94
- :show-reset-button="true"
95
73
  condition="f_complete_working_date <= '{}'">
96
74
  </datepicker>
97
75
  </div>
76
+ <div class="form-group col-sm-5">
77
+ <label for="startDate" class="font_normal_body">已超过约定工期天数:</label>
78
+ <input type="text" class="input_search" v-model="model.f_overdue_date"
79
+ condition="f_overdue_date >= '{}'" placeholder='已超过约定工期天数'>
80
+ </div>
98
81
  </div>
99
82
  <div class="row">
100
- <div class="form-group col-sm-3">
101
- <label class="font_normal_body">整改责任人:</label>
102
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_hidden_schemer"
103
- v-on:keyup.enter="$parent.$parent.search()" condition="f_hidden_schemer like '%{}%'" placeholder='整改责任人'>
104
- </div>
105
- <div class="form-group col-sm-3">
106
- <label class="font_normal_body">预计整改工期:</label>
107
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_working_date"
108
- v-on:keyup.enter="$parent.$parent.search()" condition="f_working_date = '{}'" placeholder=''>
109
- </div>
110
- <div class="form-group col-sm-3 button-range" style="float: right">
83
+ <div class="form-group col-sm-12 button-range" style="float: right">
111
84
  <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
112
85
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
86
+ <export-excel progress="apply_getExportProgress"
87
+ :data="{condition: $parent.$parent.condition}"
88
+ :field="$parent.$parent.getfield()"
89
+ sqlurl="gongcheng/rs/logic/apply_exportfile"
90
+ sql-name="hiddenProject"
91
+ template-name='安全隐患导出'
92
+ :choose-col="true">
93
+ </export-excel>
113
94
  <button class="button_new button_spacing" style="width: 100px" @click="$parent.$parent.openAddContract()">添加工程</button>
114
95
  </div>
115
96
  </div>
@@ -132,6 +113,11 @@
132
113
  <th style="white-space: nowrap;">工期(天数)</th>
133
114
  <th style="white-space: nowrap;">已超过约定工期天数</th>
134
115
  <th style="white-space: nowrap;">项目预计整改费用</th>
116
+ <th style="white-space: nowrap;">项目实际整改费用</th>
117
+ <th style="white-space: nowrap;">累计付款</th>
118
+ <th style="white-space: nowrap;">材料款</th>
119
+ <th style="white-space: nowrap;">工程款</th>
120
+ <th style="white-space: nowrap;">人工款</th>
135
121
  <th style="white-space: nowrap;">是否属于年度预算内整改</th>
136
122
  <th style="white-space: nowrap;">操作</th>
137
123
  </tr>
@@ -180,11 +166,27 @@
180
166
  <td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
181
167
  <nobr><font>{{row.f_budget_correction_fee}}</font></nobr>
182
168
  </td>
169
+ <td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
170
+ <nobr><font>{{row.f_actual_rectification_cost}}</font></nobr>
171
+ </td>
172
+ <td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
173
+ <nobr><font>{{row.f_total_payment}}</font></nobr>
174
+ </td>
175
+ <td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
176
+ <nobr><font>{{row.f_materials_fee}}</font></nobr>
177
+ </td>
178
+ <td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
179
+ <nobr><font>{{row.f_project_fee}}</font></nobr>
180
+ </td>
181
+ <td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
182
+ <nobr><font>{{row.f_artificial_fee}}</font></nobr>
183
+ </td>
183
184
  <td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
184
185
  <nobr><font>{{row.f_hidden_budget_correction}}</font></nobr>
185
186
  </td>
186
187
  <td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;">
187
- <a href="#" @click="$parent.$parent.$parent.openRenew(row)">修改</a>
188
+ <a href="#" @click="$parent.$parent.$parent.openRenew(row)">修改</a>&emsp;|&emsp;
189
+ <a href="#" @click="$parent.$parent.$parent.deleteRow(row)">删除</a>
188
190
  </td>
189
191
  </tr>
190
192
  </template>
@@ -234,20 +236,21 @@
234
236
  yujisum:0,
235
237
  shijisum:0
236
238
  },
239
+ condition: ''
237
240
  }
238
241
  },
239
242
  ready () {
243
+ this.$refs.cp.$refs.cri.model.f_overdue_date = 1
240
244
  // 调用查询
241
245
  this.search()
242
246
  this.getOrgName()
243
- this.getChargeAll()
244
247
  },
245
248
  methods: {
246
- async getChargeAll(){
249
+ async getChargeAll(args){
247
250
  debugger
248
251
  let http = new HttpResetClass()
249
252
  let data = {
250
- condition: this.model.condition,
253
+ condition: args.condition,
251
254
  data: {
252
255
  orgid: this.$login.f.orgid
253
256
  }
@@ -305,14 +308,32 @@
305
308
  this.$dispatch('openInvalid', row)
306
309
  },
307
310
  searchCondition (args) {
311
+ if(this.$login.f.orgs !== '重庆盛焰集团') {
312
+ args.condition += ` and f_orgid = '${this.$login.f.orgid}'`
313
+ }
308
314
  if (!isEmpty(args.model.f_contract_status)) {
309
315
  args.condition += ` and ${args.model.f_contract_status}`
310
316
  }
317
+ this.getChargeAll(args)
318
+ if (!isEmpty(args.model.f_contract_status)) {
319
+ args.condition += ` and ${args.model.f_contract_status}`
320
+ }
321
+ this.condition = args.condition
322
+ this.getChargeAll(args)
311
323
  this.model.search(args.condition, args.model)
312
324
  },
313
325
  openRenew (row) {
314
326
  this.$dispatch('openRenew', row)
315
327
  },
328
+ // 删除
329
+ deleteRow (row) {
330
+ this.$showMessage("确定要删除该行吗", ['confirm', 'cancel'], 'danger').then((res) => {
331
+ if(res === 'confirm'){
332
+ this.$resetpost('gongcheng/rs/logic/deleteProject', {id: row.id, tablename: 't_hidden_project'}, {resolveMsg: '删除成功', rejectMsg: '删除失败'})
333
+ this.search()
334
+ }
335
+ })
336
+ },
316
337
  // 添加合同
317
338
  openAddContract () {
318
339
  this.$dispatch('openAddContract')
@@ -330,6 +351,55 @@
330
351
  search () {
331
352
  this.$dispatch('search')
332
353
  },
354
+ getfield() {
355
+ let report = {
356
+ 'f_hidden_name': '工程项目名称',
357
+ 'f_hidden_address': '项目地点',
358
+ 'f_hidden_classes': '隐患类别',
359
+ 'f_hidden_rank': '隐患级别',
360
+ 'f_hidden_describe': '隐患描述',
361
+ 'f_hidden_scheme': '制定整改方案',
362
+ 'f_hidden_schemer': '整改责任人',
363
+ 'f_troubleshoot_date': '项目排查时间',
364
+ 'f_project_state': '项目状态',
365
+ 'f_oa_approval': 'oa是否审批',
366
+ 'f_budget_correction_fee': '项目预算整改费用',
367
+ 'f_actual_rectification_cost': '项目实际整改费用',
368
+ 'f_total_payment': '累计付款',
369
+ 'f_materials_fee': '材料款',
370
+ 'f_project_fee': '工程款',
371
+ 'f_artificial_fee': '人工款',
372
+ 'f_start_working_date': '预计开工日期',
373
+ 'f_complete_working_date': '预计完工日期',
374
+ 'f_working_date': '工期',
375
+ 'f_start_practical_date': '实际开工日期',
376
+ 'f_complete_practical_date': '实际完工日期',
377
+ 'f_practical_date': '实际工期',
378
+ 'f_overdue_date': '已超过约定工期天数',
379
+ 'f_hidden_dangers': '项目隐患抽查情况',
380
+ 'f_hidden_budget_correction': '是否属于年度预算内整改',
381
+ 'f_info': '反馈内容',
382
+ 'f_info_date': '反馈时间',
383
+ 'f_ziorg_info': '子公司意见反馈',
384
+ 'f_ziorg_date': '子公司意见反馈时间',
385
+ 'f_zong_gc_info': '总部工程部意见反馈',
386
+ 'f_ziorg_gc_date': '总部工程部意见反馈时间',
387
+ 'f_zong_wz_info': '总部物资部意见反馈',
388
+ 'f_zong_wz_date': '总部物资部意见反馈时间',
389
+ 'f_zong_sj_info': '总部设计部意见反馈',
390
+ 'f_zong_sj_date': '总部设计部意见反馈时间',
391
+ 'f_zong_yy_info': '总部运营部意见反馈',
392
+ 'f_zong_yy_date': '总部运营部意见反馈时间',
393
+ 'f_zong_aq_info': '总部安全部意见反馈',
394
+ 'f_zong_aq_date': '总部安全部意见反馈时间',
395
+ 'f_zong_sjb_info': '总部审计部意见反馈',
396
+ 'f_zong_sjb_date': '总部审计部意见反馈时间',
397
+ 'f_operator': '操作人',
398
+ 'f_orgname': '所属公司'
399
+
400
+ }
401
+ return report
402
+ }
333
403
  },
334
404
  events: {
335
405
  },
@@ -8,6 +8,7 @@
8
8
  <div class="col-sm-6">
9
9
  <input type="text" v-model="contract.f_orgname" v-validate:f_orgname = "['required']" v-show="false">
10
10
  <input-select
11
+ :disable="((org !== '重庆盛焰集团' || (org === '重庆盛焰集团' && deps !== '工程部')) && type != 'add') || type == 'view'"
11
12
  class="select select_list"
12
13
  :readonly="type === 'view'"
13
14
  :value.sync="contract.f_orgname"
@@ -21,6 +22,7 @@
21
22
  <div class="col-sm-6">
22
23
  <input type="text" v-model="contract.f_project_name" v-validate:f_project_name = "['required']" v-show="false">
23
24
  <input
25
+ :disabled="((org !== '重庆盛焰集团' || (org === '重庆盛焰集团' && deps !== '工程部')) && type != 'add') || type == 'view'"
24
26
  class="text"
25
27
  :readonly="type === 'view'"
26
28
  :value.sync="contract.f_project_name"
@@ -33,6 +35,7 @@
33
35
  <div class="col-sm-6">
34
36
  <input type="text" v-model="contract.f_project_address" v-validate:f_project_address = "['required']" v-show="false">
35
37
  <input
38
+ :disabled="((org !== '重庆盛焰集团' || (org === '重庆盛焰集团' && deps !== '工程部')) && type != 'add') || type == 'view'"
36
39
  class="text"
37
40
  :readonly="type === 'view'"
38
41
  :value.sync="contract.f_project_address"
@@ -45,6 +48,7 @@
45
48
  <div class="col-sm-6">
46
49
  <input type="text" v-model="contract.f_project_content" v-validate:f_project_content = "['required']" v-show="false">
47
50
  <input
51
+ :disabled="((org !== '重庆盛焰集团' || (org === '重庆盛焰集团' && deps !== '工程部')) && type != 'add') || type == 'view'"
48
52
  class="text"
49
53
  :readonly="type === 'view'"
50
54
  :value.sync="contract.f_project_content"
@@ -58,6 +62,7 @@
58
62
  <div class="col-sm-6">
59
63
  <input type="text" v-model="contract.f_project_unit" v-validate:f_project_unit = "['required']" v-show="false">
60
64
  <input
65
+ :disabled="((org !== '重庆盛焰集团' || (org === '重庆盛焰集团' && deps !== '工程部')) && type != 'add') || type == 'view'"
61
66
  class="text"
62
67
  :readonly="type === 'view'"
63
68
  :value.sync="contract.f_project_unit"
@@ -70,6 +75,7 @@
70
75
  <div class="col-sm-6">
71
76
  <input type="text" v-model="contract.f_project_state" v-validate:f_project_state = "['required']" v-show="false">
72
77
  <input-select
78
+ :disable="((org !== '重庆盛焰集团' || (org === '重庆盛焰集团' && deps !== '工程部')) && type != 'add') || type == 'view'"
73
79
  class="select select_list"
74
80
  :readonly="type === 'view'"
75
81
  :value.sync="contract.f_project_state"
@@ -83,6 +89,7 @@
83
89
  <div class="col-sm-6">
84
90
  <input type="text" v-model="contract.f_start_working_date" v-validate:f_start_working_date = "['required']" v-show="false">
85
91
  <datepicker
92
+ :disabled="((tp.f_start_working_date != '' && tp.f_start_working_date != null) && !(org == '重庆盛焰集团' && deps == '工程部') && (type == 'renew')) || type == 'view'"
86
93
  :readonly="type === 'view'"
87
94
  :click="getleadtime()"
88
95
  :value.sync="contract.f_start_working_date"
@@ -96,6 +103,7 @@
96
103
  <div class="col-sm-6">
97
104
  <input type="text" v-model="contract.f_complete_working_date" v-validate:f_complete_working_date = "['required']" v-show="false">
98
105
  <datepicker
106
+ :disabled="((tp.f_complete_working_date != '' && tp.f_complete_working_date != null) && !(org == '重庆盛焰集团' && deps == '工程部') && (type == 'renew')) || type == 'view'"
99
107
  :click="getleadtime()"
100
108
  :readonly="type === 'view'"
101
109
  :value.sync="contract.f_complete_working_date"
@@ -110,6 +118,7 @@
110
118
  <input type="text" v-model="contract.f_working_date" v-validate:f_working_date = "['required']" v-show="false">
111
119
  <input
112
120
  class="text"
121
+ :disabled="true"
113
122
  @input="select_change"
114
123
  :readonly="type === 'view'"
115
124
  :value.sync="contract.f_working_date"
@@ -128,6 +137,7 @@
128
137
  <datepicker
129
138
  :readonly="type === 'view'"
130
139
  :click="getleadtime()"
140
+ :disabled="((tp.f_start_practical_date != '' && tp.f_start_practical_date != null) && !(org == '重庆盛焰集团' && deps == '工程部') && (type == 'renew')) || type == 'view'"
131
141
  :value.sync="contract.f_start_practical_date"
132
142
  format="yyyy-MM-dd"
133
143
  v-model="contract.f_start_practical_date">
@@ -141,6 +151,7 @@
141
151
  <datepicker
142
152
  :click="getleadtime()"
143
153
  :readonly="type === 'view'"
154
+ :disabled="((tp.f_complete_practical_date != '' && tp.f_complete_practical_date != null) && !(org == '重庆盛焰集团' && deps == '工程部') && (type == 'renew')) || type == 'view'"
144
155
  :value.sync="contract.f_complete_practical_date"
145
156
  format="yyyy-MM-dd"
146
157
  v-model="contract.f_complete_practical_date">
@@ -153,6 +164,7 @@
153
164
  <input type="text" v-model="contract.f_practical_date" v-show="false">
154
165
  <input
155
166
  class="text"
167
+ :disabled="true"
156
168
  :readonly="type === 'view'"
157
169
  @input="select_change"
158
170
  :value.sync="contract.f_practical_date"
@@ -167,6 +179,7 @@
167
179
  <input type="text" v-model="contract.f_overdue_date" v-show="false">
168
180
  <input
169
181
  class="text"
182
+ :disabled="true"
170
183
  :readonly="type === 'view'"
171
184
  :value.sync="contract.f_overdue_date"
172
185
  v-model="contract.f_overdue_date"
@@ -240,6 +253,7 @@
240
253
  <input type="text" v-model="contract.f_investment_user" v-validate:f_investment_user = "['required']" v-show="false">
241
254
  <input
242
255
  class="text"
256
+ :disabled="(org !== '重庆盛焰集团' || (org === '重庆盛焰集团' && deps !== '工程部')) && type === 'view'"
243
257
  :readonly="type === 'view'"
244
258
  :value.sync="contract.f_investment_user"
245
259
  v-model="contract.f_investment_user"
@@ -252,6 +266,7 @@
252
266
  <input type="text" v-model="contract.f_project_settlement" v-show="false">
253
267
  <input-select
254
268
  class="select select_list"
269
+ disable="((org !== '重庆盛焰集团' || (org === '重庆盛焰集团' && deps !== '工程部')) && type != 'add') || type == 'view'"
255
270
  :readonly="type === 'view'"
256
271
  :value.sync="contract.f_project_settlement"
257
272
  v-model="contract.f_project_settlement"
@@ -331,6 +346,7 @@
331
346
  <input type="text" v-model="contract.f_ziorg_info" v-show="false">
332
347
  <input
333
348
  class="text"
349
+ :disabled="((org == '重庆盛焰集团') || type == 'view')"
334
350
  style="width: 600px;height: 35px"
335
351
  :readonly="type === 'view'"
336
352
  :value.sync="contract.f_ziorg_info"
@@ -343,6 +359,7 @@
343
359
  <div class="col-sm-6">
344
360
  <input type="text" v-model="contract.f_ziorg_date" v-show="false">
345
361
  <datepicker
362
+ :disabled="((org == '重庆盛焰集团') || type == 'view')"
346
363
  :readonly="type === 'view'"
347
364
  :value.sync="contract.f_ziorg_date"
348
365
  format="yyyy-MM-dd"
@@ -357,7 +374,8 @@
357
374
  <input
358
375
  class="text"
359
376
  style="width: 600px;height: 35px"
360
- :readonly="type === 'view'"
377
+ :disabled="!(org === '重庆盛焰集团' && deps === '工程部') || type == 'view'"
378
+ :readonly="type == 'view'"
361
379
  :value.sync="contract.f_zong_gc_info"
362
380
  v-model="contract.f_zong_gc_info"
363
381
  :valueSingle="true"/>
@@ -369,6 +387,7 @@
369
387
  <input type="text" v-model="contract.f_ziorg_gc_date" v-show="false">
370
388
  <datepicker
371
389
  :readonly="type === 'view'"
390
+ :disabled="!(org === '重庆盛焰集团' && deps === '工程部') || type == 'view'"
372
391
  :value.sync="contract.f_ziorg_gc_date"
373
392
  format="yyyy-MM-dd"
374
393
  v-model="contract.f_ziorg_gc_date">
@@ -382,6 +401,7 @@
382
401
  <input
383
402
  class="text"
384
403
  style="width: 600px;height: 35px"
404
+ :disabled="!((org === '重庆盛焰集团' && deps === '物资部')) || type == 'view'"
385
405
  :readonly="type === 'view'"
386
406
  :value.sync="contract.f_zong_wz_info"
387
407
  v-model="contract.f_zong_wz_info"
@@ -393,6 +413,7 @@
393
413
  <div class="col-sm-6">
394
414
  <input type="text" v-model="contract.f_zong_wz_date" v-show="false">
395
415
  <datepicker
416
+ :disabled="!((org === '重庆盛焰集团' && deps === '物资部')) || type == 'view'"
396
417
  :readonly="type === 'view'"
397
418
  :value.sync="contract.f_zong_wz_date"
398
419
  format="yyyy-MM-dd"
@@ -406,6 +427,7 @@
406
427
  <input type="text" v-model="contract.f_zong_sj_info" v-show="false">
407
428
  <input
408
429
  class="text"
430
+ :disabled="!((org === '重庆盛焰集团' && deps === '设计部')) || type == 'view'"
409
431
  style="width: 600px;height: 35px"
410
432
  :readonly="type === 'view'"
411
433
  :value.sync="contract.f_zong_sj_info"
@@ -418,6 +440,7 @@
418
440
  <div class="col-sm-6">
419
441
  <input type="text" v-model="contract.f_zong_sj_date" v-show="false">
420
442
  <datepicker
443
+ :disabled="!((org === '重庆盛焰集团' && deps === '设计部')) || type == 'view'"
421
444
  :readonly="type === 'view'"
422
445
  :value.sync="contract.f_zong_sj_date"
423
446
  format="yyyy-MM-dd"
@@ -431,6 +454,7 @@
431
454
  <input type="text" v-model="contract.f_zong_yy_info" v-show="false">
432
455
  <input
433
456
  class="text"
457
+ :disabled.sync="!((org === '重庆盛焰集团' && deps === '运营部') ) || type == 'view'"
434
458
  style="width: 600px;height: 35px"
435
459
  :readonly="type === 'view'"
436
460
  :value.sync="contract.f_zong_yy_info"
@@ -443,6 +467,7 @@
443
467
  <div class="col-sm-6">
444
468
  <input type="text" v-model="contract.f_zong_yy_date" v-show="false">
445
469
  <datepicker
470
+ :disabled="!((org === '重庆盛焰集团' && deps === '运营部') ) || type == 'view'"
446
471
  :readonly="type === 'view'"
447
472
  :value.sync="contract.f_zong_yy_date"
448
473
  format="yyyy-MM-dd"
@@ -477,6 +502,7 @@
477
502
  <button class="btn btn-primary" v-if="type === 'add'" @click.prevent="addProject()" :disabled='!($v.valid)'>保存</button>
478
503
  <button class="btn btn-primary" v-if="type === 'renew'" @click.prevent="renewContract()" :disabled='!($v.valid)'>修改</button>
479
504
  </div>
505
+ </div>
480
506
  </form>
481
507
  </validator>
482
508
  <data-grid v-if="type==='view'" :model="changemessage" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
@@ -551,12 +577,17 @@
551
577
  old:{},
552
578
  newzhi:{},
553
579
  oldzhi:{},
580
+ org: this.$login.f.orgs,
581
+ deps: this.$login.f.deps,
554
582
  ziduan:{},
555
583
  facility: {},
556
584
  completedate:"",
557
585
  index: null,
558
586
  showFile: false,
559
587
  apply_org: [],
588
+ tp: {
589
+
590
+ },
560
591
  changemessage: {
561
592
  rows: []
562
593
  }
@@ -564,7 +595,7 @@
564
595
  },
565
596
  ready () {
566
597
  this.getOrgName()
567
- debugger
598
+ this.$set('tp',Object.assign({},this.tp,this.contract))
568
599
  if(this.type==='view'){
569
600
  this.$resetpost(
570
601
  `gongcheng/rs/sql/changeMessage`,
@@ -645,6 +676,12 @@
645
676
  this.$set(`contract.f_practical_date`,leadtime)
646
677
  console.log("打印时间差",this.contract.f_practical_date)
647
678
  }
679
+ if(!this.contract.f_practical_date ){
680
+ this.$set(`contract.f_practical_date`,0)
681
+ }
682
+ if(!this.contract.f_working_date){
683
+ this.$set(`contract.f_working_date`,0)
684
+ }
648
685
  },
649
686
 
650
687
 
@@ -792,7 +829,7 @@
792
829
  /*background-color: #F5F5F5;*/
793
830
  color:#ACA899!important;
794
831
  }
795
- .input_view:disabled{
832
+ .input_view:disabledd{
796
833
  border: 1px solid #DDD!important;
797
834
  /*background-color: #F5F5F5;*/
798
835
  color:#ACA899!important;
@@ -3,11 +3,11 @@
3
3
  <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
4
4
  <div class="form-horizontal select-overspread container-fluid auto" partial>
5
5
  <div class="row">
6
- <div class="form-group col-sm-3">
7
- <label class="font_normal_body">工程项目名称:</label>
8
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_project_name"
9
- v-on:keyup.enter="$parent.$parent.search()" condition="f_project_name like '%{}%'" placeholder='工程项目名称'>
10
- </div>
6
+ <!-- <div class="form-group col-sm-3">-->
7
+ <!-- <label class="font_normal_body">工程项目名称:</label>-->
8
+ <!-- <input type="text" class="input_search" style="width: 60%" v-model="model.f_project_name"-->
9
+ <!-- v-on:keyup.enter="$parent.$parent.search()" condition="f_project_name like '%{}%'" placeholder='工程项目名称'>-->
10
+ <!-- </div>-->
11
11
  <div class="form-group col-sm-2">
12
12
  <label class="font_normal_body">所属公司:</label>
13
13
  <v-select
@@ -51,17 +51,6 @@
51
51
 
52
52
  </div>
53
53
  <div class="row">
54
- <div class="form-group col-sm-2">
55
- <label for="endDate" class="font_normal_body">结束时间:</label>
56
- <datepicker id="endDate" placeholder="结束日期"
57
- style="width: 60%!important;"
58
- v-model="model.endDate"
59
- :value.sync="model.endDate"
60
- :format="'yyyy-MM-dd HH:mm:ss'"
61
- :show-reset-button="true"
62
- condition="f_start_working_date <= '{}'">
63
- </datepicker>
64
- </div>
65
54
  <div class="form-group col-sm-3">
66
55
  <label for="startDate" class="font_normal_body">预计完工时间:</label>
67
56
  <datepicker id="startDate1" placeholder="开始日期"
@@ -70,31 +59,36 @@
70
59
  :value.sync="model.startDate"
71
60
  :format="'yyyy-MM-dd HH:mm:ss'"
72
61
  :show-reset-button="true"
73
- condition="f_complete_working_date >= '{}'">
74
- </datepicker>
75
- </div>
76
- <div class="form-group col-sm-2">
77
- <label for="endDate" class="font_normal_body">结束时间:</label>
78
- <datepicker id="endDate1" placeholder="结束日期"
79
- style="width: 60%!important;"
80
- v-model="model.endDate1"
81
- :value.sync="model.endDate1"
82
- :format="'yyyy-MM-dd HH:mm:ss'"
83
- :show-reset-button="true"
84
62
  condition="f_complete_working_date <= '{}'">
85
63
  </datepicker>
86
64
  </div>
87
- <div class="form-group col-sm-3">
88
- <label class="font_normal_body">合同预计工期:</label>
89
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_working_date"
90
- v-on:keyup.enter="$parent.$parent.search()" condition="f_working_date = '{}'" placeholder=''>
65
+ <div class="form-group col-sm-5">
66
+ <label for="startDate" class="font_normal_body">已超过约定工期天数:</label>
67
+ <input type="text" class="input_search" v-model="model.f_overdue_date"
68
+ condition="f_overdue_date >= '{}'" placeholder='已超过约定工期天数'>
91
69
  </div>
92
- <div class="form-group col-sm-2 button-range">
70
+ <div class="form-group col-sm-4 button-range">
93
71
  <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
94
72
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
95
73
  <button class="button_new button_spacing" style="width: 100px" @click="$parent.$parent.openAddContract()">添加工程</button>
74
+ <export-excel progress="apply_getExportProgress"
75
+ :data="{condition: $parent.$parent.condition}"
76
+ :field="$parent.$parent.getfield()"
77
+ sqlurl="gongcheng/rs/logic/apply_exportfile"
78
+ sql-name="projectManagement"
79
+ template-name='工程管理导出'
80
+ :choose-col="true">
81
+ </export-excel>
96
82
  </div>
97
83
  </div>
84
+ <!-- <div class="form-group col-sm-3">-->
85
+ <!-- <label class="font_normal_body">合同预计工期:</label>-->
86
+ <!-- <input type="text" class="input_search" style="width: 60%" v-model="model.f_working_date"-->
87
+ <!-- v-on:keyup.enter="$parent.$parent.search()" condition="f_working_date = '{}'" placeholder=''>-->
88
+ <!-- </div>-->
89
+ <div class="row">
90
+
91
+ </div>
98
92
  </div>
99
93
  </criteria>
100
94
  <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
@@ -117,7 +111,9 @@
117
111
  <th style="white-space: nowrap;">工业用户</th>
118
112
  <th style="white-space: nowrap;">商业用户</th>
119
113
  <th style="white-space: nowrap;">项目预计投资额</th>
120
- <th style="white-space: nowrap;">操作</th>
114
+ <th style="white-space: nowrap;">项目是否办理工程结算</th>
115
+ <th style="white-space: nowrap;">累计付款</th>
116
+ <th style="white-space: nowrap;">操&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;作</th>
121
117
  </tr>
122
118
  </template>
123
119
  <template partial='body'>
@@ -173,8 +169,16 @@
173
169
  <td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
174
170
  <nobr><font>{{ row.f_investment_user }}</font></nobr>
175
171
  </td>
176
- <td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;">
177
- <a href="#" @click="$parent.$parent.$parent.openRenew(row)">修改</a>
172
+ <td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
173
+ <nobr><font>{{ row.f_project_settlement }}</font></nobr>
174
+ </td>
175
+ <td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;" @click="$parent.$parent.$parent.openViewContract(row)">
176
+ <nobr><font>{{ row.f_total_payment }}</font></nobr>
177
+ </td>
178
+ <td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;"><nobr>
179
+ <a href="#" @click="$parent.$parent.$parent.openRenew(row)">修改</a>&emsp;|&emsp;
180
+ <a href="#" @click="$parent.$parent.$parent.deleteRow(row)">删除</a>
181
+ </nobr>
178
182
  </td>
179
183
  </tr>
180
184
  </template>
@@ -215,6 +219,7 @@
215
219
  }
216
220
  ),
217
221
  projectStatus: [{label: '全部', value: ''}, {label: '完工项目', value: '完工项目'},{label: '在建项目',value: '在建项目'},{label: '未建项目', value: '未建项目'},{label: '停工项目',value: '停工项目'}],
222
+ projectsettlements: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}],
218
223
  criteriaShow: false,
219
224
  apply_org: [],
220
225
  chargeAll: {
@@ -222,20 +227,21 @@
222
227
  sum: 0,
223
228
  yujisum:0
224
229
  },
230
+ condition: ''
225
231
  }
226
232
  },
227
233
  ready () {
234
+ this.$refs.cp.$refs.cri.model.f_overdue_date = 1
228
235
  // 调用查询
229
236
  this.search()
230
237
  this.getOrgName()
231
- this.getChargeAll()
232
238
  },
233
239
  methods: {
234
- async getChargeAll(){
240
+ async getChargeAll(args){
235
241
  debugger
236
242
  let http = new HttpResetClass()
237
243
  let data = {
238
- condition: this.model.condition,
244
+ condition: args.condition,
239
245
  data: {
240
246
  orgid: this.$login.f.orgid
241
247
  }
@@ -293,14 +299,29 @@
293
299
  this.$dispatch('openInvalid', row)
294
300
  },
295
301
  searchCondition (args) {
302
+ if(this.$login.f.orgs !== '重庆盛焰集团') {
303
+ args.condition += ` and f_orgid = '${this.$login.f.orgid}'`
304
+ }
296
305
  if (!isEmpty(args.model.f_contract_status)) {
297
306
  args.condition += ` and ${args.model.f_contract_status}`
298
307
  }
308
+ // 导出需要的条件
309
+ this.condition = args.condition
310
+ this.getChargeAll(args)
299
311
  this.model.search(args.condition, args.model)
300
312
  },
301
313
  openRenew (row) {
302
314
  this.$dispatch('openRenew', row)
303
315
  },
316
+ // 删除
317
+ deleteRow (row) {
318
+ this.$showMessage("确定要删除该行吗", ['confirm', 'cancel'], 'danger').then((res) => {
319
+ if(res === 'confirm'){
320
+ this.$resetpost('gongcheng/rs/logic/deleteProject', {id: row.id, tablename: 't_project_management'}, {resolveMsg: '删除成功', rejectMsg: '删除失败'})
321
+ this.search()
322
+ }
323
+ })
324
+ },
304
325
  // 添加合同
305
326
  openAddContract () {
306
327
  this.$dispatch('openAddContract')
@@ -318,6 +339,50 @@
318
339
  search () {
319
340
  this.$dispatch('search')
320
341
  },
342
+
343
+ getfield() {
344
+ let report = {
345
+ 'f_project_name': '工程项目名称',
346
+ 'f_project_address': '项目地点',
347
+ 'f_project_content': '市场部收费及派工内容',
348
+ 'f_project_unit': '施工单位',
349
+ 'f_project_state': '项目状态',
350
+ 'f_start_working_date': '预计开工日期',
351
+ 'f_complete_working_date': '预计完工日期',
352
+ 'f_working_date': '合同预计工期',
353
+ 'f_start_practical_date': '实际开工日期',
354
+ 'f_complete_practical_date': '实际完工日期',
355
+ 'f_practical_date': '实际工期',
356
+ 'f_overdue_date': '已超过约定工期天数',
357
+ 'f_zhong_pipeline': '中压管道(公里)',
358
+ 'f_di_pipeline': '低压管道',
359
+ 'f_civil_user': '民用用户',
360
+ 'f_industrial_user': '工业用户',
361
+ 'f_business_user': '商业用户',
362
+ 'f_investment_user': '项目预计投资额',
363
+ 'f_first_payment': '第一次支付',
364
+ 'f_second_payment': '第二次支付',
365
+ 'f_third_payment': '第三次支付',
366
+ 'f_total_payment': '累计付款',
367
+ 'f_residual_balance': '剩余款项',
368
+ 'f_project_settlement': '项目是否办理工程结算',
369
+ 'f_info': '反馈内容',
370
+ 'f_info_date': '反馈时间',
371
+ 'f_ziorg_info': '子公司意见反馈',
372
+ 'f_ziorg_date': '子公司意见反馈时间',
373
+ 'f_zong_gc_info': '总部工程部意见反馈',
374
+ 'f_ziorg_gc_date': '总部工程部意见反馈时间',
375
+ 'f_zong_wz_info': '总部物资部意见反馈',
376
+ 'f_zong_wz_date': '总部物资部意见反馈时间',
377
+ 'f_zong_sj_info': '总部设计部意见反馈',
378
+ 'f_zong_sj_date': '总部设计部意见反馈时间',
379
+ 'f_zong_yy_info': '总部运营部意见反馈',
380
+ 'f_zong_yy_date': '总部运营部意见反馈时间',
381
+ 'f_operator': '操作人',
382
+ 'f_orgname': '所属公司'
383
+ }
384
+ return report
385
+ }
321
386
  },
322
387
  events: {
323
388
  },
@@ -57,7 +57,7 @@
57
57
  data.user = this.$login.f
58
58
 
59
59
  let res = await this.$resetpost(
60
- `gongcheng/rs/logic/amendproject`,
60
+ `gongcheng//logic/amendproject`,
61
61
  {data: data},
62
62
  {resolveMsg: null,rejectMsg: '修改失败!!!'}
63
63
  )