system-phone 3.0.49-25 → 3.0.49-26
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/assets//351/246/226/351/241/265/345/244/247/345/233/276.png +0 -0
- package/src/filiale/yulinyuchuan/AlreadyService.vue +193 -0
- package/src/filiale/yulinyuchuan/AttendManage.vue +534 -0
- package/src/filiale/yulinyuchuan/LoginApp.vue +729 -729
- package/src/filiale/yulinyuchuan/OnlineManage.vue +256 -0
- package/src/filiale/yulinyuchuan/SystemSetUp.vue +331 -0
- package/src/filiale/yulinyuchuan/UploadManage.vue +194 -0
- package/src/filiale/yulinyuchuan/systemphonegrid.js +9 -4
- package/src/stores/AppData.js +65 -65
- package/src/systemphonegrid.js +178 -178
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="nav-bgcolor">
|
|
3
|
+
<img src="../../assets/首页大图.png" style="height: 20vh; width: 100%; padding: 0 5px; border-radius: 10px">
|
|
4
|
+
<div class="auto">
|
|
5
|
+
<div class="row nav-bgcolor" >
|
|
6
|
+
<div class="col-xs-6 manbiankuang" v-for="tab in tabs" @click="gotopage(tab.link,tab.name)">
|
|
7
|
+
<img class="imgs" :src="imgback(tab.name)">
|
|
8
|
+
<p></p>
|
|
9
|
+
<p class="pagesfoot">{{tab.name}}</p>
|
|
10
|
+
<!--<p class="pagesfoot">{{tab.name}} {{tab.icon}}</p>-->
|
|
11
|
+
<p></p>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
<!--<div class="row" style="overflow:auto;">-->
|
|
15
|
+
<!--<repair-first v-show="componentName == 'repair-first'" worktype="报修单" :sourcet="sourcet" tabname="维修待办" v-on:changesum="changesum"></repair-first>-->
|
|
16
|
+
<!--<zhihuan-first v-show="componentName == 'zhihuan-first'" worktype="置换通气单" :sourcet="sourcet" tabname="置换待办" v-on:changesum="changesum"></zhihuan-first>-->
|
|
17
|
+
<!--</div>-->
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script scoped>
|
|
23
|
+
import Vue from 'vue'
|
|
24
|
+
export default {
|
|
25
|
+
title: '上传工作导航',
|
|
26
|
+
data () {
|
|
27
|
+
return {
|
|
28
|
+
titleName:'上传工作',
|
|
29
|
+
isMenu:true,
|
|
30
|
+
tabs: this.getTabs(),
|
|
31
|
+
text: '导航组件this',
|
|
32
|
+
beforeName:'上传工作',
|
|
33
|
+
componentName:'upload-manage',
|
|
34
|
+
sourcet:'竖屏'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
ready () {
|
|
38
|
+
// this.getModelSum()
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
methods: {
|
|
42
|
+
// 查询本地所有需要上传得任务
|
|
43
|
+
getModelSum(){
|
|
44
|
+
for(var i = 0;i<this.tabs.length;i++){
|
|
45
|
+
if(this.tabs[i].link == 'zhiup-load' ){
|
|
46
|
+
this.getZhihuan()
|
|
47
|
+
}
|
|
48
|
+
if(this.tabs[i].link == 'weiup-load' ){
|
|
49
|
+
this.getRepair()
|
|
50
|
+
}
|
|
51
|
+
if(this.tabs[i].link == 'upload-page' ){
|
|
52
|
+
this.getSafeCheck()
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
},
|
|
57
|
+
getRepair(){
|
|
58
|
+
var _this = this;
|
|
59
|
+
this.timeoutRepair = window.setInterval(function() {
|
|
60
|
+
let result = _this.$androidUtil.path({'alias':'notUpload','data': {f_workorder_type: '报修单'}})
|
|
61
|
+
if (result.code === 200) {
|
|
62
|
+
console.log('查询得到的代办2' + JSON.stringify(result))
|
|
63
|
+
var crv = {
|
|
64
|
+
title: '维修上传',
|
|
65
|
+
sum: result.data.length
|
|
66
|
+
}
|
|
67
|
+
_this.changesum(crv)
|
|
68
|
+
}
|
|
69
|
+
}, 6000)
|
|
70
|
+
},
|
|
71
|
+
getSafeCheck(){
|
|
72
|
+
var _this = this;
|
|
73
|
+
this.timeoutRepair = window.setInterval(function() {
|
|
74
|
+
let result = _this.$androidUtil.path({'alias':'safecheckNotUpload','data': {}})
|
|
75
|
+
if (result.code === 200) {
|
|
76
|
+
console.log('查询得到的安检上传' + JSON.stringify(result))
|
|
77
|
+
var crv = {
|
|
78
|
+
title: '安检上传',
|
|
79
|
+
sum: result.data.length
|
|
80
|
+
}
|
|
81
|
+
_this.changesum(crv)
|
|
82
|
+
}
|
|
83
|
+
}, 6000)
|
|
84
|
+
},
|
|
85
|
+
getZhihuan(){
|
|
86
|
+
var _this = this;
|
|
87
|
+
this.timeoutZhihuan = window.setInterval(function() {
|
|
88
|
+
let result = _this.$androidUtil.path({'alias':'notUpload','data': {f_workorder_type: '置换通气单'}})
|
|
89
|
+
if (result.code === 200) {
|
|
90
|
+
console.log('查询得到的代办2' + JSON.stringify(result))
|
|
91
|
+
var crv = {
|
|
92
|
+
title: '置换上传',
|
|
93
|
+
sum: result.data.length
|
|
94
|
+
}
|
|
95
|
+
_this.changesum(crv)
|
|
96
|
+
}
|
|
97
|
+
}, 6000)
|
|
98
|
+
},
|
|
99
|
+
changesum(titdata){
|
|
100
|
+
for(var i = 0;i<this.tabs.length;i++){
|
|
101
|
+
if(this.tabs[i].name == titdata.title){
|
|
102
|
+
this.tabs[i].icon = titdata.sum + '单'
|
|
103
|
+
console.log(JSON.stringify(this.tabs[i].icon))
|
|
104
|
+
return
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
getTabs(){
|
|
109
|
+
for(let funs in Vue.functions){
|
|
110
|
+
if(Vue.functions[funs].link == 'upload-manage'){
|
|
111
|
+
return Vue.functions[funs].children
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
imgback(val){
|
|
116
|
+
return require('../../assets/'+val+'.png')
|
|
117
|
+
},
|
|
118
|
+
// 返回主界面
|
|
119
|
+
back(){
|
|
120
|
+
this.titleName = '主界面'
|
|
121
|
+
this.isMenu = true
|
|
122
|
+
|
|
123
|
+
},
|
|
124
|
+
gotopage(param,title) {
|
|
125
|
+
console.log('进入子组件')
|
|
126
|
+
var prpdata = {
|
|
127
|
+
_this:this,
|
|
128
|
+
title:title,
|
|
129
|
+
safe:false
|
|
130
|
+
}
|
|
131
|
+
this.$dispatch('gotoson',prpdata)
|
|
132
|
+
this.$goto(param,{sourcet:'竖屏',tabname:title})
|
|
133
|
+
},
|
|
134
|
+
mute () {
|
|
135
|
+
HostApp.mute()
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
}
|
|
139
|
+
</script>
|
|
140
|
+
<style lang="less">
|
|
141
|
+
.tab-befor-img {
|
|
142
|
+
content: '';
|
|
143
|
+
background-size: 30px;
|
|
144
|
+
display: inline-block;
|
|
145
|
+
margin-right: 8px;
|
|
146
|
+
height: 30px;
|
|
147
|
+
width: 30px;
|
|
148
|
+
vertical-align: -35%;
|
|
149
|
+
}
|
|
150
|
+
.pageskuang{
|
|
151
|
+
vertical-align:middle;
|
|
152
|
+
display:table-cell;
|
|
153
|
+
width: 32%;
|
|
154
|
+
top:-50%;
|
|
155
|
+
margin-top: 1%;
|
|
156
|
+
margin-left: 1%;
|
|
157
|
+
border:1px solid #e3e3e3;
|
|
158
|
+
text-align: center;
|
|
159
|
+
background-color: #ffffff;
|
|
160
|
+
}
|
|
161
|
+
.pgesfoot{
|
|
162
|
+
font-size: 14px;
|
|
163
|
+
color: #666666;
|
|
164
|
+
/* font-family: "Pingfhs";*/
|
|
165
|
+
}
|
|
166
|
+
.imgs{
|
|
167
|
+
width: 35px;
|
|
168
|
+
margin-top: 15px;
|
|
169
|
+
}
|
|
170
|
+
.pages-bgcolor{
|
|
171
|
+
text-align: center;
|
|
172
|
+
background-color: #f0f0ef;
|
|
173
|
+
}
|
|
174
|
+
img[src=""],img:not([src]){
|
|
175
|
+
opacity: 0;
|
|
176
|
+
border:none;
|
|
177
|
+
visibility: hidden;
|
|
178
|
+
max-width: none;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.manbiankuang{
|
|
182
|
+
width: 44%;
|
|
183
|
+
margin-top: 15px;
|
|
184
|
+
margin-left: 4%;
|
|
185
|
+
border:1px solid #e3e3e3;
|
|
186
|
+
border-radius:10px 10px 10px 10px;
|
|
187
|
+
text-align: center;
|
|
188
|
+
background-color: #ffffff;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.nav-bgcolor{
|
|
192
|
+
background-color: #ffffff;
|
|
193
|
+
}
|
|
194
|
+
</style>
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
let specialComp = {
|
|
2
|
-
'login-app': (resolve) => { require(['./LoginApp'], resolve) },
|
|
3
|
-
}
|
|
4
|
-
|
|
1
|
+
let specialComp = {
|
|
2
|
+
'login-app': (resolve) => { require(['./LoginApp'], resolve) },
|
|
3
|
+
'already-service': (resolve) => { require(['./AlreadyService'], resolve) },
|
|
4
|
+
'attend-manage': (resolve) => { require(['./AttendManage'], resolve) },
|
|
5
|
+
'upload-manage': (resolve) => { require(['./UploadManage'], resolve) },
|
|
6
|
+
'online-manage': (resolve) => { require(['./OnlineManage'], resolve) },
|
|
7
|
+
'system-setup': (resolve) => { require(['./SystemSetUp'], resolve) },
|
|
8
|
+
}
|
|
9
|
+
exports.specialComp = specialComp
|
package/src/stores/AppData.js
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import {HttpResetClass} from 'vue-client'
|
|
3
|
-
let GetAppDataService = {
|
|
4
|
-
install(Vue, options) {
|
|
5
|
-
// 给vue增添对话框显示方法
|
|
6
|
-
Vue.$appdata = Vue.prototype.$appdata = GetAppDataService
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
// 开启卡监听
|
|
10
|
-
async load (noSale) {
|
|
11
|
-
let result = await new HttpResetClass().load('POST',`${Vue.androidUtil.getProxyUrl()}/rs/logic/getInitData`, {data: {f_filialeids: Vue.user.orgid}}, {resolveMsg: null, rejectMsg: null})
|
|
12
|
-
console.log('system加载参数')
|
|
13
|
-
console.log(JSON.stringify(result))
|
|
14
|
-
result.data.singleValues.forEach((item) => {
|
|
15
|
-
this.singleValues[item.name] = item.value
|
|
16
|
-
})
|
|
17
|
-
result.data.params.forEach((item) => {
|
|
18
|
-
let value = []
|
|
19
|
-
item.f_paramvalues.forEach((item, index) => {
|
|
20
|
-
value[index] = {}
|
|
21
|
-
value[index].label = item.name
|
|
22
|
-
value[index].value = item.name
|
|
23
|
-
})
|
|
24
|
-
this.params[item.name] = value
|
|
25
|
-
})
|
|
26
|
-
if (!noSale){
|
|
27
|
-
let getParams = await new HttpResetClass().load('post',`${Vue.androidUtil.getProxyUrl()}/rs/logic/getSaleInitData`, {data: {f_orgid: Vue.user.orgid}}, {resolveMsg: null, rejectMsg: null})
|
|
28
|
-
console.log('获取营收参数')
|
|
29
|
-
console.log(JSON.stringify(getParams))
|
|
30
|
-
if (getParams.data) {
|
|
31
|
-
getParams.data.gasbrands.forEach((item, index) => {
|
|
32
|
-
this.saleParams.gasbrands[index] = {}
|
|
33
|
-
this.saleParams.gasbrands[index].label = item.f_meter_brand
|
|
34
|
-
this.saleParams.gasbrands[index].value = item.f_meter_brand
|
|
35
|
-
let gasmodel = []
|
|
36
|
-
item.gasmodel.forEach((item, index) => {
|
|
37
|
-
gasmodel[index] = {}
|
|
38
|
-
gasmodel[index].label = item.f_meter_style
|
|
39
|
-
gasmodel[index].value = item.f_meter_style
|
|
40
|
-
})
|
|
41
|
-
this.params[item.f_meter_brand] = gasmodel
|
|
42
|
-
})
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
params: {},
|
|
48
|
-
singleValues: {},
|
|
49
|
-
|
|
50
|
-
// 营收模块参数
|
|
51
|
-
saleParams: {
|
|
52
|
-
gasbrands:[]
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
// 安检模块参数
|
|
56
|
-
safeCheckParams: {},
|
|
57
|
-
|
|
58
|
-
getParam(key) {
|
|
59
|
-
return this.params[key]
|
|
60
|
-
},
|
|
61
|
-
getSingleValue(key) {
|
|
62
|
-
return this.singleValues[key]
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
export default GetAppDataService
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import {HttpResetClass} from 'vue-client'
|
|
3
|
+
let GetAppDataService = {
|
|
4
|
+
install(Vue, options) {
|
|
5
|
+
// 给vue增添对话框显示方法
|
|
6
|
+
Vue.$appdata = Vue.prototype.$appdata = GetAppDataService
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
// 开启卡监听
|
|
10
|
+
async load (noSale) {
|
|
11
|
+
let result = await new HttpResetClass().load('POST',`${Vue.androidUtil.getProxyUrl()}/rs/logic/getInitData`, {data: {f_filialeids: Vue.user.orgid}}, {resolveMsg: null, rejectMsg: null})
|
|
12
|
+
console.log('system加载参数')
|
|
13
|
+
console.log(JSON.stringify(result))
|
|
14
|
+
result.data.singleValues.forEach((item) => {
|
|
15
|
+
this.singleValues[item.name] = item.value
|
|
16
|
+
})
|
|
17
|
+
result.data.params.forEach((item) => {
|
|
18
|
+
let value = []
|
|
19
|
+
item.f_paramvalues.forEach((item, index) => {
|
|
20
|
+
value[index] = {}
|
|
21
|
+
value[index].label = item.name
|
|
22
|
+
value[index].value = item.name
|
|
23
|
+
})
|
|
24
|
+
this.params[item.name] = value
|
|
25
|
+
})
|
|
26
|
+
if (!noSale){
|
|
27
|
+
let getParams = await new HttpResetClass().load('post',`${Vue.androidUtil.getProxyUrl()}/rs/logic/getSaleInitData`, {data: {f_orgid: Vue.user.orgid}}, {resolveMsg: null, rejectMsg: null})
|
|
28
|
+
console.log('获取营收参数')
|
|
29
|
+
console.log(JSON.stringify(getParams))
|
|
30
|
+
if (getParams.data) {
|
|
31
|
+
getParams.data.gasbrands.forEach((item, index) => {
|
|
32
|
+
this.saleParams.gasbrands[index] = {}
|
|
33
|
+
this.saleParams.gasbrands[index].label = item.f_meter_brand
|
|
34
|
+
this.saleParams.gasbrands[index].value = item.f_meter_brand
|
|
35
|
+
let gasmodel = []
|
|
36
|
+
item.gasmodel.forEach((item, index) => {
|
|
37
|
+
gasmodel[index] = {}
|
|
38
|
+
gasmodel[index].label = item.f_meter_style
|
|
39
|
+
gasmodel[index].value = item.f_meter_style
|
|
40
|
+
})
|
|
41
|
+
this.params[item.f_meter_brand] = gasmodel
|
|
42
|
+
})
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
params: {},
|
|
48
|
+
singleValues: {},
|
|
49
|
+
|
|
50
|
+
// 营收模块参数
|
|
51
|
+
saleParams: {
|
|
52
|
+
gasbrands:[]
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
// 安检模块参数
|
|
56
|
+
safeCheckParams: {},
|
|
57
|
+
|
|
58
|
+
getParam(key) {
|
|
59
|
+
return this.params[key]
|
|
60
|
+
},
|
|
61
|
+
getSingleValue(key) {
|
|
62
|
+
return this.singleValues[key]
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export default GetAppDataService
|