system-phone 3.1.26 → 3.1.28

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.26",
3
+ "version": "3.1.28",
4
4
  "description": "手机模块 前端组件",
5
5
  "author": "何宁社 <524395609@qq.com>",
6
6
  "license": "ISC",
@@ -1,146 +1,146 @@
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-12 col-sm-12 col-md-12">
10
- 工单编号: {{row.f_service_id}}
11
- </div>
12
- <div class="col-xs-6 col-sm-6 col-md-6">
13
- 电话: {{row.f_contact_phone}}
14
- </div>
15
- <div class="col-xs-6 col-sm-6 col-md-6">
16
- 维修状态: {{row.processins.activities[row.processins.activities.length-1].defname}}
17
- </div>
18
- <div class="col-xs-6 col-sm-6 col-md-6">
19
- 派单时间: {{row.f_created_date}}
20
- </div>
21
- <div class="col-xs-6 col-sm-6 col-md-6">
22
- 结束时间: {{row.serviceacitivity[row.serviceacitivity.length-1].f_date_leave}}
23
- </div>
24
- <div class="col-xs-12 col-sm-12 col-md-12">
25
- 维修员: {{row.f_order_man}}
26
- </div>
27
- <div class="col-xs-12 col-sm-12 col-md-12">
28
- 维修内容: {{getfailure(row.failure)}}
29
- </div>
30
- </div>
31
- </div>
32
- </div>
33
- </div>
34
- </div>
35
- <p v-show="model.length == 0 ">此用户暂无维修记录</p>
36
- </div>
37
- </div>
38
- </template>
39
-
40
- <script>
41
- import { PagedList } from 'vue-client'
42
- import { HttpResetClass } from 'vue-client'
43
- import co from 'co'
44
- export default {
45
- title: '查询用户',
46
- data () {
47
- return {
48
- model: [],
49
- show: false,
50
- row: Object
51
- }
52
- },
53
- props: {
54
- user: {
55
- type: Object
56
- },
57
- f_userinfo_id:''
58
- },
59
- methods: {
60
- getmodel () {
61
- let userinfoid
62
- if(this.f_userinfo_id){
63
- userinfoid = this.f_userinfo_id
64
- }else{
65
- userinfoid = this.user.f_userinfo_id
66
- console.log(this.user.f_userinfo_id)
67
- }
68
- console.log(userinfoid)
69
- let http=new HttpResetClass
70
- http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/path/serviceSummery`, {data:{condition: {condition1: `f_userinfo_id = '${userinfoid}'`, condition2: "", condition3: "1=1", condition4: "1=1"}}}, {resolveMsg: null, rejectMsg: null}).then((row) => {
71
-
72
- this.model = row.data
73
- console.log("model=========="+JSON.stringify(this.model))
74
- })
75
- },
76
- getfailure(failure){
77
- let failureJson=JSON.parse(failure)
78
- let showfailure=''
79
- for (let i = 0; i <failureJson.length ; i++) {
80
- let fault=failureJson[i]
81
- if (fault.f_failure_type){
82
- console.log(fault.f_failure_type)
83
- showfailure+=fault.f_failure_type+":"
84
- }
85
- if (fault.f_equipment){
86
- console.log(fault.f_equipment)
87
- showfailure+=fault.f_equipment+","
88
- }
89
- if (fault.failurecase){
90
- for (let j = 0; j <fault.failurecase.length ; j++) {
91
- if (i==failureJson.length-1&&j==fault.failurecase.length-1){
92
- showfailure+=fault.failurecase[j]+"."
93
- }else {
94
- showfailure+=fault.failurecase[j]+","
95
- }
96
- }
97
- }
98
- }
99
- return showfailure
100
- },
101
- back(){
102
-
103
- }
104
- },
105
- watch: {
106
- 'user' (val) {
107
- if(this.user){
108
- if (!(this.user.isNuN)) {
109
- this.model= []
110
- this.getmodel()
111
- }
112
- }
113
- },
114
- 'f_userinfo_id'(){
115
- if(this.f_userinfo_id){
116
- this.model= []
117
- this.getmodel()
118
- }
119
- }
120
- },
121
- ready () {
122
- console.log("进去维修组件的ready=====================>"+this.f_userinfo_id)
123
- if (this.user && this.user.f_userinfo_id) {
124
- this.getmodel()
125
- }
126
- if(this.f_userinfo_id){
127
- this.getmodel()
128
- }
129
- }
130
- }
131
- </script>
132
- <style>
133
- .app-botton {
134
- position:fixed;
135
- background: #87b2dd;
136
- color: #FFF;
137
- padding: 8px;
138
- text-align: center;
139
- font-size: 1.2em;
140
- z-index: 10;
141
- opacity:0.5;
142
- bottom: 50px;
143
- margin-top: -10px;
144
- height: 40px;
145
- }
146
- </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-12 col-sm-12 col-md-12">
10
+ 工单编号: {{row.f_service_id}}
11
+ </div>
12
+ <div class="col-xs-6 col-sm-6 col-md-6">
13
+ 电话: {{row.f_contact_phone}}
14
+ </div>
15
+ <div class="col-xs-6 col-sm-6 col-md-6">
16
+ 维修状态: {{row.processins.activities[row.processins.activities.length-1].defname}}
17
+ </div>
18
+ <div class="col-xs-6 col-sm-6 col-md-6">
19
+ 派单时间: {{row.f_created_date}}
20
+ </div>
21
+ <div class="col-xs-6 col-sm-6 col-md-6">
22
+ 结束时间: {{row.serviceacitivity[row.serviceacitivity.length-1].f_date_leave}}
23
+ </div>
24
+ <div class="col-xs-12 col-sm-12 col-md-12">
25
+ 维修员: {{row.f_order_man}}
26
+ </div>
27
+ <div class="col-xs-12 col-sm-12 col-md-12">
28
+ 维修内容: {{getfailure(row.failure)}}
29
+ </div>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ <p v-show="model.length == 0 ">此用户暂无维修记录</p>
36
+ </div>
37
+ </div>
38
+ </template>
39
+
40
+ <script>
41
+ import { PagedList } from 'vue-client'
42
+ import { HttpResetClass } from 'vue-client'
43
+ import co from 'co'
44
+ export default {
45
+ title: '查询用户',
46
+ data () {
47
+ return {
48
+ model: [],
49
+ show: false,
50
+ row: Object
51
+ }
52
+ },
53
+ props: {
54
+ user: {
55
+ type: Object
56
+ },
57
+ f_userinfo_id:''
58
+ },
59
+ methods: {
60
+ getmodel () {
61
+ let userinfoid
62
+ if(this.f_userinfo_id){
63
+ userinfoid = this.f_userinfo_id
64
+ }else{
65
+ userinfoid = this.user.f_userinfo_id
66
+ console.log(this.user.f_userinfo_id)
67
+ }
68
+ console.log(userinfoid)
69
+ let http=new HttpResetClass
70
+ http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/path/serviceSummery`, {data:{condition: {condition1: `f_userinfo_id = '${userinfoid}'`, condition2: "", condition3: "1=1", condition4: "1=1"}}}, {resolveMsg: null, rejectMsg: null}).then((row) => {
71
+
72
+ this.model = row.data
73
+ console.log("model=========="+JSON.stringify(this.model))
74
+ })
75
+ },
76
+ getfailure(failure){
77
+ let failureJson=JSON.parse(failure)
78
+ let showfailure=''
79
+ for (let i = 0; i <failureJson.length ; i++) {
80
+ let fault=failureJson[i]
81
+ if (fault.f_failure_type){
82
+ console.log(fault.f_failure_type)
83
+ showfailure+=fault.f_failure_type+":"
84
+ }
85
+ if (fault.f_equipment){
86
+ console.log(fault.f_equipment)
87
+ showfailure+=fault.f_equipment+","
88
+ }
89
+ if (fault.failurecase){
90
+ for (let j = 0; j <fault.failurecase.length ; j++) {
91
+ if (i==failureJson.length-1&&j==fault.failurecase.length-1){
92
+ showfailure+=fault.failurecase[j]+"."
93
+ }else {
94
+ showfailure+=fault.failurecase[j]+","
95
+ }
96
+ }
97
+ }
98
+ }
99
+ return showfailure
100
+ },
101
+ back(){
102
+
103
+ }
104
+ },
105
+ watch: {
106
+ 'user' (val) {
107
+ if(this.user){
108
+ if (!(this.user.isNuN)) {
109
+ this.model= []
110
+ this.getmodel()
111
+ }
112
+ }
113
+ },
114
+ 'f_userinfo_id'(){
115
+ if(this.f_userinfo_id){
116
+ this.model= []
117
+ this.getmodel()
118
+ }
119
+ }
120
+ },
121
+ ready () {
122
+ console.log("进去维修组件的ready=====================>"+this.f_userinfo_id)
123
+ if (this.user && this.user.f_userinfo_id) {
124
+ this.getmodel()
125
+ }
126
+ if(this.f_userinfo_id){
127
+ this.getmodel()
128
+ }
129
+ }
130
+ }
131
+ </script>
132
+ <style>
133
+ .app-botton {
134
+ position:fixed;
135
+ background: #87b2dd;
136
+ color: #FFF;
137
+ padding: 8px;
138
+ text-align: center;
139
+ font-size: 1.2em;
140
+ z-index: 10;
141
+ opacity:0.5;
142
+ bottom: 50px;
143
+ margin-top: -10px;
144
+ height: 40px;
145
+ }
146
+ </style>