apply-clients 5.0.35-ezhou-2 → 5.0.35-ezhou-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/apply.js +168 -153
- package/src/components/app_apply/ApplyToDoList.vue +76 -2586
- package/src/components/app_apply/Gongcheng.vue +3631 -0
- package/src/components/app_apply/OneToMany.vue +194 -0
- package/src/components/app_apply/PlaceControler.vue +12 -0
- package/src/components/app_apply/ServiceControl.vue +353 -14
- package/src/components/app_apply/ezhou/ServiceView.vue +139 -57
- package/src/components/image/doc.jpg +0 -0
- package/src/components/image/dwg.png +0 -0
- package/src/components/image/dxf.png +0 -0
- package/src/components/image/excel.jpg +0 -0
- package/src/components/image/pdf.jpg +0 -0
- package/src/components/product/Common/ApplyValidateBill.vue +13 -6
- package/src/components/product/Common/PrintBill.vue +7 -6
- package/src/components/product/EngineeringManagement/EngineerUpload.vue +304 -0
- package/src/components/product/EngineeringManagement/EngineeringManagement.vue +137 -0
- package/src/components/product/EngineeringManagement/EngineeringSelect.vue +586 -0
- package/src/components/product/EngineeringSupervisory/EngineeringApplyStopInfo.vue +281 -0
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryControl.vue +132 -0
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryList.vue +340 -0
- package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryServiceControl.vue +490 -0
- package/src/components/product/Function/InstallInfoSelect.vue +3 -2
- package/src/components/product/Function/Service/FunctionServiceControl.vue +37 -1
- package/src/components/product/Function/functions/ApplyUpload.vue +556 -0
- package/src/components/product/Function/functions/BuyerMessage.vue +1 -1
- package/src/components/product/Function/functions/InstallFee.vue +1144 -1080
- package/src/components/product/Function/functions/InstallFeeInfo.vue +6 -1
- package/src/components/product/Process/ExplorationSelect.vue +41 -8
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +126 -39
- package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +1 -1
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +2247 -1808
- package/src/components/product/Process/Processes/selectUserinfo.vue +183 -0
- package/src/components/product/ServiceView.vue +21 -6
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +163 -14
- package/src/components/product/Supervisory/SupervisoryList.vue +102 -17
- package/src/components/product/applyReport/ApplyReport.vue +205 -0
- package/src/components/product/applyReport/PrintApplyReport.vue +116 -0
- package/src/components/product/stopInfo/ApplyStopInfo.vue +2 -1
- package/src/ezhouAndroid.js +4 -0
- package/src/plugins/commonService.js +1 -1
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="repair-bg auto" id="repair-first" style="padding-bottom:5px;overflow:auto">
|
|
3
|
+
<div style="text-align: center"> <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;" @click="addRow()">新增项目</button>
|
|
4
|
+
</div>
|
|
5
|
+
<div class="panel panel-default repair-info-content auto">
|
|
6
|
+
<div class="panel-body">
|
|
7
|
+
<div class="panel panel-default well" v-for="row in rows" >
|
|
8
|
+
<div class="panel-body bg-info" style="padding: 10px">
|
|
9
|
+
<div class="row form-group">
|
|
10
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
11
|
+
<div class="row" v-for="field in fields">
|
|
12
|
+
<div class="col-sm-12 col-xs-12 col-md-12 padd-div-shu">
|
|
13
|
+
{{field.label}}:{{row[field.field]}}
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-sm-12 col-xs-12 col-md-12">
|
|
18
|
+
<button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="deleteRow(row)">删除</button>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
<modal :show.sync="show" backdrop="false">
|
|
26
|
+
<header slot="modal-header" class="modal-header">
|
|
27
|
+
<h3 style="color:black" class="modal-title">新增</h3>
|
|
28
|
+
</header>
|
|
29
|
+
<article slot="modal-body">
|
|
30
|
+
<div class="row">
|
|
31
|
+
<label class=" col-sm-4 control-label">收费项目:</label>
|
|
32
|
+
<div class="col-sm-5">
|
|
33
|
+
<v-select :options="f_project_items" placeholder='收费项目'
|
|
34
|
+
:width="100" style="width:100%"
|
|
35
|
+
:value-single="true"
|
|
36
|
+
v-model="model.f_project_item" :value.sync="model.f_project_item" close-on-select>
|
|
37
|
+
</v-select>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="row">
|
|
41
|
+
<label class=" col-sm-4 control-label">数量:</label>
|
|
42
|
+
<div class="col-sm-5">
|
|
43
|
+
<input class="form-control" type="text" v-model="model.f_amount" >
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="row">
|
|
47
|
+
<label class=" col-sm-4 control-label">单价:</label>
|
|
48
|
+
<div class="col-sm-5">
|
|
49
|
+
<input class="form-control" type="text" v-model="model.f_price" >
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="row">
|
|
53
|
+
<label class=" col-sm-4 control-label">金额:</label>
|
|
54
|
+
<div class="col-sm-5">
|
|
55
|
+
<input class="form-control" type="text" v-model="model.f_money" >
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
</article>
|
|
60
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
61
|
+
<button type="button" class="btn btn-success" @click='addclick()'>确定</button>
|
|
62
|
+
<button type="button" class="btn btn-default" @click='cancelclick()'>取消</button>
|
|
63
|
+
</footer>
|
|
64
|
+
</modal>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
</template>
|
|
68
|
+
|
|
69
|
+
<script>
|
|
70
|
+
import {HttpResetClass} from "vue-client";
|
|
71
|
+
|
|
72
|
+
export default {
|
|
73
|
+
title: '收费项目',
|
|
74
|
+
props:['item'],
|
|
75
|
+
data () {
|
|
76
|
+
return {
|
|
77
|
+
model:{
|
|
78
|
+
f_amount: "",
|
|
79
|
+
f_apply_num: "",
|
|
80
|
+
f_filiale: "",
|
|
81
|
+
f_money: "",
|
|
82
|
+
f_price: "",
|
|
83
|
+
f_process_id: "",
|
|
84
|
+
f_project_item: ""
|
|
85
|
+
},
|
|
86
|
+
show:false,
|
|
87
|
+
f_project_items:[{label:'测试',value:'测试'}],
|
|
88
|
+
rows: [],
|
|
89
|
+
fields:[]
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
ready(){
|
|
93
|
+
console.log('item2',this.item)
|
|
94
|
+
const param = this.$appdata.getParam("收费项目")
|
|
95
|
+
if(param){
|
|
96
|
+
this.f_project_items = param
|
|
97
|
+
}
|
|
98
|
+
this.fields = this.item.fields
|
|
99
|
+
this.model.f_process_id = this.item.f_process_id
|
|
100
|
+
this.model.f_apply_num = this.item.f_apply_num
|
|
101
|
+
this.model.f_filiale = this.item.f_filiale
|
|
102
|
+
this.search()
|
|
103
|
+
},
|
|
104
|
+
methods:{
|
|
105
|
+
addclick(){
|
|
106
|
+
if(!this.model.f_project_item){
|
|
107
|
+
this.$showMessage('请选择收费项目')
|
|
108
|
+
return
|
|
109
|
+
}
|
|
110
|
+
if(!this.model.f_amount){
|
|
111
|
+
this.$showMessage('请输入数量')
|
|
112
|
+
return
|
|
113
|
+
}
|
|
114
|
+
if(!this.model.f_price){
|
|
115
|
+
this.$showMessage('请输入单价')
|
|
116
|
+
return
|
|
117
|
+
}
|
|
118
|
+
if(!this.model.f_money){
|
|
119
|
+
this.$showMessage('请输入金额')
|
|
120
|
+
return
|
|
121
|
+
}
|
|
122
|
+
console.log('this.model',this.model)
|
|
123
|
+
const data = {
|
|
124
|
+
row:this.model,
|
|
125
|
+
tables:this.item.tables
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
console.log('data',data)
|
|
129
|
+
let http=new HttpResetClass()
|
|
130
|
+
http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/saveentity`,data).then(res=>{
|
|
131
|
+
console.log('res',res)
|
|
132
|
+
if(res.data.id){
|
|
133
|
+
this.$showMessage('添加成功')
|
|
134
|
+
this.cancelclick()
|
|
135
|
+
this.search()
|
|
136
|
+
}
|
|
137
|
+
})
|
|
138
|
+
|
|
139
|
+
},
|
|
140
|
+
addRow(){
|
|
141
|
+
this.show = true
|
|
142
|
+
},
|
|
143
|
+
cancelclick(){
|
|
144
|
+
this.model = Object.assign({},this.model,{
|
|
145
|
+
f_amount: "",
|
|
146
|
+
f_money: "",
|
|
147
|
+
f_price: "",
|
|
148
|
+
f_project_item: ""
|
|
149
|
+
})
|
|
150
|
+
this.show = false
|
|
151
|
+
},
|
|
152
|
+
deleteRow(row){
|
|
153
|
+
console.log('deleteRow',row)
|
|
154
|
+
let http=new HttpResetClass()
|
|
155
|
+
this.$showMessage('您确定要删除这条记录吗?',['confirm','cancel']).then(res=>{
|
|
156
|
+
if(res === 'confirm'){
|
|
157
|
+
const param ={
|
|
158
|
+
row:row,
|
|
159
|
+
tables:this.item.tables
|
|
160
|
+
}
|
|
161
|
+
http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/applyDeleteValue`,{data:param}).then(res=>{
|
|
162
|
+
console.log('res',res)
|
|
163
|
+
if(res.data.status === 200){
|
|
164
|
+
this.$showMessage('删除成功')
|
|
165
|
+
this.search()
|
|
166
|
+
}
|
|
167
|
+
})
|
|
168
|
+
}
|
|
169
|
+
})
|
|
170
|
+
},
|
|
171
|
+
search(){
|
|
172
|
+
const param = {
|
|
173
|
+
"items":"*",
|
|
174
|
+
"tablename":this.item.tables[0],
|
|
175
|
+
"condition":`f_process_id='${this.item.f_process_id}'`,
|
|
176
|
+
"orderitem":'id desc'
|
|
177
|
+
}
|
|
178
|
+
let http=new HttpResetClass()
|
|
179
|
+
http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`,{data:param}).then(res=>{
|
|
180
|
+
console.log(`前台本地报建代办工单查询结果data=>>>${JSON.stringify(res.data)}`)
|
|
181
|
+
if(res.data){
|
|
182
|
+
this.rows = res.data
|
|
183
|
+
}else{
|
|
184
|
+
this.rows = []
|
|
185
|
+
}
|
|
186
|
+
})
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
</script>
|
|
191
|
+
|
|
192
|
+
<style scoped>
|
|
193
|
+
|
|
194
|
+
</style>
|
|
@@ -191,6 +191,18 @@ export default {
|
|
|
191
191
|
_this.$goto('feiminyongvv', {},'self')
|
|
192
192
|
}
|
|
193
193
|
},
|
|
194
|
+
'onetomany': function (val) {
|
|
195
|
+
console.log('6666666666')
|
|
196
|
+
console.log('item',val)
|
|
197
|
+
var _this = this
|
|
198
|
+
var pardate = {
|
|
199
|
+
_this: _this,
|
|
200
|
+
title: val.title,
|
|
201
|
+
safe: false
|
|
202
|
+
}
|
|
203
|
+
_this.$dispatch('gotoson',pardate)
|
|
204
|
+
_this.$goto('one-to-many', {item: val},'self')
|
|
205
|
+
},
|
|
194
206
|
'close'() {
|
|
195
207
|
//this.$back()
|
|
196
208
|
this.$dispatch('confirm')
|
|
@@ -1,13 +1,49 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
<work-busy :is-busy="loading"></work-busy>
|
|
4
|
+
<service-view-app v-ref:service_show :data.sync="show_data.ppp" :model.sync="selectmodel" v-if="showview"></service-view-app>
|
|
5
5
|
</div>
|
|
6
|
+
<modal :show.sync="stop_show" v-ref:modal stop_show="false">
|
|
7
|
+
<header slot="modal-header" class="modal-header">
|
|
8
|
+
<button type="button" class="close" @click="closeback"><span>×</span></button>
|
|
9
|
+
<h4 class="modal-title">终止备注</h4>
|
|
10
|
+
</header>
|
|
11
|
+
<article slot="modal-body" class="modal-body">
|
|
12
|
+
<div class="from-group">
|
|
13
|
+
<input type="text" class="form-control" v-model="models.f_stop_remarks"/>
|
|
14
|
+
</div>
|
|
15
|
+
</article>
|
|
16
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
17
|
+
<button v-show="stop_show" type="button" class="btn btn-default" @click='stopapplys'>确认</button>
|
|
18
|
+
</footer>
|
|
19
|
+
</modal>
|
|
20
|
+
<modal :show.sync="apply_show" v-ref:modal apply_show="false" >
|
|
21
|
+
<header slot="modal-header" class="modal-header">
|
|
22
|
+
<button type="button" class="close" @click="closeapply"><span>×</span></button>
|
|
23
|
+
<h4 class="modal-title">转单报建</h4>
|
|
24
|
+
</header>
|
|
25
|
+
<article slot="modal-body" class="modal-body">
|
|
26
|
+
<div class="from-group">
|
|
27
|
+
<v-select style="min-width: 80%;"
|
|
28
|
+
placeholder='请选择'
|
|
29
|
+
:options="applytypes"
|
|
30
|
+
:search="false"
|
|
31
|
+
v-model="apply_type"
|
|
32
|
+
:value.sync="apply_type"
|
|
33
|
+
close-on-select>
|
|
34
|
+
</v-select>
|
|
35
|
+
</div>
|
|
36
|
+
</article>
|
|
37
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
38
|
+
<button v-show="apply_show" type="button" class="btn btn-default" @click='addactive()'>确认</button>
|
|
39
|
+
</footer>
|
|
40
|
+
</modal>
|
|
6
41
|
</template>
|
|
7
42
|
<script>
|
|
8
43
|
import co from 'co'
|
|
9
44
|
import Vue from 'vue'
|
|
10
45
|
import {HttpResetClass} from 'vue-client'
|
|
46
|
+
import * as Util from "../Util";
|
|
11
47
|
export default {
|
|
12
48
|
title: '报建流程业务控制层',
|
|
13
49
|
props: ['selectdata','selectmodel','show_data'],
|
|
@@ -19,11 +55,85 @@ export default {
|
|
|
19
55
|
data:null, // 数据库数据,json配置文件数据的数据集合
|
|
20
56
|
json_datas:null, // Json配置文件集合
|
|
21
57
|
showview:false, // 控制显示service-view组件
|
|
22
|
-
|
|
23
|
-
department_search:null // 当前部门下所有人
|
|
58
|
+
// 给view层显示的数据
|
|
59
|
+
department_search:null, // 当前部门下所有人
|
|
60
|
+
stop_show:false, // 终止备注开关
|
|
61
|
+
apply_show:false, // 转单报建开关
|
|
62
|
+
apply_type:'',
|
|
63
|
+
applytypes:[{label:"散户报装",value:"报装申请"},{label:"集体报装",value:"集体报装申请"}],// 报建类型
|
|
64
|
+
models: {
|
|
65
|
+
f_date: Util.toStandardTimeString(),
|
|
66
|
+
f_department: Vue.user.f_parentname,
|
|
67
|
+
f_operator: Vue.user.name,
|
|
68
|
+
f_filiale: Vue.user.f_fengongsi
|
|
69
|
+
},
|
|
70
|
+
models2:{}
|
|
24
71
|
}
|
|
25
72
|
},
|
|
26
73
|
methods: {
|
|
74
|
+
// 转到报建
|
|
75
|
+
async addactive(){
|
|
76
|
+
this.selectdata.applyid = this.selectdata.id
|
|
77
|
+
// this.$resetpost('rs/logic/stopapply', {data: this.selectdata})
|
|
78
|
+
console.log(this.apply_type[0])
|
|
79
|
+
this.$workflow_vue.start_activity = this.apply_type[0]
|
|
80
|
+
let http = new HttpResetClass()
|
|
81
|
+
let res = await http.load('POST',this.$androidUtil.getProxyUrl() +'/rs/logic/ApplyGetProcessID',{data:{filename:this.$workflow_vue.workflow_xmlfilename,start_activity:this.$workflow_vue.start_activity}}, {resolveMsg: null, rejectMsg: '获取流程ID失败,请联系开发人员'})
|
|
82
|
+
let data = {
|
|
83
|
+
defname: this.$workflow_vue.start_activity,
|
|
84
|
+
f_process_id: res.data.f_process_id,
|
|
85
|
+
f_apply_date: Util.toStandardTimeString(),
|
|
86
|
+
f_product_id: res.data.f_product_id,
|
|
87
|
+
start_activity:this.$workflow_vue.start_activity,
|
|
88
|
+
f_user_type:this.models2.f_user_type,
|
|
89
|
+
f_user_name:this.models2.f_user_name,
|
|
90
|
+
f_phone:this.models2.f_phone,
|
|
91
|
+
f_area:this.models2.f_area,
|
|
92
|
+
f_street:this.models2.f_street,
|
|
93
|
+
f_residential_area:this.models2.f_residential_area,
|
|
94
|
+
f_building:this.models2.f_building,
|
|
95
|
+
f_unit:this.models2.f_unit,
|
|
96
|
+
f_floor:this.models2.f_floor,
|
|
97
|
+
f_room:this.models2.f_room,
|
|
98
|
+
f_address:this.models2.f_address,
|
|
99
|
+
f_idnumber:this.models2.f_social_credit_code,
|
|
100
|
+
f_apply_source:this.models2.f_apply_source,
|
|
101
|
+
f_sub_state:'未完工',
|
|
102
|
+
user:Vue.user
|
|
103
|
+
}
|
|
104
|
+
await http.load('POST',this.$androidUtil.getProxyUrl() +'/rs/logic/newaddApplyproduct',{data:data}, {resolveMsg: null, rejectMsg: '转发失败,请联系开发人员'})
|
|
105
|
+
var delteLocal = true
|
|
106
|
+
var url = this.$androidUtil.getProxyUrl() + '/rs/logic/ApplyProductService'
|
|
107
|
+
let btn = btn_operate(this, url, http, this.models2, delteLocal)
|
|
108
|
+
co(btn)
|
|
109
|
+
this.apply_show = false
|
|
110
|
+
},
|
|
111
|
+
// 终止报建
|
|
112
|
+
async stopapplys () {
|
|
113
|
+
this.models = Object.assign({}, this.selectdata, this.models)
|
|
114
|
+
this.models.id = null
|
|
115
|
+
this.models.applyid = this.selectdata.id
|
|
116
|
+
this.models.f_operat_type = '终止报建'
|
|
117
|
+
this.models.f_state = '有效'
|
|
118
|
+
this.models.f_describe = this.selectdata.f_user_name + '已终止报建'
|
|
119
|
+
let data ={
|
|
120
|
+
tablename:'t_project_stop',
|
|
121
|
+
parameters:this.models
|
|
122
|
+
}
|
|
123
|
+
let http = new HttpResetClass()
|
|
124
|
+
await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/save', {data:data},{resolveMsg: null, rejectMsg: "添加失败"})
|
|
125
|
+
await http.load('POST',this.$androidUtil.getProxyUrl() +'/rs/logic/stopapply', {data:this.models},{resolveMsg: null, rejectMsg: "终止失败"})
|
|
126
|
+
this.closeback()
|
|
127
|
+
this.$dispatch('close')
|
|
128
|
+
},
|
|
129
|
+
// 关闭终止备注弹框
|
|
130
|
+
closeback() {
|
|
131
|
+
this.stop_show = false
|
|
132
|
+
},
|
|
133
|
+
// 关闭报建弹框
|
|
134
|
+
closeapply() {
|
|
135
|
+
this.apply_show = false
|
|
136
|
+
},
|
|
27
137
|
// 特殊化处理
|
|
28
138
|
saveCallBack(jo){
|
|
29
139
|
console.log(JSON.stringify(jo))
|
|
@@ -62,13 +172,15 @@ export default {
|
|
|
62
172
|
if(this.data.distribute_async && model.button.button_name==='下发'){
|
|
63
173
|
// 流程异步处理
|
|
64
174
|
let http = new HttpResetClass();
|
|
65
|
-
let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/syncprocess',{data:{model:model,loginUser:this.$login.f}}, {resolveMsg: null, rejectMsg: '流程异步下发据保存失败'})
|
|
175
|
+
// let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/syncprocess',{data:{model:model,loginUser:this.$login.f}}, {resolveMsg: null, rejectMsg: '流程异步下发据保存失败'})
|
|
176
|
+
let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/syncprocess',{data:{model:model,loginUser: Vue.user}}, {resolveMsg: null, rejectMsg: '流程异步下发据保存失败'})
|
|
66
177
|
console.log("流程的异步处理:",JSON.stringify(res.data))
|
|
67
178
|
}
|
|
68
179
|
if(this.data.distribute_async && model.button.button_name==='完成'){
|
|
69
180
|
// 强制结束
|
|
70
181
|
let http = new HttpResetClass();
|
|
71
|
-
let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/stoprocess',{data:{model:model,loginUser:
|
|
182
|
+
let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/stoprocess',{data:{model:model,loginUser: Vue.user}}, {resolveMsg: null, rejectMsg: '流程异步完成数据保存失败'})
|
|
183
|
+
// let res = await http.load('POST',this.$androidUtil.getProxyUrl() + '/rs/logic/stoprocess',{data:{model:model,loginUser:this.$login.f}}, {resolveMsg: null, rejectMsg: '流程异步完成数据保存失败'})
|
|
72
184
|
console.log("流程的异步处理:",JSON.stringify(res.data))
|
|
73
185
|
}
|
|
74
186
|
},
|
|
@@ -110,7 +222,6 @@ export default {
|
|
|
110
222
|
// 下发人 options 处理,options初始化
|
|
111
223
|
if(this.selectdata.actorexpression){
|
|
112
224
|
//截取actorexpression
|
|
113
|
-
|
|
114
225
|
let http = new HttpResetClass()
|
|
115
226
|
var url = this.$androidUtil.getProxyUrl() + '/rs/search'
|
|
116
227
|
console.log('即将请求后台获取下发人员,url=>' + url)
|
|
@@ -157,9 +268,35 @@ export default {
|
|
|
157
268
|
console.log('$appdata中的缓存参数与单值=>' + JSON.stringify(this.$appdata))
|
|
158
269
|
var param = this.$appdata.getParam(this.data.fields[i].label)
|
|
159
270
|
console.log(param)
|
|
160
|
-
|
|
271
|
+
if (param){
|
|
272
|
+
this.data.fields[i].options = param
|
|
273
|
+
}
|
|
161
274
|
|
|
162
275
|
}
|
|
276
|
+
// 设置用户类型
|
|
277
|
+
if (this.data.fields[i].label == '用户类型') {
|
|
278
|
+
this.data.fields[i].options = [{label: '民用', value: '民用'},{label: '非民用', value: '非民用'}]
|
|
279
|
+
}
|
|
280
|
+
// 获取县区
|
|
281
|
+
if (this.data.fields[i].label == '县/区') {
|
|
282
|
+
let http = new HttpResetClass()
|
|
283
|
+
let area = await http.load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/applysingleTable`, {
|
|
284
|
+
data: {
|
|
285
|
+
// items: 'f_bill_url,f_url_code',
|
|
286
|
+
tablename: 't_pcd',
|
|
287
|
+
condition: `f_filialeids = '${Vue.user.f_orgids}'`
|
|
288
|
+
}
|
|
289
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
290
|
+
let rs = []
|
|
291
|
+
for (let i = 0; i < area.data.length; i++) {
|
|
292
|
+
let temp = {
|
|
293
|
+
label: area.data[i].f_pcd,
|
|
294
|
+
value: area.data[i].f_pcd
|
|
295
|
+
}
|
|
296
|
+
rs.push(temp)
|
|
297
|
+
}
|
|
298
|
+
this.data.fields[i].options = [{label: '全部', value: ''}, ...rs]
|
|
299
|
+
}
|
|
163
300
|
}
|
|
164
301
|
// 初始化 buttons_fields
|
|
165
302
|
for(let i=0;i<this.data.buttons.length;i++){
|
|
@@ -231,8 +368,57 @@ export default {
|
|
|
231
368
|
}
|
|
232
369
|
},
|
|
233
370
|
events: {
|
|
371
|
+
'checkboxSelectControl'(index,index2){
|
|
372
|
+
if(this.$refs.service_show.data.fields[index].label=="施工提交资料"){
|
|
373
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
374
|
+
if(this.$refs.service_show.data.fields[i].label=="施工已上传文件"){
|
|
375
|
+
//增加和删除框中的内容
|
|
376
|
+
if (this.$refs.service_show.data.fields[i].value==undefined){
|
|
377
|
+
this.$refs.service_show.data.fields[i].value=''
|
|
378
|
+
}
|
|
379
|
+
if(this.$refs.service_show.data.fields[index].items[index2].value == false){
|
|
380
|
+
this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
|
|
381
|
+
// this.$refs.service_show.data.fields[i].value=this.$refs.service_show.data.fields[i].value==undefined?'':this.$refs.service_show.data.fields[i].value+this.$refs.service_show.data.fields[index].items[index2].label+" ";
|
|
382
|
+
this.$refs.service_show.data.fields[index].items[index2].value=true;
|
|
383
|
+
}else{
|
|
384
|
+
let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
|
|
385
|
+
let values =this.$refs.service_show.data.fields[i].value;
|
|
386
|
+
let result = values.split(" ").filter((item)=>{
|
|
387
|
+
return item!=deleteValue;
|
|
388
|
+
}).join(" ")
|
|
389
|
+
this.$refs.service_show.data.fields[i].value =result;
|
|
390
|
+
this.$refs.service_show.data.fields[index].items[index2].value=false;
|
|
391
|
+
}
|
|
392
|
+
//}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
if(this.$refs.service_show.data.fields[index].label=="验收提交资料"){
|
|
397
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
398
|
+
|
|
399
|
+
if(this.$refs.service_show.data.fields[i].label=="验收已上传文件"){
|
|
400
|
+
//增加和删除框中的内容
|
|
401
|
+
if(this.$refs.service_show.data.fields[index].items[index2].value == false){
|
|
402
|
+
this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
|
|
403
|
+
// this.$refs.service_show.data.fields[i].value=this.$refs.service_show.data.fields[i].value==undefined?'':this.$refs.service_show.data.fields[i].value+this.$refs.service_show.data.fields[index].items[index2].label+" ";
|
|
404
|
+
this.$refs.service_show.data.fields[index].items[index2].value=true;
|
|
405
|
+
}else{
|
|
406
|
+
let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
|
|
407
|
+
let values =this.$refs.service_show.data.fields[i].value;
|
|
408
|
+
let result = values.split(" ").filter((item)=>{
|
|
409
|
+
return item!=deleteValue;
|
|
410
|
+
}).join(" ")
|
|
411
|
+
this.$refs.service_show.data.fields[i].value =result;
|
|
412
|
+
this.$refs.service_show.data.fields[index].items[index2].value=false;
|
|
413
|
+
}
|
|
414
|
+
//}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
this.$refs.service_show.update()
|
|
419
|
+
},
|
|
234
420
|
// 任意select选中时触发事件
|
|
235
|
-
'select_cascade'(index){
|
|
421
|
+
async 'select_cascade'(index){
|
|
236
422
|
// this.$refs.service_show.model_temp // 子业务显示组件
|
|
237
423
|
// 级联操作示例:
|
|
238
424
|
/*
|
|
@@ -248,11 +434,148 @@ export default {
|
|
|
248
434
|
}
|
|
249
435
|
}
|
|
250
436
|
*/
|
|
437
|
+
if (this.$refs.service_show.data.fields[index].label === '县/区') {
|
|
438
|
+
let temp = this.$refs.service_show.data.fields[index].value
|
|
439
|
+
console.log('==============================县/区:' + temp)
|
|
440
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
441
|
+
// 控制设置级联
|
|
442
|
+
// 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
|
|
443
|
+
if (this.$refs.service_show.data.fields[i].label === '街道名称') {
|
|
444
|
+
await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/applysingleTable`, {
|
|
445
|
+
data: {
|
|
446
|
+
tablename: 't_street',
|
|
447
|
+
condition: `f_filialeids = '${Vue.user.f_orgids}' and f_pcd='${temp}'`
|
|
448
|
+
}
|
|
449
|
+
}, {resolveMsg: null, rejectMsg: null}).then(res => {
|
|
450
|
+
let streetrs = []
|
|
451
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
452
|
+
let temp = {
|
|
453
|
+
label: res.data[i].f_street,
|
|
454
|
+
value: res.data[i].f_street
|
|
455
|
+
}
|
|
456
|
+
streetrs.push(temp)
|
|
457
|
+
}
|
|
458
|
+
this.$refs.service_show.data.fields[i].options = [{label: '全部', value: ''}, ...streetrs]
|
|
459
|
+
// console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~option:', this.$refs.service_show.data.fields[i].options)
|
|
460
|
+
this.$refs.service_show.update()
|
|
461
|
+
})
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
if (this.$refs.service_show.data.fields[index].label === '街道名称') {
|
|
466
|
+
let temp = this.$refs.service_show.data.fields[index].value
|
|
467
|
+
console.log('=============================街道:' + temp)
|
|
468
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
469
|
+
// 控制设置级联
|
|
470
|
+
// 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
|
|
471
|
+
if (this.$refs.service_show.data.fields[i].label === '小区名称') {
|
|
472
|
+
await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/applysingleTable`, {
|
|
473
|
+
data: {
|
|
474
|
+
tablename: 't_area',
|
|
475
|
+
condition: `f_filialeids = '${Vue.user.f_orgids}' and f_street='${temp}'`
|
|
476
|
+
}
|
|
477
|
+
}, {resolveMsg: null, rejectMsg: null}).then(res => {
|
|
478
|
+
let arears = []
|
|
479
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
480
|
+
let temp = {
|
|
481
|
+
label: res.data[i].f_residential_area,
|
|
482
|
+
value: res.data[i].f_residential_area
|
|
483
|
+
}
|
|
484
|
+
arears.push(temp)
|
|
485
|
+
}
|
|
486
|
+
this.$refs.service_show.data.fields[i].options = [{label: '全部', value: ''}, ...arears]
|
|
487
|
+
// console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~option:', this.$refs.service_show.data.fields[i].options)
|
|
488
|
+
this.$refs.service_show.update()
|
|
489
|
+
})
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
// 合成地址
|
|
494
|
+
if (
|
|
495
|
+
this.$refs.service_show.data.fields[index].label === '县/区' ||
|
|
496
|
+
this.$refs.service_show.data.fields[index].label === '街道名称' ||
|
|
497
|
+
this.$refs.service_show.data.fields[index].label === '小区名称' ||
|
|
498
|
+
this.$refs.service_show.data.fields[index].label === '楼号' ||
|
|
499
|
+
this.$refs.service_show.data.fields[index].label === '单元号' ||
|
|
500
|
+
this.$refs.service_show.data.fields[index].label === '楼层' ||
|
|
501
|
+
this.$refs.service_show.data.fields[index].label === '门牌号'
|
|
502
|
+
) {
|
|
503
|
+
console.log('即将合成地址')
|
|
504
|
+
var address = ''
|
|
505
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
506
|
+
// 控制设置级联
|
|
507
|
+
// 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
|
|
508
|
+
// xxx xx xxx
|
|
509
|
+
if (this.$refs.service_show.data.fields[i].label === '县/区' && this.$refs.service_show.data.fields[i].value) {
|
|
510
|
+
address += this.$refs.service_show.data.fields[i].value
|
|
511
|
+
}
|
|
512
|
+
if (this.$refs.service_show.data.fields[i].label === '街道名称' && this.$refs.service_show.data.fields[i].value) {
|
|
513
|
+
address += this.$refs.service_show.data.fields[i].value
|
|
514
|
+
}
|
|
515
|
+
if (this.$refs.service_show.data.fields[i].label === '小区名称' && this.$refs.service_show.data.fields[i].value) {
|
|
516
|
+
address += this.$refs.service_show.data.fields[i].value
|
|
517
|
+
}
|
|
518
|
+
if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
|
|
519
|
+
address += this.$refs.service_show.data.fields[i].value
|
|
520
|
+
}
|
|
521
|
+
if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
|
|
522
|
+
address += '栋'
|
|
523
|
+
}
|
|
524
|
+
if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
|
|
525
|
+
address += '-' +this.$refs.service_show.data.fields[i].value
|
|
526
|
+
}
|
|
527
|
+
if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
|
|
528
|
+
address += '单元'
|
|
529
|
+
}
|
|
530
|
+
if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
|
|
531
|
+
address += '-' +this.$refs.service_show.data.fields[i].value
|
|
532
|
+
}
|
|
533
|
+
if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
|
|
534
|
+
address += '层'
|
|
535
|
+
}
|
|
536
|
+
if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
|
|
537
|
+
address += '-' +this.$refs.service_show.data.fields[i].value
|
|
538
|
+
}
|
|
539
|
+
if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
|
|
540
|
+
address += '室'
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
}
|
|
544
|
+
console.log('获取到的address=>' + address)
|
|
545
|
+
// 数据获取完毕时放入地址text
|
|
546
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
547
|
+
if (this.$refs.service_show.data.fields[i].label === '地址' || this.$refs.service_show.data.fields[i].label === '报装地址') {
|
|
548
|
+
this.$refs.service_show.data.fields[i].value = address
|
|
549
|
+
console.log('修改fields[i].value后的值=>' + this.$refs.service_show.data.fields[i].value)
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
this.$refs.service_show.update()
|
|
553
|
+
}
|
|
554
|
+
if (this.$refs.service_show.data.fields[index].label == '用户类型'){
|
|
555
|
+
if(this.$refs.service_show.data.fields[index].value == '非民用'){
|
|
556
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
557
|
+
if (this.$refs.service_show.data.fields[i].label === '小区名称') {
|
|
558
|
+
this.$refs.service_show.data.fields[i].required=false;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
}else{
|
|
562
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
563
|
+
if (this.$refs.service_show.data.fields[i].label === '小区名称') {
|
|
564
|
+
this.$refs.service_show.data.fields[i].required=true;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
251
569
|
},
|
|
252
570
|
// 获取view层button事件
|
|
253
571
|
async 'button'(model){
|
|
572
|
+
if (this.data.defname==='踏勘'){
|
|
573
|
+
if (model.button.button_name === '终止'){
|
|
574
|
+
this.stop_show=true
|
|
575
|
+
return
|
|
576
|
+
}
|
|
577
|
+
}
|
|
254
578
|
this.loading=true
|
|
255
|
-
|
|
256
579
|
console.log('进入async button事件方法')
|
|
257
580
|
var delteLocal = true
|
|
258
581
|
// 点击保存与重置按钮不需要修改本地工单状态
|
|
@@ -276,9 +599,20 @@ export default {
|
|
|
276
599
|
console.log("button事件接收参数model=>" + JSON.stringify(model))
|
|
277
600
|
model=Object.assign({},this.selectdata,model)
|
|
278
601
|
console.log('合并selectdata与model后的model=>' + JSON.stringify(model))
|
|
602
|
+
if (this.data.defname==='踏勘'&&(model.button.button_name === '提交'||model.button.button_name === '通气')){
|
|
603
|
+
this.loading=false
|
|
604
|
+
this.apply_show=true
|
|
605
|
+
this.models2 = model
|
|
606
|
+
return
|
|
607
|
+
}
|
|
279
608
|
let http = new HttpResetClass()
|
|
609
|
+
if (this.data.defname === '通气转单'&& model.button.button_name === '提交'){
|
|
610
|
+
model.f_sub_state = '完工'
|
|
611
|
+
}else {
|
|
612
|
+
model.f_sub_state = '未完工'
|
|
613
|
+
}
|
|
280
614
|
var url = this.$androidUtil.getProxyUrl() + '/rs/logic/ApplyProductService'
|
|
281
|
-
|
|
615
|
+
// let res = await http.load('POST',url,{data:data}, {resolveMsg: null, rejectMsg: null})
|
|
282
616
|
// // 先判断是否包含code,如果服务端异常,可能不存在code
|
|
283
617
|
// console.log("service处理完成返回数据=>" + res)
|
|
284
618
|
// if(!res.code){
|
|
@@ -313,7 +647,7 @@ export default {
|
|
|
313
647
|
|
|
314
648
|
let btn_operate = function * (self, url, http, model, delteLocal) {
|
|
315
649
|
self.delteLocal=delteLocal
|
|
316
|
-
|
|
650
|
+
console.log("model的信息",model)
|
|
317
651
|
// 下发,提交,保存,退回都在后台处理
|
|
318
652
|
console.log('即将请求后台url=>' + url)
|
|
319
653
|
model.employeetemplate=''
|
|
@@ -322,8 +656,13 @@ let btn_operate = function * (self, url, http, model, delteLocal) {
|
|
|
322
656
|
let param={
|
|
323
657
|
employeetemplate:'',
|
|
324
658
|
tables:self.data.tables,
|
|
325
|
-
|
|
326
|
-
|
|
659
|
+
workflow_xmlfilename : self.$workflow_vue.workflow_xmlfilename,
|
|
660
|
+
start_activity:model.start_activity,
|
|
661
|
+
model:model,
|
|
662
|
+
loginUser:Vue.user
|
|
663
|
+
}
|
|
664
|
+
if(param.model.defname === '现场勘查定价'){
|
|
665
|
+
param.model.f_unaccounts_money = param.model.f_total_cost
|
|
327
666
|
}
|
|
328
667
|
// http.load('POST',url,{data:{employeetemplate:'',tables:self.data.tables,start_activity:self.$workflow_vue.start_activity,model:model,loginUser:Vue.user}}, {resolveMsg: null, rejectMsg: null})
|
|
329
668
|
let paramStr = JSON.stringify(param)
|