sale-client 3.4.110 → 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 (101) hide show
  1. package/.gradle/4.4/fileChanges/last-build.bin +0 -0
  2. package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
  3. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
  4. package/build/dev-server.js +7 -7
  5. package/npm +0 -0
  6. package/package.json +1 -1
  7. package/src/components/FilesManage/MeterinfoTest.vue +0 -1
  8. package/src/components/FilesManage/TemplateManage.vue +167 -167
  9. package/src/components/FilesManage/UserGeneralInfoTest.vue +4 -2
  10. package/src/components/FilesManageNew/UserEssentialInfoTest.vue +1 -1
  11. package/src/components/FilesManageNew/UserGeneralInfoTest.vue +7 -7
  12. package/src/components/charge/business/CardChangeFill.vue +4 -4
  13. package/src/components/charge/business/CardMeterCenter.vue +4 -4
  14. package/src/components/charge/business/FilesComplete.vue +253 -253
  15. package/src/components/charge/business/IOTMeterCenter.vue +801 -801
  16. package/src/components/charge/business/refund/IOTRefund.vue +236 -236
  17. package/src/components/charge/business/refund/RefundManage.vue +28 -28
  18. package/src/components/chargeNew/thirdSurplus.vue +2 -0
  19. package/src/components/meterBook/MeterManger.vue +61 -61
  20. package/src/components/revenue/Common/MeterMessage.vue +184 -184
  21. package/src/components/revenue/HandManager/MeterBookList.vue +488 -488
  22. package/src/components/revenue/HandManager/MeterBookUser.vue +702 -702
  23. package/src/components/revenue/HandManager/OverdueSet.vue +45 -45
  24. package/src/components/revenue/base/leftview/MixPriceInfo.vue +60 -60
  25. package/src/components/revenue/base/leftview/SafeCheck.vue +311 -311
  26. package/src/components/revenue/base/leftview/Stairinfo.vue +156 -156
  27. package/src/components/revenue/base/leftview/meterinfodetail.vue +195 -195
  28. package/src/components/revenue/base/rightview/CardList.vue +477 -478
  29. package/src/components/revenue/comprehen/ComprehenOperation/OtherGas/OtherGas.vue +5 -1
  30. package/src/components/revenue/comprehen/ComprehenOperation/removeTable.vue +1 -1
  31. package/src/components/revenue/comprehen/Maintenance/hand/handListMaintain.vue +33 -10
  32. package/src/components/revenue/comprehen/Maintenance/revenue/StockListmain.vue +7 -7
  33. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackList.vue +1 -1
  34. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackListManage.vue +1 -1
  35. package/src/components/revenue/comprehen/handAudit/MeterReadAudit.vue +342 -342
  36. package/src/components/revenue/comprehen/replacement/replacementHandInfoRecord.vue +155 -155
  37. package/src/components/revenue/comprehen/wechatpay/WeChat.vue +62 -62
  38. package/src/components/revenue/machineHandManage/machineDown.vue +1105 -1105
  39. package/src/components/revenue/machineHandManage/machineHand.vue +1 -5
  40. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +8 -4
  41. package/src/filiale/{weinan → WEINAN}/AutomaticPurse.vue +0 -0
  42. package/src/filiale/{weinan → WEINAN}/CardList.vue +0 -0
  43. package/src/filiale/{weinan → WEINAN}/CardMeterCenter.vue +0 -0
  44. package/src/filiale/{weinan → WEINAN}/CardMeterChargeCancel.vue +0 -0
  45. package/src/filiale/{weinan → WEINAN}/ChangeMeter.vue +0 -0
  46. package/src/filiale/{weinan → WEINAN}/ChargeList.vue +0 -0
  47. package/src/filiale/{weinan → WEINAN}/ChargeManageNew.vue +0 -0
  48. package/src/filiale/{weinan → WEINAN}/ChargeQueryUser.vue +0 -0
  49. package/src/filiale/{weinan → WEINAN}/ChargeRecordQuery.vue +0 -0
  50. package/src/filiale/{weinan → WEINAN}/DisableManage.vue +0 -0
  51. package/src/filiale/{weinan → WEINAN}/EnableManage.vue +0 -0
  52. package/src/filiale/{weinan → WEINAN}/FileAddressManage.vue +0 -0
  53. package/src/filiale/{weinan → WEINAN}/FileUserAddress.vue +0 -0
  54. package/src/filiale/{weinan → WEINAN}/HighMeter.vue +0 -0
  55. package/src/filiale/{weinan → WEINAN}/IOTMeterCenter.vue +0 -0
  56. package/src/filiale/{weinan → WEINAN}/MachineMeterCenter.vue +0 -0
  57. package/src/filiale/{weinan → WEINAN}/MeterMessage.vue +0 -0
  58. package/src/filiale/{weinan → WEINAN}/MeterinfoTest.vue +0 -0
  59. package/src/filiale/{weinan → WEINAN}/OffGasAddGas.vue +0 -0
  60. package/src/filiale/{weinan → WEINAN}/OtherGas.vue +0 -0
  61. package/src/filiale/{weinan → WEINAN}/OverUseCharge.vue +0 -0
  62. package/src/filiale/{weinan → WEINAN}/RecordCancel.vue +0 -0
  63. package/src/filiale/{weinan → WEINAN}/RecordQueryUser.vue +0 -0
  64. package/src/filiale/{weinan → WEINAN}/ReplaceCardManage.vue +0 -0
  65. package/src/filiale/{weinan → WEINAN}/ShowCardSellGas.vue +0 -0
  66. package/src/filiale/{weinan → WEINAN}/Stairinfo.vue +0 -0
  67. package/src/filiale/{weinan → WEINAN}/TransferManage.vue +0 -0
  68. package/src/filiale/{weinan → WEINAN}/UserBaseInfoNew.vue +0 -0
  69. package/src/filiale/{weinan → WEINAN}/UserEssentialInfoTest.vue +0 -0
  70. package/src/filiale/{weinan → WEINAN}/UserGeneralInfoTest.vue +0 -0
  71. package/src/filiale/{weinan → WEINAN}/UserInfoDetailManageNew.vue +0 -0
  72. package/src/filiale/{weinan → WEINAN}/Userinfo.vue +0 -0
  73. package/src/filiale/{weinan → WEINAN}/gasmove.vue +0 -0
  74. package/src/filiale/{weinan → WEINAN}/meterinfodetail.vue +0 -0
  75. package/src/filiale/{weinan → WEINAN}/plugins/FileManageService.js +0 -0
  76. package/src/filiale/{weinan → WEINAN}/plugins/getTimeService.js +0 -0
  77. package/src/filiale/{weinan → WEINAN}/sale.js +0 -0
  78. package/src/filiale/{weinan → WEINAN}/sale.js~Stashed changes +0 -0
  79. package/src/filiale/{weinan → WEINAN}/static/mainicon//347/237/251/345/275/2421828.png +0 -0
  80. package/src/filiale/alashan/PrintBill.vue +116 -116
  81. package/src/filiale/jingwei/CardHand.vue +742 -742
  82. package/src/filiale/macheng/FilesManageNew/FileUserFiles.vue +743 -0
  83. package/src/filiale/macheng/FilesManageNew/UserEssentialInfoTest.vue +21 -1
  84. package/src/filiale/macheng/UserEssentialInfoTest.vue +4 -2
  85. package/src/filiale/meihekou/MeterinfoTest.vue +0 -1
  86. package/src/filiale/meihekou/PrintBill.vue +140 -140
  87. package/src/filiale/meihekou/ReissueBill.vue +322 -322
  88. package/src/filiale/qianneng/FilesManage/MeterinfoTest.vue +0 -1
  89. package/src/filiale/qianneng/HandManager.vue +1838 -1838
  90. package/src/filiale/qianneng/OtherChargeNew.vue +6 -2
  91. package/src/filiale/qianneng/revenue/comprehen/closeaccount/Batchmanage.vue +58 -58
  92. package/src/filiale/qianneng/sale.js +30 -30
  93. package/src/filiale/qingtongxia/UserGeneralInfoTest.vue +538 -533
  94. package/src/filiale/rongcheng/FilesManageNew/UserGeneralInfoTest.vue +608 -608
  95. package/src/filiale/rongchuang/OtherGas.vue +329 -329
  96. package/src/filiale/tongchuan/CardList.vue +482 -482
  97. package/src/filiale/zhongsheng/rightview/CardList.vue +492 -492
  98. package/src/filiale/zhongsheng/wechatpay/WeChatPayDetail.vue +469 -469
  99. package/src/main.js +1 -1
  100. package/src/plugins/CardService.js +1798 -1798
  101. package/src/plugins/ChangeMeterService.js +756 -756
@@ -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>