apply-clients 3.4.3 → 3.4.4

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 (79) hide show
  1. package/package.json +1 -1
  2. package/src/AndroidApp.vue +18 -18
  3. package/src/android.js +1 -1
  4. package/src/apply.js +39 -20
  5. package/src/applyAndroid.js +23 -9
  6. package/src/components/android/AppOnetomany.vue +47 -5
  7. package/src/components/android/AppServiceView.vue +745 -566
  8. package/src/components/android/AppSign.vue +154 -142
  9. package/src/components/android/AppTakePic.vue +11 -11
  10. package/src/components/android/AreaSelect/AppQrcodeReader.vue +73 -0
  11. package/src/components/android/AreaSelect/AppResAreaMapGroup.vue +148 -0
  12. package/src/components/android/AreaSelect/AppResAreaSelect.vue +108 -0
  13. package/src/components/android/AreaSelect/AppResAreaSelectGroup.vue +142 -0
  14. package/src/components/android/Function/AppFunctionServiceControl.vue +344 -0
  15. package/src/components/android/Function/AppInstallFunction.vue +366 -0
  16. package/src/components/android/Process/AppExplorationUser.vue +217 -37
  17. package/src/components/android/Process/AppServiceControl.vue +1708 -757
  18. package/src/components/android/Process/Processes/AppAddMaterialScience.vue +477 -0
  19. package/src/components/android/Process/Processes/AppBuildSign.vue +46 -0
  20. package/src/components/android/Process/Processes/AppChargeManagement.vue +637 -0
  21. package/src/components/android/Process/Processes/AppDevicesManagement.vue +519 -0
  22. package/src/components/android/Process/Processes/AppInstallationDetails.vue +482 -456
  23. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +298 -0
  24. package/src/components/android/Process/Processes/selectApply.vue +250 -0
  25. package/src/components/android/Process/Processes/selectUserinfo.vue +182 -0
  26. package/src/components/android/Supervisory/AppProcessSupervisory.vue +205 -71
  27. package/src/components/android/Supervisory/AppSupervisoryCart.vue +156 -121
  28. package/src/components/common/TabButton.vue +149 -0
  29. package/src/components/common/Tabs.vue +67 -0
  30. package/src/components/image/dwg.jpg +0 -0
  31. package/src/components/image/txt.jpg +0 -0
  32. package/src/components/image//345/221/250/345/217/243/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  33. package/src/components/image//350/245/277/345/215/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  34. package/src/components/image//351/203/270/345/237/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  35. package/src/components/image//351/241/271/345/237/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  36. package/src/components/image//351/271/277/351/202/221/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  37. package/src/components/product/ApplyCharge/ApplyChargeList.vue +272 -53
  38. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
  39. package/src/components/product/AreaSelect/MyAreaSelect.vue +423 -0
  40. package/src/components/product/AreaSelect/ResAreaSelect.vue +106 -0
  41. package/src/components/product/AreaSelect/ResAreaSelectGroup.vue +150 -0
  42. package/src/components/product/AreaSelect/utils/EventListener.js +29 -0
  43. package/src/components/product/AreaSelect/utils/coerceBoolean.js +7 -0
  44. package/src/components/product/Function/InstallFunction.vue +3 -2
  45. package/src/components/product/Function/InstallInfoSelect.vue +41 -21
  46. package/src/components/product/Function/Service/FunctionServiceControl.vue +96 -71
  47. package/src/components/product/GaoDeMapComponents/GaoDeMap.vue +231 -0
  48. package/src/components/product/Install/InstallProject.vue +194 -0
  49. package/src/components/product/OldApply/Handle/HandleApply.vue +337 -0
  50. package/src/components/product/OldApply/Monitor/MonitorApply.vue +360 -0
  51. package/src/components/product/OldApply/OldApply.vue +209 -0
  52. package/src/components/product/OldApply/OldApplyMessage.vue +420 -0
  53. package/src/components/product/Onetomany.vue +40 -11
  54. package/src/components/product/Process/ExplorationSelect.vue +495 -417
  55. package/src/components/product/Process/ExplorationUser.vue +145 -94
  56. package/src/components/product/Process/Processes/InstallationDetails.vue +610 -592
  57. package/src/components/product/Process/Processes/Print/printCharge.vue +166 -142
  58. package/src/components/product/Process/Processes/Print/printChargepc.vue +142 -0
  59. package/src/components/product/Process/Processes/Print/printRefund.vue +196 -0
  60. package/src/components/product/Process/Processes/addMaterialScience.vue +454 -0
  61. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +4 -0
  62. package/src/components/product/Process/Processes/chargeManagement.vue +656 -638
  63. package/src/components/product/Process/Processes/devicesManagement.vue +484 -478
  64. package/src/components/product/Process/Processes/selectApply.vue +2 -2
  65. package/src/components/product/Process/Service/ServiceControl.vue +628 -10
  66. package/src/components/product/Process/ShowBackReason.vue +33 -0
  67. package/src/components/product/ServiceView.vue +981 -631
  68. package/src/components/product/Stop/StopApply.vue +26 -30
  69. package/src/components/product/Stop/StopApplyList.vue +27 -25
  70. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +732 -34
  71. package/src/components/product/Supervisory/SupervisoryControl.vue +38 -1
  72. package/src/components/product/Supervisory/SupervisoryList.vue +404 -233
  73. package/src/components/product/Supervisory/SupervisoryhCart.vue +51 -28
  74. package/src/components/product/VueUtils/ApplyUpload.vue +40 -38
  75. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +1090 -0
  76. package/src/components/product/VueUtils/ToolsPage.vue +51 -0
  77. package/src/components/product/VueUtils/Tree.vue +330 -0
  78. package/src/expandcssAndroid.less +362 -879
  79. package/src/main.js +3 -0
@@ -1,757 +1,1708 @@
1
- <template>
2
- <div class="col-sm-12 col-xs-12 p-10">
3
- <accordion one-at-a-time="true">
4
- <panel :header="selectdata.defname" :is-open="true" type="primary">
5
- <app-service-view v-ref:serviceview :data="show_data" v-if="showview"></app-service-view>
6
- </panel>
7
- <panel header="拍照" :is-open="false" type="primary" v-if="selectdata.f_process_id">
8
- <app-take-pic :blobid="selectdata.f_process_id" :defname="selectdata.defname" :isdelete="true" :istakepic="true" :istype="true"></app-take-pic>
9
- </panel>
10
- </accordion>
11
- </div>
12
- </template>
13
- <script>
14
- import Vue from 'vue'
15
- import {HttpResetClass} from 'vue-client'
16
- import {isEmpty} from "../../Util";
17
- // Date格式化
18
- Date.prototype.Format = function (fmt) {
19
- var o = {
20
- 'M+': this.getMonth() + 1, // 月份
21
- 'd+': this.getDate(), //
22
- 'H+': this.getHours(), // 小时
23
- 'm+': this.getMinutes(), //
24
- 's+': this.getSeconds(), //
25
- 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
26
- 'S': this.getMilliseconds() // 毫秒
27
- }
28
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
29
- for (var k in o) {
30
- if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
31
- }
32
- return fmt
33
- }
34
- export default {
35
- title: '报建流程业务控制层',
36
- props: ['selectdata'],
37
- data () {
38
- return {
39
- json_datas: null,
40
- data: null,
41
- show_data: null,
42
- showview: false,
43
- config: {}
44
- }
45
- },
46
- ready () {
47
- this.refurbish()
48
- },
49
- methods: {
50
- async refurbish() {
51
- let data = {
52
- workname: this.selectdata.processname
53
- }
54
-
55
- let res = await this.$resetpost(
56
- `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyGetConfigs`,
57
- {data: data},
58
- {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
59
- )
60
-
61
- this.json_datas = res.data
62
- // this.json_datas = {"start_activity":"报装申请","workflow_xmlfilename":"散户报建流程","activitys":[{"title":"报装申请","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":false,"disabled":false,"required":true},{"label":"报建类型","type":"select","field":"f_apply_type","readonly":true,"required":true,"disabled":true,"placeholder":"请选择","param":true,"options":[]},{"label":"用户名称","type":"input","field":"f_user_name","readonly":false,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":false,"disabled":false,"required":true},{"label":"证件类型","type":"select","field":"f_credentials","readonly":false,"required":true,"disabled":false,"placeholder":"请选择","param":true,"options":[{"label":"身份证","value":"身份证"},{"label":"营业执照","value":"营业执照"}]},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":false,"required":true,"disabled":false},{"label":"片区","type":"select","field":"f_slice_area","readonly":false,"required":true,"disabled":false,"ready":"getSliceArea","options":[]},{"label":"地址类型","type":"select","field":"f_address_type","readonly":false,"required":true,"disabled":false,"onchange":"addressTypeChange","options":[{"label":"民用城区","value":"民用城区"},{"label":"民用农村","value":"民用农村"},{"label":"特殊城区","value":"特殊城区"},{"label":"特殊农村","value":"特殊农村"}]},{"label":"区/县","type":"select","field":"f_pcd","hidden":true,"readonly":false,"required":true,"disabled":false,"ready":"getPcd","onchange":"pcdChange","options":[]},{"label":"街道","type":"select","field":"f_street","hidden":true,"readonly":false,"required":true,"disabled":false,"onchange":"streetChange","options":[]},{"label":"小区","type":"select","field":"f_residential_area","hidden":true,"readonly":false,"required":true,"disabled":false,"options":[]},{"label":"楼号(乡/镇)","type":"input","field":"f_building","hidden":true,"readonly":false,"required":false,"disabled":false},{"label":"单元(村)","type":"input","field":"f_unit","hidden":true,"readonly":false,"required":false,"disabled":false},{"label":"楼层(组)","type":"input","field":"f_floor","hidden":true,"readonly":false,"required":false,"disabled":false},{"label":"门牌号(号)","type":"input","field":"f_room","hidden":true,"readonly":false,"required":false,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":1,"readonly":false,"required":true,"disabled":false},{"label":"预约地址","type":"textarea","field":"f_order_address","rows":1,"readonly":true,"required":false,"disabled":false},{"label":"备注","type":"textarea","field":"f_apply_remarks","rows":2,"readonly":false,"required":false,"disabled":false}],"components":[],"buttons":[{"button_name":"保存"},{"button_name":"勘察","disabled":true},{"button_name":"合同","disabled":true}],"readyEvent":"applyReadyEvent"},{"title":"勘察派工","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":true,"disabled":false,"required":true},{"label":"工程编号","type":"input","field":"f_apply_num","readonly":true,"disabled":false,"required":true},{"label":"报建类型","type":"input","field":"f_apply_type","readonly":true,"required":true,"disabled":false},{"label":"用户编号","type":"input","field":"f_userinfo_code","readonly":true,"disabled":false,"required":true},{"label":"用户名称","type":"input","field":"f_user_name","readonly":true,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":true,"disabled":false,"required":true},{"label":"证件类型","type":"input","field":"f_credentials","readonly":true,"required":true,"disabled":false},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":true,"required":true,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":1,"readonly":true,"required":true,"disabled":false}],"components":[],"buttons":[{"button_name":"保存"},{"button_name":"下发","source":"this.getParentByType($organization$).getChildByName($市场部报装$).getChildren()","button_fields":[{"label":"下发给","type":"select","field":"f_issue_man","placeholder":"请输入","readonly":false,"disabled":false,"required":true,"options":[]}],"disabled":true}]},{"title":"现场勘察","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":true,"disabled":false,"required":true},{"label":"工程编号","type":"input","field":"f_apply_num","readonly":true,"disabled":false,"required":true},{"label":"报建类型","type":"input","field":"f_apply_type","readonly":true,"required":true,"disabled":false},{"label":"用户编号","type":"input","field":"f_userinfo_code","readonly":true,"disabled":false,"required":true},{"label":"用户名称","type":"input","field":"f_user_name","readonly":true,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":true,"disabled":false,"required":true},{"label":"证件类型","type":"input","field":"f_credentials","readonly":true,"required":true,"disabled":false},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":true,"required":true,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":1,"readonly":true,"required":true,"disabled":false},{"label":"勘查结果","type":"textarea","field":"f_prospecting_result","rows":2,"readonly":false,"required":true,"disabled":false}],"components":[],"buttons":[{"button_name":"保存"},{"button_name":"提交","disabled":true}]},{"title":"合同签订","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":true,"disabled":false,"required":true},{"label":"工程编号","type":"input","field":"f_apply_num","readonly":true,"disabled":false,"required":true},{"label":"报建类型","type":"input","field":"f_apply_type","readonly":true,"required":true,"disabled":false},{"label":"用户编号","type":"input","field":"f_userinfo_code","readonly":true,"disabled":false,"required":true},{"label":"用户名称","type":"input","field":"f_user_name","readonly":true,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":true,"disabled":false,"required":true},{"label":"证件类型","type":"input","field":"f_credentials","readonly":true,"required":true,"disabled":false},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":true,"required":true,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":1,"readonly":true,"required":true,"disabled":false},{"label":"合同编号","type":"input","field":"f_contract_number","prefix":"","suffix":null,"placeholder":"请输入","readonly":true,"required":true,"default":"this.selectdata.f_apply_num","eval":true},{"label":"合同金额","type":"number","field":"f_contract_money","placeholder":"0.00","readonly":false,"required":true,"onchange":"contractMoneyChange"},{"label":"追加金额","type":"number","field":"f_add_contract_money","placeholder":"请输入","readonly":true,"required":true,"default":0},{"label":"应交金额","type":"number","field":"f_due_money","placeholder":"请输入","readonly":true,"required":true,"default":0},{"label":"合同签订时间","type":"datepicker","field":"f_contract_date","placeholder":"请选择","readonly":false,"required":true}],"components":[{"title":"补充协议","device":"pc","name":"supplemental-agreement"},{"title":"补充协议","device":"app","name":"app-supplemental-agreement"}],"buttons":[{"button_name":"保存"},{"button_name":"提交","disabled":true}]},{"title":"报装缴费","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":true,"disabled":false,"required":true},{"label":"工程编号","type":"input","field":"f_apply_num","readonly":true,"disabled":false,"required":true},{"label":"报建类型","type":"input","field":"f_apply_type","readonly":true,"required":true,"disabled":false},{"label":"用户编号","type":"input","field":"f_userinfo_code","readonly":true,"disabled":false,"required":true},{"label":"用户名称","type":"input","field":"f_user_name","readonly":true,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":true,"disabled":false,"required":true},{"label":"证件类型","type":"input","field":"f_credentials","readonly":true,"required":true,"disabled":false},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":true,"required":true,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":2,"readonly":true,"required":true,"disabled":false},{"label":"合同编号","type":"input","field":"f_contract_number","placeholder":"","readonly":true,"required":true},{"label":"合同金额","type":"number","field":"f_contract_money","placeholder":"请输入","readonly":true,"required":true},{"label":"追加款","type":"number","field":"f_add_contract_money","placeholder":"请输入","readonly":true,"required":false},{"label":"应交金额","type":"number","field":"f_due_money","placeholder":"请输入","readonly":true,"required":false},{"label":"累计缴费金额","type":"number","field":"f_cumulative_payment_money","placeholder":"请输入","readonly":true,"required":false},{"label":"未结总金额","type":"number","field":"f_surplus_money","placeholder":"请输入","readonly":true,"required":false},{"label":"付款比例","type":"input","field":"f_payment_ratio","placeholder":"请输入","readonly":true,"required":false},{"label":"累计退款金额","type":"number","field":"f_cumulative_retreat_money","placeholder":"请输入","readonly":true,"required":false,"default":0}],"components":[{"title":"缴费明细","device":"pc","name":"apply-charge-management"},{"title":"补充协议","device":"pc","name":"supplemental-agreement","mark":1},{"title":"缴费明细","device":"app","name":"app-charge-management"},{"title":"补充协议","device":"app","name":"app-supplemental-agreement","mark":1}],"buttons":[{"button_name":"保存"},{"before":"chargeBefore","button_name":"提交","disabled":true}]},{"title":"工程派工","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":true,"disabled":false,"required":true},{"label":"工程编号","type":"input","field":"f_apply_num","readonly":true,"disabled":false,"required":true},{"label":"报建类型","type":"input","field":"f_apply_type","readonly":true,"required":true,"disabled":false},{"label":"用户编号","type":"input","field":"f_userinfo_code","readonly":true,"disabled":false,"required":true},{"label":"用户名称","type":"input","field":"f_user_name","readonly":true,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":true,"disabled":false,"required":true},{"label":"证件类型","type":"input","field":"f_credentials","readonly":true,"required":true,"disabled":false},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":true,"required":true,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":1,"readonly":true,"required":true,"disabled":false}],"buttons":[{"button_name":"保存"},{"button_name":"下发","source":"this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()","button_fields":[{"label":"下发给","type":"select","field":"f_issue_man","placeholder":"请输入","readonly":false,"disabled":false,"required":true,"options":[]}],"disabled":true}]},{"title":"工程施工","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":true,"disabled":false,"required":true},{"label":"工程编号","type":"input","field":"f_apply_num","readonly":true,"disabled":false,"required":true},{"label":"报建类型","type":"input","field":"f_apply_type","readonly":true,"required":true,"disabled":false},{"label":"用户编号","type":"input","field":"f_userinfo_code","readonly":true,"disabled":false,"required":true},{"label":"用户名称","type":"input","field":"f_user_name","readonly":true,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":true,"disabled":false,"required":true},{"label":"证件类型","type":"input","field":"f_credentials","readonly":true,"required":true,"disabled":false},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":true,"required":true,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":2,"readonly":true,"required":true,"disabled":false},{"label":"施工单位","type":"input","field":"f_construction_unit","readonly":false,"required":true,"disabled":false,"default":"this.$login.f.name","eval":true},{"label":"施工安装时间","type":"datepicker","field":"f_construction_date","readonly":false,"required":true,"disabled":false},{"bootstraped":"col-sm-12 col-xs-12","label":"安装项目","type":"checkbox","field":"f_install_project","readonly":false,"required":true,"disabled":false,"param":false,"options":[{"label":"入户","value":"入户"},{"label":"热水器","value":"热水器"},{"label":"壁挂炉","value":"壁挂炉"}]},{"label":"施工安装情况","type":"textarea","field":"f_install_situation","rows":2,"readonly":false,"required":true,"disabled":false},{"label":"施工备注","type":"textarea","field":"f_construction_remarks","rows":2,"readonly":false,"required":false,"disabled":false}],"onetomany":[{"title":"材料明细","hidden":false,"tables":["t_material_list"],"hiddenOperate":false,"modalSize":"large","addHidden":false,"addStyle":null,"deleteHidden":false,"deleteText":"删除","deleteMessage":null,"updateHidden":false,"updateText":"修改","fields":[{"label":"材料名称","type":"input","field":"f_material_name","placeholder":"请输入","readonly":false,"required":true},{"label":"材料型号","type":"input","field":"f_material_style","placeholder":"请输入","readonly":false,"required":true},{"label":"材料价格","type":"number","field":"f_material_price","placeholder":"请输入","readonly":false,"required":true},{"label":"材料单位","type":"input","field":"f_material_unit","placeholder":"请输入","readonly":false,"required":true},{"label":"材料数量","type":"number","field":"f_material_number","placeholder":"请输入","readonly":false,"required":true},{"label":"材料备注","type":"input","field":"f_material_remarks","placeholder":"请输入","readonly":false,"required":false}]}],"components":[{"title":"安装明细","device":"pc","name":"installation-details"},{"title":"安装明细","device":"app","name":"app-installation-details"},{"title":"用气设备","device":"pc","name":"apply-devices-management"},{"title":"用气设备","device":"app","name":"app-apply-devices-management"}],"buttons":[{"button_name":"保存"},{"before":"constructionBefore","button_name":"提交","disabled":true}]},{"title":"点火派单","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":true,"disabled":false,"required":true},{"label":"工程编号","type":"input","field":"f_apply_num","readonly":true,"disabled":false,"required":true},{"label":"报建类型","type":"input","field":"f_apply_type","readonly":true,"required":true,"disabled":false},{"label":"用户编号","type":"input","field":"f_userinfo_code","readonly":true,"disabled":false,"required":true},{"label":"用户名称","type":"input","field":"f_user_name","readonly":true,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":true,"disabled":false,"required":true},{"label":"证件类型","type":"input","field":"f_credentials","readonly":true,"required":true,"disabled":false},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":true,"required":true,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":1,"readonly":true,"required":true,"disabled":false},{"label":"施工单位","type":"input","field":"f_construction_unit","readonly":true,"required":true,"disabled":false},{"label":"施工安装时间","type":"datepicker","field":"f_construction_date","readonly":true,"required":true,"disabled":true},{"bootstraped":"col-sm-12 col-xs-12","label":"安装项目","type":"checkbox","field":"f_install_project","readonly":true,"required":true,"disabled":true,"param":false,"options":[{"label":"入户","value":"入户"},{"label":"热水器","value":"热水器"},{"label":"壁挂炉","value":"壁挂炉"}]},{"label":"施工安装情况","type":"textarea","field":"f_install_situation","rows":2,"readonly":true,"required":true,"disabled":false},{"label":"施工备注","type":"textarea","field":"f_construction_remarks","rows":2,"readonly":true,"required":false,"disabled":false}],"components":[],"buttons":[{"button_name":"保存"},{"button_name":"下发","source":"this.getParentByType($organization$).getChildByName($运营部报装$).getChildren()","button_fields":[{"label":"下发给","type":"select","field":"f_issue_man","placeholder":"请输入","readonly":false,"disabled":false,"required":true,"options":[]}],"disabled":true}]},{"title":"通气点火","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":true,"disabled":false,"required":true},{"label":"工程编号","type":"input","field":"f_apply_num","readonly":true,"disabled":false,"required":true},{"label":"报建类型","type":"input","field":"f_apply_type","readonly":true,"required":true,"disabled":false},{"label":"用户编号","type":"input","field":"f_userinfo_code","readonly":true,"disabled":false,"required":true},{"label":"用户名称","type":"input","field":"f_user_name","readonly":true,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":true,"disabled":false,"required":true},{"label":"证件类型","type":"input","field":"f_credentials","readonly":true,"required":true,"disabled":false},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":true,"required":true,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":1,"readonly":true,"required":true,"disabled":false},{"label":"施工单位","type":"input","field":"f_construction_unit","readonly":true,"required":true,"disabled":false},{"label":"施工安装时间","type":"datepicker","field":"f_construction_date","readonly":true,"required":true,"disabled":true},{"bootstraped":"col-sm-12 col-xs-12","label":"安装项目","type":"checkbox","field":"f_install_project","readonly":true,"required":true,"disabled":true,"param":true},{"label":"施工安装情况","type":"textarea","field":"f_install_situation","rows":2,"readonly":true,"required":true,"disabled":false},{"label":"施工备注","type":"textarea","field":"f_construction_remarks","rows":2,"readonly":true,"required":false,"disabled":false},{"label":"点火人","type":"input","field":"f_igniter_people","readonly":true,"required":true,"disabled":false,"default":"this.$login.f.name","eval":true},{"label":"通气时间","type":"datepicker","field":"f_ventilate_date","readonly":true,"required":true,"disabled":true,"default":true},{"label":"通气情况","type":"textarea","field":"f_gas_result","readonly":false,"required":true,"disabled":true,"rows":"7","default":"客户如认可以下内容请签字,如有不认可之处请说明情况\n1、气密性检测合格,已对各接口处进行查漏无泄漏\n2、燃气表运转正常并告知用户。灶具点火测试正常。使用金属波纹管\n3、已向用户讲解安全常识及注意事项。发放《用户使用手册》并张贴提示标签\n4、灶具品牌 油烟机品牌\n5、热水器品牌 壁挂炉品牌\n6、金属波纹品牌。"},{"label":"通气备注","type":"textarea","field":"f_gas_result","readonly":false,"required":false,"disabled":false},{"label":"是否购买保险","type":"select","field":"f_is_insure","placeholder":"请输入","readonly":false,"disabled":false,"required":true,"options":[{"label":"是","value":"是"},{"label":"否","value":"否"}],"default":"是","onchange":"isInsureChange"},{"label":"保费开始日期","type":"datepicker","field":"f_ins_start_date","readonly":false,"required":true,"disabled":false,"default":true,"format":"yyyy-MM-dd","hidden":true},{"label":"保费结束日期","type":"datepicker","field":"f_ins_expiration_date","readonly":false,"required":true,"disabled":false,"hidden":true},{"label":"险种","type":"select","field":"f_insurance_type","readonly":false,"disabled":false,"required":true,"options":[],"param":true,"hidden":true},{"label":"保费金额","type":"number","field":"f_insurance_money","placeholder":"请输入","readonly":false,"required":true,"hidden":true},{"label":"保险备注","type":"textarea","field":"f_ins_comments","rows":2,"readonly":false,"required":false,"disabled":false,"hidden":true}],"components":[{"title":"安装明细","device":"pc","name":"installation-details"},{"title":"安装明细","device":"app","name":"app-installation-details"},{"title":"用气设备","device":"pc","name":"apply-devices-management"},{"title":"用气设备","device":"app","name":"app-apply-devices-management"}],"buttons":[{"button_name":"保存"},{"button_name":"提交","disabled":true}],"readyEvent":"gasReadyEvent"},{"title":"完工","tables":["t_apply"],"fields":[{"label":"完工","type":"input","field":"f_successful","disabled":true,"value":"---success---"}]}]}
63
-
64
- let sum = 0
65
- let jsonData = {}
66
- if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length === 0) {
67
- this.$showMessage("网络故障,请刷新页面")
68
- return
69
- }
70
- this.json_datas.activitys.forEach(item => {
71
- if (this.selectdata.defname === item.title) {
72
- jsonData = item // 拿到当前节点的json配置信息
73
- sum++ // 节点名一样的个数
74
- }
75
- return this.selectdata.defname === item.title // 拿到当前节点的json配置信息
76
- })
77
-
78
- if (sum === 0) {
79
- this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
80
- return
81
- }
82
- if (sum > 1) {
83
- this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
84
- return
85
- }
86
-
87
- this.selectdata = Object.assign({}, this.selectdata, jsonData)
88
-
89
- // fields 字段填充值
90
- for (const item of this.selectdata.fields) {
91
- if (!item.value) {
92
- item.value = null
93
- }
94
-
95
- if (!item.value && (item.default || item.default === 0) && item.type !== 'datepicker') {
96
- if (item.eval) {
97
- let user = Vue.user
98
- // 将PC用户信息 替换成 APP的
99
- item.value = eval(item.default.replace('this.$login.f', 'user'))
100
- } else {
101
- item.value = item.default
102
- }
103
- }
104
-
105
- if (this.selectdata[item.field]) {
106
- // 将json字符串格式化赋值给value
107
- if (String(this.selectdata[item.field]).startsWith("{")) {
108
- item.value = JSON.parse(this.selectdata[item.field])
109
- } else {
110
- item.value = this.selectdata[item.field]
111
- }
112
- }
113
- if (this.selectdata[item.field] === 0) {
114
- item.value = 0
115
- }
116
-
117
- // datepicker
118
- if (item.type === 'datepicker' && !item.value && item.default) {
119
- item.value = new Date().Format(`${item.format ? item.format : 'yyyy-MM-dd HH:mm:ss'}`)
120
- }
121
-
122
- // 如果配置类型为select,优先从参数列表获取options
123
- if (item.type === 'select' || item.type === 'checkbox') {
124
- if (item.param) {
125
- let temp = this.$appdata.getParam(item.label)
126
-
127
- if (temp && temp.length > 0) {
128
- item.options = temp
129
- }
130
-
131
- if (item.paramLabel) {
132
- temp = this.$appdata.getParam(item.paramLabel)
133
- if (temp && temp.length > 0) {
134
- item.options = temp
135
- }
136
- }
137
- }
138
-
139
- if (item.ready) {
140
- item.options = await this[item.ready]()
141
- }
142
- }
143
-
144
-
145
- if (item.type === 'checkbox') {
146
- if (this.selectdata[item.field]) {
147
- item.value = JSON.parse(this.selectdata[item.field])
148
- } else {
149
- item.value = []
150
- }
151
- }
152
- }
153
-
154
- // 控制组件
155
- if (this.selectdata.components) {
156
- this.selectdata.components.forEach(item => {
157
- if (!item.mark) {
158
- item.mark = 0
159
- }
160
- })
161
- }
162
-
163
- // 初始化onetomany
164
- if (this.selectdata.onetomany) {
165
- for (const item of this.selectdata.onetomany) {
166
- let res = null
167
- if (item.queryEvent) {
168
- res = this[item.queryEvent]()
169
- } else {
170
- let http = new HttpResetClass()
171
- let data = {
172
- tablename: item.tables[0],
173
- condition: `f_process_id='${this.selectdata.f_process_id}'`
174
- }
175
- res = await http.load(
176
- 'POST',
177
- `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
178
- // `rs/sql/singleTable`,
179
- {data: data},
180
- {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
181
- )
182
- }
183
-
184
- item.rows = res.data
185
-
186
- // 初始化onetomany中的fields
187
- for (const field of item.fields) {
188
- if (!field.value) {
189
- if (field.value !== 0) {
190
- field.value = null
191
- }
192
- }
193
-
194
- if (field.default || field.default === 0) {
195
- field.value = field.default
196
- }
197
-
198
- // datepicker
199
- if (field.type === 'datepicker' && !field.value && field.default) {
200
- field.value = new Date().Format(`${field.format ? field.format : 'yyyy-MM-dd HH:mm:ss'}`)
201
- }
202
-
203
- if (field.type === 'select') {
204
-
205
- if (field.param) {
206
- let temp = this.$appdata.getParam(field.label)
207
-
208
- if (temp && temp.length > 0) {
209
- field.options = temp
210
- }
211
-
212
- if (field.paramLabel) {
213
- temp = this.$appdata.getParam(field.paramLabel)
214
- if (temp && temp.length > 0) {
215
- item.options = temp
216
- }
217
- }
218
- }
219
-
220
- }
221
- }
222
- }
223
- }
224
-
225
- // 初始化 buttons_fields
226
- for (const item of this.selectdata.buttons) {
227
- if (item.button_name === '下发') {
228
- let data = {
229
- source: item.source,
230
- userid: Vue.user.id
231
- // userid: '51953'
232
- }
233
- if (item.sourceMethod) {
234
- data.source = this[item.sourceMethod]()
235
- }
236
- if (!data.source) {
237
- this.$showMessage("请配置获取人员表达式")
238
- return
239
- }
240
- let res = await this.$resetpost(
241
- `${this.$androidUtil.getProxyUrl()}/rs/search`,
242
- // `rs/search`,
243
- {data: data},
244
- {resolveMsg: null, rejectMsg: '下发人员查询失败!!!'}
245
- )
246
-
247
- let options = res.data.map(source => {
248
- return {
249
- "label": source.name,
250
- "value": source.id
251
- }
252
- })
253
-
254
- if (item.button_fields.length !== 1) {
255
- this.$showMessage("下发有且只能有一个字段!!!")
256
- return
257
- }
258
-
259
- item.button_fields[0].options = options
260
- }
261
- if (item.button_fields) {
262
- item.button_fields.forEach(x => {
263
- // 如果配置类型为select,优先从参数列表获取options
264
- if (x.type === 'select') {
265
-
266
- if (x.param) {
267
- let temp = this.$appdata.getParam(x.label)
268
-
269
- if (temp && temp.length > 0) {
270
- x.options = temp
271
- }
272
-
273
- if (x.paramLabel) {
274
- temp = this.$appdata.getParam(x.paramLabel)
275
- if (temp && temp.length > 0) {
276
- x.options = temp
277
- }
278
- }
279
- }
280
-
281
- }
282
- })
283
- }
284
- }
285
-
286
- // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
287
- let temp = JSON.parse(JSON.stringify(this.selectdata))
288
-
289
- this.show_data = temp
290
- this.$nextTick(() => {
291
- this.showview = true
292
- })
293
- },
294
- // 金额转大写
295
- smalltoBIG(n) {
296
- let fraction = ['', '分'];
297
- let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
298
- let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
299
- let head = n < 0 ? '欠' : '';
300
- n = Math.abs(n);
301
-
302
- let s = '';
303
-
304
- for (var i = 0; i < fraction.length; i++) {
305
- s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
306
- }
307
- s = s || '整';
308
- n = Math.floor(n);
309
-
310
- for (var i = 0; i < unit[0].length && n > 0; i++) {
311
- let p = '';
312
- for (var j = 0; j < unit[1].length && n > 0; j++) {
313
- p = digit[n % 10] + unit[1][j] + p;
314
- n = Math.floor(n / 10);
315
- }
316
- s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
317
- }
318
- return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
319
- },
320
- getLableValue(label) {
321
- for (const item of this.show_data.fields) {
322
- if (item.label === label && item.type !== 'number') {
323
- return item.value || ''
324
- }
325
- if (item.label === label && item.type === 'number') {
326
- return item.value || 0
327
- }
328
- }
329
- },
330
- getLableOptions(label) {
331
- for (const item of this.show_data.fields) {
332
- if (item.label === label) {
333
- return item.options
334
- }
335
- }
336
- },
337
- setLabelValue(label, value) {
338
- for (const item of this.show_data.fields) {
339
- if (item.label === label) {
340
- item.value = value
341
- this.show_data[item.field] = value
342
- }
343
- }
344
- },
345
- setLabelOptions(label, options) {
346
- for (const item of this.show_data.fields) {
347
- if (item.label === label) {
348
- item.options = options
349
- }
350
- }
351
- },
352
- async checkDuplicate(index) {
353
- let http = new HttpResetClass()
354
- let data = {
355
- tablename: 't_apply',
356
- condition: `${this.show_data.fields[index].field} = '${this.show_data.fields[index].value}'`
357
- }
358
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
359
- resolveMsg: null,
360
- rejectMsg: `${this.show_data.fields[index].label}查询失败`
361
- })
362
- if (res.data.length > 0) {
363
- this.show_data.fields[index].value = null
364
- this.$showAlert(`${this.show_data.fields[index].label}已存在!!!`, 'warning', 3000)
365
- }
366
- },
367
- async breakControl () {
368
- if (this.show_data.id) {
369
- let data = {
370
- condition: `u.id = ${this.show_data.id}`,
371
- data: {
372
- id: Vue.user.id,
373
- orgid: Vue.user.orgid
374
- // id: '51953',
375
- // orgid: '10101'
376
- }
377
- }
378
- let res = await this.$resetpost(
379
- `${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
380
- // `rs/sql/checkuser`,
381
- {data: data},
382
- {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
383
- )
384
-
385
- this.selectdata = res.data[0]
386
- } else {
387
- this.selectdata = servicedata
388
- }
389
-
390
- this.refurbish()
391
- },
392
- // 缴费前置
393
- chargeBefore () {
394
- if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
395
- this.$showAlert('费用未结清!!!', 'warning', 3000)
396
- throw null
397
- }
398
- },
399
- // 施工前置
400
- async constructionBefore () {
401
- let http = new HttpResetClass()
402
- let data = {
403
- condition: `ui.f_process_id = '${this.show_data.f_process_id}' and uf.f_table_state = '待开通'`
404
- }
405
- let res = await http.load(
406
- 'POST',
407
- `${this.$androidUtil.getProxyUrl()}/rs/sql/countApplyUserinfo`,
408
- {data: data},
409
- {
410
- resolveMsg: null,
411
- rejectMsg: '安装明细查询失败!!!'
412
- })
413
- if (res.data[0].num > 0) {
414
- this.$showAlert(`还有${res.data[0].num}户未安装,无法提交`, 'warning', 3000)
415
- throw `还有${res.data[0].num}户未安装,无法提交`
416
- }
417
- },
418
- changePipeBuild () {
419
- if (this.selectdata.f_process_dep === '工程部') {
420
- return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
421
- }
422
- if (this.selectdata.f_process_dep === '运营部') {
423
- return 'this.getParentByType($organization$).getChildByName($运营部报装$).getChildren()'
424
- }
425
- return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
426
- },
427
- async getPrice (f_price_id) {
428
- console.log('=======================')
429
- console.log(f_price_id)
430
-
431
- let data = {
432
- condition: `sp.f_orgid = '${Vue.user.orgid}'`
433
- }
434
-
435
- if (!isEmpty(f_price_id)) {
436
- data.condition = `sp.f_orgid = '${Vue.user.orgid}' and sp.f_price_id = ${f_price_id}`
437
- }
438
- let http = new HttpResetClass()
439
- let res = await http.load(
440
- 'POST',
441
- `${this.$androidUtil.getProxyUrl()}/rs/sql/applyGetPrice`,
442
- {data: data},
443
- {resolveMsg: null, rejectMsg: '气价查询失败!!!'}
444
- )
445
-
446
- return res.data.map(item => {
447
- return {
448
- label: item.f_price_name,
449
- value: item
450
- }
451
- })
452
- }
453
- },
454
- events: {
455
- 'breakControl' () {
456
- this.breakControl()
457
- },
458
- // 检查重复
459
- 'checkRepeat' (index) {
460
- this.checkDuplicate(index)
461
- },
462
- // 选择材料
463
- async materialNameChenge (index, fieldIndex) {
464
- let material = this.show_data.onetomany[index].fields[fieldIndex].value
465
-
466
- this.show_data.onetomany[index].fields.forEach(item => {
467
- if (material[item.field]) {
468
- item.value = material[item.field]
469
- }
470
- })
471
- },
472
- // 打开模态框获取材料
473
- async 'getMaterialName' (index) {
474
- let data = {
475
- condition: `1=1`
476
- }
477
- let http = new HttpResetClass()
478
- let res = await http.load(
479
- 'POST',
480
- `${this.$androidUtil.getProxyUrl()}/rs/sql/getStockMaterial`,
481
- {data: data},
482
- {resolveMsg: null, rejectMsg: '材料查询失败!!!'}
483
- )
484
-
485
- this.show_data.onetomany[index].fields.forEach(field => {
486
- if (field.label === '选择材料') {
487
- field.options = res.data.map(item => {
488
- return {
489
- 'label': `${item.f_material_name}--${item.f_material_style}--${item.f_material_unit}`,
490
- 'value': item
491
- }
492
- })
493
- }
494
- })
495
- },
496
- // 选择气价
497
- 'priceChange' (index) {
498
- if (isEmpty(this.show_data.stairPrice)) {
499
- return
500
- }
501
-
502
- let stairPrice = this.getLableValue('气价名称')
503
-
504
- this.setLabelValue('气价类型', stairPrice.f_price_type)
505
- this.setLabelValue('用气性质', stairPrice.f_gasproperties)
506
- this.setLabelValue('价格', stairPrice.f_price)
507
- this.setLabelValue('客户类型', stairPrice.f_user_type)
508
-
509
- this.show_data.f_price_id = stairPrice.f_price_id
510
- this.show_data.f_price_name = stairPrice.f_price_name
511
- },
512
- // 是否购买保险
513
- isInsureChange (index) {
514
- let f_is_insure = this.getLableValue('是否购买保险')
515
- for (const item of this.show_data.fields) {
516
- if (f_is_insure === '是') {
517
- if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额') {
518
- item.hidden = false
519
- item.required = true
520
- }
521
- if (item.label === '保险备注') {
522
- item.hidden = false
523
- }
524
- } else {
525
- if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
526
- item.hidden = true
527
- item.required = false
528
- }
529
- }
530
- }
531
- },
532
- // 通气点火初始化
533
- async 'gasReadyEvent' () {
534
- if (!isEmpty(this.show_data.f_price_id)) {
535
- let priceList = await this.getPrice(this.show_data.f_price_id)
536
- this.setLabelValue('气价名称', priceList[0].value)
537
- }
538
-
539
- let data = {
540
- tablename: 't_userfees',
541
- condition: `f_orgid = '${Vue.user.orgid}' and f_userinfo_id = '${this.show_data.f_userinfo_id}' and f_state = '待执行'`
542
- }
543
- let http = new HttpResetClass()
544
- let res = await http.load(
545
- 'POST',
546
- `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
547
- {data: data},
548
- {resolveMsg: null, rejectMsg: '保险查询失败!!!'}
549
- )
550
- if (res.data.length > 0) {
551
- this.setLabelValue('待执行保险', '')
552
- for (const item of this.show_data.fields) {
553
- if (item.label === '保费开始日期' || item.label === '是否购买保险' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
554
- item.hidden = true
555
- item.required = false
556
- item.value = null
557
- }
558
- }
559
- } else {
560
- this.setLabelValue('待执行保险', '否')
561
- for (const item of this.show_data.fields) {
562
- if (item.label === '是否购买保险' || item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
563
- item.hidden = false
564
- item.required = true
565
- }
566
- }
567
- }
568
-
569
- // 初始化显示内容
570
- let f_is_insure = this.getLableValue('是否购买保险')
571
- for (const item of this.show_data.fields) {
572
- if (f_is_insure === '是') {
573
- if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额') {
574
- item.hidden = false
575
- item.required = true
576
- }
577
- if (item.label === '保险备注') {
578
- item.hidden = false
579
- }
580
- // 本期保费到期时间默认一年
581
- if (isEmpty(this.selectdata.f_ins_expiration_date)) {
582
- let f_ins_expiration_date = new Date().setFullYear(new Date().getFullYear() + 1)
583
- this.setLabelValue("保费结束日期", new Date(f_ins_expiration_date).Format('yyyy-MM-dd'))
584
- }
585
- }
586
- if (f_is_insure === '否') {
587
- if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
588
- item.hidden = true
589
- item.required = false
590
- }
591
- }
592
- }
593
- },
594
- // 合同金额失去焦点
595
- async 'contractMoneyChange' (index) {
596
- let data = {
597
- operator: '+',
598
- num1: this.show_data.f_contract_money || 0,
599
- num2: this.getLableValue('追加金额') || 0
600
- }
601
- let res = await this.$resetpost(
602
- `${this.$androidUtil.getProxyUrl()}/rs/logic/compute`,
603
- {data: data},
604
- {resolveMsg: null, rejectMsg: '金额计算失败!!!'}
605
- )
606
-
607
- this.setLabelValue('应交金额', res.data)
608
- },
609
- // ===========================================
610
- async 'button'() {
611
- if (this.show_data.button.before) {
612
- await this[this.show_data.button.before]()
613
- }
614
- // 点击重置按钮就重置数据
615
- if (this.show_data.button.button_name === '重置') {
616
- this.$dispatch('breakControl', this.selectdata)
617
- return
618
- }
619
-
620
- this.show_data.user = Vue.user
621
- // this.show_data.user = {"f_show_department_name":"","parentname":"市场部","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"客服系统","icon":"/images/lefticon/档案管理.png","hasright":false,"resourcetype":"function","parentid":"27","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"city-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"231","name":"街道管理","templatename":"functionedit","id":"230","position":"1","fullname":"资源管理.功能模块.客服系统.档案管理.街道管理","fullid":"3.21.27.212.230","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"area-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"219","name":"小区管理","templatename":"functionedit","id":"218","position":"3","fullname":"资源管理.功能模块.客服系统.档案管理.小区管理","fullid":"3.21.27.212.218","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"address-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"33664","name":"地址管理","templatename":"functionedit","id":"33663","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.地址管理","fullid":"3.21.27.212.33663","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"file-user-files","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"237","name":"用户档案","templatename":"functionedit","id":"236","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.用户档案","fullid":"3.21.27.212.236","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"档案管理","link":"file-user-files-new","hasright":true,"resourcetype":"function","parentid":"212","f_parentname":"档案管理","children":[],"selfid":"39450","name":"预备户管理","templatename":"functionedit","id":"39449","position":"6","fullname":"资源管理.功能模块.客服系统.档案管理.预备户管理","fullid":"3.21.27.212.39449","tablename":"t_function"}],"selfid":"213","name":"档案管理","templatename":"functionedit","id":"212","position":"2","fullname":"资源管理.功能模块.客服系统.档案管理","fullid":"3.21.27.212","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":true,"resourcetype":"function","parentid":"27","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34680","name":"功能业务","templatename":"functionedit","id":"34679","position":"1","fullname":"资源管理.功能模块.客服系统.报建业务.功能业务","fullid":"3.21.27.34673.34679","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34686","name":"流程业务","templatename":"functionedit","id":"34685","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.流程业务","fullid":"3.21.27.34673.34685","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34692","name":"流程监控","templatename":"functionedit","id":"34691","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.21.27.34673.34691","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"apply-charge-search","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34698","name":"收费明细","templatename":"functionedit","id":"34697","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.收费明细","fullid":"3.21.27.34673.34697","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"order-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34704","name":"预约申请","templatename":"functionedit","id":"34703","position":"5","fullname":"资源管理.功能模块.客服系统.报建业务.预约申请","fullid":"3.21.27.34673.34703","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"stop-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34710","name":"终止报建","templatename":"functionedit","id":"34709","position":"6","fullname":"资源管理.功能模块.客服系统.报建业务.终止报建","fullid":"3.21.27.34673.34709","tablename":"t_function"}],"selfid":"34674","name":"报建业务","templatename":"functionedit","id":"34673","position":"12","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.21.27.34673","tablename":"t_function"}],"qrcode":"/rs/user/getQRcode?QRCODE=12b2-1631604191812-03447","rolesnames":"营业厅报装,市场部报装,设计部报装,工程部报装,运营部报装,财务部报装,角色监控","roles":"51383,51485,51707,51767,51833,51905,52289","f_sex":"男","f_icon":"tree_user","fullnames":"河南亿星集团实业有限公司.周口市天然气有限公司.市场部.报建测试","dir":"ZhouKou","userid":"12b2-1631604191812-03447","accesstime":"1632214307117","parentid":"46545","f_show_rolestr":"","fullids":"30463.10101.46545.51953.","number":"10101","f_dep_id":"1010101201","f_idnumber":null,"selfid":"51954","templatename":"useredit","logindate":"2021-09-14 18:46:54","id":"51953","state":"在职","tablename":"t_user","deptype":"部门","depids":"46545","loginid":"15","imgid":null,"f_user_telephone":null,"rolestr":"营业厅报装,市场部报装,设计部报装,工程部报装,运营部报装,财务部报装,角色监控","deps":"市场部","loginnum":"0","f_age":null,"resourcetype":"user","orgid":"10101","f_department_name":"周口市场部","ename":"bjcs","deleted":"false","entitytype":"t_user","f_description":null,"loginip":"192.168.66.37","name":"报建测试","position":"1","orgs":"周口市天然气有限公司","haslicense":true,"f_role_name":"营业厅报装 市场部报装 设计部报装 工程部报装 运营部报装 财务部报装 角色监控 ","f_allArea":[],"f_gasman":[{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15294978548","rolestr":"抄表员","resourcetype":"user","userid":"100814","parentid":"46581","f_department_name":"周口客服部","ename":"100814","password":"1","deleted":"false","entitytype":"t_user","selfid":"100814","name":"高雪荣","templatename":"useredit","id":"100814","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"qrcode":"/rs/user/getQRcode?QRCODE=004","roles":"51959","f_sex":"男","f_icon":"tree_user","userid":"004","accesstime":"1631765198067","parentid":"46581","password":"1","selfid":"59044","templatename":"useredit","id":"59043","state":"在职","tablename":"t_user","loginid":"15","rolestr":"抄表员","resourcetype":"user","f_department_name":"周口客服部","ename":"cbcs","deleted":"false","entitytype":"t_user","loginip":"10.10.10.1","name":"抄表测试","position":"23","haslicense":"true","f_role_name":"抄表员 "},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18538602709","rolestr":"抄表员","resourcetype":"user","userid":"100462","parentid":"46581","f_department_name":"周口客服部","ename":"100462","password":"1","deleted":"false","entitytype":"t_user","selfid":"100462","name":"刘林静","templatename":"useredit","id":"100462","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18839409830","rolestr":"抄表员","resourcetype":"user","userid":"100528","parentid":"46581","f_department_name":"周口客服部","ename":"100528","password":"1","deleted":"false","entitytype":"t_user","selfid":"100528","name":"秦春梅","templatename":"useredit","id":"100528","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13243376616","rolestr":"抄表员","resourcetype":"user","userid":"102935","parentid":"46581","f_department_name":"周口客服部","ename":"102935","password":"1","deleted":"false","entitytype":"t_user","selfid":"102935","name":"石磊","templatename":"useredit","id":"102935","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18538602706","rolestr":"抄表员","resourcetype":"user","userid":"100818","parentid":"46581","f_department_name":"周口客服部","ename":"100818","password":"1","deleted":"false","entitytype":"t_user","selfid":"100818","name":"白静","templatename":"useredit","id":"100818","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15294991670","rolestr":"抄表员","resourcetype":"user","userid":"102934","parentid":"46581","f_department_name":"周口客服部","ename":"102934","password":"1","deleted":"false","entitytype":"t_user","selfid":"102934","name":"郭新胜","templatename":"useredit","id":"102934","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15036438918","rolestr":"抄表员","resourcetype":"user","userid":"103392","accesstime":"1631757950369","parentid":"46581","f_department_name":"周口客服部","ename":"103392","password":"1","deleted":"false","entitytype":"t_user","loginip":"10.10.10.1","selfid":"103392","name":"牛永胜","templatename":"useredit","id":"103392","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13592232789","rolestr":"抄表员","resourcetype":"user","userid":"100337","parentid":"46581","f_department_name":"周口客服部","ename":"100337","password":"1","deleted":"false","entitytype":"t_user","selfid":"100337","name":"王雪丽","templatename":"useredit","id":"100337","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"17796528119","rolestr":"抄表员","resourcetype":"user","userid":"101021","parentid":"46581","f_department_name":"周口客服部","ename":"101021","password":"1","deleted":"false","entitytype":"t_user","selfid":"101021","name":"张书荣","templatename":"useredit","id":"101021","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18839409832","rolestr":"抄表员","resourcetype":"user","userid":"100330","parentid":"46581","f_department_name":"周口客服部","ename":"100330","password":"1","deleted":"false","entitytype":"t_user","selfid":"100330","name":"武文平","templatename":"useredit","id":"100330","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13839441227","rolestr":"抄表员","resourcetype":"user","userid":"100871","parentid":"46581","f_department_name":"周口客服部","ename":"100871","password":"1","deleted":"false","entitytype":"t_user","selfid":"100871","name":"李明磊","templatename":"useredit","id":"100871","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"}],"lics":[]}
622
- this.show_data.start_activity = this.json_datas.start_activity
623
- this.show_data.xmlfilename = this.json_datas.workflow_xmlfilename
624
-
625
- let res = await this.$resetpost(
626
- // `rs/logic/ApplyProductService`,
627
- `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyProductService`,
628
- {data: this.show_data},
629
- {resolveMsg: null, rejectMsg: '数据保存失败'}
630
- )
631
-
632
- if (this.show_data.button.after) {
633
- this[this.show_data.button.after]()
634
- }
635
- // 返回上层
636
- this.$dispatch('confirm')
637
- },
638
- // 失去焦点出触发事件
639
- 'onchange' (index) {
640
- if (this.show_data.defname === '报装申请') {
641
- if (
642
- this.show_data.fields[index].label === '街道' ||
643
- this.show_data.fields[index].label === '小区' ||
644
- this.show_data.fields[index].label === '楼号(乡/镇)' ||
645
- this.show_data.fields[index].label === '单元()' ||
646
- this.show_data.fields[index].label === '楼层(组)' ||
647
- this.show_data.fields[index].label === '门牌号(号)'
648
- ) {
649
-
650
- let f_street = this.getLableValue('街道')
651
- let f_residential_area = this.getLableValue('小区')
652
- let f_building = this.getLableValue('楼号(乡/镇)')
653
- let f_building_suffix = f_building ? this.config.f_building_suffix : ''
654
- let f_unit = this.getLableValue('单元(村)')
655
- let f_unit_suffix = f_unit ? this.config.f_unit_suffix : ''
656
- let f_floor = this.getLableValue('楼层(组)')
657
- let f_floor_suffix = f_floor ? this.config.f_floor_suffix : ''
658
- let f_room = this.getLableValue('门牌号(号)')
659
- let f_room_suffix = f_room ? this.config.f_room_suffix : ''
660
-
661
- let f_address = null
662
-
663
- let f_address_type = this.show_data.f_address_type
664
- if (f_address_type === '民用城区') {
665
- f_address = f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
666
- }
667
- if (f_address_type === '民用农村') {
668
- f_address = f_building + f_unit + f_floor + f_room
669
- }
670
- if (f_address_type === '特殊城区') {
671
- f_address = f_street + f_residential_area
672
- }
673
- this.setLabelValue("地址", f_address)
674
- }
675
- }
676
- },
677
- 'onblur' (index) {},
678
- 'oninput' (index) {},
679
- 'initializtionView' () {},
680
- async 'onchangeModal' (index, fieldIndex) {
681
- },
682
- async 'onblurModal' (index, fieldIndex) {
683
-
684
- },
685
- async 'oninputModal' (index, fieldIndex) {
686
-
687
- },
688
- async 'onetomanydelete' (index, rowIndex) {
689
-
690
- let http = new HttpResetClass()
691
-
692
- let res = await http.load(
693
- 'DELETE',
694
- `${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}/${this.show_data.onetomany[index].rows[rowIndex].id}`,
695
- null,
696
- {resolveMsg: null, rejectMsg: '删除失败!!!'}
697
- )
698
- res = await this.$resetpost(
699
- `${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
700
- this.show_data
701
- )
702
- this.breakControl()
703
- },
704
- async 'onetomanyupdate' (index, rowIndex) {
705
- let data = this.show_data.onetomany[index].rows[rowIndex]
706
-
707
- this.show_data.onetomany[index].fields.forEach(item => {
708
- data[item.field] = item.value
709
- })
710
- let res = await this.$resetpost(
711
- `${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
712
- data
713
- )
714
- res = await this.$resetpost(
715
- `${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
716
- this.show_data
717
- )
718
- this.breakControl()
719
- },
720
- async 'onetomanyadd' (index) {
721
- let data = {
722
- f_process_id : this.show_data.f_process_id,
723
- f_operator_id: Vue.user.id,
724
- f_operator: Vue.user.name,
725
- f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
726
- f_orgid: Vue.user.orgid,
727
- f_orgname: Vue.user.orgs
728
- }
729
- this.show_data.onetomany[index].fields.forEach(item => {
730
- data[item.field] = item.value
731
- })
732
- let res = await this.$resetpost(
733
- `${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
734
- data
735
- )
736
- res = await this.$resetpost(
737
- `${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
738
- this.show_data
739
- )
740
- this.breakControl()
741
- },
742
- 'onbutchange' (index) {
743
-
744
- },
745
- 'onbutblur' (index) {
746
-
747
- },
748
- 'onbutinput' (index) {
749
-
750
- }
751
- },
752
- watch: {
753
- }
754
- }
755
- </script>
756
- <style scoped>
757
- </style>
1
+ <template>
2
+ <div class="col-sm-12 col-xs-12 p-10">
3
+ <accordion one-at-a-time="true">
4
+ <panel :header="selectdata.defname" :is-open="true" type="primary">
5
+ <work-busy :is-busy="excessive"></work-busy>
6
+ <app-service-view v-ref:serviceview :data="show_data" v-if="showview"></app-service-view>
7
+ </panel>
8
+ <panel header="拍照" :is-open="false" type="primary" v-if="selectdata.f_process_id">
9
+ <app-take-pic :blobid="selectdata.f_process_id" :defname="selectdata.defname" :isdelete="true" :istakepic="true" :istype="true"></app-take-pic>
10
+ </panel>
11
+ <panel header="签字" :is-open="false" type="primary" v-if="selectdata.f_process_id">
12
+ <app-sign :blobid="selectdata.f_process_id" :defname="selectdata.defname" @sign-success="signSuccess" :file-path="selectdata.f_process_id"@sign-clean="signClean"></app-sign>
13
+ </panel>
14
+ </accordion>
15
+ </div>
16
+ </template>
17
+ <script>
18
+ import Vue from 'vue'
19
+ import {HttpResetClass} from 'vue-client'
20
+ import {isEmpty} from "../../Util";
21
+ // Date格式化
22
+ Date.prototype.Format = function (fmt) {
23
+ var o = {
24
+ 'M+': this.getMonth() + 1, // 月份
25
+ 'd+': this.getDate(), //
26
+ 'H+': this.getHours(), // 小时
27
+ 'm+': this.getMinutes(), // 分
28
+ 's+': this.getSeconds(), //
29
+ 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
30
+ 'S': this.getMilliseconds() // 毫秒
31
+ }
32
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
33
+ for (var k in o) {
34
+ if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
35
+ }
36
+ return fmt
37
+ }
38
+ export default {
39
+ title: '报建流程业务控制层',
40
+ props: ['selectdata'],
41
+ data () {
42
+ return {
43
+ json_datas: null,
44
+ data: null,
45
+ show_data: null,
46
+ showview: false,
47
+ config: {},
48
+ excessive:false
49
+ }
50
+ },
51
+ ready () {
52
+ this.refurbish()
53
+ },
54
+ methods: {
55
+ async buttonCommit() {
56
+ if(this.show_data.button.button_name){
57
+ this.$refs.serviceview.disablebtu()
58
+ }
59
+ console.log('222222222')
60
+ if (this.show_data.button.before) {
61
+ await this[this.show_data.button.before]()
62
+ }
63
+ // 点击重置按钮就重置数据
64
+ if (this.show_data.button.button_name === '重置') {
65
+ this.$dispatch('breakControl', this.selectdata)
66
+ return
67
+ }
68
+ this.show_data.user = Vue.user
69
+ // this.show_data.user = {"f_show_department_name":"","parentname":"市场部","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"客服系统","icon":"/images/lefticon/档案管理.png","hasright":false,"resourcetype":"function","parentid":"27","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"city-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"231","name":"街道管理","templatename":"functionedit","id":"230","position":"1","fullname":"资源管理.功能模块.客服系统.档案管理.街道管理","fullid":"3.21.27.212.230","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"area-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"219","name":"小区管理","templatename":"functionedit","id":"218","position":"3","fullname":"资源管理.功能模块.客服系统.档案管理.小区管理","fullid":"3.21.27.212.218","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"address-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"33664","name":"地址管理","templatename":"functionedit","id":"33663","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.地址管理","fullid":"3.21.27.212.33663","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"file-user-files","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"237","name":"用户档案","templatename":"functionedit","id":"236","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.用户档案","fullid":"3.21.27.212.236","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"档案管理","link":"file-user-files-new","hasright":true,"resourcetype":"function","parentid":"212","f_parentname":"档案管理","children":[],"selfid":"39450","name":"预备户管理","templatename":"functionedit","id":"39449","position":"6","fullname":"资源管理.功能模块.客服系统.档案管理.预备户管理","fullid":"3.21.27.212.39449","tablename":"t_function"}],"selfid":"213","name":"档案管理","templatename":"functionedit","id":"212","position":"2","fullname":"资源管理.功能模块.客服系统.档案管理","fullid":"3.21.27.212","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":true,"resourcetype":"function","parentid":"27","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34680","name":"功能业务","templatename":"functionedit","id":"34679","position":"1","fullname":"资源管理.功能模块.客服系统.报建业务.功能业务","fullid":"3.21.27.34673.34679","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34686","name":"流程业务","templatename":"functionedit","id":"34685","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.流程业务","fullid":"3.21.27.34673.34685","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34692","name":"流程监控","templatename":"functionedit","id":"34691","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.21.27.34673.34691","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"apply-charge-search","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34698","name":"收费明细","templatename":"functionedit","id":"34697","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.收费明细","fullid":"3.21.27.34673.34697","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"order-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34704","name":"预约申请","templatename":"functionedit","id":"34703","position":"5","fullname":"资源管理.功能模块.客服系统.报建业务.预约申请","fullid":"3.21.27.34673.34703","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"stop-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34710","name":"终止报建","templatename":"functionedit","id":"34709","position":"6","fullname":"资源管理.功能模块.客服系统.报建业务.终止报建","fullid":"3.21.27.34673.34709","tablename":"t_function"}],"selfid":"34674","name":"报建业务","templatename":"functionedit","id":"34673","position":"12","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.21.27.34673","tablename":"t_function"}],"qrcode":"/rs/user/getQRcode?QRCODE=12b2-1631604191812-03447","rolesnames":"营业厅报装,市场部报装,设计部报装,工程部报装,运营部报装,财务部报装,角色监控","roles":"51383,51485,51707,51767,51833,51905,52289","f_sex":"男","f_icon":"tree_user","fullnames":"河南亿星集团实业有限公司.周口市天然气有限公司.市场部.报建测试","dir":"ZhouKou","userid":"12b2-1631604191812-03447","accesstime":"1632214307117","parentid":"46545","f_show_rolestr":"","fullids":"30463.10101.46545.51953.","number":"10101","f_dep_id":"1010101201","f_idnumber":null,"selfid":"51954","templatename":"useredit","logindate":"2021-09-14 18:46:54","id":"51953","state":"在职","tablename":"t_user","deptype":"部门","depids":"46545","loginid":"15","imgid":null,"f_user_telephone":null,"rolestr":"营业厅报装,市场部报装,设计部报装,工程部报装,运营部报装,财务部报装,角色监控","deps":"市场部","loginnum":"0","f_age":null,"resourcetype":"user","orgid":"10101","f_department_name":"周口市场部","ename":"bjcs","deleted":"false","entitytype":"t_user","f_description":null,"loginip":"192.168.66.37","name":"报建测试","position":"1","orgs":"周口市天然气有限公司","haslicense":true,"f_role_name":"营业厅报装 市场部报装 设计部报装 工程部报装 运营部报装 财务部报装 角色监控 ","f_allArea":[],"f_gasman":[{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15294978548","rolestr":"抄表员","resourcetype":"user","userid":"100814","parentid":"46581","f_department_name":"周口客服部","ename":"100814","password":"1","deleted":"false","entitytype":"t_user","selfid":"100814","name":"高雪荣","templatename":"useredit","id":"100814","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"qrcode":"/rs/user/getQRcode?QRCODE=004","roles":"51959","f_sex":"男","f_icon":"tree_user","userid":"004","accesstime":"1631765198067","parentid":"46581","password":"1","selfid":"59044","templatename":"useredit","id":"59043","state":"在职","tablename":"t_user","loginid":"15","rolestr":"抄表员","resourcetype":"user","f_department_name":"周口客服部","ename":"cbcs","deleted":"false","entitytype":"t_user","loginip":"10.10.10.1","name":"抄表测试","position":"23","haslicense":"true","f_role_name":"抄表员 "},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18538602709","rolestr":"抄表员","resourcetype":"user","userid":"100462","parentid":"46581","f_department_name":"周口客服部","ename":"100462","password":"1","deleted":"false","entitytype":"t_user","selfid":"100462","name":"刘林静","templatename":"useredit","id":"100462","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18839409830","rolestr":"抄表员","resourcetype":"user","userid":"100528","parentid":"46581","f_department_name":"周口客服部","ename":"100528","password":"1","deleted":"false","entitytype":"t_user","selfid":"100528","name":"秦春梅","templatename":"useredit","id":"100528","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13243376616","rolestr":"抄表员","resourcetype":"user","userid":"102935","parentid":"46581","f_department_name":"周口客服部","ename":"102935","password":"1","deleted":"false","entitytype":"t_user","selfid":"102935","name":"石磊","templatename":"useredit","id":"102935","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18538602706","rolestr":"抄表员","resourcetype":"user","userid":"100818","parentid":"46581","f_department_name":"周口客服部","ename":"100818","password":"1","deleted":"false","entitytype":"t_user","selfid":"100818","name":"白静","templatename":"useredit","id":"100818","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15294991670","rolestr":"抄表员","resourcetype":"user","userid":"102934","parentid":"46581","f_department_name":"周口客服部","ename":"102934","password":"1","deleted":"false","entitytype":"t_user","selfid":"102934","name":"郭新胜","templatename":"useredit","id":"102934","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15036438918","rolestr":"抄表员","resourcetype":"user","userid":"103392","accesstime":"1631757950369","parentid":"46581","f_department_name":"周口客服部","ename":"103392","password":"1","deleted":"false","entitytype":"t_user","loginip":"10.10.10.1","selfid":"103392","name":"牛永胜","templatename":"useredit","id":"103392","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13592232789","rolestr":"抄表员","resourcetype":"user","userid":"100337","parentid":"46581","f_department_name":"周口客服部","ename":"100337","password":"1","deleted":"false","entitytype":"t_user","selfid":"100337","name":"王雪丽","templatename":"useredit","id":"100337","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"17796528119","rolestr":"抄表员","resourcetype":"user","userid":"101021","parentid":"46581","f_department_name":"周口客服部","ename":"101021","password":"1","deleted":"false","entitytype":"t_user","selfid":"101021","name":"张书荣","templatename":"useredit","id":"101021","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18839409832","rolestr":"抄表员","resourcetype":"user","userid":"100330","parentid":"46581","f_department_name":"周口客服部","ename":"100330","password":"1","deleted":"false","entitytype":"t_user","selfid":"100330","name":"武文平","templatename":"useredit","id":"100330","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13839441227","rolestr":"抄表员","resourcetype":"user","userid":"100871","parentid":"46581","f_department_name":"周口客服部","ename":"100871","password":"1","deleted":"false","entitytype":"t_user","selfid":"100871","name":"李明磊","templatename":"useredit","id":"100871","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"}],"lics":[]}
70
+ this.show_data.start_activity = this.json_datas.start_activity
71
+ this.show_data.xmlfilename = this.json_datas.workflow_xmlfilename
72
+
73
+ console.log("查看报警器材料1---------")
74
+ if ((this.show_data.f_apply_type === '报警器报建' || this.show_data.f_apply_type === '工商业报警器报建') && this.show_data.defname === '工程施工' && this.show_data.f_sub_state !='完工' && this.show_data.button.button_name === '完工'){
75
+ console.log("查看报警器材料2---------")
76
+ //判断是否添加报警器材料
77
+ let bjqlag = false
78
+ let datatemp = {
79
+ 'bjqid':"",
80
+ 'fprocessid':"",
81
+ 'sqvalue':"",
82
+ 'f_bjq_sid':"",
83
+ 'f_material_code':""
84
+ }
85
+ let bjqststedata = {
86
+ "sid":"",
87
+ "bjqtype":"",
88
+ "f_process_id":"",
89
+ "bjqstate":"",
90
+ "f_userinfo_code":""
91
+ }
92
+ let numOne = [];
93
+ console.log("查看报警器材料3---------",this.show_data)
94
+ console.log("查看报警器材料4---------",this.show_data.onetomany)
95
+
96
+ let http = new HttpResetClass()
97
+ let data = {
98
+ tablename: `t_material_apply`,
99
+ condition: `f_process_id='${this.show_data.f_process_id}'`
100
+ }
101
+ let res = await http.load(
102
+ 'POST',
103
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable?aaa=123`,
104
+ {data: data},
105
+ {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
106
+ )
107
+ res.data.forEach(item => {
108
+ if (item.f_material_name.substr(0,3) === '报警器'){
109
+ var bjname = item.f_material_name.split("-")
110
+ bjqststedata.sid = item.f_bjq_sid
111
+ bjqststedata.f_process_id = item.f_process_id
112
+ bjqststedata.bjqtype = bjname[1]
113
+ //====================================
114
+ bjqlag = true
115
+ datatemp.bjqid = item.id
116
+ datatemp.fprocessid = item.f_process_id
117
+ datatemp.f_bjq_sid = item.f_bjq_sid
118
+ datatemp.f_material_code = item.f_material_code
119
+ datatemp.f_bjq_lng = item.f_bjq_lng
120
+ datatemp.f_bjq_lat = item.f_bjq_lat
121
+ datatemp.f_bjq_gaode_lng = item.f_bjq_gaode_lng
122
+ datatemp.f_bjq_gaode_lat = item.f_bjq_gaode_lng
123
+ datatemp.f_bjq_baidu_lng = item.f_bjq_baidu_lng
124
+ datatemp.f_bjq_baidu_lat = item.f_bjq_baidu_lat
125
+ numOne.push(item.f_bjq_sid)
126
+ }
127
+ })
128
+ // this.show_data.onetomany.forEach(item=>{
129
+ // console.log("查看报警器材料",item)
130
+ // item.rows.forEach(i=>{
131
+ // if (i.f_material_name.substr(0,3) === '报警器'){
132
+ // var bjname = i.f_material_name.split("-")
133
+ // bjqststedata.sid = i.f_bjq_sid
134
+ // bjqststedata.f_process_id = i.f_process_id
135
+ // bjqststedata.bjqtype = bjname[1]
136
+ // //====================================
137
+ // bjqlag = true
138
+ // datatemp.bjqid = i.id
139
+ // datatemp.fprocessid = i.f_process_id
140
+ // datatemp.f_bjq_sid = i.f_bjq_sid
141
+ // datatemp.f_material_code = i.f_material_code
142
+ // datatemp.f_bjq_lng = i.f_bjq_lng
143
+ // datatemp.f_bjq_lat = i.f_bjq_lat
144
+ // datatemp.f_bjq_gaode_lng = i.f_bjq_gaode_lng
145
+ // datatemp.f_bjq_gaode_lat = i.f_bjq_gaode_lng
146
+ // datatemp.f_bjq_baidu_lng = i.f_bjq_baidu_lng
147
+ // datatemp.f_bjq_baidu_lat = i.f_bjq_baidu_lat
148
+ // numOne.push(i.f_bjq_sid)
149
+ // }
150
+ // })
151
+ // })
152
+ if (!bjqlag){
153
+ this.$showMessage('请添加报警器物料信息!!!')
154
+ return
155
+ }
156
+ if (numOne.length > 1){
157
+ this.$showMessage("暂时支持单个报警器物料安装!!!")
158
+ return
159
+ }
160
+ datatemp.sqvalue = this.show_data.areaData.sqvalue
161
+
162
+ bjqststedata.f_userinfo_code = this.show_data.f_userinfo_code
163
+ //判断是否推送 及推送的状态
164
+ //查询是否存在, 以型号及厂家判断
165
+ let bjqres = await this.$resetpost(
166
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/getbjqsyncinfo`,
167
+ bjqststedata
168
+ )
169
+ if (bjqres.data.bjqstate != "成功"){
170
+ //区域地址存入材料记录表
171
+ let areares = await this.$resetpost(
172
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/saveArea`,
173
+ // `rs/logic/saveArea`,
174
+ {data: datatemp},
175
+ {resolveMsg: null, rejectMsg: '区域地址保存失败'}
176
+ )
177
+
178
+ // 完工之后推送数据到汉威
179
+ let adddata = {
180
+ f_bjq_sid : datatemp.f_bjq_sid,
181
+ f_material_code : datatemp.f_material_code,
182
+ f_bjq_lng : datatemp.f_bjq_lng,
183
+ f_bjq_lat : datatemp.f_bjq_lat,
184
+ f_orgid : this.show_data.f_orgid,
185
+ f_bjq_address: this.show_data.areaData.sqvalue,
186
+ f_user_name: this.show_data.f_user_name,
187
+ f_address: this.show_data.f_address,
188
+ f_user_phone: this.show_data.f_phone,
189
+ f_userinfo_code: this.show_data.f_userinfo_code,
190
+ installtime: this.show_data.f_construction_date,
191
+ }
192
+ let res = await this.$resetpost(
193
+ `${this.$androidUtil.getProxyUrl()}/ncc/rs/logic/bjqadduser`,
194
+ // `ncc/rs/logic/bjqadduser`,
195
+ // `${this.$androidUtil.getProxyUrl()}/rs/logic/bjqadduser`,
196
+ adddata
197
+ )
198
+ if (res.data.code != 200){
199
+ if (bjqres.data.bjqstate.length == 0){
200
+ bjqststedata.bjqstate = "失败"
201
+ let bjqres3 = await this.$resetpost(
202
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/addbjqsyncinfo`,
203
+ bjqststedata
204
+ )
205
+ }
206
+ this.$showMessage(res.data.msg)
207
+ return
208
+ }
209
+
210
+ //更改记录表状态
211
+ if (bjqres.data.bjqstate === "失败"){
212
+ bjqststedata.bjqstate = "成功"
213
+ let bjqres1 = await this.$resetpost(
214
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/updatebjqsyncinfo`,
215
+ bjqststedata
216
+ )
217
+ }else{
218
+ bjqststedata.bjqstate = "成功"
219
+ let bjqres2 = await this.$resetpost(
220
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/addbjqsyncinfo`,
221
+ bjqststedata
222
+ )
223
+ }
224
+ }
225
+ }
226
+ if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && (this.show_data.button.button_name === '提交'||this.show_data.button.button_name === '保存')){
227
+ let dataz = {
228
+ condition: `u.id = ${this.show_data.id}`,
229
+ data: {
230
+ id: Vue.user.id,
231
+ orgid: Vue.user.orgid
232
+ }
233
+ }
234
+ let http = new HttpResetClass()
235
+ let restpz = await http.load(
236
+ 'POST',
237
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
238
+ {data: dataz},
239
+ {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
240
+ )
241
+ this.show_data.actid=restpz.data[0].actid
242
+ }
243
+ if(this.show_data.button.button_name != '返回'){
244
+ this.excessive=true
245
+ let res = await this.$resetpost(
246
+ // `rs/logic/ApplyProductService`,
247
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyProductService`,
248
+ {data: this.show_data},
249
+ {resolveMsg: null, rejectMsg: '数据保存失败'}
250
+ )
251
+ this.excessive=false
252
+ if (this.show_data.button.after) {
253
+ this[this.show_data.button.after]()
254
+ }
255
+ }else {
256
+ if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' ){
257
+ if (this.show_data.button.after) {
258
+ this[this.show_data.button.after]()
259
+ }
260
+ this.$dispatch('confirm')
261
+ this.$dispatch('confirm')
262
+ }else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '工程派工'){
263
+ if (this.show_data.button.after) {
264
+ this[this.show_data.button.after]()
265
+ }
266
+ this.$dispatch('confirm')
267
+ this.$dispatch('confirm')
268
+ this.$dispatch('confirm')
269
+ }else{
270
+ if (this.show_data.button.after) {
271
+ this[this.show_data.button.after]()
272
+ }
273
+
274
+ this.$dispatch('confirm')
275
+ }
276
+
277
+ }
278
+
279
+ // 返回上层
280
+ if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '合同'){
281
+ this.excessive=true
282
+ let data = {
283
+ tablename: 't_apply',
284
+ condition: `f_process_id='${this.show_data.f_process_id}'`
285
+ }
286
+ let http = new HttpResetClass()
287
+ let restp = await http.load(
288
+ 'POST',
289
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
290
+ {data: data},
291
+ {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
292
+ )
293
+ restp.data[0].processname = '散户报建流程'
294
+ restp.data[0].defname = '合同签订'
295
+ let _this = this
296
+ this.$dispatch('gotoson', {
297
+ _this: _this,
298
+ title: restp.data[0].defname,
299
+ safe: true
300
+ })
301
+ this.$goto('app-service-control', {selectdata: restp.data[0]}, 'self')
302
+ this.excessive=false
303
+
304
+ } else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
305
+ this.excessive=true
306
+ let data2 = {
307
+ condition: `u.id = ${this.show_data.id}`,
308
+ data: {
309
+ id: Vue.user.id,
310
+ orgid: Vue.user.orgid
311
+ }
312
+ }
313
+ let http = new HttpResetClass()
314
+ let restp1 = await http.load(
315
+ 'POST',
316
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
317
+ {data: data2},
318
+ {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
319
+ )
320
+ console.log('打印查询的内容',restp1)
321
+ // restp1.data[0].processname = '散户报建流程'
322
+ // restp1.data[0].defname = '报装缴费'
323
+
324
+ let _this = this
325
+ this.$dispatch('gotoson', {
326
+ _this: _this,
327
+ title: restp1.data[0].defname,
328
+ safe: true
329
+ })
330
+ this.$goto('app-service-control', {selectdata: restp1.data[0]}, 'self')
331
+ this.excessive=false
332
+ }else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' && this.show_data.button.button_name === '提交'){
333
+ this.excessive=true
334
+ let data3 = {
335
+ condition: `u.id = ${this.show_data.id}`,
336
+ data: {
337
+ id: Vue.user.id,
338
+ orgid: Vue.user.orgid
339
+ }
340
+ }
341
+ let http = new HttpResetClass()
342
+ let restp2 = await http.load(
343
+ 'POST',
344
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
345
+ {data: data3},
346
+ {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
347
+ )
348
+ console.log('打印查询的内容',restp2)
349
+ debugger
350
+ if(restp2.length>0){
351
+ let _this = this
352
+ this.$dispatch('gotoson', {
353
+ _this: _this,
354
+ title: restp2.data[0].defname,
355
+ safe: true
356
+ })
357
+ this.$goto('app-service-control', {selectdata: restp2.data[0]}, 'self')
358
+ this.excessive=false
359
+ }else{
360
+ this.excessive=false
361
+ debugger
362
+ this.$dispatch('confirm')
363
+ this.$dispatch('confirm')
364
+ this.$dispatch('confirm')
365
+ }
366
+ }
367
+ else{
368
+ this.excessive=false
369
+ // console.log('-----')
370
+ this.$dispatch('confirm')
371
+ }
372
+
373
+
374
+ },
375
+ async refurbish() {
376
+ let data = {
377
+ workname: this.selectdata.processname
378
+ }
379
+
380
+ let res = await this.$resetpost(
381
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyGetConfigs`,
382
+ {data: data},
383
+ {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
384
+ )
385
+
386
+ this.json_datas = res.data
387
+
388
+ let sum = 0
389
+ let jsonData = {}
390
+ if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length === 0) {
391
+ this.$showMessage("网络故障,请刷新页面")
392
+ return
393
+ }
394
+ this.json_datas.activitys.forEach(item => {
395
+ if (this.selectdata.defname === item.title) {
396
+ jsonData = item // 拿到当前节点的json配置信息
397
+ sum++ // 节点名一样的个数
398
+ }
399
+ return this.selectdata.defname === item.title // 拿到当前节点的json配置信息
400
+ })
401
+
402
+ if (sum === 0) {
403
+ this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
404
+ return
405
+ }
406
+ if (sum > 1) {
407
+ this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
408
+ return
409
+ }
410
+
411
+ this.selectdata = Object.assign({}, this.selectdata, jsonData)
412
+
413
+ // fields 字段填充值
414
+ for (const item of this.selectdata.fields) {
415
+ if (!item.value) {
416
+ item.value = null
417
+ }
418
+
419
+ if (!item.value && (item.default || item.default === 0) && item.type !== 'datepicker') {
420
+ if (item.eval) {
421
+ let user = Vue.user
422
+ // 将PC用户信息 替换成 APP的
423
+ item.value = eval(item.default.replace('this.$login.f', 'user'))
424
+ } else {
425
+ item.value = item.default
426
+ }
427
+ }
428
+
429
+ if (this.selectdata[item.field]) {
430
+ // 将json字符串格式化赋值给value
431
+ if (String(this.selectdata[item.field]).startsWith("{")) {
432
+ item.value = JSON.parse(this.selectdata[item.field])
433
+ } else {
434
+ item.value = this.selectdata[item.field]
435
+ }
436
+ }
437
+ if (this.selectdata[item.field] === 0) {
438
+ item.value = 0
439
+ }
440
+
441
+ // datepicker
442
+ if (item.type === 'datepicker' && !item.value && item.default) {
443
+ item.value = new Date().Format(`${item.format ? item.format : 'yyyy-MM-dd HH:mm:ss'}`)
444
+ }
445
+
446
+ // 如果配置类型为select,优先从参数列表获取options
447
+ if (item.type === 'select' || item.type === 'checkbox') {
448
+ if (item.param) {
449
+ let temp = this.$appdata.getParam(item.label)
450
+
451
+ if (temp && temp.length > 0) {
452
+ item.options = temp
453
+ }
454
+
455
+ if (item.paramLabel) {
456
+ temp = this.$appdata.getParam(item.paramLabel)
457
+ if (temp && temp.length > 0) {
458
+ item.options = temp
459
+ }
460
+ }
461
+ }
462
+ console.log("item.ready"+item.ready)
463
+ if (item.ready) {
464
+ item.options = await this[item.ready]()
465
+ }
466
+ }
467
+
468
+
469
+ if (item.type === 'checkbox') {
470
+ if (this.selectdata[item.field]) {
471
+ item.value = JSON.parse(this.selectdata[item.field])
472
+ } else {
473
+ item.value = []
474
+ }
475
+ }
476
+ }
477
+
478
+ // 控制组件
479
+ if (this.selectdata.components) {
480
+ this.selectdata.components.forEach(item => {
481
+ if (!item.mark) {
482
+ item.mark = 0
483
+ }
484
+ })
485
+ }
486
+
487
+ // 初始化onetomany
488
+ if (this.selectdata.onetomany) {
489
+ for (const item of this.selectdata.onetomany) {
490
+ let res = null
491
+ if (item.queryEvent) {
492
+ res = this[item.queryEvent]()
493
+ } else {
494
+ let http = new HttpResetClass()
495
+ let data = {
496
+ tablename: item.tables[0],
497
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
498
+ }
499
+ res = await http.load(
500
+ 'POST',
501
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
502
+ // `rs/sql/singleTable`,
503
+ {data: data},
504
+ {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
505
+ )
506
+ }
507
+
508
+ item.rows = res.data
509
+
510
+ // 初始化onetomany中的fields
511
+ for (const field of item.fields) {
512
+ if (!field.value) {
513
+ if (field.value !== 0) {
514
+ field.value = null
515
+ }
516
+ }
517
+
518
+ if (field.default || field.default === 0) {
519
+ field.value = field.default
520
+ }
521
+
522
+ // datepicker
523
+ if (field.type === 'datepicker' && !field.value && field.default) {
524
+ field.value = new Date().Format(`${field.format ? field.format : 'yyyy-MM-dd HH:mm:ss'}`)
525
+ }
526
+
527
+ if (field.type === 'select') {
528
+
529
+ if (field.param) {
530
+ let temp = this.$appdata.getParam(field.label)
531
+
532
+ if (temp && temp.length > 0) {
533
+ field.options = temp
534
+ }
535
+
536
+ if (field.paramLabel) {
537
+ temp = this.$appdata.getParam(field.paramLabel)
538
+ if (temp && temp.length > 0) {
539
+ item.options = temp
540
+ }
541
+ }
542
+ }
543
+
544
+ }
545
+ }
546
+ }
547
+ }
548
+
549
+ // 初始化 buttons_fields
550
+ for (const item of this.selectdata.buttons) {
551
+ if (item.button_name === '下发') {
552
+ let data = {
553
+ source: item.source,
554
+ userid: Vue.user.id
555
+ // userid: '51953'
556
+ }
557
+ if (item.sourceMethod) {
558
+ data.source = this[item.sourceMethod]()
559
+ }
560
+ if (!data.source) {
561
+ this.$showMessage("请配置获取人员表达式")
562
+ return
563
+ }
564
+ let res = await this.$resetpost(
565
+ `${this.$androidUtil.getProxyUrl()}/rs/search`,
566
+ // `rs/search`,
567
+ {data: data},
568
+ {resolveMsg: null, rejectMsg: '下发人员查询失败!!!'}
569
+ )
570
+
571
+ let options = res.data.map(source => {
572
+ return {
573
+ "label": source.name,
574
+ "value": source.id
575
+ }
576
+ })
577
+
578
+ if (item.button_fields.length !== 1) {
579
+ this.$showMessage("下发有且只能有一个字段!!!")
580
+ return
581
+ }
582
+
583
+ item.button_fields[0].options = options
584
+ }
585
+ if (item.button_fields) {
586
+ item.button_fields.forEach(x => {
587
+ // 如果配置类型为select,优先从参数列表获取options
588
+ if (x.type === 'select') {
589
+
590
+ if (x.param) {
591
+ let temp = this.$appdata.getParam(x.label)
592
+
593
+ if (temp && temp.length > 0) {
594
+ x.options = temp
595
+ }
596
+
597
+ if (x.paramLabel) {
598
+ temp = this.$appdata.getParam(x.paramLabel)
599
+ if (temp && temp.length > 0) {
600
+ x.options = temp
601
+ }
602
+ }
603
+ }
604
+
605
+ }
606
+ })
607
+ }
608
+ }
609
+
610
+ // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
611
+ let temp = JSON.parse(JSON.stringify(this.selectdata))
612
+
613
+ this.show_data = temp
614
+ if(!this.show_data.showfei){
615
+ this.$set('show_data.showfei', '未收费')
616
+ }
617
+ //this.show_data.showfei=false
618
+
619
+ this.$nextTick(() => {
620
+ this.showview = true
621
+ })
622
+ },
623
+ signClean () {
624
+ this.selectdata.f_construction_sign = null
625
+ },
626
+ signSuccess (fileUrl) {
627
+ console.log('==============签字回调==================')
628
+ console.log(fileUrl)
629
+ this.selectdata.f_construction_sign = fileUrl
630
+ },
631
+ // 金额转大写
632
+ smalltoBIG(n) {
633
+ let fraction = ['角', '分'];
634
+ let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
635
+ let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
636
+ let head = n < 0 ? '' : '';
637
+ n = Math.abs(n);
638
+
639
+ let s = '';
640
+
641
+ for (var i = 0; i < fraction.length; i++) {
642
+ s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
643
+ }
644
+ s = s || '';
645
+ n = Math.floor(n);
646
+
647
+ for (var i = 0; i < unit[0].length && n > 0; i++) {
648
+ let p = '';
649
+ for (var j = 0; j < unit[1].length && n > 0; j++) {
650
+ p = digit[n % 10] + unit[1][j] + p;
651
+ n = Math.floor(n / 10);
652
+ }
653
+ s = p.replace(/(零.)*零$/, '').replace(/^$/, '') + unit[0][i] + s;
654
+ }
655
+ return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
656
+ },
657
+ getLableValue(label) {
658
+ for (const item of this.show_data.fields) {
659
+ if (item.label === label && item.type !== 'number') {
660
+ return item.value || ''
661
+ }
662
+ if (item.label === label && item.type === 'number') {
663
+ return item.value || 0
664
+ }
665
+ }
666
+ },
667
+ getLableOptions(label) {
668
+ for (const item of this.show_data.fields) {
669
+ if (item.label === label) {
670
+ return item.options
671
+ }
672
+ }
673
+ },
674
+ hideLabels(...labels) {
675
+ for (const item of this.show_data.fields) {
676
+ if (labels.includes(item.label)) {
677
+ item.hidden = true
678
+ }
679
+ }
680
+ },
681
+ requiredLabels(...labels) {
682
+ for (const item of this.show_data.fields) {
683
+ if (labels.includes(item.label)) {
684
+ item.required = true
685
+ }
686
+ }
687
+ },
688
+ electiveLabels(...labels) {
689
+ for (const item of this.show_data.fields) {
690
+ if (labels.includes(item.label)) {
691
+ item.required = false
692
+ }
693
+ }
694
+ },
695
+ showLabels(...labels) {
696
+ for (const item of this.show_data.fields) {
697
+ if (labels.includes(item.label)) {
698
+ item.hidden = false
699
+ }
700
+ }
701
+ },
702
+ setLabelValue(label, value) {
703
+ for (const item of this.show_data.fields) {
704
+ if (item.label === label) {
705
+ item.value = value
706
+ this.show_data[item.field] = value
707
+ }
708
+ }
709
+ },
710
+ setLabelOptions(label, options) {
711
+ for (const item of this.show_data.fields) {
712
+ if (item.label === label) {
713
+ item.options = options
714
+ }
715
+ }
716
+ },
717
+ disabledButtons(...buttons) {
718
+ for (const item of this.show_data.buttons) {
719
+ if (buttons.includes(item.button_name)) {
720
+ item.disabled = true
721
+ }
722
+ }
723
+ },
724
+ enableButtons(...buttons) {
725
+ for (const item of this.show_data.buttons) {
726
+ if (buttons.includes(item.button_name)) {
727
+ item.disabled = false
728
+ }
729
+ }
730
+ },
731
+ showButtons(...buttons) {
732
+ for (const item of this.show_data.buttons) {
733
+ if (buttons.includes(item.button_name)) {
734
+ item.hidden = false
735
+ }
736
+ }
737
+ },
738
+ hideButtons(...buttons) {
739
+ for (const item of this.show_data.buttons) {
740
+ if (buttons.includes(item.button_name)) {
741
+ item.hidden = true
742
+ }
743
+ }
744
+ },
745
+ async streetChange () {
746
+ if (isEmpty(this.show_data.f_street)) {
747
+ return
748
+ }
749
+
750
+ let data = {
751
+ tablename: 't_area',
752
+ // condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.show_data.f_street}'`
753
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}'`
754
+ }
755
+ let http = new HttpResetClass()
756
+ let res = await http.load(
757
+ 'POST',
758
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
759
+ {data: data},
760
+ {resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
761
+ )
762
+
763
+ this.setLabelOptions('集收单位', res.data.map(item => {
764
+ return {
765
+ label: item.f_residential_area,
766
+ value: item.f_residential_area
767
+ }
768
+ }))
769
+ },
770
+ // 获取集收单位
771
+ async getArea () {
772
+ let data = {
773
+ tablename: 't_area',
774
+ condition: `f_filialeid = '${Vue.user.orgid}'`
775
+ }
776
+ let http = new HttpResetClass()
777
+ let res = await http.load(
778
+ 'POST',
779
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
780
+ {data: data},
781
+ {resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
782
+ )
783
+
784
+ return res.data.map(item => {
785
+ return {
786
+ label: item.f_residential_area,
787
+ value: item.f_residential_area
788
+ }
789
+ })
790
+ },
791
+ async pcdChange () {
792
+ if (isEmpty(this.show_data.f_pcd)) {
793
+ return
794
+ }
795
+
796
+ let data = {
797
+ tablename: 't_street',
798
+ // condition: `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
799
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
800
+ }
801
+ let f_address_type = this.getLableValue('地址类型')
802
+
803
+ if (f_address_type === '民用市区') {
804
+ // data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
805
+ data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
806
+ }
807
+ if (f_address_type === '民用乡镇') {
808
+ // data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
809
+ data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
810
+ }
811
+
812
+ let http = new HttpResetClass()
813
+ let res = await http.load(
814
+ 'POST',
815
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
816
+ {data: data},
817
+ {resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
818
+ )
819
+
820
+ this.setLabelOptions('街道/乡镇', res.data.map(item => {
821
+ return {
822
+ label: item.f_street,
823
+ value: item.f_street
824
+ }
825
+ }))
826
+ },
827
+ async addressInitialization () {
828
+ //this.$getConfig(this, 'UserAddress')
829
+ //获取地址配置文件
830
+ try {
831
+ let res = await new HttpResetClass().load('get',`${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`,null,{resolveMsg: null, rejectMsg: null})
832
+ Object.assign(this.config, res.data)
833
+ } catch (error) {
834
+ console.log("未获取到地址信息")
835
+ }
836
+ console.log("???????????不走了吗!")
837
+ let f_address_type = this.show_data.f_address_type
838
+
839
+ for (const item of this.show_data.fields) {
840
+ if (f_address_type === '民用市区') {
841
+ if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
842
+ item.hidden = false
843
+ item.required = true
844
+ }
845
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
846
+ item.hidden = false
847
+ item.required = false
848
+ }
849
+ if (item.label === '地址') {
850
+ item.readonly = true
851
+ }
852
+ }
853
+ if (f_address_type === '民用乡镇') {
854
+ if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
855
+ item.hidden = false
856
+ item.required = true
857
+ }
858
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
859
+ item.hidden = false
860
+ item.required = false
861
+ }
862
+ if (item.label === '楼层') {
863
+ item.hidden = true
864
+ item.required = false
865
+ }
866
+ if (item.label === '地址') {
867
+ item.readonly = true
868
+ }
869
+ }
870
+ if (f_address_type === '特殊地址') {
871
+ if (item.label === '区/县' || item.label === '街道/乡镇') {
872
+ item.hidden = false
873
+ item.required = true
874
+ }
875
+ if (item.label === '集收单位') {
876
+ item.hidden = false
877
+ item.required = false
878
+ }
879
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
880
+ item.hidden = true
881
+ item.required = false
882
+ }
883
+ if (item.label === '地址') {
884
+ item.readonly = false
885
+ }
886
+ }
887
+
888
+ if (this.show_data.f_apply_source === '线下发起' && item.label === '预约地址') {
889
+ item.hidden = true
890
+ }
891
+ }
892
+ },
893
+
894
+ async checkDuplicate(index) {
895
+ let http = new HttpResetClass()
896
+ let data = {
897
+ tablename: 't_apply',
898
+ condition: `${this.show_data.fields[index].field} = '${this.show_data.fields[index].value}'`
899
+ }
900
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
901
+ resolveMsg: null,
902
+ rejectMsg: `${this.show_data.fields[index].label}查询失败`
903
+ })
904
+ if (res.data.length > 0) {
905
+ this.show_data.fields[index].value = null
906
+ this.$showAlert(`${this.show_data.fields[index].label}已存在!!!`, 'warning', 3000)
907
+ }
908
+ },
909
+ async breakControl () {
910
+ if (this.show_data.id) {
911
+ let data = {
912
+ condition: `u.id = ${this.show_data.id}`,
913
+ data: {
914
+ id: Vue.user.id,
915
+ orgid: Vue.user.orgid
916
+ // id: '51953',
917
+ // orgid: '10101'
918
+ }
919
+ }
920
+ let res = await this.$resetpost(
921
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
922
+ // `rs/sql/checkuser`,
923
+ {data: data},
924
+ {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
925
+ )
926
+
927
+ this.selectdata = res.data[0]
928
+ } else {
929
+ this.selectdata = servicedata
930
+ }
931
+
932
+ this.refurbish()
933
+ },
934
+ async addressTips () {
935
+ let res = ''
936
+ if (this.show_data.f_apply_type === '报警器报建' || this.show_data.f_apply_type === '工商业报警器报建') {
937
+ res = await this.$showMessage('报警器报建下单后将不能修改用户信息,请确认用户信息地址等是否正确,如不完善可在档案中进行修正!!!')
938
+ }else{
939
+ res = await this.$showMessage('增容改管下单后将不能修改用户信息,请确认用户信息地址等是否正确,如不完善可在档案中进行修正!!!')
940
+ }
941
+ if (res == 'confirm') {
942
+ return
943
+ }
944
+ throw '用户信息确认!!!'
945
+ },
946
+ // 缴费前置
947
+ chargeBefore () {
948
+ if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
949
+ this.$showAlert('费用未结清!!!', 'warning', 3000)
950
+ throw null
951
+ }
952
+ },
953
+ // 施工前置
954
+ async constructionBefore () {
955
+ let http = new HttpResetClass()
956
+ let data = {
957
+ condition: `ui.f_process_id = '${this.show_data.f_process_id}' and uf.f_meter_classify is null and f_meternumber is null`
958
+ }
959
+ let res = await http.load(
960
+ 'POST',
961
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/countApplyUserinfo`,
962
+ {data: data},
963
+ {
964
+ resolveMsg: null,
965
+ rejectMsg: '安装明细查询失败!!!'
966
+ })
967
+ if (res.data[0].num > 0) {
968
+ this.$showAlert(`还有${res.data[0].num}户未安装,无法提交`, 'warning', 3000)
969
+ throw `还有${res.data[0].num}户未安装,无法提交`
970
+ }
971
+ },
972
+ changePipeBuild () {
973
+ if (this.selectdata.f_process_dep === '工程部') {
974
+ return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
975
+ }
976
+ if (this.selectdata.f_process_dep === '运营部') {
977
+ return 'this.getParentByType($organization$).getChildByName($运营部报装$).getChildren()'
978
+ }
979
+ return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
980
+ },
981
+ async getPrice (f_price_id) {
982
+ console.log('=======================')
983
+ console.log(f_price_id)
984
+
985
+ let data = {
986
+ condition: `sp.f_filialeid = '${Vue.user.orgid}'`
987
+ }
988
+
989
+ if (!isEmpty(f_price_id)) {
990
+ data.condition = `sp.f_filialeid = '${Vue.user.orgid}' and sp.f_price_id = ${f_price_id}`
991
+ }
992
+ let http = new HttpResetClass()
993
+ let res = await http.load(
994
+ 'POST',
995
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/applyGetPrice`,
996
+ {data: data},
997
+ {resolveMsg: null, rejectMsg: '气价查询失败!!!'}
998
+ )
999
+
1000
+ return res.data.map(item => {
1001
+ return {
1002
+ label: item.f_price_name,
1003
+ value: item
1004
+ }
1005
+ })
1006
+ },
1007
+ async getDesignerPeople () {
1008
+ let data = {
1009
+ source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
1010
+ userid: Vue.user.id
1011
+ }
1012
+
1013
+ let http = new HttpResetClass()
1014
+ let res = await http.load(
1015
+ 'POST',
1016
+ `${this.$androidUtil.getProxyUrl()}/rs/search`,
1017
+ {data: data},
1018
+ {resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
1019
+ )
1020
+
1021
+ return res.data.map(item => {
1022
+ return {
1023
+ label: item.name,
1024
+ value: item.id
1025
+ }
1026
+ })
1027
+ },
1028
+ async surveyStopApply () {
1029
+ console.log('终止报建!!!!!')
1030
+
1031
+ this.show_data.f_stop_reason = '现场勘察不符合报装条件'
1032
+
1033
+ let data = {
1034
+ data: this.show_data,
1035
+ user: Vue.user
1036
+ }
1037
+
1038
+ let res = await this.$resetpost(
1039
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/surveyStopApply`,
1040
+ {data: data},
1041
+ {resolveMsg: null, rejectMsg: '终止报建失败!!!'}
1042
+ )
1043
+
1044
+ this.$dispatch('loadPage')
1045
+
1046
+ throw '终止报建!!!'
1047
+ },
1048
+ async getDevInfo () {
1049
+ let data = {
1050
+ tablename: 't_dev_info',
1051
+ condition: `f_orgid = '${Vue.user.orgid}'`
1052
+ }
1053
+ let http = new HttpResetClass()
1054
+ let res = await http.load(
1055
+ 'POST',
1056
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
1057
+ {data: data},
1058
+ {resolveMsg: null, rejectMsg: '公司查询失败!!!'}
1059
+ )
1060
+
1061
+ return res.data.map(item => {
1062
+ return {
1063
+ label: item.f_dev_name,
1064
+ value: item.f_dev_name
1065
+ }
1066
+ })
1067
+ },
1068
+ // 获取片区
1069
+ async getSliceArea () {
1070
+ let data = {
1071
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
1072
+ userid: Vue.user.id
1073
+ }
1074
+
1075
+ let http = new HttpResetClass()
1076
+ let res = await http.load(
1077
+ 'POST',
1078
+ `${this.$androidUtil.getProxyUrl()}/rs/search`,
1079
+ {data: data},
1080
+ {resolveMsg: null, rejectMsg: '片区查询失败!!!'}
1081
+ )
1082
+
1083
+ return res.data.map(item => {
1084
+ return {
1085
+ label: item.name,
1086
+ value: item.name
1087
+ }
1088
+ })
1089
+ },
1090
+ // 获取区县
1091
+ async getPcd () {
1092
+ let data = {
1093
+ tablename: 't_pcd',
1094
+ condition: `f_filialeid = '${Vue.user.orgid}'`
1095
+ }
1096
+ let http = new HttpResetClass()
1097
+ let res = await http.load(
1098
+ 'POST',
1099
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
1100
+ {data: data},
1101
+ {resolveMsg: null, rejectMsg: '区县查询失败!!!'}
1102
+ )
1103
+
1104
+ return res.data.map(item => {
1105
+ return {
1106
+ label: item.f_pcd,
1107
+ value: item.f_pcd
1108
+ }
1109
+ })
1110
+ }
1111
+
1112
+ },
1113
+ events: {
1114
+ 'complyInstallation' (index) {
1115
+ if (this.show_data.f_is_have === '否') {
1116
+ this.hideButtons('提交', '出图', '缴费')
1117
+ this.showButtons('终止')
1118
+ }
1119
+ if (this.show_data.f_is_have === '是') {
1120
+ this.hideButtons('终止')
1121
+ this.showButtons('提交', '出图', '缴费')
1122
+ }
1123
+ },
1124
+ async 'igniteDispatchReadyEvent' () {
1125
+ let data = {
1126
+ tablename: 'activityins',
1127
+ condition: `processid = '${this.show_data.f_process_id}' and defname = '工程施工' and state = '结束'`
1128
+ }
1129
+ let http = new HttpResetClass()
1130
+ let res = await http.load(
1131
+ 'POST',
1132
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
1133
+ {data: data},
1134
+ {resolveMsg: null, rejectMsg: '查询失败!!!'}
1135
+ )
1136
+ if (res.data.length <= 0) {
1137
+ console.log('+++++++++++++++++++++++++++++')
1138
+ console.log('没有施工,不能退回')
1139
+ this.hideButtons('退回')
1140
+ }
1141
+ },
1142
+ 'breakControl' (val) {
1143
+ this.breakControl(val)
1144
+ },
1145
+ // 检查重复
1146
+ 'checkRepeat' (index) {
1147
+ this.checkDuplicate(index)
1148
+ },
1149
+ 'buildReadyEvent' () {
1150
+ this.setLabelValue('施工单位', Vue.user.name)
1151
+ this.setLabelValue('施工安装时间', new Date().Format('yyyy-MM-dd HH:mm:ss'))
1152
+ },
1153
+ // 选择材料
1154
+ async materialNameChenge (index, fieldIndex) {
1155
+ let material = this.show_data.onetomany[index].fields[fieldIndex].value
1156
+
1157
+ this.show_data.onetomany[index].fields.forEach(item => {
1158
+ if (material[item.field]) {
1159
+ item.value = material[item.field]
1160
+ }
1161
+ })
1162
+ },
1163
+ // 打开模态框获取材料
1164
+ async 'getMaterialName' (index) {
1165
+ let data = {
1166
+ condition: `1=1`
1167
+ }
1168
+ let http = new HttpResetClass()
1169
+ let res = await http.load(
1170
+ 'POST',
1171
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/getStockMaterial`,
1172
+ {data: data},
1173
+ {resolveMsg: null, rejectMsg: '材料查询失败!!!'}
1174
+ )
1175
+
1176
+ this.show_data.onetomany[index].fields.forEach(field => {
1177
+ if (field.label === '选择材料') {
1178
+ field.options = res.data.map(item => {
1179
+ return {
1180
+ 'label': `${item.f_material_name}--${item.f_material_style}--${item.f_material_unit}`,
1181
+ 'value': item
1182
+ }
1183
+ })
1184
+ }
1185
+ })
1186
+ },
1187
+ // 选择气价
1188
+ 'priceChange' (index) {
1189
+ if (isEmpty(this.show_data.stairPrice)) {
1190
+ return
1191
+ }
1192
+
1193
+ let stairPrice = this.getLableValue('气价名称')
1194
+
1195
+ this.setLabelValue('气价类型', stairPrice.f_price_type)
1196
+ this.setLabelValue('用气性质', stairPrice.f_gasproperties)
1197
+ this.setLabelValue('价格', stairPrice.f_price)
1198
+ this.setLabelValue('客户类型', stairPrice.f_user_type)
1199
+
1200
+ this.show_data.f_price_id = stairPrice.f_price_id
1201
+ this.show_data.f_price_name = stairPrice.f_price_name
1202
+ },
1203
+ // 是否购买保险
1204
+ isInsureChange (index) {
1205
+ let f_is_insure = this.getLableValue('是否购买保险')
1206
+ for (const item of this.show_data.fields) {
1207
+ if (f_is_insure === '是') {
1208
+ if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额') {
1209
+ item.hidden = false
1210
+ item.required = true
1211
+ }
1212
+ if (item.label === '保险备注') {
1213
+ item.hidden = false
1214
+ }
1215
+ } else {
1216
+ if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
1217
+ item.hidden = true
1218
+ item.required = false
1219
+ }
1220
+ }
1221
+ }
1222
+ },
1223
+ // 通气点火初始化
1224
+ async 'gasReadyEvent' () {
1225
+ console.log('----通气点火初始化----')
1226
+ if (!isEmpty(this.show_data.f_price_id)) {
1227
+ let priceList = await this.getPrice(this.show_data.f_price_id)
1228
+ this.setLabelValue('气价名称', priceList[0].value)
1229
+ }
1230
+
1231
+ let data = {
1232
+ tablename: 't_userfees',
1233
+ condition: `f_orgid = '${Vue.user.orgid}' and f_userinfo_id = '${this.show_data.f_userinfo_id}' and f_state = '待执行'`
1234
+ }
1235
+
1236
+ console.log('---------查询是否有待执行保险-----------')
1237
+ let http = new HttpResetClass()
1238
+ let res = await http.load(
1239
+ 'POST',
1240
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
1241
+ {data: data},
1242
+ {resolveMsg: null, rejectMsg: '保险查询失败!!!'}
1243
+ )
1244
+ if (res.data.length > 0) {
1245
+ console.log('----------具有待执行保险------------')
1246
+ this.setLabelValue('待执行保险', '是')
1247
+ for (const item of this.show_data.fields) {
1248
+ if (item.label === '保费开始日期' || item.label === '是否购买保险' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
1249
+ item.hidden = true
1250
+ item.required = false
1251
+ item.value = null
1252
+ }
1253
+ }
1254
+ console.log('----------具有待执行保险------------')
1255
+ } else {
1256
+ console.log('----------不有待执行保险------------')
1257
+ this.setLabelValue('待执行保险', '否')
1258
+ for (const item of this.show_data.fields) {
1259
+ if (item.label === '是否购买保险' || item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
1260
+ item.hidden = false
1261
+ item.required = true
1262
+ }
1263
+ }
1264
+ console.log('----------具有待执行保险------------')
1265
+ }
1266
+
1267
+ // 初始化显示内容
1268
+ let f_is_insure = this.getLableValue('是否购买保险')
1269
+ for (const item of this.show_data.fields) {
1270
+ if (f_is_insure === '是') {
1271
+ if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额') {
1272
+ item.hidden = false
1273
+ item.required = true
1274
+ }
1275
+ if (item.label === '保险备注') {
1276
+ item.hidden = false
1277
+ }
1278
+ // 本期保费到期时间默认一年
1279
+ if (isEmpty(this.selectdata.f_ins_expiration_date)) {
1280
+ let f_ins_expiration_date = new Date().setFullYear(new Date().getFullYear() + 1)
1281
+ this.setLabelValue("保费结束日期", new Date(f_ins_expiration_date).Format('yyyy-MM-dd'))
1282
+ }
1283
+ }
1284
+ if (f_is_insure === '否') {
1285
+ if (item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
1286
+ item.hidden = true
1287
+ item.required = false
1288
+ }
1289
+ }
1290
+ }
1291
+ },
1292
+ // 合同金额失去焦点
1293
+ async 'contractMoneyChange' (index) {
1294
+ let data = {
1295
+ operator: '+',
1296
+ num1: this.show_data.f_contract_money || 0,
1297
+ num2: this.getLableValue('追加金额') || 0
1298
+ }
1299
+ let res = await this.$resetpost(
1300
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/compute`,
1301
+ {data: data},
1302
+ {resolveMsg: null, rejectMsg: '金额计算失败!!!'}
1303
+ )
1304
+
1305
+ this.setLabelValue('应交金额', res.data)
1306
+ },
1307
+ // ===========================================
1308
+ async 'button'() {
1309
+ console.log('-----')
1310
+ await this.buttonCommit()
1311
+ },
1312
+ // 失去焦点出触发事件
1313
+ 'onchange' (index) {
1314
+ if (this.show_data.defname === '报装申请') {
1315
+ if (
1316
+ this.show_data.fields[index].label === '区/县' ||
1317
+ this.show_data.fields[index].label === '街道/乡镇' ||
1318
+ this.show_data.fields[index].label === '集收单位' ||
1319
+ this.show_data.fields[index].label === '楼号/组' ||
1320
+ this.show_data.fields[index].label === '单元/排' ||
1321
+ this.show_data.fields[index].label === '楼层' ||
1322
+ this.show_data.fields[index].label === '门牌号'
1323
+ ) {
1324
+
1325
+ let f_pcd = this.getLableValue('区/县') || ''
1326
+ let f_street = this.getLableValue('街道/乡镇') || ''
1327
+ let f_residential_area = this.getLableValue('集收单位') || ''
1328
+ let f_building = this.getLableValue('楼号/组') || ''
1329
+ let f_building_suffix = f_building ? this.config.f_building_suffix : ''
1330
+ let f_unit = this.getLableValue('单元/排') || ''
1331
+ let f_unit_suffix = f_unit ? this.config.f_unit_suffix : ''
1332
+ let f_floor = this.getLableValue('楼层') || ''
1333
+ let f_floor_suffix = f_floor ? this.config.f_floor_suffix : ''
1334
+ let f_room = this.getLableValue('门牌号') || ''
1335
+ let f_room_suffix = f_room ? this.config.f_room_suffix : ''
1336
+
1337
+ let f_address = null
1338
+
1339
+ let f_address_type = this.show_data.f_address_type
1340
+ f_address = f_pcd + f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
1341
+ /*if (f_address_type === '民用城区') {
1342
+ f_address = f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
1343
+ }
1344
+ if (f_address_type === '民用农村') {
1345
+ f_address = f_building + f_unit + f_floor + f_room
1346
+ }
1347
+ if (f_address_type === '特殊城区') {
1348
+ f_address = f_street + f_residential_area
1349
+ }*/
1350
+ this.setLabelValue("地址", f_address)
1351
+ }
1352
+ }
1353
+ },
1354
+ async 'getDesignerPeople' () {
1355
+ let data = {
1356
+ source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
1357
+ userid: this.$login.f.id
1358
+ }
1359
+
1360
+ let http = new HttpResetClass()
1361
+ let res = await http.load(
1362
+ 'POST',
1363
+ `rs/search`,
1364
+ {data: data},
1365
+ {resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
1366
+ )
1367
+
1368
+ return res.data.map(item => {
1369
+ return {
1370
+ label: item.name,
1371
+ value: item.id
1372
+ }
1373
+ })
1374
+ },
1375
+ // 申请节点初始化
1376
+ 'applyReadyEvent' () {
1377
+ this.addressInitialization()
1378
+
1379
+ this.pcdChange()
1380
+ this.streetChange()
1381
+ },
1382
+ // 街道失去焦点
1383
+ async 'streetChange' (index) {
1384
+ if (isEmpty(this.show_data.f_street)) {
1385
+ return
1386
+ }
1387
+
1388
+ this.setLabelValue('集收单位', null)
1389
+
1390
+ let data = {
1391
+ tablename: 't_area',
1392
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}'`
1393
+ }
1394
+ let http = new HttpResetClass()
1395
+ let res = await http.load(
1396
+ 'POST',
1397
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
1398
+ {data: data},
1399
+ {resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
1400
+ )
1401
+
1402
+ this.setLabelOptions('集收单位', res.data.map(item => {
1403
+ return {
1404
+ label: item.f_residential_area,
1405
+ value: item.f_residential_area
1406
+ }
1407
+ }))
1408
+ },
1409
+ // 选择报建项目
1410
+ 'selectApply' (row) {
1411
+ this.setLabelValue('工程名称', row.f_entry_name)
1412
+ this.setLabelValue('工程编号', row.f_apply_num)
1413
+ this.setLabelValue('报建类型', row.f_apply_type)
1414
+ this.setLabelValue('用户名称', row.f_user_name)
1415
+ this.setLabelValue('用户电话', row.f_phone)
1416
+ this.setLabelValue('证件类型', row.f_credentials)
1417
+ this.setLabelValue('证件号码', row.f_idnumber)
1418
+ this.setLabelValue('地址', row.f_address)
1419
+ this.setLabelValue('累计缴费金额', row.f_cumulative_payment_money)
1420
+
1421
+ this.show_data.parentApply = JSON.parse(JSON.stringify(row))
1422
+
1423
+ delete row.id
1424
+ delete row.actid
1425
+ delete row.defid
1426
+ delete row.defname
1427
+ delete row.version
1428
+ delete row.f_apply_num
1429
+ delete row.f_sub_state
1430
+ delete row.f_apply_type
1431
+ delete row.f_process_id
1432
+
1433
+ this.show_data = Object.assign({}, this.show_data, row)
1434
+
1435
+ this.show_data.f_parent_process_id = this.show_data.parentApply.f_process_id
1436
+ },
1437
+ // 区县失去焦点
1438
+ async 'pcdChange' (index) {
1439
+ if (isEmpty(this.show_data.f_pcd)) {
1440
+ return
1441
+ }
1442
+
1443
+ this.setLabelValue('街道/乡镇', null)
1444
+ this.setLabelValue('集收单位', null)
1445
+
1446
+
1447
+
1448
+ let data = {
1449
+ tablename: 't_street',
1450
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
1451
+ }
1452
+ let f_address_type = this.getLableValue('地址类型')
1453
+
1454
+ if (f_address_type === '民用市区') {
1455
+ data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
1456
+ }
1457
+ if (f_address_type === '民用乡镇') {
1458
+ data.condition = `f_filialeid = '${Vue.user.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
1459
+ }
1460
+
1461
+ let http = new HttpResetClass()
1462
+ let res = await http.load(
1463
+ 'POST',
1464
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
1465
+ {data: data},
1466
+ {resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
1467
+ )
1468
+
1469
+ this.setLabelOptions('街道/乡镇', res.data.map(item => {
1470
+ return {
1471
+ label: item.f_street,
1472
+ value: item.f_street
1473
+ }
1474
+ }))
1475
+ },
1476
+ // 选择用户档案信息
1477
+ 'selectUserinfo' (row) {
1478
+ this.setLabelValue('用户编号', row.f_userinfo_code)
1479
+ this.setLabelValue('用户名称', row.f_user_name)
1480
+ this.setLabelValue('用户电话', row.f_user_phone)
1481
+ this.setLabelValue('证件类型', row.f_credentials)
1482
+ this.setLabelValue('证件号码', row.f_idnumber)
1483
+ this.setLabelValue('地址', row.f_address)
1484
+
1485
+ this.show_data.f_userinfo_id = row.f_userinfo_id
1486
+ this.show_data.f_userinfo_code = row.f_userinfo_code
1487
+ },
1488
+ // 地址类型失去焦点
1489
+ 'addressTypeChange' (index) {
1490
+ this.setLabelValue('街道/乡镇', null)
1491
+ this.setLabelValue('集收单位', null)
1492
+ let f_address_type = this.show_data.fields[index].value
1493
+ for (const item of this.show_data.fields) {
1494
+ if (f_address_type === '民用市区') {
1495
+ if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
1496
+ item.hidden = false
1497
+ item.required = true
1498
+ item.value = null
1499
+ }
1500
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
1501
+ item.hidden = false
1502
+ item.required = false
1503
+ item.value = null
1504
+ }
1505
+ if (item.label === '地址') {
1506
+ item.readonly = true
1507
+ item.value = null
1508
+ }
1509
+ }
1510
+ if (f_address_type === '民用乡镇') {
1511
+ if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
1512
+ item.hidden = false
1513
+ item.required = true
1514
+ item.value = null
1515
+ }
1516
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
1517
+ item.hidden = false
1518
+ item.required = false
1519
+ item.value = null
1520
+ }
1521
+ if (item.label === '楼层') {
1522
+ item.hidden = true
1523
+ item.required = false
1524
+ item.value = null
1525
+ }
1526
+ if (item.label === '地址') {
1527
+ item.readonly = true
1528
+ item.value = null
1529
+ }
1530
+ }
1531
+ if (f_address_type === '特殊地址') {
1532
+ if (item.label === '区/县' || item.label === '街道/乡镇') {
1533
+ item.hidden = false
1534
+ item.required = true
1535
+ item.value = null
1536
+ }
1537
+ if (item.label === '集收单位') {
1538
+ item.hidden = false
1539
+ item.required = false
1540
+ item.value = null
1541
+ }
1542
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
1543
+ item.hidden = true
1544
+ item.required = false
1545
+ item.value = null
1546
+ }
1547
+ if (item.label === '地址') {
1548
+ item.readonly = false
1549
+ item.value = null
1550
+ }
1551
+ }
1552
+ }
1553
+ },
1554
+ // 搜索小区
1555
+ async 'searchArea' (area, index) {
1556
+ let data = {
1557
+ tablename: 't_area',
1558
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}' and f_residential_area like '%${area}%'`
1559
+ }
1560
+ let http = new HttpResetClass()
1561
+ let res = await http.load(
1562
+ 'POST',
1563
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
1564
+ {data: data},
1565
+ {resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
1566
+ )
1567
+
1568
+ if (res.data.length === 0) {
1569
+ return
1570
+ }
1571
+
1572
+ this.setLabelOptions('集收单位', res.data.map(item => {
1573
+ return {
1574
+ label: item.f_residential_area,
1575
+ value: item.f_residential_area
1576
+ }
1577
+ }))
1578
+ },
1579
+ // 搜索小区
1580
+ async 'searchAreaCollective' (area, index) {
1581
+ let data = {
1582
+ tablename: 't_area',
1583
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_residential_area like '%${area}%'`
1584
+ }
1585
+ let http = new HttpResetClass()
1586
+ let res = await http.load(
1587
+ 'POST',
1588
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
1589
+ {data: data},
1590
+ {resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
1591
+ )
1592
+
1593
+ if (res.data.length === 0) {
1594
+ return
1595
+ }
1596
+
1597
+ this.setLabelOptions('集收单位', res.data.map(item => {
1598
+ return {
1599
+ label: item.f_residential_area,
1600
+ value: item.f_residential_area
1601
+ }
1602
+ }))
1603
+ },
1604
+ // 团购转散户初始化
1605
+ 'apply2ReadyEvent' () {
1606
+ if (this.show_data.f_apply_source === '线下发起') {
1607
+ this.addressInitialization()
1608
+ this.hideLabels('用户编号')
1609
+ this.electiveLabels('用户编号')
1610
+ this.showLabels('片区', '地址类型')
1611
+ this.requiredLabels('片区', '地址类型')
1612
+ }
1613
+ if (this.show_data.f_apply_source === '自动发起') {
1614
+ this.hideLabels('片区', '地址类型')
1615
+ this.electiveLabels('片区', '地址类型',)
1616
+ }
1617
+ },
1618
+ 'onblur' (index) {},
1619
+ 'oninput' (index) {},
1620
+ 'initializtionView' () {},
1621
+ async 'onchangeModal' (index, fieldIndex) {
1622
+ },
1623
+ async 'onblurModal' (index, fieldIndex) {
1624
+
1625
+ },
1626
+ async 'oninputModal' (index, fieldIndex) {
1627
+
1628
+ },
1629
+ async 'onetomanydelete' (index, rowIndex) {
1630
+
1631
+ let http = new HttpResetClass()
1632
+
1633
+ let res = await http.load(
1634
+ 'DELETE',
1635
+ `${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}/${this.show_data.onetomany[index].rows[rowIndex].id}`,
1636
+ null,
1637
+ {resolveMsg: null, rejectMsg: '删除失败!!!'}
1638
+ )
1639
+ res = await this.$resetpost(
1640
+ `${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
1641
+ this.show_data
1642
+ )
1643
+ this.breakControl()
1644
+ },
1645
+ async 'onetomanyupdate' (index, rowIndex) {
1646
+ let data = this.show_data.onetomany[index].rows[rowIndex]
1647
+
1648
+ this.show_data.onetomany[index].fields.forEach(item => {
1649
+ data[item.field] = item.value
1650
+ })
1651
+ let res = await this.$resetpost(
1652
+ `${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
1653
+ data
1654
+ )
1655
+ res = await this.$resetpost(
1656
+ `${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
1657
+ this.show_data
1658
+ )
1659
+ this.breakControl()
1660
+ },
1661
+ async 'onetomanyadd' (index) {
1662
+ let data = {
1663
+ f_process_id : this.show_data.f_process_id,
1664
+ f_operator_id: Vue.user.id,
1665
+ f_operator: Vue.user.name,
1666
+ f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
1667
+ f_orgid: Vue.user.orgid,
1668
+ f_orgname: Vue.user.orgs
1669
+ }
1670
+ this.show_data.onetomany[index].fields.forEach(item => {
1671
+ data[item.field] = item.value
1672
+ })
1673
+ let res = await this.$resetpost(
1674
+ `${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
1675
+ data
1676
+ )
1677
+ res = await this.$resetpost(
1678
+ `${this.$androidUtil.getProxyUrl()}/rs/entity/t_apply`,
1679
+ this.show_data
1680
+ )
1681
+ this.breakControl()
1682
+ },
1683
+ 'onbutchange' (index) {
1684
+
1685
+ },
1686
+ 'onbutblur' (index) {
1687
+
1688
+ },
1689
+ 'onbutinput' (index) {
1690
+
1691
+ },
1692
+ 'changeShowfei' (val) {
1693
+ console.log('回调修改父组件属性----'+val)
1694
+ this.show_data.showfei=val
1695
+ }
1696
+ },
1697
+ watch: {
1698
+ /*async 'show_data.showfei' (val) {
1699
+ console.log(`支付成功!!!!!!${val}`)
1700
+ if(this.show_data.showfei=='已付款'){
1701
+ await this.buttonCommit()
1702
+ }
1703
+ }*/
1704
+ }
1705
+ }
1706
+ </script>
1707
+ <style scoped>
1708
+ </style>