system-phone 3.0.42 → 3.0.44

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,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>
@@ -1,122 +1,122 @@
1
- <template >
2
- <div class="panel panel-default auto repair-info-content">
3
- <div class="panel-body" v-show="show">
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" v-for="item in dataConfig">
9
- <div class="col-xs-4 col-sm-4 col-md-4">
10
- {{item.value}}:
11
- </div>
12
- <div class="col-xs-8 col-sm-8 col-md-8">
13
- {{row[item.name]}}
14
- </div>
15
- </div>
16
- </div>
17
- </div>
18
- </div>
19
- </div>
20
- <p v-show="model.length == 0 ">此用户暂无购气记录</p>
21
- </div>
22
- </div>
23
- </template>
24
-
25
- <script>
26
- import {HttpResetClass, PagedList} from 'vue-client'
27
- import co from 'co'
28
- export default {
29
- title: '查询用户',
30
- data () {
31
- return {
32
- model: [],
33
- show: false,
34
- row: Object,
35
- dataConfig:[]
36
- }
37
- },
38
- props: {
39
- user: {
40
- type: Object
41
- },
42
- f_userinfo_id:'',
43
- config:"",
44
- },
45
- methods: {
46
- convertArray(arr) {
47
- return arr.map(obj => {
48
- const key = Object.keys(obj)[0];
49
- return {
50
- name: key,
51
- value: obj[key]
52
- };
53
- });
54
- },
55
-
56
- getmodel () {
57
- let userinfoid
58
- if(this.f_userinfo_id){
59
- userinfoid = this.f_userinfo_id
60
- }else{
61
- userinfoid = this.user.f_userinfo_id
62
- console.log(this.user.f_userinfo_id)
63
- }
64
- console.log(userinfoid)
65
- new HttpResetClass().load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/geUserInfoIdData`, {data: {condition:`f_userinfo_id = '${userinfoid}'`,type:this.config}},{resolveMsg : null,rejectMsg :null}).then((row) => {
66
- console.log("9898988",row)
67
- if(row.data.state===200){
68
- this.model = row.data.userdata
69
- this.dataConfig = this.convertArray(row.data.filename)
70
- this.show=true
71
- }
72
- })
73
-
74
- },
75
- back(){
76
-
77
- }
78
- },
79
- watch: {
80
- 'user' (val) {
81
- // this.model.search(`card_id = ${this.user.card_id}`)
82
- if(this.user){
83
- if (!(this.user.isNuN)) {
84
- this.model= []
85
- this.getmodel()
86
- }
87
- }
88
- },
89
- 'f_userinfo_id'(){
90
- if(this.f_userinfo_id){
91
- this.model= []
92
- this.getmodel()
93
- }
94
- }
95
- },
96
- ready () {
97
- console.log("9797977",this.config)
98
- if (this.user && this.user.f_userinfo_id) {
99
- // this.model.search(`card_id = ${this.user.card_id}`)
100
- this.getmodel()
101
- }
102
- if(this.f_userinfo_id){
103
- this.getmodel()
104
- }
105
- }
106
- }
107
- </script>
108
- <style>
109
- .app-botton {
110
- position:fixed;
111
- background: #87b2dd;
112
- color: #FFF;
113
- padding: 8px;
114
- text-align: center;
115
- font-size: 1.2em;
116
- z-index: 10;
117
- opacity:0.5;
118
- bottom: 50px;
119
- margin-top: -10px;
120
- height: 40px;
121
- }
122
- </style>
1
+ <template >
2
+ <div class="panel panel-default auto repair-info-content">
3
+ <div class="panel-body" v-show="show">
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" v-for="item in dataConfig">
9
+ <div class="col-xs-4 col-sm-4 col-md-4">
10
+ {{item.value}}:
11
+ </div>
12
+ <div class="col-xs-8 col-sm-8 col-md-8">
13
+ {{row[item.name]}}
14
+ </div>
15
+ </div>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ <p v-show="model.length == 0 ">此用户暂无购气记录</p>
21
+ </div>
22
+ </div>
23
+ </template>
24
+
25
+ <script>
26
+ import {HttpResetClass, PagedList} from 'vue-client'
27
+ import co from 'co'
28
+ export default {
29
+ title: '查询用户',
30
+ data () {
31
+ return {
32
+ model: [],
33
+ show: false,
34
+ row: Object,
35
+ dataConfig:[]
36
+ }
37
+ },
38
+ props: {
39
+ user: {
40
+ type: Object
41
+ },
42
+ f_userinfo_id:'',
43
+ config:"",
44
+ },
45
+ methods: {
46
+ convertArray(arr) {
47
+ return arr.map(obj => {
48
+ const key = Object.keys(obj)[0];
49
+ return {
50
+ name: key,
51
+ value: obj[key]
52
+ };
53
+ });
54
+ },
55
+
56
+ getmodel () {
57
+ let userinfoid
58
+ if(this.f_userinfo_id){
59
+ userinfoid = this.f_userinfo_id
60
+ }else{
61
+ userinfoid = this.user.f_userinfo_id
62
+ console.log(this.user.f_userinfo_id)
63
+ }
64
+ console.log(userinfoid)
65
+ new HttpResetClass().load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/geUserInfoIdData`, {data: {condition:`f_userinfo_id = '${userinfoid}'`,type:this.config}},{resolveMsg : null,rejectMsg :null}).then((row) => {
66
+ console.log("9898988",row)
67
+ if(row.data.state===200){
68
+ this.model = row.data.userdata
69
+ this.dataConfig = this.convertArray(row.data.filename)
70
+ this.show=true
71
+ }
72
+ })
73
+
74
+ },
75
+ back(){
76
+
77
+ }
78
+ },
79
+ watch: {
80
+ 'user' (val) {
81
+ // this.model.search(`card_id = ${this.user.card_id}`)
82
+ if(this.user){
83
+ if (!(this.user.isNuN)) {
84
+ this.model= []
85
+ this.getmodel()
86
+ }
87
+ }
88
+ },
89
+ 'f_userinfo_id'(){
90
+ if(this.f_userinfo_id){
91
+ this.model= []
92
+ this.getmodel()
93
+ }
94
+ }
95
+ },
96
+ ready () {
97
+ console.log("9797977",this.config)
98
+ if (this.user && this.user.f_userinfo_id) {
99
+ // this.model.search(`card_id = ${this.user.card_id}`)
100
+ this.getmodel()
101
+ }
102
+ if(this.f_userinfo_id){
103
+ this.getmodel()
104
+ }
105
+ }
106
+ }
107
+ </script>
108
+ <style>
109
+ .app-botton {
110
+ position:fixed;
111
+ background: #87b2dd;
112
+ color: #FFF;
113
+ padding: 8px;
114
+ text-align: center;
115
+ font-size: 1.2em;
116
+ z-index: 10;
117
+ opacity:0.5;
118
+ bottom: 50px;
119
+ margin-top: -10px;
120
+ height: 40px;
121
+ }
122
+ </style>