apply-clients 3.0.10-21 → 3.0.10-210
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/.gradle/3.5/file-changes/last-build.bin +0 -0
- package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/doc//346/226/260/347/224/250/346/210/267/350/212/261/345/220/215/345/206/214/345/257/274/345/205/245/346/250/241/346/235/277.xls +0 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/gradlew +0 -0
- package/gradlew.bat +84 -0
- package/package.json +5 -4
- package/src/apply.js +187 -146
- package/src/components/Util.js +26 -22
- package/src/components/app_apply/ApplyDownList.vue +21 -8
- package/src/components/app_apply/ApplyToDoList.vue +83 -59
- package/src/components/app_apply/ApplyUserInfo.vue +3 -3
- package/src/components/app_apply/PlaceControler.vue +255 -255
- package/src/components/app_apply/ServiceControl.vue +1387 -1387
- package/src/components/app_apply/ServiceView.vue +583 -361
- package/src/components/image/doc.jpg +0 -0
- package/src/components/image/excel.jpg +0 -0
- package/src/components/image/pdf.jpg +0 -0
- package/src/components/product/BatchFunction/BatchPay.vue +663 -0
- package/src/components/product/Function/InstallFunction.vue +9 -9
- package/src/components/product/Function/InstallInfoSelect.vue +230 -38
- package/src/components/product/Function/Service/FunctionServiceControl.vue +3 -1
- package/src/components/product/Function/functions/InstallFee.vue +58 -35
- package/src/components/product/Function/functions/StopInstall.vue +13 -1
- package/src/components/product/HiddenDangersInProjects/AddHiddenDangers.vue +957 -0
- package/src/components/product/HiddenDangersInProjects/HiddenProjectList.vue +425 -0
- package/src/components/product/HiddenDangersInProjects/HiddenProjectSchedule.vue +146 -0
- package/src/components/product/Process/ExplorationSelect.vue +302 -71
- package/src/components/product/Process/ExplorationUser.vue +18 -3
- package/src/components/product/Process/Processes/CustomerRecordMessage.vue +736 -201
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +75 -69
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +3172 -3053
- package/src/components/product/ProjectManagement/AddProjectSchedule.vue +863 -0
- package/src/components/product/ProjectManagement/ProjectList.vue +420 -0
- package/src/components/product/ProjectManagement/ProjectSchedule.vue +146 -0
- package/src/components/product/ReportForm/PaymentRecord.vue +801 -0
- package/src/components/product/ReportForm/PaymentRecordAdd.vue +105 -0
- package/src/components/product/ReportForm/PaymentRecordBad.vue +1273 -0
- package/src/components/product/ReportForm/PaymentRecordDetailed.vue +472 -0
- package/src/components/product/ReportForm/PaymentRecordTooBad.vue +60 -0
- package/src/components/product/ReportForm/PaymentReport.vue +532 -0
- package/src/components/product/ReportForm/ProjectReport.vue +447 -0
- package/src/components/product/ReportForm/SettlementReport.vue +336 -0
- package/src/components/product/ReportForm/SummaryReport.vue +451 -0
- package/src/components/product/ReportForm/UserReport.vue +402 -0
- package/src/components/product/ServiceView.vue +17 -9
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +36 -2
- package/src/components/product/Supervisory/SupervisoryControl.vue +30 -6
- package/src/components/product/Supervisory/SupervisoryList.vue +249 -34
- package/src/components/product/VueUtils/ApplyUpload.vue +310 -0
- package/src/components/product/VueUtils/rightview/InstallCardList2.vue +0 -1
- package/src/main.js +4 -0
- package/success.rar +0 -0
- package/doc//350/212/261/345/220/215/345/206/214/345/257/274/345/205/245/346/250/241/346/235/277.xlsx +0 -0
|
@@ -0,0 +1,957 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="select-overspread" style="background-color: #ffffff;padding: 20px;overflow: scroll">
|
|
3
|
+
<validator name="v">
|
|
4
|
+
<form class="form-horizontal">
|
|
5
|
+
<div class="form-group">
|
|
6
|
+
<div class="col-sm-4 form-group item" :class="[$v.f_orgname.required ? 'has-error' : '']">
|
|
7
|
+
<label class="control-label-justify control-label col-sm-6">所属公司</label>
|
|
8
|
+
<div class="col-sm-6">
|
|
9
|
+
<input type="text" v-model="contract.f_orgname" v-validate:f_orgname = "['required']" v-show="false">
|
|
10
|
+
<input-select
|
|
11
|
+
:disable="((tp.f_orgname != '' && tp.f_orgname != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
|
|
12
|
+
class="select select_list"
|
|
13
|
+
:readonly="type === 'view'"
|
|
14
|
+
:value.sync="contract.f_orgname"
|
|
15
|
+
v-model="contract.f_orgname"
|
|
16
|
+
:options="apply_org"
|
|
17
|
+
:valueSingle="true"></input-select>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-sm-4 form-group item" :class="[$v.f_hidden_name.required ? 'has-error' : '']">
|
|
21
|
+
<label class="control-label-justify control-label col-sm-6">隐患项目名称</label>
|
|
22
|
+
<div class="col-sm-6">
|
|
23
|
+
<input type="text" v-model="contract.f_hidden_name" v-validate:f_hidden_name = "['required']" v-show="false">
|
|
24
|
+
<input
|
|
25
|
+
:disabled="((tp.f_hidden_name != '' && tp.f_hidden_name != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
|
|
26
|
+
class="text"
|
|
27
|
+
:readonly="type === 'view'"
|
|
28
|
+
:value.sync="contract.f_hidden_name"
|
|
29
|
+
v-model="contract.f_hidden_name"
|
|
30
|
+
:valueSingle="true"/>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="col-sm-4 form-group item" :class="[$v.f_hidden_address.required ? 'has-error' : '']">
|
|
34
|
+
<label class="control-label-justify control-label col-sm-6">项目地点</label>
|
|
35
|
+
<div class="col-sm-6">
|
|
36
|
+
<input type="text" v-model="contract.f_hidden_address" v-validate:f_hidden_address = "['required']" v-show="false">
|
|
37
|
+
<input
|
|
38
|
+
:disabled="((tp.f_hidden_address != '' && tp.f_hidden_address != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
|
|
39
|
+
class="text"
|
|
40
|
+
:readonly="type === 'view'"
|
|
41
|
+
:value.sync="contract.f_hidden_address"
|
|
42
|
+
v-model="contract.f_hidden_address"
|
|
43
|
+
:valueSingle="true"/>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="col-sm-4 form-group item" :class="[$v.f_hidden_classes.required ? 'has-error' : '']">
|
|
47
|
+
<label class="control-label-justify control-label col-sm-6">隐患类别</label>
|
|
48
|
+
<div class="col-sm-6">
|
|
49
|
+
<input type="text" v-model="contract.f_hidden_classes" v-validate:f_hidden_classes = "['required']" v-show="false">
|
|
50
|
+
<input
|
|
51
|
+
:disabled="((tp.f_hidden_classes != '' && tp.f_hidden_classes != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
|
|
52
|
+
class="text"
|
|
53
|
+
:readonly="type === 'view'"
|
|
54
|
+
:value.sync="contract.f_hidden_classes"
|
|
55
|
+
v-model="contract.f_hidden_classes"
|
|
56
|
+
:valueSingle="true"/>
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="col-sm-4 form-group item" :class="[$v.f_hidden_rank.required ? 'has-error' : '']">
|
|
61
|
+
<label class="control-label-justify control-label col-sm-6">隐患级别</label>
|
|
62
|
+
<div class="col-sm-6">
|
|
63
|
+
<input type="text" v-model="contract.f_hidden_rank" v-validate:f_hidden_rank = "['required']" v-show="false">
|
|
64
|
+
<input-select
|
|
65
|
+
:disable="((tp.f_hidden_rank != '' && tp.f_hidden_rank != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
|
|
66
|
+
class="select select_list"
|
|
67
|
+
:readonly="type === 'view'"
|
|
68
|
+
:value.sync="contract.f_hidden_rank"
|
|
69
|
+
v-model="contract.f_hidden_rank"
|
|
70
|
+
:options="hiddenrank"
|
|
71
|
+
:valueSingle="true"></input-select>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
<div class="col-sm-12 form-group item" :class="[$v.f_hidden_describe.required ? 'has-error' : '']">
|
|
75
|
+
<label class="control-label-justify control-label col-sm-6">隐患描述</label>
|
|
76
|
+
<div class="col-sm-6">
|
|
77
|
+
<input type="text" v-model="contract.f_hidden_describe" v-validate:f_hidden_describe = "['required']" v-show="false">
|
|
78
|
+
<input
|
|
79
|
+
:disabled="((tp.f_hidden_describe != '' && tp.f_hidden_describe != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
|
|
80
|
+
class="text col-sm-6"
|
|
81
|
+
style="width: 1000px;height: 35px"
|
|
82
|
+
:readonly="type === 'view'"
|
|
83
|
+
:value.sync="contract.f_hidden_describe"
|
|
84
|
+
v-model="contract.f_hidden_describe"
|
|
85
|
+
:valueSingle="true"/>
|
|
86
|
+
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<div class="col-sm-12 form-group item" :class="[$v.f_hidden_scheme.required ? 'has-error' : '']">
|
|
91
|
+
<label class="control-label-justify control-label col-sm-6">制定整改方案</label>
|
|
92
|
+
<div class="col-sm-6">
|
|
93
|
+
<input type="text" v-model="contract.f_hidden_scheme" v-validate:f_hidden_scheme = "['required']" v-show="false">
|
|
94
|
+
<input
|
|
95
|
+
style="width: 1000px;height: 35px"
|
|
96
|
+
:disabled="((tp.f_hidden_scheme != '' && tp.f_hidden_scheme != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
|
|
97
|
+
class="text"
|
|
98
|
+
:readonly="type === 'view'"
|
|
99
|
+
:value.sync="contract.f_hidden_scheme"
|
|
100
|
+
v-model="contract.f_hidden_scheme"
|
|
101
|
+
:valueSingle="true"/>
|
|
102
|
+
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<div class="col-sm-4 form-group item" :class="[$v.f_hidden_schemer.required ? 'has-error' : '']">
|
|
107
|
+
<label class="control-label-justify control-label col-sm-6">整改责任人</label>
|
|
108
|
+
<div class="col-sm-6">
|
|
109
|
+
<input type="text" v-model="contract.f_hidden_schemer" v-validate:f_hidden_schemer = "['required']" v-show="false">
|
|
110
|
+
<input
|
|
111
|
+
class="text"
|
|
112
|
+
:readonly="type === 'view'"
|
|
113
|
+
:disabled="((tp.f_hidden_schemer != '' && tp.f_hidden_schemer != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
|
|
114
|
+
:value.sync="contract.f_hidden_schemer"
|
|
115
|
+
v-model="contract.f_hidden_schemer"
|
|
116
|
+
:valueSingle="true"/>
|
|
117
|
+
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
|
|
121
|
+
<div class="col-sm-4 form-group item" :class="[$v.f_project_unit.required ? 'has-error' : '']">
|
|
122
|
+
<label class="control-label-justify control-label col-sm-6">施工单位</label>
|
|
123
|
+
<div class="col-sm-6">
|
|
124
|
+
<input type="text" v-model="contract.f_project_unit" v-validate:f_project_unit = "['required']" v-show="false">
|
|
125
|
+
<input
|
|
126
|
+
class="text"
|
|
127
|
+
:readonly="type === 'view'"
|
|
128
|
+
:disabled="((tp.f_project_unit != '' && tp.f_project_unit != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
|
|
129
|
+
:value.sync="contract.f_project_unit"
|
|
130
|
+
v-model="contract.f_project_unit"
|
|
131
|
+
:valueSingle="true"/>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
<div class="col-sm-4 form-group item" :class="[$v.f_troubleshoot_date.required ? 'has-error' : '']">
|
|
136
|
+
<label class="control-label-justify control-label col-sm-6">项目排查时间</label>
|
|
137
|
+
<div class="col-sm-6">
|
|
138
|
+
<input type="text" v-model="contract.f_troubleshoot_date" v-validate:f_troubleshoot_date = "['required']" v-show="false">
|
|
139
|
+
<datepicker
|
|
140
|
+
:readonly="type === 'view'"
|
|
141
|
+
:disabled="((tp.f_troubleshoot_date != '' && tp.f_troubleshoot_date != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
|
|
142
|
+
:click="getleadtime()"
|
|
143
|
+
:value.sync="contract.f_troubleshoot_date"
|
|
144
|
+
format="yyyy-MM-dd"
|
|
145
|
+
v-model="contract.f_troubleshoot_date">
|
|
146
|
+
</datepicker>
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
<div class="col-sm-4 form-group item" :class="[$v.f_oa_approval.required ? 'has-error' : '']">
|
|
150
|
+
<label class="control-label-justify control-label col-sm-6">oa是否已审批</label>
|
|
151
|
+
<div class="col-sm-6">
|
|
152
|
+
<input type="text" v-model="contract.f_oa_approval" v-validate:f_oa_approval = "['required']" v-show="false">
|
|
153
|
+
<input-select
|
|
154
|
+
class="select select_list"
|
|
155
|
+
:readonly="type === 'view'"
|
|
156
|
+
:disable="((tp.f_oa_approval != '' && tp.f_oa_approval != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
|
|
157
|
+
:value.sync="contract.f_oa_approval"
|
|
158
|
+
v-model="contract.f_oa_approval"
|
|
159
|
+
:options="oaapproval"
|
|
160
|
+
:valueSingle="true"></input-select>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
<div class="col-sm-4 form-group item" >
|
|
164
|
+
<label class="control-label-justify control-label col-sm-6">项目整改状态</label>
|
|
165
|
+
<div class="col-sm-6">
|
|
166
|
+
<input type="text" v-model="contract.f_project_state" v-show="false">
|
|
167
|
+
<input-select
|
|
168
|
+
class="select select_list"
|
|
169
|
+
:disable="((org !== '重庆盛焰集团' || (org === '重庆盛焰集团' && deps !== '安全部')) && type != 'add') || type == 'view'"
|
|
170
|
+
:readonly="type === 'view'"
|
|
171
|
+
:value.sync="contract.f_project_state"
|
|
172
|
+
v-model="contract.f_project_state"
|
|
173
|
+
:options="projectStatus"
|
|
174
|
+
:valueSingle="true"></input-select>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
<div class="col-sm-4 form-group item" :class="[$v.f_budget_correction_fee.required ? 'has-error' : '']">
|
|
178
|
+
<label class="control-label-justify control-label col-sm-6">项目预算整改费用(元)</label>
|
|
179
|
+
<div class="col-sm-6">
|
|
180
|
+
<input type="text" v-model="contract.f_budget_correction_fee" v-validate:f_budget_correction_fee = "['required']" v-show="false">
|
|
181
|
+
<input
|
|
182
|
+
class="text"
|
|
183
|
+
:readonly="type === 'view'"
|
|
184
|
+
:value.sync="contract.f_budget_correction_fee"
|
|
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'"
|
|
187
|
+
:valueSingle="true"/>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
|
|
191
|
+
<div class="col-sm-4 form-group item" >
|
|
192
|
+
<label class="control-label-justify control-label col-sm-6">项目实际整改费用(元)</label>
|
|
193
|
+
<div class="col-sm-6">
|
|
194
|
+
<input type="text" v-model="contract.f_actual_rectification_cost" v-show="false">
|
|
195
|
+
<input
|
|
196
|
+
class="text"
|
|
197
|
+
:readonly="type === 'view'"
|
|
198
|
+
:value.sync="contract.f_actual_rectification_cost"
|
|
199
|
+
v-model="contract.f_actual_rectification_cost"
|
|
200
|
+
:valueSingle="true"/>
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
<div class="col-sm-4 form-group item" >
|
|
204
|
+
<label class="control-label-justify control-label col-sm-6">材料款(元)</label>
|
|
205
|
+
<div class="col-sm-6">
|
|
206
|
+
<input type="text" v-model="contract.f_materials_fee" v-show="false">
|
|
207
|
+
<input
|
|
208
|
+
class="text"
|
|
209
|
+
:click="getpayment()"
|
|
210
|
+
:readonly="type === 'view'"
|
|
211
|
+
:value.sync="contract.f_materials_fee"
|
|
212
|
+
v-model="contract.f_materials_fee"
|
|
213
|
+
:valueSingle="true"/>
|
|
214
|
+
</div>
|
|
215
|
+
</div>
|
|
216
|
+
|
|
217
|
+
<div class="col-sm-4 form-group item">
|
|
218
|
+
<label class="control-label-justify control-label col-sm-6">工程款(元)</label>
|
|
219
|
+
<div class="col-sm-6">
|
|
220
|
+
<input type="text" v-model="contract.f_project_fee" v-show="false">
|
|
221
|
+
<input
|
|
222
|
+
class="text"
|
|
223
|
+
:click="getpayment()"
|
|
224
|
+
:readonly="type === 'view'"
|
|
225
|
+
:value.sync="contract.f_project_fee"
|
|
226
|
+
v-model="contract.f_project_fee"
|
|
227
|
+
:valueSingle="true"/>
|
|
228
|
+
</div>
|
|
229
|
+
</div>
|
|
230
|
+
|
|
231
|
+
<div class="col-sm-4 form-group item">
|
|
232
|
+
<label class="control-label-justify control-label col-sm-6">人工款(元)</label>
|
|
233
|
+
<div class="col-sm-6">
|
|
234
|
+
<input type="text" v-model="contract.f_artificial_fee" v-show="false">
|
|
235
|
+
<input
|
|
236
|
+
class="text"
|
|
237
|
+
:readonly="type === 'view'"
|
|
238
|
+
:click="getpayment()"
|
|
239
|
+
:value.sync="contract.f_artificial_fee"
|
|
240
|
+
v-model="contract.f_artificial_fee"
|
|
241
|
+
:valueSingle="true"/>
|
|
242
|
+
</div>
|
|
243
|
+
</div>
|
|
244
|
+
|
|
245
|
+
<div class="col-sm-4 form-group item" >
|
|
246
|
+
<label class="control-label-justify control-label col-sm-6">累计付款(元)</label>
|
|
247
|
+
<div class="col-sm-6">
|
|
248
|
+
<input type="text" v-model="contract.f_total_payment" v-show="false">
|
|
249
|
+
<input
|
|
250
|
+
class="text"
|
|
251
|
+
:readonly="type === 'view'"
|
|
252
|
+
:value.sync="contract.f_total_payment"
|
|
253
|
+
v-model="contract.f_total_payment"
|
|
254
|
+
:valueSingle="true"/>
|
|
255
|
+
</div>
|
|
256
|
+
</div>
|
|
257
|
+
<div class="col-sm-4 form-group item" :class="[$v.f_start_working_date.required ? 'has-error' : '']">
|
|
258
|
+
<label class="control-label-justify control-label col-sm-6">预计开工日期</label>
|
|
259
|
+
<div class="col-sm-6">
|
|
260
|
+
<input type="text" v-model="contract.f_start_working_date" v-validate:f_start_working_date = "['required']" v-show="false">
|
|
261
|
+
<datepicker
|
|
262
|
+
:readonly="type === 'view'"
|
|
263
|
+
:disabled="((tp.f_start_working_date != '' && tp.f_start_working_date != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
|
|
264
|
+
:click="getleadtime()"
|
|
265
|
+
:value.sync="contract.f_start_working_date"
|
|
266
|
+
format="yyyy-MM-dd"
|
|
267
|
+
v-model="contract.f_start_working_date">
|
|
268
|
+
</datepicker>
|
|
269
|
+
</div>
|
|
270
|
+
</div>
|
|
271
|
+
<div class="col-sm-4 form-group item" :class="[$v.f_complete_working_date.required ? 'has-error' : '']">
|
|
272
|
+
<label class="control-label-justify control-label col-sm-6">预计完工日期</label>
|
|
273
|
+
<div class="col-sm-6">
|
|
274
|
+
<input type="text" v-model="contract.f_complete_working_date" v-validate:f_complete_working_date = "['required']" v-show="false">
|
|
275
|
+
<datepicker
|
|
276
|
+
:click="getleadtime()"
|
|
277
|
+
:readonly="type === 'view'"
|
|
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'"
|
|
280
|
+
format="yyyy-MM-dd"
|
|
281
|
+
v-model="contract.f_complete_working_date">
|
|
282
|
+
</datepicker>
|
|
283
|
+
</div>
|
|
284
|
+
</div>
|
|
285
|
+
<div class="col-sm-4 form-group item" :class="[$v.f_working_date.required ? 'has-error' : '']">
|
|
286
|
+
<label class="control-label-justify control-label col-sm-6">预计整改工期</label>
|
|
287
|
+
<div class="col-sm-6">
|
|
288
|
+
<input type="text" v-model="contract.f_working_date" v-validate:f_working_date = "['required']" v-show="false">
|
|
289
|
+
<input
|
|
290
|
+
class="text"
|
|
291
|
+
:readonly="type === 'view'"
|
|
292
|
+
:value.sync="contract.f_working_date"
|
|
293
|
+
:disabled="true"
|
|
294
|
+
v-model="contract.f_working_date"
|
|
295
|
+
:valueSingle="true"/>
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
<div class="col-sm-4 form-group item" >
|
|
299
|
+
<label class="control-label-justify control-label col-sm-6">实际开工日期</label>
|
|
300
|
+
<div class="col-sm-6">
|
|
301
|
+
<input type="text" v-model="contract.f_start_practical_date" v-show="false">
|
|
302
|
+
<datepicker
|
|
303
|
+
:readonly="type === 'view'"
|
|
304
|
+
:disabled="((tp.f_start_practical_date != '' && tp.f_start_practical_date != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
|
|
305
|
+
:click="getleadtime()"
|
|
306
|
+
:value.sync="contract.f_start_practical_date"
|
|
307
|
+
format="yyyy-MM-dd"
|
|
308
|
+
v-model="contract.f_start_practical_date">
|
|
309
|
+
</datepicker>
|
|
310
|
+
</div>
|
|
311
|
+
</div>
|
|
312
|
+
<div class="col-sm-4 form-group item">
|
|
313
|
+
<label class="control-label-justify control-label col-sm-6">实际完工日期</label>
|
|
314
|
+
<div class="col-sm-6">
|
|
315
|
+
<input type="text" v-model="contract.f_complete_practical_date" v-show="false">
|
|
316
|
+
<datepicker
|
|
317
|
+
:click="getleadtime()"
|
|
318
|
+
:readonly="type === 'view'"
|
|
319
|
+
:disabled="((tp.f_complete_practical_date != '' && tp.f_complete_practical_date != null) && !(org == '重庆盛焰集团' && deps == '安全部') && (type == 'renew')) || type == 'view'"
|
|
320
|
+
:value.sync="contract.f_complete_practical_date"
|
|
321
|
+
format="yyyy-MM-dd"
|
|
322
|
+
v-model="contract.f_complete_practical_date">
|
|
323
|
+
</datepicker>
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
<div class="col-sm-4 form-group item">
|
|
327
|
+
<label class="control-label-justify control-label col-sm-6">实际整改工期</label>
|
|
328
|
+
<div class="col-sm-6">
|
|
329
|
+
<input type="text" v-model="contract.f_practical_date" v-show="false">
|
|
330
|
+
<input
|
|
331
|
+
class="text"
|
|
332
|
+
:readonly="type === 'view'"
|
|
333
|
+
:disabled="true"
|
|
334
|
+
@input="select_change"
|
|
335
|
+
:value.sync="contract.f_practical_date"
|
|
336
|
+
v-model="contract.f_practical_date"
|
|
337
|
+
:valueSingle="true"/>
|
|
338
|
+
</div>
|
|
339
|
+
</div>
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
<div class="col-sm-4 form-group item" >
|
|
344
|
+
<label class="control-label-justify control-label col-sm-6">已超过约定工期天数</label>
|
|
345
|
+
<div class="col-sm-6">
|
|
346
|
+
<input type="text" v-model="contract.f_overdue_date" v-show="false">
|
|
347
|
+
<input
|
|
348
|
+
class="text"
|
|
349
|
+
:readonly="type === 'view'"
|
|
350
|
+
:value.sync="contract.f_overdue_date"
|
|
351
|
+
v-model="contract.f_overdue_date"
|
|
352
|
+
:valueSingle="true"/>
|
|
353
|
+
</div>
|
|
354
|
+
</div>
|
|
355
|
+
<div class="col-sm-4 form-group item" >
|
|
356
|
+
<label class="control-label-justify control-label col-sm-6">项目隐患抽查情况</label>
|
|
357
|
+
<div class="col-sm-6">
|
|
358
|
+
<input type="text" v-model="contract.f_hidden_dangers" v-show="false">
|
|
359
|
+
<input-select
|
|
360
|
+
class="select select_list"
|
|
361
|
+
:disable="((org !== '重庆盛焰集团' || (org === '重庆盛焰集团' && deps !== '安全部')) && type != 'add') || type == 'view'"
|
|
362
|
+
:readonly="type === 'view'"
|
|
363
|
+
:value.sync="contract.f_hidden_dangers"
|
|
364
|
+
v-model="contract.f_hidden_dangers"
|
|
365
|
+
:options="hiddendangers"
|
|
366
|
+
:valueSingle="true"></input-select>
|
|
367
|
+
</div>
|
|
368
|
+
</div>
|
|
369
|
+
<div class="col-sm-4 form-group item">
|
|
370
|
+
<label class="control-label-justify control-label col-sm-6">是否属于年度预算内整改</label>
|
|
371
|
+
<div class="col-sm-6">
|
|
372
|
+
<input type="text" v-model="contract.f_hidden_budget_correction" v-show="false">
|
|
373
|
+
<input-select
|
|
374
|
+
class="select select_list"
|
|
375
|
+
:readonly="type === 'view'"
|
|
376
|
+
:disable="((org !== '重庆盛焰集团' || (org === '重庆盛焰集团' && deps !== '安全部')) && type != 'add') || type == 'view'"
|
|
377
|
+
:value.sync="contract.f_hidden_budget_correction"
|
|
378
|
+
v-model="contract.f_hidden_budget_correction"
|
|
379
|
+
:options="budgetcorrection"
|
|
380
|
+
:valueSingle="true"></input-select>
|
|
381
|
+
</div>
|
|
382
|
+
</div>
|
|
383
|
+
<div class="col-sm-12 form-group">
|
|
384
|
+
<div class="col-sm-8 form-group item">
|
|
385
|
+
<label class="control-label-justify control-label col-sm-6">子公司意见反馈</label>
|
|
386
|
+
<div class="col-sm-6">
|
|
387
|
+
<input type="text" v-model="contract.f_ziorg_info" v-show="false">
|
|
388
|
+
<input
|
|
389
|
+
class="text"
|
|
390
|
+
:disabled="((org == '重庆盛焰集团') || type == 'view')"
|
|
391
|
+
style="width: 600px;height: 35px"
|
|
392
|
+
:readonly="type === 'view'"
|
|
393
|
+
:value.sync="contract.f_ziorg_info"
|
|
394
|
+
v-model="contract.f_ziorg_info"
|
|
395
|
+
:valueSingle="true"/>
|
|
396
|
+
</div>
|
|
397
|
+
</div>
|
|
398
|
+
<div class="col-sm-4 form-group item">
|
|
399
|
+
<label class="control-label-justify control-label col-sm-6">预计完成时间</label>
|
|
400
|
+
<div class="col-sm-6">
|
|
401
|
+
<input type="text" v-model="contract.f_ziorg_date" v-show="false">
|
|
402
|
+
<datepicker
|
|
403
|
+
:readonly="type === 'view'"
|
|
404
|
+
:value.sync="contract.f_ziorg_date"
|
|
405
|
+
:disabled="((org == '重庆盛焰集团') || type == 'view')"
|
|
406
|
+
format="yyyy-MM-dd"
|
|
407
|
+
v-model="contract.f_ziorg_date">
|
|
408
|
+
</datepicker>
|
|
409
|
+
</div>
|
|
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>
|
|
438
|
+
<div class="col-sm-8 form-group item">
|
|
439
|
+
<label class="control-label-justify control-label col-sm-6">总部工程部意见反馈</label>
|
|
440
|
+
<div class="col-sm-6">
|
|
441
|
+
<input type="text" v-model="contract.f_zong_gc_info" v-show="false">
|
|
442
|
+
<input
|
|
443
|
+
class="text"
|
|
444
|
+
style="width: 600px;height: 35px"
|
|
445
|
+
:readonly="type === 'view'"
|
|
446
|
+
:disabled="!((org === '重庆盛焰集团' && deps === '工程部')) || type == 'view'"
|
|
447
|
+
:value.sync="contract.f_zong_gc_info"
|
|
448
|
+
v-model="contract.f_zong_gc_info"
|
|
449
|
+
:valueSingle="true"/>
|
|
450
|
+
</div>
|
|
451
|
+
</div>
|
|
452
|
+
<div class="col-sm-4 form-group item">
|
|
453
|
+
<label class="control-label-justify control-label col-sm-6">预计完成时间</label>
|
|
454
|
+
<div class="col-sm-6">
|
|
455
|
+
<input type="text" v-model="contract.f_ziorg_gc_date" v-show="false">
|
|
456
|
+
<datepicker
|
|
457
|
+
:readonly="type === 'view'"
|
|
458
|
+
:disabled="!((org === '重庆盛焰集团' && deps === '工程部')) || type == 'view'"
|
|
459
|
+
:value.sync="contract.f_ziorg_gc_date"
|
|
460
|
+
format="yyyy-MM-dd"
|
|
461
|
+
v-model="contract.f_ziorg_gc_date">
|
|
462
|
+
</datepicker>
|
|
463
|
+
</div>
|
|
464
|
+
</div>
|
|
465
|
+
<div class="col-sm-8 form-group item">
|
|
466
|
+
<label class="control-label-justify control-label col-sm-6">总部物资部意见反馈</label>
|
|
467
|
+
<div class="col-sm-6">
|
|
468
|
+
<input type="text" v-model="contract.f_zong_wz_info" v-show="false">
|
|
469
|
+
<input
|
|
470
|
+
class="text"
|
|
471
|
+
style="width: 600px;height: 35px"
|
|
472
|
+
:disabled="!((org === '重庆盛焰集团' && deps === '物资部')) || type == 'view'"
|
|
473
|
+
:readonly="type === 'view'"
|
|
474
|
+
:value.sync="contract.f_zong_wz_info"
|
|
475
|
+
v-model="contract.f_zong_wz_info"
|
|
476
|
+
:valueSingle="true"/>
|
|
477
|
+
</div>
|
|
478
|
+
</div>
|
|
479
|
+
<div class="col-sm-4 form-group item">
|
|
480
|
+
<label class="control-label-justify control-label col-sm-6">预计完成时间</label>
|
|
481
|
+
<div class="col-sm-6">
|
|
482
|
+
<input type="text" v-model="contract.f_zong_wz_date" v-show="false">
|
|
483
|
+
<datepicker
|
|
484
|
+
:readonly="type === 'view'"
|
|
485
|
+
:value.sync="contract.f_zong_wz_date"
|
|
486
|
+
:disabled="!((org === '重庆盛焰集团' && deps === '物资部')) || type == 'view'"
|
|
487
|
+
format="yyyy-MM-dd"
|
|
488
|
+
v-model="contract.f_zong_wz_date">
|
|
489
|
+
</datepicker>
|
|
490
|
+
</div>
|
|
491
|
+
</div>
|
|
492
|
+
<div class="col-sm-8 form-group item">
|
|
493
|
+
<label class="control-label-justify control-label col-sm-6">总部设计部意见反馈</label>
|
|
494
|
+
<div class="col-sm-6">
|
|
495
|
+
<input type="text" v-model="contract.f_zong_sj_info" v-show="false">
|
|
496
|
+
<input
|
|
497
|
+
class="text"
|
|
498
|
+
style="width: 600px;height: 35px"
|
|
499
|
+
:disabled="!((org === '重庆盛焰集团' && deps === '设计部')) || type == 'view'"
|
|
500
|
+
:readonly="type === 'view'"
|
|
501
|
+
:value.sync="contract.f_zong_sj_info"
|
|
502
|
+
v-model="contract.f_zong_sj_info"
|
|
503
|
+
:valueSingle="true"/>
|
|
504
|
+
</div>
|
|
505
|
+
</div>
|
|
506
|
+
<div class="col-sm-4 form-group item">
|
|
507
|
+
<label class="control-label-justify control-label col-sm-6">预计完成时间</label>
|
|
508
|
+
<div class="col-sm-6">
|
|
509
|
+
<input type="text" v-model="contract.f_zong_sj_date" v-show="false">
|
|
510
|
+
<datepicker
|
|
511
|
+
:readonly="type === 'view'"
|
|
512
|
+
:value.sync="contract.f_zong_sj_date"
|
|
513
|
+
:disabled="!((org === '重庆盛焰集团' && deps === '设计部')) || type == 'view'"
|
|
514
|
+
format="yyyy-MM-dd"
|
|
515
|
+
v-model="contract.f_zong_sj_date">
|
|
516
|
+
</datepicker>
|
|
517
|
+
</div>
|
|
518
|
+
</div>
|
|
519
|
+
<div class="col-sm-8 form-group item">
|
|
520
|
+
<label class="control-label-justify control-label col-sm-6">总部运营部意见反馈</label>
|
|
521
|
+
<div class="col-sm-6">
|
|
522
|
+
<input type="text" v-model="contract.f_zong_yy_info" v-show="false">
|
|
523
|
+
<input
|
|
524
|
+
class="text"
|
|
525
|
+
style="width: 600px;height: 35px"
|
|
526
|
+
:disabled="!((org === '重庆盛焰集团' && deps === '运营部')) || type == 'view'"
|
|
527
|
+
:readonly="type === 'view'"
|
|
528
|
+
:value.sync="contract.f_zong_yy_info"
|
|
529
|
+
v-model="contract.f_zong_yy_info"
|
|
530
|
+
:valueSingle="true"/>
|
|
531
|
+
</div>
|
|
532
|
+
</div>
|
|
533
|
+
<div class="col-sm-4 form-group item" >
|
|
534
|
+
<label class="control-label-justify control-label col-sm-6">预计完成时间</label>
|
|
535
|
+
<div class="col-sm-6">
|
|
536
|
+
<input type="text" v-model="contract.f_zong_yy_date" v-show="false">
|
|
537
|
+
<datepicker
|
|
538
|
+
:readonly="type === 'view'"
|
|
539
|
+
:disabled="!((org === '重庆盛焰集团' && deps === '运营部')) || type == 'view'"
|
|
540
|
+
:value.sync="contract.f_zong_yy_date"
|
|
541
|
+
format="yyyy-MM-dd"
|
|
542
|
+
v-model="contract.f_zong_yy_date">
|
|
543
|
+
</datepicker>
|
|
544
|
+
</div>
|
|
545
|
+
</div>
|
|
546
|
+
</div>
|
|
547
|
+
|
|
548
|
+
<div class="col-sm-8 form-group item">
|
|
549
|
+
<label class="control-label-justify control-label col-sm-6">总部审计部意见反馈</label>
|
|
550
|
+
<div class="col-sm-6">
|
|
551
|
+
<input type="text" v-model="contract.f_zong_sjb_info" v-show="false">
|
|
552
|
+
<input
|
|
553
|
+
class="text"
|
|
554
|
+
style="width: 600px;height: 35px"
|
|
555
|
+
:disabled="!((org === '重庆盛焰集团' && deps === '审计部')) || type == 'view'"
|
|
556
|
+
:readonly="type === 'view'"
|
|
557
|
+
:value.sync="contract.f_zong_sjb_info"
|
|
558
|
+
v-model="contract.f_zong_sjb_info"
|
|
559
|
+
:valueSingle="true"/>
|
|
560
|
+
</div>
|
|
561
|
+
</div>
|
|
562
|
+
<div class="col-sm-4 form-group item" >
|
|
563
|
+
<label class="control-label-justify control-label col-sm-6">预计完成时间</label>
|
|
564
|
+
<div class="col-sm-6">
|
|
565
|
+
<input type="text" v-model="contract.f_zong_sjb_date" v-show="false">
|
|
566
|
+
<datepicker
|
|
567
|
+
:readonly="type === 'view'"
|
|
568
|
+
:disabled="!((org === '重庆盛焰集团' && deps === '审计部')) || type == 'view'"
|
|
569
|
+
:value.sync="contract.f_zong_sjb_date"
|
|
570
|
+
format="yyyy-MM-dd"
|
|
571
|
+
v-model="contract.f_zong_sjb_date">
|
|
572
|
+
</datepicker>
|
|
573
|
+
</div>
|
|
574
|
+
</div>
|
|
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>
|
|
580
|
+
<div v-if="type != 'view'">
|
|
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>
|
|
590
|
+
</div>
|
|
591
|
+
<div v-if="type === 'view'">
|
|
592
|
+
<apply-upload :blodid="contract.f_process_id"
|
|
593
|
+
:isupload = "false"
|
|
594
|
+
:isdelete="false"
|
|
595
|
+
:isusetype="true"
|
|
596
|
+
:isremark = "true"
|
|
597
|
+
:takeimg="false"
|
|
598
|
+
:issearch="true"
|
|
599
|
+
:defname="隐患项目">
|
|
600
|
+
</apply-upload>
|
|
601
|
+
</div>
|
|
602
|
+
</form>
|
|
603
|
+
</validator>
|
|
604
|
+
<data-grid v-if="type==='view'" :model="changemessage" partial='list' v-ref:grid class="list_area table_sy">
|
|
605
|
+
<template partial='head'>
|
|
606
|
+
<tr>
|
|
607
|
+
<th style="white-space: nowrap;">变更内容</th>
|
|
608
|
+
<th style="white-space: nowrap;">变更前</th>
|
|
609
|
+
<th style="white-space: nowrap;">变更后</th>
|
|
610
|
+
<th style="white-space: nowrap;">状态</th>
|
|
611
|
+
<th style="white-space: nowrap;">操作人</th>
|
|
612
|
+
<th style="white-space: nowrap;">操作时间</th>
|
|
613
|
+
</tr>
|
|
614
|
+
</template>
|
|
615
|
+
<template partial='body'>
|
|
616
|
+
<tr >
|
|
617
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;">
|
|
618
|
+
<nobr><font>{{row.f_change_content}}</font></nobr>
|
|
619
|
+
</td>
|
|
620
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;">
|
|
621
|
+
<nobr><font>{{row.f_old_content}}</font></nobr>
|
|
622
|
+
</td>
|
|
623
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;">
|
|
624
|
+
<nobr><font>{{row.f_new_content}}</font></nobr>
|
|
625
|
+
</td>
|
|
626
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;">
|
|
627
|
+
<nobr><font>{{row.f_change_state}}</font></nobr>
|
|
628
|
+
</td>
|
|
629
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;">
|
|
630
|
+
<nobr><font>{{row.f_change_name}}</font></nobr>
|
|
631
|
+
</td>
|
|
632
|
+
<td :class="$parent.$parent.$parent.rowclass(row)" style="text-align: center;">
|
|
633
|
+
<nobr><font>{{row.f_change_date}}</font></nobr>
|
|
634
|
+
</td>
|
|
635
|
+
</tr>
|
|
636
|
+
</template>
|
|
637
|
+
</data-grid>
|
|
638
|
+
</div>
|
|
639
|
+
</template>
|
|
640
|
+
|
|
641
|
+
<script>
|
|
642
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
643
|
+
import {getNowDate,isEmpty} from '../../Util'
|
|
644
|
+
// Date格式化
|
|
645
|
+
Date.prototype.Format = function (fmt) {
|
|
646
|
+
var o = {
|
|
647
|
+
'M+': this.getMonth() + 1, // 月份
|
|
648
|
+
'd+': this.getDate(), // 日
|
|
649
|
+
'H+': this.getHours(), // 小时
|
|
650
|
+
'm+': this.getMinutes(), // 分
|
|
651
|
+
's+': this.getSeconds(), // 秒
|
|
652
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
653
|
+
'S': this.getMilliseconds() // 毫秒
|
|
654
|
+
}
|
|
655
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
656
|
+
for (var k in o) {
|
|
657
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
658
|
+
}
|
|
659
|
+
return fmt
|
|
660
|
+
}
|
|
661
|
+
export default {
|
|
662
|
+
props: ['contract', 'type'],
|
|
663
|
+
title: '合同信息',
|
|
664
|
+
data () {
|
|
665
|
+
return {
|
|
666
|
+
model: {
|
|
667
|
+
data: []
|
|
668
|
+
},
|
|
669
|
+
budgetcorrection:[{label: '全部', value: ''}, {label: '是', value: '是'},{label: '否',value: '否'},{label:'其他',value:'其他'}],
|
|
670
|
+
hiddendangers:[{label: '全部', value: ''}, {label: '是', value: '是'},{label: '否',value: '否'}],
|
|
671
|
+
hiddenrank: [{label: '全部', value: ''}, {label: '一般', value: '一般'},{label: '较大',value: '较大'},{label: '重大', value: '重大'}],
|
|
672
|
+
org: this.$login.f.orgs,
|
|
673
|
+
deps: this.$login.f.deps,
|
|
674
|
+
projectStatus: [{label: '全部', value: ''}, ...this.$appdata.getParam('项目整改状态')],
|
|
675
|
+
// projectStatus: [{label: '全部', value: ''}, {label: '完工', value: '完工'},{label: '未完工', value: '未完工'}],
|
|
676
|
+
oaapproval:[{label:'全部',value:''},{label:'是',value:'是'},{label:'否',value:'否'}],
|
|
677
|
+
showModal: false,
|
|
678
|
+
material: {},
|
|
679
|
+
old:{},
|
|
680
|
+
newzhi:{},
|
|
681
|
+
oldzhi:{},
|
|
682
|
+
ziduan:{},
|
|
683
|
+
tp: {},
|
|
684
|
+
facility: {},
|
|
685
|
+
completedate:"",
|
|
686
|
+
index: null,
|
|
687
|
+
showFile: false,
|
|
688
|
+
apply_org: [],
|
|
689
|
+
changemessage: {
|
|
690
|
+
rows: []
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
ready () {
|
|
695
|
+
this.getOrgName()
|
|
696
|
+
this.$set('tp',Object.assign({},this.tp,this.contract))
|
|
697
|
+
if(this.type==='view'){
|
|
698
|
+
this.$resetpost(
|
|
699
|
+
`gongcheng/rs/sql/changeMessage`,
|
|
700
|
+
{data: this.contract},
|
|
701
|
+
{resolveMsg: null,rejectMsg: '查询失败!!!'}
|
|
702
|
+
).then((res) => {
|
|
703
|
+
this.changemessage.rows = res.data
|
|
704
|
+
})
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
methods: {
|
|
708
|
+
async getpayment(){
|
|
709
|
+
debugger
|
|
710
|
+
if(this.contract.f_materials_fee !=null && this.contract.f_project_fee !=null&&this.contract.f_artificial_fee !=null){
|
|
711
|
+
const leiji=parseFloat(parseFloat(this.contract.f_materials_fee)+parseFloat(this.contract.f_project_fee)+parseFloat(this.contract.f_artificial_fee)).toFixed(2)
|
|
712
|
+
this.$set(`contract.f_total_payment`,leiji)
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
async getleadtime() {
|
|
716
|
+
debugger
|
|
717
|
+
//计算预计时间差
|
|
718
|
+
if(this.contract.f_start_working_date !=null && this.contract.f_complete_working_date !=null){
|
|
719
|
+
console.log("hhhh")
|
|
720
|
+
let startdate=new Date(this.contract.f_start_working_date)
|
|
721
|
+
const beforeyear=startdate.getFullYear()
|
|
722
|
+
const beforeMonth=startdate.getMonth()
|
|
723
|
+
const beforeDate=startdate.getDate()
|
|
724
|
+
let completedate=new Date(this.contract.f_complete_working_date)
|
|
725
|
+
const completeyear=completedate.getFullYear()
|
|
726
|
+
const completeMonth=completedate.getMonth()
|
|
727
|
+
const completeDate=completedate.getDate()
|
|
728
|
+
debugger
|
|
729
|
+
const leadtime=(completeyear-beforeyear)*365 + (completeMonth-beforeMonth)*30 + (completeDate-beforeDate)
|
|
730
|
+
console.log("打印时间差",leadtime)
|
|
731
|
+
this.$set(`contract.f_working_date`,leadtime)
|
|
732
|
+
console.log("打印时间差",this.contract.f_working_date)
|
|
733
|
+
let nowdata = new Date()
|
|
734
|
+
const nowyear=nowdata.getFullYear()
|
|
735
|
+
const nowMonth=nowdata.getMonth()
|
|
736
|
+
const nowDate=nowdata.getDate()
|
|
737
|
+
debugger
|
|
738
|
+
const leadcstime=(nowyear-completeyear)*365 + (nowMonth-completeMonth)*30 + (nowDate-completeDate)
|
|
739
|
+
if(leadcstime>=0){
|
|
740
|
+
this.$set(`contract.f_overdue_date`,leadcstime)
|
|
741
|
+
} //当有实际时间时 与实际时间算
|
|
742
|
+
if(this.contract.f_start_working_date !=null && this.contract.f_complete_working_date !=null &&this.contract.f_start_practical_date !=null && this.contract.f_complete_practical_date !=null){
|
|
743
|
+
debugger
|
|
744
|
+
//计算已超过实际工期天数
|
|
745
|
+
if(this.contract.f_working_date !=null && this.contract.f_practical_date !=null){
|
|
746
|
+
debugger
|
|
747
|
+
const cha=this.contract.f_practical_date-this.contract.f_working_date
|
|
748
|
+
if(cha>=0){
|
|
749
|
+
this.$set(`contract.f_overdue_date`,cha)
|
|
750
|
+
}else{
|
|
751
|
+
this.$set(`contract.f_overdue_date`,0)
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
//计算实际工期
|
|
759
|
+
if(this.contract.f_start_practical_date !=null && this.contract.f_complete_practical_date !=null){
|
|
760
|
+
console.log("hhhh")
|
|
761
|
+
let startdate=new Date(this.contract.f_start_practical_date)
|
|
762
|
+
const beforeyear=startdate.getFullYear()
|
|
763
|
+
const beforeMonth=startdate.getMonth()
|
|
764
|
+
const beforeDate=startdate.getDate()
|
|
765
|
+
let completedate=new Date(this.contract.f_complete_practical_date)
|
|
766
|
+
const completeyear=completedate.getFullYear()
|
|
767
|
+
const completeMonth=completedate.getMonth()
|
|
768
|
+
const completeDate=completedate.getDate()
|
|
769
|
+
debugger
|
|
770
|
+
const leadtime=(completeyear-beforeyear)*365 + (completeMonth-beforeMonth)*30 + (completeDate-beforeDate)
|
|
771
|
+
console.log("打印时间差",leadtime)
|
|
772
|
+
this.$set(`contract.f_practical_date`,leadtime)
|
|
773
|
+
console.log("打印时间差",this.contract.f_practical_date)
|
|
774
|
+
}
|
|
775
|
+
if(!this.contract.f_practical_date){
|
|
776
|
+
debugger
|
|
777
|
+
this.$set(`contract.f_practical_date`,0)
|
|
778
|
+
}
|
|
779
|
+
if(!this.contract.f_working_date){
|
|
780
|
+
this.$set(`contract.f_working_date`,0)
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
// 获取所有组织名称
|
|
784
|
+
async getOrgName() {
|
|
785
|
+
console.log("打印公司",this.$login.f.orgs)
|
|
786
|
+
debugger
|
|
787
|
+
let http = new HttpResetClass()
|
|
788
|
+
let org = this.$login.f.orgs === '重庆盛焰集团' || this.$login.f.orgs === '湖南燎原燃气有限公司' ? " 1 = 1" : " name = '" + this.$login.f.orgs + "'"
|
|
789
|
+
let data = {
|
|
790
|
+
tablename: 't_organization',
|
|
791
|
+
condition: " name != '组织机构' and " + org
|
|
792
|
+
}
|
|
793
|
+
let res = await http.load('POST','gongcheng/rs/sql/applysingleTable',{data:data}, {
|
|
794
|
+
resolveMsg: null,
|
|
795
|
+
rejectMsg: '获取公司名称失败'
|
|
796
|
+
})
|
|
797
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
798
|
+
// 所属公司
|
|
799
|
+
let data1 = []
|
|
800
|
+
let array1 = []
|
|
801
|
+
data1 = res.data.map(item => {
|
|
802
|
+
return item.name;
|
|
803
|
+
})
|
|
804
|
+
for (let q = 0; q < data1.length; q++) {
|
|
805
|
+
let arraydata = {
|
|
806
|
+
'label': data1[q],
|
|
807
|
+
'value': data1[q]
|
|
808
|
+
}
|
|
809
|
+
debugger
|
|
810
|
+
if (array1.length != 0) {
|
|
811
|
+
for (let w = 0; w < array1.length; w++) {
|
|
812
|
+
if (array1[w].label == data1[q]) {
|
|
813
|
+
break
|
|
814
|
+
}
|
|
815
|
+
while (w == array1.length - 1) {
|
|
816
|
+
array1.push(arraydata)
|
|
817
|
+
break
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
} else {
|
|
821
|
+
debugger
|
|
822
|
+
array1.push(arraydata)
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
this.apply_org = array1
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
closeFile () {
|
|
829
|
+
this.showFile = false
|
|
830
|
+
// 将选的文件清空
|
|
831
|
+
this.$refs.file.$el.querySelector('input').value = ''
|
|
832
|
+
},
|
|
833
|
+
//修改项目
|
|
834
|
+
async renewHidden () {
|
|
835
|
+
let data = {
|
|
836
|
+
contract: this.contract,
|
|
837
|
+
data: this.model.data,
|
|
838
|
+
}
|
|
839
|
+
let res = await this.$resetpost(
|
|
840
|
+
`gongcheng/rs/logic/hiddenchangeMessage`,
|
|
841
|
+
{data: this.contract},
|
|
842
|
+
{resolveMsg: null,rejectMsg: '保存失败!!!'}
|
|
843
|
+
)
|
|
844
|
+
this.$dispatch('renewHidden', data)
|
|
845
|
+
},
|
|
846
|
+
// 打开修改
|
|
847
|
+
openUpdate (index, row) {
|
|
848
|
+
this.index = index
|
|
849
|
+
this.material = JSON.parse(JSON.stringify(row))
|
|
850
|
+
this.facility = JSON.parse(JSON.stringify(row))
|
|
851
|
+
|
|
852
|
+
this.showModal = true
|
|
853
|
+
},
|
|
854
|
+
// 删除
|
|
855
|
+
async delete (index) {
|
|
856
|
+
this.index = index
|
|
857
|
+
await this.$showMessage('您确定要删除这条记录吗?').then((res) => {
|
|
858
|
+
if (res === 'confirm') {
|
|
859
|
+
this.model.data.splice(this.index, 1)
|
|
860
|
+
}
|
|
861
|
+
})
|
|
862
|
+
this.closeModal()
|
|
863
|
+
},
|
|
864
|
+
// 保存或修改
|
|
865
|
+
saveOrUpdate (i) {
|
|
866
|
+
this.closeModal()
|
|
867
|
+
},
|
|
868
|
+
// 关闭模态框
|
|
869
|
+
closeModal () {
|
|
870
|
+
this.showModal = false
|
|
871
|
+
this.material = {}
|
|
872
|
+
this.facility = {}
|
|
873
|
+
this.index = null
|
|
874
|
+
},
|
|
875
|
+
// 添加项目
|
|
876
|
+
addHidden () {
|
|
877
|
+
let data = {
|
|
878
|
+
contract: this.contract,
|
|
879
|
+
data: this.model.data
|
|
880
|
+
}
|
|
881
|
+
this.$dispatch('addHidden', data)
|
|
882
|
+
},
|
|
883
|
+
},
|
|
884
|
+
events: {
|
|
885
|
+
},
|
|
886
|
+
computed: {
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
</script>
|
|
890
|
+
|
|
891
|
+
<style scoped>
|
|
892
|
+
.item{
|
|
893
|
+
height: 40px;
|
|
894
|
+
margin-bottom: 20px;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
th{
|
|
898
|
+
font-size: 15px !important;
|
|
899
|
+
text-align: center !important;
|
|
900
|
+
background-color: #dfedfb!important;
|
|
901
|
+
color: #666666 !important;
|
|
902
|
+
font-family: PINGFANG-BOLD !important;
|
|
903
|
+
font-weight: normal!important;
|
|
904
|
+
}
|
|
905
|
+
/*清除model中的浮动*/
|
|
906
|
+
.clearfix:after,.clearfix:before{
|
|
907
|
+
display: table;
|
|
908
|
+
}
|
|
909
|
+
.clearfix:after{
|
|
910
|
+
clear: both;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
.input_view{
|
|
914
|
+
padding: 8px;
|
|
915
|
+
background-color: #ffffff;
|
|
916
|
+
border-radius: 2px;
|
|
917
|
+
border: solid 1px #c7c7c7!important;
|
|
918
|
+
color: #333333!important;
|
|
919
|
+
font-size: 15px!important;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
.input_view[readonly]{
|
|
923
|
+
border: 1px solid #DDD!important;
|
|
924
|
+
/*background-color: #F5F5F5;*/
|
|
925
|
+
color:#ACA899!important;
|
|
926
|
+
}
|
|
927
|
+
.input_view:disabled{
|
|
928
|
+
border: 1px solid #DDD!important;
|
|
929
|
+
/*background-color: #F5F5F5;*/
|
|
930
|
+
color:#ACA899!important;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.control-label-justify {
|
|
934
|
+
display: inline-block;
|
|
935
|
+
vertical-align: top;
|
|
936
|
+
width: 110px;
|
|
937
|
+
text-align: justify;
|
|
938
|
+
font-family: PingFang-SC-Bold;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.control-label-justify::after {
|
|
942
|
+
content: "";
|
|
943
|
+
display: inline-block;
|
|
944
|
+
width: 70px;
|
|
945
|
+
overflow: hidden;
|
|
946
|
+
height: 0;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
input::-webkit-outer-spin-button,
|
|
950
|
+
input::-webkit-inner-spin-button {
|
|
951
|
+
-webkit-appearance: none;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
input[type="number"] {
|
|
955
|
+
-moz-appearance: textfield;
|
|
956
|
+
}
|
|
957
|
+
</style>
|