apply-clients 5.0.35-6 → 5.0.35-62
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 +1 -1
- package/src/apply.js +14 -1
- package/src/components/app_apply/ApplyDownList.vue +168 -164
- 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 +2588 -10
- package/src/components/app_apply/Gongcheng.vue +3614 -0
- package/src/components/app_apply/OneToMany.vue +194 -0
- package/src/components/app_apply/PlaceControler.vue +299 -256
- package/src/components/app_apply/ServiceControl.vue +537 -335
- 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 +790 -620
- 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 +3 -2
- 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 +588 -0
- package/src/components/product/EngineeringSupervisory/EngineeringApplyStopInfo.vue +281 -0
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryControl.vue +130 -0
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryList.vue +350 -0
- package/src/components/product/Function/InstallInfoSelect.vue +255 -254
- 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 +512 -512
- package/src/components/product/Function/functions/InstallFee.vue +569 -344
- package/src/components/product/Process/ExplorationSelect.vue +640 -636
- package/src/components/product/Process/Processes/CustomerRecordMessage.vue +2 -5
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +123 -37
- package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +85 -0
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +304 -21
- package/src/components/product/ServiceView.vue +16 -6
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +53 -6
- package/src/components/product/Supervisory/SupervisoryList.vue +350 -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 +281 -280
- package/src/ezhouAndroid.js +13 -10
- 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,81 @@
|
|
|
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
|
+
}
|
|
136
181
|
}
|
|
137
182
|
},
|
|
138
183
|
methods: {
|
|
139
184
|
/*
|
|
140
185
|
============================================收费临时使用
|
|
141
186
|
*/
|
|
187
|
+
// 转到报建
|
|
188
|
+
async addactive(){
|
|
189
|
+
this.selectdata.applyid = this.selectdata.id
|
|
190
|
+
// this.$resetpost('rs/logic/stopapply', {data: this.selectdata})
|
|
191
|
+
console.log(this.apply_type[0])
|
|
192
|
+
this.$workflow_vue.start_activity = this.apply_type[0]
|
|
193
|
+
let http = new HttpResetClass()
|
|
194
|
+
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失败,请联系开发人员'})
|
|
195
|
+
let data = {
|
|
196
|
+
defname: this.$workflow_vue.start_activity,
|
|
197
|
+
f_process_id: res.data.f_process_id,
|
|
198
|
+
f_apply_date: Util.toStandardTimeString(),
|
|
199
|
+
f_product_id: res.data.f_product_id,
|
|
200
|
+
start_activity:this.$workflow_vue.start_activity,
|
|
201
|
+
f_user_type:this.selectdata.f_user_type,
|
|
202
|
+
f_user_name:this.selectdata.f_user_name,
|
|
203
|
+
f_phone:this.selectdata.f_phone,
|
|
204
|
+
f_area:this.selectdata.f_area,
|
|
205
|
+
f_street:this.selectdata.f_street,
|
|
206
|
+
f_residential_area:this.selectdata.f_residential_area,
|
|
207
|
+
f_building:this.selectdata.f_building,
|
|
208
|
+
f_unit:this.selectdata.f_unit,
|
|
209
|
+
f_floor:this.selectdata.f_floor,
|
|
210
|
+
f_room:this.selectdata.f_room,
|
|
211
|
+
f_address:this.selectdata.f_address,
|
|
212
|
+
f_idnumber:this.selectdata.f_social_credit_code,
|
|
213
|
+
user:this.$login.f
|
|
214
|
+
}
|
|
215
|
+
await http.load('POST','rs/logic/newaddApplyproduct',{data:data}, {resolveMsg: null, rejectMsg: '转发失败,请联系开发人员'})
|
|
216
|
+
this.$dispatch('close')
|
|
217
|
+
this.apply_show = false
|
|
218
|
+
},
|
|
219
|
+
// 终止报建
|
|
220
|
+
async stopapplys () {
|
|
221
|
+
this.models = Object.assign({}, this.selectdata, this.models)
|
|
222
|
+
this.models.id = null
|
|
223
|
+
this.models.applyid = this.selectdata.id
|
|
224
|
+
this.models.f_operat_type = '终止报建'
|
|
225
|
+
this.models.f_state = '有效'
|
|
226
|
+
this.models.f_describe = this.selectdata.f_user_name + '已终止报建'
|
|
227
|
+
let data ={
|
|
228
|
+
tablename:'t_project_stop',
|
|
229
|
+
parameters:this.models
|
|
230
|
+
}
|
|
231
|
+
let http = new HttpResetClass()
|
|
232
|
+
await http.load('POST','rs/logic/save', {data:data},{resolveMsg: null, rejectMsg: "添加失败"})
|
|
233
|
+
await http.load('POST','rs/logic/stopapply', {data:this.models},{resolveMsg: null, rejectMsg: "终止失败"})
|
|
234
|
+
this.closeback()
|
|
235
|
+
this.$dispatch('close')
|
|
236
|
+
},
|
|
237
|
+
// 关闭终止备注弹框
|
|
238
|
+
closeback() {
|
|
239
|
+
this.stop_show = false
|
|
240
|
+
},
|
|
241
|
+
// 关闭报建弹框
|
|
242
|
+
closeapply() {
|
|
243
|
+
this.apply_show = false
|
|
244
|
+
},
|
|
142
245
|
closeAccept () {
|
|
143
246
|
this.acceptprint = false
|
|
144
247
|
},
|
|
@@ -449,7 +552,7 @@
|
|
|
449
552
|
} else {
|
|
450
553
|
data = {
|
|
451
554
|
tablename: this.data.onetomany[index].tables[0],
|
|
452
|
-
condition: `
|
|
555
|
+
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
453
556
|
}
|
|
454
557
|
}
|
|
455
558
|
let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
|
|
@@ -914,6 +1017,40 @@
|
|
|
914
1017
|
}
|
|
915
1018
|
}
|
|
916
1019
|
}
|
|
1020
|
+
if (this.show_data.defname === '施工') {
|
|
1021
|
+
let http = new HttpResetClass()
|
|
1022
|
+
let data = {
|
|
1023
|
+
f_process_id: this.show_data.f_process_id,
|
|
1024
|
+
defname: this.show_data.defname
|
|
1025
|
+
}
|
|
1026
|
+
let res = await http.load('POST', 'rs/sql/getFileNames', {data:data},
|
|
1027
|
+
{resolveMsg: null, rejectMsg: null})
|
|
1028
|
+
|
|
1029
|
+
// for (let i = 0; i < res.length; i++){
|
|
1030
|
+
// this.data.f_project_material += res.data.fusetype + ','
|
|
1031
|
+
// }
|
|
1032
|
+
res.data.forEach(item =>{
|
|
1033
|
+
this.show_data.f_project_material += item.fusetype + ','
|
|
1034
|
+
})
|
|
1035
|
+
}
|
|
1036
|
+
// if (this.show_data.defname === '施工验收') {
|
|
1037
|
+
// let http = new HttpResetClass()
|
|
1038
|
+
// let data = {
|
|
1039
|
+
// f_process_id: this.show_data.f_process_id,
|
|
1040
|
+
// defname: this.show_data.defname
|
|
1041
|
+
// }
|
|
1042
|
+
// let res = await http.load('POST', 'rs/sql/getFileNames', {data:data},
|
|
1043
|
+
// {resolveMsg: null, rejectMsg: null})
|
|
1044
|
+
// this.show_data.f_iscomplete_information = ''
|
|
1045
|
+
// res.data.forEach(item =>{
|
|
1046
|
+
// this.show_data.f_iscomplete_information += item.fusetype + ','
|
|
1047
|
+
// })
|
|
1048
|
+
// for (j = 0; j < this.show_data.fields.length; j++) {
|
|
1049
|
+
// if (this.show_data.fields[j].label === '验收已上传文件') {
|
|
1050
|
+
// this.show_data.fields[j].value = this.show_data.f_iscomplete_information
|
|
1051
|
+
// }
|
|
1052
|
+
// }
|
|
1053
|
+
// }
|
|
917
1054
|
// 显示组件
|
|
918
1055
|
// this.showview = false
|
|
919
1056
|
// debugger
|
|
@@ -956,6 +1093,48 @@
|
|
|
956
1093
|
}
|
|
957
1094
|
}
|
|
958
1095
|
}
|
|
1096
|
+
if(this.$refs.service_show.data.fields[index].label=="施工提交资料"){
|
|
1097
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1098
|
+
|
|
1099
|
+
if(this.$refs.service_show.data.fields[i].label=="施工已上传文件"){
|
|
1100
|
+
//增加和删除框中的内容
|
|
1101
|
+
if(this.$refs.service_show.data.fields[index].items[index2].value == false){
|
|
1102
|
+
this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
|
|
1103
|
+
this.$refs.service_show.data.fields[index].items[index2].value=true;
|
|
1104
|
+
}else{
|
|
1105
|
+
let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
|
|
1106
|
+
let values =this.$refs.service_show.data.fields[i].value;
|
|
1107
|
+
let result = values.split(" ").filter((item)=>{
|
|
1108
|
+
return item!=deleteValue;
|
|
1109
|
+
}).join(" ")
|
|
1110
|
+
this.$refs.service_show.data.fields[i].value =result;
|
|
1111
|
+
this.$refs.service_show.data.fields[index].items[index2].value=false;
|
|
1112
|
+
}
|
|
1113
|
+
//}
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
if(this.$refs.service_show.data.fields[index].label=="验收提交资料"){
|
|
1118
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1119
|
+
|
|
1120
|
+
if(this.$refs.service_show.data.fields[i].label=="验收已上传文件"){
|
|
1121
|
+
//增加和删除框中的内容
|
|
1122
|
+
if(this.$refs.service_show.data.fields[index].items[index2].value == false){
|
|
1123
|
+
this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
|
|
1124
|
+
this.$refs.service_show.data.fields[index].items[index2].value=true;
|
|
1125
|
+
}else{
|
|
1126
|
+
let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
|
|
1127
|
+
let values =this.$refs.service_show.data.fields[i].value;
|
|
1128
|
+
let result = values.split(" ").filter((item)=>{
|
|
1129
|
+
return item!=deleteValue;
|
|
1130
|
+
}).join(" ")
|
|
1131
|
+
this.$refs.service_show.data.fields[i].value =result;
|
|
1132
|
+
this.$refs.service_show.data.fields[index].items[index2].value=false;
|
|
1133
|
+
}
|
|
1134
|
+
//}
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
959
1138
|
},
|
|
960
1139
|
'get-number'(val) {
|
|
961
1140
|
this.number = val
|
|
@@ -970,8 +1149,11 @@
|
|
|
970
1149
|
,
|
|
971
1150
|
// 任意select选中时触发事件,关联性操作
|
|
972
1151
|
async 'select_cascade'(index) {
|
|
973
|
-
|
|
974
|
-
|
|
1152
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1153
|
+
if (this.$refs.service_show.data.fields[i].label === '工程盈利') {
|
|
1154
|
+
this.$refs.service_show.data.fields[i].value = c
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
975
1157
|
|
|
976
1158
|
|
|
977
1159
|
if (this.$refs.service_show.data.fields[index].label == '施工单位' ||
|
|
@@ -1412,21 +1594,33 @@
|
|
|
1412
1594
|
if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
|
|
1413
1595
|
address += this.$refs.service_show.data.fields[i].value
|
|
1414
1596
|
}
|
|
1597
|
+
if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
|
|
1598
|
+
address += '栋'
|
|
1599
|
+
}
|
|
1415
1600
|
if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
|
|
1416
1601
|
address += '-' +this.$refs.service_show.data.fields[i].value
|
|
1417
1602
|
}
|
|
1603
|
+
if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
|
|
1604
|
+
address += '单元'
|
|
1605
|
+
}
|
|
1418
1606
|
if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
|
|
1419
1607
|
address += '-' +this.$refs.service_show.data.fields[i].value
|
|
1420
1608
|
}
|
|
1609
|
+
if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
|
|
1610
|
+
address += '层'
|
|
1611
|
+
}
|
|
1421
1612
|
if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
|
|
1422
1613
|
address += '-' +this.$refs.service_show.data.fields[i].value
|
|
1423
1614
|
}
|
|
1615
|
+
if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
|
|
1616
|
+
address += '室'
|
|
1617
|
+
}
|
|
1424
1618
|
|
|
1425
1619
|
}
|
|
1426
1620
|
console.log('获取到的address=>' + address)
|
|
1427
1621
|
// 数据获取完毕时放入地址text
|
|
1428
1622
|
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1429
|
-
if (this.$refs.service_show.data.fields[i].label === '地址') {
|
|
1623
|
+
if (this.$refs.service_show.data.fields[i].label === '地址' || this.$refs.service_show.data.fields[i].label === '报装地址') {
|
|
1430
1624
|
this.$refs.service_show.data.fields[i].value = address
|
|
1431
1625
|
console.log('修改fields[i].value后的值=>' + this.$refs.service_show.data.fields[i].value)
|
|
1432
1626
|
}
|
|
@@ -1439,31 +1633,34 @@
|
|
|
1439
1633
|
this.$refs.service_show.data.fields[index].label === '人工费'
|
|
1440
1634
|
) {
|
|
1441
1635
|
console.log('即将合成价格')
|
|
1636
|
+
let a1 = 0
|
|
1637
|
+
let b1 = 0
|
|
1638
|
+
let c1 = 0
|
|
1442
1639
|
let fee = 0
|
|
1443
1640
|
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1444
1641
|
// 控制设置级联
|
|
1445
1642
|
// 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
|
|
1446
1643
|
// xxx xx xxx
|
|
1447
1644
|
if (this.$refs.service_show.data.fields[i].label === '工程安装费' && this.$refs.service_show.data.fields[i].value) {
|
|
1448
|
-
|
|
1645
|
+
a1 = this.$refs.service_show.data.fields[i].value
|
|
1449
1646
|
}
|
|
1450
1647
|
if (this.$refs.service_show.data.fields[i].label === '材料费' && this.$refs.service_show.data.fields[i].value) {
|
|
1451
|
-
|
|
1648
|
+
b1= this.$refs.service_show.data.fields[i].value
|
|
1452
1649
|
}
|
|
1453
1650
|
if (this.$refs.service_show.data.fields[i].label === '人工费' && this.$refs.service_show.data.fields[i].value) {
|
|
1454
|
-
|
|
1651
|
+
c1 = this.$refs.service_show.data.fields[i].value
|
|
1455
1652
|
}
|
|
1653
|
+
fee=parseFloat(parseFloat(a1) + parseFloat(b1)+parseFloat(c1)).toFixed(2)
|
|
1456
1654
|
// 数据获取完毕时放入地址text
|
|
1457
1655
|
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1458
1656
|
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 =
|
|
1657
|
+
this.$refs.service_show.data.fields[i].value =fee
|
|
1460
1658
|
console.log('修改fields[i].value后的值=>' + this.$refs.service_show.data.fields[i].value)
|
|
1461
1659
|
}
|
|
1462
1660
|
}
|
|
1463
1661
|
}
|
|
1464
1662
|
}
|
|
1465
1663
|
if (this.$refs.service_show.data.fields[index].label == '用户类型'){
|
|
1466
|
-
debugger
|
|
1467
1664
|
if(this.$refs.service_show.data.fields[index].value == '非民用'){
|
|
1468
1665
|
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1469
1666
|
if (this.$refs.service_show.data.fields[i].label === '小区名称') {
|
|
@@ -1478,6 +1675,60 @@
|
|
|
1478
1675
|
}
|
|
1479
1676
|
}
|
|
1480
1677
|
}
|
|
1678
|
+
|
|
1679
|
+
if (this.$refs.service_show.data.fields[index].label === '施工是否完成') {
|
|
1680
|
+
let temp = this.$refs.service_show.data.fields[index].value
|
|
1681
|
+
console.log('==============================施工是否完成:' + temp)
|
|
1682
|
+
if (temp === '是') {
|
|
1683
|
+
let f_project_material = ''
|
|
1684
|
+
if (this.$refs.service_show.data.defname === '施工') {
|
|
1685
|
+
let http = new HttpResetClass()
|
|
1686
|
+
let data = {
|
|
1687
|
+
f_process_id: this.$refs.service_show.data.f_process_id,
|
|
1688
|
+
defname: this.$refs.service_show.data.defname
|
|
1689
|
+
}
|
|
1690
|
+
let res = await http.load('POST', 'rs/sql/getFileNames', {data:data},
|
|
1691
|
+
{resolveMsg: null, rejectMsg: null})
|
|
1692
|
+
res.data.forEach(item =>{
|
|
1693
|
+
f_project_material += item.fusetype + ','
|
|
1694
|
+
})
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1698
|
+
if (this.$refs.service_show.data.fields[i].label === '施工已上传文件') {
|
|
1699
|
+
this.$refs.service_show.data.fields[i].value = f_project_material
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
if (this.$refs.service_show.data.fields[index].label === '验收是否完成') {
|
|
1706
|
+
let temp = this.$refs.service_show.data.fields[index].value
|
|
1707
|
+
console.log('==============================验收是否完成:' + temp)
|
|
1708
|
+
if (temp === '是') {
|
|
1709
|
+
let f_iscomplete_information = ''
|
|
1710
|
+
if (this.$refs.service_show.data.defname === '施工验收') {
|
|
1711
|
+
let http = new HttpResetClass()
|
|
1712
|
+
let data = {
|
|
1713
|
+
f_process_id: this.$refs.service_show.data.f_process_id,
|
|
1714
|
+
defname: this.$refs.service_show.data.defname
|
|
1715
|
+
}
|
|
1716
|
+
let res = await http.load('POST', 'rs/sql/getFileNames', {data:data},
|
|
1717
|
+
{resolveMsg: null, rejectMsg: null})
|
|
1718
|
+
res.data.forEach(item =>{
|
|
1719
|
+
f_iscomplete_information += item.fusetype + ','
|
|
1720
|
+
})
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1724
|
+
if (this.$refs.service_show.data.fields[i].label === '验收已上传文件') {
|
|
1725
|
+
this.$refs.service_show.data.fields[i].value = f_iscomplete_information
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
|
|
1481
1732
|
},
|
|
1482
1733
|
// onetomany模态框监听事件
|
|
1483
1734
|
async 'select_cascade_modal'(i,j){
|
|
@@ -1518,7 +1769,26 @@
|
|
|
1518
1769
|
,
|
|
1519
1770
|
// 获取view层button事件/
|
|
1520
1771
|
async 'button'(model) {
|
|
1521
|
-
|
|
1772
|
+
debugger
|
|
1773
|
+
console.log("button事件接收参数:", model)
|
|
1774
|
+
if (this.data.defname==='踏勘、建立工程编号'){
|
|
1775
|
+
if (model.button.button_name === '终止'){
|
|
1776
|
+
this.stop_show=true
|
|
1777
|
+
return
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
/* if (this.data.defname === '通气转单'){
|
|
1781
|
+
if (model.button.button_name === '散户报装'){
|
|
1782
|
+
this.addactive('报装申请')
|
|
1783
|
+
}
|
|
1784
|
+
if (model.button.button_name === '集体报装'){
|
|
1785
|
+
this.addactive('集体报装申请')
|
|
1786
|
+
}
|
|
1787
|
+
setTimeout(() => {
|
|
1788
|
+
|
|
1789
|
+
}, 200)
|
|
1790
|
+
}*/
|
|
1791
|
+
|
|
1522
1792
|
// 点击重置按钮就重置数据
|
|
1523
1793
|
if (model.button.button_name === '重置') {
|
|
1524
1794
|
this.refurbish()
|
|
@@ -1567,10 +1837,23 @@
|
|
|
1567
1837
|
|
|
1568
1838
|
}
|
|
1569
1839
|
if (model.button.button_name === '提交') {
|
|
1840
|
+
// for (let i = 0; i < this.show_data.fields.length; i++) {
|
|
1841
|
+
// if (this.show_data.fields[i].label === '收费项目') {
|
|
1842
|
+
// let yuanXiang = this.show_data.fields[i].value
|
|
1843
|
+
// if (yuanXiang != '' && yuanXiang != null) {
|
|
1844
|
+
// for (let i = 0; i < yuanXiang.length; i++) {
|
|
1845
|
+
// this.xia += yuanXiang[i] + '-'
|
|
1846
|
+
// }
|
|
1847
|
+
// let idx = this.xia.lastIndexOf("-");
|
|
1848
|
+
// this.xiangmu = this.xia.substring(0,idx)
|
|
1849
|
+
// }
|
|
1850
|
+
// model.f_charge_items = this.xiangmu
|
|
1851
|
+
// }
|
|
1852
|
+
// }
|
|
1570
1853
|
var flag = false
|
|
1571
1854
|
if (this.data.defname == '合同审核') {
|
|
1572
1855
|
flag = true
|
|
1573
|
-
http = new HttpResetClass()
|
|
1856
|
+
let http = new HttpResetClass()
|
|
1574
1857
|
let data = {
|
|
1575
1858
|
tablename: 't_singlevalue',
|
|
1576
1859
|
condition: `name = '合同编号' and f_filialeids = '${this.$login.f.f_orgids}'`
|
|
@@ -1611,7 +1894,7 @@
|
|
|
1611
1894
|
if(requestData.model.f_stair_price_name === ''|| requestData.model.f_stair_price_name === null|| requestData.model.f_stair_price_name === undefined){
|
|
1612
1895
|
requestData.model.f_stair_price_name = this.selectdata.f_stair_price_name
|
|
1613
1896
|
}
|
|
1614
|
-
console.log(requestData.model.f_stair_price_name)
|
|
1897
|
+
console.log("流程下一步",requestData.model.f_stair_price_name)
|
|
1615
1898
|
// 下发,提交,保存,退回通用业务后台处理logic
|
|
1616
1899
|
url = 'rs/logic/ApplyProductService'
|
|
1617
1900
|
requestData = {
|
|
@@ -1644,15 +1927,17 @@
|
|
|
1644
1927
|
this.showview = false
|
|
1645
1928
|
// 特殊处理
|
|
1646
1929
|
this.special(model)
|
|
1647
|
-
this
|
|
1930
|
+
if (this.data.defname==='踏勘、建立工程编号'&&model.button.button_name === '提交'){
|
|
1931
|
+
this.apply_show=true
|
|
1932
|
+
}else {
|
|
1933
|
+
this.$dispatch('close')
|
|
1934
|
+
}
|
|
1648
1935
|
this.initializtion()
|
|
1649
1936
|
} else {
|
|
1650
1937
|
if (res.data.msg) {
|
|
1651
1938
|
this.$showMessage(res.data.msg)
|
|
1652
1939
|
}
|
|
1653
1940
|
}
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
1941
|
/*
|
|
1657
1942
|
if(this.selectdata.defname =='报装申请'|| this.selectdata.defname =='现场勘查'|| this.selectdata.defname =='验收'||this.selectdata.defname =='集体报装申请'||this.selectdata.defname =='现场勘查人员分配'||this.selectdata.defname =='安装通气' ){
|
|
1658
1943
|
console.log("defname======================================",this.selectdata.defname)
|
|
@@ -1696,9 +1981,6 @@
|
|
|
1696
1981
|
await http1.load('POST', 'rs/logic/getPost', {data:data2})
|
|
1697
1982
|
}
|
|
1698
1983
|
*/
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
1984
|
}
|
|
1703
1985
|
,
|
|
1704
1986
|
async 'onetomanydelete'(i, j) {
|
|
@@ -1805,4 +2087,5 @@
|
|
|
1805
2087
|
}
|
|
1806
2088
|
}
|
|
1807
2089
|
}
|
|
2090
|
+
|
|
1808
2091
|
</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>
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
</template>
|
|
21
21
|
<script>
|
|
22
22
|
import {HttpResetClass} from 'vue-client'
|
|
23
|
+
import Vue from "vue";
|
|
23
24
|
export default {
|
|
24
25
|
title: '报建监控控制层',
|
|
25
26
|
props: ['selectdata'],
|
|
@@ -36,6 +37,45 @@
|
|
|
36
37
|
},
|
|
37
38
|
// json配置数据处理 比如下拉框的options
|
|
38
39
|
async initializtion() {
|
|
40
|
+
// onetomany 数据获取
|
|
41
|
+
if (this.data.onetomany) {
|
|
42
|
+
console.log('判断是onetomany,this.data.onetomany的数据为=>' + JSON.stringify(this.data.onetomany))
|
|
43
|
+
for (let index = 0; index < this.data.onetomany.length; index++) {
|
|
44
|
+
let http = new HttpResetClass()
|
|
45
|
+
let data = {}
|
|
46
|
+
if (this.data.onetomany[index].tables[0] == 't_charge_record') {
|
|
47
|
+
data = {
|
|
48
|
+
tablename: this.data.onetomany[index].tables[0],
|
|
49
|
+
condition: `f_apply_num = '${this.selectdata.f_apply_num}' and f_process_id='${this.selectdata.f_process_id}' and f_charging_status != '作废'`
|
|
50
|
+
}
|
|
51
|
+
} else {
|
|
52
|
+
data = {
|
|
53
|
+
tablename: this.data.onetomany[index].tables[0],
|
|
54
|
+
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
|
|
58
|
+
resolveMsg: null,
|
|
59
|
+
rejectMsg: 'onetomany查询失败'
|
|
60
|
+
})
|
|
61
|
+
// 初始化 onetomany
|
|
62
|
+
let rows = []
|
|
63
|
+
console.log('查询返回结果res.data=>' + JSON.stringify(res.data))
|
|
64
|
+
this.data.onetomany[index].rows = res.data
|
|
65
|
+
// console.log(JSON.stringify('this.data.onetomany[index].rows=>' + JSON.stringify(this.data.onetomany[index].rows)))
|
|
66
|
+
|
|
67
|
+
// 初始化onetomany中的fields
|
|
68
|
+
for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
|
|
69
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
70
|
+
if (this.data.onetomany[index].fields[j].type === 'select') {
|
|
71
|
+
let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
|
|
72
|
+
if (temp && temp.length > 0) {
|
|
73
|
+
this.data.onetomany[index].fields[j].options = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
39
79
|
// selectdata 填充 data
|
|
40
80
|
if (this.selectdata.f_survey_name) {
|
|
41
81
|
let buyerinfos = []
|
|
@@ -133,11 +173,6 @@
|
|
|
133
173
|
}
|
|
134
174
|
]
|
|
135
175
|
}
|
|
136
|
-
// 完成时间和完成人,部门,分公司
|
|
137
|
-
this.data.filiale = this.selectdata.f_filiale
|
|
138
|
-
this.data.f_parentname = this.selectdata.f_parentname
|
|
139
|
-
this.data.operate_date = this.selectdata.finishtime
|
|
140
|
-
this.data.operator = this.selectdata.sender
|
|
141
176
|
}
|
|
142
177
|
},
|
|
143
178
|
events:{
|
|
@@ -393,7 +428,19 @@
|
|
|
393
428
|
if (sum == 1) {
|
|
394
429
|
this.data = jsonData
|
|
395
430
|
this.initializtion()
|
|
396
|
-
|
|
431
|
+
// 完成时间和完成人,部门,分公司
|
|
432
|
+
if(this.selectdata.defname =='完工'){ this.data.filiale = this.selectdata.f_filiale
|
|
433
|
+
this.data.f_parentname = this.selectdata.f_parentname
|
|
434
|
+
this.data.operate_date = this.selectdata.sendtime
|
|
435
|
+
this.data.operator = this.selectdata.sender
|
|
436
|
+
this.showview = true
|
|
437
|
+
}else{
|
|
438
|
+
this.data.f_parentname = this.selectdata.f_parentname
|
|
439
|
+
this.data.operate_date = this.selectdata.finishtime
|
|
440
|
+
this.data.operator = this.selectdata.person
|
|
441
|
+
this.showview = true
|
|
442
|
+
}
|
|
443
|
+
|
|
397
444
|
} else if (sum == 0) {
|
|
398
445
|
this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
|
|
399
446
|
} else {
|