telephone-clients 4.0.0-1-3 → 4.0.0-1-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
CHANGED
|
@@ -1,147 +1,140 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="pc-finduser-page">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged :simple="true">
|
|
4
|
-
|
|
5
|
-
<data-grid :model="model" partial='list' v-ref:grid
|
|
6
|
-
class="list_area table_sy">
|
|
7
|
-
<template partial='head'>
|
|
8
|
-
<tr>
|
|
9
|
-
<!-- <th><nobr>卡号</nobr></th>-->
|
|
10
|
-
<th><nobr>安检日期</nobr></th>
|
|
11
|
-
<th><nobr>入户情况</nobr></th>
|
|
12
|
-
<th><nobr>安检员</nobr></th>
|
|
13
|
-
<th> <nobr>隐患明细</nobr></th>
|
|
14
|
-
<th> <nobr>操作</nobr></th>
|
|
15
|
-
</tr>
|
|
16
|
-
</template>
|
|
17
|
-
<template partial='body'>
|
|
18
|
-
<!-- <td><nobr>{{row.f_card_id}}</nobr></td>-->
|
|
19
|
-
<td style="text-align: center"><nobr>{{row.f_onsite_time.substring(0,11)}}</nobr></td>
|
|
20
|
-
<td style="text-align: center"><nobr>{{row.f_entry_status}}</nobr></td>
|
|
21
|
-
<td style="text-align: center"><nobr>{{row.f_checker_name}}</nobr></td>
|
|
22
|
-
<td style="text-align: center" ><nobr>{{row.f_defect_text?row.f_defect_text:$parent.$parent.$parent.getjsonData(row.f_defect_content)}}</nobr></td>
|
|
23
|
-
<td style="text-align: center"><nobr><button-link type="button" class="btn btn-link" @click="$parent.$parent.$parent.change(row)">查看</button-link></nobr></td>
|
|
24
|
-
</template>
|
|
25
|
-
</data-grid>
|
|
26
|
-
</criteria-paged>
|
|
27
|
-
</div>
|
|
28
|
-
<modal :show.sync="infoshow" large="true" v-ref:modal backdrop="false" width="1200">
|
|
29
|
-
<header slot="modal-header" class="modal-header">
|
|
30
|
-
安检详情
|
|
31
|
-
</header>
|
|
32
|
-
<article slot="modal-body" class="modal-body">
|
|
33
|
-
<div class="from-group col-smm-12 col-md-12 col-xs-12" v-if="infoshow">
|
|
34
|
-
<new-check-paper :f_plan_id="onedata.f_check_plan_id" :item="onedata" role="view" >
|
|
35
|
-
</new-check-paper>
|
|
36
|
-
</div>
|
|
37
|
-
</article>
|
|
38
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
39
|
-
<button type="button" class="btn btn-success" @click='close'>确认</button>
|
|
40
|
-
</footer>
|
|
41
|
-
</modal>
|
|
42
|
-
</template>
|
|
43
|
-
|
|
44
|
-
<script>
|
|
45
|
-
/**
|
|
46
|
-
*用户档案相关信息组件
|
|
47
|
-
*/
|
|
48
|
-
import { PagedList } from 'vue-client'
|
|
49
|
-
import Vue from 'vue'
|
|
50
|
-
import {isEmpty} from "../Util";
|
|
51
|
-
//获取json配置文件
|
|
52
|
-
let asyncReady = async function (self) {
|
|
53
|
-
// 获取配置信息
|
|
54
|
-
try {
|
|
55
|
-
let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
|
|
56
|
-
Vue.config = res.data
|
|
57
|
-
} catch (error) {
|
|
58
|
-
// 忽略704,文件找不到异常R
|
|
59
|
-
if (error.status !== 704) {
|
|
60
|
-
throw error
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
export default {
|
|
65
|
-
title: '用户安检历史',
|
|
66
|
-
data () {
|
|
67
|
-
return {
|
|
68
|
-
model: new PagedList((this.user && this.user.isphone) ? '${this.$androidUtil.getProxyUrl()}/' : '' + 'api/af-safecheck/sql/查找安检单', 5, {orderitem: '"f_onsite_time desc"',f_plan_id:'""',f_approved:'""',f_entry_status:'""',f_no_checkplan:'""',f_filialeid:'""'}),
|
|
69
|
-
row: Object,
|
|
70
|
-
infoshow:false,
|
|
71
|
-
onedata:Object
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
props: {
|
|
75
|
-
user: {
|
|
76
|
-
type: Object
|
|
77
|
-
},
|
|
78
|
-
clearflg:0
|
|
79
|
-
},
|
|
80
|
-
methods: {
|
|
81
|
-
close(){
|
|
82
|
-
this.infoshow = false
|
|
83
|
-
},
|
|
84
|
-
change(row) {
|
|
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
|
-
if (this.user && this.user.f_userinfo_id) {
|
|
142
|
-
this.model.search(`f_userinfoid = '${this.user.f_userinfo_id}'`)
|
|
143
|
-
}
|
|
144
|
-
//this.model.rows=[{f_onsite_time:'2020-01-01',f_entry_status:'入戶',f_checker_name:'何11'},{f_onsite_time:'2020-01-01',f_entry_status:'入戶',f_checker_name:'何11'},{f_onsite_time:'2020-01-01',f_entry_status:'入戶',f_checker_name:'何11'}]
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div id="pc-finduser-page">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged :simple="true">
|
|
4
|
+
|
|
5
|
+
<data-grid :model="model" partial='list' v-ref:grid
|
|
6
|
+
class="list_area table_sy">
|
|
7
|
+
<template partial='head'>
|
|
8
|
+
<tr>
|
|
9
|
+
<!-- <th><nobr>卡号</nobr></th>-->
|
|
10
|
+
<th><nobr>安检日期</nobr></th>
|
|
11
|
+
<th><nobr>入户情况</nobr></th>
|
|
12
|
+
<th><nobr>安检员</nobr></th>
|
|
13
|
+
<th> <nobr>隐患明细</nobr></th>
|
|
14
|
+
<th> <nobr>操作</nobr></th>
|
|
15
|
+
</tr>
|
|
16
|
+
</template>
|
|
17
|
+
<template partial='body'>
|
|
18
|
+
<!-- <td><nobr>{{row.f_card_id}}</nobr></td>-->
|
|
19
|
+
<td style="text-align: center"><nobr>{{row.f_onsite_time.substring(0,11)}}</nobr></td>
|
|
20
|
+
<td style="text-align: center"><nobr>{{row.f_entry_status}}</nobr></td>
|
|
21
|
+
<td style="text-align: center"><nobr>{{row.f_checker_name}}</nobr></td>
|
|
22
|
+
<td style="text-align: center" ><nobr>{{row.f_defect_text?row.f_defect_text:$parent.$parent.$parent.getjsonData(row.f_defect_content)}}</nobr></td>
|
|
23
|
+
<td style="text-align: center"><nobr><button-link type="button" class="btn btn-link" @click="$parent.$parent.$parent.change(row)">查看</button-link></nobr></td>
|
|
24
|
+
</template>
|
|
25
|
+
</data-grid>
|
|
26
|
+
</criteria-paged>
|
|
27
|
+
</div>
|
|
28
|
+
<modal :show.sync="infoshow" large="true" v-ref:modal backdrop="false" width="1200">
|
|
29
|
+
<header slot="modal-header" class="modal-header">
|
|
30
|
+
安检详情
|
|
31
|
+
</header>
|
|
32
|
+
<article slot="modal-body" class="modal-body">
|
|
33
|
+
<div class="from-group col-smm-12 col-md-12 col-xs-12" v-if="infoshow">
|
|
34
|
+
<new-check-paper :f_plan_id="onedata.f_check_plan_id" :item="onedata" role="view" >
|
|
35
|
+
</new-check-paper>
|
|
36
|
+
</div>
|
|
37
|
+
</article>
|
|
38
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
39
|
+
<button type="button" class="btn btn-success" @click='close'>确认</button>
|
|
40
|
+
</footer>
|
|
41
|
+
</modal>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<script>
|
|
45
|
+
/**
|
|
46
|
+
*用户档案相关信息组件
|
|
47
|
+
*/
|
|
48
|
+
import { PagedList } from 'vue-client'
|
|
49
|
+
import Vue from 'vue'
|
|
50
|
+
import {isEmpty} from "../Util";
|
|
51
|
+
//获取json配置文件
|
|
52
|
+
let asyncReady = async function (self) {
|
|
53
|
+
// 获取配置信息
|
|
54
|
+
try {
|
|
55
|
+
let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
|
|
56
|
+
Vue.config = res.data
|
|
57
|
+
} catch (error) {
|
|
58
|
+
// 忽略704,文件找不到异常R
|
|
59
|
+
if (error.status !== 704) {
|
|
60
|
+
throw error
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export default {
|
|
65
|
+
title: '用户安检历史',
|
|
66
|
+
data () {
|
|
67
|
+
return {
|
|
68
|
+
model: new PagedList((this.user && this.user.isphone) ? '${this.$androidUtil.getProxyUrl()}/' : '' + 'api/af-safecheck/sql/查找安检单', 5, {orderitem: '"f_onsite_time desc"',f_plan_id:'""',f_approved:'""',f_entry_status:'""',f_no_checkplan:'""',f_filialeid:'""'}),
|
|
69
|
+
row: Object,
|
|
70
|
+
infoshow:false,
|
|
71
|
+
onedata:Object
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
props: {
|
|
75
|
+
user: {
|
|
76
|
+
type: Object
|
|
77
|
+
},
|
|
78
|
+
clearflg:0
|
|
79
|
+
},
|
|
80
|
+
methods: {
|
|
81
|
+
close(){
|
|
82
|
+
this.infoshow = false
|
|
83
|
+
},
|
|
84
|
+
change(row) {
|
|
85
|
+
row.f_upload_state = '已传'
|
|
86
|
+
this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
|
|
87
|
+
},
|
|
88
|
+
// change(val){
|
|
89
|
+
//
|
|
90
|
+
// this.onedata = val
|
|
91
|
+
// this.infoshow = true
|
|
92
|
+
// },
|
|
93
|
+
getjsonData(value){
|
|
94
|
+
//将value字符串转换成json对象
|
|
95
|
+
let jsonStr= JSON.parse(value);
|
|
96
|
+
let str = jsonStr.data;
|
|
97
|
+
if(jsonStr.result=='正常'){
|
|
98
|
+
return '正常'
|
|
99
|
+
}else{
|
|
100
|
+
let result = ''
|
|
101
|
+
if (str) {
|
|
102
|
+
for (const itemdata of str) {
|
|
103
|
+
const keys = Object.keys(itemdata)
|
|
104
|
+
for (const itm of keys) {
|
|
105
|
+
const value = itemdata[itm]
|
|
106
|
+
result += itm + ':' + value +' '
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return result
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
selected (row) {
|
|
114
|
+
if (this.row === row) {
|
|
115
|
+
this.row = null
|
|
116
|
+
} else {
|
|
117
|
+
this.row = row
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
isSelected (row) {
|
|
121
|
+
return this.row === row
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
watch: {
|
|
125
|
+
'user' (val) {
|
|
126
|
+
//tag
|
|
127
|
+
this.model.search(`f_userinfoid = '${this.user.f_userinfo_id}'`)
|
|
128
|
+
},
|
|
129
|
+
'clearflg'(){
|
|
130
|
+
this.model.rows = []
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
ready () {
|
|
134
|
+
if (this.user && this.user.f_userinfo_id) {
|
|
135
|
+
this.model.search(`f_userinfoid = '${this.user.f_userinfo_id}'`)
|
|
136
|
+
}
|
|
137
|
+
//this.model.rows=[{f_onsite_time:'2020-01-01',f_entry_status:'入戶',f_checker_name:'何11'},{f_onsite_time:'2020-01-01',f_entry_status:'入戶',f_checker_name:'何11'},{f_onsite_time:'2020-01-01',f_entry_status:'入戶',f_checker_name:'何11'}]
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
</script>
|