sale-client 4.2.34 → 4.2.36

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 (98) hide show
  1. package/build/dev-server.js +42 -28
  2. package/package.json +1 -1
  3. package/src/App.vue +1 -1
  4. package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
  5. package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
  6. package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
  7. package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
  8. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +970 -970
  9. package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
  10. package/src/filiale/bayan/ChargeList.vue +1010 -1010
  11. package/src/filiale/bayan/StockListmain.vue +543 -543
  12. package/src/filiale/bazhong/UserInfoDetailManageNew.vue +245 -0
  13. package/src/filiale/bazhong/ic_detail/ChangeMeterQueryUser.vue +370 -0
  14. package/src/filiale/bazhong/sale.js +8 -0
  15. package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
  16. package/src/filiale/fugou/FileManageService.js +1 -1
  17. package/src/filiale/jinhuang/WebHand.vue +1026 -1026
  18. package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
  19. package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
  20. package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
  21. package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -508
  22. package/src/filiale/rongcheng/business/CardMeterCenter.vue +455 -455
  23. package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
  24. package/src/filiale/ronghao/CardService.js +2144 -2144
  25. package/src/filiale/ronghao/InsuranceManage.vue +58 -58
  26. package/src/filiale/ronghao/MachineChargeService.js +149 -149
  27. package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
  28. package/src/filiale/ronghao/PaymentCode.vue +174 -174
  29. package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
  30. package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
  31. package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
  32. package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
  33. package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
  34. package/src/filiale/ronghao/Upload.vue +654 -654
  35. package/src/filiale/ronghao/cardDown.vue +1141 -1141
  36. package/src/filiale/ronghao/changemeterOperate.vue +315 -315
  37. package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
  38. package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
  39. package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
  40. package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
  41. package/src/filiale/ronghao/machineDown.vue +1176 -1176
  42. package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
  43. package/src/filiale/ronghao/specificInformation.vue +537 -537
  44. package/src/filiale/yangchun/ChargeList.vue +954 -954
  45. package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
  46. package/src/filiale/zhongsheng/BlackListList.vue +293 -293
  47. package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
  48. package/src/main.js +1 -1
  49. package/src/plugins/CardService.js +2217 -2217
  50. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  51. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  52. package/.gradle/5.2.1/gc.properties +0 -0
  53. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  54. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  55. package/.gradle/vcs-1/gc.properties +0 -0
  56. package/src/components/FilesManage/addressts/FileUserFilests.vue +0 -671
  57. package/src/components/FilesManage/ncUserinfoList.vue +0 -315
  58. package/src/components/SellGasCharge/MeterCharge/CardDataRewrite.vue +0 -107
  59. package/src/components/SendCard/SendCardData.vue +0 -208
  60. package/src/components/accounts/accountAdd.vue +0 -276
  61. package/src/components/accounts/accountsList.vue +0 -183
  62. package/src/components/accounts/accountsManage.vue +0 -87
  63. package/src/components/common/chargeinfo/chargeinfo.vue +0 -55
  64. package/src/components/common/userinfo_detail/config/exportConfig.js +0 -85
  65. package/src/components/ncarchives/ncArchivesAdd.vue +0 -468
  66. package/src/components/ncarchives/ncArchivesList.vue +0 -159
  67. package/src/components/ncarchives/ncUserfilesList.vue +0 -373
  68. package/src/components/ncarchives/ncarchivesmanage.vue +0 -80
  69. package/src/components/revenue/IOTArrears/arrears.vue +0 -323
  70. package/src/components/revenue/IOTArrears/iotRechargeAudit.vue +0 -369
  71. package/src/components/revenue/base/rightview/carddetail/cardiotfeeChangeDetail.vue +0 -59
  72. package/src/components/revenue/base/rightview/carddetail/reduceChangeDetail.vue +0 -59
  73. package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchCancellationts.vue +0 -73
  74. package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchEnablets.vue +0 -73
  75. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/ReduceAddGas.vue +0 -199
  76. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionManage.vue +0 -24
  77. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionYSManage.vue +0 -24
  78. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeDeduction.vue +0 -185
  79. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeYSDeduction.vue +0 -185
  80. package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeFlowMeter.vue +0 -356
  81. package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/CorrectionMeter.vue +0 -148
  82. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackUserList.vue +0 -136
  83. package/src/components/revenue/recordMainten/sellinggas/AddWarehousemain.vue +0 -65
  84. package/src/components/revenue/recordMainten/sellinggas/MeterOperateAdd.vue +0 -483
  85. package/src/components/revenue/recordMainten/sellinggas/MeterOperatemain.vue +0 -279
  86. package/src/components/revenue/recordMainten/sellinggas/MeterOperatemainImport.vue +0 -265
  87. package/src/components/thirdapply/thirdAdd.vue +0 -289
  88. package/src/components/thirdapply/thirdList.vue +0 -162
  89. package/src/components/thirdapply/thirdManage.vue +0 -74
  90. package/src/components/webMeter/InstructQuery.vue +0 -414
  91. package/src/components/webMeter/ParamSet/ParamSet.vue +0 -556
  92. package/src/components/webMeter/ParamSet/ParamSetForm.vue +0 -296
  93. package/src/components/webMeter/WebUserHand.vue +0 -483
  94. package/src/components/webMeter/instructionView/NewQueryInstruct.vue +0 -509
  95. package/src/components/webMeter/instructionView/NewQueryInstructMain.vue +0 -48
  96. package/src/components/webMeter/webManage/NewMeterList.vue +0 -461
  97. package/src/plugins/FileManageServicets.js +0 -214
  98. package/src/plugins/GetImg.js +0 -53
@@ -1,85 +0,0 @@
1
- export default{
2
- RecordField:{
3
- "f_userinfo_code":"客户编号","f_user_name":"客户名称",
4
- "gas":"气量","fee":"应交","f_collection":"收款","type":"操作类型","f_operate_date":"操作时间","f_operator":"操作员","f_instruct_type":"指令类型","f_instruct_state":"指令执行状态","f_instruct_date":"指令生成时间","f_send_date":"指令发送时间","f_callback_date":"指令上表时间","f_receive_state":"指令返回状态","note":"备注"
5
- },
6
- RecordField2:{
7
- "f_userinfo_code":"客户编号","f_user_name":"客户名称",
8
- "gas":"气量","fee":"应交","f_collection":"收款","type":"操作类型","f_operate_date":"操作时间","f_operator":"操作员","note":"备注"
9
- },
10
- InstructField:{
11
- "f_userinfo_code":"客户编号","f_user_name":"客户名称",
12
- "f_instruct_type":"指令类型","f_instruct_state":"指令状态","f_instruct_date":"指令生成时间","f_send_date":"指令发送时间",
13
- "f_callback_date":"指令上表时间","f_operate_date":"操作时间(记录)","f_type":"操作类型","f_state":"操作状态","f_operator":"操作人(记录)",
14
- "f_operator_data":"操作信息",
15
- "f_inputtor":"操作人","f_info":"备注信息"
16
- },
17
- chargeField:{
18
- "f_userinfo_code":"客户编号","f_user_name":"客户名称",
19
- "f_preamount":"购气金额","f_pregas":"购气量","f_collection":"收款","f_operator":"操作员","f_orgname":"分公司","f_depname":"营业厅",
20
- "f_operate_date":"缴费时间","f_comments":"备注"
21
- },
22
- fillgasField:{
23
- "f_userinfo_code":"客户编号","f_user_name":"客户名称",
24
- "f_pregas":"补气量","f_preamount":"补气金额","f_type":"补气类型","f_comments":"补气原因",
25
- "f_operator":"操作人","f_operate_date":"补气日期"
26
- },
27
- changeMeterField:{
28
- "f_userinfo_code":"客户编号","f_user_name":"客户名称",
29
- "f_type":"换表类型","f_using_base_old":"旧表底数","f_remanent_gas":"旧表剩余","f_meter_brand_old":"旧表品牌",
30
- "f_meter_brand":"新表品牌","f_meternumber_old":"旧表号","f_flowmeternumber_old":"旧流量计表号","f_meternumber":"新表号","f_flowmeternumber":"新流量计表号","f_changemeter_fee":"换表费",
31
- "f_operator":"操作人","f_operate_date":"换表日期","f_comments":"换表原因","f_othereason":"其他原因"
32
- },
33
- otherchargeField:{
34
- "f_userinfo_code":"客户编号","f_user_name":"客户名称",
35
- "f_collection":"收款","f_operator":"操作员","f_operate_date":"操作日期","f_comments":"备注"
36
- },
37
- tranferQueryField:{
38
- "f_userinfo_code":"用户编号",
39
- "f_user_name":"原用户姓名","f_newuser_name":"新用户姓名","f_user_phone":"原用户电话","f_newuser_phone":"新用户电话",
40
- "f_transfer_fees":"过户费","f_operator":"操作人","f_operate_date":"过户日期","f_comments":"备注"
41
- },
42
- pricechangeQueryField:{
43
- "f_userinfo_code":"用户编号","f_user_name":"客户名称",
44
- "newprice":"新气价信息","oldprice":"旧气价信息","f_perform_date":"生效时间","f_operate_date":"操作时间",
45
- "f_operator":"操作人"
46
- },
47
- changeRecordField:{
48
- "f_userinfo_code":"用户编号","f_user_name":"客户名称",
49
- "f_field_name":"修改内容","f_used_content":"旧值","f_new_content":"新值","f_operator":"操作人",
50
- "f_operate_date":"操作日期"
51
- },
52
- fillcardQueryField:{
53
- "f_userinfo_code":"用户编号","f_user_name":"客户名称",
54
- "f_card_id":"卡号","f_meter_brand":"气表品牌","f_ispick_table":"是否过表","f_comments":"补卡原因",
55
- "f_cardfees":"卡费","f_operator":"操作人","f_operate_date":"补卡日期"
56
- },
57
- handqueryField:{
58
- "f_userinfo_code":"用户编号","f_user_name":"客户名称",
59
- "f_last_tablebase":"上期底数","f_tablebase":"本期底数","f_oughtamount":"用气量","f_oughtfee":"用气金额","f_balance":"上期余额","f_curbalance":"本期余额",
60
- "f_detailprice":"结算明细","f_hand_date":"结算日期","f_inputtor":"抄表员"
61
- },
62
- watchcollectionField:{
63
- "f_userinfo_code":"用户编号","f_user_name":"客户名称",
64
- "f_hand_date":"上报日期","f_meterbalanceamt":"表内剩余金额","f_tablebase":"本次抄表底数",
65
- "f_valvestate":"阀门状态","f_upload_type":"上报类型","f_insert_date":"系统接收时间","f_meterdebitamt":"表内累计充值金额",
66
- "f_signal":"噪音强度","f_snr":"信噪比","f_batterylevel":"电压","f_lowlithiumbattery":"电压状态",
67
- "f_networkshutvalve":"阀门强制状态","f_wmprepaytype":"计量类型", "flowmeterpressure": "压力",
68
- "flowmetertemperature": "温度", "operatingmodeflow": "标况流量", "standardconditionflow": "工况流量", "operatingmodetotal": "标况总量量",
69
- "standardconditiontotal": "工况总量量", "f_moneystate":"金额状态","f_nsturalgas_data":"累计用气金额","curentPrice":"当前单价"
70
- },
71
- iotArrearsField:{
72
- "f_userinfo_code":"用户编号","f_user_name":"用户姓名/单位名称","f_user_state":"用户状态","f_meternumber":"表号",
73
- "f_user_type":"用户类型","f_gasproperties":"用气性质","f_meter_classify":"气表分类","f_meter_base":"气表底数",
74
- "f_table_state":"表状态","f_balance_amount":"剩余金额","f_money_state":"费用状态","f_meter_brand":"气表品牌","f_address":"地址"
75
- },
76
- iotrechargeaudit:{
77
- "f_userinfo_code":"客户编号","f_user_name":"客户名称","f_user_state":"客户状态","f_meternumber":"表号",
78
- "f_user_type":"用户类型","f_gasproperties":"用气性质","f_meter_brand":"气表品牌","f_address":"客户地址",
79
- "f_meter_classify":"气表类型","f_table_state":"气表状态","f_meter_base":"气表读数",
80
- "f_total_fee":"当前表累购","fillmoney":"补气金额(旧表)","allmoney":"当前表累购金额(记录合计)","f_total_usegas_amount":"累用金额",
81
- "f_balance_amount":"剩余金额","f_meteread_date":"最后上报时间","f_hand_date":"最后结算时间","name":"所属组织"
82
- }
83
-
84
-
85
- }
@@ -1,468 +0,0 @@
1
- <template>
2
- <div class="span">
3
- <validator name='v'>
4
- <div class="form-horizontal select-overspread container-fluid" style="overflow-y: auto">
5
-
6
- <div class="row auto">
7
- <div class="col-sm-12 bg-info text-center" style="padding: 4px;font-size: 18px;font-weight: bold">
8
- <span >NC客戶基本信息</span>
9
- </div>
10
- <!--基本用户信息-->
11
- <div class="col-sm-12 form-group" :class="[$v.f_user_name.required ? 'has-error' : 'has-success']" >
12
- <label class="font_normal_body">&ensp;NC客户名称</label>
13
- <input type="text" class="input_search" style="width:87%" v-model="areamodel.f_user_name"
14
- v-validate:f_user_name='{required: true }'
15
- placeholder="NC客户名称">
16
- </div>
17
- <div class="col-sm-4 form-group" :class="[$v.f_customer.required ? 'has-error' : 'has-success']">
18
- <label class="font_normal_body">&ensp;NC客户编码</label>
19
- <input type="text" class="input_search" style="width:60%" v-model="areamodel.f_customer"
20
- v-validate:f_customer='{required: true }'
21
- placeholder="NC客户编码">
22
- </div>
23
-
24
-
25
- <div class="col-sm-4 form-group" style="" v-if="true">
26
- <label for="f_user_state" class="font_normal_body">&ensp;NC客户状态</label>
27
- <v-select :value.sync="areamodel.f_user_state" :value-single="true"
28
- disabled="true"
29
- :options='userstates' placeholder='NC客户状态'
30
- close-on-select></v-select>
31
- </div>
32
- <div class="col-sm-4 form-group" style="" :class="[$v.f_user_type.required ? 'has-error' : '']">
33
- <label for="f_user_type" class="font_normal_body">&ensp;*NC客户类型</label>
34
- <input type="text" maxlength="11" v-model="areamodel.f_user_type" v-show="false"
35
- v-validate:f_user_type='{required: true }' v-el:phone v-next-el="area">
36
- <v-select :value.sync="areamodel.f_user_type" :value-single="true"
37
- @change="userTypeChange()"
38
- :options='usertypes' placeholder='客户类型'
39
- close-on-select></v-select>
40
- </div>
41
- </div>
42
- <div class="row auto">
43
- <!--<div class="col-sm-4 form-group" style="" :class="[$v.f_gasproperties.required ? 'has-error' : '']">-->
44
- <!--<label class="font_normal_body">&ensp;用&nbsp;气&nbsp;性&nbsp;质&nbsp;</label>-->
45
- <!--<input type="text" maxlength="11" v-model="areamodel.f_gasproperties" v-show="false"-->
46
- <!--v-validate:f_gasproperties='{required: true }' v-el:phone v-next-el="area">-->
47
- <!--<v-select :value.sync="areamodel.f_gasproperties" v-model="areamodel.f_gasproperties"-->
48
- <!--:options='gasproperties' placeholder='用气性质' :value-single="true"-->
49
- <!--close-on-select></v-select>-->
50
- <!--</div>-->
51
- <div style="" class="col-sm-4 form-group" >
52
- <label for="f_user_phone" class="font_normal_body">&nbsp;联系人电话&nbsp;</label>
53
- <input type="text" maxlength="11" v-model="areamodel.f_user_phone"
54
- class="input_search" style="width:60%"
55
- placeholder="NC客戶电话" v-el:phone v-next-el="area">
56
- </div>
57
- </div>
58
- <div class="row auto">
59
- <div style="" class="col-sm-4 form-group">
60
- <label for="f_credentials" class="font_normal_body">&ensp;证&nbsp;件&nbsp;类&nbsp;型&nbsp;</label>
61
- <v-select id="idCardType" :value.sync="areamodel.f_credentials"
62
- v-model="areamodel.f_credentials"
63
- :options='credentials' placeholder='证件类型'
64
- style="width: 65%"
65
- close-on-select></v-select>
66
- </div>
67
- <div style="" class="col-sm-8 form-group" v-if="areamodel.f_credentials[0] === '身份证'">
68
- <label for="f_idnumber" class="font_normal_body">&ensp;*证&nbsp;件&nbsp;号&nbsp;码&nbsp;</label>
69
- <input type="text" maxlength="18" v-model="areamodel.f_idnumber"
70
- class="input_search" style="width:80%"
71
- placeholder="证件号码">
72
- </div>
73
- <div style="" class="col-sm-8 form-group" v-if="areamodel.f_credentials[0] !== '身份证'">
74
- <label class="font_normal_body">&ensp;证件号码</label>
75
- <input type="text" v-model="areamodel.f_idnumber" class="input_search" style="width:80%"
76
- placeholder="证件号码">
77
- </div>
78
- </div>
79
- <div class="row auto">
80
- <div class="col-sm-12 form-group" >
81
- <label for="f_address" class="font_normal_body">&ensp;NC地址信息</label>
82
- <input type="text" v-model="areamodel.f_address" :value.sync="areamodel.f_address"
83
- class="input_search" style="width: 87%;" placeholder="NC地址信息" >
84
- </div>
85
- </div>
86
- <div class="row auto" style="text-align:right;margin: 10px 37px 0 0;">
87
- <button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
88
- <button class="button_clear button_spacing" @click="cancel()">取消</button>
89
- </div>
90
- <!--用户管理的表具-->
91
- <div class="row auto">
92
- <br />
93
- </div>
94
- <div class="col-sm-12 bg-info text-center" style="height:33px;padding: 4px;font-size: 18px;font-weight: bold; position:relative">
95
- <span >用户关联表具</span>
96
- <button class="button_search button_spacing addmeterc" @click="addmeterinfo">添加表具</button>
97
- </div>
98
- <div class="auto row" style="margin-top:33px;">
99
- <div v-for="row in meterinfo" style="margin: 9px 0;border: 1px solid rgba(100,100,100,0.5);border-radius:10px;">
100
- <div style="width:100%;height:30px;position:relative;">
101
- <span class="glyphicon glyphicon-remove infosshow" @click="deletemeterinfo(row)"></span>
102
- </div>
103
- <div class="row " style="height:50px;margin:5px 0px;padding-left: 15px">
104
- <div class="col-sm-4 form-group">
105
- <label for="f_userinfo_code" class="font_normal_body">客户编号</label>
106
- <input type="text" v-model="row.f_userinfo_code" class="input_search" style="width:60%"
107
- placeholder="表号">
108
- </div>
109
- <div class="col-sm-4 form-group">
110
- <label for="f_user_name" class="font_normal_body">客户姓名</label>
111
- <input type="text" v-model="row.f_user_name" class="input_search" style="width:60%"
112
- placeholder="表号">
113
- </div>
114
- <div class="col-sm-4 form-group">
115
- <label for="f_gasproperties" class="font_normal_body">用气性质</label>
116
- <input type="text" v-model="row.f_gasproperties" class="input_search" style="width:60%"
117
- placeholder="表号">
118
- </div>
119
- </div>
120
- <div class="row " style="height:50px;margin:5px 0px;padding-left: 15px">
121
- <div class="col-sm-4 form-group">
122
- <label for="f_meternumber" class="font_normal_body">表&emsp;&emsp;号</label>
123
- <input type="text" v-model="row.f_meternumber" class="input_search" style="width:60%"
124
- placeholder="表号">
125
- </div>
126
- <div class="col-sm-4 form-group">
127
- <label for="gasbrand" class="font_normal_body">气表品牌</label>
128
- <input type="text" v-model="row.f_meter_brand" class="input_search" style="width:60%"
129
- placeholder="气表品牌">
130
- </div>
131
- <div class="col-sm-4 form-group">
132
- <label for="gasmodel" class="font_normal_body">气表型号</label>
133
- <input type="text" v-model="row.f_meter_style" class="input_search" style="width:60%"
134
- placeholder="气表型号">
135
- </div>
136
- </div>
137
- <div class="row auto" style="height:50px;margin:5px 0px;padding-left: 15px">
138
- <div class="col-sm-4 form-group">
139
- <label for="pricename" class="font_normal_body">气价名称</label>
140
- <input type="text" v-model="row.f_price_name" class="input_search" style="width:60%"
141
- placeholder="气价名称">
142
- </div>
143
- <div class="col-sm-4 form-group">
144
- <label for="pricetype" class="font_normal_body">气价类型</label>
145
- <input type="text" v-model="row.f_price_type" class="input_search" style="width:60%"
146
- placeholder="气价类型">
147
- </div>
148
- <div class="col-sm-4 form-group">
149
- <label for="gasmodel" class="font_normal_body">表&ensp;&ensp;&ensp;&ensp;向</label>
150
- <input type="text" v-model="row.f_aroundmeter" class="input_search" style="width:60%"
151
- placeholder="表向">
152
- </div>
153
- </div>
154
- </div>
155
- </div>
156
-
157
-
158
- </div>
159
- </validator>
160
- <!--<modal v-if="showselectaddress" :show.sync="showselectaddress" width="80%" title="地址信息" v-ref:modal large backdrop="false">-->
161
- <!--<article slot="modal-body" class="modal-body" style="height: 700px;padding: 0!important;">-->
162
- <!--<nc-address-list :is-select="isSelect" :fileinfo="areamodel" :f_filialeid.sync="f_filialeids"-->
163
- <!--@address-valid="doNothing" :showselectaddress.sync="showselectaddress" v-ref:fileaddress ></nc-address-list>-->
164
- <!--</article>-->
165
- <!--<footer slot="modal-footer" class="modal-footer">-->
166
- <!--</footer>-->
167
- <!--</modal>-->
168
- <modal v-if="addmeterinfoshow" :show.sync="addmeterinfoshow" width="80%" title="表具信息" v-ref:modal large backdrop="false">
169
- <article slot="modal-body" class="modal-body" style="height: 700px;padding: 0!important;">
170
- <nc-userfiles-list :is-select="isSelect" :meterinfo="meterinfo" :fileinfo="areamodel" :f_filialeid.sync="f_filialeids" :usertype="areamodel.f_user_type"
171
- @address-valid="doNothing" v-ref:userfilesadd ></nc-userfiles-list>
172
- </article>
173
- <footer slot="modal-footer" class="modal-footer">
174
- </footer>
175
- </modal>
176
-
177
- </div>
178
- </template>
179
-
180
- <script>
181
- import {HttpResetClass} from 'vue-client'
182
-
183
-
184
- let initGen = async function (self) {
185
- await self.initdata()
186
- }
187
-
188
- export default {
189
- title: 'NC档案添加',
190
- data () {
191
- return {
192
- //用户信息
193
- areamodel: {
194
- f_customer: '',
195
- f_user_name:'',
196
- f_address:'',
197
- f_address_id:'',
198
- f_user_state:'正常',
199
- f_user_type:'',
200
- f_gasproperties:'',
201
- f_user_phone:'',
202
- f_credentials:['身份证'],
203
- f_idnumber:''
204
- },
205
- sliceArea: [],
206
- gasproperties: [],
207
- isSelect:false,
208
- showselectaddress:false,
209
- userstates: this.$appdata.getParam('用户状态'),
210
- credentials: this.$appdata.getParam('证件类型'),
211
- addmeterinfoshow:false
212
- }
213
- },
214
- props: ['f_filialeids','f_special', 'areatype','row','operation','meterinfo'],
215
- ready(){
216
- initGen(this)
217
- },
218
- methods: {
219
- userTypeChange () {
220
- this.gasproperties=[]
221
- if(this.areamodel !==null) {
222
- //this.areamodel.f_gasproperties=''
223
-
224
- this.gasproperties = this.$appdata.getParam(this.areamodel.f_user_type)
225
- // this.gasproperties.push({label: '全部', value: ''})
226
- }
227
- else{
228
- this.gasproperties =[{label: '全部', value: ''}]
229
- }
230
- },
231
- //删除拥有表具
232
- async deletemeterinfo(row){
233
- if(this.meterinfo == null || this.meterinfo.length==0 ){
234
- this.$showAlert('当前用户未关联此表具,请检查后操作!','warning',2000);
235
- this.meterinfo = [];
236
- return;
237
- }
238
- if( row.f_userfiles_id == null || row.f_userfiles_id == ''){
239
- this.$showAlert('当前用户表具数据出错,请检查后操作!','warning',2000);
240
- return;
241
- }
242
- let self = this;
243
- this.meterinfo.forEach(async (item)=>{
244
- if(item.f_userfiles_id == null){
245
- return;
246
- }
247
- if(item.f_userfiles_id == row.f_userfiles_id){
248
- self.meterinfo.pop(item);
249
- //档案中去除表具
250
- if(row.f_user_id == null || row.f_userfiles_id == null){
251
- this.$showAlert("表具数据出错,删除失败,请联系管理员!!");
252
- return;
253
- }
254
- let param = {
255
- f_userfiles_id:row.f_userfiles_id,
256
- version: row.version,
257
- f_user_id:row.f_user_id,
258
- f_civill_id:null
259
- }
260
- let sql = `update t_userfiles set f_civill_id= null where f_userfiles_id= ${row.f_userfiles_id}`
261
- await self.$resetpost('rs/logic/runSQL',{data:{sql:sql}},{
262
- resolveMsg: null,
263
- rejectMsg: '删除关联表具失败!'
264
- })
265
- let newparam={
266
- id:self.areamodel.id,
267
- f_meterlen:self.meterinfo.length
268
- }
269
- await self.$resetpost('rs/entity/t_civill',newparam,{
270
- resolveMsg: null,
271
- rejectMsg: '更新关联表具记录信息!'
272
- })
273
- }
274
- })
275
- },
276
- addmeterinfo(){
277
- if(this.areamodel.f_user_type == null || this.areamodel.f_user_type == ''){
278
- this.$showAlert('请选择客户类型','warning',2000);
279
- return;
280
- }
281
- this.addmeterinfoshow = true;
282
- },
283
- // selectaddress() {
284
- // this.showselectaddress = true
285
- // this.isSelect = true
286
- // },
287
- //初始化数据
288
- async initdata(rows){
289
- // 初始化参数
290
- await this.initParams()
291
- //初始化meterinfo
292
- if(this.operation == 'add'){
293
- //当是添加时
294
- this.meterinfo = [];
295
- this.areamodel = {
296
- f_customer: '',
297
- f_user_name:'',
298
- f_address:'',
299
- f_address_id:'',
300
- f_user_state:'正常',
301
- f_user_type:'',
302
- f_gasproperties:'',
303
- f_user_phone:'',
304
- f_credentials:['身份证'],
305
- f_idnumber:''
306
- }
307
- }
308
- if(this.operation == 'modify'){
309
- //如果修改表具,需要获取表具信息
310
- this.areamodel = rows;
311
- let param = {
312
- condition:{
313
- othercondition: ' 1=1 ',
314
- condition: `1=1 and f_orgid='${this.f_filialeids}' and f_civill_id='${rows.id}'`
315
- }
316
- }
317
- let self =this;
318
- //获取用户使用的表具
319
- await this.$resetpost('rs/sql/ncmeterQuery',{data:param},{
320
- resolveMsg: null,
321
- rejectMsg: '获取用户关联表具失败!'
322
- }).then((item)=>{
323
- if(item.data){
324
- item.data.forEach((items)=>{
325
- self.meterinfo.push(items)
326
- })
327
- }
328
- });
329
- }
330
- },
331
- async initParams() {
332
- await this.$LoadParams.loadParam(this.f_filialeids)
333
- },
334
- //根据名字找数据
335
- findbyid(list,name){
336
- var result
337
- list.forEach((row, n) => {
338
- if(name==row.id){
339
- result= row.data
340
- }
341
- })
342
- return result
343
- },
344
- //保存
345
- async confirm(){
346
- await this.savearchives()
347
- this.cleardara()
348
- this.$dispatch('confirm')
349
- },
350
- cancel(){
351
- this.cleardara()
352
- this.$dispatch('cancel')
353
- },
354
- cleardara(){
355
- this.meterinfo=[];
356
- this.areamodel = {
357
- f_customer: '',
358
- f_user_name:'',
359
- f_address:'',
360
- f_address_id:'',
361
- f_user_state:'正常',
362
- f_user_type:'',
363
- f_gasproperties:'',
364
- f_user_phone:'',
365
- f_credentials:['身份证'],
366
- f_idnumber:''
367
- }
368
- },
369
- savearchives(){
370
- //保存非民用用户 this.meterinfo this.areamodel
371
- if(this.f_filialeids == ''){
372
- this.f_filialeids = this.$login.f.orgid;
373
- }
374
- if(this.areamodel.f_credentials instanceof Array){
375
- this.areamodel.f_credentials = this.areamodel.f_credentials.length>0? this.areamodel.f_credentials[0]:''
376
- }
377
- let param = {
378
- meterinfo:this.meterinfo,
379
- archives:this.areamodel,
380
- loginuser:{
381
- f_orgid:this.f_filialeids,
382
- userid:this.$login.f.id,
383
- username:this.$login.f.name
384
- }
385
- }
386
- this.$resetpost('rs/logic/savencarchives',param,{
387
- resolveMsg: '保存成功!',
388
- rejectMsg: '保存失败!'
389
- });
390
- }
391
- },
392
- watch: {
393
- 'areatype'(){
394
- this.initdata()
395
- },
396
- 'f_filialeids'(){
397
- if (this.areamodel.f_filialeid) {
398
- if (this.areamodel.f_filialeid != this.f_filialeids) {
399
- this.$dispatch('cancel')
400
- }
401
- }
402
- this.cleardara()
403
- this.initdata()
404
- }
405
- },
406
- computed: {
407
- usertypes () {
408
- return this.$appdata.getParam('用户类型')
409
- },
410
- f_price_types () {
411
- return this.$appdata.getParam('气价类型')
412
- },
413
-
414
- },
415
- events: {
416
- // 'confirmaddress'(res) {
417
- // console.log('选定地址', res)
418
- // this.showselectaddress = false
419
- // this.areamodel.f_address = res.f_address
420
- // this.areamodel.f_address_id = res.id
421
- // },
422
- async 'confirmuserfiles'(res){
423
- this.addmeterinfoshow = false
424
- console.log("res",res);
425
- this.meterinfo.push(res);
426
- if(this.operation == 'modify'){
427
- await this.savearchives()
428
- }
429
- }
430
- }
431
- }
432
- </script>
433
- <style>
434
- .box {
435
- width: 727px;
436
- height: 175px;
437
- border-radius: 2px;
438
- background-color: #fafafa;
439
- border: 1px solid #999999;
440
- margin-top: 13px;
441
- }
442
- .datapanel {
443
- color: #333;
444
- background-color: white;
445
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
446
- padding: 10px 30px 10px 30px;
447
- border-radius:15px;
448
- }
449
- .infosshow{
450
- height: 50px;text-align: right;
451
- line-height: 27px; padding-right:18px;
452
- font-size: 25px;
453
- width:50px;
454
- cursor:pointer;
455
- color:#000;
456
- position:absolute;
457
- top:0px;
458
- right:2px;
459
- }
460
- .infosshow:hover{
461
- color:#333;
462
- }
463
- .addmeterc{
464
- position:absolute;
465
- right:3px;
466
- top:-3px;
467
- }
468
- </style>