telephone-clients 3.0.103 → 3.0.104-11

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 (132) hide show
  1. package/package.json +3 -3
  2. package/src/App.vue +54 -56
  3. package/src/assets//345/210/240/351/231/244.png +0 -0
  4. package/src/components/Util/RightTreeSafe.vue +2 -2
  5. package/src/components/Util/RightTreeSafeDep.vue +350 -0
  6. package/src/components/android/AddMyTask.vue +7 -0
  7. package/src/components/guoxin/Console.vue +9 -0
  8. package/src/components/guoxin/VisitInfo.vue +0 -11
  9. package/src/components/pc/NewRepairPaper.vue +370 -370
  10. package/src/components/pc/RepairsWork.vue +23 -2
  11. package/src/components/pc/RoleSelectorDep.vue +158 -0
  12. package/src/components/pc/TelFindUser.vue +1 -1
  13. package/src/components/pc/TelListener.vue +47 -16
  14. package/src/components/pc/VisitInfo.vue +44 -17
  15. package/src/components/pc/WorkCenter.vue +1 -1
  16. package/src/components/pc/WorkCenterList.vue +1 -1
  17. package/src/components/pc/WorkHistory.vue +20 -2
  18. package/src/components/pc/WorkListAll.vue +1 -1
  19. package/src/components/pc/WorkListAllNew.vue +10 -3
  20. package/src/components/pc/WorkListNew.vue +9 -3
  21. package/src/components/pc/olddata/OldWorkList.vue +193 -0
  22. package/src/components/telreport/RepairsDetailsReport.vue +98 -0
  23. package/src/components/telreport/TableFaultReport.vue +96 -0
  24. package/src/components/telreport/Traffic.vue +3 -3
  25. package/src/components/telreport/TrafficClassificationReport.vue +134 -0
  26. package/src/components/temp/ChangemeterInfo.vue +75 -87
  27. package/src/components/temp/DeviceInfo.vue +80 -82
  28. package/src/components/temp/HandplanInfo.vue +14 -3
  29. package/src/components/temp/InfoTable.vue +5 -2
  30. package/src/components/temp/MetereadInfo.vue +1 -4
  31. package/src/components/temp/OldRepairList.vue +100 -0
  32. package/src/components/temp/RepairList.vue +2 -2
  33. package/src/components/weinan/Console.vue +1 -1
  34. package/src/components/weinan/RecordList.vue +2 -2
  35. package/src/components/weinan/SiteSend.vue +2 -2
  36. package/src/components/weinan/SiteSendWeixiu.vue +7 -16
  37. package/src/components/weinan/StandWorkWeixiu.vue +1 -1
  38. package/src/components/weinan/WorkList.vue +73 -0
  39. package/src/components/weinan/WorkListAll.vue +90 -14
  40. package/src/components/weinan/WorkListWeixiu.vue +1 -1
  41. package/src/components/workorder/CompletedRepair.vue +269 -183
  42. package/src/components/workorder/FaultAll.vue +826 -826
  43. package/src/components/workorder/PhoneStandWork.vue +354 -354
  44. package/src/components/workorder/PhoneUpDetail.vue +3 -0
  45. package/src/components/workorder/RepairDetails.vue +12 -2
  46. package/src/components/workorder/RepairFirstV.vue +1 -1
  47. package/src/components/workorder/RepairOrderV.vue +1446 -1446
  48. package/src/filiale/furuike/pc/ComplainWork.vue +348 -348
  49. package/src/filiale/furuike/pc/Seekwork.vue +352 -352
  50. package/src/filiale/gongyi/android/RepairOrderV.vue +1415 -1415
  51. package/src/filiale/hanzhong/telephone.js +1 -1
  52. package/src/filiale/kelai/android/AppTakePic.vue +143 -0
  53. package/src/filiale/kelai/android/PhoneVentilationLeave.vue +176 -0
  54. package/src/filiale/kelai/pc/WorkCenterList.vue +20 -3
  55. package/src/filiale/kelai/pc/WorkListAllNew.vue +47 -9
  56. package/src/filiale/kelai/pc/serviceDeleteOrder.vue +55 -0
  57. package/src/filiale/kelai/telephone.js +9 -8
  58. package/src/filiale/kelai/telephoneAndroid.js +3 -1
  59. package/src/filiale/liaoyuan/android/RepairOrderV.vue +831 -831
  60. package/src/filiale/qianneng/android/FaultAll.vue +883 -883
  61. package/src/filiale/qianneng/android/MaterIialOne.vue +123 -123
  62. package/src/filiale/qianneng/android/RepairOrderV.vue +874 -874
  63. package/src/filiale/qianneng/android/TemporarySingle.vue +25 -0
  64. package/src/filiale/qianneng/android/chargesList.vue +161 -161
  65. package/src/filiale/qianneng/pc/MaterialDetailed.vue +15 -3
  66. package/src/filiale/qianneng/pc/MaterialStatistics.vue +144 -0
  67. package/src/filiale/qianneng/pc/NewRepairPaper.vue +467 -467
  68. package/src/filiale/qianneng/pc/RepairsWork.vue +992 -982
  69. package/src/filiale/qianneng/pc/WorkHistory.vue +2 -2
  70. package/src/filiale/qianneng/pc/WorkListAllNew.vue +53 -5
  71. package/src/filiale/qianneng/pc/changetable.vue +273 -0
  72. package/src/filiale/qianneng/telephone.js +2 -0
  73. package/src/filiale/rizhao/pc/DispatchMan.vue +3 -3
  74. package/src/filiale/rizhao/pc/DispatchWork.vue +3 -3
  75. package/src/filiale/rizhao/pc/Traffic.vue +3 -3
  76. package/src/filiale/rizhao/pc/WorkListAllNew.vue +8 -3
  77. package/src/filiale/rizhao/telephone.js +1 -1
  78. package/src/filiale/rongcheng/CliWorkListAll.vue +442 -407
  79. package/src/filiale/rongcheng/FaultAll.vue +3 -3
  80. package/src/filiale/rongcheng/RepairOrderV.vue +1445 -0
  81. package/src/filiale/rongcheng/telephoneAndroid.js +3 -1
  82. package/src/filiale/shanxian/android/RepairFirstV.vue +5 -1
  83. package/src/filiale/shanxian/pc/RepairsWork.vue +826 -0
  84. package/src/filiale/shanxian/pc/WorkList.vue +1 -1
  85. package/src/filiale/shanxian/telephone.js +13 -12
  86. package/src/filiale/shexian/android/AddMyTask.vue +7 -0
  87. package/src/filiale/shexian/android/CompletedRepair.vue +280 -0
  88. package/src/filiale/shexian/android/FaultAll.vue +847 -0
  89. package/src/filiale/shexian/android/Outlay.vue +182 -165
  90. package/src/filiale/shexian/android/RepairFirstV.vue +16 -2
  91. package/src/filiale/shexian/android/RepairInfo.vue +1 -0
  92. package/src/filiale/shexian/pc/QueryVisitHistory.vue +237 -0
  93. package/src/filiale/shexian/pc/TelAgentVoiceReport.vue +271 -0
  94. package/src/filiale/shexian/pc/TelByOrderManCount.vue +10 -2
  95. package/src/filiale/shexian/pc/WorkList.vue +782 -740
  96. package/src/filiale/shexian/pc/WorkListAllNew.vue +75 -67
  97. package/src/filiale/shexian/telephone.js +21 -18
  98. package/src/filiale/shexian/telephoneAndroid.js +32 -26
  99. package/src/filiale/tongchuan/android/RepairDetails.vue +623 -0
  100. package/src/filiale/tongchuan/android/TicketDetails.vue +3 -0
  101. package/src/filiale/tongchuan/pc/UserWork.vue +805 -805
  102. package/src/filiale/tongchuan/pc/WorkOrderStatistics.vue +2 -2
  103. package/src/filiale/tongchuan/telephone.js +52 -52
  104. package/src/filiale/tongchuan/telephoneAndroid.js +23 -22
  105. package/src/filiale/wenxi/android/FailureShow.vue +61 -0
  106. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1053 -0
  107. package/src/filiale/wenxi/android/RepairInfo.vue +158 -74
  108. package/src/filiale/wenxi/android/RepairOrderV.vue +805 -1419
  109. package/src/filiale/wenxi/android/RepairUserInfo.vue +532 -0
  110. package/src/filiale/wenxi/android/ZHihuanFirst.vue +502 -0
  111. package/src/filiale/wenxi/pc/DistributeWork.vue +107 -121
  112. package/src/filiale/wenxi/pc/FailureEdit.vue +1 -1
  113. package/src/filiale/wenxi/pc/GasWork.vue +747 -0
  114. package/src/filiale/wenxi/pc/MetereadInfo.vue +82 -0
  115. package/src/filiale/wenxi/pc/RepairsWork.vue +15 -0
  116. package/src/filiale/wenxi/pc/TelFindUser.vue +213 -116
  117. package/src/filiale/wenxi/pc/WorkListAll.vue +348 -297
  118. package/src/filiale/wenxi/telephone.js +4 -5
  119. package/src/filiale/wenxi/telephoneAndroid.js +4 -1
  120. package/src/filiale/wuan/android/RepairOrderV.vue +1384 -1384
  121. package/src/filiale/wuhai/telephone.js +1 -1
  122. package/src/filiale/yuncheng/pc/TelFindUser.vue +302 -0
  123. package/src/filiale/yuncheng/telephone.js +12 -0
  124. package/src/filiale/zhongsheng/android/FaultAll.vue +741 -0
  125. package/src/filiale/zhongsheng/android/RepairOrderV.vue +1430 -1430
  126. package/src/filiale/zhongsheng/android/RepairUserInfo.vue +241 -214
  127. package/src/filiale/zhongsheng/pc/RepairsWork.vue +775 -775
  128. package/src/filiale/zhongsheng/telephone.js +23 -23
  129. package/src/filiale/zhongsheng/telephoneAndroid.js +2 -1
  130. package/src/main.js +1 -1
  131. package/src/telephone.js +17 -1
  132. package/src/weinan.js +6 -0
@@ -0,0 +1,532 @@
1
+ <template>
2
+ <div class="select-overspread repair-bg auto" style="padding-bottom:5px;">
3
+ <!--<validator name='v' @valid="$emit('valid')" @invalid="$emit('invalid')">-->
4
+ <div class="bq-parent" v-if="shutype == 'heng'">
5
+ <blockquote class="blockquote">
6
+ <p><span>用户基本信息</span><a @click="mute()" style="float:right" href="javascript:void(0)" class="repair-mute-class"><img src="../../../assets/novoice.png" width="25px;" alt=""><span style="margin-left:10px;color: #304A66">关闭声音</span></a></p>
7
+ </blockquote>
8
+ </div>
9
+ <div class="panel panel-default auto repair-info-content">
10
+ <div class="panel-body">
11
+ <!-- 维修相关时间 -->
12
+ <div v-if="data" class="row repair-info-content auto">
13
+ <!--<div class="col-xs-12 col-sm-12 col-md-12 form-input-group">-->
14
+ <!--<label class="control-label">-->
15
+ <!--<nobr>维修日期:</nobr>-->
16
+ <!--</label>-->
17
+ <!--<span>{{data.f_date}}</span>-->
18
+ <!--</div>-->
19
+ <div class="col-xs-12 col-sm-12 col-md-12 form-input-group">
20
+ <label class="control-label">
21
+ <nobr>到达时间:</nobr>
22
+ </label>
23
+ <span>{{data.f_date_come}}</span>
24
+ </div>
25
+ <div class="col-xs-12 col-sm-12 col-md-12 form-input-group" v-if="data.f_date_leave">
26
+ <label class="control-label">
27
+ <nobr>离开时间:</nobr>
28
+ </label>
29
+ <span>{{data.f_date_leave}}</span>
30
+ </div>
31
+ </div>
32
+ <!-- 用户基信息内容 -->
33
+ <div v-if="model" class="auto repair-info-content compatible">
34
+ <div class="row auto">
35
+ <!-- <div class="{{shuclass}}">
36
+ <label class=" lb-left text-justify">客户编号</label>
37
+ <span v-if="show" style="font-weight:bold">{{model.f_userinfo_code}}</span>
38
+ <input type="text" class="form-control" v-model="model.f_userinfo_code" v-if="!show" readonly>
39
+ &lt;!&ndash;<button type="button" name="button" class="btn btn-primary" @click="findUserByCardId(model.f_userinfo_code)"&ndash;&gt;
40
+ &lt;!&ndash;v-if="!show">查找&ndash;&gt;
41
+ &lt;!&ndash;</button>&ndash;&gt;
42
+ </div>-->
43
+ <div class="{{shuclass}}">
44
+ <label class=" lb-left text-justify">姓名</label>
45
+ <span v-if="show" style="font-weight:bold">{{model.f_user_name}}</span>
46
+ <template v-if="!show">
47
+ <input :disabled="worktype == '报修单'" type="text" class="form-control" v-model="model.f_user_name" :readonly="issee">
48
+ </template>
49
+ </div>
50
+ <div v-show="false" class="{{shuclass}}" v-if="!((worktype == '置换通气单'||worktype == '安装单') && model.f_user_type == '非民用')">
51
+ <label class="lb-left text-justify">客户类型</label>
52
+ <input type="text" class="form-control" v-model="model.f_user_type" readonly v-if="!show">
53
+ <span v-if="show" style="font-weight:bold">{{model.f_user_type}}</span>
54
+ </div>
55
+ <div class="{{shuclass}}" v-if="((worktype == '置换通气单'||worktype == '安装单') && model.f_user_type == '民用')">
56
+ <label class="lb-left text-justify">用气性质</label>
57
+ <input type="text" class="form-control" v-model="model.f_gasproperties" readonly v-if="!show">
58
+ <span v-if="show" style="font-weight:bold">{{model.f_gasproperties}}</span>
59
+ </div>
60
+ <div v-show="false" class="{{shuclass}}" v-if="(worktype == '置换通气单'||worktype == '安装单') && model.f_user_type == '非民用'">
61
+ <label class="lb-left text-justify">客户类型</label>
62
+ <input type="text" class="form-control" v-model="model.f_user_type" readonly v-if="!show">
63
+ <span v-if="show" style="font-weight:bold">{{model.f_user_type}}</span>
64
+ </div>
65
+ <div class="{{shuclass}}" v-if="(worktype == '置换通气单'||worktype == '安装单') && model.f_user_type == '非民用'">
66
+ <label class="lb-left text-justify">用气性质</label>
67
+ <input type="text" class="form-control" v-model="model.f_gasproperties" readonly v-if="!show">
68
+ <span v-if="show" style="font-weight:bold">{{model.f_gasproperties}}</span>
69
+ </div>
70
+ <!-- <div class="{{shuclass}}">-->
71
+ <!-- <label class=" lb-left text-justify" >来电电话</label>-->
72
+ <!-- <span v-if="show" style="font-weight:bold">{{model.f_linkphone}}</span>-->
73
+ <!-- <template v-if="!show">-->
74
+ <!-- <input type="text" class="form-control" v-model="model.f_linkphone" readonly>-->
75
+ <!-- </template>-->
76
+ <!-- </div>-->
77
+ <div class="{{shuclass}}">
78
+ <label class=" lb-left text-justify" >联系电话</label>
79
+ <span v-if="show" style="font-weight:bold">{{model.f_user_phone}}</span>
80
+ <template v-if="!show">
81
+ <input type="text" class="form-control" v-model="model.f_user_phone" :readonly="issee" onkeyup="value=value.replace(/[^\d\.]/g,'')">
82
+ </template>
83
+ </div>
84
+ <div class="col-xs-12 col-sm-12 col-md-6 form-input-group">
85
+ <label class=" lb-left text-justify" >地址</label>
86
+ <span v-if="show" style="font-weight:bold">{{model.f_address}}</span>
87
+ <template v-if="!show">
88
+ <textarea :disabled="worktype == '报修单'" type="text" class="form-control" v-model="model.f_address" readonly></textarea>
89
+ </template>
90
+ </div>
91
+
92
+ <!-- 置换通气单配置选项 -->
93
+ <!-- <div class="{{shuclass}}" v-if="worktype == '置换通气单'||worktype == '安装单'">-->
94
+ <!-- <label class=" lb-left text-justify" >身份证号</label>-->
95
+ <!-- <span v-if="show" style="font-weight:bold">{{model.f_shenfenzheng}}</span>-->
96
+ <!-- <template v-if="!show">-->
97
+ <!-- <input type="text" class="form-control" v-model="model.f_shenfenzheng" :readonly="issee">-->
98
+ <!-- </template>-->
99
+ <!-- </div>-->
100
+ <!-- <div class="{{shuclass}}" v-if="(worktype == '置换通气单'||worktype == '安装单') && isshenfenzheng">-->
101
+ <!-- <span style="font-size:10px;color: red">输入的身份证号长度不对,或者号码不符合规定!</span>-->
102
+ <!-- </div>-->
103
+ </div>
104
+ <div class="row">
105
+ <!-- <div class="{{shuclass}}" v-if="worktype == '置换通气单'||worktype == '安装单'">-->
106
+ <!-- <label class="lb-left text-justify">住户类型</label>-->
107
+ <!-- <span v-if="show" style="font-weight:bold">{{model.f_house_type}}</span>-->
108
+ <!-- <v-select :value="model.f_house_type" :value-single="true"-->
109
+ <!-- :options='housetype' placeholder='请选择'-->
110
+ <!-- close-on-select v-if="!show"-->
111
+ <!-- v-on:change="housetypechange"-->
112
+ <!-- :disabled="issee">-->
113
+ <!-- </v-select>-->
114
+ <!-- </div>-->
115
+ <!-- <div class="{{shuclass}}" v-if="worktype == '置换通气单'">
116
+ <label class="lb-left text-justify">住户备注</label>
117
+ <span v-if="show" style="font-weight:bold">{{model.f_remarks}}</span>
118
+ <input type="text" class="form-control" v-model="model.f_remarks" v-if="!show" :readonly="issee">
119
+ </div>-->
120
+ <!--报修特殊配置选项 -->
121
+ <div class="{{shuclass}}" v-if="worktype == '报修单' && noExp && meterinfo && meterinfo.f_collection_type == '按气量'">
122
+ <label class="lb-left text-justify">累购气量</label>
123
+ <input type="text" class="form-control" v-model="meterinfo.f_total_gas" :disabled="show" :readonly="issee">
124
+ </div>
125
+ <div class="{{shuclass}}" v-if="worktype == '报修单' && noExp && meterinfo && meterinfo.f_collection_type == '按金额'">
126
+ <label class="lb-left text-justify">累购金额</label>
127
+ <input type="text" class="form-control" v-model="meterinfo.f_total_fee" :disabled="show" :readonly="issee">
128
+ </div>
129
+ <div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
130
+ <label class="lb-left text-justify">气表品牌</label>
131
+ <input type="text" class="form-control" v-model="meterinfo.f_meter_brand" :disabled="show" :readonly="issee">
132
+ </div>
133
+ <div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
134
+ <label class="lb-left text-justify">气表型号</label>
135
+ <input type="text" class="form-control" v-model="meterinfo.f_meter_style" :disabled="show" :readonly="issee">
136
+ </div>
137
+ <div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
138
+ <label class="lb-left text-justify">左右表</label>
139
+ <input type="text" class="form-control" v-model="meterinfo.f_aroundmeter" :disabled="show" :readonly="issee">
140
+ </div>
141
+ <div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
142
+ <label class="lb-left text-justify">安装位置</label>
143
+ <input type="text" class="form-control" v-model="meterinfo.f_position" :disabled="show" :readonly="issee">
144
+ </div>
145
+ <div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
146
+ <label class="lb-left text-justify">表号</label>
147
+ <input type="text" class="form-control" v-model="meterinfo.f_meternumber" :disabled="show" :readonly="issee">
148
+ </div>
149
+ <div class="{{shuclass}}" v-if="worktype == '报修单' && noExp">
150
+ <label class="lb-left text-justify">气表初始底数</label>
151
+ <input type="text" class="form-control" v-model="model.f_initial_base" :disabled="show" :readonly="issee">
152
+ </div>
153
+ </div>
154
+ </div>
155
+ </div>
156
+ </div>
157
+ <!--</validator>-->
158
+ </div>
159
+ </template>
160
+ <script>
161
+ import * as Util from '../../../components/Util'
162
+ import Vue from 'vue'
163
+ import {HttpResetClass} from "vue-client";
164
+
165
+
166
+ export default {
167
+ title: '维修列表客户基本信息',
168
+ data() {
169
+ return {
170
+ telphoneValid: '/^((0\\d{2,3}-\\d{7,8})|(1[3584]\\d{9}))$/',
171
+ watchtype : this.$appdata.getParam('表型'),
172
+ gasdirection : this.$appdata.getParam('进气方向'),
173
+ watchhull : this.$appdata.getParam('表封'),
174
+ ictype : this.$appdata.getParam('IC卡类型'),
175
+ meterstyle:[],
176
+ shuclass:'col-xs-6 col-sm-6 col-md-6 form-input-group mg8',
177
+ isshenfenzheng:false,
178
+ noExp: false,
179
+ meterinfo: {}
180
+ }
181
+ },
182
+ props: {
183
+ issee:'',
184
+ worktype:{
185
+ type: String,
186
+ default: '报修单'
187
+ },
188
+ // userinfo: {
189
+ // type: Object
190
+ // },
191
+ // 维修对应的用户数据收集
192
+ model: {
193
+ type: Object
194
+ },
195
+ // 工单信息
196
+ repair:{
197
+ type: Object
198
+ },
199
+ savevalid:{
200
+
201
+ },
202
+ sum:{
203
+
204
+ },
205
+ user:{
206
+ type: Object
207
+ },
208
+ show: {
209
+ type: Boolean,
210
+ default: false
211
+ },
212
+ // 本次维修, 用于编辑
213
+ data: {
214
+ type: Object
215
+ },
216
+ shutype:'heng'
217
+ },
218
+ methods: {
219
+ housetypechange(val){
220
+ if(val){
221
+ this.model.f_house_type = val
222
+ }
223
+ },
224
+ usertypeschange(val){
225
+ this.model.f_npuser_type = val
226
+ },
227
+ gasbrandchange(val){
228
+ this.model.f_gasbrand_id = val
229
+ let ret = this.$TelGetSaleParam.getGasbrand()
230
+ //tag
231
+ let rs = new Array()
232
+ if(this.model.f_gasbrand_id) {
233
+ ret.forEach((item, index) => {
234
+ if(this.model.f_gasbrand_id == item.value.id) {
235
+ this.model.f_gasbrand_name = item.label
236
+ item.value.gasmodel.forEach((item1, index1) => {
237
+ rs.push({label: item1.label, value: item1.value.id})
238
+ })
239
+ }
240
+ })
241
+ }
242
+ this.meterstyle = rs
243
+ },
244
+ gasmodelchange(val){
245
+ if(val == undefined || val == ''){
246
+ return
247
+ }
248
+ this.model.f_gasmodel_id = val
249
+ let ret = this.$TelGetSaleParam.getGasbrand()
250
+ if(this.model.f_gasbrand_id && this.model.f_gasmodel_id) {
251
+ ret.forEach((item, index) => {
252
+ if(this.model.f_gasbrand_id == item.value.id) {
253
+ item.value.gasmodel.forEach((item1, index1) => {
254
+ if(this.model.f_gasmodel_id == item1.value.id) {
255
+ this.model.f_gasmodel_name = item1.label
256
+ }
257
+ })
258
+ }
259
+ })
260
+ }
261
+ },
262
+ // getPricenames (pricetype) {
263
+ // //tag
264
+ // let rs = new Array()
265
+ // var f_fengongsi = ''
266
+ // if(Vue.android) {
267
+ // f_fengongsi = Vue.user.f_fengongsi
268
+ // }else {
269
+ // f_fengongsi = this.$login.f.f_fengongsi
270
+ // }
271
+ // if (this.model.f_user_type.length != '' && this.model.f_gasproperties != '' && pricetype != 1) {
272
+ // let params = {
273
+ // f_user_type: this.model.f_user_type,
274
+ // f_gasproperties: this.model.f_gasproperties,
275
+ // f_price_type: pricetype,
276
+ // filter: f_fengongsi
277
+ // }
278
+ // let ret = this.$GetSaleParam.getPrice(params)
279
+ // ret.forEach((item, index) => {
280
+ // rs.push({label: item.label, value: item.value.f_price_id})
281
+ // })
282
+ // }
283
+ // //tag
284
+ // return rs
285
+ // },
286
+ mute () {
287
+ HostApp.mute()
288
+ },
289
+ // findUserByCardId() {
290
+ // this.$resetpost(this.$androidUtil.getProxyUrl() + '/rs/sql/tel_singleTable_OrderBy', {
291
+ // data: {
292
+ // items: '*',
293
+ // tablename: 't_userinfo',
294
+ // condition: `f_userinfo_id = '${this.model.f_userinfo_id}'`,
295
+ // orderitem: 'f_userinfo_id'
296
+ // }
297
+ // }).then((res) => {
298
+ // if (res.data.length === 0) {
299
+ // HostApp.alert('未查询到相关用户,请仔细核对卡号是否正确')
300
+ // }
301
+ // // this.getSumGas()
302
+ // // object.assign会导致数据无法上传。暂定使用$set
303
+ // this.$set('model.f_username', res.data[0].f_user_name)
304
+ // this.$set('model.f_address', res.data[0].f_address)
305
+ // this.$set('model.f_user_type', res.data[0].f_user_type)
306
+ // this.$set('model.f_gasproperties', res.data[0].f_gasproperties)
307
+ // })
308
+ // },
309
+ // 判断 日期 到达时间 是否有值
310
+ ifCreatDate() {
311
+ if (this.data && !this.data.f_date) {
312
+ this.data.f_date = Util.toStandardTimeString()
313
+ }
314
+ if (this.data && !this.data.f_date_come) {
315
+ this.data.f_date_come = Util.toStandardTimeString()
316
+ }
317
+ }
318
+ },
319
+ async ready() {
320
+ //tag)
321
+ //tag)
322
+ if(this.worktype =='报修单' && this.repair.f_userinfo_id){
323
+ this.show = true
324
+ let http = new HttpResetClass()
325
+ let res = await http.load('POST',this.$androidUtil.getProxyUrl()+'/rs/sql/getBaseMeterInfo',{
326
+ data:{
327
+ f_userinfo_id: this.repair.f_userinfo_id
328
+ }
329
+ },{warnMsg:null,resolveMsg:null,rejectMsg:null})
330
+ //tag)
331
+ if(res.data[0]){
332
+ this.meterinfo = res.data[0]
333
+ this.noExp = true
334
+ }
335
+ }
336
+ this.ifCreatDate()
337
+ },
338
+ watch: {
339
+ // 气表品牌 更新
340
+ 'model.f_gasbrand_id'(val) {
341
+ if(val == undefined || val == ''){
342
+ return
343
+ }
344
+ if(this.model.f_gasbrand_id) {
345
+ let ret = this.$TelGetSaleParam.getGasbrand()
346
+ let rs = new Array()
347
+ if(this.model.f_gasbrand_id) {
348
+ ret.forEach((item, index) => {
349
+ if(this.model.f_gasbrand_id == item.value.id) {
350
+ this.model.f_gasbrand_name = item.label
351
+ item.value.gasmodel.forEach((item1, index1) => {
352
+ rs.push({label: item1.label, value: item1.value.id})
353
+ })
354
+ }
355
+ })
356
+ }
357
+ this.meterstyle = rs
358
+ }
359
+ },
360
+ // 气价名称
361
+ // 'model.f_pricename_id' () {
362
+ // var f_fengongsi = ''
363
+ // if(Vue.android) {
364
+ // f_fengongsi = Vue.user.f_fengongsi
365
+ // }else {
366
+ // f_fengongsi = Util.f.f_fengongsi
367
+ // }
368
+ // if (this.model.f_user_type && this.model.f_gasproperties && this.model.f_price_type && this.model.f_pricename_id) {
369
+ // let params = {
370
+ // f_user_type: this.model.f_user_type,
371
+ // f_gasproperties: this.model.f_gasproperties,
372
+ // f_price_type: this.model.f_price_type,
373
+ // filter: f_fengongsi
374
+ // }
375
+ // let ret = this.$GetSaleParam.getPrice(params)
376
+ // //tag
377
+ // ret.forEach((item, index) => {
378
+ // if(this.model.f_pricename_id == item.value.f_price_id) {
379
+ // this.model.f_pricename = item.label
380
+ // }
381
+ // })
382
+ // }
383
+ // },
384
+ 'repair' () {
385
+ if(this.repair.f_orderstatus){
386
+ return
387
+ }
388
+ if(this.model.f_address){
389
+ return
390
+ }
391
+ this.$set('model.f_linkphone', this.repair.f_phone)
392
+ this.$set('model.f_address', this.repair.f_address)
393
+ this.$set('model.f_userinfo_id', this.repair.f_userinfo_id)
394
+ this.$set('model.f_user_phone', this.repair.f_contact_phone)
395
+ this.$set('model.f_user_name', this.repair.f_user_name)
396
+ this.$set('model.f_user_type', this.repair.f_user_type)
397
+ this.$set('model.f_gasproperties', this.repair.f_gasproperties)
398
+ this.$set('model.f_userinfo_code', this.repair.f_userinfo_code)
399
+ if(!this.model.f_house_type){
400
+ this.model.f_house_type == '自有房'
401
+ }
402
+ if(this.model.f_user_type == '非民用'){
403
+ if(this.model.f_gasproperties == '工业用气'){
404
+ this.$set('model.f_house_type','工业用户')
405
+ }else if(this.model.f_gasproperties == '商业用气') {
406
+ this.$set('model.f_house_type','商业用户')
407
+ }
408
+ }
409
+ },
410
+ 'valid' () {
411
+ this.savevalid.uservalid = this.$v.valid
412
+ },
413
+ 'shutype'(val){
414
+ if(val == 'shu'){
415
+ this.shuclass = 'col-xs-12 col-sm-12 col-md-12 form-input-group mg8'
416
+ }
417
+ },
418
+ 'model.f_shenfenzheng'(val){
419
+ if(val){
420
+ if (!(/^[1-9][0-9]{5}([1][9][0-9]{2}|[2][0][0|1][0-9])([0][1-9]|[1][0|1|2])([0][1-9]|[1|2][0-9]|[3][0|1])[0-9]{3}([0-9]|[X])$/.test(val))) {
421
+ // this.$showAlert('输入的身份证号长度不对,或者号码不符合规定!\n15位号码应全为数字,18位号码末位可以为数字或X。')
422
+ this.isshenfenzheng = true
423
+ }else{
424
+ this.isshenfenzheng = false
425
+ }
426
+ }else{
427
+ this.isshenfenzheng = false
428
+ }
429
+ }
430
+ // 'userinfo' () {
431
+ // if(this.repair.f_orderstatus){
432
+ // return
433
+ // }
434
+ // if(this.userinfo == undefined || this.userinfo == '' ){
435
+ // return
436
+ // }
437
+ // this.$set('model.f_userinfo_code', this.userinfo.baseinfo.base.f_userinfo_code)
438
+ // this.$set('model.f_user_name', this.userinfo.baseinfo.base.f_user_name)
439
+ // this.$set('model.f_user_type', this.userinfo.baseinfo.base.f_user_type)
440
+ // this.$set('model.f_gasproperties', this.userinfo.baseinfo.base.f_gasproperties)
441
+ // this.$set('model.f_gasbrand_id', this.userinfo.meterinfo[0].f_gasbrand_id)
442
+ // this.$set('model.f_gasmodel_id', this.userinfo.meterinfo[0].f_gasmodel_id)
443
+ // this.$set('model.f_price_type', this.userinfo.baseinfo.base.pricetype)
444
+ // this.$set('model.f_pricename_id', this.userinfo.baseinfo.base.f_price_id)
445
+ // this.$set('model.f_aroundmeter', this.userinfo.meterinfo[0].f_aroundmeter)
446
+ // this.$set('model.f_position', this.userinfo.meterinfo[0].f_position)
447
+ // this.$set('model.f_userinfo_id', this.userinfo.baseinfo.base.f_userinfo_id)
448
+ // this.$set('model.f_user_id', this.userinfo.meterinfo[0].f_user_id)
449
+ // this.$set('model.versionfile', this.userinfo.meterinfo[0].version)
450
+ // this.$set('model.versioninfo', this.userinfo.baseinfo.base.version)
451
+ // }
452
+ },
453
+ computed: {
454
+ positions () {
455
+ return this.$appdata.getParam('安装位置')
456
+ },
457
+ usertypes () {
458
+ return this.$appdata.getParam('非民用用户类型')
459
+ },
460
+ // f_price_types () {
461
+ // return this.$appdata.getParam('气价类型')
462
+ // },
463
+ housetype () {
464
+ if(this.model.f_user_type == '民用'){
465
+ return this.$appdata.getParam('民用置换住户类型')
466
+ }else{
467
+ return this.$appdata.getParam('非民用置换住户类型')
468
+ }
469
+ },
470
+ // meterstyle() {
471
+ // let ret = this.$GetSaleParam.getGasbrand()
472
+ // //tag
473
+ // let rs = new Array()
474
+ // if(this.model.f_gasbrand_id) {
475
+ // ret.forEach((item, index) => {
476
+ // if(this.model.f_gasbrand_id == item.value.id) {
477
+ // // rs = item.value.gasmodel
478
+ // item.value.gasmodel.forEach((item1, index1) => {
479
+ // rs.push({label: item1.label, value: item1.value.id})
480
+ // })
481
+ // }
482
+ // })
483
+ // }
484
+ // return rs
485
+ // },
486
+ // pricenames() {
487
+ // let rs = new Array()
488
+ // var f_fengongsi = ''
489
+ // if(Vue.android) {
490
+ // f_fengongsi = Vue.user.f_fengongsi
491
+ // }else {
492
+ // f_fengongsi = this.$login.f.f_fengongsi
493
+ // }
494
+ // if (this.model.f_user_type && this.model.f_gasproperties && this.model.f_price_type) {
495
+ // let params = {
496
+ // f_user_type: this.model.f_user_type,
497
+ // f_gasproperties: this.model.f_gasproperties,
498
+ // f_price_type: this.model.f_price_type,
499
+ // filter: f_fengongsi
500
+ // }
501
+ // let ret = this.$GetSaleParam.getPrice(params)
502
+ // //tag
503
+ // ret.forEach((item, index) => {
504
+ // rs.push({label: item.label, value: item.value.f_price_id})
505
+ // })
506
+ // }
507
+ // //tag
508
+ // return rs
509
+ // },
510
+ aroundmeters () {
511
+ return this.$appdata.getParam('左右表')
512
+ },
513
+ // gasproperties () {
514
+ // let rs = []
515
+ // if (this.model.f_user_type) {
516
+ // rs = this.$appdata.getParam(this.model.f_user_type)
517
+ // }
518
+ // return rs
519
+ // },
520
+ valid(){
521
+ this.savevalid.uservalid = this.$v.valid
522
+ return this.$v.valid
523
+ }
524
+ }
525
+ }
526
+ </script>
527
+ <style lang="less">
528
+ .class-erro {
529
+ color: #a94442;
530
+ }
531
+ </style>
532
+