telephone-clients 4.0.0-1-70 → 4.0.0-1-72

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": "telephone-clients",
3
- "version": "4.0.0-1-70",
3
+ "version": "4.0.0-1-72",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -24,9 +24,9 @@
24
24
  "author": "申志明",
25
25
  "license": "ISC",
26
26
  "dependencies": {
27
- "html2canvas": "^1.1.4",
28
- "html2pdf.js": "^0.10.1",
29
- "jspdf": "^2.3.1",
27
+ "html2canvas": "1.1.4",
28
+ "html2pdf.js": "0.10.1",
29
+ "jspdf": "2.3.1",
30
30
  "@keeex/qrcodejs-kx": "^1.0.2",
31
31
  "date-fns": "^2.29.3",
32
32
  "dayjs": "^1.11.6",
@@ -1,175 +1,178 @@
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
- <!-- 工单的基本信息 -->
9
- <div class="panel panel-default auto repair-info-content">
10
- <div class="panel-body">
11
- <p v-if="service.f_userinfo_id" >用户编号: <span style="text-decoration:underline">{{service.f_userinfo_code}}</span><!--&ensp;&ensp;<span style="color: blue" @click="goOtherCharge(service.f_userinfo_id)">其他收费</span>-->
12
- &ensp;&ensp;<span style="color: blue" @click="gotocheckpaper(service)" v-if="ischeck">维修信息</span></p>
13
- <!--<p v-if="service.f_userinfo_id" >用户编号: <span style="color: blue;text-decoration:underline" @click="searchHistory()">{{service.f_userinfo_code}}</span></p>-->
14
- <!--<p>工单编号: {{service.f_service_id}}</p>-->
15
- <!--<p>生成时间: {{service.f_created_date}}</p>-->
16
- <!--<p>预约时间: {{service.f_repair_date}}</p>-->
17
- <p>来电电话: {{service.f_phone}}<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(service.f_phone)'></p>
18
- <!--<p>用户姓名: {{service.f_user_name}}</p>-->
19
- <!--<p>用户地址: {{service.f_address}}</p>-->
20
- <!--<p>备注信息: {{service.f_remarks}}</p>-->
21
- <!--<p>指导建议: {{service.f_advice}}</p>-->
22
- <failure-show :value='service.failure'>
23
- </failure-show>
24
- <p v-if="service.f_error_msg" >异常明细: <span style="text-decoration:underline">{{service.f_error_msg}}</span></p>
25
- <div style="clear:both;">
26
- <phone-sell-info-lite v-if="showSellInfo" :user="{}" :f_userinfo_id="service.f_userinfo_id"></phone-sell-info-lite>
27
- </div>
28
- <div class="from-group">
29
- <img-self style="float: left;margin: 2px" v-if="service.f_single_path" :src="imgfilename" width="200" height="200"></img-self>
30
- <img-self style="float: left;margin: 2px" v-if="service.f_singlea_path" :src="imgfilenamea" width="200" height="200"></img-self>
31
- <img-self style="float: left;margin: 2px" v-if="service.f_singleb_path" :src="imgfilenameb" width="200" height="200"></img-self>
32
- </div>
33
- <route name="info-route" ></route>
34
- </div>
35
- </div>
36
- </div>
37
- </template>
38
- <script>
39
- import FailureShow from '../pc/FailureShow'
40
- import {HttpResetClass} from "vue-client";
41
- import Vue from "vue";
42
-
43
- export default {
44
- title: '工单历史记录',
45
- data () {
46
- return {
47
- // service: null
48
- imgfilename:'',
49
- imgfilenamea:'',
50
- imgfilenameb:'',
51
- f_userinfo_code : '测试文本',
52
- showSellInfo: false
53
- }
54
- },
55
- props: {
56
-
57
- service: { // 传入一条报修单信息
58
- type: Object
59
- },
60
- issee:'',
61
- worktype:{
62
- type: String,
63
- default: '报修单'
64
- },
65
- // userinfo: {
66
- // type: Object
67
- // },
68
- // 维修对应的用户数据收集
69
- model: {
70
- type: Object
71
- },
72
- // 工单信息
73
- repair:{
74
- type: Object
75
- },
76
- savevalid:{
77
-
78
- },
79
- sum:{
80
-
81
- },
82
- user:{
83
- type: Object
84
- },
85
- show: {
86
- type: Boolean,
87
- default: false
88
- },
89
- // 本次维修, 用于编辑
90
- data: {
91
- type: Object
92
- },
93
- shutype:'heng',
94
- ischeck: {
95
- type: Boolean,
96
- default: false
97
- }
98
- },
99
- ready () {
100
- //tag)
101
- //tag)
102
- //tag)
103
- //tag
104
- this.imgfilename=`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+this.service.f_single_path
105
- this.imgfilenamea=`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+this.service.f_singlea_path
106
- this.imgfilenameb=`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+this.service.f_singleb_path
107
- //tag
108
- //tag
109
- //tag
110
- for (let i in this.service) {
111
- //tag + ':' + JSON.stringify(this.service[i]))
112
- }
113
- this.$goto('repair-user-info',{
114
- model: this.model,
115
- data: this.data,
116
- savevalid: this.savevalid,
117
- repair: this.repair,
118
- show: this.show,
119
- // userinfo: this.userinfo
120
- shutype:this.shutype,
121
- worktype:this.worktype,
122
- issee:this.issee},'info-route')
123
- },
124
- methods: {
125
- gotocheckpaper(){
126
- this.$dispatch('gotorepairinfo')
127
- },
128
- makeAPhoneCall(phoneNumber) {
129
- this.$androidUtil.makeAPhoneCall(phoneNumber)
130
- },
131
- goOtherCharge(userinfoid){
132
- //tag
133
- 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)=>{
134
- //tag)
135
- if(res.data.length==1){
136
- let _this = this
137
- var pardate = {
138
- _this:_this,
139
- title:'其他收费',
140
- safe:false
141
- }
142
- _this.$dispatch('gotoson',pardate)
143
- //tag
144
- _this.$parent.$goto('other_charge', {row: res.data[0]}, 'self')
145
- }else if(res.data.length>1){
146
- this.$showMessage('查询到了多条用户表信息,请让管理员核实用户信息是否正常!')
147
- }else{
148
- this.$showMessage('未查询到用户有正常状态的表具信息,请让管理员核实用户表档案信息是否正常!')
149
- }
150
- }).catch((msg)=>{
151
- this.$showMessage('获取用户信息失败,请检查手机网络!')
152
- })
153
- },
154
- selfSearch () {
155
- if(!this.rowOne) {
156
- return
157
- }
158
- // let gen = getGen(this)
159
- // co(gen)
160
- },
161
- searchHistory() {
162
- this.showSellInfo = !this.showSellInfo
163
- }
164
- },
165
- watch: {
166
- 'rowOne' () {
167
- this.selfSearch()
168
- }
169
- },
170
- components: {
171
- FailureShow,
172
- 'failure-show': FailureShow
173
- }
174
- }
175
- </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
+ <!-- 工单的基本信息 -->
9
+ <div class="panel panel-default auto repair-info-content">
10
+ <div class="panel-body">
11
+ <p v-if="service.f_userinfo_id" >用户编号: <span style="text-decoration:underline">{{service.f_userinfo_code}}</span><!--&ensp;&ensp;<span style="color: blue" @click="goOtherCharge(service.f_userinfo_id)">其他收费</span>-->
12
+ &ensp;&ensp;<span style="color: blue" @click="gotocheckpaper(service)" v-if="ischeck">维修信息</span></p>
13
+ <!--<p v-if="service.f_userinfo_id" >用户编号: <span style="color: blue;text-decoration:underline" @click="searchHistory()">{{service.f_userinfo_code}}</span></p>-->
14
+ <!--<p>工单编号: {{service.f_service_id}}</p>-->
15
+ <!--<p>生成时间: {{service.f_created_date}}</p>-->
16
+ <!--<p>预约时间: {{service.f_repair_date}}</p>-->
17
+ <p>来电电话: {{service.f_phone}}<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(service.f_phone)'></p>
18
+ <p v-if="service.f_contact_phone" >联系电话: {{service.f_contact_phone}}<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(service.f_contact_phone)'></p>
19
+ <p v-if="service.f_rent_phone">备用电话: {{service.f_rent_phone}}<img src="../../assets/telphonesend.png" style="width: 12px;" @click.stop.prevent='makeAPhoneCall(service.f_rent_phone)'></p>
20
+
21
+ <!--<p>用户姓名: {{service.f_user_name}}</p>-->
22
+ <!--<p>用户地址: {{service.f_address}}</p>-->
23
+ <!--<p>备注信息: {{service.f_remarks}}</p>-->
24
+ <!--<p>指导建议: {{service.f_advice}}</p>-->
25
+ <failure-show :value='service.failure'>
26
+ </failure-show>
27
+ <p v-if="service.f_error_msg" >异常明细: <span style="text-decoration:underline">{{service.f_error_msg}}</span></p>
28
+ <div style="clear:both;">
29
+ <phone-sell-info-lite v-if="showSellInfo" :user="{}" :f_userinfo_id="service.f_userinfo_id"></phone-sell-info-lite>
30
+ </div>
31
+ <div class="from-group">
32
+ <img-self style="float: left;margin: 2px" v-if="service.f_single_path" :src="imgfilename" width="200" height="200"></img-self>
33
+ <img-self style="float: left;margin: 2px" v-if="service.f_singlea_path" :src="imgfilenamea" width="200" height="200"></img-self>
34
+ <img-self style="float: left;margin: 2px" v-if="service.f_singleb_path" :src="imgfilenameb" width="200" height="200"></img-self>
35
+ </div>
36
+ <route name="info-route" ></route>
37
+ </div>
38
+ </div>
39
+ </div>
40
+ </template>
41
+ <script>
42
+ import FailureShow from '../pc/FailureShow'
43
+ import {HttpResetClass} from "vue-client";
44
+ import Vue from "vue";
45
+
46
+ export default {
47
+ title: '工单历史记录',
48
+ data () {
49
+ return {
50
+ // service: null
51
+ imgfilename:'',
52
+ imgfilenamea:'',
53
+ imgfilenameb:'',
54
+ f_userinfo_code : '测试文本',
55
+ showSellInfo: false
56
+ }
57
+ },
58
+ props: {
59
+
60
+ service: { // 传入一条报修单信息
61
+ type: Object
62
+ },
63
+ issee:'',
64
+ worktype:{
65
+ type: String,
66
+ default: '报修单'
67
+ },
68
+ // userinfo: {
69
+ // type: Object
70
+ // },
71
+ // 维修对应的用户数据收集
72
+ model: {
73
+ type: Object
74
+ },
75
+ // 工单信息
76
+ repair:{
77
+ type: Object
78
+ },
79
+ savevalid:{
80
+
81
+ },
82
+ sum:{
83
+
84
+ },
85
+ user:{
86
+ type: Object
87
+ },
88
+ show: {
89
+ type: Boolean,
90
+ default: false
91
+ },
92
+ // 本次维修, 用于编辑
93
+ data: {
94
+ type: Object
95
+ },
96
+ shutype:'heng',
97
+ ischeck: {
98
+ type: Boolean,
99
+ default: false
100
+ }
101
+ },
102
+ ready () {
103
+ //tag)
104
+ //tag)
105
+ //tag)
106
+ //tag
107
+ this.imgfilename=`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+this.service.f_single_path
108
+ this.imgfilenamea=`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+this.service.f_singlea_path
109
+ this.imgfilenameb=`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+this.service.f_singleb_path
110
+ //tag
111
+ //tag
112
+ //tag
113
+ for (let i in this.service) {
114
+ //tag + ':' + JSON.stringify(this.service[i]))
115
+ }
116
+ this.$goto('repair-user-info',{
117
+ model: this.model,
118
+ data: this.data,
119
+ savevalid: this.savevalid,
120
+ repair: this.repair,
121
+ show: this.show,
122
+ // userinfo: this.userinfo
123
+ shutype:this.shutype,
124
+ worktype:this.worktype,
125
+ issee:this.issee},'info-route')
126
+ },
127
+ methods: {
128
+ gotocheckpaper(){
129
+ this.$dispatch('gotorepairinfo')
130
+ },
131
+ makeAPhoneCall(phoneNumber) {
132
+ this.$androidUtil.makeAPhoneCall(phoneNumber)
133
+ },
134
+ goOtherCharge(userinfoid){
135
+ //tag
136
+ 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)=>{
137
+ //tag)
138
+ if(res.data.length==1){
139
+ let _this = this
140
+ var pardate = {
141
+ _this:_this,
142
+ title:'其他收费',
143
+ safe:false
144
+ }
145
+ _this.$dispatch('gotoson',pardate)
146
+ //tag
147
+ _this.$parent.$goto('other_charge', {row: res.data[0]}, 'self')
148
+ }else if(res.data.length>1){
149
+ this.$showMessage('查询到了多条用户表信息,请让管理员核实用户信息是否正常!')
150
+ }else{
151
+ this.$showMessage('未查询到用户有正常状态的表具信息,请让管理员核实用户表档案信息是否正常!')
152
+ }
153
+ }).catch((msg)=>{
154
+ this.$showMessage('获取用户信息失败,请检查手机网络!')
155
+ })
156
+ },
157
+ selfSearch () {
158
+ if(!this.rowOne) {
159
+ return
160
+ }
161
+ // let gen = getGen(this)
162
+ // co(gen)
163
+ },
164
+ searchHistory() {
165
+ this.showSellInfo = !this.showSellInfo
166
+ }
167
+ },
168
+ watch: {
169
+ 'rowOne' () {
170
+ this.selfSearch()
171
+ }
172
+ },
173
+ components: {
174
+ FailureShow,
175
+ 'failure-show': FailureShow
176
+ }
177
+ }
178
+ </script>