system-phone 3.0.49-3 → 3.0.49-31

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.
Files changed (32) hide show
  1. package/package.json +1 -1
  2. package/src/assets/images//346/211/223/345/215/241.png +0 -0
  3. package/src/assets//344/277/235/351/231/251/347/231/273/350/256/260.png +0 -0
  4. package/src/assets//345/210/240/351/231/244/347/205/247/347/211/207.png +0 -0
  5. package/src/assets//345/215/217/345/212/251/345/256/211/346/243/200.png +0 -0
  6. package/src/assets//345/233/236/350/256/277.png +0 -0
  7. package/src/assets//345/256/211/346/243/200/347/256/241/347/220/206/346/234/252/351/200/211/344/270/255.png +0 -0
  8. package/src/assets//345/256/211/346/243/200/347/256/241/347/220/206/351/200/211/344/270/255.png +0 -0
  9. package/src/assets//346/212/204/350/241/250/351/207/215/344/274/240.png +0 -0
  10. package/src/assets//346/226/275/345/260/201.png +0 -0
  11. package/src/assets//346/226/275/345/260/201/347/256/241/347/220/206.png +0 -0
  12. package/src/assets//346/260/221/347/224/250/345/256/211/346/243/200.png +0 -0
  13. package/src/assets//347/205/247/347/211/207/345/210/240/351/231/244.png +0 -0
  14. package/src/assets//347/273/264/344/277/256/345/234/250/347/272/277/346/237/245/350/257/242.png +0 -0
  15. package/src/assets//347/273/264/344/277/256/350/256/260/345/275/225.png +0 -0
  16. package/src/assets//351/200/232/346/260/224/346/211/223/345/216/213/347/225/231/345/272/225.png +0 -0
  17. package/src/assets//351/235/236/346/260/221/347/224/250/345/256/211/346/243/200.png +0 -0
  18. package/src/assets//351/246/226/351/241/265/345/244/247/345/233/276.png +0 -0
  19. package/src/components/AttendManage.vue +120 -1
  20. package/src/components/LoginApp.vue +12 -6
  21. package/src/components/OnlineManage.vue +1 -1
  22. package/src/components/SystemSetUp.vue +330 -310
  23. package/src/components/ToolsPage.vue +2 -0
  24. package/src/filiale/yulinyuchuan/AlreadyService.vue +193 -0
  25. package/src/filiale/yulinyuchuan/AttendManage.vue +534 -0
  26. package/src/filiale/yulinyuchuan/LoginApp.vue +736 -0
  27. package/src/filiale/yulinyuchuan/OnlineManage.vue +256 -0
  28. package/src/filiale/yulinyuchuan/SystemSetUp.vue +331 -0
  29. package/src/filiale/yulinyuchuan/UploadManage.vue +194 -0
  30. package/src/filiale/yulinyuchuan/systemphonegrid.js +9 -0
  31. package/src/stores/AppData.js +65 -63
  32. package/src/systemphonegrid.js +178 -210
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-phone",
3
- "version": "3.0.49-3",
3
+ "version": "3.0.49-31",
4
4
  "description": "手机模块 前端组件",
5
5
  "author": "何宁社 <524395609@qq.com>",
6
6
  "license": "ISC",
@@ -56,6 +56,56 @@
56
56
  </div>
57
57
  </modal>
58
58
  </validator>
59
+ <modal :show.sync="shownotices" backdrop="false">
60
+ <header slot="modal-header" class="modal-header">
61
+ <h3 style="text-align: center;">新公告提醒</h3>
62
+ </header>
63
+ <article slot="modal-body" class="modal-body">
64
+ <div class="auto app-text" style="margin-top: 5px;">
65
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
66
+ <div class="panel-body panel-self">
67
+ <div class="col-xs-12">
68
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>标题:</b></p>
69
+ <p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{notices.f_title}}</p>
70
+ </div>
71
+ <div class="col-xs-12">
72
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>内容:</b></p>
73
+ <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ notices.f_explain }}</p>
74
+ </div>
75
+ <div class="col-xs-12">
76
+ <p class="panel-title text-left font" style="width: 23%;float: left"><b>状态:</b></p>
77
+ <p class="panel-title text-left input-font" style="width: 77%">{{notices.f_state}}</p>
78
+ </div>
79
+
80
+ <div class="col-xs-12">
81
+ <p class="panel-title text-left font" style="width: 30%;float: left"><b>发布时间:</b></p>
82
+ <p class="panel-title text-left input-font" style="width: 100%">{{notices.f_date}}</p>
83
+ </div>
84
+ <div class="col-xs-12">
85
+ <p class="panel-title text-left font" style="width: 30%;float: left"><b>结束时间:</b></p>
86
+ <p class="panel-title text-left input-font" style="width: 100%">{{notices.f_enddate}}</p>
87
+ </div>
88
+ <div class="col-xs-12">
89
+ <p class="panel-title text-left font" style="width: 30%;float: left"><b>操作人:</b></p>
90
+ <p class="panel-title text-left input-font" style="width: 100%">{{notices.f_operator}}</p>
91
+ </div>
92
+ <div class="col-xs-12">
93
+ <p class="panel-title text-left font" style="width: 30%;float: left"><b>紧急公告:</b></p>
94
+ <p class="panel-title text-left input-font" style="width: 100%">{{notices.f_urgency ? '是' : '否'}}</p>
95
+ </div>
96
+ <div class="col-xs-12">
97
+ <img-self :width="300" :height="400" alt="无照片!!!" :src="notices.f_downloadfile.split(':')[1]"></img-self>
98
+ </div>
99
+ <div class="col-xs-12">
100
+ <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="closeshowModal()">确认</button>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ </article>
106
+ <footer slot="modal-footer" class="modal-footer">
107
+ </footer>
108
+ </modal>
59
109
  </div>
60
110
  </template>
61
111
 
@@ -71,9 +121,15 @@
71
121
  showModal: false,
72
122
  isMenu: true,
73
123
  isshowTag:false,
124
+ shownotices:false,
74
125
  tabs: [],
75
126
  safeckNum:0,
76
127
  repairNum:0,
128
+ model:{},
129
+ notices:{},
130
+ weakPassword: false,
131
+ modifyPassword: false,
132
+ isShowStopGas:this.$appdata.getSingleValue('公告展示'),
77
133
  text: '导航组件this',
78
134
  beforeName: '待办工作',
79
135
  componentName: 'repair-first',
@@ -96,8 +152,72 @@
96
152
  this.getNoTagTabs()
97
153
  this.getmeterNum()
98
154
  this.getModelSum()
155
+ this.searchStopGas()
99
156
  },
100
157
  methods: {
158
+ closeshowModal(){
159
+ this.shownotices = false
160
+ this.saveIsShowStopGas()
161
+ },
162
+ searchStopGas(){
163
+ if(!this.isShowStopGas || !this.isShowStopGas == 'true'){
164
+ return
165
+ }
166
+ let http = new HttpResetClass()
167
+ var condition = `1=1 and f_state = '公告中' and f_typeofreceipt = '手机端'`
168
+ let data = {
169
+ items: '*',
170
+ tablename: 'T_STOPGAS',
171
+ condition: condition,
172
+ orderitem: 'id desc'
173
+ }
174
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable_OrderBy`, {data: data}, {
175
+ resolveMsg: null,
176
+ rejectMsg: null
177
+ }).then((res) => {
178
+ this.notices = res.data[0]
179
+ this.showStopGas(res.data[0].id,Vue.user.id)
180
+ }).catch((e)=>{
181
+ })
182
+ },
183
+ showStopGas(stopId,userid){
184
+ let http = new HttpResetClass()
185
+ var condition = `f_stopgas_id = '${stopId}' and f_user_id = '${userid}'`
186
+ let data = {
187
+ items: '*',
188
+ tablename: 't_notice_notarize',
189
+ condition: condition,
190
+ orderitem: 'f_id desc'
191
+ }
192
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable_OrderBy`, {data: data}, {
193
+ resolveMsg: null,
194
+ rejectMsg: null
195
+ }).then((res) => {
196
+ if (res.data.length === 0) {
197
+ this.shownotices = true
198
+ }else if (res.data[0].f_phstate !== '已确认' ){
199
+ this.model.f_id = res.data[0].f_id
200
+ this.shownotices = true
201
+ } else {
202
+ this.shownotices = false
203
+ }
204
+ }).catch((e)=>{
205
+ console.log('报错了!!')
206
+ console.error(e)
207
+ })
208
+ },
209
+ saveIsShowStopGas(){
210
+ this.model.f_stopgas_id = this.notices.id
211
+ this.model.f_phstate = '已确认'
212
+ this.model.f_user_id = Vue.user.id
213
+ console.log('保存', this.model)
214
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/savenoticenotarize`, {data:this.model}).then((res) => {
215
+ this.model.f_stopgas_id = ''
216
+ this.model.f_user_id = ''
217
+ }).catch((res) => {
218
+ console.log('打印报错信息'+ res)
219
+ })
220
+ },
101
221
  click (row) {
102
222
  let _this = this
103
223
  this.$dispatch('gotoson', {
@@ -184,7 +304,6 @@
184
304
  this.getSafeCheck()
185
305
  }
186
306
  }
187
-
188
307
  },
189
308
  getRepair(){
190
309
  if (!this.isShowRedNum || this.isShowRedNum != 'true') {
@@ -207,6 +207,11 @@ export default {
207
207
  rejectMsg: null
208
208
  })
209
209
  console.log('获取登陆信息:', ret.data)
210
+ if(ret.data.state == '离职'){
211
+ this.loaderShow = false
212
+ this.$showMessage('登录失败!用户名或密码错误!')
213
+ return
214
+ }
210
215
  //秦华---(siteId==站点id)===============(flatId==平板id)
211
216
  this.$androidUtil.setPreference('siteId', ret.data.f_extend1 || '')
212
217
  this.$androidUtil.setPreference('flatId', ret.data.f_extend2 || '')
@@ -274,6 +279,7 @@ export default {
274
279
  this.$androidUtil.setPreference('login_user_cache', userStr)
275
280
  this.$androidUtil.setPreference('f_repairman_id', Util.f.id)
276
281
  this.$androidUtil.setPreference('f_repairman_name', Util.f.name)
282
+ this.$androidUtil.setPreference('f_orgid', Util.f.orgid)
277
283
  this.$androidUtil.setPreference('f_role_name', Util.f.f_role_name || '')
278
284
  console.log("自动登陆标识" + Util.f.f_role_name)
279
285
  console.log(this.showauto)
@@ -289,13 +295,13 @@ export default {
289
295
  return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
290
296
  }, toStandardTimeString () {
291
297
  let dt = new Date()
292
- let month = dt.getMonth() + 1
298
+ let month = dt.getMonth()+1
293
299
  let date = dt.getDate()
294
300
  let hour = dt.getHours()
295
301
  let min = dt.getMinutes()
296
302
  let sec = dt.getSeconds()
297
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
298
- + ' ' + (hour < 10 ? '0' + hour : hour)
303
+ return dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
304
+ + ' ' + (hour<10? '0'+ hour : hour) + ':' + (min<10? '0'+ min : min) + ':' + (sec<10? '0'+ sec : sec)
299
305
  }}
300
306
  } else {
301
307
  Vue.$login = Vue.prototype.$login = {jwt: ret.data.id,
@@ -306,13 +312,13 @@ export default {
306
312
  return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
307
313
  }, toStandardTimeString () {
308
314
  let dt = new Date()
309
- let month = dt.getMonth() + 1
315
+ let month = dt.getMonth()+1
310
316
  let date = dt.getDate()
311
317
  let hour = dt.getHours()
312
318
  let min = dt.getMinutes()
313
319
  let sec = dt.getSeconds()
314
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
315
- + ' ' + (hour < 10 ? '0' + hour : hour)
320
+ return dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
321
+ + ' ' + (hour<10? '0'+ hour : hour) + ':' + (min<10? '0'+ min : min) + ':' + (sec<10? '0'+ sec : sec)
316
322
  }}
317
323
  }
318
324
  // 获取参数
@@ -64,7 +64,6 @@
64
64
  }
65
65
  },
66
66
  getTabs() {
67
- debugger
68
67
  for (let funs in Vue.functions) {
69
68
  if (Vue.functions[funs].link == 'online-manage') {
70
69
  return Vue.functions[funs].children
@@ -225,6 +224,7 @@
225
224
 
226
225
  .imgs {
227
226
  width: 35px;
227
+ height: 35px;
228
228
  margin-top: 15px;
229
229
  }
230
230