system-phone 3.1.33 → 3.1.34

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": "3.1.33",
3
+ "version": "3.1.34",
4
4
  "description": "手机模块 前端组件",
5
5
  "author": "何宁社 <524395609@qq.com>",
6
6
  "license": "ISC",
@@ -31,247 +31,248 @@
31
31
  </template>
32
32
 
33
33
  <script scoped>
34
- import Vue from 'vue'
35
- import {HttpResetClass} from "vue-client";
36
- import * as Util from "../Util";
34
+ import Vue from 'vue'
35
+ import {HttpResetClass} from "vue-client";
36
+ import * as Util from "../Util";
37
37
 
38
- export default {
39
- title: '在线业务导航',
40
- data() {
41
- return {
42
- titleName: '在线业务',
43
- isMenu: true,
44
- tabs: this.getTabs(),
45
- text: '导航组件this',
46
- onlineAcceptOrders:0,
47
- isShowRedNum:this.$appdata.getSingleValue('手机端获取任务条数'),
48
- onlineAcceptOrdersShow:this.$appdata.getSingleValue('在线接单红点提醒'),
49
- beforeName: '在线业务',
50
- sourcet: '竖屏',
51
- pointNum: null,
52
- infoNum: null,
53
- meterNum: null
38
+ export default {
39
+ title: '在线业务导航',
40
+ data() {
41
+ return {
42
+ titleName: '在线业务',
43
+ isMenu: true,
44
+ tabs: this.getTabs(),
45
+ text: '导航组件this',
46
+ onlineAcceptOrders:0,
47
+ isShowRedNum:this.$appdata.getSingleValue('手机端获取任务条数'),
48
+ onlineAcceptOrdersShow:this.$appdata.getSingleValue('在线接单红点提醒'),
49
+ beforeName: '在线业务',
50
+ sourcet: '竖屏',
51
+ pointNum: null,
52
+ infoNum: null,
53
+ meterNum: null
54
+ }
55
+ },
56
+ ready() {
57
+ this.getRepairNum()
58
+ this.getInfoNum()
59
+ this.getOnlineAcceptOrders()
60
+ this.getmeterNum()
61
+ },
62
+ methods: {
63
+ getOnlineAcceptOrders(){
64
+ if(!this.onlineAcceptOrdersShow || !this.onlineAcceptOrdersShow == 'true'){
65
+ return
54
66
  }
67
+ const val = {
68
+ condition: {
69
+ condition: `f_workorder_type like '%报修单%' and f_filiale_id = '${Vue.user.orgid}'`,
70
+ userid : Vue.user.name
71
+ },
72
+ userid: Vue.user.name
73
+ };
74
+ let http = new HttpResetClass()
75
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/sql/phoneOperatorService`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
76
+ this.onlineAcceptOrders = res.data.length
77
+ })
55
78
  },
56
- ready() {
79
+ changesum(titdata) {
80
+ for (var i = 0; i < this.tabs.length; i++) {
81
+ if (this.tabs[i].name == titdata.title) {
82
+ this.tabs[i].icon = titdata.sum + '单'
83
+ console.log(JSON.stringify(this.tabs[i].icon))
84
+ return
85
+ }
86
+ }
87
+ },
88
+ getTabs() {
89
+ for (let funs in Vue.functions) {
90
+ if (Vue.functions[funs].link == 'online-manage') {
91
+ return Vue.functions[funs].children
92
+ }
93
+ }
57
94
  this.getRepairNum()
58
95
  this.getInfoNum()
59
- this.getOnlineAcceptOrders()
60
96
  this.getmeterNum()
61
97
  },
62
- methods: {
63
- getOnlineAcceptOrders(){
64
- if(!this.onlineAcceptOrdersShow || !this.onlineAcceptOrdersShow == 'true'){
65
- return
66
- }
67
- const val = {
68
- condition: {
69
- condition: `1 = 1 and f_workorder_type = '报修单' and f_filiale_id = '${Vue.user.orgid}'`
70
- },
71
- userid: Vue.user.name
72
- };
73
- let http = new HttpResetClass()
74
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/sql/phoneOperatorService`, {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
75
- this.onlineAcceptOrders = res.data.length
76
- })
77
- },
78
- changesum(titdata) {
79
- for (var i = 0; i < this.tabs.length; i++) {
80
- if (this.tabs[i].name == titdata.title) {
81
- this.tabs[i].icon = titdata.sum + ''
82
- console.log(JSON.stringify(this.tabs[i].icon))
83
- return
84
- }
85
- }
86
- },
87
- getTabs() {
88
- for (let funs in Vue.functions) {
89
- if (Vue.functions[funs].link == 'online-manage') {
90
- return Vue.functions[funs].children
91
- }
92
- }
93
- this.getRepairNum()
94
- this.getInfoNum()
95
- this.getmeterNum()
96
- },
97
- getmeterNum() {
98
- if (!this.isShowRedNum || this.isShowRedNum != 'true') {
99
- return
100
- }
101
- this.timeOutGetmeterNum()
102
- },
103
- getInfoNum() {
104
- if (!this.isShowRedNum || this.isShowRedNum != 'true') {
105
- return
106
- }
107
- this.timeOutGetInfoNum()
108
- },
109
- getRepairNum() {
110
- if (!this.isShowRedNum || this.isShowRedNum != 'true') {
111
- return
112
- }
113
- this.timeOutGetRepairNum()
114
- },
115
- timeOutGetRepairNum() {
116
- let condition = `1 = 1 and f_workorder_type = '报修单' and f_state = null `
117
- let val = {
118
- condition: {
119
- condition: condition,
120
- sign: '1 = 1'
121
- },
122
- userid: Vue.user.name
123
- }
124
- let http = new HttpResetClass()
125
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorServiceAndroid`, {data: val}, {
126
- resolveMsg: null,
127
- rejectMsg: null
128
- }).then((res) => {
129
- this.pointNum = res.data.length
130
- })
131
- },
132
- timeOutGetInfoNum() {
133
- let condition = " 1 = 1 and (f_enddate >= '" + Util.toStandardTimeString() + "' or f_state = '公告中') "
134
- let val = {
135
- items: "count(*) as count_num",
136
- tablename: "T_STOPGAS",
137
- orderitem: "1",
98
+ getmeterNum() {
99
+ if (!this.isShowRedNum || this.isShowRedNum != 'true') {
100
+ return
101
+ }
102
+ this.timeOutGetmeterNum()
103
+ },
104
+ getInfoNum() {
105
+ if (!this.isShowRedNum || this.isShowRedNum != 'true') {
106
+ return
107
+ }
108
+ this.timeOutGetInfoNum()
109
+ },
110
+ getRepairNum() {
111
+ if (!this.isShowRedNum || this.isShowRedNum != 'true') {
112
+ return
113
+ }
114
+ this.timeOutGetRepairNum()
115
+ },
116
+ timeOutGetRepairNum() {
117
+ let condition = `1 = 1 and f_workorder_type = '报修单' and f_state = null `
118
+ let val = {
119
+ condition: {
138
120
  condition: condition,
139
- f_orgstr: `'${Vue.user.orgid}'`
140
- }
141
- let http = new HttpResetClass()
142
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
143
- resolveMsg: null,
144
- rejectMsg: null
145
- }).then((res) => {
146
- this.infoNum = res.data[0].count_num
147
- })
148
- },
149
- timeOutGetmeterNum() {
150
- let val = {
151
- items: "count(*) as count_num",
152
- tablename: "t_handplan",
153
- orderitem: "1",
154
- condition: `1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
155
- f_orgid: `'${Vue.user.orgid}'`
156
- }
157
- let http = new HttpResetClass()
158
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
159
- resolveMsg: null,
160
- rejectMsg: null
161
- }).then((res) => {
162
- this.meterNum = res.data[0].count_num
163
- })
164
- },
165
- imgback(val) {
166
- return require('../assets/' + val + '.png')
167
- },
168
- // 返回主界面
169
- back() {
170
- this.titleName = '主界面'
171
- this.isMenu = true
121
+ sign: '1 = 1'
122
+ },
123
+ userid: Vue.user.name
124
+ }
125
+ let http = new HttpResetClass()
126
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorServiceAndroid`, {data: val}, {
127
+ resolveMsg: null,
128
+ rejectMsg: null
129
+ }).then((res) => {
130
+ this.pointNum = res.data.length
131
+ })
132
+ },
133
+ timeOutGetInfoNum() {
134
+ let condition = " 1 = 1 and (f_enddate >= '" + Util.toStandardTimeString() + "' or f_state = '公告中') "
135
+ let val = {
136
+ items: "count(*) as count_num",
137
+ tablename: "T_STOPGAS",
138
+ orderitem: "1",
139
+ condition: condition,
140
+ f_orgstr: `'${Vue.user.orgid}'`
141
+ }
142
+ let http = new HttpResetClass()
143
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
144
+ resolveMsg: null,
145
+ rejectMsg: null
146
+ }).then((res) => {
147
+ this.infoNum = res.data[0].count_num
148
+ })
149
+ },
150
+ timeOutGetmeterNum() {
151
+ let val = {
152
+ items: "count(*) as count_num",
153
+ tablename: "t_handplan",
154
+ orderitem: "1",
155
+ condition: `1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
156
+ f_orgid: `'${Vue.user.orgid}'`
157
+ }
158
+ let http = new HttpResetClass()
159
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
160
+ resolveMsg: null,
161
+ rejectMsg: null
162
+ }).then((res) => {
163
+ this.meterNum = res.data[0].count_num
164
+ })
165
+ },
166
+ imgback(val) {
167
+ return require('../assets/' + val + '.png')
168
+ },
169
+ // 返回主界面
170
+ back() {
171
+ this.titleName = '主界面'
172
+ this.isMenu = true
172
173
 
173
- },
174
- gotopage(param, title, navigate) {
175
- console.log('进入子组件')
176
- var prpdata = {
177
- _this: this,
178
- title: title,
179
- safe: false
180
- }
181
- this.$dispatch('gotoson', prpdata)
182
- if (navigate) {
183
- this.$goto('embbed-page', {domainName: navigate, title: title, compName: param, login: Vue.user})
184
- } else {
185
- this.$goto(param, {sourcet: '竖屏', tabname: title},'self',this.getTabs)
186
- }
187
- },
188
- mute() {
189
- HostApp.mute()
174
+ },
175
+ gotopage(param, title, navigate) {
176
+ console.log('进入子组件')
177
+ var prpdata = {
178
+ _this: this,
179
+ title: title,
180
+ safe: false
181
+ }
182
+ this.$dispatch('gotoson', prpdata)
183
+ if (navigate) {
184
+ this.$goto('embbed-page', {domainName: navigate, title: title, compName: param, login: Vue.user})
185
+ } else {
186
+ this.$goto(param, {sourcet: '竖屏', tabname: title},'self',this.getTabs)
190
187
  }
191
188
  },
192
- }
189
+ mute() {
190
+ HostApp.mute()
191
+ }
192
+ },
193
+ }
193
194
  </script>
194
195
  <style lang="less">
195
- .badge-content {
196
- color: #fff;
197
- box-sizing: border-box;
198
- min-width: 8px;
199
- font-size: 9px;
200
- line-height: 12px;
201
- white-space: nowrap;
202
- font-weight: 400;
203
- text-align: center;
204
- }
196
+ .badge-content {
197
+ color: #fff;
198
+ box-sizing: border-box;
199
+ min-width: 8px;
200
+ font-size: 9px;
201
+ line-height: 12px;
202
+ white-space: nowrap;
203
+ font-weight: 400;
204
+ text-align: center;
205
+ }
205
206
 
206
- .badge {
207
- top: 6px;
208
- position: absolute;
209
- max-height: 13px;
210
- min-height: 8px;
211
- right: 0;
212
- display: inline-flex;
213
- vertical-align: middle;
214
- box-sizing: content-box;
215
- border-radius: 100px;
216
- background-color: red;
217
- }
207
+ .badge {
208
+ top: 6px;
209
+ position: absolute;
210
+ max-height: 13px;
211
+ min-height: 8px;
212
+ right: 0;
213
+ display: inline-flex;
214
+ vertical-align: middle;
215
+ box-sizing: content-box;
216
+ border-radius: 100px;
217
+ background-color: red;
218
+ }
218
219
 
219
- .tab-befor-img {
220
- content: '';
221
- background-size: 30px;
222
- display: inline-block;
223
- margin-right: 8px;
224
- height: 30px;
225
- width: 30px;
226
- vertical-align: -35%;
227
- }
220
+ .tab-befor-img {
221
+ content: '';
222
+ background-size: 30px;
223
+ display: inline-block;
224
+ margin-right: 8px;
225
+ height: 30px;
226
+ width: 30px;
227
+ vertical-align: -35%;
228
+ }
228
229
 
229
- .pageskuang {
230
- vertical-align: middle;
231
- display: table-cell;
232
- width: 32%;
233
- top: -50%;
234
- margin-top: 1%;
235
- margin-left: 1%;
236
- border: 1px solid #e3e3e3;
237
- text-align: center;
238
- background-color: #ffffff;
239
- }
230
+ .pageskuang {
231
+ vertical-align: middle;
232
+ display: table-cell;
233
+ width: 32%;
234
+ top: -50%;
235
+ margin-top: 1%;
236
+ margin-left: 1%;
237
+ border: 1px solid #e3e3e3;
238
+ text-align: center;
239
+ background-color: #ffffff;
240
+ }
240
241
 
241
- .pgesfoot {
242
- font-size: 14px;
243
- color: #666666;
244
- }
242
+ .pgesfoot {
243
+ font-size: 14px;
244
+ color: #666666;
245
+ }
245
246
 
246
- .imgs {
247
- width: 35px;
248
- height: 35px;
249
- margin-top: 15px;
250
- }
247
+ .imgs {
248
+ width: 35px;
249
+ height: 35px;
250
+ margin-top: 15px;
251
+ }
251
252
 
252
- .pages-bgcolor {
253
- text-align: center;
254
- background-color: #f0f0ef;
255
- }
253
+ .pages-bgcolor {
254
+ text-align: center;
255
+ background-color: #f0f0ef;
256
+ }
256
257
 
257
- img[src=""], img:not([src]) {
258
- opacity: 0;
259
- border: none;
260
- visibility: hidden;
261
- max-width: none;
262
- }
258
+ img[src=""], img:not([src]) {
259
+ opacity: 0;
260
+ border: none;
261
+ visibility: hidden;
262
+ max-width: none;
263
+ }
263
264
 
264
- .manbiankuang {
265
- width: 44%;
266
- margin-top: 15px;
267
- margin-left: 4%;
268
- border: 1px solid #e3e3e3;
269
- border-radius: 10px 10px 10px 10px;
270
- text-align: center;
271
- background-color: #ffffff;
272
- }
265
+ .manbiankuang {
266
+ width: 44%;
267
+ margin-top: 15px;
268
+ margin-left: 4%;
269
+ border: 1px solid #e3e3e3;
270
+ border-radius: 10px 10px 10px 10px;
271
+ text-align: center;
272
+ background-color: #ffffff;
273
+ }
273
274
 
274
- .nav-bgcolor {
275
- background-color: #ffffff;
276
- }
275
+ .nav-bgcolor {
276
+ background-color: #ffffff;
277
+ }
277
278
  </style>