system-phone 3.0.28 → 3.0.30

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.
@@ -1,185 +1,183 @@
1
- <template>
2
- <div style="height: 7%">
3
- <tools-page :need-back="!isMenu" :title="titleName" @back="back('返回')" > </tools-page>
4
- </div>
5
- <div id="app" :class="{'auto':isMenu,'app-height':!isMenu}">
6
- <div class="row" :style="isMenu?'overflow-y: scroll;overflow-x: hidden;height:80vh':'overflow-y: scroll;overflow-x: hidden;'">
7
- <route v-ref:route> </route>
8
- </div>
9
- <tab-bar @select-item="onClickTabBarItem" v-show="isMenu">
10
- </tab-bar>
11
- </div>
12
- <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="业务提醒">
13
- <header slot="modal-header" class="modal-header">
14
- <h4 class="modal-title">业务提醒</h4>
15
- </header>
16
- <article slot="modal-body" class="modal-body">
17
- <div class="form-group" style="text-align: center">
18
- 安检代办:{{result.safe[0].safenum}}条,其中预约单{{result.safeorder[0].safeyuyuenum}}条 <br/>
19
- 维修代办:{{result.tel[0].telnum}}条,其中预约单{{result.telorder[0].telyuyuenum}}条<br/>
20
- 报建代办:{{result.apply[0].applynum}}条,其中预约单{{result.applyorder[0].applyyuyuenum}}条<br/>
21
- </div>
22
- </article>
23
- <footer slot="modal-footer" class="modal-footer">
24
- <button type="button" @click="closeFile" style="background-color: limegreen;color: white">确定</button>
25
- </footer>
26
- </modal>
27
- </template>
28
-
29
- <script>
30
-
31
- import {HttpResetClass} from "vue-client";
32
- import Vue from 'vue'
33
- export default {
34
- title: 'app',
35
- data: function () {
36
- return {
37
- item: 0,
38
- isMenu:true,
39
- beforeName:'主界面',
40
- titleName:'待办工作',
41
- backthis:'',
42
- safe:false,
43
- showFile:false,
44
- beforetabs:[],
45
- iftabbar:'',
46
- result:[]
47
- }
48
- },
49
- ready(){
50
- let zhi=this.$appdata.getSingleValue('是否开启代办提醒')
51
- if(zhi==''){
52
- console.log("99999",Vue.user)
53
- new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/logic/getModuleUpcoming`,{
54
- id:Vue.user.id,
55
- name:Vue.user.name,
56
- orgid:Vue.user.orgid
57
- }).then(res=>{
58
- console.log("888888===>"+JSON.stringify(res.data))
59
- this.result = res.data
60
- this.showFile=true
61
- // this.$showMessage(`你有${result.safe[0].safenum}条需要处理的安检待办业务,<br/>
62
- // ${result.safeorder[0].safeyuyuenum}条需要处理的安检预约业务,<br/>
63
- // ${result.tel[0].telnum}条需要处理的维修待办业务,<br/>
64
- // ${result.telorder[0].telyuyuenum}条需要处理的维修预约业务,<br/>
65
- // ${result.applyorder[0].applyyuyuenum}条需要处理的报建预约业务,<br/>
66
- // ${result.apply[0].applynum}条需要处理的报建待办业务`)
67
- })
68
- }
69
- },
70
- methods: {
71
- closeFile(){
72
- this.showFile=false
73
- },
74
- back (flag){
75
- if(this.safe && flag == '返回' ){
76
- this.$showMessage('此返回所录入内容将无法找回!', ['confirm', 'cancel']).then((res) => {
77
- if (res === 'confirm') {
78
- //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
79
- this.delback()
80
- this.backthis.$back()
81
- this.closeAndDelAudio()
82
- }
83
- })
84
- }else{
85
- this.delback()
86
- //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
87
- this.backthis.$back()
88
- }
89
- },
90
- delback(){
91
- // 先确认出 前一个组件的名字
92
- var title = this.beforeName
93
- var beforetitle = '主界面'
94
- var j = -1
95
- for(var i = 0;i<this.beforetabs.length;i++){
96
- if(this.beforetabs[i].titleName == title){
97
- beforetitle = this.beforetabs[i].beforeName
98
- this.backthis =this.beforetabs[i].backthis
99
- this.safe = this.beforetabs[i].safe
100
- j = i
101
- break;
102
- }
103
- }
104
- this.beforetabs.splice(j + 1, 1)
105
- this.beforeName = beforetitle
106
- this.titleName = title
107
- // 判断是否 显示底层导航
108
- if(this.iftabbar == this.titleName){
109
- this.isMenu = true
110
- }
111
- },
112
- onClickTabBarItem(titlefg) {
113
- var param = titlefg.link
114
- if(titlefg.name == '退出系统'){
115
- this.$showMessage('即将返回登陆界面!', ['confirm', 'cancel']).then((res) => {
116
- if (res === 'confirm') {
117
- this.$androidUtil.setPreference('f_repairman_id', 'x')
118
- this.$androidUtil.setPreference('f_repairman_name', 'x')
119
- this.$back()
120
- }
121
- })
122
- }else{
123
- if(this.beforeName == titlefg.name){
124
- return
125
- }
126
- this.titleName = titlefg.name
127
- this.beforeName = titlefg.name
128
- let data = {
129
- sourcet: '竖屏'
130
- }
131
- // if(titlefg.name == '待办工单'){
132
- // param = param+'V'
133
- // }
134
- this.$refs.route.init(param,data)
135
- }
136
- },
137
- closeAndDelAudio() {
138
- console.log("停止无限制录音")
139
- HostApp.startOrStopAudioClip("-----","停止录音")
140
- }
141
- },
142
- events: {
143
- 'gotoson': function (prpdata) {
144
- // 事件回调内的 `this` 自动绑定到注册它的实例上
145
- // safe 返回事件是否进行判断后再返回
146
- // 每进入一次,beforetabs 数组添加 返回 删除
147
- this.backthis = prpdata._this
148
- this.safe = prpdata.safe
149
- this.isMenu = false
150
- // 记录本次跳转
151
- var beforedata = {
152
- beforeName: this.titleName,
153
- titleName: prpdata.title,
154
- backthis:prpdata._this,
155
- safe:prpdata.safe
156
- }
157
- this.beforetabs.push(beforedata)
158
- if( this.beforetabs.length == 1){
159
- this.iftabbar = beforedata.beforeName
160
- }
161
- // 写入跳转后 前后组件名字
162
- this.beforeName = this.titleName
163
- this.titleName = prpdata.title
164
-
165
- console.log('进入子组件,通知外层组件,我已经进入')
166
- },
167
- 'confirm': function () {
168
- // 提交处理返回事件
169
- this.back('提交')
170
- },
171
- 'backarrdel': function () {
172
- this.delback()
173
- },
174
- 'gologin': function () {
175
- this.beforetabs = []
176
- this.$back()
177
- }
178
- }
179
- }
180
- </script>
181
- <style scoped>
182
- .app-height{
183
- height: 93%;
184
- }
185
- </style>
1
+ <template>
2
+ <div style="height: 7%">
3
+ <tools-page :need-back="!isMenu" :title="titleName" @back="back('返回')" > </tools-page>
4
+ </div>
5
+ <div id="app" :class="{'auto':isMenu,'app-height':!isMenu}">
6
+ <div class="row" style="overflow-y: scroll;">
7
+ <route v-ref:route> </route>
8
+ </div>
9
+ <tab-bar @select-item="onClickTabBarItem" v-show="isMenu">
10
+ </tab-bar>
11
+ </div>
12
+ <modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="业务提醒">
13
+ <header slot="modal-header" class="modal-header">
14
+ <h4 class="modal-title">业务提醒</h4>
15
+ </header>
16
+ <article slot="modal-body" class="modal-body">
17
+ <div class="form-group" style="text-align: center">
18
+ 安检代办:{{result.safe[0].safenum}}条,其中预约单{{result.safeorder[0].safeyuyuenum}}条 <br/>
19
+ 维修代办:{{result.tel[0].telnum}}条,其中预约单{{result.telorder[0].telyuyuenum}}条<br/>
20
+ 报建代办:{{result.apply[0].applynum}}条,其中预约单{{result.applyorder[0].applyyuyuenum}}条<br/>
21
+ </div>
22
+ </article>
23
+ <footer slot="modal-footer" class="modal-footer">
24
+ <button type="button" @click="closeFile" style="background-color: limegreen;color: white">确定</button>
25
+ </footer>
26
+ </modal>
27
+ </template>
28
+
29
+ <script>
30
+
31
+ import {HttpResetClass} from "vue-client";
32
+ import Vue from 'vue'
33
+ export default {
34
+ title: 'app',
35
+ data: function () {
36
+ return {
37
+ item: 0,
38
+ isMenu:true,
39
+ beforeName:'主界面',
40
+ titleName:'待办工作',
41
+ backthis:'',
42
+ safe:false,
43
+ showFile:false,
44
+ beforetabs:[],
45
+ iftabbar:'',
46
+ result:[]
47
+ }
48
+ },
49
+ ready(){
50
+ /* console.log("99999",Vue.user)
51
+ new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/logic/getModuleUpcoming`,{
52
+ id:Vue.user.id,
53
+ name:Vue.user.name,
54
+ orgid:Vue.user.orgid
55
+ }).then(res=>{
56
+ console.log("888888===>"+JSON.stringify(res.data))
57
+ this.result = res.data
58
+ this.showFile=true
59
+ // this.$showMessage(`你有${result.safe[0].safenum}条需要处理的安检待办业务,<br/>
60
+ // ${result.safeorder[0].safeyuyuenum}条需要处理的安检预约业务,<br/>
61
+ // ${result.tel[0].telnum}条需要处理的维修待办业务,<br/>
62
+ // ${result.telorder[0].telyuyuenum}条需要处理的维修预约业务,<br/>
63
+ // ${result.applyorder[0].applyyuyuenum}条需要处理的报建预约业务,<br/>
64
+ // ${result.apply[0].applynum}条需要处理的报建待办业务`)
65
+ }) */
66
+ },
67
+ methods: {
68
+ closeFile(){
69
+ this.showFile=false
70
+ },
71
+ back (flag){
72
+ if(this.safe && flag == '返回' ){
73
+ this.$showMessage('此返回所录入内容将无法找回!', ['confirm', 'cancel']).then((res) => {
74
+ if (res === 'confirm') {
75
+ //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
76
+ this.delback()
77
+ this.$broadcast("return_notification",this.safe)
78
+ this.backthis.$back()
79
+ this.closeAndDelAudio()
80
+ }
81
+ })
82
+ }else{
83
+ this.delback()
84
+ //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
85
+ this.backthis.$back()
86
+ }
87
+ },
88
+ delback(){
89
+ // 先确认出 前一个组件的名字
90
+ var title = this.beforeName
91
+ var beforetitle = '主界面'
92
+ var j = -1
93
+ for(var i = 0;i<this.beforetabs.length;i++){
94
+ if(this.beforetabs[i].titleName == title){
95
+ beforetitle = this.beforetabs[i].beforeName
96
+ this.backthis =this.beforetabs[i].backthis
97
+ this.safe = this.beforetabs[i].safe
98
+ j = i
99
+ break;
100
+ }
101
+ }
102
+ this.beforetabs.splice(j + 1, 1)
103
+ this.beforeName = beforetitle
104
+ this.titleName = title
105
+ // 判断是否 显示底层导航
106
+ if(this.iftabbar == this.titleName){
107
+ this.isMenu = true
108
+ }
109
+ },
110
+ onClickTabBarItem(titlefg) {
111
+ var param = titlefg.link
112
+ if(titlefg.name == '退出系统'){
113
+ this.$showMessage('即将返回登陆界面!', ['confirm', 'cancel']).then((res) => {
114
+ if (res === 'confirm') {
115
+ this.$androidUtil.setPreference('f_repairman_id', 'x')
116
+ this.$androidUtil.setPreference('f_repairman_name', 'x')
117
+ this.$back()
118
+ }
119
+ })
120
+ }else{
121
+ if(this.beforeName == titlefg.name){
122
+ return
123
+ }
124
+ this.titleName = titlefg.name
125
+ this.beforeName = titlefg.name
126
+ let data = {
127
+ sourcet: '竖屏'
128
+ }
129
+ // if(titlefg.name == '待办工单'){
130
+ // param = param+'V'
131
+ // }
132
+ this.$refs.route.init(param,data)
133
+ }
134
+ },
135
+ closeAndDelAudio() {
136
+ console.log("停止无限制录音")
137
+ HostApp.startOrStopAudioClip("-----","停止录音")
138
+ }
139
+ },
140
+ events: {
141
+ 'gotoson': function (prpdata) {
142
+ // 事件回调内的 `this` 自动绑定到注册它的实例上
143
+ // safe 返回事件是否进行判断后再返回
144
+ // 每进入一次,beforetabs 数组添加 返回 删除
145
+ this.backthis = prpdata._this
146
+ this.safe = prpdata.safe
147
+ this.isMenu = false
148
+ // 记录本次跳转
149
+ var beforedata = {
150
+ beforeName: this.titleName,
151
+ titleName: prpdata.title,
152
+ backthis:prpdata._this,
153
+ safe:prpdata.safe
154
+ }
155
+ this.beforetabs.push(beforedata)
156
+ if( this.beforetabs.length == 1){
157
+ this.iftabbar = beforedata.beforeName
158
+ }
159
+ // 写入跳转后 前后组件名字
160
+ this.beforeName = this.titleName
161
+ this.titleName = prpdata.title
162
+
163
+ console.log('进入子组件,通知外层组件,我已经进入')
164
+ },
165
+ 'confirm': function () {
166
+ // 提交处理返回事件
167
+ this.back('提交')
168
+ },
169
+ 'backarrdel': function () {
170
+ this.delback()
171
+ },
172
+ 'gologin': function () {
173
+ this.beforetabs = []
174
+ this.$back()
175
+ }
176
+ }
177
+ }
178
+ </script>
179
+ <style scoped>
180
+ .app-height{
181
+ height: 93%;
182
+ }
183
+ </style>