system-phone 3.0.45 → 3.0.47

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,132 +1,132 @@
1
- <template >
2
- <div class="panel panel-default auto repair-info-content">
3
- <div class="panel-body">
4
- <div class="panel panel-default well" v-for="row in model">
5
- <div class="bg-info">
6
- <div class="row form-group">
7
- <div class="col-xs-12 col-sm-12 col-md-12">
8
- <div class="row">
9
- <div class="col-xs-6 col-sm-6 col-md-6">
10
- 旧表号: {{row.f_old_meternumber}}
11
- </div>
12
- <div class="col-xs-6 col-sm-6 col-md-6">
13
- 新表号: {{row.f_new_meternumber}}
14
- </div>
15
- <div class="col-xs-12 col-sm-12 col-md-12">
16
- 旧表底数: {{row.f_new_meter_base}}
17
- </div>
18
- <div class="col-xs-12 col-sm-12 col-md-12">
19
- 新表底数: {{row.f_old_meter_base}}
20
- </div>
21
- <div class="col-xs-12 col-sm-12 col-md-12">
22
- 旧表品牌: {{row.f_old_meter_brand}}
23
- </div>
24
- <div class="col-xs-12 col-sm-12 col-md-12">
25
- 新表品牌: {{row.f_new_meter_brand}}
26
- </div>
27
- <div class="col-xs-12 col-sm-12 col-md-12">
28
- 换表补气金额: {{row.f_newtable_fillfee}}
29
- </div>
30
- <div class="col-xs-12 col-sm-12 col-md-12">
31
- 换表补气气量: {{row.f_newtable_fillgas}}
32
- </div>
33
-
34
- </div>
35
- </div>
36
- </div>
37
- </div>
38
- </div>
39
- <p v-show="model.length == 0 ">此用户暂无换表记录</p>
40
- </div>
41
- </div>
42
- </template>
43
-
44
- <script>
45
- import { PagedList } from 'vue-client'
46
- import { HttpResetClass } from 'vue-client'
47
- import co from 'co'
48
- export default {
49
- title: '换表记录',
50
- data () {
51
- return {
52
- model: [],
53
- show: false,
54
- row: Object
55
- }
56
- },
57
- props: {
58
- user: {
59
- type: Object
60
- },
61
- f_userinfo_id:''
62
- },
63
- methods: {
64
- getmodel () {
65
- let userinfoid
66
- if(this.f_userinfo_id){
67
- userinfoid = this.f_userinfo_id
68
- }else{
69
- userinfoid = this.user.f_userinfo_id
70
- console.log(this.user.f_userinfo_id)
71
- }
72
- console.log(userinfoid)
73
- let http = new HttpResetClass()
74
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getChangeTable`, {
75
- data: {
76
- items: "*",
77
- tablename: "t_userfiles",
78
- condition: `f_userinfo_id = '${userinfoid}'`
79
- }
80
- }, {resolveMsg: null, rejectMsg: null}).then((res)=>{
81
-
82
- this.model=res.data
83
- this.show1=true
84
- })
85
- },
86
- back(){
87
-
88
- }
89
- },
90
- watch: {
91
- 'user' (val) {
92
- // this.model.search(`card_id = ${this.user.card_id}`)
93
- if(this.user){
94
- if (!(this.user.isNuN)) {
95
- this.model= []
96
- this.getmodel()
97
- }
98
- }
99
- },
100
- 'f_userinfo_id'(){
101
- if(this.f_userinfo_id){
102
- this.model= []
103
- this.getmodel()
104
- }
105
- }
106
- },
107
- ready () {
108
- if (this.user && this.user.f_userinfo_id) {
109
- // this.model.search(`card_id = ${this.user.card_id}`)
110
- this.getmodel()
111
- }
112
- if(this.f_userinfo_id){
113
- this.getmodel()
114
- }
115
- }
116
- }
117
- </script>
118
- <style>
119
- .app-botton {
120
- position:fixed;
121
- background: #87b2dd;
122
- color: #FFF;
123
- padding: 8px;
124
- text-align: center;
125
- font-size: 1.2em;
126
- z-index: 10;
127
- opacity:0.5;
128
- bottom: 50px;
129
- margin-top: -10px;
130
- height: 40px;
131
- }
132
- </style>
1
+ <template >
2
+ <div class="panel panel-default auto repair-info-content">
3
+ <div class="panel-body">
4
+ <div class="panel panel-default well" v-for="row in model">
5
+ <div class="bg-info">
6
+ <div class="row form-group">
7
+ <div class="col-xs-12 col-sm-12 col-md-12">
8
+ <div class="row">
9
+ <div class="col-xs-6 col-sm-6 col-md-6">
10
+ 旧表号: {{row.f_old_meternumber}}
11
+ </div>
12
+ <div class="col-xs-6 col-sm-6 col-md-6">
13
+ 新表号: {{row.f_new_meternumber}}
14
+ </div>
15
+ <div class="col-xs-12 col-sm-12 col-md-12">
16
+ 旧表底数: {{row.f_new_meter_base}}
17
+ </div>
18
+ <div class="col-xs-12 col-sm-12 col-md-12">
19
+ 新表底数: {{row.f_old_meter_base}}
20
+ </div>
21
+ <div class="col-xs-12 col-sm-12 col-md-12">
22
+ 旧表品牌: {{row.f_old_meter_brand}}
23
+ </div>
24
+ <div class="col-xs-12 col-sm-12 col-md-12">
25
+ 新表品牌: {{row.f_new_meter_brand}}
26
+ </div>
27
+ <div class="col-xs-12 col-sm-12 col-md-12">
28
+ 换表补气金额: {{row.f_newtable_fillfee}}
29
+ </div>
30
+ <div class="col-xs-12 col-sm-12 col-md-12">
31
+ 换表补气气量: {{row.f_newtable_fillgas}}
32
+ </div>
33
+
34
+ </div>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ <p v-show="model.length == 0 ">此用户暂无换表记录</p>
40
+ </div>
41
+ </div>
42
+ </template>
43
+
44
+ <script>
45
+ import { PagedList } from 'vue-client'
46
+ import { HttpResetClass } from 'vue-client'
47
+ import co from 'co'
48
+ export default {
49
+ title: '换表记录',
50
+ data () {
51
+ return {
52
+ model: [],
53
+ show: false,
54
+ row: Object
55
+ }
56
+ },
57
+ props: {
58
+ user: {
59
+ type: Object
60
+ },
61
+ f_userinfo_id:''
62
+ },
63
+ methods: {
64
+ getmodel () {
65
+ let userinfoid
66
+ if(this.f_userinfo_id){
67
+ userinfoid = this.f_userinfo_id
68
+ }else{
69
+ userinfoid = this.user.f_userinfo_id
70
+ console.log(this.user.f_userinfo_id)
71
+ }
72
+ console.log(userinfoid)
73
+ let http = new HttpResetClass()
74
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getChangeTable`, {
75
+ data: {
76
+ items: "*",
77
+ tablename: "t_userfiles",
78
+ condition: `f_userinfo_id = '${userinfoid}'`
79
+ }
80
+ }, {resolveMsg: null, rejectMsg: null}).then((res)=>{
81
+
82
+ this.model=res.data
83
+ this.show1=true
84
+ })
85
+ },
86
+ back(){
87
+
88
+ }
89
+ },
90
+ watch: {
91
+ 'user' (val) {
92
+ // this.model.search(`card_id = ${this.user.card_id}`)
93
+ if(this.user){
94
+ if (!(this.user.isNuN)) {
95
+ this.model= []
96
+ this.getmodel()
97
+ }
98
+ }
99
+ },
100
+ 'f_userinfo_id'(){
101
+ if(this.f_userinfo_id){
102
+ this.model= []
103
+ this.getmodel()
104
+ }
105
+ }
106
+ },
107
+ ready () {
108
+ if (this.user && this.user.f_userinfo_id) {
109
+ // this.model.search(`card_id = ${this.user.card_id}`)
110
+ this.getmodel()
111
+ }
112
+ if(this.f_userinfo_id){
113
+ this.getmodel()
114
+ }
115
+ }
116
+ }
117
+ </script>
118
+ <style>
119
+ .app-botton {
120
+ position:fixed;
121
+ background: #87b2dd;
122
+ color: #FFF;
123
+ padding: 8px;
124
+ text-align: center;
125
+ font-size: 1.2em;
126
+ z-index: 10;
127
+ opacity:0.5;
128
+ bottom: 50px;
129
+ margin-top: -10px;
130
+ height: 40px;
131
+ }
132
+ </style>
@@ -1,138 +1,138 @@
1
- <template>
2
- <div class="app-botton" @click="back()" v-if="show">
3
- <span class="glyphicon glyphicon-menu-left">返回</span>
4
- </div>
5
- <div class="select-overspread auto" style="padding-bottom:5px;" v-show="!show">
6
- <div class="auto repair-info-content compatible">
7
- <div class="row">
8
- <div class="col-xs-12 col-sm-12 col-md-12 form-input-group mg8">
9
- <input type="text" class="form-control" v-model="model.f_userid" placeholder='用户编号'>
10
- </div>
11
- <div class="col-xs-12 col-sm-12 col-md-12 form-input-group mg8">
12
- <input type="text" class="form-control" v-model="model.f_username" placeholder='姓名'>
13
- </div>
14
- <div class="col-xs-12 col-sm-12 col-md-12 form-input-group mg8">
15
- <input type="text" class="form-control" v-model="model.f_address" placeholder='地址'>
16
- </div>
17
- </div>
18
- <div class="row">
19
- <button type="button" name="button" class="btn btn-primary pull-right" @click="search()">查询</button>
20
- <!-- <button type="button" name="button" class="btn btn-primary pull-right" @click="read()">读卡</button>-->
21
- </div>
22
- </div>
23
- <div partial class="panel panel-default well" style="padding: 0px;background-color:#ffffff;" v-for="row in users">
24
- <div class="panel-body inbg" @click="selectUser(row)">
25
- <div class="row auto" >
26
- <div class="col-sm-4">
27
- 用户编号: {{row.f_userinfo_code}}
28
- </div>
29
- <div class="col-sm-4">
30
- 用户姓名: {{row.f_user_name}}
31
- </div>
32
- <div class="col-sm-4">
33
- 用户电话: {{row.f_user_phone}}
34
- </div>
35
- <div class="col-sm-3">
36
- 用户类别: {{row.f_user_type}}
37
- </div>
38
- <div class="col-sm-9">
39
- 地址信息: {{row.f_address}}
40
- </div>
41
- <div class="col-sm-6">
42
- 表底数: {{row.f_meter_base}}
43
- </div>
44
- <div class="col-sm-6">
45
- 表上余额: {{row.f_balance_amount}}
46
- </div>
47
- </div>
48
- </div>
49
- </div>
50
- </div>
51
- <phone-info-table :user="user" :is-need-condition="false" :is-group="false" v-if="show"></phone-info-table>
52
- </template>
53
-
54
- <script>
55
- import Vue from 'vue'
56
- import { HttpResetClass } from 'vue-client'
57
- export default {
58
- title: '移动端用户信息查询',
59
- props: {
60
-
61
- },
62
- data () {
63
- return {
64
- users:[],
65
- model:{
66
- f_userid:'',
67
- f_username:'',
68
- f_address:''
69
- },
70
- user:'',
71
- show:false
72
- }
73
- },
74
- methods: {
75
- search() {
76
- // console.log("Vue.user",Vue.user)
77
- this.model.f_userid ? this.model.f_userid : '1=1'
78
- let condition = `ti.f_orgid = '${Vue.user.orgid}'`
79
- condition += this.model.f_userid ? ` and ti.f_userinfo_code = '${this.model.f_userid}'` : ' and 1=1'
80
- condition += this.model.f_username ? ` and ti.f_user_name like '%${this.model.f_username}%'` : ' and 1=1'
81
- condition += this.model.f_address ? ` and tua.f_address like '%${this.model.f_address}%'` : ' and 1=1'
82
- console.log(condition)
83
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_UserInfo`, {
84
- data: {
85
- condition:condition
86
- }
87
- }).then((res) => {
88
- console.log("查找用户返回的结果")
89
- console.log(res.data)
90
- this.users = res.data
91
- })
92
- },
93
- selectUser(row){
94
- this.user = row
95
- this.show = true
96
- },
97
- back(){
98
- this.show = false
99
- },
100
- read(){
101
- // 读卡
102
- let res = HostApp.read()
103
- if(res.code == 200){
104
- let cardid = res.msg.CardID
105
- let condition1 = `tf.f_card_id = '${cardid}'`
106
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_UserInfo`, {
107
- data: {
108
- condition:condition1
109
- }
110
- }).then((res) => {
111
- console.log("查找用户返回的结果")
112
- console.log(res.data)
113
- this.users = res.data
114
- })
115
- }else{
116
- HostApp.alert('读卡异常,请检查读卡设备!')
117
- }
118
- }
119
- },
120
- ready(){
121
- }
122
- }
123
- </script>
124
- <style>
125
- .app-botton {
126
- position:fixed;
127
- background: #87b2dd;
128
- color: #FFF;
129
- padding: 8px;
130
- text-align: center;
131
- font-size: 1.2em;
132
- z-index: 10;
133
- opacity:0.5;
134
- bottom: 50px;
135
- margin-top: -10px;
136
- height: 40px;
137
- }
138
- </style>
1
+ <template>
2
+ <div class="app-botton" @click="back()" v-if="show">
3
+ <span class="glyphicon glyphicon-menu-left">返回</span>
4
+ </div>
5
+ <div class="select-overspread auto" style="padding-bottom:5px;" v-show="!show">
6
+ <div class="auto repair-info-content compatible">
7
+ <div class="row">
8
+ <div class="col-xs-12 col-sm-12 col-md-12 form-input-group mg8">
9
+ <input type="text" class="form-control" v-model="model.f_userid" placeholder='用户编号'>
10
+ </div>
11
+ <div class="col-xs-12 col-sm-12 col-md-12 form-input-group mg8">
12
+ <input type="text" class="form-control" v-model="model.f_username" placeholder='姓名'>
13
+ </div>
14
+ <div class="col-xs-12 col-sm-12 col-md-12 form-input-group mg8">
15
+ <input type="text" class="form-control" v-model="model.f_address" placeholder='地址'>
16
+ </div>
17
+ </div>
18
+ <div class="row">
19
+ <button type="button" name="button" class="btn btn-primary pull-right" @click="search()">查询</button>
20
+ <!-- <button type="button" name="button" class="btn btn-primary pull-right" @click="read()">读卡</button>-->
21
+ </div>
22
+ </div>
23
+ <div partial class="panel panel-default well" style="padding: 0px;background-color:#ffffff;" v-for="row in users">
24
+ <div class="panel-body inbg" @click="selectUser(row)">
25
+ <div class="row auto" >
26
+ <div class="col-sm-4">
27
+ 用户编号: {{row.f_userinfo_code}}
28
+ </div>
29
+ <div class="col-sm-4">
30
+ 用户姓名: {{row.f_user_name}}
31
+ </div>
32
+ <div class="col-sm-4">
33
+ 用户电话: {{row.f_user_phone}}
34
+ </div>
35
+ <div class="col-sm-3">
36
+ 用户类别: {{row.f_user_type}}
37
+ </div>
38
+ <div class="col-sm-9">
39
+ 地址信息: {{row.f_address}}
40
+ </div>
41
+ <div class="col-sm-6">
42
+ 表底数: {{row.f_meter_base}}
43
+ </div>
44
+ <div class="col-sm-6">
45
+ 表上余额: {{row.f_balance_amount}}
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ <phone-info-table :user="user" :is-need-condition="false" :is-group="false" v-if="show"></phone-info-table>
52
+ </template>
53
+
54
+ <script>
55
+ import Vue from 'vue'
56
+ import { HttpResetClass } from 'vue-client'
57
+ export default {
58
+ title: '移动端用户信息查询',
59
+ props: {
60
+
61
+ },
62
+ data () {
63
+ return {
64
+ users:[],
65
+ model:{
66
+ f_userid:'',
67
+ f_username:'',
68
+ f_address:''
69
+ },
70
+ user:'',
71
+ show:false
72
+ }
73
+ },
74
+ methods: {
75
+ search() {
76
+ // console.log("Vue.user",Vue.user)
77
+ this.model.f_userid ? this.model.f_userid : '1=1'
78
+ let condition = `ti.f_orgid = '${Vue.user.orgid}'`
79
+ condition += this.model.f_userid ? ` and ti.f_userinfo_code = '${this.model.f_userid}'` : ' and 1=1'
80
+ condition += this.model.f_username ? ` and ti.f_user_name like '%${this.model.f_username}%'` : ' and 1=1'
81
+ condition += this.model.f_address ? ` and tua.f_address like '%${this.model.f_address}%'` : ' and 1=1'
82
+ console.log(condition)
83
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_UserInfo`, {
84
+ data: {
85
+ condition:condition
86
+ }
87
+ }).then((res) => {
88
+ console.log("查找用户返回的结果")
89
+ console.log(res.data)
90
+ this.users = res.data
91
+ })
92
+ },
93
+ selectUser(row){
94
+ this.user = row
95
+ this.show = true
96
+ },
97
+ back(){
98
+ this.show = false
99
+ },
100
+ read(){
101
+ // 读卡
102
+ let res = HostApp.read()
103
+ if(res.code == 200){
104
+ let cardid = res.msg.CardID
105
+ let condition1 = `tf.f_card_id = '${cardid}'`
106
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_UserInfo`, {
107
+ data: {
108
+ condition:condition1
109
+ }
110
+ }).then((res) => {
111
+ console.log("查找用户返回的结果")
112
+ console.log(res.data)
113
+ this.users = res.data
114
+ })
115
+ }else{
116
+ HostApp.alert('读卡异常,请检查读卡设备!')
117
+ }
118
+ }
119
+ },
120
+ ready(){
121
+ }
122
+ }
123
+ </script>
124
+ <style>
125
+ .app-botton {
126
+ position:fixed;
127
+ background: #87b2dd;
128
+ color: #FFF;
129
+ padding: 8px;
130
+ text-align: center;
131
+ font-size: 1.2em;
132
+ z-index: 10;
133
+ opacity:0.5;
134
+ bottom: 50px;
135
+ margin-top: -10px;
136
+ height: 40px;
137
+ }
138
+ </style>
@@ -41,6 +41,7 @@ export default {
41
41
  title: '系统设置',
42
42
  data() {
43
43
  return {
44
+ version:'1.0',
44
45
  titleName:'系统设置',
45
46
  all: false,
46
47
  flag:true,
@@ -55,6 +56,7 @@ export default {
55
56
  }
56
57
  },
57
58
  ready(){
59
+ this.version = HostApp.getAppVersion().data
58
60
  // if(Vue.config.safecheck.clearPhone){
59
61
  // let cleartable=Vue.config.safecheck.clearPhone.cleardata
60
62
  // for (let i = 0; i < cleartable.length; i++) {
@@ -63,6 +65,9 @@ export default {
63
65
  // }
64
66
  },
65
67
  methods: {
68
+ versionShow(){
69
+ this.$showMessage('系统版本:'+this.version)
70
+ },
66
71
  // clear(){
67
72
  // let cleartable=Vue.config.safecheck.clearPhone.cleardata
68
73
  // console.log(this.modelval)
@@ -115,6 +120,11 @@ export default {
115
120
  gotopage(link,name) {
116
121
  if(name == '清空数据'){
117
122
  this.cleanalldata()
123
+ return
124
+ }
125
+ if(name == '系统版本'){
126
+ this.versionShow()
127
+ return
118
128
  }
119
129
  // else if (name == '清除数据'){
120
130
  // this.openclear()