sale-client 3.6.503 → 3.6.504-2

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.
@@ -1,7 +1,7 @@
1
1
  var path = require('path')
2
2
  var checkVersion = require('./versionCheck.js')
3
3
  checkVersion()
4
- const [ serverRul, localUrl, v4Url ] = ['http://192.168.50.67:30785/', 'http://localhost:8080/', 'http://192.168.50.67:30785']
4
+ const [ serverRul, localUrl, v4Url ] = ['http://192.168.50.67:31567/', 'http://localhost:8080/', 'http://192.168.50.67:31567']
5
5
  var merge = require('webpack-merge')
6
6
  var baseConfig = require('./webpack.dev.conf')
7
7
  var devConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.503",
3
+ "version": "3.6.504-2",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -336,8 +336,11 @@ var data
336
336
  this.model.f_bill_operator = this.$login.f.name
337
337
  }
338
338
  this.$resetpost('rs/logic/saveing', {data: {recordlist: this.recordList, newData: this.model}}).then((res) => {
339
- console.log('this.model', this.model)
339
+ console.log('this.model:', this.model)
340
+ this.recordList = []
341
+ console.log('this.recordList:', this.recordList)
340
342
  })
343
+ this.recordList = []
341
344
  this.$dispatch('close')
342
345
  }
343
346
  },
@@ -93,9 +93,10 @@
93
93
  value-single="true"
94
94
  :value.sync="model.f_gasproperties"
95
95
  style="width:60%"
96
+ multiple
96
97
  v-model="model.f_gasproperties"
97
98
  :options='$parent.$parent.Gasproperties'
98
- close-on-select condition="f_gasproperties ='{}'">
99
+ close-on-select condition="f_gasproperties in {}">
99
100
  </v-select>
100
101
  </div>
101
102
  <div class="col-sm-2 form-group">
@@ -114,13 +115,13 @@
114
115
  <label class="font_normal_body">气表品牌</label>
115
116
  <v-select
116
117
  placeholder='气表品牌'
117
-
118
+ multiple
118
119
  :value.sync="model.f_gasbrand"
119
120
  style="width:60%"
120
121
  v-model="model.f_gasbrand"
121
122
  :options='$parent.$parent.meterbrand'
122
123
  close-on-select
123
- condition="f_meter_brand='{}'">
124
+ condition="f_meter_brand in {}">
124
125
  </v-select>
125
126
  </div>
126
127
  <div class="col-sm-2 form-group">
@@ -0,0 +1,548 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="span" style="overflow-y: auto;">
4
+ <validator name='v'>
5
+ <form novalidate class="form-horizontal">
6
+ <div class="row" style="margin-top:10px;">
7
+ <div class="col-sm-4" :class="[$v.f_newuser_name.required ? 'has-error' : 'has-success']">
8
+ <label for="f_newuser_name" id="label" class="font_normal_body" >*新&ensp;姓&ensp;名</label>
9
+ <input class="input_search" style="width:60%" type="text" title="新姓名" v-model="model.f_newuser_name"
10
+ v-validate:f_newuser_name='{required: true }' placeholder="新姓名" v-next-el='phone'>
11
+ <!-- <label v-if="$v.f_newuser_name.required && namespan" class = "" style = "color:red">不能为空</label> -->
12
+ </div>
13
+ <div class="col-sm-4" :class="[$v.f_newuser_phone.required ? 'has-error' : '']">
14
+ <label id="label" for="f_newuser_phone" class="font_normal_body">*新&ensp;电&ensp;话</label>
15
+ <input title="新电话" class="input_search" style="width:60%" type="text" v-model="model.f_newuser_phone" maxlength="11"
16
+ v-validate:f_newuser_phone='{required: true}'
17
+ placeholder="新电话" v-next-el='number' v-el:phone>
18
+ </div>
19
+ <div class="col-sm-4" :class="[$v.f_newrent_phone.required ? 'has-error' : '']">
20
+ <label id="label" for="f_newrent_phone" class="font_normal_body">&nbsp;备用电话</label>
21
+ <!--v-validate:f_newrent_phone='{required: false}'-->
22
+ <input title="备用电话" class="input_search" style="width:60%" type="text" v-model="model.f_newrent_phone" maxlength="11"
23
+
24
+ placeholder="备用电话" v-next-el='number' v-el:phone>
25
+ </div>
26
+ <div class="col-sm-4">
27
+ <label for="f_credentials" id="label" class="font_normal_body">&nbsp;证件类型</label>
28
+ <v-select :value.sync="model.f_newcredentials"
29
+ :options='credentials' placeholder='证件类型'
30
+ close-on-select></v-select>
31
+ </div>
32
+ <div class="col-sm-8" :class="[$v.f_newidnumber.identityCardValid ? 'has-error' : '']" v-if="model.f_newcredentials[0] === '身份证'">
33
+ <label id="label" class="font_normal_body">*证件号码</label>
34
+ <input type="text" v-model="model.f_newidnumber" maxlength="18" v-validate:f_newidnumber='{identityCardValid: true}' class="input_search" style="width:80%" placeholder="新身份证号">
35
+ </div>
36
+ <div class="col-sm-8" v-if="model.f_newcredentials[0] !== '身份证'">
37
+ <label class="font_normal_body">&nbsp;证件号码</label>
38
+ <input type="text" v-model="model.f_newidnumber" class="input_search" style="width:80%" placeholder="新证件号" >
39
+ </div>
40
+ <div class="col-sm-4">
41
+ <label id="label" for="f_print" class="font_normal_body">&nbsp;打印格式</label>
42
+ <v-select id="print"
43
+ v-model="f_print"
44
+ placeholder='请选择'
45
+ :value.sync="model.f_print"
46
+ :options='printstyle'
47
+ close-on-select clear-button></v-select>
48
+ </div>
49
+ <div class="col-sm-8" >
50
+ <label for="f_contract" class="font_normal_body">&nbsp;合同编号</label>
51
+ <input type="text" v-model="model.f_contract_id" class="input_search" style="width:80%"
52
+ placeholder="合同编号">
53
+ </div>
54
+ </div>
55
+ <div class="row" style="margin-top:10px;">
56
+ <div class="col-sm-4">
57
+ <label id="label" for="f_transfer_fees" class="font_normal_body" title="单值管理:过户费">&nbsp;过&ensp;户&ensp;费</label>
58
+ <input class="input_search" style="width:60%" type="number" v-model="model.f_transfer_fees" placeholder="过户费"
59
+ v-next-el='accopen' v-el:fees >
60
+ </div>
61
+ <div class="col-sm-4" :class="[$v.payment.required ? 'has-error' : '']">
62
+ <label id="label" for="f_paymenttype" class="font_normal_body">&nbsp;付款方式</label>
63
+ <input type="text" v-show="false" v-model="$refs.payment.selectedItems" v-validate:payment='{required: true }'>
64
+ <v-select :value.sync="model.f_payment"
65
+ v-model="model.f_payment"
66
+ :options='payments' placeholder='付款方式'
67
+ v-ref:payment
68
+ close-on-select></v-select>
69
+ </div>
70
+ <div class="col-sm-4">
71
+ <label id="label" for="f_transfer_fees" class="font_normal_body" title="新人口数">&nbsp;新人口数</label>
72
+ <input class="input_search" style="width:60%" type="number" v-model="model.f_new_people_num" placeholder="新人口数"
73
+ v-next-el='accopen' v-el:fees >
74
+ </div>
75
+ </div>
76
+ <div class="row" style="margin-top:10px;" v-if = "bankinfo">
77
+ <div class="col-sm-4">
78
+ <label id="label" for="f_newbank_accopen" class=" font_normal_body">新银行开户名:</label>
79
+ <input class="input_search" style="width:60%" type="text" title="新银行开户名" v-model="model.f_newbank_accopen"
80
+ placeholder="新银行开户名" v-next-el='newbank' v-el:accopen>
81
+ </div>
82
+ <div class="col-sm-8" :class="[$v.f_bank_idnumber.identityCardValid ? 'has-error' : 'has-success']">
83
+ <label for="f_bank_idnumber" class=" font_normal_body" >新开户身份证号</label>
84
+ <input class="input_search" style="width:60%" type="text" title="新开户身份证号" v-model="model.f_bank_idnumber"
85
+ v-validate:f_bank_idnumber='{identityCardValid: true }' placeholder="新开户身份证号">
86
+ </div>
87
+
88
+ </div>
89
+ <div class="row" style="margin-top:10px;" v-if = "bankinfo">
90
+ <div class="col-sm-4">
91
+ <label id="label" for="f_newbank_name" class="font_normal_body">新银行名</label>
92
+ <v-select :value.sync="model.f_newbank_name"
93
+ :options='banknames' placeholder='新银行开户名'
94
+ close-on-select></v-select>
95
+ </div>
96
+ <div class="col-sm-8">
97
+ <label id="label" for="f_newbank_account" class="font_normal_body">新银行账号</label>
98
+ <input class="input_search" style="width:60%" type="text" title="新银行账号" v-model="model.f_newbank_account"
99
+ placeholder="新银行账号" v-el:account>
100
+ </div>
101
+ </div>
102
+ <div class="row" >
103
+ <div class="col-sm-8 form-group">
104
+ <label class="font_normal_body" for="f_taxpayer_id">纳税人识别号</label>
105
+ <input class="input_search" placeholder="纳税人识别号" style="width:70%" type="text"
106
+ v-model="model.f_taxpayer_id" v-next-el="addressphone">
107
+ </div>
108
+ <div class="col-sm-4 form-group">
109
+ <label class="font_normal_body" for="f_paper_name">名&emsp;&emsp;称</label>
110
+ <input class="input_search" placeholder="名称" style="width:60%" type="text" v-el:papername
111
+ v-model="model.f_paper_name" v-next-el="paperaccount">
112
+ </div>
113
+ </div>
114
+ <div class="row">
115
+ <div class="col-sm-8 form-group">
116
+ <label class="font_normal_body" for="f_address_phone">地址电话&emsp;&emsp;</label>
117
+ <input class="input_search" placeholder="地址-电话" style="width:70%" type="text" v-el:addressphone
118
+ v-model="model.f_address_phone" v-next-el="papername">
119
+ </div>
120
+ <div class="col-sm-4 form-group">
121
+ <label class="font_normal_body" for="f_paper_type">票据类型</label>
122
+ <v-select :options='papertype'
123
+ :value-single="true"
124
+ :value.sync="model.f_paper_type" close-on-select
125
+ placeholder='票据类型'></v-select>
126
+ </div>
127
+ </div>
128
+ <div class="row">
129
+ <div class="col-sm-8 form-group">
130
+ <label class="font_normal_body " for="f_paper_account">开户行及账号</label>
131
+ <input class="input_search" placeholder="银行名称" style="width:70%" type="text" v-el:paperaccount
132
+ v-model="model.f_paper_account">
133
+ </div>
134
+ <div class="col-sm-4 form-group">
135
+ <label class="font_normal_body" for="f_contact_user">联系人名</label>
136
+ <input class="input_search" placeholder="联系人姓名" style="width:60%" type="text" v-el:contactuser
137
+ v-model="model.f_contact_user" >
138
+ </div>
139
+ </div>
140
+ <div class="row">
141
+ <div class="col-sm-8 form-group">
142
+ <label class="font_normal_body " for="f_paper_account">推送票据邮箱</label>
143
+ <input class="input_search" placeholder="推送票据邮箱" style="width:70%" type="text" v-el:f_email
144
+ v-model="model.f_email">
145
+ </div>
146
+ </div>
147
+ <div class="row" style="margin-top:10px;">
148
+
149
+ <div class="col-sm-12">
150
+ <label id="label" for="f_comments" class="font_normal_body">&nbsp;备&emsp;&emsp;注</label>
151
+ <input class="input_search" style="width:87%" v-model="model.f_comments"
152
+ placeholder="备注"/>
153
+ </div>
154
+ </div>
155
+ </form>
156
+ <accept-bill :show="acceptprint" :bill-url='acceptUrl' v-on:toggle="close" :data='row' :billdata="printData" @closeaccept="closeAccept" v-ref:acceptbill></accept-bill>
157
+ <validate-bill v-if="hasValidateBill" :data="model" @validate-bill="validateBill"></validate-bill>
158
+ <print-bill :show="print" :bill-config='config' :bill-data='billData' v-on:toggle="close" @printok="printok" :data='row' v-ref:printbill ></print-bill>
159
+ <div style="text-align:right;height:auto;">
160
+ <button style="margin-right:5px;" v-if="this.$login.r.includes('加载过户资料')" class="button_search" @click="loaduser()" >
161
+ 加载过户资料
162
+ </button>
163
+ <button class="button_clear" @click="accept()" v-if="config.hasAcceptance" :disabled='!$v.valid'>受理单</button>
164
+ <button class="button_search" @click="confirm()" :disabled='!$v.valid'>
165
+ 确认
166
+ </button>
167
+ <button class="button_clear" @click="clear()" >
168
+ 取消
169
+ </button>
170
+ </div>
171
+ <!--<upload :blodid="blodid" isremark="true" fusetype="过户"></upload>-->
172
+ <upload :blodid="blodid" v-if="config.showupload" v-on:confirminfo="confirmIdCard" :businessid="randomBusinessId" isremark="true" fusetype="过户管理"></upload>
173
+ </validator>
174
+ </div>
175
+ <modal v-if="loaduserflag" :show.sync="loaduserflag" width="80%" title="过户资产信息" v-ref:modal large backdrop="false">
176
+ <article slot="modal-body" class="modal-body" style="height: 700px;padding: 0!important;">
177
+ <tranfersel-list :f_filialeid.sync="f_filialeid"></tranfersel-list>
178
+ </article>
179
+ <footer slot="modal-footer" class="modal-footer">
180
+ </footer>
181
+ </modal>
182
+ </div>
183
+ </template>
184
+ <script>
185
+ let transfersaveGen = async function (self) {
186
+ try {
187
+ let condition = `f_userinfo_id = '${self.row.f_userinfo_id}'`
188
+ let bank = await self.$SqlService.singleTable('t_infobank', condition)
189
+ self.setbank(bank)
190
+ let res = await self.$LogicService.changeAccount(self.transferdata)
191
+ console.log('过户返回=====>', res)
192
+ if (self.config.showupload) {
193
+ let param = []
194
+ for (let row of self.resid) {
195
+ param.push({id: row.id})
196
+ }
197
+ let data = {
198
+ param: param,
199
+ f_blobid: res.data
200
+ }
201
+ await self.$resetpost('rs/logic/updatefiles', data)
202
+ }
203
+ if (self.config.hasPrint && !self.$login.r.includes('不打印发票')) {
204
+ if (self.model.f_print[0] != '电子发票') {
205
+ if (self.config.hasBillManage) {
206
+ self.row.id = res.data
207
+ self.row.f_bill_type = '过户'
208
+ self.row.f_bill_style = self.model.f_print[0]
209
+ self.print = true
210
+ } else {
211
+ self.row.id = res.data
212
+ self.print = true
213
+ }
214
+ } else if (self.model.f_print[0] === '国税发票') {
215
+ // TODO
216
+ self.$dispatch('success')
217
+ } else if (self.model.f_print[0] === '电子发票') {
218
+ // TODO
219
+ self.$dispatch('success')
220
+ }
221
+ } else {
222
+ self.$dispatch('success')
223
+ }
224
+ } catch (error) {
225
+ self.$showAlert(error, 'danger', 0)
226
+ self.$dispatch('refresh')
227
+ }
228
+ }
229
+
230
+ let asyncTransferManage = async function (self) {
231
+ await self.$getConfig(self, 'TransferManage')
232
+ console.log('过户config', self.config)
233
+ self.model.f_new_people_num = self.config.f_new_people_num
234
+ self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
235
+ self.model.f_payment = [self.config.payment]
236
+ self.mulPrint = self.config.printType instanceof Array
237
+
238
+ // 获取当前票号用
239
+ self.model.f_use_type = self.config.billType
240
+ self.model.f_bill_type = self.model.f_print
241
+ self.hasValidateBill = self.config.hasBillManage
242
+ }
243
+
244
+ export default {
245
+ title: '过户管理',
246
+ props: ['row'],
247
+ data () {
248
+ return {
249
+ config: {
250
+ showupload: true, // 默认显示上传附件
251
+ hasPrint: false, // 默认打票
252
+ hasAcceptance: false,
253
+ hasBillManage: false, // 默认不启用发票管理
254
+ billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
255
+ payment: '现金缴费',
256
+ f_contract_id: '',
257
+ f_new_people_num: 4, //默认人口数
258
+ printType: '普通收据' // 收据/电子票/专用发票/国税发票
259
+ },
260
+ bankinfo: false,
261
+ numspan: false,
262
+ namespan: false,
263
+ phonespan: false,
264
+ randomBusinessId: '',
265
+ resid: [], // 存放新增的f_files表中id
266
+ model: {
267
+ f_contract_id: '',
268
+ f_print: [],
269
+ f_newcredentials: ['身份证'],
270
+ f_payment: [],
271
+ f_paymenttype: ['现金缴费'],
272
+ f_transfer_fees: this.$appdata.getSingleValue('过户费') ? this.$appdata.getSingleValue('过户费') : '',
273
+ // f_transfer_fees: '',
274
+ f_newbank_accopen: '',
275
+ f_newuser_name: '',
276
+ f_newidnumber: '',
277
+ f_new_people_num: 4,
278
+ f_address_phone: '',
279
+ f_paper_type: '',
280
+ f_paper_account: '',
281
+ f_email: '',
282
+ f_contact_user: '',
283
+ f_paper_name: '',
284
+ f_taxpayer_id: '',
285
+ f_newbank_name: ''
286
+ },
287
+ transferdata: {
288
+ userinfo: {}
289
+ },
290
+ print: false,
291
+ printData: {
292
+ username: '',
293
+ userphone: '',
294
+ credentials: '',
295
+ idnumber: ''
296
+ },
297
+ billData: {
298
+ url: 'rs/report/transfer_bill',
299
+ billnumber: ''
300
+ },
301
+ mulPrint: false,
302
+
303
+ // 启用发票管理需要对票号进行验证
304
+ hasValidateBill: false,
305
+ validateOk: false,
306
+
307
+ blodid: '', // 附件
308
+
309
+ acceptprint: false,
310
+ acceptUrl: '',
311
+
312
+ banknames: this.$appdata.getParam('银行名称'),
313
+ costtypes: this.$appdata.getParam('缴费类型'),
314
+ payments: this.$appdata.getParam('付款方式'),
315
+ papertype: this.$appdata.getParam('票据类型'),
316
+ printstyle: this.$appdata.getParam('打印格式'),
317
+ credentials: this.$appdata.getParam('证件类型'),
318
+ loaduserflag: false
319
+ }
320
+ },
321
+ ready () {
322
+ this.model.f_print = [this.config.printType]
323
+ this.blodid = this.row.f_userinfo_id
324
+ this.model.f_taxpayer_id = this.row.f_taxpayer_id
325
+ this.model.f_address_phone = this.row.f_address_phone
326
+ this.model.f_paper_name = this.row.f_paper_name
327
+ this.model.f_paper_account = this.row.f_paper_account
328
+ this.model.f_paper_type = this.row.f_paper_type
329
+ this.model.f_email = this.row.f_email
330
+ this.model.f_contact_user = this.row.f_contact_user
331
+ asyncTransferManage(this)
332
+ this.getRandomId()
333
+ },
334
+
335
+ methods: {
336
+ confirmIdCard (msg) {
337
+ console.log(msg)
338
+ this.model.f_newuser_name = msg.strName
339
+ this.model.f_newidnumber = msg.strID
340
+ },
341
+ getRandomId () {
342
+ this.randomBusinessId = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
343
+ let res = Math.random() * 16 | 0
344
+ let v = c == 'x' ? res : (res & 0x3 | 0x8)
345
+ return v.toString(16)
346
+ })
347
+ },
348
+ //加载过户资料
349
+ loaduser () {
350
+ this.loaduserflag = true
351
+ },
352
+ accept () {
353
+ // 打印受理单
354
+ this.printData.username = this.model.f_newuser_name ? `'${this.model.f_newuser_name}'` : '' + `'${this.model.f_newuser_name}'`
355
+ this.printData.userphone = this.model.f_newuser_phone ? `'${this.model.f_newuser_phone}'` : '' + `'${this.model.f_newuser_phone}'`
356
+ this.printData.credentials = this.model.f_newcredentials ? `'${this.model.f_newcredentials[0]}'` : '' + `'${this.model.f_newcredentials}'`
357
+ this.printData.idnumber = this.model.f_newidnumber ? `'${this.model.f_newidnumber}'` : '' + `'${this.model.f_newidnumber}'`
358
+ console.log('受累单中printData', this.printData)
359
+ this.acceptUrl = 'rs/report/acceptTransfer_bill'
360
+ this.acceptprint = true
361
+ },
362
+ closeAccept () {
363
+ this.acceptprint = false
364
+ },
365
+ // 用户更改信息
366
+ getuserinfo () {
367
+ return {
368
+ f_userinfo_id: this.row.f_userinfo_id,
369
+ f_user_name: this.model.f_newuser_name,
370
+ f_credentials: this.model.f_newcredentials[0],
371
+ f_idnumber: this.model.f_newidnumber ? this.model.f_newidnumber : '',
372
+ f_user_phone: this.model.f_newuser_phone ? this.model.f_newuser_phone : '',
373
+ f_rent_phone: this.model.f_newrent_phone ? this.model.f_newrent_phone : '',
374
+ f_contract_id: this.model.f_contract_id ? this.model.f_contract_id : '',
375
+ f_cost_type: this.model.f_paymenttype[0],
376
+ version: this.row.userinfo_version,
377
+ f_taxpayer_id: this.model.f_taxpayer_id,
378
+ f_address_phone: this.model.f_address_phone,
379
+ f_paper_name: this.model.f_paper_name,
380
+ f_paper_account: this.model.f_paper_account,
381
+ f_email: this.model.f_email,
382
+ f_paper_type: this.model.f_paper_type,
383
+ f_contact_user: this.model.f_contact_user,
384
+ f_people_num: this.model.f_new_people_num ? this.model.f_new_people_num : 0,
385
+ infobank: {
386
+ f_userinfo_id: this.row.f_userinfo_id,
387
+ f_bank_name: this.model.f_newbank_name[0],
388
+ f_bank_accopen: this.model.f_newbank_accopen,
389
+ f_bank_account: this.model.f_newbank_account,
390
+ f_bank_idnumber: this.model.f_bank_idnumber
391
+ }
392
+ }
393
+ },
394
+ changecost (val) {
395
+ if (val[0] === '银行代扣') {
396
+ this.bankinfo = true
397
+ } else {
398
+ this.bankinfo = false
399
+ }
400
+ this.$resetValidation()
401
+ },
402
+ validateBill (val) {
403
+ this.validateOk = val.isOk
404
+ this.billData.bill = val.bill
405
+ },
406
+ printok () {
407
+ this.$dispatch('success')
408
+ },
409
+
410
+ // 过户表及操作表信息
411
+ getOperateInfo () {
412
+ return {
413
+ f_userinfo_id: this.row.f_userinfo_id,
414
+ record_userinfo: this.row.f_userinfo_id,
415
+ f_user_id: this.row.f_user_id,
416
+ f_serial_number: this.model.f_serial_number ? this.model.f_serial_number : '',
417
+ f_userfiles_id: this.row.f_userfiles_id ? this.row.f_userfiles_id : '',
418
+ f_user_name: this.row.f_user_name,
419
+ f_taxpayer_id: this.row.f_taxpayer_id,
420
+ f_address_phone: this.row.f_address_phone,
421
+ f_paper_name: this.row.f_paper_name,
422
+ f_paper_account: this.row.f_paper_account,
423
+ f_email: this.row.f_email,
424
+ f_paper_type: this.row.f_paper_type,
425
+ f_contact_user: this.row.f_contact_user,
426
+ f_user_phone: this.row.f_user_phone ? this.row.f_user_phone : '',
427
+ f_idnumber: this.row.f_idnumber ? this.row.f_idnumber : '',
428
+ f_credentials: this.row.f_credentials ? this.row.f_credentials : '',
429
+ f_payment: this.model.f_payment[0] ? this.model.f_payment[0] : '',
430
+ f_bill_style: this.model.f_print[0] ? this.model.f_print[0] : '',
431
+ f_newuser_name: this.model.f_newuser_name,
432
+ f_newuser_phone: this.model.f_newuser_phone,
433
+ f_newrent_phone: this.model.f_newrent_phone ? this.model.f_newrent_phone : '',
434
+ f_newcredentials: this.model.f_newcredentials[0],
435
+ f_newidnumber: this.model.f_newidnumber ? this.model.f_newidnumber : '',
436
+ f_bank_accopen: null,
437
+ f_bank_name: null,
438
+ f_bank_account: null,
439
+ f_newbank_accopen: this.model.f_newbank_accopen ? this.model.f_newbank_accopen : '',
440
+ f_newbank_name: this.model.f_newbank_name[0] ? this.model.f_newbank_name[0] : '',
441
+ f_newbank_account: this.model.f_newbank_account ? this.model.f_newbank_account : '',
442
+ f_bank_idnumber: this.row.f_bank_idnumber ? this.model.f_bank_idnumber : '',
443
+ f_newbank_idnumber: this.model.f_bank_idnumber ? this.model.f_bank_idnumber : '',
444
+ f_transfer_fees: this.model.f_transfer_fees ? this.model.f_transfer_fees : 0,
445
+ f_old_people_num: this.row.f_people_num ? this.row.f_people_num : 0,
446
+ f_new_people_num: this.model.f_new_people_num ? this.model.f_new_people_num : 0,
447
+ f_newtaxpayer_id: this.model.f_taxpayer_id,
448
+ f_newaddress_phone: this.model.f_address_phone,
449
+ f_newpaper_name: this.model.f_paper_name,
450
+ f_newpaper_account: this.model.f_paper_account,
451
+ f_newemail: this.model.f_email,
452
+ f_newpaper_type: this.model.f_paper_type,
453
+ f_newcontact_user: this.model.f_contact_user,
454
+ f_comments: this.model.f_comments ? this.model.f_comments : '',
455
+ f_operat_type: '过户',
456
+ f_describe: this.$login.f.name + '对用户' + this.row.f_user_name + '进行过户',
457
+ f_state: '有效',
458
+ f_operator: this.$login.f.name,
459
+ f_operatorid: this.$login.f.id,
460
+ f_orgid: this.$login.f.orgid,
461
+ f_orgname: this.$login.f.orgs,
462
+ f_depid: this.$login.f.depids,
463
+ f_depname: this.$login.f.deps,
464
+ f_zoneid: this.$login.f.zoneid ? this.$login.f.zoneid : '',
465
+ f_zones: this.$login.f.zones ? this.$login.f.zones : '',
466
+ deletebank: false
467
+ }
468
+ },
469
+ // 银行信息的设置
470
+ setbank (bank) {
471
+ if (!bank.data[0]) {
472
+ if (this.model.f_paymenttype[0] === '现金缴费') {
473
+ delete this.transferdata.userinfo.infobank
474
+ } else if (this.model.f_paymenttype[0] === '银行代扣') {
475
+ delete this.transferdata.userinfo.infobank.f_userinfo_id
476
+ }
477
+ } else {
478
+ if (this.model.f_paymenttype[0] === '现金缴费') {
479
+ this.transferdata.deletebank = true
480
+ delete this.transferdata.userinfo.infobank
481
+ } else if (this.model.f_paymenttype[0] === '银行代扣') {
482
+ this.transferdata.f_bank_name = bank.data[0].f_bank_name
483
+ this.transferdata.f_bank_accopen = bank.data[0].f_bank_accopen
484
+ this.transferdata.f_bank_account = bank.data[0].f_bank_account
485
+ this.transferdata.f_bank_idnumber = bank.data[0].f_bank_idnumber
486
+ }
487
+ }
488
+ },
489
+ async confirm () {
490
+ try {
491
+ console.log(this.model)
492
+ let data = {
493
+ f_orgid: this.$login.f.orgid
494
+ }
495
+ // 先等待获取合同ID
496
+ let rs = await this.$resetpost('rs/logic/getContractId', data)
497
+ this.model.f_contract_id = rs.data
498
+ this.transferdata = Object.assign({}, this.getOperateInfo())
499
+ console.log(this.transferdata)
500
+ this.newbankname()
501
+ this.transferdata.userinfo = Object.assign({}, this.getuserinfo())
502
+ console.log('过户保存', this.transferdata)
503
+ // 最后再调用保存方法
504
+ await transfersaveGen(this)
505
+ } catch (error) {
506
+ console.error('获取合同ID失败:', error)
507
+ }
508
+ },
509
+ clear () {
510
+ this.$dispatch('refresh')
511
+ },
512
+ close () {
513
+ this.print = false
514
+ this.clear()
515
+ },
516
+ newbankname () {
517
+ if (this.model.f_paymenttype[0] !== '银行代扣') {
518
+ this.model.f_newbank_accopen = null
519
+ }
520
+ }
521
+ },
522
+ events: {
523
+ 'confirmuserfiles' (val) {
524
+ if (val) {
525
+ if (val.buyername != null) this.$set('model.f_newuser_name', val.buyername)
526
+ if (val.buyerphone != null) this.$set('model.f_newuser_phone', val.buyerphone)
527
+ if (val.buyercardno != null) this.$set('model.f_newidnumber', val.buyercardno)
528
+ this.loaduserflag = false
529
+ }
530
+ },
531
+ // 删除Resid数组元素
532
+ 'delResid' (val) {
533
+ this.resid.$remove({id: val, f_biobid: ''})
534
+ // this.resid.splice(this.resid.indexOf({id:val,f_biobid:''}),1);
535
+ },
536
+ // 增加Resid数组元素
537
+ 'resid' (val) {
538
+ this.resid.push({id: val, f_biobid: ''})
539
+ }
540
+ }
541
+ }
542
+ </script>
543
+
544
+ <style scoped>
545
+ #label{
546
+ margin-top: 5px;
547
+ }
548
+ </style>
@@ -75,4 +75,6 @@ export default function () {
75
75
  Vue.component('file-user-essential-info-new', (resolve) => { require(['./FilesManageNew/UserEssentialInfoTest'], resolve) })
76
76
  // 购气撤销
77
77
  Vue.component('card-meter-charge-cancel', (resolve) => { require(['./CardMeterChargeCancel'], resolve) })
78
+ // 过户
79
+ Vue.component('transfer-manage', (resolve) => { require(['./TransferManage'], resolve) })
78
80
  }