apply-clients 5.0.35-9 → 5.0.35-90
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/.eslintrc.js +16 -16
- package/package.json +3 -3
- package/src/AndroidApp.vue +28 -28
- package/src/android.js +18 -18
- package/src/apply.js +15 -1
- package/src/components/app_apply/ApplyDownList.vue +168 -168
- package/src/components/app_apply/ApplyInfo.vue +56 -56
- package/src/components/app_apply/ApplyListUpload.vue +268 -268
- package/src/components/app_apply/ApplyToDoList.vue +2820 -243
- package/src/components/app_apply/Gongcheng.vue +3631 -0
- package/src/components/app_apply/OneToMany.vue +194 -0
- package/src/components/app_apply/PlaceControler.vue +299 -284
- package/src/components/app_apply/ServiceControl.vue +687 -341
- package/src/components/app_apply/ServiceView.vue +383 -383
- package/src/components/app_apply/ezhou/FeiMinYongV.vue +109 -109
- package/src/components/app_apply/ezhou/FeiMinYongVV.vue +100 -100
- package/src/components/app_apply/ezhou/MinYong.vue +92 -92
- package/src/components/app_apply/ezhou/ServiceView.vue +808 -616
- package/src/components/image/doc.jpg +0 -0
- package/src/components/image/dwg.png +0 -0
- package/src/components/image/dxf.png +0 -0
- package/src/components/image/excel.jpg +0 -0
- package/src/components/image/pdf.jpg +0 -0
- package/src/components/product/Common/ApplyValidateBill.vue +13 -6
- package/src/components/product/Common/PrintBill.vue +121 -120
- package/src/components/product/EngineeringManagement/EngineerUpload.vue +304 -0
- package/src/components/product/EngineeringManagement/EngineeringManagement.vue +137 -0
- package/src/components/product/EngineeringManagement/EngineeringSelect.vue +586 -0
- package/src/components/product/EngineeringSupervisory/EngineeringApplyStopInfo.vue +281 -0
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryControl.vue +132 -0
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryList.vue +340 -0
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryServiceControl.vue +490 -0
- package/src/components/product/Function/InstallInfoSelect.vue +3 -2
- package/src/components/product/Function/Service/FunctionServiceControl.vue +37 -1
- package/src/components/product/Function/functions/ApplyUpload.vue +556 -0
- package/src/components/product/Function/functions/BuyerMessage.vue +1 -1
- package/src/components/product/Function/functions/InstallFee.vue +1154 -919
- package/src/components/product/Function/functions/InstallFeeInfo.vue +6 -1
- package/src/components/product/Process/ExplorationSelect.vue +9 -5
- package/src/components/product/Process/Processes/CustomerRecordMessage.vue +2 -5
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +126 -39
- package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +85 -0
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +368 -21
- package/src/components/product/ServiceView.vue +16 -6
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +57 -10
- package/src/components/product/Supervisory/SupervisoryList.vue +409 -349
- package/src/components/product/applyReport/ApplyReport.vue +205 -0
- package/src/components/product/applyReport/PrintApplyReport.vue +116 -0
- package/src/components/product/stopInfo/ApplyStopInfo.vue +2 -1
- package/src/ezhouAndroid.js +48 -45
- package/src/index.js +8 -8
- package/src/main.js +32 -32
- package/src/plugins/commonService.js +11 -7
|
@@ -70,8 +70,41 @@
|
|
|
70
70
|
<!-- <report-print id='bill-fee' top='15mm' left='5mm' width='90%' height='70%' :showbtn="false" preview="true"-->
|
|
71
71
|
<!-- v-ref:reportprint></report-print>-->
|
|
72
72
|
<!-- </div>-->
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
<modal :show.sync="stop_show" v-ref:modal stop_show="false">
|
|
74
|
+
<header slot="modal-header" class="modal-header">
|
|
75
|
+
<button type="button" class="close" @click="closeback"><span>×</span></button>
|
|
76
|
+
<h4 class="modal-title">终止备注</h4>
|
|
77
|
+
</header>
|
|
78
|
+
<article slot="modal-body" class="modal-body">
|
|
79
|
+
<div class="from-group">
|
|
80
|
+
<input type="text" class="form-control" v-model="models.f_stop_remarks"/>
|
|
81
|
+
</div>
|
|
82
|
+
</article>
|
|
83
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
84
|
+
<button v-show="stop_show" type="button" class="btn btn-default" @click='stopapplys'>确认</button>
|
|
85
|
+
</footer>
|
|
86
|
+
</modal>
|
|
87
|
+
<modal :show.sync="apply_show" v-ref:modal apply_show="false" >
|
|
88
|
+
<header slot="modal-header" class="modal-header">
|
|
89
|
+
<button type="button" class="close" @click="closeapply"><span>×</span></button>
|
|
90
|
+
<h4 class="modal-title">转单报建</h4>
|
|
91
|
+
</header>
|
|
92
|
+
<article slot="modal-body" class="modal-body">
|
|
93
|
+
<div class="from-group">
|
|
94
|
+
<v-select style="min-width: 80%;"
|
|
95
|
+
placeholder='请选择'
|
|
96
|
+
:options="applytypes"
|
|
97
|
+
:search="false"
|
|
98
|
+
v-model="apply_type"
|
|
99
|
+
:value.sync="apply_type"
|
|
100
|
+
close-on-select>
|
|
101
|
+
</v-select>
|
|
102
|
+
</div>
|
|
103
|
+
</article>
|
|
104
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
105
|
+
<button v-show="apply_show" type="button" class="btn btn-default" @click='addactive()'>确认</button>
|
|
106
|
+
</footer>
|
|
107
|
+
</modal>
|
|
75
108
|
</template>
|
|
76
109
|
<script>
|
|
77
110
|
import Vue from 'vue'
|
|
@@ -117,6 +150,8 @@
|
|
|
117
150
|
contract: null, // 单值表合同编号记录
|
|
118
151
|
technologist: [], // 技术人员 角色下的人
|
|
119
152
|
price: 0,
|
|
153
|
+
xiangmu:'',
|
|
154
|
+
xia:'',
|
|
120
155
|
cost: 0,
|
|
121
156
|
number: 0,
|
|
122
157
|
pgd: '',
|
|
@@ -132,13 +167,139 @@
|
|
|
132
167
|
rows: [] // 购货方信息
|
|
133
168
|
},
|
|
134
169
|
bill: '',
|
|
135
|
-
|
|
170
|
+
areaall:[],
|
|
171
|
+
stop_show:false, // 终止备注开关
|
|
172
|
+
apply_show:false, // 转单报建开关
|
|
173
|
+
apply_type:'',
|
|
174
|
+
applytypes:[{label:"散户报装",value:"报装申请"},{label:"集体报装",value:"集体报装申请"}],// 报建类型
|
|
175
|
+
models: {
|
|
176
|
+
f_date: Util.toStandardTimeString(),
|
|
177
|
+
f_department: this.$login.f.f_parentname,
|
|
178
|
+
f_operator: this.$login.f.name,
|
|
179
|
+
f_filiale: this.$login.f.f_fengongsi
|
|
180
|
+
},
|
|
181
|
+
models2:{}
|
|
136
182
|
}
|
|
137
183
|
},
|
|
138
184
|
methods: {
|
|
139
185
|
/*
|
|
140
186
|
============================================收费临时使用
|
|
141
187
|
*/
|
|
188
|
+
// 转到报建
|
|
189
|
+
async addactive(){
|
|
190
|
+
this.selectdata.applyid = this.selectdata.id
|
|
191
|
+
// this.$resetpost('rs/logic/stopapply', {data: this.selectdata})
|
|
192
|
+
console.log(this.apply_type[0])
|
|
193
|
+
this.$workflow_vue.start_activity = this.apply_type[0]
|
|
194
|
+
let http = new HttpResetClass()
|
|
195
|
+
let res = await http.load('POST','rs/logic/ApplyGetProcessID',{data:{filename:this.$workflow_vue.workflow_xmlfilename,start_activity:this.$workflow_vue.start_activity}}, {resolveMsg: null, rejectMsg: '获取流程ID失败,请联系开发人员'})
|
|
196
|
+
let data = {
|
|
197
|
+
defname: this.$workflow_vue.start_activity,
|
|
198
|
+
f_process_id: res.data.f_process_id,
|
|
199
|
+
f_apply_date: Util.toStandardTimeString(),
|
|
200
|
+
f_product_id: res.data.f_product_id,
|
|
201
|
+
start_activity:this.$workflow_vue.start_activity,
|
|
202
|
+
f_user_type:this.models2.f_user_type,
|
|
203
|
+
f_user_name:this.models2.f_user_name,
|
|
204
|
+
f_phone:this.models2.f_phone,
|
|
205
|
+
f_area:this.models2.f_area,
|
|
206
|
+
f_street:this.models2.f_street,
|
|
207
|
+
f_residential_area:this.models2.f_residential_area,
|
|
208
|
+
f_building:this.models2.f_building,
|
|
209
|
+
f_unit:this.models2.f_unit,
|
|
210
|
+
f_floor:this.models2.f_floor,
|
|
211
|
+
f_room:this.models2.f_room,
|
|
212
|
+
f_address:this.models2.f_address,
|
|
213
|
+
f_idnumber:this.models2.f_social_credit_code,
|
|
214
|
+
f_apply_source:this.models2.f_apply_source,
|
|
215
|
+
f_sub_state:'未完工',
|
|
216
|
+
user:this.$login.f
|
|
217
|
+
}
|
|
218
|
+
await http.load('POST','rs/logic/newaddApplyproduct',{data:data}, {resolveMsg: null, rejectMsg: '转发失败,请联系开发人员'})
|
|
219
|
+
var flag = false
|
|
220
|
+
if (this.data.defname == '合同审核') {
|
|
221
|
+
flag = true
|
|
222
|
+
let http = new HttpResetClass()
|
|
223
|
+
let data = {
|
|
224
|
+
tablename: 't_singlevalue',
|
|
225
|
+
condition: `name = '合同编号' and f_filialeids = '${this.$login.f.f_orgids}'`
|
|
226
|
+
}
|
|
227
|
+
let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
|
|
228
|
+
resolveMsg: null,
|
|
229
|
+
rejectMsg: "获取合同编号失败"
|
|
230
|
+
})
|
|
231
|
+
if (this.contract != res.data[0].value && !this.selectdata.f_contract_number) {
|
|
232
|
+
this.$showMessage("合同编号已经被使用,请按F5刷新页面后重新登记")
|
|
233
|
+
return
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
let model = this.models2
|
|
237
|
+
let url = 'rs/logic/ApplyProductService'
|
|
238
|
+
let requestData = {
|
|
239
|
+
tables: this.data.tables, model: model
|
|
240
|
+
}
|
|
241
|
+
requestData.start_activity = '踏勘'
|
|
242
|
+
requestData.loginUser = this.$login.f
|
|
243
|
+
requestData.workflow_xmlfilename = this.$workflow_vue.workflow_xmlfilename
|
|
244
|
+
console.log('即将发送请求url=>' + url + ',参数=>' + JSON.stringify(requestData))
|
|
245
|
+
res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
|
|
246
|
+
console.log("service处理完成返回数据:", JSON.stringify(res.data))
|
|
247
|
+
if(res.data.msg=="地址重复,请修改后重新提交"){
|
|
248
|
+
this.$showMessage(res.data.msg)
|
|
249
|
+
}
|
|
250
|
+
if (res.data.code == 200) {
|
|
251
|
+
// flag 为合同编号更新标志
|
|
252
|
+
if (flag) {
|
|
253
|
+
let http = new HttpResetClass()
|
|
254
|
+
let data = {
|
|
255
|
+
tablename: 't_singlevalue',
|
|
256
|
+
condition: `name = '合同编号' and f_filialeids = '${this.$login.f.f_orgids}'`,
|
|
257
|
+
value: (Number(this.contract) + 1) + ''
|
|
258
|
+
}
|
|
259
|
+
await http.load('POST', 'rs/logic/updatesinglevalue', {data: data}, {
|
|
260
|
+
resolveMsg: null,
|
|
261
|
+
rejectMsg: "获取合同编号更新失败"
|
|
262
|
+
})
|
|
263
|
+
}
|
|
264
|
+
this.showview = false
|
|
265
|
+
// 特殊处理
|
|
266
|
+
this.special(model)
|
|
267
|
+
this.$dispatch('close')
|
|
268
|
+
this.initializtion()
|
|
269
|
+
} else {
|
|
270
|
+
if (res.data.msg) {
|
|
271
|
+
this.$showMessage(res.data.msg)
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
this.apply_show = false
|
|
276
|
+
},
|
|
277
|
+
// 终止报建
|
|
278
|
+
async stopapplys () {
|
|
279
|
+
this.models = Object.assign({}, this.selectdata, this.models)
|
|
280
|
+
this.models.id = null
|
|
281
|
+
this.models.applyid = this.selectdata.id
|
|
282
|
+
this.models.f_operat_type = '终止报建'
|
|
283
|
+
this.models.f_state = '有效'
|
|
284
|
+
this.models.f_describe = this.selectdata.f_user_name + '已终止报建'
|
|
285
|
+
let data ={
|
|
286
|
+
tablename:'t_project_stop',
|
|
287
|
+
parameters:this.models
|
|
288
|
+
}
|
|
289
|
+
let http = new HttpResetClass()
|
|
290
|
+
await http.load('POST','rs/logic/save', {data:data},{resolveMsg: null, rejectMsg: "添加失败"})
|
|
291
|
+
await http.load('POST','rs/logic/stopapply', {data:this.models},{resolveMsg: null, rejectMsg: "终止失败"})
|
|
292
|
+
this.closeback()
|
|
293
|
+
this.$dispatch('close')
|
|
294
|
+
},
|
|
295
|
+
// 关闭终止备注弹框
|
|
296
|
+
closeback() {
|
|
297
|
+
this.stop_show = false
|
|
298
|
+
},
|
|
299
|
+
// 关闭报建弹框
|
|
300
|
+
closeapply() {
|
|
301
|
+
this.apply_show = false
|
|
302
|
+
},
|
|
142
303
|
closeAccept () {
|
|
143
304
|
this.acceptprint = false
|
|
144
305
|
},
|
|
@@ -449,7 +610,7 @@
|
|
|
449
610
|
} else {
|
|
450
611
|
data = {
|
|
451
612
|
tablename: this.data.onetomany[index].tables[0],
|
|
452
|
-
condition: `
|
|
613
|
+
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
453
614
|
}
|
|
454
615
|
}
|
|
455
616
|
let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
|
|
@@ -914,6 +1075,40 @@
|
|
|
914
1075
|
}
|
|
915
1076
|
}
|
|
916
1077
|
}
|
|
1078
|
+
if (this.show_data.defname === '施工') {
|
|
1079
|
+
let http = new HttpResetClass()
|
|
1080
|
+
let data = {
|
|
1081
|
+
f_process_id: this.show_data.f_process_id,
|
|
1082
|
+
defname: this.show_data.defname
|
|
1083
|
+
}
|
|
1084
|
+
let res = await http.load('POST', 'rs/sql/getFileNames', {data:data},
|
|
1085
|
+
{resolveMsg: null, rejectMsg: null})
|
|
1086
|
+
|
|
1087
|
+
// for (let i = 0; i < res.length; i++){
|
|
1088
|
+
// this.data.f_project_material += res.data.fusetype + ','
|
|
1089
|
+
// }
|
|
1090
|
+
res.data.forEach(item =>{
|
|
1091
|
+
this.show_data.f_project_material += item.fusetype + ','
|
|
1092
|
+
})
|
|
1093
|
+
}
|
|
1094
|
+
// if (this.show_data.defname === '施工验收') {
|
|
1095
|
+
// let http = new HttpResetClass()
|
|
1096
|
+
// let data = {
|
|
1097
|
+
// f_process_id: this.show_data.f_process_id,
|
|
1098
|
+
// defname: this.show_data.defname
|
|
1099
|
+
// }
|
|
1100
|
+
// let res = await http.load('POST', 'rs/sql/getFileNames', {data:data},
|
|
1101
|
+
// {resolveMsg: null, rejectMsg: null})
|
|
1102
|
+
// this.show_data.f_iscomplete_information = ''
|
|
1103
|
+
// res.data.forEach(item =>{
|
|
1104
|
+
// this.show_data.f_iscomplete_information += item.fusetype + ','
|
|
1105
|
+
// })
|
|
1106
|
+
// for (j = 0; j < this.show_data.fields.length; j++) {
|
|
1107
|
+
// if (this.show_data.fields[j].label === '验收已上传文件') {
|
|
1108
|
+
// this.show_data.fields[j].value = this.show_data.f_iscomplete_information
|
|
1109
|
+
// }
|
|
1110
|
+
// }
|
|
1111
|
+
// }
|
|
917
1112
|
// 显示组件
|
|
918
1113
|
// this.showview = false
|
|
919
1114
|
// debugger
|
|
@@ -956,6 +1151,48 @@
|
|
|
956
1151
|
}
|
|
957
1152
|
}
|
|
958
1153
|
}
|
|
1154
|
+
if(this.$refs.service_show.data.fields[index].label=="施工提交资料"){
|
|
1155
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1156
|
+
|
|
1157
|
+
if(this.$refs.service_show.data.fields[i].label=="施工已上传文件"){
|
|
1158
|
+
//增加和删除框中的内容
|
|
1159
|
+
if(this.$refs.service_show.data.fields[index].items[index2].value == false){
|
|
1160
|
+
this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
|
|
1161
|
+
this.$refs.service_show.data.fields[index].items[index2].value=true;
|
|
1162
|
+
}else{
|
|
1163
|
+
let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
|
|
1164
|
+
let values =this.$refs.service_show.data.fields[i].value;
|
|
1165
|
+
let result = values.split(" ").filter((item)=>{
|
|
1166
|
+
return item!=deleteValue;
|
|
1167
|
+
}).join(" ")
|
|
1168
|
+
this.$refs.service_show.data.fields[i].value =result;
|
|
1169
|
+
this.$refs.service_show.data.fields[index].items[index2].value=false;
|
|
1170
|
+
}
|
|
1171
|
+
//}
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
if(this.$refs.service_show.data.fields[index].label=="验收提交资料"){
|
|
1176
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1177
|
+
|
|
1178
|
+
if(this.$refs.service_show.data.fields[i].label=="验收已上传文件"){
|
|
1179
|
+
//增加和删除框中的内容
|
|
1180
|
+
if(this.$refs.service_show.data.fields[index].items[index2].value == false){
|
|
1181
|
+
this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
|
|
1182
|
+
this.$refs.service_show.data.fields[index].items[index2].value=true;
|
|
1183
|
+
}else{
|
|
1184
|
+
let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
|
|
1185
|
+
let values =this.$refs.service_show.data.fields[i].value;
|
|
1186
|
+
let result = values.split(" ").filter((item)=>{
|
|
1187
|
+
return item!=deleteValue;
|
|
1188
|
+
}).join(" ")
|
|
1189
|
+
this.$refs.service_show.data.fields[i].value =result;
|
|
1190
|
+
this.$refs.service_show.data.fields[index].items[index2].value=false;
|
|
1191
|
+
}
|
|
1192
|
+
//}
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
959
1196
|
},
|
|
960
1197
|
'get-number'(val) {
|
|
961
1198
|
this.number = val
|
|
@@ -970,8 +1207,11 @@
|
|
|
970
1207
|
,
|
|
971
1208
|
// 任意select选中时触发事件,关联性操作
|
|
972
1209
|
async 'select_cascade'(index) {
|
|
973
|
-
|
|
974
|
-
|
|
1210
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1211
|
+
if (this.$refs.service_show.data.fields[i].label === '工程盈利') {
|
|
1212
|
+
this.$refs.service_show.data.fields[i].value = c
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
975
1215
|
|
|
976
1216
|
|
|
977
1217
|
if (this.$refs.service_show.data.fields[index].label == '施工单位' ||
|
|
@@ -1412,21 +1652,33 @@
|
|
|
1412
1652
|
if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
|
|
1413
1653
|
address += this.$refs.service_show.data.fields[i].value
|
|
1414
1654
|
}
|
|
1655
|
+
/* if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
|
|
1656
|
+
address += '栋'
|
|
1657
|
+
} */
|
|
1415
1658
|
if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
|
|
1416
1659
|
address += '-' +this.$refs.service_show.data.fields[i].value
|
|
1417
1660
|
}
|
|
1661
|
+
/* if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
|
|
1662
|
+
address += '单元'
|
|
1663
|
+
} */
|
|
1418
1664
|
if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
|
|
1419
1665
|
address += '-' +this.$refs.service_show.data.fields[i].value
|
|
1420
1666
|
}
|
|
1667
|
+
/* if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
|
|
1668
|
+
address += '层'
|
|
1669
|
+
} */
|
|
1421
1670
|
if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
|
|
1422
1671
|
address += '-' +this.$refs.service_show.data.fields[i].value
|
|
1423
1672
|
}
|
|
1673
|
+
/* if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
|
|
1674
|
+
address += '室'
|
|
1675
|
+
} */
|
|
1424
1676
|
|
|
1425
1677
|
}
|
|
1426
1678
|
console.log('获取到的address=>' + address)
|
|
1427
1679
|
// 数据获取完毕时放入地址text
|
|
1428
1680
|
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1429
|
-
if (this.$refs.service_show.data.fields[i].label === '地址') {
|
|
1681
|
+
if (this.$refs.service_show.data.fields[i].label === '地址' || this.$refs.service_show.data.fields[i].label === '报装地址') {
|
|
1430
1682
|
this.$refs.service_show.data.fields[i].value = address
|
|
1431
1683
|
console.log('修改fields[i].value后的值=>' + this.$refs.service_show.data.fields[i].value)
|
|
1432
1684
|
}
|
|
@@ -1439,31 +1691,34 @@
|
|
|
1439
1691
|
this.$refs.service_show.data.fields[index].label === '人工费'
|
|
1440
1692
|
) {
|
|
1441
1693
|
console.log('即将合成价格')
|
|
1694
|
+
let a1 = 0
|
|
1695
|
+
let b1 = 0
|
|
1696
|
+
let c1 = 0
|
|
1442
1697
|
let fee = 0
|
|
1443
1698
|
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1444
1699
|
// 控制设置级联
|
|
1445
1700
|
// 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
|
|
1446
1701
|
// xxx xx xxx
|
|
1447
1702
|
if (this.$refs.service_show.data.fields[i].label === '工程安装费' && this.$refs.service_show.data.fields[i].value) {
|
|
1448
|
-
|
|
1703
|
+
a1 = this.$refs.service_show.data.fields[i].value
|
|
1449
1704
|
}
|
|
1450
1705
|
if (this.$refs.service_show.data.fields[i].label === '材料费' && this.$refs.service_show.data.fields[i].value) {
|
|
1451
|
-
|
|
1706
|
+
b1= this.$refs.service_show.data.fields[i].value
|
|
1452
1707
|
}
|
|
1453
1708
|
if (this.$refs.service_show.data.fields[i].label === '人工费' && this.$refs.service_show.data.fields[i].value) {
|
|
1454
|
-
|
|
1709
|
+
c1 = this.$refs.service_show.data.fields[i].value
|
|
1455
1710
|
}
|
|
1711
|
+
fee=parseFloat(parseFloat(a1) + parseFloat(b1)+parseFloat(c1)).toFixed(2)
|
|
1456
1712
|
// 数据获取完毕时放入地址text
|
|
1457
1713
|
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1458
1714
|
if (this.$refs.service_show.data.fields[i].label === '费用合计'||this.$refs.service_show.data.fields[i].label === '未结总金额') {
|
|
1459
|
-
this.$refs.service_show.data.fields[i].value =
|
|
1715
|
+
this.$refs.service_show.data.fields[i].value =fee
|
|
1460
1716
|
console.log('修改fields[i].value后的值=>' + this.$refs.service_show.data.fields[i].value)
|
|
1461
1717
|
}
|
|
1462
1718
|
}
|
|
1463
1719
|
}
|
|
1464
1720
|
}
|
|
1465
1721
|
if (this.$refs.service_show.data.fields[index].label == '用户类型'){
|
|
1466
|
-
debugger
|
|
1467
1722
|
if(this.$refs.service_show.data.fields[index].value == '非民用'){
|
|
1468
1723
|
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1469
1724
|
if (this.$refs.service_show.data.fields[i].label === '小区名称') {
|
|
@@ -1478,6 +1733,60 @@
|
|
|
1478
1733
|
}
|
|
1479
1734
|
}
|
|
1480
1735
|
}
|
|
1736
|
+
|
|
1737
|
+
if (this.$refs.service_show.data.fields[index].label === '施工是否完成') {
|
|
1738
|
+
let temp = this.$refs.service_show.data.fields[index].value
|
|
1739
|
+
console.log('==============================施工是否完成:' + temp)
|
|
1740
|
+
if (temp === '是') {
|
|
1741
|
+
let f_project_material = ''
|
|
1742
|
+
if (this.$refs.service_show.data.defname === '施工') {
|
|
1743
|
+
let http = new HttpResetClass()
|
|
1744
|
+
let data = {
|
|
1745
|
+
f_process_id: this.$refs.service_show.data.f_process_id,
|
|
1746
|
+
defname: this.$refs.service_show.data.defname
|
|
1747
|
+
}
|
|
1748
|
+
let res = await http.load('POST', 'rs/sql/getFileNames', {data:data},
|
|
1749
|
+
{resolveMsg: null, rejectMsg: null})
|
|
1750
|
+
res.data.forEach(item =>{
|
|
1751
|
+
f_project_material += item.fusetype + ','
|
|
1752
|
+
})
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1756
|
+
if (this.$refs.service_show.data.fields[i].label === '施工已上传文件') {
|
|
1757
|
+
this.$refs.service_show.data.fields[i].value = f_project_material
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
if (this.$refs.service_show.data.fields[index].label === '验收是否完成') {
|
|
1764
|
+
let temp = this.$refs.service_show.data.fields[index].value
|
|
1765
|
+
console.log('==============================验收是否完成:' + temp)
|
|
1766
|
+
if (temp === '是') {
|
|
1767
|
+
let f_iscomplete_information = ''
|
|
1768
|
+
if (this.$refs.service_show.data.defname === '施工验收') {
|
|
1769
|
+
let http = new HttpResetClass()
|
|
1770
|
+
let data = {
|
|
1771
|
+
f_process_id: this.$refs.service_show.data.f_process_id,
|
|
1772
|
+
defname: this.$refs.service_show.data.defname
|
|
1773
|
+
}
|
|
1774
|
+
let res = await http.load('POST', 'rs/sql/getFileNames', {data:data},
|
|
1775
|
+
{resolveMsg: null, rejectMsg: null})
|
|
1776
|
+
res.data.forEach(item =>{
|
|
1777
|
+
f_iscomplete_information += item.fusetype + ','
|
|
1778
|
+
})
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1782
|
+
if (this.$refs.service_show.data.fields[i].label === '验收已上传文件') {
|
|
1783
|
+
this.$refs.service_show.data.fields[i].value = f_iscomplete_information
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
|
|
1481
1790
|
},
|
|
1482
1791
|
// onetomany模态框监听事件
|
|
1483
1792
|
async 'select_cascade_modal'(i,j){
|
|
@@ -1518,7 +1827,25 @@
|
|
|
1518
1827
|
,
|
|
1519
1828
|
// 获取view层button事件/
|
|
1520
1829
|
async 'button'(model) {
|
|
1521
|
-
|
|
1830
|
+
console.log("button事件接收参数:", model)
|
|
1831
|
+
if (this.data.defname==='踏勘'){
|
|
1832
|
+
if (model.button.button_name === '终止'){
|
|
1833
|
+
this.stop_show=true
|
|
1834
|
+
return
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
/* if (this.data.defname === '通气转单'){
|
|
1838
|
+
if (model.button.button_name === '散户报装'){
|
|
1839
|
+
this.addactive('报装申请')
|
|
1840
|
+
}
|
|
1841
|
+
if (model.button.button_name === '集体报装'){
|
|
1842
|
+
this.addactive('集体报装申请')
|
|
1843
|
+
}
|
|
1844
|
+
setTimeout(() => {
|
|
1845
|
+
|
|
1846
|
+
}, 200)
|
|
1847
|
+
}*/
|
|
1848
|
+
|
|
1522
1849
|
// 点击重置按钮就重置数据
|
|
1523
1850
|
if (model.button.button_name === '重置') {
|
|
1524
1851
|
this.refurbish()
|
|
@@ -1567,10 +1894,23 @@
|
|
|
1567
1894
|
|
|
1568
1895
|
}
|
|
1569
1896
|
if (model.button.button_name === '提交') {
|
|
1897
|
+
// for (let i = 0; i < this.show_data.fields.length; i++) {
|
|
1898
|
+
// if (this.show_data.fields[i].label === '收费项目') {
|
|
1899
|
+
// let yuanXiang = this.show_data.fields[i].value
|
|
1900
|
+
// if (yuanXiang != '' && yuanXiang != null) {
|
|
1901
|
+
// for (let i = 0; i < yuanXiang.length; i++) {
|
|
1902
|
+
// this.xia += yuanXiang[i] + '-'
|
|
1903
|
+
// }
|
|
1904
|
+
// let idx = this.xia.lastIndexOf("-");
|
|
1905
|
+
// this.xiangmu = this.xia.substring(0,idx)
|
|
1906
|
+
// }
|
|
1907
|
+
// model.f_charge_items = this.xiangmu
|
|
1908
|
+
// }
|
|
1909
|
+
// }
|
|
1570
1910
|
var flag = false
|
|
1571
1911
|
if (this.data.defname == '合同审核') {
|
|
1572
1912
|
flag = true
|
|
1573
|
-
http = new HttpResetClass()
|
|
1913
|
+
let http = new HttpResetClass()
|
|
1574
1914
|
let data = {
|
|
1575
1915
|
tablename: 't_singlevalue',
|
|
1576
1916
|
condition: `name = '合同编号' and f_filialeids = '${this.$login.f.f_orgids}'`
|
|
@@ -1588,6 +1928,10 @@
|
|
|
1588
1928
|
}
|
|
1589
1929
|
console.log('本次点击button执行的操作是=>' + operate)
|
|
1590
1930
|
model = Object.assign({}, this.selectdata, model)
|
|
1931
|
+
model.f_sub_state = '未完工'
|
|
1932
|
+
if (this.data.defname === '通气转单' && model.button.button_name === '提交'){
|
|
1933
|
+
model.f_sub_state = '完工'
|
|
1934
|
+
}
|
|
1591
1935
|
let http = new HttpResetClass()
|
|
1592
1936
|
var url
|
|
1593
1937
|
var requestData = {
|
|
@@ -1611,18 +1955,25 @@
|
|
|
1611
1955
|
if(requestData.model.f_stair_price_name === ''|| requestData.model.f_stair_price_name === null|| requestData.model.f_stair_price_name === undefined){
|
|
1612
1956
|
requestData.model.f_stair_price_name = this.selectdata.f_stair_price_name
|
|
1613
1957
|
}
|
|
1614
|
-
console.log(requestData.model.f_stair_price_name)
|
|
1958
|
+
console.log("流程下一步",requestData.model.f_stair_price_name)
|
|
1615
1959
|
// 下发,提交,保存,退回通用业务后台处理logic
|
|
1616
1960
|
url = 'rs/logic/ApplyProductService'
|
|
1617
1961
|
requestData = {
|
|
1618
1962
|
tables: this.data.tables, model: model
|
|
1619
1963
|
}
|
|
1620
1964
|
}
|
|
1965
|
+
if (this.data.defname==='踏勘'&&(model.button.button_name === '提交'||model.button.button_name === '通气')){
|
|
1966
|
+
this.apply_show=true
|
|
1967
|
+
this.models2 = model
|
|
1968
|
+
return
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1621
1971
|
requestData.start_activity = this.$workflow_vue.start_activity
|
|
1622
1972
|
requestData.loginUser = this.$login.f
|
|
1623
1973
|
requestData.workflow_xmlfilename = this.$workflow_vue.workflow_xmlfilename
|
|
1974
|
+
|
|
1624
1975
|
console.log('即将发送请求url=>' + url + ',参数=>' + JSON.stringify(requestData))
|
|
1625
|
-
let res
|
|
1976
|
+
let res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
|
|
1626
1977
|
console.log("service处理完成返回数据:", JSON.stringify(res.data))
|
|
1627
1978
|
if(res.data.msg=="地址重复,请修改后重新提交"){
|
|
1628
1979
|
this.$showMessage(res.data.msg)
|
|
@@ -1651,8 +2002,6 @@
|
|
|
1651
2002
|
this.$showMessage(res.data.msg)
|
|
1652
2003
|
}
|
|
1653
2004
|
}
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
2005
|
/*
|
|
1657
2006
|
if(this.selectdata.defname =='报装申请'|| this.selectdata.defname =='现场勘查'|| this.selectdata.defname =='验收'||this.selectdata.defname =='集体报装申请'||this.selectdata.defname =='现场勘查人员分配'||this.selectdata.defname =='安装通气' ){
|
|
1658
2007
|
console.log("defname======================================",this.selectdata.defname)
|
|
@@ -1696,9 +2045,6 @@
|
|
|
1696
2045
|
await http1.load('POST', 'rs/logic/getPost', {data:data2})
|
|
1697
2046
|
}
|
|
1698
2047
|
*/
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
2048
|
}
|
|
1703
2049
|
,
|
|
1704
2050
|
async 'onetomanydelete'(i, j) {
|
|
@@ -1805,4 +2151,5 @@
|
|
|
1805
2151
|
}
|
|
1806
2152
|
}
|
|
1807
2153
|
}
|
|
2154
|
+
|
|
1808
2155
|
</script>
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
<!--</div>-->
|
|
11
11
|
<validator name="v">
|
|
12
12
|
<form class="form-horizontal">
|
|
13
|
-
<div class="col-sm-12 form-group">
|
|
13
|
+
<div class="col-sm-12 form-group form-group1">
|
|
14
14
|
<div v-for="(index,item) in data.fields">
|
|
15
15
|
<!--input-->
|
|
16
|
-
<div :style="item.style
|
|
16
|
+
<div :style="item.style+';height: 34px;'"
|
|
17
17
|
v-if="item.type==='input' || item.type==='number'||item.type === 'tel'||item.type === 'email'"
|
|
18
18
|
v-show="!item.hidden"
|
|
19
|
-
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
|
|
19
|
+
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group form-group1']">
|
|
20
20
|
<label :style="item.label_style? item.label_style:''+';width:85px;'"
|
|
21
21
|
:class="item.label_bootstraped?item.label_bootstraped+' control-label-justify control-label':item.label_style?'':'control-label-justify control-label col-sm-6'">{{item.label}}</label>
|
|
22
22
|
<div :style="item.value_style? item.value_style:''"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
<!--时间datepicker-->
|
|
37
37
|
<div :style="item.style? item.style+';height: 34px;':'height: 34px;'" v-if="item.type==='datepicker'"
|
|
38
38
|
v-show="!item.hidden"
|
|
39
|
-
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
|
|
39
|
+
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group form-group1']">
|
|
40
40
|
<label style="width:85px"
|
|
41
41
|
:class="item.label_bootstraped?item.label_bootstraped+' control-label-justify control-label':'control-label control-label-justify col-sm-6'">{{item.label}}</label>
|
|
42
42
|
<div :class="item.value_bootstraped?item.value_bootstraped:'col-sm-6'">
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
|
|
95
95
|
<!--select-->
|
|
96
96
|
<div style="height: 34px" v-if="item.type==='select'" v-show="!item.hidden"
|
|
97
|
-
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
|
|
97
|
+
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group ':'col-sm-4 form-group']">
|
|
98
98
|
<label style="width:85px;"
|
|
99
99
|
:class="item.label_bootstraped?item.label_bootstraped+' control-label control-label-justify':'control-label-justify control-label col-sm-6'">{{item.label}}</label>
|
|
100
100
|
<input-select :class="item.value_bootstraped?item.value_bootstraped:'col-sm-6'" @blur="check_disable"
|
|
@@ -106,6 +106,7 @@
|
|
|
106
106
|
|
|
107
107
|
</div>
|
|
108
108
|
|
|
109
|
+
|
|
109
110
|
<!--checkbox-->
|
|
110
111
|
<div v-if="item.type==='checkbox'"
|
|
111
112
|
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-12 form-group']">
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
</div>
|
|
123
124
|
<!-- onetomany -->
|
|
124
125
|
<div class="col-sm-12" v-for="(i,datagrid) in data.onetomany">
|
|
125
|
-
<table v-show="!datagrid.hidden" class="table table-bordered table-striped table-hover">
|
|
126
|
+
<table v-show="!datagrid.hidden" class="table table-bordered table-striped table-hover" style="margin-top: 80px">
|
|
126
127
|
<tr style="background-color: #00A3F0">
|
|
127
128
|
<th style="text-align: center;border-color: #00A3F0"><font color="white">序号</font></th>
|
|
128
129
|
<th v-for="labels in datagrid.fields" style="text-align: center;border-color: #00A3F0">
|
|
@@ -506,6 +507,12 @@
|
|
|
506
507
|
},
|
|
507
508
|
// 初始化数据
|
|
508
509
|
initializtion() {
|
|
510
|
+
if(this.data.f_apply_type='集体报建' && this.data.f_user_type=='非民用' && this.data.defname=='验收'){
|
|
511
|
+
for(let j=0;j< this.data.fields.length;j++) {
|
|
512
|
+
this.data.fields[j].required = false
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
509
516
|
let fields = this.data.fields
|
|
510
517
|
let flag = false
|
|
511
518
|
for (let i = 0; i < fields.length; i++) {
|
|
@@ -797,4 +804,7 @@
|
|
|
797
804
|
tr {
|
|
798
805
|
height: 34px;
|
|
799
806
|
}
|
|
807
|
+
.form-group{
|
|
808
|
+
margin-top:20px;
|
|
809
|
+
}
|
|
800
810
|
</style>
|