telephone-clients 3.0.104-74 → 3.0.104-76

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 (26) hide show
  1. package/package.json +1 -1
  2. package/src/components/android/ImgArea.vue +80 -80
  3. package/src/components/pc/RoleSelector.vue +145 -145
  4. package/src/components/pc/TelLossList.vue +264 -264
  5. package/src/components/telcount/TelByOrderMan.vue +123 -123
  6. package/src/components/telreport/RepairsDetailsReport.vue +98 -98
  7. package/src/components/telreport/TrafficClassificationReport.vue +134 -134
  8. package/src/components/telreport/Trafficassess.vue +121 -121
  9. package/src/components/workorder/RepairDetails.vue +619 -619
  10. package/src/components/workorder/RepairInfo.vue +166 -166
  11. package/src/components/workorder/TemporarySingle.vue +524 -524
  12. package/src/filiale/rizhao/pc/IgnitionVentilation.vue +889 -889
  13. package/src/filiale/rizhao/pc/RepairsWork.vue +935 -935
  14. package/src/filiale/rizhao/pc/WorkListAllNew.vue +679 -677
  15. package/src/filiale/shanxian/android/RepairFirstV.vue +642 -642
  16. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +981 -981
  17. package/src/filiale/wenxi/android/ZHihuanFirst.vue +522 -522
  18. package/src/filiale/wenxi/pc/RecordListLeft.vue +272 -272
  19. package/src/filiale/wenxi/pc/TelLossList.vue +272 -272
  20. package/src/filiale/wenxi/telephone.js +21 -21
  21. package/src/filiale/yuncheng/android/RightTree.vue +218 -217
  22. package/src/filiale/yuncheng/android/TemporarySingle.vue +522 -522
  23. package/src/filiale/yuncheng/pc/TelFindUser.vue +318 -318
  24. package/src/filiale/yuncheng/pc/WorkListAllNew.vue +734 -734
  25. package/src/filiale/yuncheng/telephoneAndroid.js +14 -14
  26. package/src/filiale/zhongyi/pc/WorkListAllNew.vue +673 -673
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telephone-clients",
3
- "version": "3.0.104-74",
3
+ "version": "3.0.104-76",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,80 +1,80 @@
1
- <template>
2
- <div>
3
- <div class="row">
4
- <button type="button" name="button" class="btn btn-primary" @click="takePic()">拍照</button>
5
- </div>
6
- <div class="row">
7
- <div class="col-xs-4 col-sm-3 col-md-2" v-for="img in model" v-if="img.imgpath == sutitle ">
8
- <img-self :src="getimgstr(img)" alt="维修照片" :width="150" :height="200"></img-self>
9
- <button type="button" name="button" class="btn btn-default" @click="remove(img)">-</button>
10
- </div>
11
- </div>
12
- </div>
13
- </template>
14
-
15
- <script>
16
- import Vue from 'vue'
17
- import * as Util from '../../components/Util'
18
-
19
- export default {
20
- props: {
21
- // 存放照片的数组
22
- model: {
23
- type: Array
24
- },
25
- sutitle:'维修照片'
26
- },
27
- data () {
28
- return {
29
- // 拍照时的文件名
30
- fileName: '',
31
- is_has_jingweidu: this.$appdata.getSingleValue('照片水印加经纬度') || 'false',
32
-
33
- }
34
- },
35
- methods: {
36
- // 从图片中删除
37
- remove (row) {
38
- this.$androidUtil.delfile(row.android_file)
39
- let pos = this.model.findIndex((value) => {
40
- return value === row
41
- });
42
- this.model.splice(pos, 1)
43
- },
44
- // fileName: 回传文件名,传入的带安卓路径url
45
- // prop: 传入的字段名,没做改动
46
- cameraCallBack(prop, fileName) {
47
- alert("callback!!!!!!!!!!!!!!!!!!--start")
48
- // 当前this只能通过HostApp.__tis__获取
49
- let self = this.$androidUtil.getCallBack(this)
50
- // 添加新图片
51
- self.model.push({
52
- android_file: self.fileName,
53
- path: fileName,
54
- imgpath: this.sutitle
55
- })
56
- alert("callback!!!!!!!!!!!!!!!!!!--end")
57
- },
58
- takePic() {
59
- const obj = HostApp.getGpsDetailAddress()
60
- let jingweidu = ''
61
- if (this.is_has_jingweidu == 'true'){
62
- jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
63
- }
64
- let prop = 'repair'
65
- let idx = 'aofeng'
66
- this.fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
67
- this.$androidUtil.takePic(this, this.cameraCallBack, this.fileName,this.sutitle+jingweidu)
68
- },
69
- getimgstr(val){
70
- if(!val){
71
- return ''
72
- }
73
- if(Vue.android){
74
- return val.path + '?' + Math.random()
75
- }
76
- return 'rs/file/getfile/' + val.imgid
77
- }
78
- },
79
- }
80
- </script>
1
+ <template>
2
+ <div>
3
+ <div class="row">
4
+ <button type="button" name="button" class="btn btn-primary" @click="takePic()">拍照</button>
5
+ </div>
6
+ <div class="row">
7
+ <div class="col-xs-4 col-sm-3 col-md-2" v-for="img in model" v-if="img.imgpath == sutitle ">
8
+ <img-self :src="getimgstr(img)" alt="维修照片" :width="150" :height="200"></img-self>
9
+ <button type="button" name="button" class="btn btn-default" @click="remove(img)">-</button>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ import Vue from 'vue'
17
+ import * as Util from '../../components/Util'
18
+
19
+ export default {
20
+ props: {
21
+ // 存放照片的数组
22
+ model: {
23
+ type: Array
24
+ },
25
+ sutitle:'维修照片'
26
+ },
27
+ data () {
28
+ return {
29
+ // 拍照时的文件名
30
+ fileName: '',
31
+ is_has_jingweidu: this.$appdata.getSingleValue('照片水印加经纬度') || 'false',
32
+
33
+ }
34
+ },
35
+ methods: {
36
+ // 从图片中删除
37
+ remove (row) {
38
+ this.$androidUtil.delfile(row.android_file)
39
+ let pos = this.model.findIndex((value) => {
40
+ return value === row
41
+ });
42
+ this.model.splice(pos, 1)
43
+ },
44
+ // fileName: 回传文件名,传入的带安卓路径url
45
+ // prop: 传入的字段名,没做改动
46
+ cameraCallBack(prop, fileName) {
47
+ alert("callback!!!!!!!!!!!!!!!!!!--start")
48
+ // 当前this只能通过HostApp.__tis__获取
49
+ let self = this.$androidUtil.getCallBack(this)
50
+ // 添加新图片
51
+ self.model.push({
52
+ android_file: self.fileName,
53
+ path: fileName,
54
+ imgpath: this.sutitle
55
+ })
56
+ alert("callback!!!!!!!!!!!!!!!!!!--end")
57
+ },
58
+ takePic() {
59
+ const obj = HostApp.getGpsDetailAddress()
60
+ let jingweidu = ''
61
+ if (this.is_has_jingweidu == 'true'){
62
+ jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
63
+ }
64
+ let prop = 'repair'
65
+ let idx = 'aofeng'
66
+ this.fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
67
+ this.$androidUtil.takePic(this, this.cameraCallBack, this.fileName,this.sutitle+jingweidu)
68
+ },
69
+ getimgstr(val){
70
+ if(!val){
71
+ return ''
72
+ }
73
+ if(Vue.android){
74
+ return val.path + '?' + Math.random()
75
+ }
76
+ return 'rs/file/getfile/' + val.imgid
77
+ }
78
+ },
79
+ }
80
+ </script>
@@ -1,145 +1,145 @@
1
- <template>
2
- <div style="width: 100%;height: 100%">
3
- <div class="col-sm-6 form-group" style="margin-bottom: 0px">
4
- <label class="font_normal_body">公&emsp;&emsp;司</label>
5
- <right-tree-safe :width="leftWidth" @re-res="getRes"></right-tree-safe>
6
- </div>
7
- <div class="col-sm-6 form-group" style="margin-bottom: 0px">
8
- <label class="font_normal_body">{{roleLable}}</label>
9
- <v-select :value="changeval" v-model='changeval'
10
- :value-single="!valueMultiple"
11
- class="select_list select"
12
- :options='users' :placeholder='roleName'
13
- close-on-select
14
- :multiple="valueMultiple"
15
- :width="rightWidth"
16
- @change="valuechange">
17
- </v-select>
18
- </div>
19
- </div>
20
- </template>
21
-
22
- <script>
23
- import {HttpResetClass} from 'vue-client'
24
- export default {
25
- name: "RoleSelector",
26
- props: {
27
- valueMultiple: {
28
- type: Boolean,
29
- default: false
30
- },
31
- roleName: {
32
- type: String,
33
- default: '安检员'
34
- },
35
- roleLable: {
36
- type: String,
37
- default: '安检员'
38
- },
39
- leftWidth: {
40
- type: String,
41
- default: '60%'
42
- },
43
- rightWidth: {
44
- type: String,
45
- default: '60%'
46
- },
47
- value: {
48
- default: ''
49
- }
50
- },
51
- data() {
52
- return {
53
- //source: `tool.getChildrenOfResName($${this.roleName}$)`,
54
- source: `tool.getFullTree(this.getRights().where(row.getType() == $user$).where(row.getAttributes().get($rolestr$)!=null).where(row.getAttributes().get($rolestr$).indexOf($${this.roleName}$)!=-1))`,
55
- allUsers: [],
56
- users: [],
57
- resids: [],
58
- changeval: ''
59
- }
60
- },
61
- // watch: {
62
- // 'value' (val) {
63
- // if (val) {
64
- // this.changeval = val
65
- // }
66
- // }
67
- // },
68
- ready () {
69
- let http = new HttpResetClass()
70
- http.load('POST', '/rs/search', {data: {source: this.source, userid: this.$login.f.id}}, {resolveMsg: null, rejectMsg: null})
71
- .then(res => {
72
- //tag)
73
- this.allUsers = res.data
74
- //this.filterUser(this.resids)
75
- this.getUser(this.allUsers,this.resids)
76
- })
77
- },
78
- methods: {
79
- valuechange(val){
80
-
81
- if (val instanceof Event){
82
- return
83
- }
84
- if(this.valueMultiple && Array.isArray(val)){
85
- if(val&&val.length > 0){
86
- var valuesele = `(`
87
- for (var i= 0;i<val.length;i++) {
88
- valuesele += `'${val[i]}',`
89
- }
90
- this.value = valuesele.substring(0,valuesele.length -1 ) + ')'
91
- }else{
92
- this.value = ''
93
- }
94
- }else{
95
- this.value = val
96
- }
97
- if (!this.value instanceof Event) {
98
- this.changeval = val
99
- this.value = val
100
- }
101
- },
102
- getRes(obj) {
103
- this.resids = obj.resids
104
- //tag
105
- this.users = [{label: '全部', value: ''}]
106
- //this.filterUser(this.resids)
107
- this.getUser(this.allUsers,this.resids)
108
- this.$dispatch('re-res',obj)
109
- },
110
- filterUser(resids) {
111
- // 处理第一次进入页面值异常问题
112
- if(resids.length > 0 && typeof resids[0] == "object"){
113
- resids = resids[0]
114
- }
115
- this.users = []
116
- this.allUsers.forEach(user => {
117
- if (resids.indexOf(user.orgid) != -1) {
118
- this.users.push({label: user.name, value: user.name})
119
- }
120
- })
121
- if(this.users.length > 0){
122
- this.users = [{label: '全部', value: ''},...this.users]
123
- }
124
- //tag
125
- },
126
- getUser(node,resids){
127
- if(resids.length==0){return}
128
- for(let x in node){
129
- //tag
130
- if(node[x].resourcetype=='organization' || node[x].resourcetype=='root'){
131
- this.getUser(node[x].children,resids)
132
- }else if(node[x].resourcetype=='department' && resids.indexOf(node[x].parentid) != -1 ){
133
- for(let dep in node[x].children){
134
- this.users.push({label: node[x].children[dep].name, value: node[x].children[dep].name})
135
- }
136
- }
137
- }
138
- }
139
- }
140
- }
141
- </script>
142
-
143
- <style scoped>
144
-
145
- </style>
1
+ <template>
2
+ <div style="width: 100%;height: 100%">
3
+ <div class="col-sm-6 form-group" style="margin-bottom: 0px">
4
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
5
+ <right-tree-safe :width="leftWidth" @re-res="getRes"></right-tree-safe>
6
+ </div>
7
+ <div class="col-sm-6 form-group" style="margin-bottom: 0px">
8
+ <label class="font_normal_body">{{roleLable}}</label>
9
+ <v-select :value="changeval" v-model='changeval'
10
+ :value-single="!valueMultiple"
11
+ class="select_list select"
12
+ :options='users' :placeholder='roleName'
13
+ close-on-select
14
+ :multiple="valueMultiple"
15
+ :width="rightWidth"
16
+ @change="valuechange">
17
+ </v-select>
18
+ </div>
19
+ </div>
20
+ </template>
21
+
22
+ <script>
23
+ import {HttpResetClass} from 'vue-client'
24
+ export default {
25
+ name: "RoleSelector",
26
+ props: {
27
+ valueMultiple: {
28
+ type: Boolean,
29
+ default: false
30
+ },
31
+ roleName: {
32
+ type: String,
33
+ default: '安检员'
34
+ },
35
+ roleLable: {
36
+ type: String,
37
+ default: '安检员'
38
+ },
39
+ leftWidth: {
40
+ type: String,
41
+ default: '60%'
42
+ },
43
+ rightWidth: {
44
+ type: String,
45
+ default: '60%'
46
+ },
47
+ value: {
48
+ default: ''
49
+ }
50
+ },
51
+ data() {
52
+ return {
53
+ //source: `tool.getChildrenOfResName($${this.roleName}$)`,
54
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $user$).where(row.getAttributes().get($rolestr$)!=null).where(row.getAttributes().get($rolestr$).indexOf($${this.roleName}$)!=-1))`,
55
+ allUsers: [],
56
+ users: [],
57
+ resids: [],
58
+ changeval: ''
59
+ }
60
+ },
61
+ // watch: {
62
+ // 'value' (val) {
63
+ // if (val) {
64
+ // this.changeval = val
65
+ // }
66
+ // }
67
+ // },
68
+ ready () {
69
+ let http = new HttpResetClass()
70
+ http.load('POST', '/rs/search', {data: {source: this.source, userid: this.$login.f.id}}, {resolveMsg: null, rejectMsg: null})
71
+ .then(res => {
72
+ //tag)
73
+ this.allUsers = res.data
74
+ //this.filterUser(this.resids)
75
+ this.getUser(this.allUsers,this.resids)
76
+ })
77
+ },
78
+ methods: {
79
+ valuechange(val){
80
+
81
+ if (val instanceof Event){
82
+ return
83
+ }
84
+ if(this.valueMultiple && Array.isArray(val)){
85
+ if(val&&val.length > 0){
86
+ var valuesele = `(`
87
+ for (var i= 0;i<val.length;i++) {
88
+ valuesele += `'${val[i]}',`
89
+ }
90
+ this.value = valuesele.substring(0,valuesele.length -1 ) + ')'
91
+ }else{
92
+ this.value = ''
93
+ }
94
+ }else{
95
+ this.value = val
96
+ }
97
+ if (!this.value instanceof Event) {
98
+ this.changeval = val
99
+ this.value = val
100
+ }
101
+ },
102
+ getRes(obj) {
103
+ this.resids = obj.resids
104
+ //tag
105
+ this.users = [{label: '全部', value: ''}]
106
+ //this.filterUser(this.resids)
107
+ this.getUser(this.allUsers,this.resids)
108
+ this.$dispatch('re-res',obj)
109
+ },
110
+ filterUser(resids) {
111
+ // 处理第一次进入页面值异常问题
112
+ if(resids.length > 0 && typeof resids[0] == "object"){
113
+ resids = resids[0]
114
+ }
115
+ this.users = []
116
+ this.allUsers.forEach(user => {
117
+ if (resids.indexOf(user.orgid) != -1) {
118
+ this.users.push({label: user.name, value: user.name})
119
+ }
120
+ })
121
+ if(this.users.length > 0){
122
+ this.users = [{label: '全部', value: ''},...this.users]
123
+ }
124
+ //tag
125
+ },
126
+ getUser(node,resids){
127
+ if(resids.length==0){return}
128
+ for(let x in node){
129
+ //tag
130
+ if(node[x].resourcetype=='organization' || node[x].resourcetype=='root'){
131
+ this.getUser(node[x].children,resids)
132
+ }else if(node[x].resourcetype=='department' && resids.indexOf(node[x].parentid) != -1 ){
133
+ for(let dep in node[x].children){
134
+ this.users.push({label: node[x].children[dep].name, value: node[x].children[dep].name})
135
+ }
136
+ }
137
+ }
138
+ }
139
+ }
140
+ }
141
+ </script>
142
+
143
+ <style scoped>
144
+
145
+ </style>