apply-clients 3.5.4-94 → 3.5.4-96
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 +1 -1
- package/src/components/product/Print/BuildOrder/buildOrderList.vue +3 -3
- package/src/filiale/fugou/android/AppZhihuanManagement.vue +230 -197
- package/src/filiale/fugou/pc/ApplyChargeList.vue +2 -2
- package/src/filiale/yangchunboneng/android/AppServiceControl.vue +2 -2
- package/src/filiale/yangchunboneng/pc/ServiceControl.vue +1 -1
package/package.json
CHANGED
|
@@ -132,14 +132,14 @@
|
|
|
132
132
|
</tr>
|
|
133
133
|
</template>
|
|
134
134
|
<template partial='body'>
|
|
135
|
-
<tr
|
|
136
|
-
<td
|
|
135
|
+
<tr>
|
|
136
|
+
<td style="text-align: center;">
|
|
137
137
|
<nobr><font>{{$index+1}}</font></nobr>
|
|
138
138
|
</td>
|
|
139
139
|
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
140
140
|
<nobr><font>{{row.f_apply_num}}</font></nobr>
|
|
141
141
|
</td>
|
|
142
|
-
<td
|
|
142
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
143
143
|
<nobr><font>{{row.f_user_name}}</font></nobr>
|
|
144
144
|
</td>
|
|
145
145
|
<td style="text-align: center;" @click="$parent.$parent.$parent.click(row)">
|
|
@@ -1,197 +1,230 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="col-sm-12" style="margin: 20px 0px;">
|
|
3
|
-
<data-grid :model="model" v-ref:grid class="list_area table_sy" style="padding: 0px">
|
|
4
|
-
<template partial='head'>
|
|
5
|
-
<tr>
|
|
6
|
-
<th class="textNoLineBreak">序号</th>
|
|
7
|
-
<th class="textNoLineBreak">检查项目</th>
|
|
8
|
-
<th class="textNoLineBreak">检查结果</th>
|
|
9
|
-
<th class="textNoLineBreak">操作</th>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
:
|
|
69
|
-
:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
</
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="col-sm-12" style="margin: 20px 0px;">
|
|
3
|
+
<data-grid :model="model" v-ref:grid class="list_area table_sy" style="padding: 0px">
|
|
4
|
+
<template partial='head'>
|
|
5
|
+
<tr>
|
|
6
|
+
<th class="textNoLineBreak">序号</th>
|
|
7
|
+
<th class="textNoLineBreak">检查项目</th>
|
|
8
|
+
<th class="textNoLineBreak">检查结果</th>
|
|
9
|
+
<th class="textNoLineBreak">操作</th>
|
|
10
|
+
<th class="textNoLineBreak">
|
|
11
|
+
<button style="color:black" class="button_new button_spacing" type="button" @click="$parent.$parent.getCheck()">重置
|
|
12
|
+
</button>
|
|
13
|
+
</th>
|
|
14
|
+
</tr>
|
|
15
|
+
</template>
|
|
16
|
+
<template partial='body'>
|
|
17
|
+
<tr>
|
|
18
|
+
<td style="text-align: center;">
|
|
19
|
+
<nobr>{{$index+1}}</nobr>
|
|
20
|
+
</td>
|
|
21
|
+
<td style="text-align: center;" >
|
|
22
|
+
<nobr>{{row.f_check_list}}</nobr>
|
|
23
|
+
</td>
|
|
24
|
+
<td style="text-align: center;">
|
|
25
|
+
<nobr>{{row.f_check_value}}</nobr>
|
|
26
|
+
</td>
|
|
27
|
+
<td style="text-align: center;">
|
|
28
|
+
<nobr>
|
|
29
|
+
<button
|
|
30
|
+
type="button"
|
|
31
|
+
name="button"
|
|
32
|
+
class="btn btn-link"
|
|
33
|
+
@click="$parent.$parent.showModal(row)"
|
|
34
|
+
>修改</button>
|
|
35
|
+
</nobr>
|
|
36
|
+
</td>
|
|
37
|
+
</tr>
|
|
38
|
+
</template>
|
|
39
|
+
</data-grid>
|
|
40
|
+
<validator name="v">
|
|
41
|
+
<modal v-if="showCheckModel" :show.sync="showCheckModel" v-ref:modal :large="true" :backdrop="false" title="收费明细">
|
|
42
|
+
<header slot="modal-header" class="modal-header">
|
|
43
|
+
<button type="button" class="close" @click="closeModal"><span>×</span></button>
|
|
44
|
+
<h4 class="modal-title">检查明细</h4>
|
|
45
|
+
</header>
|
|
46
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
47
|
+
<div class="form-group col-sm-12">
|
|
48
|
+
<label class="col-sm-2 control-label">检查项目:</label>
|
|
49
|
+
<div class="col-sm-10">
|
|
50
|
+
<textarea width="100%" rows="3" readonly v-model="checkList.f_check_list"></textarea>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<div class="form-group col-sm-12" >
|
|
55
|
+
<label class="col-sm-2 control-label">检查结果:</label>
|
|
56
|
+
<div class="col-sm-10">
|
|
57
|
+
<input-select
|
|
58
|
+
placeholder='请选择' width="100%"
|
|
59
|
+
v-model="checkList.f_check_value"
|
|
60
|
+
:value.sync="checkList.f_check_value"
|
|
61
|
+
:options='item'
|
|
62
|
+
class="select select_list"
|
|
63
|
+
:value-single="true"
|
|
64
|
+
close-on-select ></input-select>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
<app-check-take-pic
|
|
68
|
+
:blobid="selectdata.f_process_id"
|
|
69
|
+
:flag="flag"
|
|
70
|
+
:defname="selectdata.defname"
|
|
71
|
+
:isdelete="true"
|
|
72
|
+
:istakepic="true"
|
|
73
|
+
:istype="true">
|
|
74
|
+
</app-check-take-pic>
|
|
75
|
+
</article>
|
|
76
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
77
|
+
<button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="save()">保存</button>
|
|
78
|
+
</footer>
|
|
79
|
+
</modal>
|
|
80
|
+
</validator>
|
|
81
|
+
</div>
|
|
82
|
+
</template>
|
|
83
|
+
<script>
|
|
84
|
+
import {HttpResetClass} from 'vue-client'
|
|
85
|
+
import Vue from 'vue'
|
|
86
|
+
import co from "co";
|
|
87
|
+
|
|
88
|
+
export default {
|
|
89
|
+
title: '检查项管理',
|
|
90
|
+
props: {
|
|
91
|
+
selectdata: {
|
|
92
|
+
type: Object
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
data () {
|
|
96
|
+
return {
|
|
97
|
+
model: {
|
|
98
|
+
data: null
|
|
99
|
+
},
|
|
100
|
+
flag:0,
|
|
101
|
+
showCheckModel: false,
|
|
102
|
+
checkList:{},
|
|
103
|
+
item: [{label: '是', value: '是'},{label: '否', value: '否'}],
|
|
104
|
+
hasList:false,
|
|
105
|
+
savelist:[]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
ready () {
|
|
109
|
+
this.search()
|
|
110
|
+
},
|
|
111
|
+
methods: {
|
|
112
|
+
async flush(){
|
|
113
|
+
let http = new HttpResetClass()
|
|
114
|
+
let data = {
|
|
115
|
+
tablename: 't_apply_check',
|
|
116
|
+
condition: `f_process_id= '${this.selectdata.f_process_id}'`
|
|
117
|
+
}
|
|
118
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data:data}, {
|
|
119
|
+
resolveMsg: null,
|
|
120
|
+
rejectMsg: '检查项查询失败!!!'
|
|
121
|
+
})
|
|
122
|
+
this.model.data=res.data
|
|
123
|
+
},
|
|
124
|
+
async getCheck(){
|
|
125
|
+
let http = new HttpResetClass()
|
|
126
|
+
this.$showMessage('是否获取最新检查项?', ['confirm', 'cancel']).then(async (res) => {
|
|
127
|
+
if (res === 'confirm') {
|
|
128
|
+
this.model.data=[]
|
|
129
|
+
let del= `delete from t_apply_check where f_process_id='${this.selectdata.f_process_id}'`
|
|
130
|
+
//删除旧的检查项,
|
|
131
|
+
await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/runSQL`, {data: {sql: del}},
|
|
132
|
+
{resolveMsg: null, rejectMsg: '删除安检册失败'})
|
|
133
|
+
//拉取新的检查项
|
|
134
|
+
await this.saveCheck()
|
|
135
|
+
//刷新
|
|
136
|
+
await this.flush()
|
|
137
|
+
}
|
|
138
|
+
})
|
|
139
|
+
},
|
|
140
|
+
async save(){
|
|
141
|
+
let res = await this.$resetpost(
|
|
142
|
+
`${this.$androidUtil.getProxyUrl()}/apply/rs/entity/t_apply_check`,
|
|
143
|
+
this.checkList,
|
|
144
|
+
{resolveMsg: null, rejectMsg: '数据保存失败!!!'}
|
|
145
|
+
)
|
|
146
|
+
if(res){
|
|
147
|
+
this.showCheckModel=false
|
|
148
|
+
this.search()
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
showModal(row){
|
|
152
|
+
this.checkList=row
|
|
153
|
+
this.flag=this.selectdata.f_apply_num+row.id
|
|
154
|
+
this.showCheckModel=true
|
|
155
|
+
},
|
|
156
|
+
closeModal() {
|
|
157
|
+
this.showCheckModel=false
|
|
158
|
+
},
|
|
159
|
+
//如果是第一次,则新保存检查想到数据库
|
|
160
|
+
async saveCheck() {
|
|
161
|
+
if (this.hasList === false) {
|
|
162
|
+
this.savelist = []
|
|
163
|
+
let checkList
|
|
164
|
+
if (this.selectdata.f_apply_type == '工商户报建'){
|
|
165
|
+
checkList = this.$appdata.getParam("报建非民用检查项目")
|
|
166
|
+
}else {
|
|
167
|
+
checkList = this.$appdata.getParam("报建民用检查项目")
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
//遍历数组,获取数组中的每一个对象,并获取对象的value
|
|
171
|
+
for (let i = 0; i < checkList.length; i++) {
|
|
172
|
+
let obj = checkList[i]
|
|
173
|
+
let value = obj.value
|
|
174
|
+
this.savelist.push(value)
|
|
175
|
+
}
|
|
176
|
+
//保存到数据库
|
|
177
|
+
let http = new HttpResetClass()
|
|
178
|
+
let data = {
|
|
179
|
+
apply: this.selectdata,
|
|
180
|
+
user: Vue.user,
|
|
181
|
+
check:this.savelist
|
|
182
|
+
}
|
|
183
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/addApplyCheck`, {data: data}, {
|
|
184
|
+
resolveMsg: null,
|
|
185
|
+
rejectMsg: '添加失败!!!'
|
|
186
|
+
})
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
//查询
|
|
190
|
+
async search() {
|
|
191
|
+
let http = new HttpResetClass()
|
|
192
|
+
let data = {
|
|
193
|
+
tablename: 't_apply_check',
|
|
194
|
+
condition: `f_process_id= '${this.selectdata.f_process_id}'`
|
|
195
|
+
}
|
|
196
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data:data}, {
|
|
197
|
+
resolveMsg: null,
|
|
198
|
+
rejectMsg: '检查项查询失败!!!'
|
|
199
|
+
})
|
|
200
|
+
if(res.data.length>0){
|
|
201
|
+
this.model.data=res.data
|
|
202
|
+
}else{
|
|
203
|
+
this.saveCheck()
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
events: {
|
|
208
|
+
},
|
|
209
|
+
computed: {
|
|
210
|
+
CheckItems() {
|
|
211
|
+
return this.$appdata.getParam("报建检查项目")
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
watch: {
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
</script>
|
|
218
|
+
<style scoped>
|
|
219
|
+
.textNoLineBreak {
|
|
220
|
+
white-space: nowrap;
|
|
221
|
+
}
|
|
222
|
+
.head-but{
|
|
223
|
+
margin-left: 5px;
|
|
224
|
+
height: 34px;
|
|
225
|
+
/*background-color: #6aa6e2;*/
|
|
226
|
+
border-radius: 4px;
|
|
227
|
+
font-family: PingFang;
|
|
228
|
+
color: #ffffff;
|
|
229
|
+
}
|
|
230
|
+
</style>
|
|
@@ -384,7 +384,6 @@ export default {
|
|
|
384
384
|
})},
|
|
385
385
|
|
|
386
386
|
async getapplyoperator(){
|
|
387
|
-
debugger
|
|
388
387
|
let data = {
|
|
389
388
|
condition: `1=1`
|
|
390
389
|
}
|
|
@@ -419,7 +418,8 @@ export default {
|
|
|
419
418
|
if (this.curuserid.length > 0) {
|
|
420
419
|
args.condition = args.condition + ` and cr.f_charge_collectors_id in (${this.curuserid})`
|
|
421
420
|
}
|
|
422
|
-
|
|
421
|
+
|
|
422
|
+
if(args.model.f_charge_status.length==0){
|
|
423
423
|
args.condition+=` and cr.f_charge_status in ('有效','退款')`
|
|
424
424
|
}
|
|
425
425
|
|
|
@@ -1286,11 +1286,11 @@ export default {
|
|
|
1286
1286
|
{data: this.show_data},
|
|
1287
1287
|
{resolveMsg: null, rejectMsg: '数据保存失败'}
|
|
1288
1288
|
)
|
|
1289
|
-
if(this.show_data.f_apply_type == '验收审批' && this.show_data.defname === '验收审批' && this.show_data.button.button_name === '提交'){
|
|
1289
|
+
if((this.show_data.f_apply_type == '验收审批' && this.show_data.defname === '验收审批' )|| (this.show_data.f_apply_type === '工程施工' && this.show_data.defname === '工程施工' )&& this.show_data.button.button_name === '提交'){
|
|
1290
1290
|
const http = new HttpResetClass()
|
|
1291
1291
|
let data = {
|
|
1292
1292
|
tablename: 't_apply',
|
|
1293
|
-
condition: `f_parent_process_id = '${this.show_data.f_parent_process_id}' and f_apply_type
|
|
1293
|
+
condition: `f_parent_process_id = '${this.show_data.f_parent_process_id}' and f_apply_type in ('验收审批','工程施工') and f_sub_state != '完工' and f_sub_state != '终止'`
|
|
1294
1294
|
}
|
|
1295
1295
|
await http.load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`,{data: data},{rejectMsg:null,resolveMsg:null}).then( res=>{
|
|
1296
1296
|
if (res.data.length == 0){
|
|
@@ -1937,7 +1937,7 @@
|
|
|
1937
1937
|
const http = new HttpResetClass()
|
|
1938
1938
|
let data = {
|
|
1939
1939
|
tablename: 't_apply',
|
|
1940
|
-
condition: `f_parent_process_id = '${this.show_data.f_parent_process_id}' and f_apply_type in ('验收审批','工程施工') and f_sub_state != '完工'`
|
|
1940
|
+
condition: `f_parent_process_id = '${this.show_data.f_parent_process_id}' and f_apply_type in ('验收审批','工程施工') and f_sub_state != '完工' and f_sub_state != '终止'`
|
|
1941
1941
|
}
|
|
1942
1942
|
await http.load('post',`rs/sql/apply_singleTable`,{data: data},{rejectMsg:null,resolveMsg:null}).then( res=>{
|
|
1943
1943
|
//判断res.data.length == 0,则子流程已经完工,然后将付流程进行到下一步
|