telephone-clients 4.0.0-1-69 → 4.0.0-1-71

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,163 +1,163 @@
1
- <template>
2
- <div class="repair-bg" id="work-history">
3
- <div class="bq-parent" v-if="shutype == 'heng'">
4
- <blockquote class="blockquote">
5
- <p>工单基本信息</p>
6
- </blockquote>
7
- </div>
8
- <div class="panel panel-default auto repair-info-content">
9
- <div class="panel-body">
10
- <p v-if="service.f_userinfo_id" >用户编号: <span style="text-decoration:underline">{{service.f_userinfo_code}}</span>
11
- <button style="float: right" type="button" name="button" class="btn btn-primary" @click='openRecord()' :disabled="recordButtonDisable">开启录音</button></p>
12
- <p>来电电话: {{service.f_phone}}<img src="../../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(service.f_phone)' alt=""></p>
13
- <failure-show :value='service.failure'>
14
- </failure-show>
15
- <div style="clear:both;">
16
- <phone-sell-info-lite v-if="showSellInfo" :user="{}" :f_userinfo_id="service.f_userinfo_id"></phone-sell-info-lite>
17
- </div>
18
- <div class="from-group">
19
- <android-img-self style="float: left;margin: 2px" v-if="service.f_single_path" :src="imgfilename" width="200" height="200"></android-img-self>
20
- <android-img-self style="float: left;margin: 2px" v-if="service.f_singlea_path" :src="imgfilenamea" width="200" height="200"></android-img-self>
21
- <android-img-self style="float: left;margin: 2px" v-if="service.f_singleb_path" :src="imgfilenameb" width="200" height="200"></android-img-self>
22
- </div>
23
- <route name="info-route" ></route>
24
- </div>
25
- </div>
26
- </div>
27
- </template>
28
- <script>
29
- import FailureShow from '../../../components/pc/FailureShow'
30
- import {HttpResetClass} from "vue-client";
31
- import Vue from "vue";
32
-
33
- export default {
34
- title: '工单历史记录',
35
- data () {
36
- return {
37
- // service: null
38
- imgfilename:'',
39
- recordButtonDisable:false,
40
- imgfilenamea:'',
41
- imgfilenameb:'',
42
- f_recording1_path:'',
43
- f_userinfo_code : '测试文本',
44
- showSellInfo: false
45
- }
46
- },
47
- props: {
48
-
49
- service: { // 传入一条报修单信息
50
- type: Object
51
- },
52
- issee:'',
53
- worktype:{
54
- type: String,
55
- default: '报修单'
56
- },
57
- // userinfo: {
58
- // type: Object
59
- // },
60
- // 维修对应的用户数据收集
61
- model: {
62
- type: Object
63
- },
64
- // 工单信息
65
- repair:{
66
- type: Object
67
- },
68
- savevalid:{
69
-
70
- },
71
- sum:{
72
-
73
- },
74
- user:{
75
- type: Object
76
- },
77
- show: {
78
- type: Boolean,
79
- default: false
80
- },
81
- // 本次维修, 用于编辑
82
- data: {
83
- type: Object
84
- },
85
- shutype:'heng'
86
- },
87
- ready () {
88
- this.imgfilename=`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+this.service.f_single_path
89
- this.imgfilenamea=`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+this.service.f_singlea_path
90
- this.imgfilenameb=`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+this.service.f_singleb_path
91
- if (this.$parent.$parent.model.f_recording1_path){
92
- this.recordButtonDisable = true
93
- }
94
- this.$goto('repair-user-info',{
95
- model: this.model,
96
- data: this.data,
97
- savevalid: this.savevalid,
98
- repair: this.repair,
99
- show: this.show,
100
- shutype:this.shutype,
101
- worktype:this.worktype,
102
- issee:this.issee},'info-route')
103
- },
104
- methods: {
105
- openRecord(){
106
- this.recordButtonDisable = true
107
- if (this.$parent.$parent.model.f_recording1_path){
108
- return
109
- }
110
- if (this.$parent.$parent.record()) {
111
- this.$showMessage("已开启录音!")
112
- } else {
113
- this.recordButtonDisable = false
114
- }
115
- },
116
- makeAPhoneCall(phoneNumber) {
117
- this.$androidUtil.makeAPhoneCall(phoneNumber)
118
- },
119
- goOtherCharge(userinfoid){
120
- //tag
121
- new HttpResetClass().load("POST",`${this.$androidUtil.getProxyUrl()}/af-telephone/rs/sql/onlinequeryuser`,{data:{condition : ` uf.f_orgid = '${Vue.user.orgid}' and (ui.f_user_state = '正常' or ui.f_user_state = '预备') and ui.f_userinfo_id = '${userinfoid}'`}}).then((res)=>{
122
- //tag)
123
- if(res.data.length==1){
124
- let _this = this
125
- var pardate = {
126
- _this:_this,
127
- title:'其他收费',
128
- safe:false
129
- }
130
- _this.$dispatch('gotoson',pardate)
131
- //tag
132
- _this.$parent.$goto('other_charge', {row: res.data[0]}, 'self')
133
- }else if(res.data.length>1){
134
- this.$showMessage('查询到了多条用户表信息,请让管理员核实用户信息是否正常!')
135
- }else{
136
- this.$showMessage('未查询到用户有正常状态的表具信息,请让管理员核实用户表档案信息是否正常!')
137
- }
138
- }).catch((msg)=>{
139
- this.$showMessage('获取用户信息失败,请检查手机网络!')
140
- })
141
- },
142
- selfSearch () {
143
- if(!this.rowOne) {
144
- return
145
- }
146
- // let gen = getGen(this)
147
- // co(gen)
148
- },
149
- searchHistory() {
150
- this.showSellInfo = !this.showSellInfo
151
- }
152
- },
153
- watch: {
154
- 'rowOne' () {
155
- this.selfSearch()
156
- }
157
- },
158
- components: {
159
- FailureShow,
160
- 'failure-show': FailureShow
161
- }
162
- }
163
- </script>
1
+ <template>
2
+ <div class="repair-bg" id="work-history">
3
+ <div class="bq-parent" v-if="shutype == 'heng'">
4
+ <blockquote class="blockquote">
5
+ <p>工单基本信息</p>
6
+ </blockquote>
7
+ </div>
8
+ <div class="panel panel-default auto repair-info-content">
9
+ <div class="panel-body">
10
+ <p v-if="service.f_userinfo_id" >用户编号: <span style="text-decoration:underline">{{service.f_userinfo_code}}</span>
11
+ <button style="float: right" type="button" name="button" class="btn btn-primary" @click='openRecord()' :disabled="recordButtonDisable">开启录音</button></p>
12
+ <p>来电电话: {{service.f_phone}}<img src="../../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(service.f_phone)' alt=""></p>
13
+ <failure-show :value='service.failure'>
14
+ </failure-show>
15
+ <div style="clear:both;">
16
+ <phone-sell-info-lite v-if="showSellInfo" :user="{}" :f_userinfo_id="service.f_userinfo_id"></phone-sell-info-lite>
17
+ </div>
18
+ <div class="from-group">
19
+ <android-img-self style="float: left;margin: 2px" v-if="service.f_single_path" :src="imgfilename" width="200" height="200"></android-img-self>
20
+ <android-img-self style="float: left;margin: 2px" v-if="service.f_singlea_path" :src="imgfilenamea" width="200" height="200"></android-img-self>
21
+ <android-img-self style="float: left;margin: 2px" v-if="service.f_singleb_path" :src="imgfilenameb" width="200" height="200"></android-img-self>
22
+ </div>
23
+ <route name="info-route" ></route>
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </template>
28
+ <script>
29
+ import FailureShow from '../../../components/pc/FailureShow'
30
+ import {HttpResetClass} from "vue-client";
31
+ import Vue from "vue";
32
+
33
+ export default {
34
+ title: '工单历史记录',
35
+ data () {
36
+ return {
37
+ // service: null
38
+ imgfilename:'',
39
+ recordButtonDisable:false,
40
+ imgfilenamea:'',
41
+ imgfilenameb:'',
42
+ f_recording1_path:'',
43
+ f_userinfo_code : '测试文本',
44
+ showSellInfo: false
45
+ }
46
+ },
47
+ props: {
48
+
49
+ service: { // 传入一条报修单信息
50
+ type: Object
51
+ },
52
+ issee:'',
53
+ worktype:{
54
+ type: String,
55
+ default: '报修单'
56
+ },
57
+ // userinfo: {
58
+ // type: Object
59
+ // },
60
+ // 维修对应的用户数据收集
61
+ model: {
62
+ type: Object
63
+ },
64
+ // 工单信息
65
+ repair:{
66
+ type: Object
67
+ },
68
+ savevalid:{
69
+
70
+ },
71
+ sum:{
72
+
73
+ },
74
+ user:{
75
+ type: Object
76
+ },
77
+ show: {
78
+ type: Boolean,
79
+ default: false
80
+ },
81
+ // 本次维修, 用于编辑
82
+ data: {
83
+ type: Object
84
+ },
85
+ shutype:'heng'
86
+ },
87
+ ready () {
88
+ this.imgfilename=`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+this.service.f_single_path
89
+ this.imgfilenamea=`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+this.service.f_singlea_path
90
+ this.imgfilenameb=`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+this.service.f_singleb_path
91
+ if (this.$parent.$parent.model.f_recording1_path){
92
+ this.recordButtonDisable = true
93
+ }
94
+ this.$goto('repair-user-info',{
95
+ model: this.model,
96
+ data: this.data,
97
+ savevalid: this.savevalid,
98
+ repair: this.repair,
99
+ show: this.show,
100
+ shutype:this.shutype,
101
+ worktype:this.worktype,
102
+ issee:this.issee},'info-route')
103
+ },
104
+ methods: {
105
+ openRecord(){
106
+ this.recordButtonDisable = true
107
+ if (this.$parent.$parent.model.f_recording1_path){
108
+ return
109
+ }
110
+ if (this.$parent.$parent.record()) {
111
+ this.$showMessage("已开启录音!")
112
+ } else {
113
+ this.recordButtonDisable = false
114
+ }
115
+ },
116
+ makeAPhoneCall(phoneNumber) {
117
+ this.$androidUtil.makeAPhoneCall(phoneNumber)
118
+ },
119
+ goOtherCharge(userinfoid){
120
+ //tag
121
+ new HttpResetClass().load("POST",`${this.$androidUtil.getProxyUrl()}/af-telephone/rs/sql/onlinequeryuser`,{data:{condition : ` uf.f_orgid = '${Vue.user.orgid}' and (ui.f_user_state = '正常' or ui.f_user_state = '预备') and ui.f_userinfo_id = '${userinfoid}'`}}).then((res)=>{
122
+ //tag)
123
+ if(res.data.length==1){
124
+ let _this = this
125
+ var pardate = {
126
+ _this:_this,
127
+ title:'其他收费',
128
+ safe:false
129
+ }
130
+ _this.$dispatch('gotoson',pardate)
131
+ //tag
132
+ _this.$parent.$goto('other_charge', {row: res.data[0]}, 'self')
133
+ }else if(res.data.length>1){
134
+ this.$showMessage('查询到了多条用户表信息,请让管理员核实用户信息是否正常!')
135
+ }else{
136
+ this.$showMessage('未查询到用户有正常状态的表具信息,请让管理员核实用户表档案信息是否正常!')
137
+ }
138
+ }).catch((msg)=>{
139
+ this.$showMessage('获取用户信息失败,请检查手机网络!')
140
+ })
141
+ },
142
+ selfSearch () {
143
+ if(!this.rowOne) {
144
+ return
145
+ }
146
+ // let gen = getGen(this)
147
+ // co(gen)
148
+ },
149
+ searchHistory() {
150
+ this.showSellInfo = !this.showSellInfo
151
+ }
152
+ },
153
+ watch: {
154
+ 'rowOne' () {
155
+ this.selfSearch()
156
+ }
157
+ },
158
+ components: {
159
+ FailureShow,
160
+ 'failure-show': FailureShow
161
+ }
162
+ }
163
+ </script>
package/src/main.js CHANGED
@@ -1,24 +1,24 @@
1
- import Vue from 'vue'
2
- import App from './App'
3
- import all from 'vue-client/src/all'
4
- import system from 'system-clients/src/system'
5
- import telephone from './telephone'
6
- // import safecheck from 'safecheck-client/src/safecheck'
7
- import echarts from 'echarts'
8
- Vue.prototype.$echarts = echarts
9
-
10
- /** **************************通用组件******************************/
11
- all()
12
- system(false)
13
- telephone('xinkang')
14
- // safecheck('bayan')
15
- require('./expandcss.less')
16
- require('system-clients/src/styles/less/bootstrap.less')
17
- require('./telephoneanaly.less')
18
- // 测试
19
-
20
- Vue.component('test', (resolve) => { require(['./components/Test'], resolve) })
21
- new Vue({
22
- el: 'body',
23
- components: { App }
24
- })
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import all from 'vue-client/src/all'
4
+ import system from 'system-clients/src/system'
5
+ import telephone from './telephone'
6
+ // import safecheck from 'safecheck-client/src/safecheck'
7
+ import echarts from 'echarts'
8
+ Vue.prototype.$echarts = echarts
9
+
10
+ /** **************************通用组件******************************/
11
+ all()
12
+ system(false)
13
+ telephone('gongyi')
14
+ // safecheck('bayan')
15
+ require('./expandcss.less')
16
+ require('system-clients/src/styles/less/bootstrap.less')
17
+ require('./telephoneanaly.less')
18
+ // 测试
19
+
20
+ Vue.component('test', (resolve) => { require(['./components/Test'], resolve) })
21
+ new Vue({
22
+ el: 'body',
23
+ components: { App }
24
+ })