apply-clients 5.0.36 → 5.0.37-2
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 +111 -111
- package/src/android.js +1 -1
- package/src/apply.js +15 -1
- package/src/assets//345/210/240/351/231/244.png +0 -0
- package/src/assets//347/224/250/346/210/267/345/234/260/345/235/200.png +0 -0
- package/src/assets//347/224/250/346/210/267/345/247/223/345/220/215.png +0 -0
- package/src/assets//347/224/250/346/210/267/347/224/265/350/257/235.png +0 -0
- package/src/components/app_apply/ApplyApp.vue +6 -6
- package/src/components/app_apply/ApplyDownList.vue +18 -16
- package/src/components/app_apply/ApplyInfo.vue +2 -2
- package/src/components/app_apply/ApplyListUpload.vue +15 -5
- package/src/components/app_apply/ApplyToDoList.vue +201 -54
- package/src/components/app_apply/ApplyUserInfo.vue +2 -2
- package/src/components/app_apply/FieldExploration.vue +0 -1
- 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 +230 -189
- package/src/components/app_apply/ServiceControl.vue +630 -385
- package/src/components/app_apply/ServiceView.vue +44 -17
- package/src/components/app_apply/ezhou/FeiMinYongV.vue +109 -0
- package/src/components/app_apply/ezhou/FeiMinYongVV.vue +100 -0
- package/src/components/app_apply/ezhou/MinYong.vue +92 -0
- package/src/components/app_apply/ezhou/ServiceView.vue +745 -0
- 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/phone/phoneselect.vue +250 -0
- package/src/components/phone/phoneselect2.vue +112 -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 +589 -347
- package/src/components/product/Function/functions/InstallFeeInfo.vue +6 -1
- package/src/components/product/Process/ExplorationSelect.vue +669 -636
- package/src/components/product/Process/Processes/CustomerRecordMessage.vue +907 -907
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +126 -39
- package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +85 -0
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +2200 -1808
- package/src/components/product/ServiceView.vue +810 -795
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +559 -407
- 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 +48 -0
- package/src/index.js +3 -2
- package/src/main.js +1 -1
- package/src/plugins/commonService.js +11 -7
- package/static/newStyle/clear.png +0 -0
- package/static/newStyle/fife.png +0 -0
- package/static/newStyle/hidden.png +0 -0
- package/static/newStyle/label-clear.png +0 -0
- package/static/newStyle/left-img.png +0 -0
- package/static/newStyle/list_ok.png +0 -0
- package/static/newStyle/login-check.png +0 -0
- package/static/newStyle/login-con.png +0 -0
- package/static/newStyle/login-do.gif +0 -0
- package/static/newStyle/login-f.png +0 -0
- package/static/newStyle/login-info.png +0 -0
- package/static/newStyle/login-left.png +0 -0
- package/static/newStyle/login-org.png +0 -0
- package/static/newStyle/login-pwd.png +0 -0
- package/static/newStyle/login-user.png +0 -0
- package/static/newStyle/loginbg.gif +0 -0
- package/static/newStyle/loginbg1280.gif +0 -0
- package/static/newStyle/loginbg1366.gif +0 -0
- package/static/newStyle/loginbg_1.gif +0 -0
- package/static/newStyle/searchin.png +0 -0
- package/static/newStyle/searchout.png +0 -0
- package/static/newStyle/setting.png +0 -0
- package/static/newStyle/setting1.png +0 -0
- package/static/newStyle/shirk.png +0 -0
- package/static/newStyle/stretch_bottom.png +0 -0
- package/static/newStyle/stretch_left.png +0 -0
- package/static/newStyle/stretch_right.png +0 -0
- package/static/newStyle/stretch_top.png +0 -0
- package/static/newStyle/system-off.png +0 -0
- package/static/newStyle//350/261/252/344/275/263/347/207/203/346/260/224.png +0 -0
- package/yarn.lock +0 -8072
package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryServiceControl.vue
ADDED
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<show-back-reason v-if="selectdata.f_back_reason && selectdata.f_back_reason!=''"
|
|
3
|
+
:data="show_data"></show-back-reason>
|
|
4
|
+
<!--<gas-stop v-if="selectdata.defname == '停气碰口'"></gas-stop>-->
|
|
5
|
+
<material-message v-if="selectdata.defname=='材料导入'" v-ref:material
|
|
6
|
+
:selectdata="selectdata"
|
|
7
|
+
:state="2"
|
|
8
|
+
:edit="true"></material-message>
|
|
9
|
+
<material-message v-if="selectdata.defname=='材料审核'" v-ref:material
|
|
10
|
+
:selectdata="selectdata"
|
|
11
|
+
:state="1"
|
|
12
|
+
:edit="true"></material-message>
|
|
13
|
+
<receive-batch v-if="selectdata.defname == '派工单'" :selectdata="selectdata" v-ref:receivebatch></receive-batch>
|
|
14
|
+
<project-settlement v-if="selectdata.defname == '工程结算'" :selectdata="selectdata"></project-settlement>
|
|
15
|
+
<!-- <installfee :infee="selectdata" :showfee='true' v-if="selectdata.defname == '通气条件确认'"></installfee>-->
|
|
16
|
+
<buyer-message v-ref:buyermessagev :selectdata="selectdata" :state="1"
|
|
17
|
+
v-if="selectdata.defname == '收费'"></buyer-message>
|
|
18
|
+
<installfee :infee="selectdata" v-if="selectdata.defname == '收费'"></installfee>
|
|
19
|
+
<service-view v-ref:service_show :data="data" v-if="showview"></service-view>
|
|
20
|
+
</template>
|
|
21
|
+
<script>
|
|
22
|
+
import {HttpResetClass} from 'vue-client'
|
|
23
|
+
import Vue from "vue";
|
|
24
|
+
export default {
|
|
25
|
+
title: '报建监控控制层',
|
|
26
|
+
props: ['selectdata'],
|
|
27
|
+
data() {
|
|
28
|
+
return {
|
|
29
|
+
data: null, // 展示的数据
|
|
30
|
+
json_datas: null, // json配置数据结构
|
|
31
|
+
showview: false // 控制显示层显示
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
methods: {
|
|
35
|
+
getmodel(){
|
|
36
|
+
return this.$refs.service_show.getmodel()
|
|
37
|
+
},
|
|
38
|
+
// json配置数据处理 比如下拉框的options
|
|
39
|
+
async initializtion() {
|
|
40
|
+
// onetomany 数据获取
|
|
41
|
+
if (this.data.onetomany) {
|
|
42
|
+
console.log('判断是onetomany,this.data.onetomany的数据为=>' + JSON.stringify(this.data.onetomany))
|
|
43
|
+
for (let index = 0; index < this.data.onetomany.length; index++) {
|
|
44
|
+
let http = new HttpResetClass()
|
|
45
|
+
let data = {}
|
|
46
|
+
if (this.data.onetomany[index].tables[0] == 't_charge_record') {
|
|
47
|
+
data = {
|
|
48
|
+
tablename: this.data.onetomany[index].tables[0],
|
|
49
|
+
condition: `f_apply_num = '${this.selectdata.f_apply_num}' and f_process_id='${this.selectdata.f_process_id}' and f_charging_status != '作废'`
|
|
50
|
+
}
|
|
51
|
+
} else {
|
|
52
|
+
data = {
|
|
53
|
+
tablename: this.data.onetomany[index].tables[0],
|
|
54
|
+
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
|
|
58
|
+
resolveMsg: null,
|
|
59
|
+
rejectMsg: 'onetomany查询失败'
|
|
60
|
+
})
|
|
61
|
+
// 初始化 onetomany
|
|
62
|
+
let rows = []
|
|
63
|
+
console.log('查询返回结果res.data=>' + JSON.stringify(res.data))
|
|
64
|
+
this.data.onetomany[index].rows = res.data
|
|
65
|
+
// console.log(JSON.stringify('this.data.onetomany[index].rows=>' + JSON.stringify(this.data.onetomany[index].rows)))
|
|
66
|
+
|
|
67
|
+
// 初始化onetomany中的fields
|
|
68
|
+
for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
|
|
69
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
70
|
+
if (this.data.onetomany[index].fields[j].type === 'select') {
|
|
71
|
+
let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
|
|
72
|
+
if (temp && temp.length > 0) {
|
|
73
|
+
this.data.onetomany[index].fields[j].options = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
// selectdata 填充 data
|
|
80
|
+
if (this.selectdata.f_survey_name) {
|
|
81
|
+
let buyerinfos = []
|
|
82
|
+
var numReg = /^[0-9]+$/
|
|
83
|
+
var numRe = new RegExp(numReg)
|
|
84
|
+
if (numRe.test(this.selectdata.f_survey_name)) {
|
|
85
|
+
let querydata = {
|
|
86
|
+
tablename: 't_user',
|
|
87
|
+
condition: `id = ${this.selectdata.f_survey_name}`
|
|
88
|
+
}
|
|
89
|
+
buyerinfos = await this.$resetpost('rs/sql/singleTable', {data: querydata}, {
|
|
90
|
+
resolveMsg: null,
|
|
91
|
+
rejectMsg: '获取人员失败'
|
|
92
|
+
})
|
|
93
|
+
this.selectdata.f_survey_name = {
|
|
94
|
+
id:buyerinfos.data[0].id,
|
|
95
|
+
name:buyerinfos.data[0].name
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
this.data = Object.assign({}, this.data, this.selectdata)
|
|
101
|
+
for (let i = 0; i < this.data.fields.length; i++) {
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* 增加需求: 流程监控想要能下拉选择县区
|
|
105
|
+
* updateTime:2020.07.23
|
|
106
|
+
*/
|
|
107
|
+
if (this.data.fields[i].label == '县/区') {
|
|
108
|
+
let area = await this.$resetpost('rs/sql/singleTable', {
|
|
109
|
+
data: {
|
|
110
|
+
// items: 'f_bill_url,f_url_code',
|
|
111
|
+
tablename: 't_pcd',
|
|
112
|
+
condition: `f_filialeids = '${this.$login.f.f_orgids}'`
|
|
113
|
+
}
|
|
114
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
115
|
+
let rs = []
|
|
116
|
+
for (let i = 0; i < area.data.length; i++) {
|
|
117
|
+
let temp = {
|
|
118
|
+
label: area.data[i].f_pcd,
|
|
119
|
+
value: area.data[i].f_pcd
|
|
120
|
+
}
|
|
121
|
+
rs.push(temp)
|
|
122
|
+
}
|
|
123
|
+
this.data.fields[i].options = [{label: '全部', value: ''}, ...rs]
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
if (this.selectdata[this.data.fields[i].field]) {
|
|
128
|
+
this.data.fields[i].value = this.selectdata[this.data.fields[i].field]
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (typeof this.data.fields[i].value === 'string' && this.data.fields[i].value.startsWith("{") && this.data.fields[i].value.endsWith("}")) {
|
|
132
|
+
this.data.fields[i].value = JSON.parse(this.data.fields[i].value)
|
|
133
|
+
}
|
|
134
|
+
this.data.fields[i].readonly = true
|
|
135
|
+
this.data.fields[i].disabled = true
|
|
136
|
+
if(this.$login.r.find(value => value == '报建流程修改') && this.data.f_apply_type=='个人报建' && this.$login.r.includes('报建流程修改')){
|
|
137
|
+
this.data.fields[i].readonly = false
|
|
138
|
+
this.data.fields[i].disabled = false
|
|
139
|
+
}
|
|
140
|
+
if(this.$login.r.find(value => value == '集体报建流程修改') && this.data.f_apply_type=='集体报建' && this.$login.r.includes('报建流程修改')){
|
|
141
|
+
this.data.fields[i].readonly = false
|
|
142
|
+
this.data.fields[i].disabled = false
|
|
143
|
+
}
|
|
144
|
+
if(this.$login.r.find(value => value == '工程流程修改') && this.$login.r.includes('工程流程修改')){
|
|
145
|
+
this.data.fields[i].readonly = false
|
|
146
|
+
this.data.fields[i].disabled = false
|
|
147
|
+
}
|
|
148
|
+
if(this.data.fields[i].label=='合同总金额'){
|
|
149
|
+
console.log("合同总金额修改");
|
|
150
|
+
if(this.$login.r.includes('合同金额修改')){
|
|
151
|
+
this.data.fields[i].readonly = false
|
|
152
|
+
this.data.fields[i].disabled = false
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
if(this.data.fields[i].label=='费用合计'){
|
|
156
|
+
console.log("费用合计修改");
|
|
157
|
+
if(this.$login.r.includes('合同金额修改')){
|
|
158
|
+
this.data.fields[i].readonly = false
|
|
159
|
+
this.data.fields[i].disabled = false
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
this.data.buttons = null
|
|
164
|
+
if( this.$login.r.find(value => value == '工程流程修改')){
|
|
165
|
+
// 仅留保存按钮
|
|
166
|
+
this.data.buttons = [
|
|
167
|
+
{
|
|
168
|
+
"button_name": "保存"
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
events:{
|
|
175
|
+
'getmodel'(){
|
|
176
|
+
return this.$refs.service_show.getmodel()
|
|
177
|
+
},
|
|
178
|
+
// 获取view层button事件/
|
|
179
|
+
async 'button'(model) {
|
|
180
|
+
let http = new HttpResetClass()
|
|
181
|
+
// 下发,提交,保存,退回通用业务后台处理logic
|
|
182
|
+
let url = 'rs/logic/ApplyProductService'
|
|
183
|
+
model.id = this.selectdata.appid
|
|
184
|
+
let requestData = {
|
|
185
|
+
tables: this.data.tables,
|
|
186
|
+
model: model,
|
|
187
|
+
isedit: true
|
|
188
|
+
}
|
|
189
|
+
requestData.loginUser = this.$login.f
|
|
190
|
+
console.log('即将发送请求url=>' + url + ',参数=>' + JSON.stringify(requestData))
|
|
191
|
+
let res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
|
|
192
|
+
console.log("service处理完成返回数据:", JSON.stringify(res.data))
|
|
193
|
+
if (res.data.code == 200) {
|
|
194
|
+
this.$dispatch('selfsearch')
|
|
195
|
+
this.$dispatch('close')
|
|
196
|
+
} else {
|
|
197
|
+
if (res.data.msg) {
|
|
198
|
+
this.$showMessage(res.data.msg)
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
'checkboxSelectControl'(index,index2){
|
|
203
|
+
console.log("chufa事件control");
|
|
204
|
+
console.log('this.$refs.service_show.data.fields[index]==>:'+JSON.stringify(this.$refs.service_show.data.fields[index]));
|
|
205
|
+
if(this.$refs.service_show.data.fields[index].label=="施工提交资料"){
|
|
206
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
207
|
+
if(this.$refs.service_show.data.fields[i].label=="施工已上传文件"){
|
|
208
|
+
//增加和删除框中的内容
|
|
209
|
+
if (this.$refs.service_show.data.fields[i].value==undefined){
|
|
210
|
+
this.$refs.service_show.data.fields[i].value=''
|
|
211
|
+
}
|
|
212
|
+
if(this.$refs.service_show.data.fields[index].items[index2].value == false){
|
|
213
|
+
this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
|
|
214
|
+
// 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+" ";
|
|
215
|
+
this.$refs.service_show.data.fields[index].items[index2].value=true;
|
|
216
|
+
}else{
|
|
217
|
+
let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
|
|
218
|
+
let values =this.$refs.service_show.data.fields[i].value;
|
|
219
|
+
let result = values.split(" ").filter((item)=>{
|
|
220
|
+
return item!=deleteValue;
|
|
221
|
+
}).join(" ")
|
|
222
|
+
this.$refs.service_show.data.fields[i].value =result;
|
|
223
|
+
this.$refs.service_show.data.fields[index].items[index2].value=false;
|
|
224
|
+
}
|
|
225
|
+
//}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
if(this.$refs.service_show.data.fields[index].label=="验收提交资料"){
|
|
230
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
231
|
+
|
|
232
|
+
if(this.$refs.service_show.data.fields[i].label=="验收已上传文件"){
|
|
233
|
+
//增加和删除框中的内容
|
|
234
|
+
if(this.$refs.service_show.data.fields[index].items[index2].value == false){
|
|
235
|
+
this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
|
|
236
|
+
// 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+" ";
|
|
237
|
+
this.$refs.service_show.data.fields[index].items[index2].value=true;
|
|
238
|
+
}else{
|
|
239
|
+
let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
|
|
240
|
+
let values =this.$refs.service_show.data.fields[i].value;
|
|
241
|
+
let result = values.split(" ").filter((item)=>{
|
|
242
|
+
return item!=deleteValue;
|
|
243
|
+
}).join(" ")
|
|
244
|
+
this.$refs.service_show.data.fields[i].value =result;
|
|
245
|
+
this.$refs.service_show.data.fields[index].items[index2].value=false;
|
|
246
|
+
}
|
|
247
|
+
//}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
/*if(this.$refs.service_show.data.fields[index].label=="施工提交资料"){
|
|
252
|
+
debugger
|
|
253
|
+
var aname = ''
|
|
254
|
+
for (let i = 0; i < this.$refs.service_show.data.fields[index].items.length; i++) {
|
|
255
|
+
debugger
|
|
256
|
+
if (this.$refs.service_show.data.fields[index].items[i]==true){
|
|
257
|
+
debugger
|
|
258
|
+
aname+=this.$refs.service_show.data.fields[index].item[i].value
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
console.log("aaaaa",aname)
|
|
262
|
+
}
|
|
263
|
+
if (this.$refs.service_show.data.fields[index].label=="施工已上传文件"){
|
|
264
|
+
debugger
|
|
265
|
+
this.$refs.service_show.data.fields[index].value=aname
|
|
266
|
+
}*/
|
|
267
|
+
this.$refs.service_show.update()
|
|
268
|
+
},
|
|
269
|
+
async 'select_cascade'(index){
|
|
270
|
+
console.log("sdsdsdsdsdsdsdsdsdsdsdsdsdsd")
|
|
271
|
+
if (this.$refs.service_show.data.fields[index].label == '工程安装费'||
|
|
272
|
+
this.$refs.service_show.data.fields[index].label == '材料费'||
|
|
273
|
+
this.$refs.service_show.data.fields[index].label == '人工费') {
|
|
274
|
+
debugger
|
|
275
|
+
let gcmoney = 0;
|
|
276
|
+
let clmoney=0;
|
|
277
|
+
let rgmoney=0;
|
|
278
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
279
|
+
|
|
280
|
+
if (this.$refs.service_show.data.fields[i].label == '工程安装费') {
|
|
281
|
+
gcmoney =this.$refs.service_show.data.fields[i].value
|
|
282
|
+
}
|
|
283
|
+
if (this.$refs.service_show.data.fields[i].label == '材料费') {
|
|
284
|
+
clmoney = this.$refs.service_show.data.fields[i].value
|
|
285
|
+
}
|
|
286
|
+
if (this.$refs.service_show.data.fields[i].label == '人工费') {
|
|
287
|
+
rgmoney = this.$refs.service_show.data.fields[i].value
|
|
288
|
+
}
|
|
289
|
+
if (this.$refs.service_show.data.fields[i].label === '费用合计') {
|
|
290
|
+
this.$refs.service_show.data.fields[i].value = parseInt(gcmoney)+parseInt(clmoney)+parseInt(rgmoney);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
this.$refs.service_show.update()
|
|
294
|
+
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
if (this.$refs.service_show.data.fields[index].label == '合同总金额'){
|
|
298
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
299
|
+
if (this.$refs.service_show.data.fields[i].label === '未结总金额') {
|
|
300
|
+
this.$refs.service_show.data.fields[i].value = parseInt(this.$refs.service_show.data.fields[index].value);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* 增加需求: 流程监控地址可以下拉选择
|
|
307
|
+
* 2020.07.23
|
|
308
|
+
*/
|
|
309
|
+
if (this.$refs.service_show.data.fields[index].label === '县/区') {
|
|
310
|
+
let temp = this.$refs.service_show.data.fields[index].value
|
|
311
|
+
console.log('==============================县/区:' + temp)
|
|
312
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
313
|
+
// 控制设置级联
|
|
314
|
+
// 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
|
|
315
|
+
if (this.$refs.service_show.data.fields[i].label === '街道名称') {
|
|
316
|
+
// this.$refs.service_show.data.fields[i].value = ''
|
|
317
|
+
let street = await this.$resetpost('rs/sql/singleTable', {
|
|
318
|
+
data: {
|
|
319
|
+
tablename: 't_street',
|
|
320
|
+
condition: `f_filialeids = '${this.$login.f.f_orgids}' and f_pcd='${temp}'`
|
|
321
|
+
}
|
|
322
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
323
|
+
let streetrs = []
|
|
324
|
+
for (let i = 0; i < street.data.length; i++) {
|
|
325
|
+
let temp = {
|
|
326
|
+
label: street.data[i].f_street,
|
|
327
|
+
value: street.data[i].f_street
|
|
328
|
+
}
|
|
329
|
+
streetrs.push(temp)
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
this.$refs.service_show.data.fields[i].options = [{label: '全部', value: ''}, ...streetrs]
|
|
333
|
+
//this.data.fields[i].options = [{label: '全部', value: ''}, ...streetrs]
|
|
334
|
+
// console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~option:', this.data.fields[i].options)
|
|
335
|
+
|
|
336
|
+
this.$refs.service_show.update()
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
if (this.$refs.service_show.data.fields[index].label === '街道名称') {
|
|
342
|
+
let temp = this.$refs.service_show.data.fields[index].value
|
|
343
|
+
console.log('=============================街道:' + temp)
|
|
344
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
345
|
+
// 控制设置级联
|
|
346
|
+
// 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
|
|
347
|
+
if (this.$refs.service_show.data.fields[i].label === '小区名称') {
|
|
348
|
+
// this.$refs.service_show.data.fields[i].value = ''
|
|
349
|
+
|
|
350
|
+
let area = await this.$resetpost('rs/sql/singleTable', {
|
|
351
|
+
data: {
|
|
352
|
+
tablename: 't_area',
|
|
353
|
+
condition: `f_filialeids = '${this.$login.f.f_orgids}' and f_street='${temp}'`
|
|
354
|
+
}
|
|
355
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
356
|
+
let arears = []
|
|
357
|
+
this.areaall=area.data;
|
|
358
|
+
for (let i = 0; i < area.data.length; i++) {
|
|
359
|
+
let temp = {
|
|
360
|
+
label: area.data[i].f_residential_area,
|
|
361
|
+
value: area.data[i].f_residential_area
|
|
362
|
+
}
|
|
363
|
+
arears.push(temp)
|
|
364
|
+
}
|
|
365
|
+
this.$refs.service_show.data.fields[i].options = [{label: '全部', value: ''}, ...arears]
|
|
366
|
+
//this.data.fields[i].options = [{label: '全部', value: ''}, ...streetrs]
|
|
367
|
+
console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~option:', this.$refs.service_show.data.fields[i].options)
|
|
368
|
+
|
|
369
|
+
this.$refs.service_show.update()
|
|
370
|
+
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
if(this.$refs.service_show.data.fields[index].label === '小区名称'){
|
|
376
|
+
for (let i = 0; i < this.areaall.length; i++) {
|
|
377
|
+
console.log("aaaaaaaaaaaa")
|
|
378
|
+
if(this.areaall[i].f_residential_area== this.$refs.service_show.data.fields[index].value){
|
|
379
|
+
console.log("abbbbbbbbb")
|
|
380
|
+
for (let j = 0; j < this.$refs.service_show.data.fields.length; j++) {
|
|
381
|
+
if(this.$refs.service_show.data.fields[j].label === '小区地址'){
|
|
382
|
+
console.log(this.areaall[i].f_area_address)
|
|
383
|
+
this.$refs.service_show.data.fields[j].value=this.areaall[i].f_area_address
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
// 合成地址
|
|
391
|
+
if (
|
|
392
|
+
this.$refs.service_show.data.fields[index].label === '县/区' ||
|
|
393
|
+
this.$refs.service_show.data.fields[index].label === '街道名称' ||
|
|
394
|
+
this.$refs.service_show.data.fields[index].label === '小区名称' ||
|
|
395
|
+
this.$refs.service_show.data.fields[index].label === '楼号' ||
|
|
396
|
+
this.$refs.service_show.data.fields[index].label === '单元号' ||
|
|
397
|
+
this.$refs.service_show.data.fields[index].label === '楼层' ||
|
|
398
|
+
this.$refs.service_show.data.fields[index].label === '门牌号'
|
|
399
|
+
) {
|
|
400
|
+
console.log('即将合成地址')
|
|
401
|
+
var address = ''
|
|
402
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
403
|
+
// 控制设置级联
|
|
404
|
+
// 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
|
|
405
|
+
// xxx xx xxx
|
|
406
|
+
if (this.$refs.service_show.data.fields[i].label === '县/区' && this.$refs.service_show.data.fields[i].value) {
|
|
407
|
+
address += this.$refs.service_show.data.fields[i].value
|
|
408
|
+
}
|
|
409
|
+
if (this.$refs.service_show.data.fields[i].label === '街道名称' && this.$refs.service_show.data.fields[i].value) {
|
|
410
|
+
address += this.$refs.service_show.data.fields[i].value
|
|
411
|
+
}
|
|
412
|
+
if (this.$refs.service_show.data.fields[i].label === '小区名称' && this.$refs.service_show.data.fields[i].value) {
|
|
413
|
+
address += this.$refs.service_show.data.fields[i].value
|
|
414
|
+
}
|
|
415
|
+
if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
|
|
416
|
+
address += this.$refs.service_show.data.fields[i].value
|
|
417
|
+
}
|
|
418
|
+
if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
|
|
419
|
+
address += '栋'
|
|
420
|
+
}
|
|
421
|
+
if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
|
|
422
|
+
address += '-' +this.$refs.service_show.data.fields[i].value
|
|
423
|
+
}
|
|
424
|
+
if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
|
|
425
|
+
address += '单元'
|
|
426
|
+
}
|
|
427
|
+
if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
|
|
428
|
+
address += '-' +this.$refs.service_show.data.fields[i].value
|
|
429
|
+
}
|
|
430
|
+
if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
|
|
431
|
+
address += '层'
|
|
432
|
+
}
|
|
433
|
+
if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
|
|
434
|
+
address += '-' +this.$refs.service_show.data.fields[i].value
|
|
435
|
+
}
|
|
436
|
+
if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
|
|
437
|
+
address += '室'
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
}
|
|
441
|
+
console.log('获取到的address=>' + address)
|
|
442
|
+
// 数据获取完毕时放入地址text
|
|
443
|
+
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
444
|
+
if (this.$refs.service_show.data.fields[i].label === '地址' || this.$refs.service_show.data.fields[i].label === '报装地址') {
|
|
445
|
+
this.$refs.service_show.data.fields[i].value = address
|
|
446
|
+
console.log('修改fields[i].value后的值=>' + this.$refs.service_show.data.fields[i].value)
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
},
|
|
452
|
+
|
|
453
|
+
},
|
|
454
|
+
watch: {
|
|
455
|
+
'selectdata'() {
|
|
456
|
+
this.json_datas = this.$supervisory_vue
|
|
457
|
+
let sum = 0
|
|
458
|
+
let jsonData = {}
|
|
459
|
+
for (let i = 0; i < this.json_datas.activitys.length; i++) {
|
|
460
|
+
if (this.selectdata.defname == this.json_datas.activitys[i].title) {
|
|
461
|
+
jsonData = this.json_datas.activitys[i]
|
|
462
|
+
sum++
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
if (sum == 1) {
|
|
466
|
+
this.data = jsonData
|
|
467
|
+
this.initializtion()
|
|
468
|
+
// 完成时间和完成人,部门,分公司
|
|
469
|
+
if(this.selectdata.defname =='完工'){ this.data.filiale = this.selectdata.f_filiale
|
|
470
|
+
this.data.f_parentname = this.selectdata.f_parentname
|
|
471
|
+
this.data.operate_date = this.selectdata.sendtime
|
|
472
|
+
this.data.operator = this.selectdata.sender
|
|
473
|
+
this.showview = true
|
|
474
|
+
}else{
|
|
475
|
+
this.data.f_parentname = this.selectdata.f_parentname
|
|
476
|
+
this.data.operate_date = this.selectdata.finishtime
|
|
477
|
+
this.data.operator = this.selectdata.person
|
|
478
|
+
this.showview = true
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
} else if (sum == 0) {
|
|
482
|
+
this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
|
|
483
|
+
} else {
|
|
484
|
+
this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
deep: true
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
</script>
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
<nobr>{{row.f_install_num}}</nobr>
|
|
182
182
|
</td>
|
|
183
183
|
<td style="text-align: center;">
|
|
184
|
-
<dropdown
|
|
184
|
+
<dropdown>
|
|
185
185
|
<button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
|
|
186
186
|
<span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
|
|
187
187
|
</button>
|
|
@@ -217,7 +217,8 @@
|
|
|
217
217
|
model: new PagedList('rs/sql/checkuserfunction', 20, {
|
|
218
218
|
data: {
|
|
219
219
|
id: this.$login.f.id,
|
|
220
|
-
fengongsi: this.$login.f.f_fengongsi
|
|
220
|
+
fengongsi: this.$login.f.f_fengongsi,
|
|
221
|
+
f_product_id: 0
|
|
221
222
|
}
|
|
222
223
|
}),
|
|
223
224
|
condition: ''
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
<stop-install :stopapply="selectdata" v-if="showstop"></stop-install>
|
|
21
21
|
<!-- 领料记录 -->
|
|
22
22
|
<material_recording :infee="selectdata" v-if="show_material"></material_recording>
|
|
23
|
+
<!-- APP附件 -->
|
|
24
|
+
<apply-upload :appupload="selectdata" v-if="show_upload"></apply-upload>
|
|
23
25
|
</div>
|
|
24
26
|
</template>
|
|
25
27
|
<script>
|
|
@@ -42,7 +44,8 @@
|
|
|
42
44
|
showstop: false, // 终止报建
|
|
43
45
|
showbill: false, // 打印票据
|
|
44
46
|
showpreparation: false, // 预付款
|
|
45
|
-
show_material:false
|
|
47
|
+
show_material:false,//报建材料
|
|
48
|
+
show_upload: false //APP附件
|
|
46
49
|
}
|
|
47
50
|
},
|
|
48
51
|
methods: {
|
|
@@ -65,6 +68,7 @@
|
|
|
65
68
|
this.showcontract = false
|
|
66
69
|
this.showbill = false
|
|
67
70
|
this.showpreparation = false
|
|
71
|
+
this.show_upload = false
|
|
68
72
|
},
|
|
69
73
|
// 派工单
|
|
70
74
|
receiveBatch(){
|
|
@@ -85,6 +89,7 @@
|
|
|
85
89
|
this.showcontract = false
|
|
86
90
|
this.showbill = false
|
|
87
91
|
this.showpreparation = false
|
|
92
|
+
this.show_upload = false
|
|
88
93
|
},
|
|
89
94
|
// 领料记录
|
|
90
95
|
materialRecord(){
|
|
@@ -105,6 +110,7 @@
|
|
|
105
110
|
this.showcontract = false
|
|
106
111
|
this.showbill = false
|
|
107
112
|
this.showpreparation = false
|
|
113
|
+
this.show_upload = false
|
|
108
114
|
},
|
|
109
115
|
// 预付款
|
|
110
116
|
preparation(){
|
|
@@ -125,6 +131,7 @@
|
|
|
125
131
|
this.showcontract = false
|
|
126
132
|
this.showbill = false
|
|
127
133
|
this.showpreparation = true
|
|
134
|
+
this.show_upload = false
|
|
128
135
|
},
|
|
129
136
|
// 票据打印
|
|
130
137
|
bill(){
|
|
@@ -145,6 +152,7 @@
|
|
|
145
152
|
this.showpreparation = false
|
|
146
153
|
this.showbill = true
|
|
147
154
|
this.show_material = false
|
|
155
|
+
this.show_upload = false
|
|
148
156
|
},
|
|
149
157
|
// 补充合同
|
|
150
158
|
contract() {
|
|
@@ -165,6 +173,7 @@
|
|
|
165
173
|
this.showpreparation = false
|
|
166
174
|
this.showcontract = true
|
|
167
175
|
this.show_material = false
|
|
176
|
+
this.show_upload = false
|
|
168
177
|
},
|
|
169
178
|
// 收费
|
|
170
179
|
instalfee(str) {
|
|
@@ -185,6 +194,7 @@
|
|
|
185
194
|
this.showprestorefee = false
|
|
186
195
|
this.showinfee = false
|
|
187
196
|
this.show_material = false
|
|
197
|
+
this.show_upload = false
|
|
188
198
|
// 采用开发商预付款方式收费
|
|
189
199
|
if(str==='预付扣款'){
|
|
190
200
|
this.showprestorefee = true
|
|
@@ -211,6 +221,28 @@
|
|
|
211
221
|
this.showpreparation = false
|
|
212
222
|
this.showstop = true
|
|
213
223
|
this.show_material = false
|
|
224
|
+
this.show_upload = false
|
|
225
|
+
},
|
|
226
|
+
// APP附件
|
|
227
|
+
appUpload() {
|
|
228
|
+
this.$parent.$refs.installselect.clifun(this.selectdata)
|
|
229
|
+
// this.selectdata = row
|
|
230
|
+
this.$parent.clishow= true
|
|
231
|
+
this.$parent.show = false
|
|
232
|
+
|
|
233
|
+
this.showreceivebatch = false
|
|
234
|
+
this.showbuyer = false
|
|
235
|
+
this.showview = false
|
|
236
|
+
this.showbill = false
|
|
237
|
+
this.showinfee = false
|
|
238
|
+
this.showprestorefee = false
|
|
239
|
+
this.showupfee = false
|
|
240
|
+
this.showreducefee = false
|
|
241
|
+
this.showcontract = false
|
|
242
|
+
this.showpreparation = false
|
|
243
|
+
this.showstop = false
|
|
244
|
+
this.show_material = false
|
|
245
|
+
this.show_upload = true
|
|
214
246
|
},
|
|
215
247
|
|
|
216
248
|
|
|
@@ -250,6 +282,7 @@
|
|
|
250
282
|
this.showreceivebatch = false
|
|
251
283
|
this.showbuyer = false
|
|
252
284
|
this.show_material = false
|
|
285
|
+
this.show_upload = false
|
|
253
286
|
}else{
|
|
254
287
|
if(this.funcdata.title==='终止报建'){
|
|
255
288
|
this.stopInstall()
|
|
@@ -278,6 +311,9 @@
|
|
|
278
311
|
if(this.funcdata.title==='派工单'){
|
|
279
312
|
this.receiveBatch()
|
|
280
313
|
}
|
|
314
|
+
if(this.funcdata.title==='APP附件'){
|
|
315
|
+
this.appUpload()
|
|
316
|
+
}
|
|
281
317
|
}
|
|
282
318
|
}
|
|
283
319
|
},
|