system-phone 1.2.124 → 1.2.126

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,6 +1,6 @@
1
1
  {
2
2
  "name": "system-phone",
3
- "version": "1.2.124",
3
+ "version": "1.2.126",
4
4
  "description": "手机模块 前端组件",
5
5
  "author": "何宁社 <524395609@qq.com>",
6
6
  "license": "ISC",
@@ -1,182 +1,185 @@
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.backthis.$back()
78
- this.closeAndDelAudio()
79
- }
80
- })
81
- }else{
82
- this.delback()
83
- //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
84
- this.backthis.$back()
85
- }
86
- },
87
- delback(){
88
- // 先确认出 前一个组件的名字
89
- var title = this.beforeName
90
- var beforetitle = '主界面'
91
- var j = -1
92
- for(var i = 0;i<this.beforetabs.length;i++){
93
- if(this.beforetabs[i].titleName == title){
94
- beforetitle = this.beforetabs[i].beforeName
95
- this.backthis =this.beforetabs[i].backthis
96
- this.safe = this.beforetabs[i].safe
97
- j = i
98
- break;
99
- }
100
- }
101
- this.beforetabs.splice(j + 1, 1)
102
- this.beforeName = beforetitle
103
- this.titleName = title
104
- // 判断是否 显示底层导航
105
- if(this.iftabbar == this.titleName){
106
- this.isMenu = true
107
- }
108
- },
109
- onClickTabBarItem(titlefg) {
110
- var param = titlefg.link
111
- if(titlefg.name == '退出系统'){
112
- this.$showMessage('即将返回登陆界面!', ['confirm', 'cancel']).then((res) => {
113
- if (res === 'confirm') {
114
- this.$androidUtil.setPreference('f_repairman_id', 'x')
115
- this.$androidUtil.setPreference('f_repairman_name', 'x')
116
- this.$back()
117
- }
118
- })
119
- }else{
120
- if(this.beforeName == titlefg.name){
121
- return
122
- }
123
- this.titleName = titlefg.name
124
- this.beforeName = titlefg.name
125
- let data = {
126
- sourcet: '竖屏'
127
- }
128
- // if(titlefg.name == '待办工单'){
129
- // param = param+'V'
130
- // }
131
- this.$refs.route.init(param,data)
132
- }
133
- },
134
- closeAndDelAudio() {
135
- console.log("停止无限制录音")
136
- HostApp.startOrStopAudioClip("-----","停止录音")
137
- }
138
- },
139
- events: {
140
- 'gotoson': function (prpdata) {
141
- // 事件回调内的 `this` 自动绑定到注册它的实例上
142
- // safe 返回事件是否进行判断后再返回
143
- // 每进入一次,beforetabs 数组添加 返回 删除
144
- this.backthis = prpdata._this
145
- this.safe = prpdata.safe
146
- this.isMenu = false
147
- // 记录本次跳转
148
- var beforedata = {
149
- beforeName: this.titleName,
150
- titleName: prpdata.title,
151
- backthis:prpdata._this,
152
- safe:prpdata.safe
153
- }
154
- this.beforetabs.push(beforedata)
155
- if( this.beforetabs.length == 1){
156
- this.iftabbar = beforedata.beforeName
157
- }
158
- // 写入跳转后 前后组件名字
159
- this.beforeName = this.titleName
160
- this.titleName = prpdata.title
161
-
162
- console.log('进入子组件,通知外层组件,我已经进入')
163
- },
164
- 'confirm': function () {
165
- // 提交处理返回事件
166
- this.back('提交')
167
- },
168
- 'backarrdel': function () {
169
- this.delback()
170
- },
171
- 'gologin': function () {
172
- this.beforetabs = []
173
- this.$back()
174
- }
175
- }
176
- }
177
- </script>
178
- <style scoped>
179
- .app-height{
180
- height: 93%;
181
- }
182
- </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
+ 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>