sale-client 3.4.112 → 3.4.113

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 (93) hide show
  1. package/.gradle/{5.2.1 → 4.4}/fileChanges/last-build.bin +0 -0
  2. package/.gradle/{6.1.1 → 4.4}/fileHashes/fileHashes.bin +0 -0
  3. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
  4. package/build/dev-server.js +3 -3
  5. package/{.gradle/5.2.1/gc.properties → npm} +0 -0
  6. package/package.json +1 -1
  7. package/src/components/FilesManage/MeterinfoTest.vue +904 -905
  8. package/src/components/FilesManage/TemplateManage.vue +167 -167
  9. package/src/components/FilesManage/UserGeneralInfoTest.vue +642 -640
  10. package/src/components/charge/business/CardChangeFill.vue +612 -612
  11. package/src/components/charge/business/CardMeterCenter.vue +899 -899
  12. package/src/components/charge/business/FilesComplete.vue +253 -253
  13. package/src/components/charge/business/refund/IOTRefund.vue +236 -236
  14. package/src/components/charge/business/refund/RefundManage.vue +28 -28
  15. package/src/components/charge/gasloss/gasLossOperate.vue +357 -357
  16. package/src/components/chargeNew/thirdSurplus.vue +2 -0
  17. package/src/components/revenue/Common/MeterMessage.vue +184 -184
  18. package/src/components/revenue/HandManager/MeterBookManage.vue +153 -153
  19. package/src/components/revenue/base/leftview/MixPriceInfo.vue +60 -60
  20. package/src/components/revenue/base/leftview/Mulitinfo.vue +74 -74
  21. package/src/components/revenue/base/leftview/SafeCheck.vue +311 -311
  22. package/src/components/revenue/base/leftview/Stairinfo.vue +156 -156
  23. package/src/components/revenue/base/leftview/meterinfodetail.vue +195 -195
  24. package/src/components/revenue/base/rightview/CardList.vue +477 -477
  25. package/src/components/revenue/comprehen/ComprehenOperation/MeterDisable/DisableManage.vue +93 -93
  26. package/src/components/revenue/comprehen/ComprehenOperation/MeterEnable/EnableManage.vue +184 -184
  27. package/src/components/revenue/comprehen/ComprehenOperation/OtherGas/OtherGas.vue +5 -1
  28. package/src/components/revenue/comprehen/ComprehenOperation/removeTable.vue +1 -1
  29. package/src/components/revenue/comprehen/Maintenance/hand/handListMaintain.vue +638 -638
  30. package/src/components/revenue/comprehen/Maintenance/revenue/StockListmain.vue +7 -7
  31. package/src/components/revenue/comprehen/Message/MessageList.vue +587 -587
  32. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackList.vue +1 -1
  33. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackListManage.vue +1 -1
  34. package/src/components/revenue/comprehen/StairPrice/GasPriceList.vue +303 -303
  35. package/src/components/revenue/comprehen/replacement/replacementHandInfoRecord.vue +155 -155
  36. package/src/components/revenue/comprehen/wechatpay/WeChat.vue +62 -62
  37. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +8 -4
  38. package/src/filiale/alashan/PrintBill.vue +116 -116
  39. package/src/filiale/jingwei/CardHand.vue +742 -742
  40. package/src/filiale/macheng/FilesManageNew/FileUserFiles.vue +743 -0
  41. package/src/filiale/macheng/FilesManageNew/UserEssentialInfoTest.vue +371 -371
  42. package/src/filiale/macheng/FilesManageNew/UserGeneralInfoTest.vue +596 -596
  43. package/src/filiale/macheng/UserEssentialInfoTest.vue +368 -366
  44. package/src/filiale/meihekou/MeterinfoTest.vue +0 -1
  45. package/src/filiale/meihekou/PrintBill.vue +140 -140
  46. package/src/filiale/meihekou/ReissueBill.vue +322 -322
  47. package/src/filiale/qianneng/FilesManage/MeterinfoTest.vue +0 -1
  48. package/src/filiale/qianneng/GasPriceList.vue +330 -330
  49. package/src/filiale/qianneng/HandManager.vue +1838 -1838
  50. package/src/filiale/qianneng/OtherChargeNew.vue +6 -2
  51. package/src/filiale/qianneng/sale.js +30 -32
  52. package/src/filiale/qingtongxia/UserGeneralInfoTest.vue +538 -533
  53. package/src/filiale/rongcheng/FilesManageNew/UserGeneralInfoTest.vue +608 -608
  54. package/src/filiale/rongchuang/OtherGas.vue +329 -329
  55. package/src/filiale/tongchuan/CardList.vue +482 -482
  56. package/src/filiale/tongchuan/MeterinfoTest.vue +892 -892
  57. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/AutomaticPurse.vue +298 -298
  58. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/CardHandRecord.vue +267 -267
  59. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChangeMeterQueryUser.vue +240 -240
  60. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChangeRecord.vue +235 -235
  61. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChargeQueryUser.vue +372 -372
  62. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/DeveiceRecord.vue +251 -251
  63. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/FillCardQueryUser.vue +209 -209
  64. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/HandQueryUser.vue +365 -365
  65. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +252 -252
  66. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/OtherChargeQueryUser.vue +250 -250
  67. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/RecordQueryUser.vue +249 -249
  68. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/TransferQueryUser.vue +222 -222
  69. package/src/filiale/tongchuan/sale.js +107 -107
  70. package/src/filiale/zhongsheng/rightview/CardList.vue +492 -492
  71. package/src/filiale/zhongsheng/wechatpay/WeChatPayDetail.vue +469 -469
  72. package/src/main.js +1 -1
  73. package/src/plugins/CardService.js +1798 -1798
  74. package/src/plugins/ChangeMeterService.js +756 -756
  75. package/src/plugins/FileManageService.js +366 -366
  76. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  77. package/.gradle/6.1.1/executionHistory/executionHistory.bin +0 -0
  78. package/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
  79. package/.gradle/6.1.1/fileChanges/last-build.bin +0 -0
  80. package/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
  81. package/.gradle/6.1.1/gc.properties +0 -0
  82. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  83. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  84. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  85. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  86. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  87. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  88. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  89. package/.gradle/7.1/gc.properties +0 -0
  90. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  91. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  92. package/.gradle/checksums/checksums.lock +0 -0
  93. package/.gradle/vcs-1/gc.properties +0 -0
@@ -1,253 +1,253 @@
1
- <template>
2
- <div class="auto">
3
- <validator name='m'>
4
- <form novalidate class="form-horizontal select-overspread">
5
- <div class="row" style="margin-top:10px;">
6
- <div class="col-sm-4">
7
- <label for="f_user_name" class="font_normal_body ">客户姓名</label>
8
- <input class="input_search " style="width:60%" v-model="model.f_user_name" placeholder='客户姓名' :value="row.f_user_name">
9
- </div>
10
- <div class="col-sm-4">
11
- <label for="f_user_phone" class="font_normal_body ">客户电话</label>
12
- <input class="input_search " style="width:60%" v-model="model.f_user_phone" placeholder='电话' :value="row.f_user_phone">
13
- </div>
14
- <div class="col-sm-4">
15
- <label for="f_idnumber" class="font_normal_body ">证件号码</label>
16
- <input class="input_search " style="width:60%" v-model="model.f_idnumber" placeholder='证件号码' :value="row.f_idnumber">
17
- </div>
18
- </div>
19
- <div class="row" style="margin-top:10px;">
20
- <div class="col-sm-8">
21
- <label for="f_address" class="font_normal_body ">客户地址</label>
22
- <input class="input_search " style="width:80%" v-model="model.f_address" placeholder='客户地址' :value="row.f_address" readonly>
23
- </div>
24
- <div class="col-sm-4">
25
- <label for="f_idnumber" class="font_normal_body ">表&emsp;&emsp;号</label>
26
- <input class="input_search " style="width:60%" v-model="model.f_meternumber" placeholder='表号' :value="row.f_meternumber">
27
- </div>
28
-
29
- </div>
30
- <div class="row" style="margin-top:10px;">
31
-
32
- <div class="col-sm-4">
33
- <label for="f_user_name" class="font_normal_body ">左&ensp;右&ensp;表</label>
34
- <input class="input_search " style="width:60%" v-model="model.f_aroundmeter" placeholder='左右表' :value="row.f_aroundmeter" readonly>
35
- </div>
36
- <div class="col-sm-8">
37
- <label for="f_user_phone" class="font_normal_body ">备&emsp;&emsp;注</label>
38
- <input class="input_search " style="width:80%" v-model="model.f_comments" placeholder='备注' :value="row.f_comments" readonly>
39
- </div>
40
-
41
- </div>
42
- <div class="row" style="margin-top:10px;">
43
-
44
- <div :class="[$m.f_gasbrand_id.required ? 'has-error' : 'has-success']" class="col-sm-4">
45
- <input type="text" v-show="false" v-model="model.f_gasbrand"
46
- v-validate:f_gasbrand_id='{required: true }' >
47
-
48
- <label for="f_gasbrand_id" class=" font_normal_body">气表品牌</label>
49
- <v-select :value.sync="model.f_gasbrand" @change="verifigasbrand()"
50
- :options='meterbrands'
51
- :placeholder="model.f_gasbrand[0]!==null?model.f_gasbrand[0].f_meter_brand:'请选择'"
52
- v-model='model.f_gasbrand'
53
- v-ref:brand
54
- close-on-select>
55
- </v-select>
56
- </div>
57
-
58
-
59
- <div :class="[$m.f_gasmodel_id.required ? 'has-error' : 'has-success']" class="col-sm-4">
60
- <input type="text" v-show="false" v-model="model.f_gasmodel"
61
- v-validate:f_gasmodel_id='{required: true }'>
62
- <label for="f_gasmodel_id" class=" font_normal_body">气表型号</label>
63
- <v-select :value.sync="model.f_gasmodel"
64
- :options='model.f_gasbrand[0].gasmodel'
65
- :placeholder="model.f_gasbrand[0]!==null?model.f_gasbrand[0].f_meter_style:'请选择'"
66
- close-on-select
67
- v-model='model.f_gasmodel'
68
- v-ref:model></v-select>
69
-
70
-
71
- </div>
72
- <div class="col-sm-4" :class="[$m.pricename.required ? 'has-error' : '']">
73
- <input type="text" v-show="false" v-model="model.f_price_name" v-validate:pricename='{required: true }'>
74
- <label class="font_normal_body">气价名称</label>
75
- <v-select :value.sync="model.f_price_name"
76
- v-model="model.f_price_name"
77
- placeholder='气价名称'
78
- :options="getPricenames"
79
- @change="priceChange"
80
- close-on-select v-ref:pricename></v-select>
81
- </div>
82
- <div class="col-sm-4 form-group">
83
- <label class="font_normal_body">&ensp;气价备注</label>
84
- <input type="text" class="input_search" style="width:60%" v-model="model.f_price_comments" placeholder='气价备注' disabled>
85
- </div>
86
-
87
- </div>
88
-
89
- <!--<div class="row" style="margin-top:10px;">-->
90
- <!--<div class="col-sm-4"-->
91
- <!--:class="[$m.gas.required ? 'select-error' : '']">-->
92
- <!--<label for="f_username" class="font_normal_body">用气性质</label>-->
93
- <!--<input type="text" v-show="false" v-model="model.f_gasproperties" v-validate:gas='{required: true }'>-->
94
- <!--<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"-->
95
- <!--:options='gasproperties' placeholder='用气性质'-->
96
- <!--close-on-select v-ref:gas></v-select>-->
97
- <!--</div>-->
98
- <!--<div class="col-sm-4" :class="[$m.type.required ? 'select-error' : '']">-->
99
- <!--<label for="pricetype" class="font_normal_body">气价类型</label>-->
100
- <!--<v-select :value.sync="model.f_price_type" v-model="model.f_price_type"-->
101
- <!--placeholder='气价类型' :options="pricetypes"-->
102
- <!--close-on-select v-ref:type>-->
103
- <!--</v-select>-->
104
- <!--<input type="text" v-show="false" v-model="model.f_price_type" v-validate:type='{required: true }'>-->
105
- <!--</div>-->
106
- <!---->
107
- <!--</div>-->
108
- </form>
109
- <div style="text-align:right;">
110
- <button class="button_search btn-gn" @click="confirm()" :disabled='!$v.valid || validateOk'>确认</button>
111
- <button class="button_clear btn-gn" @click="clean()">取消</button>
112
- </div>
113
- </validator>
114
- </div>
115
- <upload :blodid="blodid" v-if="false" isremark="true" fusetype="档案完善"></upload>
116
- </template>
117
- <script>
118
- export default {
119
- title: '档案完善',
120
- data () {
121
- return {
122
- model: {
123
- f_userfiles_id: '',
124
- f_user_name: '',
125
- f_user_phone: '',
126
- f_idnumber: '',
127
- f_gasproperties: [],
128
- f_gasbrand: [],
129
- f_gasmodel: [],
130
- f_address: '',
131
- f_price_id: '',
132
- f_gasbrand_id: '',
133
- f_gasmodel_id: '',
134
- // f_meter_brand:'',
135
- // f_meter_style:'',
136
- f_price_type: [],
137
- f_price_name: '',
138
- f_price_comments: '',
139
- f_filialeid: '',
140
- f_userinfo_id: ''
141
- },
142
- blodid: '',
143
- showupload: true,
144
- gasproperties: [],
145
- validateOk: false,
146
- pricetypes: this.$appdata.getParam('气价类型')
147
- }
148
- },
149
- props: ['row'],
150
- ready () {
151
- this.blodid = this.row.f_userinfo_id
152
- this.gasproperties = this.$appdata.getParam(this.row.f_user_type)
153
- if (this.row.f_gasproperties) {
154
- this.model.f_gasproperties.push(this.row.f_gasproperties)
155
- }
156
- if (this.row.f_price_type) {
157
- this.model.f_price_type.push(this.row.f_price_type)
158
- }
159
-
160
- if (this.row.f_gasbrand_id) {
161
- this.meterbrands.forEach((val) => {
162
- if (this.row.f_gasbrand_id == val.value.id) {
163
- this.model.f_gasbrand.push(val.value)
164
- }
165
- })
166
- }
167
-
168
- if (this.row.f_gasmodel_id) {
169
- console.log('气表下的型号。。。', this.model.f_gasbrand[0].gasmodel)
170
- this.model.f_gasbrand[0].gasmodel.forEach((res) => {
171
- if (this.row.f_gasmodel_id == res.value.id) {
172
- this.model.f_gasmodel.push(res.value)
173
- }
174
- })
175
- }
176
-
177
- this.model.f_userfiles_id = this.row.f_userfiles_id
178
- this.model.f_user_type = this.row.f_user_type
179
- this.model.f_filialeid = this.$login.f.orgid
180
- this.model.f_userinfo_id = this.row.f_userinfo_id
181
- },
182
- methods: {
183
- priceChange (val) {
184
- if (val.length > 0) {
185
- // 展示气价备注
186
- this.model.f_price_comments = val[0].f_comments ? val[0].f_comments : '无'
187
- }
188
- },
189
- async confirm () {
190
- this.model.f_gasbrand_id = this.model.f_gasmodel[0].f_gasbrand_id
191
- this.model.f_gasmodel_id = this.model.f_gasmodel[0].id
192
- this.model.f_price_id = this.model.f_price_name[0].f_price_id
193
- this.model.f_gasproperties = this.model.f_price_name[0].f_gasproperties
194
- this.model.f_user_type = this.model.f_price_name[0].f_user_type
195
- this.model.f_user_name = this.row.f_user_name
196
- this.model.f_user_phone = this.row.f_user_phone
197
- this.model.f_meter_classify = this.model.f_gasbrand[0].f_meter_type
198
-
199
- this.model.f_operator = this.$login.f.name
200
- this.model.f_operatorid = this.$login.f.id
201
- this.model.f_orgid = this.$login.f.orgid
202
- this.model.f_orgname = this.$login.f.orgs
203
- this.model.f_depid = this.$login.f.depids
204
- this.model.f_depname = this.$login.f.deps
205
-
206
- await this.$resetpost('rs/logic/file_complete', this.model, {resolveMsg: '档案信息已完善成功', rejectMsg: '档案信息完善失败'})
207
- this.clean()
208
- },
209
- clean () {
210
- this.$info('取消操作')
211
- this.$dispatch('refresh', this.row)
212
- },
213
-
214
- printok () {
215
- this.$dispatch('success')
216
- },
217
- validateBill (val) {
218
- this.validateOk = !val.isOk
219
- },
220
-
221
- verifigasbrand () {
222
- this.verifi()
223
- },
224
- verifi () {
225
- if ((this.row == null) && (this.model.f_meternumber) && (this.model.f_gasbrand)) {
226
- veri(this)
227
- }
228
- }
229
- },
230
- computed: {
231
- meterbrands () {
232
- return this.$GetSaleParam.getGasbrand()
233
- },
234
- getPricenames () {
235
- let f_filialeid = this.$login.f.orgid
236
- let result = []
237
- this.$GetSaleParam.prices.forEach((item) => {
238
- if (item.f_state === '有效' && f_filialeid == item.f_filialeid) {
239
- let value = {
240
- label: item.f_price_name,
241
- value: item
242
- }
243
- result.push(value)
244
- }
245
- })
246
- return Array.from(new Set(result))
247
- }
248
- }
249
- }
250
- </script>
251
-
252
- <style>
253
- </style>
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='m'>
4
+ <form novalidate class="form-horizontal select-overspread">
5
+ <div class="row" style="margin-top:10px;">
6
+ <div class="col-sm-4">
7
+ <label for="f_user_name" class="font_normal_body ">客户姓名</label>
8
+ <input class="input_search " style="width:60%" v-model="model.f_user_name" placeholder='客户姓名' :value="row.f_user_name">
9
+ </div>
10
+ <div class="col-sm-4">
11
+ <label for="f_user_phone" class="font_normal_body ">客户电话</label>
12
+ <input class="input_search " style="width:60%" v-model="model.f_user_phone" placeholder='电话' :value="row.f_user_phone">
13
+ </div>
14
+ <div class="col-sm-4">
15
+ <label for="f_idnumber" class="font_normal_body ">证件号码</label>
16
+ <input class="input_search " style="width:60%" v-model="model.f_idnumber" placeholder='证件号码' :value="row.f_idnumber">
17
+ </div>
18
+ </div>
19
+ <div class="row" style="margin-top:10px;">
20
+ <div class="col-sm-8">
21
+ <label for="f_address" class="font_normal_body ">客户地址</label>
22
+ <input class="input_search " style="width:80%" v-model="model.f_address" placeholder='客户地址' :value="row.f_address" readonly>
23
+ </div>
24
+ <div class="col-sm-4">
25
+ <label for="f_idnumber" class="font_normal_body ">表&emsp;&emsp;号</label>
26
+ <input class="input_search " style="width:60%" v-model="model.f_meternumber" placeholder='表号' :value="row.f_meternumber">
27
+ </div>
28
+
29
+ </div>
30
+ <div class="row" style="margin-top:10px;">
31
+
32
+ <div class="col-sm-4">
33
+ <label for="f_user_name" class="font_normal_body ">左&ensp;右&ensp;表</label>
34
+ <input class="input_search " style="width:60%" v-model="model.f_aroundmeter" placeholder='左右表' :value="row.f_aroundmeter" readonly>
35
+ </div>
36
+ <div class="col-sm-8">
37
+ <label for="f_user_phone" class="font_normal_body ">备&emsp;&emsp;注</label>
38
+ <input class="input_search " style="width:80%" v-model="model.f_comments" placeholder='备注' :value="row.f_comments" readonly>
39
+ </div>
40
+
41
+ </div>
42
+ <div class="row" style="margin-top:10px;">
43
+
44
+ <div :class="[$m.f_gasbrand_id.required ? 'has-error' : 'has-success']" class="col-sm-4">
45
+ <input type="text" v-show="false" v-model="model.f_gasbrand"
46
+ v-validate:f_gasbrand_id='{required: true }' >
47
+
48
+ <label for="f_gasbrand_id" class=" font_normal_body">气表品牌</label>
49
+ <v-select :value.sync="model.f_gasbrand" @change="verifigasbrand()"
50
+ :options='meterbrands'
51
+ :placeholder="model.f_gasbrand[0]!==null?model.f_gasbrand[0].f_meter_brand:'请选择'"
52
+ v-model='model.f_gasbrand'
53
+ v-ref:brand
54
+ close-on-select>
55
+ </v-select>
56
+ </div>
57
+
58
+
59
+ <div :class="[$m.f_gasmodel_id.required ? 'has-error' : 'has-success']" class="col-sm-4">
60
+ <input type="text" v-show="false" v-model="model.f_gasmodel"
61
+ v-validate:f_gasmodel_id='{required: true }'>
62
+ <label for="f_gasmodel_id" class=" font_normal_body">气表型号</label>
63
+ <v-select :value.sync="model.f_gasmodel"
64
+ :options='model.f_gasbrand[0].gasmodel'
65
+ :placeholder="model.f_gasbrand[0]!==null?model.f_gasbrand[0].f_meter_style:'请选择'"
66
+ close-on-select
67
+ v-model='model.f_gasmodel'
68
+ v-ref:model></v-select>
69
+
70
+
71
+ </div>
72
+ <div class="col-sm-4" :class="[$m.pricename.required ? 'has-error' : '']">
73
+ <input type="text" v-show="false" v-model="model.f_price_name" v-validate:pricename='{required: true }'>
74
+ <label class="font_normal_body">气价名称</label>
75
+ <v-select :value.sync="model.f_price_name"
76
+ v-model="model.f_price_name"
77
+ placeholder='气价名称'
78
+ :options="getPricenames"
79
+ @change="priceChange"
80
+ close-on-select v-ref:pricename></v-select>
81
+ </div>
82
+ <div class="col-sm-4 form-group">
83
+ <label class="font_normal_body">&ensp;气价备注</label>
84
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_price_comments" placeholder='气价备注' disabled>
85
+ </div>
86
+
87
+ </div>
88
+
89
+ <!--<div class="row" style="margin-top:10px;">-->
90
+ <!--<div class="col-sm-4"-->
91
+ <!--:class="[$m.gas.required ? 'select-error' : '']">-->
92
+ <!--<label for="f_username" class="font_normal_body">用气性质</label>-->
93
+ <!--<input type="text" v-show="false" v-model="model.f_gasproperties" v-validate:gas='{required: true }'>-->
94
+ <!--<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"-->
95
+ <!--:options='gasproperties' placeholder='用气性质'-->
96
+ <!--close-on-select v-ref:gas></v-select>-->
97
+ <!--</div>-->
98
+ <!--<div class="col-sm-4" :class="[$m.type.required ? 'select-error' : '']">-->
99
+ <!--<label for="pricetype" class="font_normal_body">气价类型</label>-->
100
+ <!--<v-select :value.sync="model.f_price_type" v-model="model.f_price_type"-->
101
+ <!--placeholder='气价类型' :options="pricetypes"-->
102
+ <!--close-on-select v-ref:type>-->
103
+ <!--</v-select>-->
104
+ <!--<input type="text" v-show="false" v-model="model.f_price_type" v-validate:type='{required: true }'>-->
105
+ <!--</div>-->
106
+ <!---->
107
+ <!--</div>-->
108
+ </form>
109
+ <div style="text-align:right;">
110
+ <button class="button_search btn-gn" @click="confirm()" :disabled='!$v.valid || validateOk'>确认</button>
111
+ <button class="button_clear btn-gn" @click="clean()">取消</button>
112
+ </div>
113
+ </validator>
114
+ </div>
115
+ <upload :blodid="blodid" v-if="false" isremark="true" fusetype="档案完善"></upload>
116
+ </template>
117
+ <script>
118
+ export default {
119
+ title: '档案完善',
120
+ data () {
121
+ return {
122
+ model: {
123
+ f_userfiles_id: '',
124
+ f_user_name: '',
125
+ f_user_phone: '',
126
+ f_idnumber: '',
127
+ f_gasproperties: [],
128
+ f_gasbrand: [],
129
+ f_gasmodel: [],
130
+ f_address: '',
131
+ f_price_id: '',
132
+ f_gasbrand_id: '',
133
+ f_gasmodel_id: '',
134
+ // f_meter_brand:'',
135
+ // f_meter_style:'',
136
+ f_price_type: [],
137
+ f_price_name: '',
138
+ f_price_comments: '',
139
+ f_filialeid: '',
140
+ f_userinfo_id: ''
141
+ },
142
+ blodid: '',
143
+ showupload: true,
144
+ gasproperties: [],
145
+ validateOk: false,
146
+ pricetypes: this.$appdata.getParam('气价类型')
147
+ }
148
+ },
149
+ props: ['row'],
150
+ ready () {
151
+ this.blodid = this.row.f_userinfo_id
152
+ this.gasproperties = this.$appdata.getParam(this.row.f_user_type)
153
+ if (this.row.f_gasproperties) {
154
+ this.model.f_gasproperties.push(this.row.f_gasproperties)
155
+ }
156
+ if (this.row.f_price_type) {
157
+ this.model.f_price_type.push(this.row.f_price_type)
158
+ }
159
+
160
+ if (this.row.f_gasbrand_id) {
161
+ this.meterbrands.forEach((val) => {
162
+ if (this.row.f_gasbrand_id == val.value.id) {
163
+ this.model.f_gasbrand.push(val.value)
164
+ }
165
+ })
166
+ }
167
+
168
+ if (this.row.f_gasmodel_id) {
169
+ console.log('气表下的型号。。。', this.model.f_gasbrand[0].gasmodel)
170
+ this.model.f_gasbrand[0].gasmodel.forEach((res) => {
171
+ if (this.row.f_gasmodel_id == res.value.id) {
172
+ this.model.f_gasmodel.push(res.value)
173
+ }
174
+ })
175
+ }
176
+
177
+ this.model.f_userfiles_id = this.row.f_userfiles_id
178
+ this.model.f_user_type = this.row.f_user_type
179
+ this.model.f_filialeid = this.$login.f.orgid
180
+ this.model.f_userinfo_id = this.row.f_userinfo_id
181
+ },
182
+ methods: {
183
+ priceChange (val) {
184
+ if (val.length > 0) {
185
+ // 展示气价备注
186
+ this.model.f_price_comments = val[0].f_comments ? val[0].f_comments : '无'
187
+ }
188
+ },
189
+ async confirm () {
190
+ this.model.f_gasbrand_id = this.model.f_gasmodel[0].f_gasbrand_id
191
+ this.model.f_gasmodel_id = this.model.f_gasmodel[0].id
192
+ this.model.f_price_id = this.model.f_price_name[0].f_price_id
193
+ this.model.f_gasproperties = this.model.f_price_name[0].f_gasproperties
194
+ this.model.f_user_type = this.model.f_price_name[0].f_user_type
195
+ this.model.f_user_name = this.row.f_user_name
196
+ this.model.f_user_phone = this.row.f_user_phone
197
+ this.model.f_meter_classify = this.model.f_gasbrand[0].f_meter_type
198
+
199
+ this.model.f_operator = this.$login.f.name
200
+ this.model.f_operatorid = this.$login.f.id
201
+ this.model.f_orgid = this.$login.f.orgid
202
+ this.model.f_orgname = this.$login.f.orgs
203
+ this.model.f_depid = this.$login.f.depids
204
+ this.model.f_depname = this.$login.f.deps
205
+
206
+ await this.$resetpost('rs/logic/file_complete', this.model, {resolveMsg: '档案信息已完善成功', rejectMsg: '档案信息完善失败'})
207
+ this.clean()
208
+ },
209
+ clean () {
210
+ this.$info('取消操作')
211
+ this.$dispatch('refresh', this.row)
212
+ },
213
+
214
+ printok () {
215
+ this.$dispatch('success')
216
+ },
217
+ validateBill (val) {
218
+ this.validateOk = !val.isOk
219
+ },
220
+
221
+ verifigasbrand () {
222
+ this.verifi()
223
+ },
224
+ verifi () {
225
+ if ((this.row == null) && (this.model.f_meternumber) && (this.model.f_gasbrand)) {
226
+ veri(this)
227
+ }
228
+ }
229
+ },
230
+ computed: {
231
+ meterbrands () {
232
+ return this.$GetSaleParam.getGasbrand()
233
+ },
234
+ getPricenames () {
235
+ let f_filialeid = this.$login.f.orgid
236
+ let result = []
237
+ this.$GetSaleParam.prices.forEach((item) => {
238
+ if (item.f_state === '有效' && f_filialeid == item.f_filialeid) {
239
+ let value = {
240
+ label: item.f_price_name,
241
+ value: item
242
+ }
243
+ result.push(value)
244
+ }
245
+ })
246
+ return Array.from(new Set(result))
247
+ }
248
+ }
249
+ }
250
+ </script>
251
+
252
+ <style>
253
+ </style>