apply-clients 3.5.6-21 → 3.5.6-22
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/build/dev-server.js +5 -5
- package/package.json +1 -1
- package/src/components/android/Process/AppServiceControl.vue +1760 -1760
- package/src/components/product/Function/Service/FunctionServiceControl.vue +497 -497
- package/src/components/product/Install/ContractCharge.vue +210 -210
- package/src/filiale/dingcheng/android/AppInstallationDetails.vue +477 -477
- package/src/filiale/dingcheng/pc/InstallationDetails.vue +607 -607
- package/src/filiale/fugou/android/AppAddMaterialScience.vue +444 -444
- package/src/filiale/fugou/android/AppAddReplacement.vue +512 -512
- package/src/filiale/fugou/android/AppDevicesManagement.vue +516 -516
- package/src/filiale/fugou/android/AppInstallationDetails.vue +541 -541
- package/src/filiale/fugou/android/AppZhihuanManagement.vue +242 -242
- package/src/filiale/fugou/pc/AddReplacement.vue +511 -511
- package/src/filiale/fugou/pc/ApplyChargeList.vue +554 -554
- package/src/filiale/fugou/pc/Applybatchdispatch.vue +754 -754
- package/src/filiale/fugou/pc/InstallationDetails.vue +646 -646
- package/src/filiale/fugou/pc/ServiceControl.vue +1741 -1741
- package/src/filiale/fugou/pc/addMaterialScience.vue +481 -481
- package/src/filiale/fugou/pc.js +19 -19
- package/src/filiale/gongyi/pc/addressAndUserinfoManagement.vue +187 -187
- package/src/filiale/gongyi/pc/chargeManagement.vue +765 -765
- package/src/filiale/gongyi/pc.js +25 -25
- package/src/filiale/hongda/pc/addMaterialScience.vue +723 -723
- package/src/filiale/jinhuang/android/AppAddMaterialScience.vue +635 -635
- package/src/filiale/jinhuang/android/AppServiceControl.vue +1842 -1842
- package/src/filiale/jinhuang/android.js +7 -7
- package/src/filiale/jinhuang/pc/Applybatchdispatch.vue +770 -770
- package/src/filiale/jinhuang/pc/ContractList.vue +222 -222
- package/src/filiale/jinhuang/pc/ExplorationSelect.vue +511 -511
- package/src/filiale/jinhuang/pc/ServiceControl.vue +2016 -2016
- package/src/filiale/jinhuang/pc/SupervisoryList.vue +478 -478
- package/src/filiale/jinhuang/pc/addMaterialScience.vue +638 -638
- package/src/filiale/jinhuang/pc.js +13 -13
- package/src/filiale/qianneng/pc/Applybatchdispatch.vue +786 -786
- package/src/filiale/qianneng/pc/ServiceControl.vue +1387 -1387
- package/src/filiale/ruihua/pc/ServiceControl.vue +1973 -1973
- package/src/filiale/shexian/android/AppServiceControl.vue +1786 -1786
- package/src/filiale/shexian/android/AppSign.vue +152 -152
- package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +527 -527
- package/src/filiale/yangchunboneng/android/AppContractCharge.vue +222 -222
- package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +1144 -1144
- package/src/filiale/yangchunboneng/android/AppOtherChargeList.vue +281 -281
- package/src/filiale/yangchunboneng/android/AppServiceControl.vue +1883 -1883
- package/src/filiale/yangchunboneng/android.js +22 -22
- package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +392 -392
- package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +622 -622
- package/src/filiale/yangchunboneng/pc/InstallInfoSelect.vue +400 -400
- package/src/filiale/yangchunboneng/pc/ServiceControl.vue +2118 -2118
- package/src/filiale/yangchunboneng/pc/SupervisoryControl.vue +141 -141
- package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +652 -644
- package/src/filiale/yangchunboneng/pc/buildOrderList.vue +421 -421
- package/src/filiale/yangchunboneng/pc/chargeManagement.vue +1060 -1060
- package/src/filiale/yangchunboneng/pc/printBuildOrder.vue +175 -175
- package/src/filiale/yangchunboneng/pc.js +29 -29
- package/src/main.js +3 -3
|
@@ -1,1842 +1,1842 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="col-sm-12 col-xs-12 p-10">
|
|
3
|
-
<accordion one-at-a-time="true">
|
|
4
|
-
<panel :header="selectdata.defname" :is-open="true" type="primary">
|
|
5
|
-
<work-busy :is-busy="excessive"></work-busy>
|
|
6
|
-
<app-service-view v-ref:serviceview :data="show_data" v-if="showview"></app-service-view>
|
|
7
|
-
</panel>
|
|
8
|
-
<panel header="拍照" :is-open="false" type="primary" v-if="selectdata.f_process_id">
|
|
9
|
-
<app-take-pic :blobid="selectdata.f_process_id" :defname="selectdata.defname" :isdelete="true" :istakepic="true" :istype="true"></app-take-pic>
|
|
10
|
-
</panel>
|
|
11
|
-
<panel header="签字" :is-open="false" type="primary" v-if="selectdata.f_process_id">
|
|
12
|
-
<app-sign :blobid="selectdata.f_process_id" :defname="selectdata.defname" @sign-success="signSuccess" :file-path="selectdata.f_process_id"@sign-clean="signClean"></app-sign>
|
|
13
|
-
</panel>
|
|
14
|
-
</accordion>
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
<script>
|
|
18
|
-
import Vue from 'vue'
|
|
19
|
-
import {HttpResetClass} from 'vue-client'
|
|
20
|
-
import {isEmpty} from "../../../components/Util";
|
|
21
|
-
// Date格式化
|
|
22
|
-
Date.prototype.Format = function (fmt) {
|
|
23
|
-
var o = {
|
|
24
|
-
'M+': this.getMonth() + 1, // 月份
|
|
25
|
-
'd+': this.getDate(), // 日
|
|
26
|
-
'H+': this.getHours(), // 小时
|
|
27
|
-
'm+': this.getMinutes(), // 分
|
|
28
|
-
's+': this.getSeconds(), // 秒
|
|
29
|
-
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
30
|
-
'S': this.getMilliseconds() // 毫秒
|
|
31
|
-
}
|
|
32
|
-
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
33
|
-
for (var k in o) {
|
|
34
|
-
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
35
|
-
}
|
|
36
|
-
return fmt
|
|
37
|
-
}
|
|
38
|
-
export default {
|
|
39
|
-
title: '报建流程业务控制层',
|
|
40
|
-
props: ['selectdata'],
|
|
41
|
-
data () {
|
|
42
|
-
return {
|
|
43
|
-
json_datas: null,
|
|
44
|
-
data: null,
|
|
45
|
-
show_data: null,
|
|
46
|
-
showview: false,
|
|
47
|
-
config: {},
|
|
48
|
-
excessive:false
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
ready () {
|
|
52
|
-
this.refurbish()
|
|
53
|
-
},
|
|
54
|
-
methods: {
|
|
55
|
-
/*获取服务人*/
|
|
56
|
-
getServicPeo(){
|
|
57
|
-
this.setLabelValue("服务人",Vue.user.name)
|
|
58
|
-
},
|
|
59
|
-
async buttonCommit() {
|
|
60
|
-
if(this.show_data.button.button_name){
|
|
61
|
-
this.$refs.serviceview.disablebtu()
|
|
62
|
-
}
|
|
63
|
-
if (this.show_data.button.before) {
|
|
64
|
-
if (Array.isArray(this.show_data.button.before)) {
|
|
65
|
-
for (let i = 0; i < this.show_data.button.before.length; i++) {
|
|
66
|
-
await this[this.show_data.button.before[i]]()
|
|
67
|
-
}
|
|
68
|
-
} else {
|
|
69
|
-
await this[this.show_data.button.before]();
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
// 点击重置按钮就重置数据
|
|
73
|
-
if (this.show_data.button.button_name === '重置') {
|
|
74
|
-
this.$dispatch('breakControl', this.selectdata)
|
|
75
|
-
return
|
|
76
|
-
}
|
|
77
|
-
this.show_data.user = Vue.user
|
|
78
|
-
// this.show_data.user = {"f_show_department_name":"","parentname":"市场部","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"客服系统","icon":"/images/lefticon/档案管理.png","hasright":false,"resourcetype":"function","parentid":"27","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"city-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"231","name":"街道管理","templatename":"functionedit","id":"230","position":"1","fullname":"资源管理.功能模块.客服系统.档案管理.街道管理","fullid":"3.21.27.212.230","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"area-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"219","name":"小区管理","templatename":"functionedit","id":"218","position":"3","fullname":"资源管理.功能模块.客服系统.档案管理.小区管理","fullid":"3.21.27.212.218","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"address-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"33664","name":"地址管理","templatename":"functionedit","id":"33663","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.地址管理","fullid":"3.21.27.212.33663","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"file-user-files","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"237","name":"用户档案","templatename":"functionedit","id":"236","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.用户档案","fullid":"3.21.27.212.236","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"档案管理","link":"file-user-files-new","hasright":true,"resourcetype":"function","parentid":"212","f_parentname":"档案管理","children":[],"selfid":"39450","name":"预备户管理","templatename":"functionedit","id":"39449","position":"6","fullname":"资源管理.功能模块.客服系统.档案管理.预备户管理","fullid":"3.21.27.212.39449","tablename":"t_function"}],"selfid":"213","name":"档案管理","templatename":"functionedit","id":"212","position":"2","fullname":"资源管理.功能模块.客服系统.档案管理","fullid":"3.21.27.212","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":true,"resourcetype":"function","parentid":"27","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34680","name":"功能业务","templatename":"functionedit","id":"34679","position":"1","fullname":"资源管理.功能模块.客服系统.报建业务.功能业务","fullid":"3.21.27.34673.34679","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34686","name":"流程业务","templatename":"functionedit","id":"34685","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.流程业务","fullid":"3.21.27.34673.34685","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34692","name":"流程监控","templatename":"functionedit","id":"34691","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.21.27.34673.34691","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"apply-charge-search","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34698","name":"收费明细","templatename":"functionedit","id":"34697","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.收费明细","fullid":"3.21.27.34673.34697","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"order-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34704","name":"预约申请","templatename":"functionedit","id":"34703","position":"5","fullname":"资源管理.功能模块.客服系统.报建业务.预约申请","fullid":"3.21.27.34673.34703","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"stop-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34710","name":"终止报建","templatename":"functionedit","id":"34709","position":"6","fullname":"资源管理.功能模块.客服系统.报建业务.终止报建","fullid":"3.21.27.34673.34709","tablename":"t_function"}],"selfid":"34674","name":"报建业务","templatename":"functionedit","id":"34673","position":"12","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.21.27.34673","tablename":"t_function"}],"qrcode":"/rs/user/getQRcode?QRCODE=12b2-1631604191812-03447","rolesnames":"营业厅报装,市场部报装,设计部报装,工程部报装,运营部报装,财务部报装,角色监控","roles":"51383,51485,51707,51767,51833,51905,52289","f_sex":"男","f_icon":"tree_user","fullnames":"河南亿星集团实业有限公司.周口市天然气有限公司.市场部.报建测试","dir":"ZhouKou","userid":"12b2-1631604191812-03447","accesstime":"1632214307117","parentid":"46545","f_show_rolestr":"","fullids":"30463.10101.46545.51953.","number":"10101","f_dep_id":"1010101201","f_idnumber":null,"selfid":"51954","templatename":"useredit","logindate":"2021-09-14 18:46:54","id":"51953","state":"在职","tablename":"t_user","deptype":"部门","depids":"46545","loginid":"15","imgid":null,"f_user_telephone":null,"rolestr":"营业厅报装,市场部报装,设计部报装,工程部报装,运营部报装,财务部报装,角色监控","deps":"市场部","loginnum":"0","f_age":null,"resourcetype":"user","orgid":"10101","f_department_name":"周口市场部","ename":"bjcs","deleted":"false","entitytype":"t_user","f_description":null,"loginip":"192.168.66.37","name":"报建测试","position":"1","orgs":"周口市天然气有限公司","haslicense":true,"f_role_name":"营业厅报装 市场部报装 设计部报装 工程部报装 运营部报装 财务部报装 角色监控 ","f_allArea":[],"f_gasman":[{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15294978548","rolestr":"抄表员","resourcetype":"user","userid":"100814","parentid":"46581","f_department_name":"周口客服部","ename":"100814","password":"1","deleted":"false","entitytype":"t_user","selfid":"100814","name":"高雪荣","templatename":"useredit","id":"100814","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"qrcode":"/rs/user/getQRcode?QRCODE=004","roles":"51959","f_sex":"男","f_icon":"tree_user","userid":"004","accesstime":"1631765198067","parentid":"46581","password":"1","selfid":"59044","templatename":"useredit","id":"59043","state":"在职","tablename":"t_user","loginid":"15","rolestr":"抄表员","resourcetype":"user","f_department_name":"周口客服部","ename":"cbcs","deleted":"false","entitytype":"t_user","loginip":"10.10.10.1","name":"抄表测试","position":"23","haslicense":"true","f_role_name":"抄表员 "},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18538602709","rolestr":"抄表员","resourcetype":"user","userid":"100462","parentid":"46581","f_department_name":"周口客服部","ename":"100462","password":"1","deleted":"false","entitytype":"t_user","selfid":"100462","name":"刘林静","templatename":"useredit","id":"100462","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18839409830","rolestr":"抄表员","resourcetype":"user","userid":"100528","parentid":"46581","f_department_name":"周口客服部","ename":"100528","password":"1","deleted":"false","entitytype":"t_user","selfid":"100528","name":"秦春梅","templatename":"useredit","id":"100528","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13243376616","rolestr":"抄表员","resourcetype":"user","userid":"102935","parentid":"46581","f_department_name":"周口客服部","ename":"102935","password":"1","deleted":"false","entitytype":"t_user","selfid":"102935","name":"石磊","templatename":"useredit","id":"102935","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18538602706","rolestr":"抄表员","resourcetype":"user","userid":"100818","parentid":"46581","f_department_name":"周口客服部","ename":"100818","password":"1","deleted":"false","entitytype":"t_user","selfid":"100818","name":"白静","templatename":"useredit","id":"100818","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15294991670","rolestr":"抄表员","resourcetype":"user","userid":"102934","parentid":"46581","f_department_name":"周口客服部","ename":"102934","password":"1","deleted":"false","entitytype":"t_user","selfid":"102934","name":"郭新胜","templatename":"useredit","id":"102934","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15036438918","rolestr":"抄表员","resourcetype":"user","userid":"103392","accesstime":"1631757950369","parentid":"46581","f_department_name":"周口客服部","ename":"103392","password":"1","deleted":"false","entitytype":"t_user","loginip":"10.10.10.1","selfid":"103392","name":"牛永胜","templatename":"useredit","id":"103392","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13592232789","rolestr":"抄表员","resourcetype":"user","userid":"100337","parentid":"46581","f_department_name":"周口客服部","ename":"100337","password":"1","deleted":"false","entitytype":"t_user","selfid":"100337","name":"王雪丽","templatename":"useredit","id":"100337","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"17796528119","rolestr":"抄表员","resourcetype":"user","userid":"101021","parentid":"46581","f_department_name":"周口客服部","ename":"101021","password":"1","deleted":"false","entitytype":"t_user","selfid":"101021","name":"张书荣","templatename":"useredit","id":"101021","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18839409832","rolestr":"抄表员","resourcetype":"user","userid":"100330","parentid":"46581","f_department_name":"周口客服部","ename":"100330","password":"1","deleted":"false","entitytype":"t_user","selfid":"100330","name":"武文平","templatename":"useredit","id":"100330","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13839441227","rolestr":"抄表员","resourcetype":"user","userid":"100871","parentid":"46581","f_department_name":"周口客服部","ename":"100871","password":"1","deleted":"false","entitytype":"t_user","selfid":"100871","name":"李明磊","templatename":"useredit","id":"100871","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"}],"lics":[]}
|
|
79
|
-
this.show_data.start_activity = this.json_datas.start_activity
|
|
80
|
-
this.show_data.xmlfilename = this.json_datas.workflow_xmlfilename
|
|
81
|
-
|
|
82
|
-
console.log("查看报警器材料1---------")
|
|
83
|
-
if ((this.show_data.f_apply_type === '报警器报建' || this.show_data.f_apply_type === '工商业报警器报建') && this.show_data.defname === '工程施工' && this.show_data.f_sub_state !='完工' && this.show_data.button.button_name === '完工'){
|
|
84
|
-
console.log("查看报警器材料2---------")
|
|
85
|
-
//判断是否添加报警器材料
|
|
86
|
-
let bjqlag = false
|
|
87
|
-
let datatemp = {
|
|
88
|
-
'bjqid':"",
|
|
89
|
-
'fprocessid':"",
|
|
90
|
-
'sqvalue':"",
|
|
91
|
-
'f_bjq_sid':"",
|
|
92
|
-
'f_material_code':""
|
|
93
|
-
}
|
|
94
|
-
let bjqststedata = {
|
|
95
|
-
"sid":"",
|
|
96
|
-
"bjqtype":"",
|
|
97
|
-
"f_process_id":"",
|
|
98
|
-
"bjqstate":"",
|
|
99
|
-
"f_userinfo_code":""
|
|
100
|
-
}
|
|
101
|
-
let numOne = [];
|
|
102
|
-
console.log("查看报警器材料3---------",this.show_data)
|
|
103
|
-
console.log("查看报警器材料4---------",this.show_data.onetomany)
|
|
104
|
-
|
|
105
|
-
let http = new HttpResetClass()
|
|
106
|
-
let data = {
|
|
107
|
-
tablename: `t_material_apply`,
|
|
108
|
-
condition: `f_process_id='${this.show_data.f_process_id}'`
|
|
109
|
-
}
|
|
110
|
-
let res = await http.load(
|
|
111
|
-
'POST',
|
|
112
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable?aaa=123`,
|
|
113
|
-
{data: data},
|
|
114
|
-
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
115
|
-
)
|
|
116
|
-
res.data.forEach(item => {
|
|
117
|
-
if (item.f_material_name.substr(0,3) === '报警器'){
|
|
118
|
-
var bjname = item.f_material_name.split("-")
|
|
119
|
-
bjqststedata.sid = item.f_bjq_sid
|
|
120
|
-
bjqststedata.f_process_id = item.f_process_id
|
|
121
|
-
bjqststedata.bjqtype = bjname[1]
|
|
122
|
-
//====================================
|
|
123
|
-
bjqlag = true
|
|
124
|
-
datatemp.bjqid = item.id
|
|
125
|
-
datatemp.fprocessid = item.f_process_id
|
|
126
|
-
datatemp.f_bjq_sid = item.f_bjq_sid
|
|
127
|
-
datatemp.f_material_code = item.f_material_code
|
|
128
|
-
datatemp.f_bjq_lng = item.f_bjq_lng
|
|
129
|
-
datatemp.f_bjq_lat = item.f_bjq_lat
|
|
130
|
-
datatemp.f_bjq_gaode_lng = item.f_bjq_gaode_lng
|
|
131
|
-
datatemp.f_bjq_gaode_lat = item.f_bjq_gaode_lng
|
|
132
|
-
datatemp.f_bjq_baidu_lng = item.f_bjq_baidu_lng
|
|
133
|
-
datatemp.f_bjq_baidu_lat = item.f_bjq_baidu_lat
|
|
134
|
-
numOne.push(item.f_bjq_sid)
|
|
135
|
-
}
|
|
136
|
-
})
|
|
137
|
-
// this.show_data.onetomany.forEach(item=>{
|
|
138
|
-
// console.log("查看报警器材料",item)
|
|
139
|
-
// item.rows.forEach(i=>{
|
|
140
|
-
// if (i.f_material_name.substr(0,3) === '报警器'){
|
|
141
|
-
// var bjname = i.f_material_name.split("-")
|
|
142
|
-
// bjqststedata.sid = i.f_bjq_sid
|
|
143
|
-
// bjqststedata.f_process_id = i.f_process_id
|
|
144
|
-
// bjqststedata.bjqtype = bjname[1]
|
|
145
|
-
// //====================================
|
|
146
|
-
// bjqlag = true
|
|
147
|
-
// datatemp.bjqid = i.id
|
|
148
|
-
// datatemp.fprocessid = i.f_process_id
|
|
149
|
-
// datatemp.f_bjq_sid = i.f_bjq_sid
|
|
150
|
-
// datatemp.f_material_code = i.f_material_code
|
|
151
|
-
// datatemp.f_bjq_lng = i.f_bjq_lng
|
|
152
|
-
// datatemp.f_bjq_lat = i.f_bjq_lat
|
|
153
|
-
// datatemp.f_bjq_gaode_lng = i.f_bjq_gaode_lng
|
|
154
|
-
// datatemp.f_bjq_gaode_lat = i.f_bjq_gaode_lng
|
|
155
|
-
// datatemp.f_bjq_baidu_lng = i.f_bjq_baidu_lng
|
|
156
|
-
// datatemp.f_bjq_baidu_lat = i.f_bjq_baidu_lat
|
|
157
|
-
// numOne.push(i.f_bjq_sid)
|
|
158
|
-
// }
|
|
159
|
-
// })
|
|
160
|
-
// })
|
|
161
|
-
if (!bjqlag){
|
|
162
|
-
this.$showMessage('请添加报警器物料信息!!!')
|
|
163
|
-
return
|
|
164
|
-
}
|
|
165
|
-
if (numOne.length > 1){
|
|
166
|
-
this.$showMessage("暂时支持单个报警器物料安装!!!")
|
|
167
|
-
return
|
|
168
|
-
}
|
|
169
|
-
datatemp.sqvalue = this.show_data.areaData.sqvalue
|
|
170
|
-
|
|
171
|
-
bjqststedata.f_userinfo_code = this.show_data.f_userinfo_code
|
|
172
|
-
//判断是否推送 及推送的状态
|
|
173
|
-
//查询是否存在, 以型号及厂家判断
|
|
174
|
-
let bjqres = await this.$resetpost(
|
|
175
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/getbjqsyncinfo`,
|
|
176
|
-
bjqststedata
|
|
177
|
-
)
|
|
178
|
-
if (bjqres.data.bjqstate != "成功"){
|
|
179
|
-
//区域地址存入材料记录表
|
|
180
|
-
let areares = await this.$resetpost(
|
|
181
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/saveArea`,
|
|
182
|
-
// `rs/logic/saveArea`,
|
|
183
|
-
{data: datatemp},
|
|
184
|
-
{resolveMsg: null, rejectMsg: '区域地址保存失败'}
|
|
185
|
-
)
|
|
186
|
-
|
|
187
|
-
// 完工之后推送数据到汉威
|
|
188
|
-
let adddata = {
|
|
189
|
-
f_bjq_sid : datatemp.f_bjq_sid,
|
|
190
|
-
f_material_code : datatemp.f_material_code,
|
|
191
|
-
f_bjq_lng : datatemp.f_bjq_lng,
|
|
192
|
-
f_bjq_lat : datatemp.f_bjq_lat,
|
|
193
|
-
f_orgid : this.show_data.f_orgid,
|
|
194
|
-
f_bjq_address: this.show_data.areaData.sqvalue,
|
|
195
|
-
f_user_name: this.show_data.f_user_name,
|
|
196
|
-
f_address: this.show_data.f_address,
|
|
197
|
-
f_user_phone: this.show_data.f_phone,
|
|
198
|
-
f_userinfo_code: this.show_data.f_userinfo_code,
|
|
199
|
-
installtime: this.show_data.f_construction_date,
|
|
200
|
-
}
|
|
201
|
-
let res = await this.$resetpost(
|
|
202
|
-
`${this.$androidUtil.getProxyUrl()}/ncc/rs/logic/bjqadduser`,
|
|
203
|
-
// `ncc/rs/logic/bjqadduser`,
|
|
204
|
-
// `${this.$androidUtil.getProxyUrl()}/rs/logic/bjqadduser`,
|
|
205
|
-
adddata
|
|
206
|
-
)
|
|
207
|
-
if (res.data.code != 200){
|
|
208
|
-
if (bjqres.data.bjqstate.length == 0){
|
|
209
|
-
bjqststedata.bjqstate = "失败"
|
|
210
|
-
let bjqres3 = await this.$resetpost(
|
|
211
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/addbjqsyncinfo`,
|
|
212
|
-
bjqststedata
|
|
213
|
-
)
|
|
214
|
-
}
|
|
215
|
-
this.$showMessage(res.data.msg)
|
|
216
|
-
return
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
//更改记录表状态
|
|
220
|
-
if (bjqres.data.bjqstate === "失败"){
|
|
221
|
-
bjqststedata.bjqstate = "成功"
|
|
222
|
-
let bjqres1 = await this.$resetpost(
|
|
223
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/updatebjqsyncinfo`,
|
|
224
|
-
bjqststedata
|
|
225
|
-
)
|
|
226
|
-
}else{
|
|
227
|
-
bjqststedata.bjqstate = "成功"
|
|
228
|
-
let bjqres2 = await this.$resetpost(
|
|
229
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/addbjqsyncinfo`,
|
|
230
|
-
bjqststedata
|
|
231
|
-
)
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && (this.show_data.button.button_name === '提交'||this.show_data.button.button_name === '保存')){
|
|
236
|
-
let dataz = {
|
|
237
|
-
condition: `u.id = ${this.show_data.id}`,
|
|
238
|
-
data: {
|
|
239
|
-
id: Vue.user.id,
|
|
240
|
-
orgid: Vue.user.orgid
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
let http = new HttpResetClass()
|
|
244
|
-
let restpz = await http.load(
|
|
245
|
-
'POST',
|
|
246
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
|
|
247
|
-
{data: dataz},
|
|
248
|
-
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
249
|
-
)
|
|
250
|
-
this.show_data.actid=restpz.data[0].actid
|
|
251
|
-
}
|
|
252
|
-
if(this.show_data.button.button_name != '返回'){
|
|
253
|
-
this.excessive=true
|
|
254
|
-
let res = await this.$resetpost(
|
|
255
|
-
// `rs/logic/ApplyProductService`,
|
|
256
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyProductService`,
|
|
257
|
-
{data: this.show_data},
|
|
258
|
-
{resolveMsg: null, rejectMsg: '数据保存失败'}
|
|
259
|
-
)
|
|
260
|
-
this.excessive=false
|
|
261
|
-
if (this.show_data.button.after) {
|
|
262
|
-
this[this.show_data.button.after]()
|
|
263
|
-
}
|
|
264
|
-
}else {
|
|
265
|
-
if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' ){
|
|
266
|
-
if (this.show_data.button.after) {
|
|
267
|
-
this[this.show_data.button.after]()
|
|
268
|
-
}
|
|
269
|
-
this.$dispatch('confirm')
|
|
270
|
-
this.$dispatch('confirm')
|
|
271
|
-
}else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '工程派工'){
|
|
272
|
-
if (this.show_data.button.after) {
|
|
273
|
-
this[this.show_data.button.after]()
|
|
274
|
-
}
|
|
275
|
-
this.$dispatch('confirm')
|
|
276
|
-
this.$dispatch('confirm')
|
|
277
|
-
this.$dispatch('confirm')
|
|
278
|
-
}else{
|
|
279
|
-
if (this.show_data.button.after) {
|
|
280
|
-
this[this.show_data.button.after]()
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
this.$dispatch('confirm')
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
// 返回上层
|
|
289
|
-
if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '合同'){
|
|
290
|
-
this.excessive=true
|
|
291
|
-
let data = {
|
|
292
|
-
tablename: 't_apply',
|
|
293
|
-
condition: `f_process_id='${this.show_data.f_process_id}'`
|
|
294
|
-
}
|
|
295
|
-
let http = new HttpResetClass()
|
|
296
|
-
let restp = await http.load(
|
|
297
|
-
'POST',
|
|
298
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
299
|
-
{data: data},
|
|
300
|
-
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
301
|
-
)
|
|
302
|
-
restp.data[0].processname = '散户报建流程'
|
|
303
|
-
restp.data[0].defname = '合同签订'
|
|
304
|
-
let _this = this
|
|
305
|
-
this.$dispatch('gotoson', {
|
|
306
|
-
_this: _this,
|
|
307
|
-
title: restp.data[0].defname,
|
|
308
|
-
safe: true
|
|
309
|
-
})
|
|
310
|
-
this.$goto('app-service-control', {selectdata: restp.data[0]}, 'self')
|
|
311
|
-
this.excessive=false
|
|
312
|
-
|
|
313
|
-
} else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
|
|
314
|
-
this.excessive=true
|
|
315
|
-
let data2 = {
|
|
316
|
-
condition: `u.id = ${this.show_data.id}`,
|
|
317
|
-
data: {
|
|
318
|
-
id: Vue.user.id,
|
|
319
|
-
orgid: Vue.user.orgid
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
let http = new HttpResetClass()
|
|
323
|
-
let restp1 = await http.load(
|
|
324
|
-
'POST',
|
|
325
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
|
|
326
|
-
{data: data2},
|
|
327
|
-
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
328
|
-
)
|
|
329
|
-
console.log('打印查询的内容',restp1)
|
|
330
|
-
// restp1.data[0].processname = '散户报建流程'
|
|
331
|
-
// restp1.data[0].defname = '报装缴费'
|
|
332
|
-
|
|
333
|
-
let _this = this
|
|
334
|
-
this.$dispatch('gotoson', {
|
|
335
|
-
_this: _this,
|
|
336
|
-
title: restp1.data[0].defname,
|
|
337
|
-
safe: true
|
|
338
|
-
})
|
|
339
|
-
this.$goto('app-service-control', {selectdata: restp1.data[0]}, 'self')
|
|
340
|
-
this.excessive=false
|
|
341
|
-
}else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' && this.show_data.button.button_name === '提交'){
|
|
342
|
-
this.excessive=true
|
|
343
|
-
let data3 = {
|
|
344
|
-
condition: `u.id = ${this.show_data.id}`,
|
|
345
|
-
data: {
|
|
346
|
-
id: Vue.user.id,
|
|
347
|
-
orgid: Vue.user.orgid
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
let http = new HttpResetClass()
|
|
351
|
-
let restp2 = await http.load(
|
|
352
|
-
'POST',
|
|
353
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
|
|
354
|
-
{data: data3},
|
|
355
|
-
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
356
|
-
)
|
|
357
|
-
console.log('打印查询的内容',restp2)
|
|
358
|
-
debugger
|
|
359
|
-
if(restp2.length>0){
|
|
360
|
-
let _this = this
|
|
361
|
-
this.$dispatch('gotoson', {
|
|
362
|
-
_this: _this,
|
|
363
|
-
title: restp2.data[0].defname,
|
|
364
|
-
safe: true
|
|
365
|
-
})
|
|
366
|
-
this.$goto('app-service-control', {selectdata: restp2.data[0]}, 'self')
|
|
367
|
-
this.excessive=false
|
|
368
|
-
}else{
|
|
369
|
-
this.excessive=false
|
|
370
|
-
debugger
|
|
371
|
-
this.$dispatch('confirm')
|
|
372
|
-
this.$dispatch('confirm')
|
|
373
|
-
this.$dispatch('confirm')
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
else{
|
|
377
|
-
this.excessive=false
|
|
378
|
-
// console.log('-----')
|
|
379
|
-
this.$dispatch('confirm')
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
},
|
|
384
|
-
async refurbish() {
|
|
385
|
-
let data = {
|
|
386
|
-
workname: this.selectdata.processname
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
let res = await this.$resetpost(
|
|
390
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyGetConfigs`,
|
|
391
|
-
{data: data},
|
|
392
|
-
{resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
|
|
393
|
-
)
|
|
394
|
-
|
|
395
|
-
this.json_datas = res.data
|
|
396
|
-
|
|
397
|
-
let sum = 0
|
|
398
|
-
let jsonData = {}
|
|
399
|
-
if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length === 0) {
|
|
400
|
-
this.$showMessage("网络故障,请刷新页面")
|
|
401
|
-
return
|
|
402
|
-
}
|
|
403
|
-
this.json_datas.activitys.forEach(item => {
|
|
404
|
-
if (this.selectdata.defname === item.title) {
|
|
405
|
-
jsonData = item // 拿到当前节点的json配置信息
|
|
406
|
-
sum++ // 节点名一样的个数
|
|
407
|
-
}
|
|
408
|
-
return this.selectdata.defname === item.title // 拿到当前节点的json配置信息
|
|
409
|
-
})
|
|
410
|
-
|
|
411
|
-
if (sum === 0) {
|
|
412
|
-
this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
|
|
413
|
-
return
|
|
414
|
-
}
|
|
415
|
-
if (sum > 1) {
|
|
416
|
-
this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
|
|
417
|
-
return
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
this.selectdata = Object.assign({}, this.selectdata, jsonData)
|
|
421
|
-
|
|
422
|
-
// fields 字段填充值
|
|
423
|
-
for (const item of this.selectdata.fields) {
|
|
424
|
-
if (!item.value) {
|
|
425
|
-
item.value = null
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
if (!item.value && (item.default || item.default === 0) && item.type !== 'datepicker') {
|
|
429
|
-
if (item.eval) {
|
|
430
|
-
let user = Vue.user
|
|
431
|
-
// 将PC用户信息 替换成 APP的
|
|
432
|
-
item.value = eval(item.default.replace('this.$login.f', 'user'))
|
|
433
|
-
} else {
|
|
434
|
-
item.value = item.default
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
if (this.selectdata[item.field]) {
|
|
439
|
-
// 将json字符串格式化赋值给value
|
|
440
|
-
if (String(this.selectdata[item.field]).startsWith("{")) {
|
|
441
|
-
item.value = JSON.parse(this.selectdata[item.field])
|
|
442
|
-
} else {
|
|
443
|
-
item.value = this.selectdata[item.field]
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
if (this.selectdata[item.field] === 0) {
|
|
447
|
-
item.value = 0
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
// datepicker
|
|
451
|
-
if (item.type === 'datepicker' && !item.value && item.default) {
|
|
452
|
-
item.value = new Date().Format(`${item.format ? item.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
// 如果配置类型为select,优先从参数列表获取options
|
|
456
|
-
if (item.type === 'select' || item.type === 'checkbox') {
|
|
457
|
-
if (item.param) {
|
|
458
|
-
let temp = this.$appdata.getParam(item.label)
|
|
459
|
-
|
|
460
|
-
if (temp && temp.length > 0) {
|
|
461
|
-
item.options = temp
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
if (item.paramLabel) {
|
|
465
|
-
temp = this.$appdata.getParam(item.paramLabel)
|
|
466
|
-
if (temp && temp.length > 0) {
|
|
467
|
-
item.options = temp
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
console.log("item.ready"+item.ready)
|
|
472
|
-
if (item.ready) {
|
|
473
|
-
item.options = await this[item.ready]()
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
if (item.type === 'checkbox') {
|
|
479
|
-
if (this.selectdata[item.field]) {
|
|
480
|
-
item.value = JSON.parse(this.selectdata[item.field])
|
|
481
|
-
} else {
|
|
482
|
-
item.value = []
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
// 控制组件
|
|
488
|
-
if (this.selectdata.components) {
|
|
489
|
-
this.selectdata.components.forEach(item => {
|
|
490
|
-
if (!item.mark) {
|
|
491
|
-
item.mark = 0
|
|
492
|
-
}
|
|
493
|
-
})
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
// 初始化onetomany
|
|
497
|
-
if (this.selectdata.onetomany) {
|
|
498
|
-
for (const item of this.selectdata.onetomany) {
|
|
499
|
-
let res = null
|
|
500
|
-
if (item.queryEvent) {
|
|
501
|
-
res = this[item.queryEvent]()
|
|
502
|
-
} else {
|
|
503
|
-
let http = new HttpResetClass()
|
|
504
|
-
let data = {
|
|
505
|
-
tablename: item.tables[0],
|
|
506
|
-
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
507
|
-
}
|
|
508
|
-
res = await http.load(
|
|
509
|
-
'POST',
|
|
510
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
511
|
-
// `rs/sql/apply_singleTable`,
|
|
512
|
-
{data: data},
|
|
513
|
-
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
514
|
-
)
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
item.rows = res.data
|
|
518
|
-
|
|
519
|
-
// 初始化onetomany中的fields
|
|
520
|
-
for (const field of item.fields) {
|
|
521
|
-
if (!field.value) {
|
|
522
|
-
if (field.value !== 0) {
|
|
523
|
-
field.value = null
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
if (field.default || field.default === 0) {
|
|
528
|
-
field.value = field.default
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
// datepicker
|
|
532
|
-
if (field.type === 'datepicker' && !field.value && field.default) {
|
|
533
|
-
field.value = new Date().Format(`${field.format ? field.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
if (field.type === 'select') {
|
|
537
|
-
|
|
538
|
-
if (field.param) {
|
|
539
|
-
let temp = this.$appdata.getParam(field.label)
|
|
540
|
-
|
|
541
|
-
if (temp && temp.length > 0) {
|
|
542
|
-
field.options = temp
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
if (field.paramLabel) {
|
|
546
|
-
temp = this.$appdata.getParam(field.paramLabel)
|
|
547
|
-
if (temp && temp.length > 0) {
|
|
548
|
-
item.options = temp
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
// 初始化 buttons_fields
|
|
559
|
-
for (const item of this.selectdata.buttons) {
|
|
560
|
-
if (item.button_name === '下发') {
|
|
561
|
-
let data = {
|
|
562
|
-
source: item.source,
|
|
563
|
-
userid: Vue.user.id
|
|
564
|
-
// userid: '51953'
|
|
565
|
-
}
|
|
566
|
-
if (item.sourceMethod) {
|
|
567
|
-
data.source = this[item.sourceMethod]()
|
|
568
|
-
}
|
|
569
|
-
if (!data.source) {
|
|
570
|
-
this.$showMessage("请配置获取人员表达式")
|
|
571
|
-
return
|
|
572
|
-
}
|
|
573
|
-
let res = await this.$resetpost(
|
|
574
|
-
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
575
|
-
// `rs/search`,
|
|
576
|
-
{data: data},
|
|
577
|
-
{resolveMsg: null, rejectMsg: '下发人员查询失败!!!'}
|
|
578
|
-
)
|
|
579
|
-
|
|
580
|
-
let options = res.data.map(source => {
|
|
581
|
-
return {
|
|
582
|
-
"label": source.name,
|
|
583
|
-
"value": source.id
|
|
584
|
-
}
|
|
585
|
-
})
|
|
586
|
-
|
|
587
|
-
if (item.button_fields.length !== 1) {
|
|
588
|
-
this.$showMessage("下发有且只能有一个字段!!!")
|
|
589
|
-
return
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
item.button_fields[0].options = options
|
|
593
|
-
}
|
|
594
|
-
if (item.button_fields) {
|
|
595
|
-
item.button_fields.forEach(x => {
|
|
596
|
-
// 如果配置类型为select,优先从参数列表获取options
|
|
597
|
-
if (x.type === 'select') {
|
|
598
|
-
|
|
599
|
-
if (x.param) {
|
|
600
|
-
let temp = this.$appdata.getParam(x.label)
|
|
601
|
-
|
|
602
|
-
if (temp && temp.length > 0) {
|
|
603
|
-
x.options = temp
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
if (x.paramLabel) {
|
|
607
|
-
temp = this.$appdata.getParam(x.paramLabel)
|
|
608
|
-
if (temp && temp.length > 0) {
|
|
609
|
-
x.options = temp
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
}
|
|
615
|
-
})
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
// 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
|
|
619
|
-
let temp = JSON.parse(JSON.stringify(this.selectdata))
|
|
620
|
-
this.show_data = temp
|
|
621
|
-
for (const item of this.show_data.fields) {
|
|
622
|
-
if(item.label=='气价名称' && !isEmpty(this.show_data.f_price_name)){
|
|
623
|
-
item.options.forEach(x=>{
|
|
624
|
-
if(x.label==this.show_data.f_price_name){
|
|
625
|
-
item.value=x.value
|
|
626
|
-
}
|
|
627
|
-
})
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
if(!this.show_data.showfei){
|
|
631
|
-
this.$set('show_data.showfei', '未收费')
|
|
632
|
-
}
|
|
633
|
-
//this.show_data.showfei=false
|
|
634
|
-
|
|
635
|
-
this.$nextTick(() => {
|
|
636
|
-
this.showview = true
|
|
637
|
-
})
|
|
638
|
-
},
|
|
639
|
-
signClean () {
|
|
640
|
-
this.selectdata.f_construction_sign = null
|
|
641
|
-
},
|
|
642
|
-
signSuccess (fileUrl) {
|
|
643
|
-
console.log('==============签字回调==================')
|
|
644
|
-
console.log(fileUrl)
|
|
645
|
-
this.selectdata.f_construction_sign = fileUrl
|
|
646
|
-
},
|
|
647
|
-
// 金额转大写
|
|
648
|
-
smalltoBIG(n) {
|
|
649
|
-
let fraction = ['角', '分'];
|
|
650
|
-
let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
|
|
651
|
-
let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
|
|
652
|
-
let head = n < 0 ? '欠' : '';
|
|
653
|
-
n = Math.abs(n);
|
|
654
|
-
|
|
655
|
-
let s = '';
|
|
656
|
-
|
|
657
|
-
for (var i = 0; i < fraction.length; i++) {
|
|
658
|
-
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
|
|
659
|
-
}
|
|
660
|
-
s = s || '整';
|
|
661
|
-
n = Math.floor(n);
|
|
662
|
-
|
|
663
|
-
for (var i = 0; i < unit[0].length && n > 0; i++) {
|
|
664
|
-
let p = '';
|
|
665
|
-
for (var j = 0; j < unit[1].length && n > 0; j++) {
|
|
666
|
-
p = digit[n % 10] + unit[1][j] + p;
|
|
667
|
-
n = Math.floor(n / 10);
|
|
668
|
-
}
|
|
669
|
-
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
|
|
670
|
-
}
|
|
671
|
-
return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
|
|
672
|
-
},
|
|
673
|
-
getLableValue(label) {
|
|
674
|
-
for (const item of this.show_data.fields) {
|
|
675
|
-
if (item.label === label && item.type !== 'number') {
|
|
676
|
-
return item.value || ''
|
|
677
|
-
}
|
|
678
|
-
if (item.label === label && item.type === 'number') {
|
|
679
|
-
return item.value || 0
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
},
|
|
683
|
-
getLableOptions(label) {
|
|
684
|
-
for (const item of this.show_data.fields) {
|
|
685
|
-
if (item.label === label) {
|
|
686
|
-
return item.options
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
},
|
|
690
|
-
hideLabels(...labels) {
|
|
691
|
-
for (const item of this.show_data.fields) {
|
|
692
|
-
if (labels.includes(item.label)) {
|
|
693
|
-
item.hidden = true
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
},
|
|
697
|
-
requiredLabels(...labels) {
|
|
698
|
-
for (const item of this.show_data.fields) {
|
|
699
|
-
if (labels.includes(item.label)) {
|
|
700
|
-
item.required = true
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
},
|
|
704
|
-
electiveLabels(...labels) {
|
|
705
|
-
for (const item of this.show_data.fields) {
|
|
706
|
-
if (labels.includes(item.label)) {
|
|
707
|
-
item.required = false
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
},
|
|
711
|
-
showLabels(...labels) {
|
|
712
|
-
for (const item of this.show_data.fields) {
|
|
713
|
-
if (labels.includes(item.label)) {
|
|
714
|
-
item.hidden = false
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
},
|
|
718
|
-
setLabelValue(label, value) {
|
|
719
|
-
for (const item of this.show_data.fields) {
|
|
720
|
-
if (item.label === label) {
|
|
721
|
-
item.value = value
|
|
722
|
-
this.show_data[item.field] = value
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
},
|
|
726
|
-
setLabelOptions(label, options) {
|
|
727
|
-
for (const item of this.show_data.fields) {
|
|
728
|
-
if (item.label === label) {
|
|
729
|
-
item.options = options
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
},
|
|
733
|
-
disabledButtons(...buttons) {
|
|
734
|
-
for (const item of this.show_data.buttons) {
|
|
735
|
-
if (buttons.includes(item.button_name)) {
|
|
736
|
-
item.disabled = true
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
},
|
|
740
|
-
enableButtons(...buttons) {
|
|
741
|
-
for (const item of this.show_data.buttons) {
|
|
742
|
-
if (buttons.includes(item.button_name)) {
|
|
743
|
-
item.disabled = false
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
},
|
|
747
|
-
showButtons(...buttons) {
|
|
748
|
-
for (const item of this.show_data.buttons) {
|
|
749
|
-
if (buttons.includes(item.button_name)) {
|
|
750
|
-
item.hidden = false
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
},
|
|
754
|
-
hideButtons(...buttons) {
|
|
755
|
-
for (const item of this.show_data.buttons) {
|
|
756
|
-
if (buttons.includes(item.button_name)) {
|
|
757
|
-
item.hidden = true
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
},
|
|
761
|
-
async streetChange () {
|
|
762
|
-
if (isEmpty(this.show_data.f_street)) {
|
|
763
|
-
return
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
let data = {
|
|
767
|
-
tablename: 't_area',
|
|
768
|
-
// condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.show_data.f_street}'`
|
|
769
|
-
condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}'`
|
|
770
|
-
}
|
|
771
|
-
let http = new HttpResetClass()
|
|
772
|
-
let res = await http.load(
|
|
773
|
-
'POST',
|
|
774
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
775
|
-
{data: data},
|
|
776
|
-
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
777
|
-
)
|
|
778
|
-
|
|
779
|
-
this.setLabelOptions('集收单位', res.data.map(item => {
|
|
780
|
-
return {
|
|
781
|
-
label: item.f_residential_area,
|
|
782
|
-
value: item.f_residential_area
|
|
783
|
-
}
|
|
784
|
-
}))
|
|
785
|
-
},
|
|
786
|
-
async areaChange () {
|
|
787
|
-
if (isEmpty(this.show_data.f_residential_area)) {
|
|
788
|
-
return
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
let data = {
|
|
792
|
-
tablename: 't_area',
|
|
793
|
-
condition: `f_filialeid = '${this.$login.f.orgid}' and f_residential_area = '${this.show_data.f_residential_area}'`
|
|
794
|
-
}
|
|
795
|
-
let http = new HttpResetClass()
|
|
796
|
-
let res = await http.load(
|
|
797
|
-
'POST',
|
|
798
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
799
|
-
{data: data},
|
|
800
|
-
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
801
|
-
)
|
|
802
|
-
if(res.data.length>0){
|
|
803
|
-
this.setLabelValue('街道/乡镇', res.data[0].f_street)
|
|
804
|
-
this.setLabelValue('区/县', res.data[0].f_pcd)
|
|
805
|
-
this.setLabelValue('片区', res.data[0].f_slice_area)
|
|
806
|
-
}
|
|
807
|
-
},
|
|
808
|
-
// 获取集收单位
|
|
809
|
-
async getArea () {
|
|
810
|
-
let data = {
|
|
811
|
-
tablename: 't_area',
|
|
812
|
-
condition: `f_filialeid = '${Vue.user.orgid}'`
|
|
813
|
-
}
|
|
814
|
-
let http = new HttpResetClass()
|
|
815
|
-
let res = await http.load(
|
|
816
|
-
'POST',
|
|
817
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
818
|
-
{data: data},
|
|
819
|
-
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
820
|
-
)
|
|
821
|
-
|
|
822
|
-
return res.data.map(item => {
|
|
823
|
-
return {
|
|
824
|
-
label: item.f_residential_area,
|
|
825
|
-
value: item.f_residential_area
|
|
826
|
-
}
|
|
827
|
-
})
|
|
828
|
-
},
|
|
829
|
-
async getAreaNew () {
|
|
830
|
-
let data = {
|
|
831
|
-
tablename: 't_area',
|
|
832
|
-
condition: `f_orgid = '${this.$login.f.orgid}'`
|
|
833
|
-
}
|
|
834
|
-
let http = new HttpResetClass()
|
|
835
|
-
let res = await http.load(
|
|
836
|
-
'POST',
|
|
837
|
-
`rs/sql/apply_singleTable`,
|
|
838
|
-
{data: data},
|
|
839
|
-
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
840
|
-
)
|
|
841
|
-
let area=[]
|
|
842
|
-
for (const item of res.data) {
|
|
843
|
-
area.push({
|
|
844
|
-
label: item.f_residential_area,
|
|
845
|
-
value: item.f_residential_area
|
|
846
|
-
})
|
|
847
|
-
}
|
|
848
|
-
for (const item of this.show_data.fields) {
|
|
849
|
-
if (item.label ==='集收单位') {
|
|
850
|
-
item.options = area
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
},
|
|
854
|
-
async pcdChange () {
|
|
855
|
-
if (isEmpty(this.show_data.f_pcd)) {
|
|
856
|
-
return
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
let data = {
|
|
860
|
-
tablename: 't_street',
|
|
861
|
-
// condition: `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
|
|
862
|
-
condition: `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
|
|
863
|
-
}
|
|
864
|
-
let f_address_type = this.getLableValue('地址类型')
|
|
865
|
-
|
|
866
|
-
if (f_address_type === '民用市区') {
|
|
867
|
-
// data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
|
|
868
|
-
data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
|
|
869
|
-
}
|
|
870
|
-
if (f_address_type === '民用乡镇') {
|
|
871
|
-
// data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
|
|
872
|
-
data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
let http = new HttpResetClass()
|
|
876
|
-
let res = await http.load(
|
|
877
|
-
'POST',
|
|
878
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
879
|
-
{data: data},
|
|
880
|
-
{resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
|
|
881
|
-
)
|
|
882
|
-
|
|
883
|
-
this.setLabelOptions('街道/乡镇', res.data.map(item => {
|
|
884
|
-
return {
|
|
885
|
-
label: item.f_street,
|
|
886
|
-
value: item.f_street
|
|
887
|
-
}
|
|
888
|
-
}))
|
|
889
|
-
},
|
|
890
|
-
async addressInitialization () {
|
|
891
|
-
//this.$getConfig(this, 'UserAddress')
|
|
892
|
-
//获取地址配置文件
|
|
893
|
-
try {
|
|
894
|
-
let res = await new HttpResetClass().load('get',`${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`,null,{resolveMsg: null, rejectMsg: null})
|
|
895
|
-
Object.assign(this.config, res.data)
|
|
896
|
-
} catch (error) {
|
|
897
|
-
console.log("未获取到地址信息")
|
|
898
|
-
}
|
|
899
|
-
console.log("???????????不走了吗!")
|
|
900
|
-
let f_address_type = this.show_data.f_address_type
|
|
901
|
-
|
|
902
|
-
for (const item of this.show_data.fields) {
|
|
903
|
-
if (f_address_type === '民用市区') {
|
|
904
|
-
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
|
|
905
|
-
item.hidden = false
|
|
906
|
-
item.required = true
|
|
907
|
-
}
|
|
908
|
-
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
|
|
909
|
-
item.hidden = false
|
|
910
|
-
item.required = false
|
|
911
|
-
}
|
|
912
|
-
if (item.label === '地址') {
|
|
913
|
-
item.readonly = true
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
if (f_address_type === '民用乡镇') {
|
|
917
|
-
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
|
|
918
|
-
item.hidden = false
|
|
919
|
-
item.required = true
|
|
920
|
-
}
|
|
921
|
-
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
|
|
922
|
-
item.hidden = false
|
|
923
|
-
item.required = false
|
|
924
|
-
}
|
|
925
|
-
if (item.label === '楼层') {
|
|
926
|
-
item.hidden = true
|
|
927
|
-
item.required = false
|
|
928
|
-
}
|
|
929
|
-
if (item.label === '地址') {
|
|
930
|
-
item.readonly = true
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
if (f_address_type === '特殊地址') {
|
|
934
|
-
if (item.label === '区/县' || item.label === '街道/乡镇') {
|
|
935
|
-
item.hidden = false
|
|
936
|
-
item.required = true
|
|
937
|
-
}
|
|
938
|
-
if (item.label === '集收单位') {
|
|
939
|
-
item.hidden = false
|
|
940
|
-
item.required = false
|
|
941
|
-
}
|
|
942
|
-
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
|
|
943
|
-
item.hidden = true
|
|
944
|
-
item.required = false
|
|
945
|
-
}
|
|
946
|
-
if (item.label === '地址') {
|
|
947
|
-
item.readonly = false
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
if (this.show_data.f_apply_source === '线下发起' && item.label === '预约地址') {
|
|
952
|
-
item.hidden = true
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
},
|
|
956
|
-
|
|
957
|
-
async checkDuplicate(index) {
|
|
958
|
-
let http = new HttpResetClass()
|
|
959
|
-
let data = {
|
|
960
|
-
tablename: 't_apply',
|
|
961
|
-
condition: `${this.show_data.fields[index].field} = '${this.show_data.fields[index].value}'`
|
|
962
|
-
}
|
|
963
|
-
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
|
|
964
|
-
resolveMsg: null,
|
|
965
|
-
rejectMsg: `${this.show_data.fields[index].label}查询失败`
|
|
966
|
-
})
|
|
967
|
-
if (res.data.length > 0) {
|
|
968
|
-
this.show_data.fields[index].value = null
|
|
969
|
-
this.$showAlert(`${this.show_data.fields[index].label}已存在!!!`, 'warning', 3000)
|
|
970
|
-
}
|
|
971
|
-
},
|
|
972
|
-
async breakControl () {
|
|
973
|
-
if (this.show_data.id) {
|
|
974
|
-
let data = {
|
|
975
|
-
condition: `u.id = ${this.show_data.id}`,
|
|
976
|
-
data: {
|
|
977
|
-
id: Vue.user.id,
|
|
978
|
-
orgid: Vue.user.orgid
|
|
979
|
-
// id: '51953',
|
|
980
|
-
// orgid: '10101'
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
let res = await this.$resetpost(
|
|
984
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
|
|
985
|
-
// `rs/sql/checkuser`,
|
|
986
|
-
{data: data},
|
|
987
|
-
{resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
|
|
988
|
-
)
|
|
989
|
-
|
|
990
|
-
this.selectdata = res.data[0]
|
|
991
|
-
} else {
|
|
992
|
-
this.selectdata = servicedata
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
this.refurbish()
|
|
996
|
-
},
|
|
997
|
-
async addressTips () {
|
|
998
|
-
let res = ''
|
|
999
|
-
if (this.show_data.f_apply_type === '报警器报建' || this.show_data.f_apply_type === '工商业报警器报建') {
|
|
1000
|
-
res = await this.$showMessage('报警器报建下单后将不能修改用户信息,请确认用户信息地址等是否正确,如不完善可在档案中进行修正!!!')
|
|
1001
|
-
}else{
|
|
1002
|
-
res = await this.$showMessage('增容改管下单后将不能修改用户信息,请确认用户信息地址等是否正确,如不完善可在档案中进行修正!!!')
|
|
1003
|
-
}
|
|
1004
|
-
if (res == 'confirm') {
|
|
1005
|
-
return
|
|
1006
|
-
}
|
|
1007
|
-
throw '用户信息确认!!!'
|
|
1008
|
-
},
|
|
1009
|
-
// 缴费前置
|
|
1010
|
-
chargeBefore () {
|
|
1011
|
-
if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
|
|
1012
|
-
this.$showAlert('费用未结清!!!', 'warning', 3000)
|
|
1013
|
-
throw '费用未结清!!!'
|
|
1014
|
-
}
|
|
1015
|
-
},
|
|
1016
|
-
// 施工前置
|
|
1017
|
-
async constructionBefore () {
|
|
1018
|
-
let http = new HttpResetClass()
|
|
1019
|
-
let data = {
|
|
1020
|
-
condition: `ui.f_process_id = '${this.show_data.f_process_id}' and uf.f_meter_classify is null and f_meternumber is null`
|
|
1021
|
-
}
|
|
1022
|
-
let res = await http.load(
|
|
1023
|
-
'POST',
|
|
1024
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/countApplyUserinfo`,
|
|
1025
|
-
{data: data},
|
|
1026
|
-
{
|
|
1027
|
-
resolveMsg: null,
|
|
1028
|
-
rejectMsg: '安装明细查询失败!!!'
|
|
1029
|
-
})
|
|
1030
|
-
if (res.data[0].num > 0) {
|
|
1031
|
-
this.$showAlert(`还有${res.data[0].num}户未安装,无法提交`, 'warning', 3000)
|
|
1032
|
-
throw `还有${res.data[0].num}户未安装,无法提交`
|
|
1033
|
-
}
|
|
1034
|
-
},
|
|
1035
|
-
changePipeBuild () {
|
|
1036
|
-
if (this.selectdata.f_process_dep === '工程部') {
|
|
1037
|
-
return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
|
|
1038
|
-
}
|
|
1039
|
-
if (this.selectdata.f_process_dep === '运营部') {
|
|
1040
|
-
return 'this.getParentByType($organization$).getChildByName($运营部报装$).getChildren()'
|
|
1041
|
-
}
|
|
1042
|
-
return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
|
|
1043
|
-
},
|
|
1044
|
-
async getPrice (f_price_id) {
|
|
1045
|
-
console.log('=======================')
|
|
1046
|
-
console.log(f_price_id)
|
|
1047
|
-
|
|
1048
|
-
let data = {
|
|
1049
|
-
condition: `sp.f_filialeid = '${Vue.user.orgid}'`
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
if (!isEmpty(f_price_id)) {
|
|
1053
|
-
data.condition = `sp.f_filialeid = '${Vue.user.orgid}' and sp.f_price_id = ${f_price_id}`
|
|
1054
|
-
}
|
|
1055
|
-
let http = new HttpResetClass()
|
|
1056
|
-
let res = await http.load(
|
|
1057
|
-
'POST',
|
|
1058
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/applyGetPrice`,
|
|
1059
|
-
{data: data},
|
|
1060
|
-
{resolveMsg: null, rejectMsg: '气价查询失败!!!'}
|
|
1061
|
-
)
|
|
1062
|
-
|
|
1063
|
-
return res.data.map(item => {
|
|
1064
|
-
return {
|
|
1065
|
-
label: item.f_price_name,
|
|
1066
|
-
value: item
|
|
1067
|
-
}
|
|
1068
|
-
})
|
|
1069
|
-
},
|
|
1070
|
-
//获取抄表册
|
|
1071
|
-
async getMeterBook () {
|
|
1072
|
-
let data = {
|
|
1073
|
-
tablename: 't_meter_book',
|
|
1074
|
-
condition: `f_book_state='有效' `
|
|
1075
|
-
}
|
|
1076
|
-
let http = new HttpResetClass()
|
|
1077
|
-
let res = await http.load(
|
|
1078
|
-
'POST',
|
|
1079
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1080
|
-
{data: data},
|
|
1081
|
-
{resolveMsg: null, rejectMsg: '抄表册查询失败!!!'}
|
|
1082
|
-
)
|
|
1083
|
-
return res.data.map(item => {
|
|
1084
|
-
return {
|
|
1085
|
-
label: item.f_book_name,
|
|
1086
|
-
value: item.f_book_code
|
|
1087
|
-
}
|
|
1088
|
-
})
|
|
1089
|
-
},
|
|
1090
|
-
async getDesignerPeople () {
|
|
1091
|
-
let data = {
|
|
1092
|
-
source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
|
|
1093
|
-
userid: Vue.user.id
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
let http = new HttpResetClass()
|
|
1097
|
-
let res = await http.load(
|
|
1098
|
-
'POST',
|
|
1099
|
-
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
1100
|
-
{data: data},
|
|
1101
|
-
{resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
|
|
1102
|
-
)
|
|
1103
|
-
|
|
1104
|
-
return res.data.map(item => {
|
|
1105
|
-
return {
|
|
1106
|
-
label: item.name,
|
|
1107
|
-
value: item.id
|
|
1108
|
-
}
|
|
1109
|
-
})
|
|
1110
|
-
},
|
|
1111
|
-
async surveyStopApply () {
|
|
1112
|
-
console.log('终止报建!!!!!')
|
|
1113
|
-
|
|
1114
|
-
this.show_data.f_stop_reason = '现场勘察不符合报装条件'
|
|
1115
|
-
|
|
1116
|
-
let data = {
|
|
1117
|
-
data: this.show_data,
|
|
1118
|
-
user: Vue.user
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
let res = await this.$resetpost(
|
|
1122
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/surveyStopApply`,
|
|
1123
|
-
{data: data},
|
|
1124
|
-
{resolveMsg: null, rejectMsg: '终止报建失败!!!'}
|
|
1125
|
-
)
|
|
1126
|
-
if(res.data==200){
|
|
1127
|
-
this.$dispatch('loadPage')
|
|
1128
|
-
this.$showMessage('终止报建成功!!!')
|
|
1129
|
-
this.$back()
|
|
1130
|
-
throw '终止报建!!!'
|
|
1131
|
-
}else{
|
|
1132
|
-
this.$showMessage('终止报建失败!!!')
|
|
1133
|
-
}
|
|
1134
|
-
},
|
|
1135
|
-
async getDevInfo () {
|
|
1136
|
-
let data = {
|
|
1137
|
-
tablename: 't_dev_info',
|
|
1138
|
-
condition: `f_orgid = '${Vue.user.orgid}'`
|
|
1139
|
-
}
|
|
1140
|
-
let http = new HttpResetClass()
|
|
1141
|
-
let res = await http.load(
|
|
1142
|
-
'POST',
|
|
1143
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1144
|
-
{data: data},
|
|
1145
|
-
{resolveMsg: null, rejectMsg: '公司查询失败!!!'}
|
|
1146
|
-
)
|
|
1147
|
-
|
|
1148
|
-
return res.data.map(item => {
|
|
1149
|
-
return {
|
|
1150
|
-
label: item.f_dev_name,
|
|
1151
|
-
value: item.f_dev_name
|
|
1152
|
-
}
|
|
1153
|
-
})
|
|
1154
|
-
},
|
|
1155
|
-
// 获取片区
|
|
1156
|
-
async getSliceArea () {
|
|
1157
|
-
let data = {
|
|
1158
|
-
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
|
1159
|
-
userid: Vue.user.id
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
let http = new HttpResetClass()
|
|
1163
|
-
let res = await http.load(
|
|
1164
|
-
'POST',
|
|
1165
|
-
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
1166
|
-
{data: data},
|
|
1167
|
-
{resolveMsg: null, rejectMsg: '片区查询失败!!!'}
|
|
1168
|
-
)
|
|
1169
|
-
|
|
1170
|
-
return res.data.map(item => {
|
|
1171
|
-
return {
|
|
1172
|
-
label: item.name,
|
|
1173
|
-
value: item.name
|
|
1174
|
-
}
|
|
1175
|
-
})
|
|
1176
|
-
},
|
|
1177
|
-
// 获取区县
|
|
1178
|
-
async getPcd () {
|
|
1179
|
-
let data = {
|
|
1180
|
-
tablename: 't_pcd',
|
|
1181
|
-
condition: `f_filialeid = '${Vue.user.orgid}'`
|
|
1182
|
-
}
|
|
1183
|
-
let http = new HttpResetClass()
|
|
1184
|
-
let res = await http.load(
|
|
1185
|
-
'POST',
|
|
1186
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1187
|
-
{data: data},
|
|
1188
|
-
{resolveMsg: null, rejectMsg: '区县查询失败!!!'}
|
|
1189
|
-
)
|
|
1190
|
-
|
|
1191
|
-
return res.data.map(item => {
|
|
1192
|
-
return {
|
|
1193
|
-
label: item.f_pcd,
|
|
1194
|
-
value: item.f_pcd
|
|
1195
|
-
}
|
|
1196
|
-
})
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
},
|
|
1200
|
-
events: {
|
|
1201
|
-
async 'startSignActivity'() {
|
|
1202
|
-
this.hideButtons('签字')
|
|
1203
|
-
let data = {
|
|
1204
|
-
apply: this.show_data,
|
|
1205
|
-
user: Vue.user
|
|
1206
|
-
}
|
|
1207
|
-
let res = await this.$resetpost(
|
|
1208
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/startSignActivity`,
|
|
1209
|
-
{data: data},
|
|
1210
|
-
{resolveMsg: '签字流程已发起!!!', rejectMsg: '签字发起失败!!!'}
|
|
1211
|
-
)
|
|
1212
|
-
this.breakControl()
|
|
1213
|
-
},
|
|
1214
|
-
'complyInstallation' (index) {
|
|
1215
|
-
if (this.show_data.f_is_have === '否') {
|
|
1216
|
-
this.hideButtons('提交', '出图', '缴费')
|
|
1217
|
-
this.showButtons('终止')
|
|
1218
|
-
}
|
|
1219
|
-
if (this.show_data.f_is_have === '是') {
|
|
1220
|
-
this.hideButtons('终止')
|
|
1221
|
-
this.showButtons('提交', '出图', '缴费')
|
|
1222
|
-
}
|
|
1223
|
-
},
|
|
1224
|
-
async 'igniteDispatchReadyEvent' () {
|
|
1225
|
-
let data = {
|
|
1226
|
-
tablename: 'activityins',
|
|
1227
|
-
condition: `processid = '${this.show_data.f_process_id}' and defname = '工程施工' and state = '结束'`
|
|
1228
|
-
}
|
|
1229
|
-
let http = new HttpResetClass()
|
|
1230
|
-
let res = await http.load(
|
|
1231
|
-
'POST',
|
|
1232
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1233
|
-
{data: data},
|
|
1234
|
-
{resolveMsg: null, rejectMsg: '查询失败!!!'}
|
|
1235
|
-
)
|
|
1236
|
-
if (res.data.length <= 0) {
|
|
1237
|
-
console.log('+++++++++++++++++++++++++++++')
|
|
1238
|
-
console.log('没有施工,不能退回')
|
|
1239
|
-
this.hideButtons('退回')
|
|
1240
|
-
}
|
|
1241
|
-
},
|
|
1242
|
-
'breakControl' (val) {
|
|
1243
|
-
this.breakControl(val)
|
|
1244
|
-
},
|
|
1245
|
-
// 检查重复
|
|
1246
|
-
'checkRepeat' (index) {
|
|
1247
|
-
this.checkDuplicate(index)
|
|
1248
|
-
},
|
|
1249
|
-
'buildReadyEvent' () {
|
|
1250
|
-
this.setLabelValue('施工单位', Vue.user.name)
|
|
1251
|
-
this.setLabelValue('施工安装时间', new Date().Format('yyyy-MM-dd HH:mm:ss'))
|
|
1252
|
-
},
|
|
1253
|
-
// 选择材料
|
|
1254
|
-
async materialNameChenge (index, fieldIndex) {
|
|
1255
|
-
let material = this.show_data.onetomany[index].fields[fieldIndex].value
|
|
1256
|
-
|
|
1257
|
-
this.show_data.onetomany[index].fields.forEach(item => {
|
|
1258
|
-
if (material[item.field]) {
|
|
1259
|
-
item.value = material[item.field]
|
|
1260
|
-
}
|
|
1261
|
-
})
|
|
1262
|
-
},
|
|
1263
|
-
// 打开模态框获取材料
|
|
1264
|
-
async 'getMaterialName' (index) {
|
|
1265
|
-
let data = {
|
|
1266
|
-
condition: `1=1`
|
|
1267
|
-
}
|
|
1268
|
-
let http = new HttpResetClass()
|
|
1269
|
-
let res = await http.load(
|
|
1270
|
-
'POST',
|
|
1271
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/getStockMaterial`,
|
|
1272
|
-
{data: data},
|
|
1273
|
-
{resolveMsg: null, rejectMsg: '材料查询失败!!!'}
|
|
1274
|
-
)
|
|
1275
|
-
|
|
1276
|
-
this.show_data.onetomany[index].fields.forEach(field => {
|
|
1277
|
-
if (field.label === '选择材料') {
|
|
1278
|
-
field.options = res.data.map(item => {
|
|
1279
|
-
return {
|
|
1280
|
-
'label': `${item.f_material_name}--${item.f_material_style}--${item.f_material_unit}`,
|
|
1281
|
-
'value': item
|
|
1282
|
-
}
|
|
1283
|
-
})
|
|
1284
|
-
}
|
|
1285
|
-
})
|
|
1286
|
-
},
|
|
1287
|
-
// 选择气价
|
|
1288
|
-
'priceChange' (index) {
|
|
1289
|
-
if (isEmpty(this.show_data.stairPrice)) {
|
|
1290
|
-
return
|
|
1291
|
-
}
|
|
1292
|
-
|
|
1293
|
-
let stairPrice = this.getLableValue('气价名称')
|
|
1294
|
-
|
|
1295
|
-
this.setLabelValue('气价类型', stairPrice.f_price_type)
|
|
1296
|
-
this.setLabelValue('用气性质', stairPrice.f_gasproperties)
|
|
1297
|
-
this.setLabelValue('价格', stairPrice.f_price)
|
|
1298
|
-
this.setLabelValue('客户类型', stairPrice.f_user_type)
|
|
1299
|
-
this.show_data.f_price_id = stairPrice.id
|
|
1300
|
-
this.show_data.f_price_name = stairPrice.f_price_name
|
|
1301
|
-
},
|
|
1302
|
-
// 是否购买保险
|
|
1303
|
-
isInsureChange (index) {
|
|
1304
|
-
let f_is_insure = this.getLableValue('是否购买保险')
|
|
1305
|
-
for (const item of this.show_data.fields) {
|
|
1306
|
-
if (f_is_insure === '是') {
|
|
1307
|
-
if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额') {
|
|
1308
|
-
item.hidden = false
|
|
1309
|
-
item.required = true
|
|
1310
|
-
}
|
|
1311
|
-
if (item.label === '保险备注') {
|
|
1312
|
-
item.hidden = false
|
|
1313
|
-
}
|
|
1314
|
-
} else {
|
|
1315
|
-
if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
|
|
1316
|
-
item.hidden = true
|
|
1317
|
-
item.required = false
|
|
1318
|
-
}
|
|
1319
|
-
}
|
|
1320
|
-
}
|
|
1321
|
-
},
|
|
1322
|
-
// 通气点火初始化
|
|
1323
|
-
async 'gasReadyEvent' () {
|
|
1324
|
-
console.log('----通气点火初始化----')
|
|
1325
|
-
if (!isEmpty(this.show_data.f_price_id)) {
|
|
1326
|
-
let priceList = await this.getPrice(this.show_data.f_price_id)
|
|
1327
|
-
this.setLabelValue('气价名称', priceList[0].value)
|
|
1328
|
-
}
|
|
1329
|
-
|
|
1330
|
-
let data = {
|
|
1331
|
-
tablename: 't_userfees',
|
|
1332
|
-
condition: `f_orgid = '${Vue.user.orgid}' and f_userinfo_id = '${this.show_data.f_userinfo_id}' and f_state = '待执行'`
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
console.log('---------查询是否有待执行保险-----------')
|
|
1336
|
-
let http = new HttpResetClass()
|
|
1337
|
-
let res = await http.load(
|
|
1338
|
-
'POST',
|
|
1339
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1340
|
-
{data: data},
|
|
1341
|
-
{resolveMsg: null, rejectMsg: '保险查询失败!!!'}
|
|
1342
|
-
)
|
|
1343
|
-
if (res.data.length > 0) {
|
|
1344
|
-
console.log('----------具有待执行保险------------')
|
|
1345
|
-
this.setLabelValue('待执行保险', '是')
|
|
1346
|
-
for (const item of this.show_data.fields) {
|
|
1347
|
-
if (item.label === '保费开始日期' || item.label === '是否购买保险' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
|
|
1348
|
-
item.hidden = true
|
|
1349
|
-
item.required = false
|
|
1350
|
-
item.value = null
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
console.log('----------具有待执行保险------------')
|
|
1354
|
-
} else {
|
|
1355
|
-
console.log('----------不有待执行保险------------')
|
|
1356
|
-
this.setLabelValue('待执行保险', '否')
|
|
1357
|
-
for (const item of this.show_data.fields) {
|
|
1358
|
-
if (item.label === '是否购买保险' || item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
|
|
1359
|
-
item.hidden = false
|
|
1360
|
-
item.required = true
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
console.log('----------具有待执行保险------------')
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
// 初始化显示内容
|
|
1367
|
-
let f_is_insure = this.getLableValue('是否购买保险')
|
|
1368
|
-
for (const item of this.show_data.fields) {
|
|
1369
|
-
if (f_is_insure === '是') {
|
|
1370
|
-
if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额') {
|
|
1371
|
-
item.hidden = false
|
|
1372
|
-
item.required = true
|
|
1373
|
-
}
|
|
1374
|
-
if (item.label === '保险备注') {
|
|
1375
|
-
item.hidden = false
|
|
1376
|
-
}
|
|
1377
|
-
// 本期保费到期时间默认一年
|
|
1378
|
-
if (isEmpty(this.selectdata.f_ins_expiration_date)) {
|
|
1379
|
-
let f_ins_expiration_date = new Date().setFullYear(new Date().getFullYear() + 1)
|
|
1380
|
-
this.setLabelValue("保费结束日期", new Date(f_ins_expiration_date).Format('yyyy-MM-dd'))
|
|
1381
|
-
}
|
|
1382
|
-
}
|
|
1383
|
-
if (f_is_insure === '否') {
|
|
1384
|
-
if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
|
|
1385
|
-
item.hidden = true
|
|
1386
|
-
item.required = false
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
},
|
|
1391
|
-
// 合同金额失去焦点
|
|
1392
|
-
async 'contractMoneyChange' (index) {
|
|
1393
|
-
let data = {
|
|
1394
|
-
operator: '+',
|
|
1395
|
-
num1: this.show_data.f_contract_money || 0,
|
|
1396
|
-
num2: this.getLableValue('追加金额') || 0
|
|
1397
|
-
}
|
|
1398
|
-
let res = await this.$resetpost(
|
|
1399
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/compute`,
|
|
1400
|
-
{data: data},
|
|
1401
|
-
{resolveMsg: null, rejectMsg: '金额计算失败!!!'}
|
|
1402
|
-
)
|
|
1403
|
-
|
|
1404
|
-
this.setLabelValue('应交金额', res.data)
|
|
1405
|
-
},
|
|
1406
|
-
// ===========================================
|
|
1407
|
-
async 'areaChange' () {
|
|
1408
|
-
if (isEmpty(this.show_data.f_residential_area)) {
|
|
1409
|
-
return
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
let data = {
|
|
1413
|
-
tablename: 't_area',
|
|
1414
|
-
condition: `f_filialeid = '${this.$login.f.orgid}' and f_residential_area = '${this.show_data.f_residential_area}'`
|
|
1415
|
-
}
|
|
1416
|
-
let http = new HttpResetClass()
|
|
1417
|
-
let res = await http.load(
|
|
1418
|
-
'POST',
|
|
1419
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1420
|
-
{data: data},
|
|
1421
|
-
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
1422
|
-
)
|
|
1423
|
-
if(res.data.length>0){
|
|
1424
|
-
this.setLabelValue('街道/乡镇', res.data[0].f_street)
|
|
1425
|
-
this.setLabelValue('区/县', res.data[0].f_pcd)
|
|
1426
|
-
this.setLabelValue('片区', res.data[0].f_slice_area)
|
|
1427
|
-
}
|
|
1428
|
-
},
|
|
1429
|
-
async 'button'() {
|
|
1430
|
-
console.log('-----')
|
|
1431
|
-
await this.buttonCommit()
|
|
1432
|
-
},
|
|
1433
|
-
// 失去焦点出触发事件
|
|
1434
|
-
'onchange' (index) {
|
|
1435
|
-
if (this.show_data.defname === '报装申请') {
|
|
1436
|
-
if (
|
|
1437
|
-
this.show_data.fields[index].label === '区/县' ||
|
|
1438
|
-
this.show_data.fields[index].label === '街道/乡镇' ||
|
|
1439
|
-
this.show_data.fields[index].label === '集收单位' ||
|
|
1440
|
-
this.show_data.fields[index].label === '楼号/组' ||
|
|
1441
|
-
this.show_data.fields[index].label === '单元/排' ||
|
|
1442
|
-
this.show_data.fields[index].label === '楼层' ||
|
|
1443
|
-
this.show_data.fields[index].label === '门牌号'
|
|
1444
|
-
) {
|
|
1445
|
-
|
|
1446
|
-
let f_pcd = this.getLableValue('区/县') || ''
|
|
1447
|
-
let f_street = this.getLableValue('街道/乡镇') || ''
|
|
1448
|
-
let f_residential_area = this.getLableValue('集收单位') || ''
|
|
1449
|
-
let f_building = this.getLableValue('楼号/组') || ''
|
|
1450
|
-
let f_building_suffix = f_building ? this.config.f_building_suffix : ''
|
|
1451
|
-
let f_unit = this.getLableValue('单元/排') || ''
|
|
1452
|
-
let f_unit_suffix = f_unit ? this.config.f_unit_suffix : ''
|
|
1453
|
-
let f_floor = this.getLableValue('楼层') || ''
|
|
1454
|
-
let f_floor_suffix = f_floor ? this.config.f_floor_suffix : ''
|
|
1455
|
-
let f_room = this.getLableValue('门牌号') || ''
|
|
1456
|
-
let f_room_suffix = f_room ? this.config.f_room_suffix : ''
|
|
1457
|
-
|
|
1458
|
-
let f_address = null
|
|
1459
|
-
|
|
1460
|
-
let f_address_type = this.show_data.f_address_type
|
|
1461
|
-
f_address = f_pcd + f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
|
|
1462
|
-
/*if (f_address_type === '民用城区') {
|
|
1463
|
-
f_address = f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
|
|
1464
|
-
}
|
|
1465
|
-
if (f_address_type === '民用农村') {
|
|
1466
|
-
f_address = f_building + f_unit + f_floor + f_room
|
|
1467
|
-
}
|
|
1468
|
-
if (f_address_type === '特殊城区') {
|
|
1469
|
-
f_address = f_street + f_residential_area
|
|
1470
|
-
}*/
|
|
1471
|
-
this.setLabelValue("地址", f_address)
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
if(this.show_data.fields[index].label === '是否老居民首次开发'){
|
|
1475
|
-
if( this.getLableValue('是否老居民首次开发')==='是'){
|
|
1476
|
-
this.showLabels('开户比例')
|
|
1477
|
-
this.hideLabels('立管架空')
|
|
1478
|
-
this.setLabelValue("立管架空", '')
|
|
1479
|
-
}else if(this.getLableValue('是否老居民首次开发')==='否'){
|
|
1480
|
-
this.showLabels('立管架空')
|
|
1481
|
-
this.hideLabels('开户比例')
|
|
1482
|
-
this.setLabelValue("开户比例", '')
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
|
-
}
|
|
1486
|
-
},
|
|
1487
|
-
async 'getDesignerPeople' () {
|
|
1488
|
-
let data = {
|
|
1489
|
-
source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
|
|
1490
|
-
userid: this.$login.f.id
|
|
1491
|
-
}
|
|
1492
|
-
|
|
1493
|
-
let http = new HttpResetClass()
|
|
1494
|
-
let res = await http.load(
|
|
1495
|
-
'POST',
|
|
1496
|
-
`rs/search`,
|
|
1497
|
-
{data: data},
|
|
1498
|
-
{resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
|
|
1499
|
-
)
|
|
1500
|
-
|
|
1501
|
-
return res.data.map(item => {
|
|
1502
|
-
return {
|
|
1503
|
-
label: item.name,
|
|
1504
|
-
value: item.id
|
|
1505
|
-
}
|
|
1506
|
-
})
|
|
1507
|
-
},
|
|
1508
|
-
// 申请节点初始化
|
|
1509
|
-
'applyReadyEvent' () {
|
|
1510
|
-
this.addressInitialization()
|
|
1511
|
-
|
|
1512
|
-
this.pcdChange()
|
|
1513
|
-
this.streetChange()
|
|
1514
|
-
},
|
|
1515
|
-
// 街道失去焦点
|
|
1516
|
-
async 'streetChange' (index) {
|
|
1517
|
-
if (isEmpty(this.show_data.f_street)) {
|
|
1518
|
-
return
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
this.setLabelValue('集收单位', null)
|
|
1522
|
-
|
|
1523
|
-
let data = {
|
|
1524
|
-
tablename: 't_area',
|
|
1525
|
-
condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}'`
|
|
1526
|
-
}
|
|
1527
|
-
let http = new HttpResetClass()
|
|
1528
|
-
let res = await http.load(
|
|
1529
|
-
'POST',
|
|
1530
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1531
|
-
{data: data},
|
|
1532
|
-
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
1533
|
-
)
|
|
1534
|
-
|
|
1535
|
-
this.setLabelOptions('集收单位', res.data.map(item => {
|
|
1536
|
-
return {
|
|
1537
|
-
label: item.f_residential_area,
|
|
1538
|
-
value: item.f_residential_area
|
|
1539
|
-
}
|
|
1540
|
-
}))
|
|
1541
|
-
},
|
|
1542
|
-
// 选择报建项目
|
|
1543
|
-
'selectApply' (row) {
|
|
1544
|
-
this.setLabelValue('工程名称', row.f_entry_name)
|
|
1545
|
-
this.setLabelValue('工程编号', row.f_apply_num)
|
|
1546
|
-
this.setLabelValue('报建类型', row.f_apply_type)
|
|
1547
|
-
this.setLabelValue('用户名称', row.f_user_name)
|
|
1548
|
-
this.setLabelValue('用户电话', row.f_phone)
|
|
1549
|
-
this.setLabelValue('证件类型', row.f_credentials)
|
|
1550
|
-
this.setLabelValue('证件号码', row.f_idnumber)
|
|
1551
|
-
this.setLabelValue('地址', row.f_address)
|
|
1552
|
-
this.setLabelValue('累计缴费金额', row.f_cumulative_payment_money)
|
|
1553
|
-
|
|
1554
|
-
this.show_data.parentApply = JSON.parse(JSON.stringify(row))
|
|
1555
|
-
|
|
1556
|
-
delete row.id
|
|
1557
|
-
delete row.actid
|
|
1558
|
-
delete row.defid
|
|
1559
|
-
delete row.defname
|
|
1560
|
-
delete row.version
|
|
1561
|
-
delete row.f_apply_num
|
|
1562
|
-
delete row.f_sub_state
|
|
1563
|
-
delete row.f_apply_type
|
|
1564
|
-
delete row.f_process_id
|
|
1565
|
-
|
|
1566
|
-
this.show_data = Object.assign({}, this.show_data, row)
|
|
1567
|
-
|
|
1568
|
-
this.show_data.f_parent_process_id = this.show_data.parentApply.f_process_id
|
|
1569
|
-
},
|
|
1570
|
-
// 区县失去焦点
|
|
1571
|
-
async 'pcdChange' (index) {
|
|
1572
|
-
if (isEmpty(this.show_data.f_pcd)) {
|
|
1573
|
-
return
|
|
1574
|
-
}
|
|
1575
|
-
|
|
1576
|
-
this.setLabelValue('街道/乡镇', null)
|
|
1577
|
-
this.setLabelValue('集收单位', null)
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
let data = {
|
|
1582
|
-
tablename: 't_street',
|
|
1583
|
-
condition: `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
|
|
1584
|
-
}
|
|
1585
|
-
let f_address_type = this.getLableValue('地址类型')
|
|
1586
|
-
|
|
1587
|
-
if (f_address_type === '民用市区') {
|
|
1588
|
-
data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
|
|
1589
|
-
}
|
|
1590
|
-
if (f_address_type === '民用乡镇') {
|
|
1591
|
-
data.condition = `f_filialeid = '${Vue.user.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
|
-
let http = new HttpResetClass()
|
|
1595
|
-
let res = await http.load(
|
|
1596
|
-
'POST',
|
|
1597
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1598
|
-
{data: data},
|
|
1599
|
-
{resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
|
|
1600
|
-
)
|
|
1601
|
-
|
|
1602
|
-
this.setLabelOptions('街道/乡镇', res.data.map(item => {
|
|
1603
|
-
return {
|
|
1604
|
-
label: item.f_street,
|
|
1605
|
-
value: item.f_street
|
|
1606
|
-
}
|
|
1607
|
-
}))
|
|
1608
|
-
},
|
|
1609
|
-
// 选择用户档案信息
|
|
1610
|
-
'selectUserinfo' (row) {
|
|
1611
|
-
this.setLabelValue('用户编号', row.f_userinfo_code)
|
|
1612
|
-
this.setLabelValue('用户名称', row.f_user_name)
|
|
1613
|
-
this.setLabelValue('用户电话', row.f_user_phone)
|
|
1614
|
-
this.setLabelValue('证件类型', row.f_credentials)
|
|
1615
|
-
this.setLabelValue('证件号码', row.f_idnumber)
|
|
1616
|
-
this.setLabelValue('地址', row.f_address)
|
|
1617
|
-
|
|
1618
|
-
this.show_data.f_userinfo_id = row.f_userinfo_id
|
|
1619
|
-
this.show_data.f_userinfo_code = row.f_userinfo_code
|
|
1620
|
-
},
|
|
1621
|
-
// 地址类型失去焦点
|
|
1622
|
-
'addressTypeChange' (index) {
|
|
1623
|
-
this.setLabelValue('街道/乡镇', null)
|
|
1624
|
-
this.setLabelValue('集收单位', null)
|
|
1625
|
-
this.getAreaNew()
|
|
1626
|
-
let f_address_type = this.show_data.fields[index].value
|
|
1627
|
-
for (const item of this.show_data.fields) {
|
|
1628
|
-
if (f_address_type === '民用市区') {
|
|
1629
|
-
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
|
|
1630
|
-
item.hidden = false
|
|
1631
|
-
item.required = true
|
|
1632
|
-
item.value = null
|
|
1633
|
-
}
|
|
1634
|
-
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
|
|
1635
|
-
item.hidden = false
|
|
1636
|
-
item.required = false
|
|
1637
|
-
item.value = null
|
|
1638
|
-
}
|
|
1639
|
-
if (item.label === '地址') {
|
|
1640
|
-
item.readonly = true
|
|
1641
|
-
item.value = null
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
if (f_address_type === '民用乡镇') {
|
|
1645
|
-
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
|
|
1646
|
-
item.hidden = false
|
|
1647
|
-
item.required = true
|
|
1648
|
-
item.value = null
|
|
1649
|
-
}
|
|
1650
|
-
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
|
|
1651
|
-
item.hidden = false
|
|
1652
|
-
item.required = false
|
|
1653
|
-
item.value = null
|
|
1654
|
-
}
|
|
1655
|
-
if (item.label === '楼层') {
|
|
1656
|
-
item.hidden = true
|
|
1657
|
-
item.required = false
|
|
1658
|
-
item.value = null
|
|
1659
|
-
}
|
|
1660
|
-
if (item.label === '地址') {
|
|
1661
|
-
item.readonly = true
|
|
1662
|
-
item.value = null
|
|
1663
|
-
}
|
|
1664
|
-
}
|
|
1665
|
-
if (f_address_type === '特殊地址') {
|
|
1666
|
-
if (item.label === '区/县' || item.label === '街道/乡镇') {
|
|
1667
|
-
item.hidden = false
|
|
1668
|
-
item.required = true
|
|
1669
|
-
item.value = null
|
|
1670
|
-
}
|
|
1671
|
-
if (item.label === '集收单位') {
|
|
1672
|
-
item.hidden = false
|
|
1673
|
-
item.required = false
|
|
1674
|
-
item.value = null
|
|
1675
|
-
}
|
|
1676
|
-
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
|
|
1677
|
-
item.hidden = true
|
|
1678
|
-
item.required = false
|
|
1679
|
-
item.value = null
|
|
1680
|
-
}
|
|
1681
|
-
if (item.label === '地址') {
|
|
1682
|
-
item.readonly = false
|
|
1683
|
-
item.value = null
|
|
1684
|
-
}
|
|
1685
|
-
}
|
|
1686
|
-
}
|
|
1687
|
-
},
|
|
1688
|
-
// 搜索小区
|
|
1689
|
-
async 'searchArea' (area, index) {
|
|
1690
|
-
let data = {
|
|
1691
|
-
tablename: 't_area',
|
|
1692
|
-
condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}' and f_residential_area like '%${area}%'`
|
|
1693
|
-
}
|
|
1694
|
-
let http = new HttpResetClass()
|
|
1695
|
-
let res = await http.load(
|
|
1696
|
-
'POST',
|
|
1697
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1698
|
-
{data: data},
|
|
1699
|
-
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
1700
|
-
)
|
|
1701
|
-
|
|
1702
|
-
if (res.data.length === 0) {
|
|
1703
|
-
return
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1706
|
-
this.setLabelOptions('集收单位', res.data.map(item => {
|
|
1707
|
-
return {
|
|
1708
|
-
label: item.f_residential_area,
|
|
1709
|
-
value: item.f_residential_area
|
|
1710
|
-
}
|
|
1711
|
-
}))
|
|
1712
|
-
},
|
|
1713
|
-
// 搜索小区
|
|
1714
|
-
async 'searchAreaCollective' (area, index) {
|
|
1715
|
-
let data = {
|
|
1716
|
-
tablename: 't_area',
|
|
1717
|
-
condition: `f_filialeid = '${Vue.user.orgid}' and f_residential_area like '%${area}%'`
|
|
1718
|
-
}
|
|
1719
|
-
let http = new HttpResetClass()
|
|
1720
|
-
let res = await http.load(
|
|
1721
|
-
'POST',
|
|
1722
|
-
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1723
|
-
{data: data},
|
|
1724
|
-
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
1725
|
-
)
|
|
1726
|
-
|
|
1727
|
-
if (res.data.length === 0) {
|
|
1728
|
-
return
|
|
1729
|
-
}
|
|
1730
|
-
|
|
1731
|
-
this.setLabelOptions('集收单位', res.data.map(item => {
|
|
1732
|
-
return {
|
|
1733
|
-
label: item.f_residential_area,
|
|
1734
|
-
value: item.f_residential_area
|
|
1735
|
-
}
|
|
1736
|
-
}))
|
|
1737
|
-
},
|
|
1738
|
-
// 团购转散户初始化
|
|
1739
|
-
'apply2ReadyEvent' () {
|
|
1740
|
-
if (this.show_data.f_apply_source === '线下发起') {
|
|
1741
|
-
this.addressInitialization()
|
|
1742
|
-
this.hideLabels('用户编号')
|
|
1743
|
-
this.electiveLabels('用户编号')
|
|
1744
|
-
this.showLabels('片区', '地址类型')
|
|
1745
|
-
this.requiredLabels('片区', '地址类型')
|
|
1746
|
-
}
|
|
1747
|
-
if (this.show_data.f_apply_source === '自动发起') {
|
|
1748
|
-
this.hideLabels('片区', '地址类型')
|
|
1749
|
-
this.electiveLabels('片区', '地址类型',)
|
|
1750
|
-
}
|
|
1751
|
-
},
|
|
1752
|
-
'onblur' (index) {},
|
|
1753
|
-
'oninput' (index) {},
|
|
1754
|
-
'initializtionView' () {},
|
|
1755
|
-
async 'onchangeModal' (index, fieldIndex) {
|
|
1756
|
-
},
|
|
1757
|
-
async 'onblurModal' (index, fieldIndex) {
|
|
1758
|
-
|
|
1759
|
-
},
|
|
1760
|
-
async 'oninputModal' (index, fieldIndex) {
|
|
1761
|
-
|
|
1762
|
-
},
|
|
1763
|
-
async 'onetomanydelete' (index, rowIndex) {
|
|
1764
|
-
|
|
1765
|
-
let http = new HttpResetClass()
|
|
1766
|
-
|
|
1767
|
-
let res = await http.load(
|
|
1768
|
-
'DELETE',
|
|
1769
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}/${this.show_data.onetomany[index].rows[rowIndex].id}`,
|
|
1770
|
-
null,
|
|
1771
|
-
{resolveMsg: null, rejectMsg: '删除失败!!!'}
|
|
1772
|
-
)
|
|
1773
|
-
res = await this.$resetpost(
|
|
1774
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
1775
|
-
this.show_data
|
|
1776
|
-
)
|
|
1777
|
-
this.breakControl()
|
|
1778
|
-
},
|
|
1779
|
-
async 'onetomanyupdate' (index, rowIndex) {
|
|
1780
|
-
let data = this.show_data.onetomany[index].rows[rowIndex]
|
|
1781
|
-
|
|
1782
|
-
this.show_data.onetomany[index].fields.forEach(item => {
|
|
1783
|
-
data[item.field] = item.value
|
|
1784
|
-
})
|
|
1785
|
-
let res = await this.$resetpost(
|
|
1786
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
1787
|
-
data
|
|
1788
|
-
)
|
|
1789
|
-
res = await this.$resetpost(
|
|
1790
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
1791
|
-
this.show_data
|
|
1792
|
-
)
|
|
1793
|
-
this.breakControl()
|
|
1794
|
-
},
|
|
1795
|
-
async 'onetomanyadd' (index) {
|
|
1796
|
-
let data = {
|
|
1797
|
-
f_process_id : this.show_data.f_process_id,
|
|
1798
|
-
f_operator_id: Vue.user.id,
|
|
1799
|
-
f_operator: Vue.user.name,
|
|
1800
|
-
f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
1801
|
-
f_orgid: Vue.user.orgid,
|
|
1802
|
-
f_orgname: Vue.user.orgs
|
|
1803
|
-
}
|
|
1804
|
-
this.show_data.onetomany[index].fields.forEach(item => {
|
|
1805
|
-
data[item.field] = item.value
|
|
1806
|
-
})
|
|
1807
|
-
let res = await this.$resetpost(
|
|
1808
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
1809
|
-
data
|
|
1810
|
-
)
|
|
1811
|
-
res = await this.$resetpost(
|
|
1812
|
-
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
1813
|
-
this.show_data
|
|
1814
|
-
)
|
|
1815
|
-
this.breakControl()
|
|
1816
|
-
},
|
|
1817
|
-
'onbutchange' (index) {
|
|
1818
|
-
|
|
1819
|
-
},
|
|
1820
|
-
'onbutblur' (index) {
|
|
1821
|
-
|
|
1822
|
-
},
|
|
1823
|
-
'onbutinput' (index) {
|
|
1824
|
-
|
|
1825
|
-
},
|
|
1826
|
-
'changeShowfei' (val) {
|
|
1827
|
-
console.log('回调修改父组件属性----'+val)
|
|
1828
|
-
this.show_data.showfei=val
|
|
1829
|
-
}
|
|
1830
|
-
},
|
|
1831
|
-
watch: {
|
|
1832
|
-
/*async 'show_data.showfei' (val) {
|
|
1833
|
-
console.log(`支付成功!!!!!!${val}`)
|
|
1834
|
-
if(this.show_data.showfei=='已付款'){
|
|
1835
|
-
await this.buttonCommit()
|
|
1836
|
-
}
|
|
1837
|
-
}*/
|
|
1838
|
-
}
|
|
1839
|
-
}
|
|
1840
|
-
</script>
|
|
1841
|
-
<style scoped>
|
|
1842
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="col-sm-12 col-xs-12 p-10">
|
|
3
|
+
<accordion one-at-a-time="true">
|
|
4
|
+
<panel :header="selectdata.defname" :is-open="true" type="primary">
|
|
5
|
+
<work-busy :is-busy="excessive"></work-busy>
|
|
6
|
+
<app-service-view v-ref:serviceview :data="show_data" v-if="showview"></app-service-view>
|
|
7
|
+
</panel>
|
|
8
|
+
<panel header="拍照" :is-open="false" type="primary" v-if="selectdata.f_process_id">
|
|
9
|
+
<app-take-pic :blobid="selectdata.f_process_id" :defname="selectdata.defname" :isdelete="true" :istakepic="true" :istype="true"></app-take-pic>
|
|
10
|
+
</panel>
|
|
11
|
+
<panel header="签字" :is-open="false" type="primary" v-if="selectdata.f_process_id">
|
|
12
|
+
<app-sign :blobid="selectdata.f_process_id" :defname="selectdata.defname" @sign-success="signSuccess" :file-path="selectdata.f_process_id"@sign-clean="signClean"></app-sign>
|
|
13
|
+
</panel>
|
|
14
|
+
</accordion>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
<script>
|
|
18
|
+
import Vue from 'vue'
|
|
19
|
+
import {HttpResetClass} from 'vue-client'
|
|
20
|
+
import {isEmpty} from "../../../components/Util";
|
|
21
|
+
// Date格式化
|
|
22
|
+
Date.prototype.Format = function (fmt) {
|
|
23
|
+
var o = {
|
|
24
|
+
'M+': this.getMonth() + 1, // 月份
|
|
25
|
+
'd+': this.getDate(), // 日
|
|
26
|
+
'H+': this.getHours(), // 小时
|
|
27
|
+
'm+': this.getMinutes(), // 分
|
|
28
|
+
's+': this.getSeconds(), // 秒
|
|
29
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
30
|
+
'S': this.getMilliseconds() // 毫秒
|
|
31
|
+
}
|
|
32
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
33
|
+
for (var k in o) {
|
|
34
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
35
|
+
}
|
|
36
|
+
return fmt
|
|
37
|
+
}
|
|
38
|
+
export default {
|
|
39
|
+
title: '报建流程业务控制层',
|
|
40
|
+
props: ['selectdata'],
|
|
41
|
+
data () {
|
|
42
|
+
return {
|
|
43
|
+
json_datas: null,
|
|
44
|
+
data: null,
|
|
45
|
+
show_data: null,
|
|
46
|
+
showview: false,
|
|
47
|
+
config: {},
|
|
48
|
+
excessive:false
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
ready () {
|
|
52
|
+
this.refurbish()
|
|
53
|
+
},
|
|
54
|
+
methods: {
|
|
55
|
+
/*获取服务人*/
|
|
56
|
+
getServicPeo(){
|
|
57
|
+
this.setLabelValue("服务人",Vue.user.name)
|
|
58
|
+
},
|
|
59
|
+
async buttonCommit() {
|
|
60
|
+
if(this.show_data.button.button_name){
|
|
61
|
+
this.$refs.serviceview.disablebtu()
|
|
62
|
+
}
|
|
63
|
+
if (this.show_data.button.before) {
|
|
64
|
+
if (Array.isArray(this.show_data.button.before)) {
|
|
65
|
+
for (let i = 0; i < this.show_data.button.before.length; i++) {
|
|
66
|
+
await this[this.show_data.button.before[i]]()
|
|
67
|
+
}
|
|
68
|
+
} else {
|
|
69
|
+
await this[this.show_data.button.before]();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
// 点击重置按钮就重置数据
|
|
73
|
+
if (this.show_data.button.button_name === '重置') {
|
|
74
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
75
|
+
return
|
|
76
|
+
}
|
|
77
|
+
this.show_data.user = Vue.user
|
|
78
|
+
// this.show_data.user = {"f_show_department_name":"","parentname":"市场部","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"客服系统","icon":"/images/lefticon/档案管理.png","hasright":false,"resourcetype":"function","parentid":"27","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"city-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"231","name":"街道管理","templatename":"functionedit","id":"230","position":"1","fullname":"资源管理.功能模块.客服系统.档案管理.街道管理","fullid":"3.21.27.212.230","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"area-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"219","name":"小区管理","templatename":"functionedit","id":"218","position":"3","fullname":"资源管理.功能模块.客服系统.档案管理.小区管理","fullid":"3.21.27.212.218","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"address-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"33664","name":"地址管理","templatename":"functionedit","id":"33663","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.地址管理","fullid":"3.21.27.212.33663","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"file-user-files","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"237","name":"用户档案","templatename":"functionedit","id":"236","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.用户档案","fullid":"3.21.27.212.236","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"档案管理","link":"file-user-files-new","hasright":true,"resourcetype":"function","parentid":"212","f_parentname":"档案管理","children":[],"selfid":"39450","name":"预备户管理","templatename":"functionedit","id":"39449","position":"6","fullname":"资源管理.功能模块.客服系统.档案管理.预备户管理","fullid":"3.21.27.212.39449","tablename":"t_function"}],"selfid":"213","name":"档案管理","templatename":"functionedit","id":"212","position":"2","fullname":"资源管理.功能模块.客服系统.档案管理","fullid":"3.21.27.212","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":true,"resourcetype":"function","parentid":"27","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34680","name":"功能业务","templatename":"functionedit","id":"34679","position":"1","fullname":"资源管理.功能模块.客服系统.报建业务.功能业务","fullid":"3.21.27.34673.34679","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34686","name":"流程业务","templatename":"functionedit","id":"34685","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.流程业务","fullid":"3.21.27.34673.34685","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34692","name":"流程监控","templatename":"functionedit","id":"34691","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.21.27.34673.34691","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"apply-charge-search","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34698","name":"收费明细","templatename":"functionedit","id":"34697","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.收费明细","fullid":"3.21.27.34673.34697","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"order-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34704","name":"预约申请","templatename":"functionedit","id":"34703","position":"5","fullname":"资源管理.功能模块.客服系统.报建业务.预约申请","fullid":"3.21.27.34673.34703","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"stop-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34710","name":"终止报建","templatename":"functionedit","id":"34709","position":"6","fullname":"资源管理.功能模块.客服系统.报建业务.终止报建","fullid":"3.21.27.34673.34709","tablename":"t_function"}],"selfid":"34674","name":"报建业务","templatename":"functionedit","id":"34673","position":"12","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.21.27.34673","tablename":"t_function"}],"qrcode":"/rs/user/getQRcode?QRCODE=12b2-1631604191812-03447","rolesnames":"营业厅报装,市场部报装,设计部报装,工程部报装,运营部报装,财务部报装,角色监控","roles":"51383,51485,51707,51767,51833,51905,52289","f_sex":"男","f_icon":"tree_user","fullnames":"河南亿星集团实业有限公司.周口市天然气有限公司.市场部.报建测试","dir":"ZhouKou","userid":"12b2-1631604191812-03447","accesstime":"1632214307117","parentid":"46545","f_show_rolestr":"","fullids":"30463.10101.46545.51953.","number":"10101","f_dep_id":"1010101201","f_idnumber":null,"selfid":"51954","templatename":"useredit","logindate":"2021-09-14 18:46:54","id":"51953","state":"在职","tablename":"t_user","deptype":"部门","depids":"46545","loginid":"15","imgid":null,"f_user_telephone":null,"rolestr":"营业厅报装,市场部报装,设计部报装,工程部报装,运营部报装,财务部报装,角色监控","deps":"市场部","loginnum":"0","f_age":null,"resourcetype":"user","orgid":"10101","f_department_name":"周口市场部","ename":"bjcs","deleted":"false","entitytype":"t_user","f_description":null,"loginip":"192.168.66.37","name":"报建测试","position":"1","orgs":"周口市天然气有限公司","haslicense":true,"f_role_name":"营业厅报装 市场部报装 设计部报装 工程部报装 运营部报装 财务部报装 角色监控 ","f_allArea":[],"f_gasman":[{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15294978548","rolestr":"抄表员","resourcetype":"user","userid":"100814","parentid":"46581","f_department_name":"周口客服部","ename":"100814","password":"1","deleted":"false","entitytype":"t_user","selfid":"100814","name":"高雪荣","templatename":"useredit","id":"100814","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"qrcode":"/rs/user/getQRcode?QRCODE=004","roles":"51959","f_sex":"男","f_icon":"tree_user","userid":"004","accesstime":"1631765198067","parentid":"46581","password":"1","selfid":"59044","templatename":"useredit","id":"59043","state":"在职","tablename":"t_user","loginid":"15","rolestr":"抄表员","resourcetype":"user","f_department_name":"周口客服部","ename":"cbcs","deleted":"false","entitytype":"t_user","loginip":"10.10.10.1","name":"抄表测试","position":"23","haslicense":"true","f_role_name":"抄表员 "},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18538602709","rolestr":"抄表员","resourcetype":"user","userid":"100462","parentid":"46581","f_department_name":"周口客服部","ename":"100462","password":"1","deleted":"false","entitytype":"t_user","selfid":"100462","name":"刘林静","templatename":"useredit","id":"100462","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18839409830","rolestr":"抄表员","resourcetype":"user","userid":"100528","parentid":"46581","f_department_name":"周口客服部","ename":"100528","password":"1","deleted":"false","entitytype":"t_user","selfid":"100528","name":"秦春梅","templatename":"useredit","id":"100528","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13243376616","rolestr":"抄表员","resourcetype":"user","userid":"102935","parentid":"46581","f_department_name":"周口客服部","ename":"102935","password":"1","deleted":"false","entitytype":"t_user","selfid":"102935","name":"石磊","templatename":"useredit","id":"102935","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18538602706","rolestr":"抄表员","resourcetype":"user","userid":"100818","parentid":"46581","f_department_name":"周口客服部","ename":"100818","password":"1","deleted":"false","entitytype":"t_user","selfid":"100818","name":"白静","templatename":"useredit","id":"100818","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15294991670","rolestr":"抄表员","resourcetype":"user","userid":"102934","parentid":"46581","f_department_name":"周口客服部","ename":"102934","password":"1","deleted":"false","entitytype":"t_user","selfid":"102934","name":"郭新胜","templatename":"useredit","id":"102934","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15036438918","rolestr":"抄表员","resourcetype":"user","userid":"103392","accesstime":"1631757950369","parentid":"46581","f_department_name":"周口客服部","ename":"103392","password":"1","deleted":"false","entitytype":"t_user","loginip":"10.10.10.1","selfid":"103392","name":"牛永胜","templatename":"useredit","id":"103392","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13592232789","rolestr":"抄表员","resourcetype":"user","userid":"100337","parentid":"46581","f_department_name":"周口客服部","ename":"100337","password":"1","deleted":"false","entitytype":"t_user","selfid":"100337","name":"王雪丽","templatename":"useredit","id":"100337","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"17796528119","rolestr":"抄表员","resourcetype":"user","userid":"101021","parentid":"46581","f_department_name":"周口客服部","ename":"101021","password":"1","deleted":"false","entitytype":"t_user","selfid":"101021","name":"张书荣","templatename":"useredit","id":"101021","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18839409832","rolestr":"抄表员","resourcetype":"user","userid":"100330","parentid":"46581","f_department_name":"周口客服部","ename":"100330","password":"1","deleted":"false","entitytype":"t_user","selfid":"100330","name":"武文平","templatename":"useredit","id":"100330","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13839441227","rolestr":"抄表员","resourcetype":"user","userid":"100871","parentid":"46581","f_department_name":"周口客服部","ename":"100871","password":"1","deleted":"false","entitytype":"t_user","selfid":"100871","name":"李明磊","templatename":"useredit","id":"100871","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"}],"lics":[]}
|
|
79
|
+
this.show_data.start_activity = this.json_datas.start_activity
|
|
80
|
+
this.show_data.xmlfilename = this.json_datas.workflow_xmlfilename
|
|
81
|
+
|
|
82
|
+
console.log("查看报警器材料1---------")
|
|
83
|
+
if ((this.show_data.f_apply_type === '报警器报建' || this.show_data.f_apply_type === '工商业报警器报建') && this.show_data.defname === '工程施工' && this.show_data.f_sub_state !='完工' && this.show_data.button.button_name === '完工'){
|
|
84
|
+
console.log("查看报警器材料2---------")
|
|
85
|
+
//判断是否添加报警器材料
|
|
86
|
+
let bjqlag = false
|
|
87
|
+
let datatemp = {
|
|
88
|
+
'bjqid':"",
|
|
89
|
+
'fprocessid':"",
|
|
90
|
+
'sqvalue':"",
|
|
91
|
+
'f_bjq_sid':"",
|
|
92
|
+
'f_material_code':""
|
|
93
|
+
}
|
|
94
|
+
let bjqststedata = {
|
|
95
|
+
"sid":"",
|
|
96
|
+
"bjqtype":"",
|
|
97
|
+
"f_process_id":"",
|
|
98
|
+
"bjqstate":"",
|
|
99
|
+
"f_userinfo_code":""
|
|
100
|
+
}
|
|
101
|
+
let numOne = [];
|
|
102
|
+
console.log("查看报警器材料3---------",this.show_data)
|
|
103
|
+
console.log("查看报警器材料4---------",this.show_data.onetomany)
|
|
104
|
+
|
|
105
|
+
let http = new HttpResetClass()
|
|
106
|
+
let data = {
|
|
107
|
+
tablename: `t_material_apply`,
|
|
108
|
+
condition: `f_process_id='${this.show_data.f_process_id}'`
|
|
109
|
+
}
|
|
110
|
+
let res = await http.load(
|
|
111
|
+
'POST',
|
|
112
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable?aaa=123`,
|
|
113
|
+
{data: data},
|
|
114
|
+
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
115
|
+
)
|
|
116
|
+
res.data.forEach(item => {
|
|
117
|
+
if (item.f_material_name.substr(0,3) === '报警器'){
|
|
118
|
+
var bjname = item.f_material_name.split("-")
|
|
119
|
+
bjqststedata.sid = item.f_bjq_sid
|
|
120
|
+
bjqststedata.f_process_id = item.f_process_id
|
|
121
|
+
bjqststedata.bjqtype = bjname[1]
|
|
122
|
+
//====================================
|
|
123
|
+
bjqlag = true
|
|
124
|
+
datatemp.bjqid = item.id
|
|
125
|
+
datatemp.fprocessid = item.f_process_id
|
|
126
|
+
datatemp.f_bjq_sid = item.f_bjq_sid
|
|
127
|
+
datatemp.f_material_code = item.f_material_code
|
|
128
|
+
datatemp.f_bjq_lng = item.f_bjq_lng
|
|
129
|
+
datatemp.f_bjq_lat = item.f_bjq_lat
|
|
130
|
+
datatemp.f_bjq_gaode_lng = item.f_bjq_gaode_lng
|
|
131
|
+
datatemp.f_bjq_gaode_lat = item.f_bjq_gaode_lng
|
|
132
|
+
datatemp.f_bjq_baidu_lng = item.f_bjq_baidu_lng
|
|
133
|
+
datatemp.f_bjq_baidu_lat = item.f_bjq_baidu_lat
|
|
134
|
+
numOne.push(item.f_bjq_sid)
|
|
135
|
+
}
|
|
136
|
+
})
|
|
137
|
+
// this.show_data.onetomany.forEach(item=>{
|
|
138
|
+
// console.log("查看报警器材料",item)
|
|
139
|
+
// item.rows.forEach(i=>{
|
|
140
|
+
// if (i.f_material_name.substr(0,3) === '报警器'){
|
|
141
|
+
// var bjname = i.f_material_name.split("-")
|
|
142
|
+
// bjqststedata.sid = i.f_bjq_sid
|
|
143
|
+
// bjqststedata.f_process_id = i.f_process_id
|
|
144
|
+
// bjqststedata.bjqtype = bjname[1]
|
|
145
|
+
// //====================================
|
|
146
|
+
// bjqlag = true
|
|
147
|
+
// datatemp.bjqid = i.id
|
|
148
|
+
// datatemp.fprocessid = i.f_process_id
|
|
149
|
+
// datatemp.f_bjq_sid = i.f_bjq_sid
|
|
150
|
+
// datatemp.f_material_code = i.f_material_code
|
|
151
|
+
// datatemp.f_bjq_lng = i.f_bjq_lng
|
|
152
|
+
// datatemp.f_bjq_lat = i.f_bjq_lat
|
|
153
|
+
// datatemp.f_bjq_gaode_lng = i.f_bjq_gaode_lng
|
|
154
|
+
// datatemp.f_bjq_gaode_lat = i.f_bjq_gaode_lng
|
|
155
|
+
// datatemp.f_bjq_baidu_lng = i.f_bjq_baidu_lng
|
|
156
|
+
// datatemp.f_bjq_baidu_lat = i.f_bjq_baidu_lat
|
|
157
|
+
// numOne.push(i.f_bjq_sid)
|
|
158
|
+
// }
|
|
159
|
+
// })
|
|
160
|
+
// })
|
|
161
|
+
if (!bjqlag){
|
|
162
|
+
this.$showMessage('请添加报警器物料信息!!!')
|
|
163
|
+
return
|
|
164
|
+
}
|
|
165
|
+
if (numOne.length > 1){
|
|
166
|
+
this.$showMessage("暂时支持单个报警器物料安装!!!")
|
|
167
|
+
return
|
|
168
|
+
}
|
|
169
|
+
datatemp.sqvalue = this.show_data.areaData.sqvalue
|
|
170
|
+
|
|
171
|
+
bjqststedata.f_userinfo_code = this.show_data.f_userinfo_code
|
|
172
|
+
//判断是否推送 及推送的状态
|
|
173
|
+
//查询是否存在, 以型号及厂家判断
|
|
174
|
+
let bjqres = await this.$resetpost(
|
|
175
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/getbjqsyncinfo`,
|
|
176
|
+
bjqststedata
|
|
177
|
+
)
|
|
178
|
+
if (bjqres.data.bjqstate != "成功"){
|
|
179
|
+
//区域地址存入材料记录表
|
|
180
|
+
let areares = await this.$resetpost(
|
|
181
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/saveArea`,
|
|
182
|
+
// `rs/logic/saveArea`,
|
|
183
|
+
{data: datatemp},
|
|
184
|
+
{resolveMsg: null, rejectMsg: '区域地址保存失败'}
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
// 完工之后推送数据到汉威
|
|
188
|
+
let adddata = {
|
|
189
|
+
f_bjq_sid : datatemp.f_bjq_sid,
|
|
190
|
+
f_material_code : datatemp.f_material_code,
|
|
191
|
+
f_bjq_lng : datatemp.f_bjq_lng,
|
|
192
|
+
f_bjq_lat : datatemp.f_bjq_lat,
|
|
193
|
+
f_orgid : this.show_data.f_orgid,
|
|
194
|
+
f_bjq_address: this.show_data.areaData.sqvalue,
|
|
195
|
+
f_user_name: this.show_data.f_user_name,
|
|
196
|
+
f_address: this.show_data.f_address,
|
|
197
|
+
f_user_phone: this.show_data.f_phone,
|
|
198
|
+
f_userinfo_code: this.show_data.f_userinfo_code,
|
|
199
|
+
installtime: this.show_data.f_construction_date,
|
|
200
|
+
}
|
|
201
|
+
let res = await this.$resetpost(
|
|
202
|
+
`${this.$androidUtil.getProxyUrl()}/ncc/rs/logic/bjqadduser`,
|
|
203
|
+
// `ncc/rs/logic/bjqadduser`,
|
|
204
|
+
// `${this.$androidUtil.getProxyUrl()}/rs/logic/bjqadduser`,
|
|
205
|
+
adddata
|
|
206
|
+
)
|
|
207
|
+
if (res.data.code != 200){
|
|
208
|
+
if (bjqres.data.bjqstate.length == 0){
|
|
209
|
+
bjqststedata.bjqstate = "失败"
|
|
210
|
+
let bjqres3 = await this.$resetpost(
|
|
211
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/addbjqsyncinfo`,
|
|
212
|
+
bjqststedata
|
|
213
|
+
)
|
|
214
|
+
}
|
|
215
|
+
this.$showMessage(res.data.msg)
|
|
216
|
+
return
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
//更改记录表状态
|
|
220
|
+
if (bjqres.data.bjqstate === "失败"){
|
|
221
|
+
bjqststedata.bjqstate = "成功"
|
|
222
|
+
let bjqres1 = await this.$resetpost(
|
|
223
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/updatebjqsyncinfo`,
|
|
224
|
+
bjqststedata
|
|
225
|
+
)
|
|
226
|
+
}else{
|
|
227
|
+
bjqststedata.bjqstate = "成功"
|
|
228
|
+
let bjqres2 = await this.$resetpost(
|
|
229
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/addbjqsyncinfo`,
|
|
230
|
+
bjqststedata
|
|
231
|
+
)
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && (this.show_data.button.button_name === '提交'||this.show_data.button.button_name === '保存')){
|
|
236
|
+
let dataz = {
|
|
237
|
+
condition: `u.id = ${this.show_data.id}`,
|
|
238
|
+
data: {
|
|
239
|
+
id: Vue.user.id,
|
|
240
|
+
orgid: Vue.user.orgid
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
let http = new HttpResetClass()
|
|
244
|
+
let restpz = await http.load(
|
|
245
|
+
'POST',
|
|
246
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
|
|
247
|
+
{data: dataz},
|
|
248
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
249
|
+
)
|
|
250
|
+
this.show_data.actid=restpz.data[0].actid
|
|
251
|
+
}
|
|
252
|
+
if(this.show_data.button.button_name != '返回'){
|
|
253
|
+
this.excessive=true
|
|
254
|
+
let res = await this.$resetpost(
|
|
255
|
+
// `rs/logic/ApplyProductService`,
|
|
256
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyProductService`,
|
|
257
|
+
{data: this.show_data},
|
|
258
|
+
{resolveMsg: null, rejectMsg: '数据保存失败'}
|
|
259
|
+
)
|
|
260
|
+
this.excessive=false
|
|
261
|
+
if (this.show_data.button.after) {
|
|
262
|
+
this[this.show_data.button.after]()
|
|
263
|
+
}
|
|
264
|
+
}else {
|
|
265
|
+
if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' ){
|
|
266
|
+
if (this.show_data.button.after) {
|
|
267
|
+
this[this.show_data.button.after]()
|
|
268
|
+
}
|
|
269
|
+
this.$dispatch('confirm')
|
|
270
|
+
this.$dispatch('confirm')
|
|
271
|
+
}else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '工程派工'){
|
|
272
|
+
if (this.show_data.button.after) {
|
|
273
|
+
this[this.show_data.button.after]()
|
|
274
|
+
}
|
|
275
|
+
this.$dispatch('confirm')
|
|
276
|
+
this.$dispatch('confirm')
|
|
277
|
+
this.$dispatch('confirm')
|
|
278
|
+
}else{
|
|
279
|
+
if (this.show_data.button.after) {
|
|
280
|
+
this[this.show_data.button.after]()
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
this.$dispatch('confirm')
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// 返回上层
|
|
289
|
+
if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '合同'){
|
|
290
|
+
this.excessive=true
|
|
291
|
+
let data = {
|
|
292
|
+
tablename: 't_apply',
|
|
293
|
+
condition: `f_process_id='${this.show_data.f_process_id}'`
|
|
294
|
+
}
|
|
295
|
+
let http = new HttpResetClass()
|
|
296
|
+
let restp = await http.load(
|
|
297
|
+
'POST',
|
|
298
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
299
|
+
{data: data},
|
|
300
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
301
|
+
)
|
|
302
|
+
restp.data[0].processname = '散户报建流程'
|
|
303
|
+
restp.data[0].defname = '合同签订'
|
|
304
|
+
let _this = this
|
|
305
|
+
this.$dispatch('gotoson', {
|
|
306
|
+
_this: _this,
|
|
307
|
+
title: restp.data[0].defname,
|
|
308
|
+
safe: true
|
|
309
|
+
})
|
|
310
|
+
this.$goto('app-service-control', {selectdata: restp.data[0]}, 'self')
|
|
311
|
+
this.excessive=false
|
|
312
|
+
|
|
313
|
+
} else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
|
|
314
|
+
this.excessive=true
|
|
315
|
+
let data2 = {
|
|
316
|
+
condition: `u.id = ${this.show_data.id}`,
|
|
317
|
+
data: {
|
|
318
|
+
id: Vue.user.id,
|
|
319
|
+
orgid: Vue.user.orgid
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
let http = new HttpResetClass()
|
|
323
|
+
let restp1 = await http.load(
|
|
324
|
+
'POST',
|
|
325
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
|
|
326
|
+
{data: data2},
|
|
327
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
328
|
+
)
|
|
329
|
+
console.log('打印查询的内容',restp1)
|
|
330
|
+
// restp1.data[0].processname = '散户报建流程'
|
|
331
|
+
// restp1.data[0].defname = '报装缴费'
|
|
332
|
+
|
|
333
|
+
let _this = this
|
|
334
|
+
this.$dispatch('gotoson', {
|
|
335
|
+
_this: _this,
|
|
336
|
+
title: restp1.data[0].defname,
|
|
337
|
+
safe: true
|
|
338
|
+
})
|
|
339
|
+
this.$goto('app-service-control', {selectdata: restp1.data[0]}, 'self')
|
|
340
|
+
this.excessive=false
|
|
341
|
+
}else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' && this.show_data.button.button_name === '提交'){
|
|
342
|
+
this.excessive=true
|
|
343
|
+
let data3 = {
|
|
344
|
+
condition: `u.id = ${this.show_data.id}`,
|
|
345
|
+
data: {
|
|
346
|
+
id: Vue.user.id,
|
|
347
|
+
orgid: Vue.user.orgid
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
let http = new HttpResetClass()
|
|
351
|
+
let restp2 = await http.load(
|
|
352
|
+
'POST',
|
|
353
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
|
|
354
|
+
{data: data3},
|
|
355
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
356
|
+
)
|
|
357
|
+
console.log('打印查询的内容',restp2)
|
|
358
|
+
debugger
|
|
359
|
+
if(restp2.length>0){
|
|
360
|
+
let _this = this
|
|
361
|
+
this.$dispatch('gotoson', {
|
|
362
|
+
_this: _this,
|
|
363
|
+
title: restp2.data[0].defname,
|
|
364
|
+
safe: true
|
|
365
|
+
})
|
|
366
|
+
this.$goto('app-service-control', {selectdata: restp2.data[0]}, 'self')
|
|
367
|
+
this.excessive=false
|
|
368
|
+
}else{
|
|
369
|
+
this.excessive=false
|
|
370
|
+
debugger
|
|
371
|
+
this.$dispatch('confirm')
|
|
372
|
+
this.$dispatch('confirm')
|
|
373
|
+
this.$dispatch('confirm')
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
else{
|
|
377
|
+
this.excessive=false
|
|
378
|
+
// console.log('-----')
|
|
379
|
+
this.$dispatch('confirm')
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
},
|
|
384
|
+
async refurbish() {
|
|
385
|
+
let data = {
|
|
386
|
+
workname: this.selectdata.processname
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
let res = await this.$resetpost(
|
|
390
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyGetConfigs`,
|
|
391
|
+
{data: data},
|
|
392
|
+
{resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
|
|
393
|
+
)
|
|
394
|
+
|
|
395
|
+
this.json_datas = res.data
|
|
396
|
+
|
|
397
|
+
let sum = 0
|
|
398
|
+
let jsonData = {}
|
|
399
|
+
if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length === 0) {
|
|
400
|
+
this.$showMessage("网络故障,请刷新页面")
|
|
401
|
+
return
|
|
402
|
+
}
|
|
403
|
+
this.json_datas.activitys.forEach(item => {
|
|
404
|
+
if (this.selectdata.defname === item.title) {
|
|
405
|
+
jsonData = item // 拿到当前节点的json配置信息
|
|
406
|
+
sum++ // 节点名一样的个数
|
|
407
|
+
}
|
|
408
|
+
return this.selectdata.defname === item.title // 拿到当前节点的json配置信息
|
|
409
|
+
})
|
|
410
|
+
|
|
411
|
+
if (sum === 0) {
|
|
412
|
+
this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
|
|
413
|
+
return
|
|
414
|
+
}
|
|
415
|
+
if (sum > 1) {
|
|
416
|
+
this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
|
|
417
|
+
return
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
this.selectdata = Object.assign({}, this.selectdata, jsonData)
|
|
421
|
+
|
|
422
|
+
// fields 字段填充值
|
|
423
|
+
for (const item of this.selectdata.fields) {
|
|
424
|
+
if (!item.value) {
|
|
425
|
+
item.value = null
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
if (!item.value && (item.default || item.default === 0) && item.type !== 'datepicker') {
|
|
429
|
+
if (item.eval) {
|
|
430
|
+
let user = Vue.user
|
|
431
|
+
// 将PC用户信息 替换成 APP的
|
|
432
|
+
item.value = eval(item.default.replace('this.$login.f', 'user'))
|
|
433
|
+
} else {
|
|
434
|
+
item.value = item.default
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
if (this.selectdata[item.field]) {
|
|
439
|
+
// 将json字符串格式化赋值给value
|
|
440
|
+
if (String(this.selectdata[item.field]).startsWith("{")) {
|
|
441
|
+
item.value = JSON.parse(this.selectdata[item.field])
|
|
442
|
+
} else {
|
|
443
|
+
item.value = this.selectdata[item.field]
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
if (this.selectdata[item.field] === 0) {
|
|
447
|
+
item.value = 0
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
// datepicker
|
|
451
|
+
if (item.type === 'datepicker' && !item.value && item.default) {
|
|
452
|
+
item.value = new Date().Format(`${item.format ? item.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
456
|
+
if (item.type === 'select' || item.type === 'checkbox') {
|
|
457
|
+
if (item.param) {
|
|
458
|
+
let temp = this.$appdata.getParam(item.label)
|
|
459
|
+
|
|
460
|
+
if (temp && temp.length > 0) {
|
|
461
|
+
item.options = temp
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
if (item.paramLabel) {
|
|
465
|
+
temp = this.$appdata.getParam(item.paramLabel)
|
|
466
|
+
if (temp && temp.length > 0) {
|
|
467
|
+
item.options = temp
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
console.log("item.ready"+item.ready)
|
|
472
|
+
if (item.ready) {
|
|
473
|
+
item.options = await this[item.ready]()
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
if (item.type === 'checkbox') {
|
|
479
|
+
if (this.selectdata[item.field]) {
|
|
480
|
+
item.value = JSON.parse(this.selectdata[item.field])
|
|
481
|
+
} else {
|
|
482
|
+
item.value = []
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
// 控制组件
|
|
488
|
+
if (this.selectdata.components) {
|
|
489
|
+
this.selectdata.components.forEach(item => {
|
|
490
|
+
if (!item.mark) {
|
|
491
|
+
item.mark = 0
|
|
492
|
+
}
|
|
493
|
+
})
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
// 初始化onetomany
|
|
497
|
+
if (this.selectdata.onetomany) {
|
|
498
|
+
for (const item of this.selectdata.onetomany) {
|
|
499
|
+
let res = null
|
|
500
|
+
if (item.queryEvent) {
|
|
501
|
+
res = this[item.queryEvent]()
|
|
502
|
+
} else {
|
|
503
|
+
let http = new HttpResetClass()
|
|
504
|
+
let data = {
|
|
505
|
+
tablename: item.tables[0],
|
|
506
|
+
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
507
|
+
}
|
|
508
|
+
res = await http.load(
|
|
509
|
+
'POST',
|
|
510
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
511
|
+
// `rs/sql/apply_singleTable`,
|
|
512
|
+
{data: data},
|
|
513
|
+
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
514
|
+
)
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
item.rows = res.data
|
|
518
|
+
|
|
519
|
+
// 初始化onetomany中的fields
|
|
520
|
+
for (const field of item.fields) {
|
|
521
|
+
if (!field.value) {
|
|
522
|
+
if (field.value !== 0) {
|
|
523
|
+
field.value = null
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
if (field.default || field.default === 0) {
|
|
528
|
+
field.value = field.default
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
// datepicker
|
|
532
|
+
if (field.type === 'datepicker' && !field.value && field.default) {
|
|
533
|
+
field.value = new Date().Format(`${field.format ? field.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
if (field.type === 'select') {
|
|
537
|
+
|
|
538
|
+
if (field.param) {
|
|
539
|
+
let temp = this.$appdata.getParam(field.label)
|
|
540
|
+
|
|
541
|
+
if (temp && temp.length > 0) {
|
|
542
|
+
field.options = temp
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
if (field.paramLabel) {
|
|
546
|
+
temp = this.$appdata.getParam(field.paramLabel)
|
|
547
|
+
if (temp && temp.length > 0) {
|
|
548
|
+
item.options = temp
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
// 初始化 buttons_fields
|
|
559
|
+
for (const item of this.selectdata.buttons) {
|
|
560
|
+
if (item.button_name === '下发') {
|
|
561
|
+
let data = {
|
|
562
|
+
source: item.source,
|
|
563
|
+
userid: Vue.user.id
|
|
564
|
+
// userid: '51953'
|
|
565
|
+
}
|
|
566
|
+
if (item.sourceMethod) {
|
|
567
|
+
data.source = this[item.sourceMethod]()
|
|
568
|
+
}
|
|
569
|
+
if (!data.source) {
|
|
570
|
+
this.$showMessage("请配置获取人员表达式")
|
|
571
|
+
return
|
|
572
|
+
}
|
|
573
|
+
let res = await this.$resetpost(
|
|
574
|
+
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
575
|
+
// `rs/search`,
|
|
576
|
+
{data: data},
|
|
577
|
+
{resolveMsg: null, rejectMsg: '下发人员查询失败!!!'}
|
|
578
|
+
)
|
|
579
|
+
|
|
580
|
+
let options = res.data.map(source => {
|
|
581
|
+
return {
|
|
582
|
+
"label": source.name,
|
|
583
|
+
"value": source.id
|
|
584
|
+
}
|
|
585
|
+
})
|
|
586
|
+
|
|
587
|
+
if (item.button_fields.length !== 1) {
|
|
588
|
+
this.$showMessage("下发有且只能有一个字段!!!")
|
|
589
|
+
return
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
item.button_fields[0].options = options
|
|
593
|
+
}
|
|
594
|
+
if (item.button_fields) {
|
|
595
|
+
item.button_fields.forEach(x => {
|
|
596
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
597
|
+
if (x.type === 'select') {
|
|
598
|
+
|
|
599
|
+
if (x.param) {
|
|
600
|
+
let temp = this.$appdata.getParam(x.label)
|
|
601
|
+
|
|
602
|
+
if (temp && temp.length > 0) {
|
|
603
|
+
x.options = temp
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
if (x.paramLabel) {
|
|
607
|
+
temp = this.$appdata.getParam(x.paramLabel)
|
|
608
|
+
if (temp && temp.length > 0) {
|
|
609
|
+
x.options = temp
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
}
|
|
615
|
+
})
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
// 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
|
|
619
|
+
let temp = JSON.parse(JSON.stringify(this.selectdata))
|
|
620
|
+
this.show_data = temp
|
|
621
|
+
for (const item of this.show_data.fields) {
|
|
622
|
+
if(item.label=='气价名称' && !isEmpty(this.show_data.f_price_name)){
|
|
623
|
+
item.options.forEach(x=>{
|
|
624
|
+
if(x.label==this.show_data.f_price_name){
|
|
625
|
+
item.value=x.value
|
|
626
|
+
}
|
|
627
|
+
})
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
if(!this.show_data.showfei){
|
|
631
|
+
this.$set('show_data.showfei', '未收费')
|
|
632
|
+
}
|
|
633
|
+
//this.show_data.showfei=false
|
|
634
|
+
|
|
635
|
+
this.$nextTick(() => {
|
|
636
|
+
this.showview = true
|
|
637
|
+
})
|
|
638
|
+
},
|
|
639
|
+
signClean () {
|
|
640
|
+
this.selectdata.f_construction_sign = null
|
|
641
|
+
},
|
|
642
|
+
signSuccess (fileUrl) {
|
|
643
|
+
console.log('==============签字回调==================')
|
|
644
|
+
console.log(fileUrl)
|
|
645
|
+
this.selectdata.f_construction_sign = fileUrl
|
|
646
|
+
},
|
|
647
|
+
// 金额转大写
|
|
648
|
+
smalltoBIG(n) {
|
|
649
|
+
let fraction = ['角', '分'];
|
|
650
|
+
let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
|
|
651
|
+
let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
|
|
652
|
+
let head = n < 0 ? '欠' : '';
|
|
653
|
+
n = Math.abs(n);
|
|
654
|
+
|
|
655
|
+
let s = '';
|
|
656
|
+
|
|
657
|
+
for (var i = 0; i < fraction.length; i++) {
|
|
658
|
+
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
|
|
659
|
+
}
|
|
660
|
+
s = s || '整';
|
|
661
|
+
n = Math.floor(n);
|
|
662
|
+
|
|
663
|
+
for (var i = 0; i < unit[0].length && n > 0; i++) {
|
|
664
|
+
let p = '';
|
|
665
|
+
for (var j = 0; j < unit[1].length && n > 0; j++) {
|
|
666
|
+
p = digit[n % 10] + unit[1][j] + p;
|
|
667
|
+
n = Math.floor(n / 10);
|
|
668
|
+
}
|
|
669
|
+
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
|
|
670
|
+
}
|
|
671
|
+
return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
|
|
672
|
+
},
|
|
673
|
+
getLableValue(label) {
|
|
674
|
+
for (const item of this.show_data.fields) {
|
|
675
|
+
if (item.label === label && item.type !== 'number') {
|
|
676
|
+
return item.value || ''
|
|
677
|
+
}
|
|
678
|
+
if (item.label === label && item.type === 'number') {
|
|
679
|
+
return item.value || 0
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
getLableOptions(label) {
|
|
684
|
+
for (const item of this.show_data.fields) {
|
|
685
|
+
if (item.label === label) {
|
|
686
|
+
return item.options
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
hideLabels(...labels) {
|
|
691
|
+
for (const item of this.show_data.fields) {
|
|
692
|
+
if (labels.includes(item.label)) {
|
|
693
|
+
item.hidden = true
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
requiredLabels(...labels) {
|
|
698
|
+
for (const item of this.show_data.fields) {
|
|
699
|
+
if (labels.includes(item.label)) {
|
|
700
|
+
item.required = true
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
electiveLabels(...labels) {
|
|
705
|
+
for (const item of this.show_data.fields) {
|
|
706
|
+
if (labels.includes(item.label)) {
|
|
707
|
+
item.required = false
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
showLabels(...labels) {
|
|
712
|
+
for (const item of this.show_data.fields) {
|
|
713
|
+
if (labels.includes(item.label)) {
|
|
714
|
+
item.hidden = false
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
setLabelValue(label, value) {
|
|
719
|
+
for (const item of this.show_data.fields) {
|
|
720
|
+
if (item.label === label) {
|
|
721
|
+
item.value = value
|
|
722
|
+
this.show_data[item.field] = value
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
setLabelOptions(label, options) {
|
|
727
|
+
for (const item of this.show_data.fields) {
|
|
728
|
+
if (item.label === label) {
|
|
729
|
+
item.options = options
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
disabledButtons(...buttons) {
|
|
734
|
+
for (const item of this.show_data.buttons) {
|
|
735
|
+
if (buttons.includes(item.button_name)) {
|
|
736
|
+
item.disabled = true
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
},
|
|
740
|
+
enableButtons(...buttons) {
|
|
741
|
+
for (const item of this.show_data.buttons) {
|
|
742
|
+
if (buttons.includes(item.button_name)) {
|
|
743
|
+
item.disabled = false
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
showButtons(...buttons) {
|
|
748
|
+
for (const item of this.show_data.buttons) {
|
|
749
|
+
if (buttons.includes(item.button_name)) {
|
|
750
|
+
item.hidden = false
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
hideButtons(...buttons) {
|
|
755
|
+
for (const item of this.show_data.buttons) {
|
|
756
|
+
if (buttons.includes(item.button_name)) {
|
|
757
|
+
item.hidden = true
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
},
|
|
761
|
+
async streetChange () {
|
|
762
|
+
if (isEmpty(this.show_data.f_street)) {
|
|
763
|
+
return
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
let data = {
|
|
767
|
+
tablename: 't_area',
|
|
768
|
+
// condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.show_data.f_street}'`
|
|
769
|
+
condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}'`
|
|
770
|
+
}
|
|
771
|
+
let http = new HttpResetClass()
|
|
772
|
+
let res = await http.load(
|
|
773
|
+
'POST',
|
|
774
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
775
|
+
{data: data},
|
|
776
|
+
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
777
|
+
)
|
|
778
|
+
|
|
779
|
+
this.setLabelOptions('集收单位', res.data.map(item => {
|
|
780
|
+
return {
|
|
781
|
+
label: item.f_residential_area,
|
|
782
|
+
value: item.f_residential_area
|
|
783
|
+
}
|
|
784
|
+
}))
|
|
785
|
+
},
|
|
786
|
+
async areaChange () {
|
|
787
|
+
if (isEmpty(this.show_data.f_residential_area)) {
|
|
788
|
+
return
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
let data = {
|
|
792
|
+
tablename: 't_area',
|
|
793
|
+
condition: `f_filialeid = '${this.$login.f.orgid}' and f_residential_area = '${this.show_data.f_residential_area}'`
|
|
794
|
+
}
|
|
795
|
+
let http = new HttpResetClass()
|
|
796
|
+
let res = await http.load(
|
|
797
|
+
'POST',
|
|
798
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
799
|
+
{data: data},
|
|
800
|
+
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
801
|
+
)
|
|
802
|
+
if(res.data.length>0){
|
|
803
|
+
this.setLabelValue('街道/乡镇', res.data[0].f_street)
|
|
804
|
+
this.setLabelValue('区/县', res.data[0].f_pcd)
|
|
805
|
+
this.setLabelValue('片区', res.data[0].f_slice_area)
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
// 获取集收单位
|
|
809
|
+
async getArea () {
|
|
810
|
+
let data = {
|
|
811
|
+
tablename: 't_area',
|
|
812
|
+
condition: `f_filialeid = '${Vue.user.orgid}'`
|
|
813
|
+
}
|
|
814
|
+
let http = new HttpResetClass()
|
|
815
|
+
let res = await http.load(
|
|
816
|
+
'POST',
|
|
817
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
818
|
+
{data: data},
|
|
819
|
+
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
820
|
+
)
|
|
821
|
+
|
|
822
|
+
return res.data.map(item => {
|
|
823
|
+
return {
|
|
824
|
+
label: item.f_residential_area,
|
|
825
|
+
value: item.f_residential_area
|
|
826
|
+
}
|
|
827
|
+
})
|
|
828
|
+
},
|
|
829
|
+
async getAreaNew () {
|
|
830
|
+
let data = {
|
|
831
|
+
tablename: 't_area',
|
|
832
|
+
condition: `f_orgid = '${this.$login.f.orgid}'`
|
|
833
|
+
}
|
|
834
|
+
let http = new HttpResetClass()
|
|
835
|
+
let res = await http.load(
|
|
836
|
+
'POST',
|
|
837
|
+
`rs/sql/apply_singleTable`,
|
|
838
|
+
{data: data},
|
|
839
|
+
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
840
|
+
)
|
|
841
|
+
let area=[]
|
|
842
|
+
for (const item of res.data) {
|
|
843
|
+
area.push({
|
|
844
|
+
label: item.f_residential_area,
|
|
845
|
+
value: item.f_residential_area
|
|
846
|
+
})
|
|
847
|
+
}
|
|
848
|
+
for (const item of this.show_data.fields) {
|
|
849
|
+
if (item.label ==='集收单位') {
|
|
850
|
+
item.options = area
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
async pcdChange () {
|
|
855
|
+
if (isEmpty(this.show_data.f_pcd)) {
|
|
856
|
+
return
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
let data = {
|
|
860
|
+
tablename: 't_street',
|
|
861
|
+
// condition: `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
|
|
862
|
+
condition: `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
|
|
863
|
+
}
|
|
864
|
+
let f_address_type = this.getLableValue('地址类型')
|
|
865
|
+
|
|
866
|
+
if (f_address_type === '民用市区') {
|
|
867
|
+
// data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
|
|
868
|
+
data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
|
|
869
|
+
}
|
|
870
|
+
if (f_address_type === '民用乡镇') {
|
|
871
|
+
// data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
|
|
872
|
+
data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
let http = new HttpResetClass()
|
|
876
|
+
let res = await http.load(
|
|
877
|
+
'POST',
|
|
878
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
879
|
+
{data: data},
|
|
880
|
+
{resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
|
|
881
|
+
)
|
|
882
|
+
|
|
883
|
+
this.setLabelOptions('街道/乡镇', res.data.map(item => {
|
|
884
|
+
return {
|
|
885
|
+
label: item.f_street,
|
|
886
|
+
value: item.f_street
|
|
887
|
+
}
|
|
888
|
+
}))
|
|
889
|
+
},
|
|
890
|
+
async addressInitialization () {
|
|
891
|
+
//this.$getConfig(this, 'UserAddress')
|
|
892
|
+
//获取地址配置文件
|
|
893
|
+
try {
|
|
894
|
+
let res = await new HttpResetClass().load('get',`${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`,null,{resolveMsg: null, rejectMsg: null})
|
|
895
|
+
Object.assign(this.config, res.data)
|
|
896
|
+
} catch (error) {
|
|
897
|
+
console.log("未获取到地址信息")
|
|
898
|
+
}
|
|
899
|
+
console.log("???????????不走了吗!")
|
|
900
|
+
let f_address_type = this.show_data.f_address_type
|
|
901
|
+
|
|
902
|
+
for (const item of this.show_data.fields) {
|
|
903
|
+
if (f_address_type === '民用市区') {
|
|
904
|
+
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
|
|
905
|
+
item.hidden = false
|
|
906
|
+
item.required = true
|
|
907
|
+
}
|
|
908
|
+
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
|
|
909
|
+
item.hidden = false
|
|
910
|
+
item.required = false
|
|
911
|
+
}
|
|
912
|
+
if (item.label === '地址') {
|
|
913
|
+
item.readonly = true
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
if (f_address_type === '民用乡镇') {
|
|
917
|
+
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
|
|
918
|
+
item.hidden = false
|
|
919
|
+
item.required = true
|
|
920
|
+
}
|
|
921
|
+
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
|
|
922
|
+
item.hidden = false
|
|
923
|
+
item.required = false
|
|
924
|
+
}
|
|
925
|
+
if (item.label === '楼层') {
|
|
926
|
+
item.hidden = true
|
|
927
|
+
item.required = false
|
|
928
|
+
}
|
|
929
|
+
if (item.label === '地址') {
|
|
930
|
+
item.readonly = true
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
if (f_address_type === '特殊地址') {
|
|
934
|
+
if (item.label === '区/县' || item.label === '街道/乡镇') {
|
|
935
|
+
item.hidden = false
|
|
936
|
+
item.required = true
|
|
937
|
+
}
|
|
938
|
+
if (item.label === '集收单位') {
|
|
939
|
+
item.hidden = false
|
|
940
|
+
item.required = false
|
|
941
|
+
}
|
|
942
|
+
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
|
|
943
|
+
item.hidden = true
|
|
944
|
+
item.required = false
|
|
945
|
+
}
|
|
946
|
+
if (item.label === '地址') {
|
|
947
|
+
item.readonly = false
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
if (this.show_data.f_apply_source === '线下发起' && item.label === '预约地址') {
|
|
952
|
+
item.hidden = true
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
|
|
957
|
+
async checkDuplicate(index) {
|
|
958
|
+
let http = new HttpResetClass()
|
|
959
|
+
let data = {
|
|
960
|
+
tablename: 't_apply',
|
|
961
|
+
condition: `${this.show_data.fields[index].field} = '${this.show_data.fields[index].value}'`
|
|
962
|
+
}
|
|
963
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
|
|
964
|
+
resolveMsg: null,
|
|
965
|
+
rejectMsg: `${this.show_data.fields[index].label}查询失败`
|
|
966
|
+
})
|
|
967
|
+
if (res.data.length > 0) {
|
|
968
|
+
this.show_data.fields[index].value = null
|
|
969
|
+
this.$showAlert(`${this.show_data.fields[index].label}已存在!!!`, 'warning', 3000)
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
async breakControl () {
|
|
973
|
+
if (this.show_data.id) {
|
|
974
|
+
let data = {
|
|
975
|
+
condition: `u.id = ${this.show_data.id}`,
|
|
976
|
+
data: {
|
|
977
|
+
id: Vue.user.id,
|
|
978
|
+
orgid: Vue.user.orgid
|
|
979
|
+
// id: '51953',
|
|
980
|
+
// orgid: '10101'
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
let res = await this.$resetpost(
|
|
984
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
|
|
985
|
+
// `rs/sql/checkuser`,
|
|
986
|
+
{data: data},
|
|
987
|
+
{resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
|
|
988
|
+
)
|
|
989
|
+
|
|
990
|
+
this.selectdata = res.data[0]
|
|
991
|
+
} else {
|
|
992
|
+
this.selectdata = servicedata
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
this.refurbish()
|
|
996
|
+
},
|
|
997
|
+
async addressTips () {
|
|
998
|
+
let res = ''
|
|
999
|
+
if (this.show_data.f_apply_type === '报警器报建' || this.show_data.f_apply_type === '工商业报警器报建') {
|
|
1000
|
+
res = await this.$showMessage('报警器报建下单后将不能修改用户信息,请确认用户信息地址等是否正确,如不完善可在档案中进行修正!!!')
|
|
1001
|
+
}else{
|
|
1002
|
+
res = await this.$showMessage('增容改管下单后将不能修改用户信息,请确认用户信息地址等是否正确,如不完善可在档案中进行修正!!!')
|
|
1003
|
+
}
|
|
1004
|
+
if (res == 'confirm') {
|
|
1005
|
+
return
|
|
1006
|
+
}
|
|
1007
|
+
throw '用户信息确认!!!'
|
|
1008
|
+
},
|
|
1009
|
+
// 缴费前置
|
|
1010
|
+
chargeBefore () {
|
|
1011
|
+
if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
|
|
1012
|
+
this.$showAlert('费用未结清!!!', 'warning', 3000)
|
|
1013
|
+
throw '费用未结清!!!'
|
|
1014
|
+
}
|
|
1015
|
+
},
|
|
1016
|
+
// 施工前置
|
|
1017
|
+
async constructionBefore () {
|
|
1018
|
+
let http = new HttpResetClass()
|
|
1019
|
+
let data = {
|
|
1020
|
+
condition: `ui.f_process_id = '${this.show_data.f_process_id}' and uf.f_meter_classify is null and f_meternumber is null`
|
|
1021
|
+
}
|
|
1022
|
+
let res = await http.load(
|
|
1023
|
+
'POST',
|
|
1024
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/countApplyUserinfo`,
|
|
1025
|
+
{data: data},
|
|
1026
|
+
{
|
|
1027
|
+
resolveMsg: null,
|
|
1028
|
+
rejectMsg: '安装明细查询失败!!!'
|
|
1029
|
+
})
|
|
1030
|
+
if (res.data[0].num > 0) {
|
|
1031
|
+
this.$showAlert(`还有${res.data[0].num}户未安装,无法提交`, 'warning', 3000)
|
|
1032
|
+
throw `还有${res.data[0].num}户未安装,无法提交`
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
changePipeBuild () {
|
|
1036
|
+
if (this.selectdata.f_process_dep === '工程部') {
|
|
1037
|
+
return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
|
|
1038
|
+
}
|
|
1039
|
+
if (this.selectdata.f_process_dep === '运营部') {
|
|
1040
|
+
return 'this.getParentByType($organization$).getChildByName($运营部报装$).getChildren()'
|
|
1041
|
+
}
|
|
1042
|
+
return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
|
|
1043
|
+
},
|
|
1044
|
+
async getPrice (f_price_id) {
|
|
1045
|
+
console.log('=======================')
|
|
1046
|
+
console.log(f_price_id)
|
|
1047
|
+
|
|
1048
|
+
let data = {
|
|
1049
|
+
condition: `sp.f_filialeid = '${Vue.user.orgid}'`
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
if (!isEmpty(f_price_id)) {
|
|
1053
|
+
data.condition = `sp.f_filialeid = '${Vue.user.orgid}' and sp.f_price_id = ${f_price_id}`
|
|
1054
|
+
}
|
|
1055
|
+
let http = new HttpResetClass()
|
|
1056
|
+
let res = await http.load(
|
|
1057
|
+
'POST',
|
|
1058
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/applyGetPrice`,
|
|
1059
|
+
{data: data},
|
|
1060
|
+
{resolveMsg: null, rejectMsg: '气价查询失败!!!'}
|
|
1061
|
+
)
|
|
1062
|
+
|
|
1063
|
+
return res.data.map(item => {
|
|
1064
|
+
return {
|
|
1065
|
+
label: item.f_price_name,
|
|
1066
|
+
value: item
|
|
1067
|
+
}
|
|
1068
|
+
})
|
|
1069
|
+
},
|
|
1070
|
+
//获取抄表册
|
|
1071
|
+
async getMeterBook () {
|
|
1072
|
+
let data = {
|
|
1073
|
+
tablename: 't_meter_book',
|
|
1074
|
+
condition: `f_book_state='有效' `
|
|
1075
|
+
}
|
|
1076
|
+
let http = new HttpResetClass()
|
|
1077
|
+
let res = await http.load(
|
|
1078
|
+
'POST',
|
|
1079
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1080
|
+
{data: data},
|
|
1081
|
+
{resolveMsg: null, rejectMsg: '抄表册查询失败!!!'}
|
|
1082
|
+
)
|
|
1083
|
+
return res.data.map(item => {
|
|
1084
|
+
return {
|
|
1085
|
+
label: item.f_book_name,
|
|
1086
|
+
value: item.f_book_code
|
|
1087
|
+
}
|
|
1088
|
+
})
|
|
1089
|
+
},
|
|
1090
|
+
async getDesignerPeople () {
|
|
1091
|
+
let data = {
|
|
1092
|
+
source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
|
|
1093
|
+
userid: Vue.user.id
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
let http = new HttpResetClass()
|
|
1097
|
+
let res = await http.load(
|
|
1098
|
+
'POST',
|
|
1099
|
+
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
1100
|
+
{data: data},
|
|
1101
|
+
{resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
|
|
1102
|
+
)
|
|
1103
|
+
|
|
1104
|
+
return res.data.map(item => {
|
|
1105
|
+
return {
|
|
1106
|
+
label: item.name,
|
|
1107
|
+
value: item.id
|
|
1108
|
+
}
|
|
1109
|
+
})
|
|
1110
|
+
},
|
|
1111
|
+
async surveyStopApply () {
|
|
1112
|
+
console.log('终止报建!!!!!')
|
|
1113
|
+
|
|
1114
|
+
this.show_data.f_stop_reason = '现场勘察不符合报装条件'
|
|
1115
|
+
|
|
1116
|
+
let data = {
|
|
1117
|
+
data: this.show_data,
|
|
1118
|
+
user: Vue.user
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
let res = await this.$resetpost(
|
|
1122
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/surveyStopApply`,
|
|
1123
|
+
{data: data},
|
|
1124
|
+
{resolveMsg: null, rejectMsg: '终止报建失败!!!'}
|
|
1125
|
+
)
|
|
1126
|
+
if(res.data==200){
|
|
1127
|
+
this.$dispatch('loadPage')
|
|
1128
|
+
this.$showMessage('终止报建成功!!!')
|
|
1129
|
+
this.$back()
|
|
1130
|
+
throw '终止报建!!!'
|
|
1131
|
+
}else{
|
|
1132
|
+
this.$showMessage('终止报建失败!!!')
|
|
1133
|
+
}
|
|
1134
|
+
},
|
|
1135
|
+
async getDevInfo () {
|
|
1136
|
+
let data = {
|
|
1137
|
+
tablename: 't_dev_info',
|
|
1138
|
+
condition: `f_orgid = '${Vue.user.orgid}'`
|
|
1139
|
+
}
|
|
1140
|
+
let http = new HttpResetClass()
|
|
1141
|
+
let res = await http.load(
|
|
1142
|
+
'POST',
|
|
1143
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1144
|
+
{data: data},
|
|
1145
|
+
{resolveMsg: null, rejectMsg: '公司查询失败!!!'}
|
|
1146
|
+
)
|
|
1147
|
+
|
|
1148
|
+
return res.data.map(item => {
|
|
1149
|
+
return {
|
|
1150
|
+
label: item.f_dev_name,
|
|
1151
|
+
value: item.f_dev_name
|
|
1152
|
+
}
|
|
1153
|
+
})
|
|
1154
|
+
},
|
|
1155
|
+
// 获取片区
|
|
1156
|
+
async getSliceArea () {
|
|
1157
|
+
let data = {
|
|
1158
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
|
1159
|
+
userid: Vue.user.id
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
let http = new HttpResetClass()
|
|
1163
|
+
let res = await http.load(
|
|
1164
|
+
'POST',
|
|
1165
|
+
`${this.$androidUtil.getProxyUrl()}/rs/search`,
|
|
1166
|
+
{data: data},
|
|
1167
|
+
{resolveMsg: null, rejectMsg: '片区查询失败!!!'}
|
|
1168
|
+
)
|
|
1169
|
+
|
|
1170
|
+
return res.data.map(item => {
|
|
1171
|
+
return {
|
|
1172
|
+
label: item.name,
|
|
1173
|
+
value: item.name
|
|
1174
|
+
}
|
|
1175
|
+
})
|
|
1176
|
+
},
|
|
1177
|
+
// 获取区县
|
|
1178
|
+
async getPcd () {
|
|
1179
|
+
let data = {
|
|
1180
|
+
tablename: 't_pcd',
|
|
1181
|
+
condition: `f_filialeid = '${Vue.user.orgid}'`
|
|
1182
|
+
}
|
|
1183
|
+
let http = new HttpResetClass()
|
|
1184
|
+
let res = await http.load(
|
|
1185
|
+
'POST',
|
|
1186
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1187
|
+
{data: data},
|
|
1188
|
+
{resolveMsg: null, rejectMsg: '区县查询失败!!!'}
|
|
1189
|
+
)
|
|
1190
|
+
|
|
1191
|
+
return res.data.map(item => {
|
|
1192
|
+
return {
|
|
1193
|
+
label: item.f_pcd,
|
|
1194
|
+
value: item.f_pcd
|
|
1195
|
+
}
|
|
1196
|
+
})
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
},
|
|
1200
|
+
events: {
|
|
1201
|
+
async 'startSignActivity'() {
|
|
1202
|
+
this.hideButtons('签字')
|
|
1203
|
+
let data = {
|
|
1204
|
+
apply: this.show_data,
|
|
1205
|
+
user: Vue.user
|
|
1206
|
+
}
|
|
1207
|
+
let res = await this.$resetpost(
|
|
1208
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/startSignActivity`,
|
|
1209
|
+
{data: data},
|
|
1210
|
+
{resolveMsg: '签字流程已发起!!!', rejectMsg: '签字发起失败!!!'}
|
|
1211
|
+
)
|
|
1212
|
+
this.breakControl()
|
|
1213
|
+
},
|
|
1214
|
+
'complyInstallation' (index) {
|
|
1215
|
+
if (this.show_data.f_is_have === '否') {
|
|
1216
|
+
this.hideButtons('提交', '出图', '缴费')
|
|
1217
|
+
this.showButtons('终止')
|
|
1218
|
+
}
|
|
1219
|
+
if (this.show_data.f_is_have === '是') {
|
|
1220
|
+
this.hideButtons('终止')
|
|
1221
|
+
this.showButtons('提交', '出图', '缴费')
|
|
1222
|
+
}
|
|
1223
|
+
},
|
|
1224
|
+
async 'igniteDispatchReadyEvent' () {
|
|
1225
|
+
let data = {
|
|
1226
|
+
tablename: 'activityins',
|
|
1227
|
+
condition: `processid = '${this.show_data.f_process_id}' and defname = '工程施工' and state = '结束'`
|
|
1228
|
+
}
|
|
1229
|
+
let http = new HttpResetClass()
|
|
1230
|
+
let res = await http.load(
|
|
1231
|
+
'POST',
|
|
1232
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1233
|
+
{data: data},
|
|
1234
|
+
{resolveMsg: null, rejectMsg: '查询失败!!!'}
|
|
1235
|
+
)
|
|
1236
|
+
if (res.data.length <= 0) {
|
|
1237
|
+
console.log('+++++++++++++++++++++++++++++')
|
|
1238
|
+
console.log('没有施工,不能退回')
|
|
1239
|
+
this.hideButtons('退回')
|
|
1240
|
+
}
|
|
1241
|
+
},
|
|
1242
|
+
'breakControl' (val) {
|
|
1243
|
+
this.breakControl(val)
|
|
1244
|
+
},
|
|
1245
|
+
// 检查重复
|
|
1246
|
+
'checkRepeat' (index) {
|
|
1247
|
+
this.checkDuplicate(index)
|
|
1248
|
+
},
|
|
1249
|
+
'buildReadyEvent' () {
|
|
1250
|
+
this.setLabelValue('施工单位', Vue.user.name)
|
|
1251
|
+
this.setLabelValue('施工安装时间', new Date().Format('yyyy-MM-dd HH:mm:ss'))
|
|
1252
|
+
},
|
|
1253
|
+
// 选择材料
|
|
1254
|
+
async materialNameChenge (index, fieldIndex) {
|
|
1255
|
+
let material = this.show_data.onetomany[index].fields[fieldIndex].value
|
|
1256
|
+
|
|
1257
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
1258
|
+
if (material[item.field]) {
|
|
1259
|
+
item.value = material[item.field]
|
|
1260
|
+
}
|
|
1261
|
+
})
|
|
1262
|
+
},
|
|
1263
|
+
// 打开模态框获取材料
|
|
1264
|
+
async 'getMaterialName' (index) {
|
|
1265
|
+
let data = {
|
|
1266
|
+
condition: `1=1`
|
|
1267
|
+
}
|
|
1268
|
+
let http = new HttpResetClass()
|
|
1269
|
+
let res = await http.load(
|
|
1270
|
+
'POST',
|
|
1271
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/getStockMaterial`,
|
|
1272
|
+
{data: data},
|
|
1273
|
+
{resolveMsg: null, rejectMsg: '材料查询失败!!!'}
|
|
1274
|
+
)
|
|
1275
|
+
|
|
1276
|
+
this.show_data.onetomany[index].fields.forEach(field => {
|
|
1277
|
+
if (field.label === '选择材料') {
|
|
1278
|
+
field.options = res.data.map(item => {
|
|
1279
|
+
return {
|
|
1280
|
+
'label': `${item.f_material_name}--${item.f_material_style}--${item.f_material_unit}`,
|
|
1281
|
+
'value': item
|
|
1282
|
+
}
|
|
1283
|
+
})
|
|
1284
|
+
}
|
|
1285
|
+
})
|
|
1286
|
+
},
|
|
1287
|
+
// 选择气价
|
|
1288
|
+
'priceChange' (index) {
|
|
1289
|
+
if (isEmpty(this.show_data.stairPrice)) {
|
|
1290
|
+
return
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
let stairPrice = this.getLableValue('气价名称')
|
|
1294
|
+
|
|
1295
|
+
this.setLabelValue('气价类型', stairPrice.f_price_type)
|
|
1296
|
+
this.setLabelValue('用气性质', stairPrice.f_gasproperties)
|
|
1297
|
+
this.setLabelValue('价格', stairPrice.f_price)
|
|
1298
|
+
this.setLabelValue('客户类型', stairPrice.f_user_type)
|
|
1299
|
+
this.show_data.f_price_id = stairPrice.id
|
|
1300
|
+
this.show_data.f_price_name = stairPrice.f_price_name
|
|
1301
|
+
},
|
|
1302
|
+
// 是否购买保险
|
|
1303
|
+
isInsureChange (index) {
|
|
1304
|
+
let f_is_insure = this.getLableValue('是否购买保险')
|
|
1305
|
+
for (const item of this.show_data.fields) {
|
|
1306
|
+
if (f_is_insure === '是') {
|
|
1307
|
+
if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额') {
|
|
1308
|
+
item.hidden = false
|
|
1309
|
+
item.required = true
|
|
1310
|
+
}
|
|
1311
|
+
if (item.label === '保险备注') {
|
|
1312
|
+
item.hidden = false
|
|
1313
|
+
}
|
|
1314
|
+
} else {
|
|
1315
|
+
if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
|
|
1316
|
+
item.hidden = true
|
|
1317
|
+
item.required = false
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
},
|
|
1322
|
+
// 通气点火初始化
|
|
1323
|
+
async 'gasReadyEvent' () {
|
|
1324
|
+
console.log('----通气点火初始化----')
|
|
1325
|
+
if (!isEmpty(this.show_data.f_price_id)) {
|
|
1326
|
+
let priceList = await this.getPrice(this.show_data.f_price_id)
|
|
1327
|
+
this.setLabelValue('气价名称', priceList[0].value)
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
let data = {
|
|
1331
|
+
tablename: 't_userfees',
|
|
1332
|
+
condition: `f_orgid = '${Vue.user.orgid}' and f_userinfo_id = '${this.show_data.f_userinfo_id}' and f_state = '待执行'`
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
console.log('---------查询是否有待执行保险-----------')
|
|
1336
|
+
let http = new HttpResetClass()
|
|
1337
|
+
let res = await http.load(
|
|
1338
|
+
'POST',
|
|
1339
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1340
|
+
{data: data},
|
|
1341
|
+
{resolveMsg: null, rejectMsg: '保险查询失败!!!'}
|
|
1342
|
+
)
|
|
1343
|
+
if (res.data.length > 0) {
|
|
1344
|
+
console.log('----------具有待执行保险------------')
|
|
1345
|
+
this.setLabelValue('待执行保险', '是')
|
|
1346
|
+
for (const item of this.show_data.fields) {
|
|
1347
|
+
if (item.label === '保费开始日期' || item.label === '是否购买保险' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
|
|
1348
|
+
item.hidden = true
|
|
1349
|
+
item.required = false
|
|
1350
|
+
item.value = null
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
console.log('----------具有待执行保险------------')
|
|
1354
|
+
} else {
|
|
1355
|
+
console.log('----------不有待执行保险------------')
|
|
1356
|
+
this.setLabelValue('待执行保险', '否')
|
|
1357
|
+
for (const item of this.show_data.fields) {
|
|
1358
|
+
if (item.label === '是否购买保险' || item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
|
|
1359
|
+
item.hidden = false
|
|
1360
|
+
item.required = true
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
console.log('----------具有待执行保险------------')
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
// 初始化显示内容
|
|
1367
|
+
let f_is_insure = this.getLableValue('是否购买保险')
|
|
1368
|
+
for (const item of this.show_data.fields) {
|
|
1369
|
+
if (f_is_insure === '是') {
|
|
1370
|
+
if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额') {
|
|
1371
|
+
item.hidden = false
|
|
1372
|
+
item.required = true
|
|
1373
|
+
}
|
|
1374
|
+
if (item.label === '保险备注') {
|
|
1375
|
+
item.hidden = false
|
|
1376
|
+
}
|
|
1377
|
+
// 本期保费到期时间默认一年
|
|
1378
|
+
if (isEmpty(this.selectdata.f_ins_expiration_date)) {
|
|
1379
|
+
let f_ins_expiration_date = new Date().setFullYear(new Date().getFullYear() + 1)
|
|
1380
|
+
this.setLabelValue("保费结束日期", new Date(f_ins_expiration_date).Format('yyyy-MM-dd'))
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
if (f_is_insure === '否') {
|
|
1384
|
+
if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
|
|
1385
|
+
item.hidden = true
|
|
1386
|
+
item.required = false
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
},
|
|
1391
|
+
// 合同金额失去焦点
|
|
1392
|
+
async 'contractMoneyChange' (index) {
|
|
1393
|
+
let data = {
|
|
1394
|
+
operator: '+',
|
|
1395
|
+
num1: this.show_data.f_contract_money || 0,
|
|
1396
|
+
num2: this.getLableValue('追加金额') || 0
|
|
1397
|
+
}
|
|
1398
|
+
let res = await this.$resetpost(
|
|
1399
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/compute`,
|
|
1400
|
+
{data: data},
|
|
1401
|
+
{resolveMsg: null, rejectMsg: '金额计算失败!!!'}
|
|
1402
|
+
)
|
|
1403
|
+
|
|
1404
|
+
this.setLabelValue('应交金额', res.data)
|
|
1405
|
+
},
|
|
1406
|
+
// ===========================================
|
|
1407
|
+
async 'areaChange' () {
|
|
1408
|
+
if (isEmpty(this.show_data.f_residential_area)) {
|
|
1409
|
+
return
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
let data = {
|
|
1413
|
+
tablename: 't_area',
|
|
1414
|
+
condition: `f_filialeid = '${this.$login.f.orgid}' and f_residential_area = '${this.show_data.f_residential_area}'`
|
|
1415
|
+
}
|
|
1416
|
+
let http = new HttpResetClass()
|
|
1417
|
+
let res = await http.load(
|
|
1418
|
+
'POST',
|
|
1419
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1420
|
+
{data: data},
|
|
1421
|
+
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
1422
|
+
)
|
|
1423
|
+
if(res.data.length>0){
|
|
1424
|
+
this.setLabelValue('街道/乡镇', res.data[0].f_street)
|
|
1425
|
+
this.setLabelValue('区/县', res.data[0].f_pcd)
|
|
1426
|
+
this.setLabelValue('片区', res.data[0].f_slice_area)
|
|
1427
|
+
}
|
|
1428
|
+
},
|
|
1429
|
+
async 'button'() {
|
|
1430
|
+
console.log('-----')
|
|
1431
|
+
await this.buttonCommit()
|
|
1432
|
+
},
|
|
1433
|
+
// 失去焦点出触发事件
|
|
1434
|
+
'onchange' (index) {
|
|
1435
|
+
if (this.show_data.defname === '报装申请') {
|
|
1436
|
+
if (
|
|
1437
|
+
this.show_data.fields[index].label === '区/县' ||
|
|
1438
|
+
this.show_data.fields[index].label === '街道/乡镇' ||
|
|
1439
|
+
this.show_data.fields[index].label === '集收单位' ||
|
|
1440
|
+
this.show_data.fields[index].label === '楼号/组' ||
|
|
1441
|
+
this.show_data.fields[index].label === '单元/排' ||
|
|
1442
|
+
this.show_data.fields[index].label === '楼层' ||
|
|
1443
|
+
this.show_data.fields[index].label === '门牌号'
|
|
1444
|
+
) {
|
|
1445
|
+
|
|
1446
|
+
let f_pcd = this.getLableValue('区/县') || ''
|
|
1447
|
+
let f_street = this.getLableValue('街道/乡镇') || ''
|
|
1448
|
+
let f_residential_area = this.getLableValue('集收单位') || ''
|
|
1449
|
+
let f_building = this.getLableValue('楼号/组') || ''
|
|
1450
|
+
let f_building_suffix = f_building ? this.config.f_building_suffix : ''
|
|
1451
|
+
let f_unit = this.getLableValue('单元/排') || ''
|
|
1452
|
+
let f_unit_suffix = f_unit ? this.config.f_unit_suffix : ''
|
|
1453
|
+
let f_floor = this.getLableValue('楼层') || ''
|
|
1454
|
+
let f_floor_suffix = f_floor ? this.config.f_floor_suffix : ''
|
|
1455
|
+
let f_room = this.getLableValue('门牌号') || ''
|
|
1456
|
+
let f_room_suffix = f_room ? this.config.f_room_suffix : ''
|
|
1457
|
+
|
|
1458
|
+
let f_address = null
|
|
1459
|
+
|
|
1460
|
+
let f_address_type = this.show_data.f_address_type
|
|
1461
|
+
f_address = f_pcd + f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
|
|
1462
|
+
/*if (f_address_type === '民用城区') {
|
|
1463
|
+
f_address = f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
|
|
1464
|
+
}
|
|
1465
|
+
if (f_address_type === '民用农村') {
|
|
1466
|
+
f_address = f_building + f_unit + f_floor + f_room
|
|
1467
|
+
}
|
|
1468
|
+
if (f_address_type === '特殊城区') {
|
|
1469
|
+
f_address = f_street + f_residential_area
|
|
1470
|
+
}*/
|
|
1471
|
+
this.setLabelValue("地址", f_address)
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
if(this.show_data.fields[index].label === '是否老居民首次开发'){
|
|
1475
|
+
if( this.getLableValue('是否老居民首次开发')==='是'){
|
|
1476
|
+
this.showLabels('开户比例')
|
|
1477
|
+
this.hideLabels('立管架空')
|
|
1478
|
+
this.setLabelValue("立管架空", '')
|
|
1479
|
+
}else if(this.getLableValue('是否老居民首次开发')==='否'){
|
|
1480
|
+
this.showLabels('立管架空')
|
|
1481
|
+
this.hideLabels('开户比例')
|
|
1482
|
+
this.setLabelValue("开户比例", '')
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
}
|
|
1486
|
+
},
|
|
1487
|
+
async 'getDesignerPeople' () {
|
|
1488
|
+
let data = {
|
|
1489
|
+
source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
|
|
1490
|
+
userid: this.$login.f.id
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
let http = new HttpResetClass()
|
|
1494
|
+
let res = await http.load(
|
|
1495
|
+
'POST',
|
|
1496
|
+
`rs/search`,
|
|
1497
|
+
{data: data},
|
|
1498
|
+
{resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
|
|
1499
|
+
)
|
|
1500
|
+
|
|
1501
|
+
return res.data.map(item => {
|
|
1502
|
+
return {
|
|
1503
|
+
label: item.name,
|
|
1504
|
+
value: item.id
|
|
1505
|
+
}
|
|
1506
|
+
})
|
|
1507
|
+
},
|
|
1508
|
+
// 申请节点初始化
|
|
1509
|
+
'applyReadyEvent' () {
|
|
1510
|
+
this.addressInitialization()
|
|
1511
|
+
|
|
1512
|
+
this.pcdChange()
|
|
1513
|
+
this.streetChange()
|
|
1514
|
+
},
|
|
1515
|
+
// 街道失去焦点
|
|
1516
|
+
async 'streetChange' (index) {
|
|
1517
|
+
if (isEmpty(this.show_data.f_street)) {
|
|
1518
|
+
return
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
this.setLabelValue('集收单位', null)
|
|
1522
|
+
|
|
1523
|
+
let data = {
|
|
1524
|
+
tablename: 't_area',
|
|
1525
|
+
condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}'`
|
|
1526
|
+
}
|
|
1527
|
+
let http = new HttpResetClass()
|
|
1528
|
+
let res = await http.load(
|
|
1529
|
+
'POST',
|
|
1530
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1531
|
+
{data: data},
|
|
1532
|
+
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
1533
|
+
)
|
|
1534
|
+
|
|
1535
|
+
this.setLabelOptions('集收单位', res.data.map(item => {
|
|
1536
|
+
return {
|
|
1537
|
+
label: item.f_residential_area,
|
|
1538
|
+
value: item.f_residential_area
|
|
1539
|
+
}
|
|
1540
|
+
}))
|
|
1541
|
+
},
|
|
1542
|
+
// 选择报建项目
|
|
1543
|
+
'selectApply' (row) {
|
|
1544
|
+
this.setLabelValue('工程名称', row.f_entry_name)
|
|
1545
|
+
this.setLabelValue('工程编号', row.f_apply_num)
|
|
1546
|
+
this.setLabelValue('报建类型', row.f_apply_type)
|
|
1547
|
+
this.setLabelValue('用户名称', row.f_user_name)
|
|
1548
|
+
this.setLabelValue('用户电话', row.f_phone)
|
|
1549
|
+
this.setLabelValue('证件类型', row.f_credentials)
|
|
1550
|
+
this.setLabelValue('证件号码', row.f_idnumber)
|
|
1551
|
+
this.setLabelValue('地址', row.f_address)
|
|
1552
|
+
this.setLabelValue('累计缴费金额', row.f_cumulative_payment_money)
|
|
1553
|
+
|
|
1554
|
+
this.show_data.parentApply = JSON.parse(JSON.stringify(row))
|
|
1555
|
+
|
|
1556
|
+
delete row.id
|
|
1557
|
+
delete row.actid
|
|
1558
|
+
delete row.defid
|
|
1559
|
+
delete row.defname
|
|
1560
|
+
delete row.version
|
|
1561
|
+
delete row.f_apply_num
|
|
1562
|
+
delete row.f_sub_state
|
|
1563
|
+
delete row.f_apply_type
|
|
1564
|
+
delete row.f_process_id
|
|
1565
|
+
|
|
1566
|
+
this.show_data = Object.assign({}, this.show_data, row)
|
|
1567
|
+
|
|
1568
|
+
this.show_data.f_parent_process_id = this.show_data.parentApply.f_process_id
|
|
1569
|
+
},
|
|
1570
|
+
// 区县失去焦点
|
|
1571
|
+
async 'pcdChange' (index) {
|
|
1572
|
+
if (isEmpty(this.show_data.f_pcd)) {
|
|
1573
|
+
return
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
this.setLabelValue('街道/乡镇', null)
|
|
1577
|
+
this.setLabelValue('集收单位', null)
|
|
1578
|
+
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
let data = {
|
|
1582
|
+
tablename: 't_street',
|
|
1583
|
+
condition: `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
|
|
1584
|
+
}
|
|
1585
|
+
let f_address_type = this.getLableValue('地址类型')
|
|
1586
|
+
|
|
1587
|
+
if (f_address_type === '民用市区') {
|
|
1588
|
+
data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
|
|
1589
|
+
}
|
|
1590
|
+
if (f_address_type === '民用乡镇') {
|
|
1591
|
+
data.condition = `f_filialeid = '${Vue.user.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
let http = new HttpResetClass()
|
|
1595
|
+
let res = await http.load(
|
|
1596
|
+
'POST',
|
|
1597
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1598
|
+
{data: data},
|
|
1599
|
+
{resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
|
|
1600
|
+
)
|
|
1601
|
+
|
|
1602
|
+
this.setLabelOptions('街道/乡镇', res.data.map(item => {
|
|
1603
|
+
return {
|
|
1604
|
+
label: item.f_street,
|
|
1605
|
+
value: item.f_street
|
|
1606
|
+
}
|
|
1607
|
+
}))
|
|
1608
|
+
},
|
|
1609
|
+
// 选择用户档案信息
|
|
1610
|
+
'selectUserinfo' (row) {
|
|
1611
|
+
this.setLabelValue('用户编号', row.f_userinfo_code)
|
|
1612
|
+
this.setLabelValue('用户名称', row.f_user_name)
|
|
1613
|
+
this.setLabelValue('用户电话', row.f_user_phone)
|
|
1614
|
+
this.setLabelValue('证件类型', row.f_credentials)
|
|
1615
|
+
this.setLabelValue('证件号码', row.f_idnumber)
|
|
1616
|
+
this.setLabelValue('地址', row.f_address)
|
|
1617
|
+
|
|
1618
|
+
this.show_data.f_userinfo_id = row.f_userinfo_id
|
|
1619
|
+
this.show_data.f_userinfo_code = row.f_userinfo_code
|
|
1620
|
+
},
|
|
1621
|
+
// 地址类型失去焦点
|
|
1622
|
+
'addressTypeChange' (index) {
|
|
1623
|
+
this.setLabelValue('街道/乡镇', null)
|
|
1624
|
+
this.setLabelValue('集收单位', null)
|
|
1625
|
+
this.getAreaNew()
|
|
1626
|
+
let f_address_type = this.show_data.fields[index].value
|
|
1627
|
+
for (const item of this.show_data.fields) {
|
|
1628
|
+
if (f_address_type === '民用市区') {
|
|
1629
|
+
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
|
|
1630
|
+
item.hidden = false
|
|
1631
|
+
item.required = true
|
|
1632
|
+
item.value = null
|
|
1633
|
+
}
|
|
1634
|
+
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
|
|
1635
|
+
item.hidden = false
|
|
1636
|
+
item.required = false
|
|
1637
|
+
item.value = null
|
|
1638
|
+
}
|
|
1639
|
+
if (item.label === '地址') {
|
|
1640
|
+
item.readonly = true
|
|
1641
|
+
item.value = null
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
if (f_address_type === '民用乡镇') {
|
|
1645
|
+
if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
|
|
1646
|
+
item.hidden = false
|
|
1647
|
+
item.required = true
|
|
1648
|
+
item.value = null
|
|
1649
|
+
}
|
|
1650
|
+
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
|
|
1651
|
+
item.hidden = false
|
|
1652
|
+
item.required = false
|
|
1653
|
+
item.value = null
|
|
1654
|
+
}
|
|
1655
|
+
if (item.label === '楼层') {
|
|
1656
|
+
item.hidden = true
|
|
1657
|
+
item.required = false
|
|
1658
|
+
item.value = null
|
|
1659
|
+
}
|
|
1660
|
+
if (item.label === '地址') {
|
|
1661
|
+
item.readonly = true
|
|
1662
|
+
item.value = null
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
if (f_address_type === '特殊地址') {
|
|
1666
|
+
if (item.label === '区/县' || item.label === '街道/乡镇') {
|
|
1667
|
+
item.hidden = false
|
|
1668
|
+
item.required = true
|
|
1669
|
+
item.value = null
|
|
1670
|
+
}
|
|
1671
|
+
if (item.label === '集收单位') {
|
|
1672
|
+
item.hidden = false
|
|
1673
|
+
item.required = false
|
|
1674
|
+
item.value = null
|
|
1675
|
+
}
|
|
1676
|
+
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
|
|
1677
|
+
item.hidden = true
|
|
1678
|
+
item.required = false
|
|
1679
|
+
item.value = null
|
|
1680
|
+
}
|
|
1681
|
+
if (item.label === '地址') {
|
|
1682
|
+
item.readonly = false
|
|
1683
|
+
item.value = null
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
},
|
|
1688
|
+
// 搜索小区
|
|
1689
|
+
async 'searchArea' (area, index) {
|
|
1690
|
+
let data = {
|
|
1691
|
+
tablename: 't_area',
|
|
1692
|
+
condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}' and f_residential_area like '%${area}%'`
|
|
1693
|
+
}
|
|
1694
|
+
let http = new HttpResetClass()
|
|
1695
|
+
let res = await http.load(
|
|
1696
|
+
'POST',
|
|
1697
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1698
|
+
{data: data},
|
|
1699
|
+
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
1700
|
+
)
|
|
1701
|
+
|
|
1702
|
+
if (res.data.length === 0) {
|
|
1703
|
+
return
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
this.setLabelOptions('集收单位', res.data.map(item => {
|
|
1707
|
+
return {
|
|
1708
|
+
label: item.f_residential_area,
|
|
1709
|
+
value: item.f_residential_area
|
|
1710
|
+
}
|
|
1711
|
+
}))
|
|
1712
|
+
},
|
|
1713
|
+
// 搜索小区
|
|
1714
|
+
async 'searchAreaCollective' (area, index) {
|
|
1715
|
+
let data = {
|
|
1716
|
+
tablename: 't_area',
|
|
1717
|
+
condition: `f_filialeid = '${Vue.user.orgid}' and f_residential_area like '%${area}%'`
|
|
1718
|
+
}
|
|
1719
|
+
let http = new HttpResetClass()
|
|
1720
|
+
let res = await http.load(
|
|
1721
|
+
'POST',
|
|
1722
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,
|
|
1723
|
+
{data: data},
|
|
1724
|
+
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
1725
|
+
)
|
|
1726
|
+
|
|
1727
|
+
if (res.data.length === 0) {
|
|
1728
|
+
return
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
this.setLabelOptions('集收单位', res.data.map(item => {
|
|
1732
|
+
return {
|
|
1733
|
+
label: item.f_residential_area,
|
|
1734
|
+
value: item.f_residential_area
|
|
1735
|
+
}
|
|
1736
|
+
}))
|
|
1737
|
+
},
|
|
1738
|
+
// 团购转散户初始化
|
|
1739
|
+
'apply2ReadyEvent' () {
|
|
1740
|
+
if (this.show_data.f_apply_source === '线下发起') {
|
|
1741
|
+
this.addressInitialization()
|
|
1742
|
+
this.hideLabels('用户编号')
|
|
1743
|
+
this.electiveLabels('用户编号')
|
|
1744
|
+
this.showLabels('片区', '地址类型')
|
|
1745
|
+
this.requiredLabels('片区', '地址类型')
|
|
1746
|
+
}
|
|
1747
|
+
if (this.show_data.f_apply_source === '自动发起') {
|
|
1748
|
+
this.hideLabels('片区', '地址类型')
|
|
1749
|
+
this.electiveLabels('片区', '地址类型',)
|
|
1750
|
+
}
|
|
1751
|
+
},
|
|
1752
|
+
'onblur' (index) {},
|
|
1753
|
+
'oninput' (index) {},
|
|
1754
|
+
'initializtionView' () {},
|
|
1755
|
+
async 'onchangeModal' (index, fieldIndex) {
|
|
1756
|
+
},
|
|
1757
|
+
async 'onblurModal' (index, fieldIndex) {
|
|
1758
|
+
|
|
1759
|
+
},
|
|
1760
|
+
async 'oninputModal' (index, fieldIndex) {
|
|
1761
|
+
|
|
1762
|
+
},
|
|
1763
|
+
async 'onetomanydelete' (index, rowIndex) {
|
|
1764
|
+
|
|
1765
|
+
let http = new HttpResetClass()
|
|
1766
|
+
|
|
1767
|
+
let res = await http.load(
|
|
1768
|
+
'DELETE',
|
|
1769
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}/${this.show_data.onetomany[index].rows[rowIndex].id}`,
|
|
1770
|
+
null,
|
|
1771
|
+
{resolveMsg: null, rejectMsg: '删除失败!!!'}
|
|
1772
|
+
)
|
|
1773
|
+
res = await this.$resetpost(
|
|
1774
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
1775
|
+
this.show_data
|
|
1776
|
+
)
|
|
1777
|
+
this.breakControl()
|
|
1778
|
+
},
|
|
1779
|
+
async 'onetomanyupdate' (index, rowIndex) {
|
|
1780
|
+
let data = this.show_data.onetomany[index].rows[rowIndex]
|
|
1781
|
+
|
|
1782
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
1783
|
+
data[item.field] = item.value
|
|
1784
|
+
})
|
|
1785
|
+
let res = await this.$resetpost(
|
|
1786
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
1787
|
+
data
|
|
1788
|
+
)
|
|
1789
|
+
res = await this.$resetpost(
|
|
1790
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
1791
|
+
this.show_data
|
|
1792
|
+
)
|
|
1793
|
+
this.breakControl()
|
|
1794
|
+
},
|
|
1795
|
+
async 'onetomanyadd' (index) {
|
|
1796
|
+
let data = {
|
|
1797
|
+
f_process_id : this.show_data.f_process_id,
|
|
1798
|
+
f_operator_id: Vue.user.id,
|
|
1799
|
+
f_operator: Vue.user.name,
|
|
1800
|
+
f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
1801
|
+
f_orgid: Vue.user.orgid,
|
|
1802
|
+
f_orgname: Vue.user.orgs
|
|
1803
|
+
}
|
|
1804
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
1805
|
+
data[item.field] = item.value
|
|
1806
|
+
})
|
|
1807
|
+
let res = await this.$resetpost(
|
|
1808
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
1809
|
+
data
|
|
1810
|
+
)
|
|
1811
|
+
res = await this.$resetpost(
|
|
1812
|
+
`${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
|
|
1813
|
+
this.show_data
|
|
1814
|
+
)
|
|
1815
|
+
this.breakControl()
|
|
1816
|
+
},
|
|
1817
|
+
'onbutchange' (index) {
|
|
1818
|
+
|
|
1819
|
+
},
|
|
1820
|
+
'onbutblur' (index) {
|
|
1821
|
+
|
|
1822
|
+
},
|
|
1823
|
+
'onbutinput' (index) {
|
|
1824
|
+
|
|
1825
|
+
},
|
|
1826
|
+
'changeShowfei' (val) {
|
|
1827
|
+
console.log('回调修改父组件属性----'+val)
|
|
1828
|
+
this.show_data.showfei=val
|
|
1829
|
+
}
|
|
1830
|
+
},
|
|
1831
|
+
watch: {
|
|
1832
|
+
/*async 'show_data.showfei' (val) {
|
|
1833
|
+
console.log(`支付成功!!!!!!${val}`)
|
|
1834
|
+
if(this.show_data.showfei=='已付款'){
|
|
1835
|
+
await this.buttonCommit()
|
|
1836
|
+
}
|
|
1837
|
+
}*/
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
</script>
|
|
1841
|
+
<style scoped>
|
|
1842
|
+
</style>
|