telephone-clients 3.0.104-82 → 3.0.104-84

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": "3.0.104-82",
3
+ "version": "3.0.104-84",
4
4
  "description": "呼叫模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -30,7 +30,7 @@
30
30
  ></datepicker>
31
31
  <input v-show="ischecked == '有'" type="text" class="form-control" v-model="row.f_content" v-if="!show && row.type == 'string' && row.f_project.indexOf('表号') == -1" :disabled="(!(ischecked == '有')) || issee" :readonly="issee">
32
32
  <input v-show="ischecked == '有'" type="text" class="form-control" v-model="row.f_content" v-if="!show && row.type == 'string' && row.f_project.indexOf('表号') != -1 " :disabled="(!(ischecked == '有')) || issee" :readonly="issee" >
33
- <button v-show="ischecked == '有'" type="button" name="button" class="btn btn-primary" @click="scan(row.f_project)" v-if="!show && row.f_project.indexOf('表号') != -1 && row.f_project.indexOf('拍照') == -1">扫码</button>
33
+ <button v-show="ischecked == '有'" type="button" name="button" class="btn btn-primary" @click="scan(row.f_project)" v-if="!show && row.f_project.indexOf('表号') != -1 && row.type == 'string'">扫码</button>
34
34
  <v-select v-show="ischecked == '有'"
35
35
  :value.sync="row.f_content"
36
36
  :options='getOptions(row.f_project)'
@@ -355,39 +355,47 @@ export default {
355
355
  return ''
356
356
  },
357
357
  async confirm() {
358
- if(this.change){
359
- this.$showMessage('已换表成功,请勿重复提交')
360
- }
361
- const error = this.confirmCheck()
362
- if (error) {
363
- this.$showMessage(error)
364
- return
365
- }
366
- this.isBusy = true
367
- let _this = this
368
- this.model.metermessage={
369
- f_meter_type: [this.model.f_meter_type],
370
- gasbrand: [this.model.f_gasbrand_id],
371
- gasmodel: [this.model.f_gasmold_id],
372
- f_meternumber: this.model.f_meternumber,
373
- f_meter_base: this.model.f_meter_base,
374
- f_metertitles: this.model.f_metertitles,
375
- f_oldmeter_use_reference: this.remanent.f_using_base_old// 旧表使用量参考值
376
- }
377
- let data = {
378
- model: this.model,
379
- f_meter_book: null,
380
- old: this.row
381
- }
382
- let meterinfo = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/changeMeter`, data, {
383
- resolveMsg: '换表成功',
384
- rejectMsg: '换表失败!!!'
385
- })
386
- if(meterinfo.data.new_userfiles_id){
387
- this.change = true
358
+ try {
359
+ if (this.change) {
360
+ this.$showMessage('已换表成功,请勿重复提交')
361
+ }
362
+ const error = this.confirmCheck()
363
+ if (error) {
364
+ this.$showMessage(error)
365
+ return
366
+ }
367
+ this.isBusy = true
368
+ let _this = this
369
+ this.model.metermessage = {
370
+ f_meter_type: [this.model.f_meter_type],
371
+ gasbrand: [this.model.f_gasbrand_id],
372
+ gasmodel: [this.model.f_gasmold_id],
373
+ f_meternumber: this.model.f_meternumber,
374
+ f_meter_base: this.model.f_meter_base,
375
+ f_metertitles: this.model.f_metertitles,
376
+ f_oldmeter_use_reference: this.remanent.f_using_base_old// 旧表使用量参考值
377
+ }
378
+ let data = {
379
+ model: this.model,
380
+ f_meter_book: null,
381
+ old: this.row
382
+ }
383
+ let meterinfo = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/changeMeter`, data, {
384
+ resolveMsg: '换表成功',
385
+ rejectMsg: '换表失败!!!'
386
+ })
387
+ if (meterinfo.data.new_userfiles_id) {
388
+ this.change = true
389
+ this.$showMessage('换表成功')
390
+ } else {
391
+ this.$showMessage('换表失败')
392
+ }
393
+ this.isBusy = false
394
+ } catch (e) {
395
+ this.$showMessage('换表失败')
388
396
  }
389
- this.isBusy = false
390
- }
397
+ }
398
+
391
399
  },
392
400
  ready() {
393
401
 
@@ -195,6 +195,7 @@
195
195
 
196
196
  <script>
197
197
  import Vue from 'vue'
198
+ import * as Util from '../../components/Util'
198
199
  import {PagedList, HttpResetClass} from 'vue-client'
199
200
 
200
201
  export default {
@@ -236,11 +237,11 @@ export default {
236
237
  model_f: false,
237
238
  cardinfo: {},
238
239
  alldue_fee: 0,
239
- // f_operator: Vue.user.name,
240
- // f_orgid : Vue.user.orgid,
240
+ f_operator: Vue.user.name,
241
+ f_orgid : Vue.user.orgid,
241
242
  f_meter_base: null,
242
243
  f_operator: '管理员',
243
- f_orgid: '37710'
244
+ // f_orgid: '37710'
244
245
 
245
246
  }
246
247
  },
@@ -316,7 +317,7 @@ export default {
316
317
 
317
318
  },
318
319
  async pregasChange() {
319
-
320
+ let _that= this
320
321
  if (parseInt(this.f_meter_base) < parseInt(this.row.f_meter_base)) {
321
322
  await this.$showMessage(`录入旧表底数小于系统就表底数请再次核对!`, ['confirm', 'cancel']).then((res) => {
322
323
  if (res === 'confirm') {
@@ -354,12 +355,12 @@ export default {
354
355
  if (res === 'confirm') {
355
356
  let url = this.row.f_meter_type.includes('物联网表') ? 'rs/logic/changeMeterWebHand' : 'rs/logic/changeMeterHand'
356
357
  let data = {
357
- downDate: this.$login.toStandardTimeString(),
358
- startDate: this.$login.toStandardDateString(),
359
- endDate: this.$login.toStandardDateString(),
358
+ downDate: Util.toStandardTimeString(),
359
+ startDate: Util.toStandardDateString(),
360
+ endDate: Util.toStandardDateString(),
360
361
  condition: `f_userfiles_id = '${this.row.f_userfiles_id}'`,
361
- f_operator: this.$login.f.name,
362
- f_operatorid: this.$login.f.id,
362
+ f_operator: Vue.user.name,
363
+ f_operatorid: Vue.user.id,
363
364
  f_meternumber: this.row.f_meternumber,
364
365
  f_userinfo_id: this.row.f_userinfo_id,
365
366
  f_userfiles_id: this.row.f_userfiles_id,
@@ -370,7 +371,15 @@ export default {
370
371
  f_price_id: this.row.f_price_id
371
372
  }
372
373
  this.$resetpost(url, {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
373
- this.getChangeData()
374
+ console.log(res.data)
375
+ console.log(JSON.stringify(res.data))
376
+ if(res.data.msg==='抄表成功'){
377
+ _that.$showMessage('生成欠费成功')
378
+ this.getChangeData()
379
+ }else{
380
+ _that.$showMessage('生成欠费失败')
381
+ }
382
+
374
383
  })
375
384
  }
376
385
  })
@@ -557,17 +566,18 @@ export default {
557
566
  //tag)
558
567
  //tag)
559
568
  // 获取配置项
560
- if (Vue.config.telephone != undefined) {
561
- if (Vue.config.telephone.ApproveConfig != undefined) {
562
- this.parameters = Vue.config.telephone.ApproveConfig
563
- this.ispos = Vue.config.telephone.ApproveConfig.ispos
564
- //tag)
565
- } else {
566
- //tag
567
- }
568
- } else {
569
- //tag
570
- }
569
+ console.log(Vue.config.telephone.ApproveConfig)
570
+ // if (Vue.config.telephone != undefined) {
571
+ // if (Vue.config.telephone.ApproveConfig != undefined) {
572
+ // this.parameters = Vue.config.telephone.ApproveConfig
573
+ // this.ispos = Vue.config.telephone.ApproveConfig.ispos
574
+ // //tag)
575
+ // } else {
576
+ // //tag
577
+ // }
578
+ // } else {
579
+ // //tag
580
+ // }
571
581
  }
572
582
  }
573
583
  </script>
@@ -0,0 +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
+ <img-self style="float: left;margin: 2px" v-if="service.f_single_path" :src="imgfilename" width="200" height="200"></img-self>
20
+ <img-self style="float: left;margin: 2px" v-if="service.f_singlea_path" :src="imgfilenamea" width="200" height="200"></img-self>
21
+ <img-self style="float: left;margin: 2px" v-if="service.f_singleb_path" :src="imgfilenameb" width="200" height="200"></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()}/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>
@@ -35,7 +35,7 @@
35
35
  <script>
36
36
  // 户内维修
37
37
  import Vue from 'vue'
38
- import RepairInfo from './../../../components/workorder/RepairInfo'
38
+ import RepairInfo from './RepairInfo'
39
39
  import RepairDetails from './../../../components/workorder/RepairDetails'
40
40
  import RepairUserInfo from './RepairUserInfo'
41
41
  import Outlay from './Outlay'
@@ -76,7 +76,7 @@
76
76
  </div>
77
77
  <div class="row">
78
78
  <div class="{{shuclass}}" v-if="worktype == '置换通气单'||worktype == '安装单'">
79
- <label class="lb-left text-justify">住户类型</label>
79
+ <label class="lb-left text-justify">用户类型</label>
80
80
  <v-select :value="model.f_house_type" :value-single="true"
81
81
  :options='housetype' placeholder='请选择'
82
82
  close-on-select
@@ -100,6 +100,14 @@
100
100
  <label class="lb-left text-justify">经办人</label>
101
101
  <span style="font-weight:bold">{{ f_open_person }}</span>
102
102
  </div>
103
+ <div class="{{shuclass}}" v-if="worktype == '置换通气单'">
104
+ <label class="lb-left text-justify">通气人</label>
105
+ <span style="font-weight:bold">{{ f_order_man }}</span>
106
+ </div>
107
+ <div class="{{shuclass}}" v-if="worktype == '置换通气单'">
108
+ <label class="lb-left text-justify">通气日期</label>
109
+ <span style="font-weight:bold">{{ data.f_date_come }}</span>
110
+ </div>
103
111
  <div class="{{shuclass}}"
104
112
  v-if="worktype == '报修单' && noExp && meterinfo && meterinfo.f_collection_type == '按气量'">
105
113
  <label class="lb-left text-justify">累购气量</label>
@@ -277,8 +285,8 @@
277
285
  }
278
286
  }, {warnMsg: null, resolveMsg: null, rejectMsg: null})
279
287
  if (res.data[0]) {
280
- this.f_open_date = res.data[0].f_open_date
281
- this.f_open_person = res.data[0].f_open_person
288
+ this.f_open_date = res.data[0].f_createfile_date
289
+ this.f_open_person = res.data[0].f_createfile_person
282
290
  }
283
291
  }
284
292
  this.ifCreatDate()
@@ -10,6 +10,7 @@ let specialComp = {
10
10
  'repair-user-info': (resolve) => { require(['./android/RepairUserInfo'], resolve) },
11
11
  'repair-orderV': (resolve) => { require(['./android/RepairOrderV'], resolve) },
12
12
  'outlay': (resolve) => { require(['./android/Outlay'], resolve) },
13
+ 'repair-info': (resolve) => { require(['./android/RepairInfo'], resolve) },
13
14
  }
14
15
  exports.specialComp = specialComp
15
16
 
package/.npmignore DELETED
@@ -1,14 +0,0 @@
1
- .DS_Store
2
- node_modules/
3
- dist/
4
- config/
5
- gradle/
6
- .gradle/
7
- dist-android/
8
- npm-debug.log
9
- selenium-debug.log
10
- test/
11
- .idea/
12
- build/
13
- examples/
14
-