system-phone 3.1.42 → 3.1.43
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/AlreadyService.vue +210 -210
- package/src/components/AttendManage.vue +591 -591
- package/src/components/OnlineManage.vue +278 -278
- package/src/filiale/liaoyuan/LoginApp.vue +734 -734
- package/src/filiale/liaoyuan/SystemSetUp.vue +1 -1
- package/src/filiale/liaoyuan/systemphonegrid.js +7 -7
package/package.json
CHANGED
|
@@ -1,210 +1,210 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="nav-bgcolor">
|
|
3
|
-
<div class="auto">
|
|
4
|
-
<div class="row nav-bgcolor" >
|
|
5
|
-
<div class="col-xs-6 manbiankuang" v-for="tab in tabs" @click="gotopage(tab.link,tab.name)">
|
|
6
|
-
<img class="imgs" :src="imgback(tab.name)">
|
|
7
|
-
<div class="badge" v-show="tab.name == '安检已办' && alreadyDoneNumShow && alreadyDoneNumShow == 'true'">
|
|
8
|
-
<div class="badge-content">{{ alreadyDoneNum?alreadyDoneNum:0 }}</div>
|
|
9
|
-
</div>
|
|
10
|
-
<p></p>
|
|
11
|
-
<p class="pagesfoot">{{tab.name}}</p>
|
|
12
|
-
<!--<p class="pagesfoot">{{tab.name}} {{tab.icon}}</p>-->
|
|
13
|
-
<p></p>
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
16
|
-
<!--<div class="row" style="overflow:auto;">-->
|
|
17
|
-
<!--<repair-first v-show="componentName == 'repair-first'" worktype="报修单" :sourcet="sourcet" tabname="维修待办" v-on:changesum="changesum"></repair-first>-->
|
|
18
|
-
<!--<zhihuan-first v-show="componentName == 'zhihuan-first'" worktype="置换通气单" :sourcet="sourcet" tabname="置换待办" v-on:changesum="changesum"></zhihuan-first>-->
|
|
19
|
-
<!--</div>-->
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script scoped>
|
|
25
|
-
import Vue from 'vue'
|
|
26
|
-
import * as Util from '../Util'
|
|
27
|
-
export default {
|
|
28
|
-
title: '已办工作导航',
|
|
29
|
-
data () {
|
|
30
|
-
return {
|
|
31
|
-
titleName:'已办工作',
|
|
32
|
-
isMenu:true,
|
|
33
|
-
alreadyDoneNum:0,
|
|
34
|
-
isShowRedNum:this.$appdata.getSingleValue('手机端获取任务条数'),
|
|
35
|
-
alreadyDoneNumShow:this.$appdata.getSingleValue('安检已办红点提醒'),
|
|
36
|
-
tabs: this.getTabs(),
|
|
37
|
-
text: '导航组件this',
|
|
38
|
-
beforeName:'已办工作',
|
|
39
|
-
sourcet:'竖屏'
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
ready () {
|
|
43
|
-
// this.getModelSum()
|
|
44
|
-
this.getAlreadyDoneNum()
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
methods: {
|
|
48
|
-
getAlreadyDoneNum(){
|
|
49
|
-
let criteria = {
|
|
50
|
-
items: 'id',
|
|
51
|
-
tablename: 't_check_plan_item',
|
|
52
|
-
condition: `f_no_checkplan = '有计划安检' and f_approved = '不通过'`,
|
|
53
|
-
groupitem: 'id'
|
|
54
|
-
}
|
|
55
|
-
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
|
56
|
-
this.alreadyDoneNum = result.data.rows.length
|
|
57
|
-
},
|
|
58
|
-
// 查询本地所有待办
|
|
59
|
-
getModelSum(){
|
|
60
|
-
for(var i = 0;i<this.tabs.length;i++){
|
|
61
|
-
if(this.tabs[i].link == 'completed-zhihuan' ){
|
|
62
|
-
this.getZhihuan()
|
|
63
|
-
}
|
|
64
|
-
if(this.tabs[i].link == 'completed-repair' ){
|
|
65
|
-
this.getRepair()
|
|
66
|
-
}
|
|
67
|
-
if(this.tabs[i].link == 'area-plan' ){
|
|
68
|
-
this.getSafeCheck()
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
getRepair(){
|
|
74
|
-
var _this = this;
|
|
75
|
-
this.timeoutRepair = window.setInterval(function() {
|
|
76
|
-
let result = _this.$androidUtil.path({'alias':`getCompletedInfo`, 'data': {f_workorder_type: '报修单',condition:'1 = 1'}})
|
|
77
|
-
if (result.code === 200) {
|
|
78
|
-
console.log('查询得到的代办2' + JSON.stringify(result))
|
|
79
|
-
var crv = {
|
|
80
|
-
title: '维修已办',
|
|
81
|
-
sum: result.data.length
|
|
82
|
-
}
|
|
83
|
-
_this.changesum(crv)
|
|
84
|
-
}
|
|
85
|
-
}, 6000)
|
|
86
|
-
},
|
|
87
|
-
getSafeCheck(){
|
|
88
|
-
var _this = this;
|
|
89
|
-
this.timeoutRepair = window.setInterval(function() {
|
|
90
|
-
let result = _this.$androidUtil.path({'alias':`getSafecheckCompletedInfo`, 'data': {condition:'1 = 1'}})
|
|
91
|
-
if (result.code === 200) {
|
|
92
|
-
console.log('查询得到的安检已办' + JSON.stringify(result))
|
|
93
|
-
var crv = {
|
|
94
|
-
title: '安检已办',
|
|
95
|
-
sum: result.data.length
|
|
96
|
-
}
|
|
97
|
-
_this.changesum(crv)
|
|
98
|
-
}
|
|
99
|
-
}, 6000)
|
|
100
|
-
},
|
|
101
|
-
getZhihuan(){
|
|
102
|
-
var _this = this;
|
|
103
|
-
this.timeoutZhihuan = window.setInterval(function() {
|
|
104
|
-
let result = _this.$androidUtil.path({'alias':`getCompletedInfo`, 'data': {f_workorder_type: '置换通气单',condition:'1 = 1'}})
|
|
105
|
-
if (result.code === 200) {
|
|
106
|
-
console.log('查询得到的代办2' + JSON.stringify(result))
|
|
107
|
-
var crv = {
|
|
108
|
-
title: '置换已办',
|
|
109
|
-
sum: result.data.length
|
|
110
|
-
}
|
|
111
|
-
_this.changesum(crv)
|
|
112
|
-
}
|
|
113
|
-
}, 6000)
|
|
114
|
-
},
|
|
115
|
-
changesum(titdata){
|
|
116
|
-
for(var i = 0;i<this.tabs.length;i++){
|
|
117
|
-
if(this.tabs[i].name == titdata.title){
|
|
118
|
-
this.tabs[i].icon = titdata.sum + '单'
|
|
119
|
-
console.log(JSON.stringify(this.tabs[i].icon))
|
|
120
|
-
return
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
getTabs(){
|
|
125
|
-
for(let funs in Vue.functions){
|
|
126
|
-
if(Vue.functions[funs].link == 'already-service'){
|
|
127
|
-
return Vue.functions[funs].children
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
imgback(val){
|
|
132
|
-
return require('../assets/'+val+'.png')
|
|
133
|
-
},
|
|
134
|
-
// 返回主界面
|
|
135
|
-
back(){
|
|
136
|
-
this.titleName = '主界面'
|
|
137
|
-
this.isMenu = true
|
|
138
|
-
|
|
139
|
-
},
|
|
140
|
-
gotopage(param,title) {
|
|
141
|
-
console.log('进入子组件')
|
|
142
|
-
var prpdata = {
|
|
143
|
-
_this:this,
|
|
144
|
-
title:title,
|
|
145
|
-
safe:false
|
|
146
|
-
}
|
|
147
|
-
this.$dispatch('gotoson',prpdata)
|
|
148
|
-
this.$goto(param,{sourcet:'竖屏',tabname:title})
|
|
149
|
-
},
|
|
150
|
-
mute () {
|
|
151
|
-
HostApp.mute()
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
}
|
|
155
|
-
</script>
|
|
156
|
-
<style lang="less">
|
|
157
|
-
.tab-befor-img {
|
|
158
|
-
content: '';
|
|
159
|
-
background-size: 30px;
|
|
160
|
-
display: inline-block;
|
|
161
|
-
margin-right: 8px;
|
|
162
|
-
height: 30px;
|
|
163
|
-
width: 30px;
|
|
164
|
-
vertical-align: -35%;
|
|
165
|
-
}
|
|
166
|
-
.pageskuang{
|
|
167
|
-
vertical-align:middle;
|
|
168
|
-
display:table-cell;
|
|
169
|
-
width: 32%;
|
|
170
|
-
top:-50%;
|
|
171
|
-
margin-top: 1%;
|
|
172
|
-
margin-left: 1%;
|
|
173
|
-
border:1px solid #e3e3e3;
|
|
174
|
-
text-align: center;
|
|
175
|
-
background-color: #ffffff;
|
|
176
|
-
}
|
|
177
|
-
.pgesfoot{
|
|
178
|
-
font-size: 14px;
|
|
179
|
-
color: #666666;
|
|
180
|
-
/* font-family: "Pingfhs";*/
|
|
181
|
-
}
|
|
182
|
-
.imgs{
|
|
183
|
-
width: 35px;
|
|
184
|
-
margin-top: 15px;
|
|
185
|
-
}
|
|
186
|
-
.pages-bgcolor{
|
|
187
|
-
text-align: center;
|
|
188
|
-
background-color: #f0f0ef;
|
|
189
|
-
}
|
|
190
|
-
img[src=""],img:not([src]){
|
|
191
|
-
opacity: 0;
|
|
192
|
-
border:none;
|
|
193
|
-
visibility: hidden;
|
|
194
|
-
max-width: none;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.manbiankuang{
|
|
198
|
-
width: 44%;
|
|
199
|
-
margin-top: 15px;
|
|
200
|
-
margin-left: 4%;
|
|
201
|
-
border:1px solid #e3e3e3;
|
|
202
|
-
border-radius:10px 10px 10px 10px;
|
|
203
|
-
text-align: center;
|
|
204
|
-
background-color: #ffffff;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.nav-bgcolor{
|
|
208
|
-
background-color: #ffffff;
|
|
209
|
-
}
|
|
210
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="nav-bgcolor">
|
|
3
|
+
<div class="auto">
|
|
4
|
+
<div class="row nav-bgcolor" >
|
|
5
|
+
<div class="col-xs-6 manbiankuang" v-for="tab in tabs" @click="gotopage(tab.link,tab.name)">
|
|
6
|
+
<img class="imgs" :src="imgback(tab.name)">
|
|
7
|
+
<div class="badge" v-show="tab.name == '安检已办' && alreadyDoneNumShow && alreadyDoneNumShow == 'true'">
|
|
8
|
+
<div class="badge-content">{{ alreadyDoneNum?alreadyDoneNum:0 }}</div>
|
|
9
|
+
</div>
|
|
10
|
+
<p></p>
|
|
11
|
+
<p class="pagesfoot">{{tab.name}}</p>
|
|
12
|
+
<!--<p class="pagesfoot">{{tab.name}} {{tab.icon}}</p>-->
|
|
13
|
+
<p></p>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<!--<div class="row" style="overflow:auto;">-->
|
|
17
|
+
<!--<repair-first v-show="componentName == 'repair-first'" worktype="报修单" :sourcet="sourcet" tabname="维修待办" v-on:changesum="changesum"></repair-first>-->
|
|
18
|
+
<!--<zhihuan-first v-show="componentName == 'zhihuan-first'" worktype="置换通气单" :sourcet="sourcet" tabname="置换待办" v-on:changesum="changesum"></zhihuan-first>-->
|
|
19
|
+
<!--</div>-->
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script scoped>
|
|
25
|
+
import Vue from 'vue'
|
|
26
|
+
import * as Util from '../Util'
|
|
27
|
+
export default {
|
|
28
|
+
title: '已办工作导航',
|
|
29
|
+
data () {
|
|
30
|
+
return {
|
|
31
|
+
titleName:'已办工作',
|
|
32
|
+
isMenu:true,
|
|
33
|
+
alreadyDoneNum:0,
|
|
34
|
+
isShowRedNum:this.$appdata.getSingleValue('手机端获取任务条数'),
|
|
35
|
+
alreadyDoneNumShow:this.$appdata.getSingleValue('安检已办红点提醒'),
|
|
36
|
+
tabs: this.getTabs(),
|
|
37
|
+
text: '导航组件this',
|
|
38
|
+
beforeName:'已办工作',
|
|
39
|
+
sourcet:'竖屏'
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
ready () {
|
|
43
|
+
// this.getModelSum()
|
|
44
|
+
this.getAlreadyDoneNum()
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
methods: {
|
|
48
|
+
getAlreadyDoneNum(){
|
|
49
|
+
let criteria = {
|
|
50
|
+
items: 'id',
|
|
51
|
+
tablename: 't_check_plan_item',
|
|
52
|
+
condition: `f_no_checkplan = '有计划安检' and f_approved = '不通过'`,
|
|
53
|
+
groupitem: 'id'
|
|
54
|
+
}
|
|
55
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
|
56
|
+
this.alreadyDoneNum = result.data.rows.length
|
|
57
|
+
},
|
|
58
|
+
// 查询本地所有待办
|
|
59
|
+
getModelSum(){
|
|
60
|
+
for(var i = 0;i<this.tabs.length;i++){
|
|
61
|
+
if(this.tabs[i].link == 'completed-zhihuan' ){
|
|
62
|
+
this.getZhihuan()
|
|
63
|
+
}
|
|
64
|
+
if(this.tabs[i].link == 'completed-repair' ){
|
|
65
|
+
this.getRepair()
|
|
66
|
+
}
|
|
67
|
+
if(this.tabs[i].link == 'area-plan' ){
|
|
68
|
+
this.getSafeCheck()
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
},
|
|
73
|
+
getRepair(){
|
|
74
|
+
var _this = this;
|
|
75
|
+
this.timeoutRepair = window.setInterval(function() {
|
|
76
|
+
let result = _this.$androidUtil.path({'alias':`getCompletedInfo`, 'data': {f_workorder_type: '报修单',condition:'1 = 1'}})
|
|
77
|
+
if (result.code === 200) {
|
|
78
|
+
console.log('查询得到的代办2' + JSON.stringify(result))
|
|
79
|
+
var crv = {
|
|
80
|
+
title: '维修已办',
|
|
81
|
+
sum: result.data.length
|
|
82
|
+
}
|
|
83
|
+
_this.changesum(crv)
|
|
84
|
+
}
|
|
85
|
+
}, 6000)
|
|
86
|
+
},
|
|
87
|
+
getSafeCheck(){
|
|
88
|
+
var _this = this;
|
|
89
|
+
this.timeoutRepair = window.setInterval(function() {
|
|
90
|
+
let result = _this.$androidUtil.path({'alias':`getSafecheckCompletedInfo`, 'data': {condition:'1 = 1'}})
|
|
91
|
+
if (result.code === 200) {
|
|
92
|
+
console.log('查询得到的安检已办' + JSON.stringify(result))
|
|
93
|
+
var crv = {
|
|
94
|
+
title: '安检已办',
|
|
95
|
+
sum: result.data.length
|
|
96
|
+
}
|
|
97
|
+
_this.changesum(crv)
|
|
98
|
+
}
|
|
99
|
+
}, 6000)
|
|
100
|
+
},
|
|
101
|
+
getZhihuan(){
|
|
102
|
+
var _this = this;
|
|
103
|
+
this.timeoutZhihuan = window.setInterval(function() {
|
|
104
|
+
let result = _this.$androidUtil.path({'alias':`getCompletedInfo`, 'data': {f_workorder_type: '置换通气单',condition:'1 = 1'}})
|
|
105
|
+
if (result.code === 200) {
|
|
106
|
+
console.log('查询得到的代办2' + JSON.stringify(result))
|
|
107
|
+
var crv = {
|
|
108
|
+
title: '置换已办',
|
|
109
|
+
sum: result.data.length
|
|
110
|
+
}
|
|
111
|
+
_this.changesum(crv)
|
|
112
|
+
}
|
|
113
|
+
}, 6000)
|
|
114
|
+
},
|
|
115
|
+
changesum(titdata){
|
|
116
|
+
for(var i = 0;i<this.tabs.length;i++){
|
|
117
|
+
if(this.tabs[i].name == titdata.title){
|
|
118
|
+
this.tabs[i].icon = titdata.sum + '单'
|
|
119
|
+
console.log(JSON.stringify(this.tabs[i].icon))
|
|
120
|
+
return
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
getTabs(){
|
|
125
|
+
for(let funs in Vue.functions){
|
|
126
|
+
if(Vue.functions[funs].link == 'already-service'){
|
|
127
|
+
return Vue.functions[funs].children
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
imgback(val){
|
|
132
|
+
return require('../assets/'+val+'.png')
|
|
133
|
+
},
|
|
134
|
+
// 返回主界面
|
|
135
|
+
back(){
|
|
136
|
+
this.titleName = '主界面'
|
|
137
|
+
this.isMenu = true
|
|
138
|
+
|
|
139
|
+
},
|
|
140
|
+
gotopage(param,title) {
|
|
141
|
+
console.log('进入子组件')
|
|
142
|
+
var prpdata = {
|
|
143
|
+
_this:this,
|
|
144
|
+
title:title,
|
|
145
|
+
safe:false
|
|
146
|
+
}
|
|
147
|
+
this.$dispatch('gotoson',prpdata)
|
|
148
|
+
this.$goto(param,{sourcet:'竖屏',tabname:title})
|
|
149
|
+
},
|
|
150
|
+
mute () {
|
|
151
|
+
HostApp.mute()
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
}
|
|
155
|
+
</script>
|
|
156
|
+
<style lang="less">
|
|
157
|
+
.tab-befor-img {
|
|
158
|
+
content: '';
|
|
159
|
+
background-size: 30px;
|
|
160
|
+
display: inline-block;
|
|
161
|
+
margin-right: 8px;
|
|
162
|
+
height: 30px;
|
|
163
|
+
width: 30px;
|
|
164
|
+
vertical-align: -35%;
|
|
165
|
+
}
|
|
166
|
+
.pageskuang{
|
|
167
|
+
vertical-align:middle;
|
|
168
|
+
display:table-cell;
|
|
169
|
+
width: 32%;
|
|
170
|
+
top:-50%;
|
|
171
|
+
margin-top: 1%;
|
|
172
|
+
margin-left: 1%;
|
|
173
|
+
border:1px solid #e3e3e3;
|
|
174
|
+
text-align: center;
|
|
175
|
+
background-color: #ffffff;
|
|
176
|
+
}
|
|
177
|
+
.pgesfoot{
|
|
178
|
+
font-size: 14px;
|
|
179
|
+
color: #666666;
|
|
180
|
+
/* font-family: "Pingfhs";*/
|
|
181
|
+
}
|
|
182
|
+
.imgs{
|
|
183
|
+
width: 35px;
|
|
184
|
+
margin-top: 15px;
|
|
185
|
+
}
|
|
186
|
+
.pages-bgcolor{
|
|
187
|
+
text-align: center;
|
|
188
|
+
background-color: #f0f0ef;
|
|
189
|
+
}
|
|
190
|
+
img[src=""],img:not([src]){
|
|
191
|
+
opacity: 0;
|
|
192
|
+
border:none;
|
|
193
|
+
visibility: hidden;
|
|
194
|
+
max-width: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.manbiankuang{
|
|
198
|
+
width: 44%;
|
|
199
|
+
margin-top: 15px;
|
|
200
|
+
margin-left: 4%;
|
|
201
|
+
border:1px solid #e3e3e3;
|
|
202
|
+
border-radius:10px 10px 10px 10px;
|
|
203
|
+
text-align: center;
|
|
204
|
+
background-color: #ffffff;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.nav-bgcolor{
|
|
208
|
+
background-color: #ffffff;
|
|
209
|
+
}
|
|
210
|
+
</style>
|