safecheck-client 3.0.30-62-t9 → 3.0.30-62-t10

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.
@@ -606,59 +606,6 @@ export default {
606
606
  }
607
607
  }
608
608
  }
609
- <<<<<<< HEAD
610
- //tag
611
- return checked
612
- },
613
- select_search(text) {
614
- //tag
615
- if (this.selectStreet.id) {
616
- let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
617
- new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
618
- data: {
619
- items: "*",
620
- tablename: "t_area",
621
- orderitem: "id",
622
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
623
- }
624
- }, { resolveMsg: null, rejectMsg: null }).then((res) => {
625
- //tag)
626
- if (res.data.length > 0) {
627
- this.area = []
628
- res.data.forEach((result) => {
629
- this.area.push({ label: result.f_residential_area, value: result })
630
- })
631
- }
632
- })
633
- } else {
634
- this.area = []
635
- }
636
- },
637
- cameraCallBack(prop, fileName) {
638
- HostApp.__this__.$set(prop, fileName + '?' + Math.random())
639
- //tag
640
- HostApp.__callback__ = null
641
- HostApp.__this__ = null
642
- },
643
- takePic(prop, title) {
644
- HostApp.__callback__ = this.cameraCallBack
645
- HostApp.__this__ = this
646
- //tag
647
- let fileName
648
- if (!this[prop] || this[prop].includes("nopic.png")) {
649
- fileName = Util.guid() + '-' + prop + '.jpg'
650
- } else {
651
- fileName = Util.getFileName(this[prop])
652
- }
653
- HostApp._open_a_page({
654
- type: 'boomerang',
655
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
656
- param: {
657
- file: fileName,
658
- requestCode: 111,
659
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
660
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
661
- =======
662
609
  }
663
610
  //tag
664
611
  return checked
@@ -681,7 +628,6 @@ export default {
681
628
  res.data.forEach((result) => {
682
629
  this.area.push({ label: result.f_residential_area, value: result })
683
630
  })
684
- >>>>>>> v3
685
631
  }
686
632
  })
687
633
  } else {
@@ -713,68 +659,6 @@ export default {
713
659
  callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
714
660
  watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
715
661
  }
716
- <<<<<<< HEAD
717
- },
718
- editUserInfoNoAudit() {
719
- let checked = this.checkVal()
720
- if (!checked.ischeck) {
721
- this.$showMessage(checked.msg)
722
- return
723
- }
724
- for (let i = 0; i < this.model.length; i++) {
725
- this.model[i].f_user_id = this.userinfo.meterinfo[0].f_user_id
726
- }
727
- if (this.userphone[0].f_rent_phone) {
728
- this.userinfo.baseinfo.base.f_rent_phone = this.userphone[0].f_rent_phone
729
- }
730
- this.$showMessage('确定是否修改上传用户信息?', ['confirm', 'cancel']).then((res) => {
731
- if (res === 'confirm') {
732
- this.excessive = true
733
- let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
734
- // userinfoms.f_user_name=row.f_user_name
735
- userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
736
- userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
737
- userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
738
- userinfoms.f_operator_record = Vue.user.name
739
- userinfoms.f_operatorid_record = Vue.user.id
740
- userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
741
- userinfoms.f_orgid_record = Vue.user.orgid
742
- userinfoms.f_orgname_record = Vue.user.orgs
743
- userinfoms.f_depid_record = Vue.user.depids
744
- userinfoms.f_depname_record = Vue.user.deps
745
- this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
746
- this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
747
- this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
748
- this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
749
- this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
750
- this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
751
- this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
752
- this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
753
- userinfoms.userfiles = []
754
- userinfoms.userphone = this.userphone
755
- this.userinfo_old.meterinfo[0].devicesinfo = this.model
756
- userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
757
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/filemanage_fileSave`, {
758
- data: {
759
- userinfo: userinfoms,
760
- modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
761
- address: {
762
- id: this.userinfo_old.addressinfo.id,
763
- oldid: this.userinfo_old.addressinfo.id,
764
- f_address: this.userinfo.addressinfo.f_address ? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
765
- }
766
- }
767
- }, { resolveMsg: null, rejectMsg: null }).then((res1) => {
768
- if (res1.data.status == 200) {
769
- let data = this.userinfo.addressinfo
770
- data.f_address = this.userinfo.addressinfo.f_address ? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
771
- //
772
- data.f_operator = Vue.user.name
773
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/address_updateuseraddress`, { data: data }).then((res2) => {
774
- this.$showMessage("修改用户地址信息成功!")
775
- }).catch(error => {
776
- this.$showMessage("修改用户地址信息!")
777
- =======
778
662
  })
779
663
  },
780
664
  delfile(prop, fileName) {
@@ -947,7 +831,6 @@ export default {
947
831
  changemeterno: this.changemeterno
948
832
  },
949
833
  tablename: 't_modify_userinfo'
950
- >>>>>>> v3
951
834
  })
952
835
  //tag)
953
836
  if (res2.code == 200) {
@@ -963,144 +846,11 @@ export default {
963
846
  this.enable = true
964
847
  this.excessive = false
965
848
  }
966
- <<<<<<< HEAD
967
- }).catch((msg) => {
968
- this.$showMessage("修改用户信息失败,请检查手机网络状况!")
969
- this.excessive = false
970
- })
971
- }
972
- })
973
- },
974
- editUserInfo() {
975
- let checked = this.checkVal()
976
- if (!checked.ischeck) {
977
- this.$showMessage(checked.msg)
978
- return
979
- }
980
-
981
- if (this.userphone[0].f_rent_phone) {
982
- this.userinfo.baseinfo.base.f_rent_phone = this.userphone[0].f_rent_phone
983
- }
984
-
985
- this.$showMessage('确定是否修改上传审核用户信息?', ['confirm', 'cancel']).then((res) => {
986
- if (res === 'confirm') {
987
- this.excessive = true
988
- let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
989
- //userinfoms.f_user_name=row.f_user_name
990
- userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
991
- userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
992
- userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
993
- userinfoms.f_operator_record = Vue.user.name
994
- userinfoms.f_operatorid_record = Vue.user.id
995
- userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
996
- userinfoms.f_orgid_record = Vue.user.orgid
997
- userinfoms.f_orgname_record = Vue.user.orgs
998
- userinfoms.f_depid_record = Vue.user.depids
999
- userinfoms.f_depname_record = Vue.user.deps
1000
- this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
1001
- this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
1002
- this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
1003
- this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
1004
- this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
1005
- this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
1006
- this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
1007
- this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
1008
- userinfoms.userfiles = []
1009
- this.userinfo_old.meterinfo[0].devicesinfo = this.model
1010
- userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
1011
- userinfoms.userphone = this.userphone
1012
- //tag)
1013
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/filemanage_fileSave`, {
1014
- data: {
1015
- userinfo: userinfoms,
1016
- modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
1017
- address: { id: this.userinfo_old.addressinfo.id, oldid: this.userinfo_old.addressinfo.id }
1018
- }
1019
- }, { resolveMsg: null, rejectMsg: null }).then((res1) => {
1020
- //tag+res1.data.status)
1021
- if (res1.data.status == 200) {
1022
- //本次修改信息包含需要审核信息
1023
- if (this.approveChange) {
1024
- //tag
1025
- let res2 = this.$androidUtil.bzLogic('safe_upUserinfoApprove', {
1026
- row: {
1027
- f_time: Util.toStandardTimeString(),
1028
- f_modifier: Vue.user.name,//Vue.user.name
1029
- f_modifier_id: Vue.user.id,//Vue.user.id
1030
- f_modify_type: '用户档案',
1031
- f_userinfoid: this.userinfo.baseinfo.base.f_userinfo_id,
1032
- f_userinfo_code: this.userinfo.baseinfo.base.f_userinfo_code,
1033
- f_approved: '未审核',
1034
- filialestr: Vue.user.orgid,//Vue.user.orgid
1035
- version: 1,
1036
- f_user_name: this.userinfo.baseinfo.base.f_user_name,
1037
- f_user_phone: this.userinfo.baseinfo.base.f_user_phone,
1038
- f_street: this.userinfo.addressinfo.f_street,
1039
- f_building: this.userinfo.addressinfo.f_building,
1040
- f_unit: this.userinfo.addressinfo.f_unit,
1041
- f_floor: this.userinfo.addressinfo.f_floor,
1042
- f_room: this.userinfo.addressinfo.f_room,
1043
- f_building_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_building_suffix,
1044
- f_unit_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_unit_suffix,
1045
- f_floor_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_floor_suffix,
1046
- f_room_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_room_suffix,
1047
- f_residential_area: this.userinfo.addressinfo.f_residential_area,
1048
- f_address: this.userinfo.addressinfo.f_address,
1049
- f_pcd: this.userinfo.addressinfo.f_pcd,
1050
- f_pcd_id: this.userinfo.addressinfo.f_pcd_id,
1051
- f_street_id: this.userinfo.addressinfo.f_street_id,
1052
- f_residential_area_id: this.userinfo.addressinfo.f_residential_area_id,
1053
- f_used_name: this.userinfo.baseinfo.base.f_used_name,
1054
- f_rent_phone: this.userinfo.baseinfo.base.f_rent_phone,
1055
- f_slice_area: this.userinfo.addressinfo.f_slice_area,
1056
- f_remark: this.userinfo.baseinfo.base.f_remark,
1057
- f_source: this.f_source,
1058
- f_meterno_path: this.f_meterno_path,
1059
- f_iscity: this.userinfo.addressinfo.f_iscity,
1060
- f_special: this.userinfo.addressinfo.f_special,
1061
- f_meternumber: this.userinfo.meterinfo[0].f_meternumber,
1062
- changemeterno: this.changemeterno
1063
- },
1064
- tablename: 't_modify_userinfo'
1065
- })
1066
- //tag)
1067
- if (res2.code == 200) {
1068
- this.$showMessage("变更用户信息成功,需要审核的信息已提交审核,等待管理员处理!")
1069
- this.enable = true
1070
- this.excessive = false
1071
- } else {
1072
- this.$showMessage("上传审核信息失败,请检查图片和网络状况是否正常!")
1073
- this.excessive = false
1074
- }
1075
- } else {
1076
- this.$showMessage("修改用户信息成功!")
1077
- this.enable = true
1078
- this.excessive = false
1079
- }
1080
-
1081
- }
1082
- }).catch((msg) => {
1083
- this.$showMessage("修改用户信息失败,请检查手机网络状况!")
1084
- this.excessive = false
1085
- })
1086
-
1087
- }
1088
- })
1089
- },
1090
- imgback(header) {
1091
- if (this.headername == header) {
1092
- return require('../../../assets/xiangxia1.png')
1093
- } else {
1094
- return require('../../../assets/xiangyou1.png')
1095
- =======
1096
-
1097
849
  }
1098
850
  }).catch((msg) => {
1099
851
  this.$showMessage("修改用户信息失败,请检查手机网络状况!")
1100
852
  this.excessive = false
1101
853
  })
1102
-
1103
- >>>>>>> v3
1104
854
  }
1105
855
  })
1106
856
  },
@@ -1118,155 +868,6 @@ export default {
1118
868
  } else {
1119
869
  this.headername = header
1120
870
  }
1121
-
1122
- <<<<<<< HEAD
1123
- },
1124
- changeNewAddress() {
1125
- this.userinfo.addressinfo.f_address = this.addressType == '普通地址' ? this.getAddress : this.getAddressTS
1126
- },
1127
- area_change() {
1128
- //tag
1129
- this.userinfo.addressinfo.f_residential_area = this.selectArea.f_residential_area
1130
- this.userinfo.addressinfo.f_residential_area_id = this.selectArea.id
1131
- this.userinfo.addressinfo.f_slice_area = this.selectArea.f_slice_area
1132
- this.changeNewAddress()
1133
- //this.userinfo.addressinfo.f_residential_area=this.f_residential_area.f_residential_area
1134
- },
1135
- async street_change() {
1136
- //tag
1137
- if (this.selectStreet.id) {
1138
- //如果街道改变--给街道赋值!
1139
- this.userinfo.addressinfo.f_street = this.selectStreet.f_street
1140
- this.userinfo.addressinfo.f_street_id = this.selectStreet.id
1141
- this.userinfo.addressinfo.f_iscity = this.selectStreet.f_iscity
1142
- //清空当前选中小区的值
1143
- this.userinfo.addressinfo.f_residential_area = ''
1144
- this.userinfo.addressinfo.f_residential_area_id = ''
1145
- this.userinfo.addressinfo.f_slice_area = ''
1146
- this.selectArea = { id: '' }
1147
- this.area = []
1148
- let pcdText = ` and f_street_id=${this.selectStreet.id}`
1149
- let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1150
- data: {
1151
- items: "*",
1152
- tablename: "t_area",
1153
- orderitem: "id",
1154
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
1155
- }
1156
- }, { resolveMsg: null, rejectMsg: null })
1157
- ////tag)
1158
- res.data.forEach((result) => {
1159
- this.area.push({ label: result.f_residential_area, value: result })
1160
- })
1161
- } else {
1162
- this.area = []
1163
- }
1164
-
1165
- this.changeNewAddress()
1166
- },
1167
- async pcd_change() {
1168
- //tag
1169
- if (this.selectPcd.id) {
1170
- //tag
1171
- //如果省市区改变-重新赋值
1172
- this.userinfo.addressinfo.f_pcd = this.selectPcd.f_pcd
1173
- this.userinfo.addressinfo.f_pcd_id = this.selectPcd.id
1174
- //清空 选中的街道和集收单位
1175
- this.selectStreet = { id: '' }
1176
- this.userinfo.addressinfo.f_street = ''
1177
- this.userinfo.addressinfo.f_street_id = ''
1178
- this.userinfo.addressinfo.f_iscity = ''
1179
- this.selectArea = { id: '' }
1180
- this.userinfo.addressinfo.f_residential_area = ''
1181
- this.userinfo.addressinfo.f_residential_area_id = ''
1182
- this.userinfo.addressinfo.f_slice_area = ''
1183
- this.streets = []
1184
- let pcdText = `and f_pcd_id=${this.selectPcd.id}`
1185
- let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1186
- data: {
1187
- items: "*",
1188
- tablename: "t_street",
1189
- orderitem: "id",
1190
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1191
- }
1192
- }, { resolveMsg: null, rejectMsg: null })
1193
- streetlist.data.forEach((result) => {
1194
- this.streets.push({ label: result.f_street, value: result })
1195
- })
1196
- } else {
1197
- this.streets = []
1198
- }
1199
- this.changeNewAddress()
1200
- },
1201
- upUserState() {
1202
- //tag)
1203
- if (this.userinfo.meterinfo[0].f_table_state == '正常') {
1204
- let data = {
1205
- f_userfiles_id: {
1206
- f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
1207
- f_table_state: '停用',
1208
- version: this.userinfo.meterinfo[0].version
1209
- },
1210
- f_userfile_id: this.userinfo.meterinfo[0].f_userfiles_id,
1211
- f_user_id: this.userinfo.meterinfo[0].f_user_id,
1212
- f_userinfo_id: this.userinfo.meterinfo[0].f_userinfo_id,
1213
- f_user_name: this.userinfo.baseinfo.base.f_user_name,
1214
- f_comments: '安检时发现问题关闭阀门',
1215
- f_othereason: '',
1216
- f_operat_type: '停用',
1217
- f_describe: `${Vue.user.name}对客户${this.userinfo.baseinfo.base.f_user_name}进行表具停用操作`,
1218
- f_state: '有效',
1219
- f_operator: Vue.user.name,//${Vue.$login.f.name}
1220
- f_operatorid: Vue.user.id,
1221
- f_orgid: Vue.user.orgid,
1222
- f_orgname: Vue.user.orgs,
1223
- f_depid: Vue.user.depids,
1224
- f_depname: Vue.user.deps,
1225
- f_zoneid: Vue.user.zoneid,
1226
- f_zones: Vue.user.zones
1227
- }
1228
- new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
1229
- data, { resolveMsg: null, rejectMsg: null }).then((row) => {
1230
- this.$showMessage('已成功关阀停气!')
1231
- this.userinfo.meterinfo[0].f_table_state = '停用'
1232
- })
1233
- } else {
1234
- this.$showMessage('该用户已被关阀停用,请勿重复操作!')
1235
- }
1236
-
1237
- },
1238
- addDevices() {
1239
- //Vue.user.name
1240
- let obj = {
1241
- "f_operator": Vue.user.name,
1242
- "f_picture": null,
1243
- "f_pipe_type": null,
1244
- "f_pipeinstall_date": null,
1245
- "f_pipe_connection": null,
1246
- "f_expire_date": null,
1247
- "f_pipeexpire_date": null,
1248
- "f_comments": null,
1249
- "f_operate_date": Util.toStandardTimeString(),
1250
- "f_operatorid": Vue.user.id,
1251
- "f_devices_num": null,
1252
- "f_process_id": null,
1253
- "f_devices_type": null,
1254
- "f_make_date": null,
1255
- "f_input_date": null,
1256
- "f_state": "有效",
1257
- "f_brand": null,
1258
- "f_devices_model": null,
1259
- "f_devices_no": null,
1260
- "img": { "content": null, "filename": null }
1261
- }
1262
- this.model.push(obj)
1263
- },
1264
- delDevices(idx) {
1265
- //tag
1266
- this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
1267
- if (res === 'confirm') {
1268
- this.model.splice(idx, 1)
1269
- =======
1270
871
  },
1271
872
  changeNewAddress() {
1272
873
  this.userinfo.addressinfo.f_address = this.addressType == '普通地址' ? this.getAddress : this.getAddressTS
@@ -1299,129 +900,15 @@ export default {
1299
900
  tablename: "t_area",
1300
901
  orderitem: "id",
1301
902
  condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
1302
- >>>>>>> v3
1303
903
  }
1304
904
  }, { resolveMsg: null, rejectMsg: null })
1305
905
  ////tag)
1306
906
  res.data.forEach((result) => {
1307
907
  this.area.push({ label: result.f_residential_area, value: result })
1308
908
  })
1309
- <<<<<<< HEAD
1310
- },
1311
- async getAreaList(text) {
1312
- if (this.selectStreet.id) {
1313
- this.area = []
1314
- let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
1315
- let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1316
- data: {
1317
- items: "*",
1318
- tablename: "t_area",
1319
- orderitem: "id",
1320
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1321
- }
1322
- }, { resolveMsg: null, rejectMsg: null })
1323
- ////tag)
1324
- res.data.forEach((result) => {
1325
- this.area.push({ label: result.f_residential_area, value: result })
1326
- })
1327
- //tag
1328
- this.area.push({
1329
- label: this.userinfo.addressinfo.f_residential_area,
1330
- value: {
1331
- id: this.userinfo.addressinfo.f_residential_area_id,
1332
- f_residential_area: this.userinfo.addressinfo.f_residential_area
1333
- }
1334
- })
1335
- } else {
1336
- this.area = []
1337
- }
1338
-
1339
- },
1340
- async getStreetList() {
1341
- if (this.selectPcd.id) {
1342
- //tag
1343
- this.streets = []
1344
- let pcdText = `and f_pcd_id=${this.selectPcd.id}`
1345
- let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1346
- data: {
1347
- items: "*",
1348
- tablename: "t_street",
1349
- orderitem: "id",
1350
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1351
- }
1352
- }, { resolveMsg: null, rejectMsg: null })
1353
- streetlist.data.forEach((result) => {
1354
- //如果第一次进来有地址id 就拿下地址区域
1355
- if (this.selectStreet.id && this.selectStreet.id == result.id) {
1356
- //tag)
1357
- this.userinfo.addressinfo.f_iscity = result.f_iscity
1358
- }
1359
- this.streets.push({ label: result.f_street, value: result })
1360
- })
1361
- } else {
1362
- this.streets = []
1363
- }
1364
- },
1365
- async confirmLimitGas() {
1366
- this.$dispatch('limit', this.models);
1367
- console.log('提交限购数据', this.models);
1368
- let restrict = {
1369
- f_third_pay: this.models.f_third_pay,
1370
- f_time_type: this.models.f_time_type,
1371
- f_limit_times: this.models.f_limit_times,
1372
- f_time_value: this.models.f_time_value,
1373
- f_limit_type: this.models.f_limit_type,
1374
- f_limit_style: this.models.f_limit_style,
1375
- f_limit_value: this.models.f_limit_value,
1376
- f_limit_amount: this.models.f_limit_amount,
1377
- f_operator: Vue.user.name,
1378
- f_status: this.models.f_status,
1379
- f_start_date: this.$login.toStandardDateString()
1380
- };
1381
- let operInfo = {
1382
- f_operator: Vue.user.name,
1383
- f_operatorid: Vue.user.id,
1384
- f_orgid: Vue.user.orgid,
1385
- f_orgname: Vue.user.orgs,
1386
- f_depid: Vue.user.depids,
1387
- f_depname: Vue.user.deps,
1388
- };
1389
- let user = {
1390
- f_userinfo_id: this.f_userinfo_id,
1391
- f_user_name: this.f_user_name,
1392
- f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
1393
- f_table_state: this.userinfo.meterinfo[0].f_table_state,
1394
- f_user_id: this.userinfo.meterinfo[0].f_user_id,
1395
- };
1396
- let param = {
1397
- restrict,
1398
- user,
1399
- operInfo
1400
- };
1401
- console.log('提交限购数据', JSON.stringify(param));
1402
- let http = new HttpResetClass();
1403
- await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/limitGas`, {
1404
- data: param
1405
- });
1406
- },
1407
- changeAddressType(val) {
1408
- //tag
1409
- if (this.addressType == '普通地址') {
1410
- this.userinfo.addressinfo.f_special = null
1411
- } else if (this.addressType == '特殊地址') {
1412
- this.userinfo.addressinfo.f_special = 1
1413
- this.userinfo.addressinfo.f_building = null
1414
- this.userinfo.addressinfo.f_unit = null
1415
- this.userinfo.addressinfo.f_floor = null
1416
- this.userinfo.addressinfo.f_room = null
1417
- }
1418
- this.changeNewAddress()
1419
- =======
1420
909
  } else {
1421
910
  this.area = []
1422
- >>>>>>> v3
1423
911
  }
1424
-
1425
912
  this.changeNewAddress()
1426
913
  },
1427
914
  async pcd_change() {
@@ -1460,77 +947,6 @@ export default {
1460
947
  },
1461
948
  upUserState() {
1462
949
  //tag)
1463
- <<<<<<< HEAD
1464
- //tag)*/
1465
- //this.f_userinfo_id=1102260
1466
- //this.f_userinfo_id=1997541
1467
- if (!this.f_userinfo_id) {
1468
- this.$showMessage("未检测到用户!")
1469
- this.enable = true
1470
- return
1471
- }
1472
- try {
1473
-
1474
- this.devices_types = Vue.$appdata.getParam('设备类型')
1475
- console.log('this.devices_types=', JSON.stringify(this.devices_types))
1476
- for (const devices_type of this.devices_types) {
1477
- console.log('Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)=', JSON.stringify(Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)))
1478
- this.deviceBrandOption[devices_type.label] = Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`) || []
1479
- }
1480
- console.log('this.deviceBrandOption=', JSON.stringify(this.deviceBrandOption))
1481
- this.wz_types = Vue.$appdata.getParam('安装位置')
1482
- this.aroundmeters = Vue.$appdata.getParam('左右表')
1483
-
1484
- ////tag)
1485
- this.excessive = true
1486
- //Vue.user.orgid ${this.f_userinfo_id} 10101 ${Vue.user.orgid}
1487
-
1488
- let pcdlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1489
- data: {
1490
- items: "*",
1491
- tablename: "t_pcd",
1492
- orderitem: "id",
1493
- condition: `f_orgid = '${Vue.user.orgid}'`
1494
- }
1495
- }, { resolveMsg: null, rejectMsg: null })
1496
- //tag)
1497
- pcdlist.data.forEach((result) => {
1498
- this.pcds.push({ label: result.f_pcd, value: result })
1499
- })
1500
- ////tag)
1501
- let res = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_getFilesDetail`, {
1502
- //f_userinfo_code:'12381344',
1503
- f_userinfo_id: this.f_userinfo_id
1504
- }, { resolveMsg: null, rejectMsg: null })
1505
- //tag
1506
- //tag
1507
- this.userinfo = res.data
1508
- this.userinfo_old = JSON.parse(JSON.stringify(res.data))
1509
- this.model = this.userinfo.meterinfo[0].devicesinfo
1510
- this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
1511
- this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
1512
- this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
1513
- this.selectStreet.id = this.userinfo.addressinfo.f_street_id
1514
- this.selectStreet.f_street = this.userinfo.addressinfo.f_street
1515
- await this.getStreetList()
1516
- await this.getAreaList()
1517
- this.excessive = false
1518
- this.addressType = this.userinfo.addressinfo.f_special == 1 ? '特殊地址' : '普通地址'
1519
- //this.userinfo.addressinfo.f_special=1
1520
- //tag
1521
- let userphone = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1522
- data: {
1523
- items: "*",
1524
- tablename: "t_user_phone",
1525
- orderitem: "id",
1526
- condition: `f_userinfo_id = '${this.f_userinfo_id}' and f_state = '有效'`
1527
- }
1528
- }, { resolveMsg: null, rejectMsg: null })
1529
- let tempObj = {
1530
- id: null,
1531
- f_userinfo_id: this.f_userinfo_id,
1532
- f_rent_phone: '',
1533
- =======
1534
950
  if (this.userinfo.meterinfo[0].f_table_state == '正常') {
1535
951
  let data = {
1536
952
  f_userfiles_id: {
@@ -1546,7 +962,6 @@ export default {
1546
962
  f_othereason: '',
1547
963
  f_operat_type: '停用',
1548
964
  f_describe: `${Vue.user.name}对客户${this.userinfo.baseinfo.base.f_user_name}进行表具停用操作`,
1549
- >>>>>>> v3
1550
965
  f_state: '有效',
1551
966
  f_operator: Vue.user.name,//${Vue.$login.f.name}
1552
967
  f_operatorid: Vue.user.id,
@@ -1884,31 +1299,6 @@ export default {
1884
1299
  }).catch((msg) => {
1885
1300
  //tag)
1886
1301
  })
1887
- <<<<<<< HEAD
1888
- this.showBox = this.$appdata.getSingleValue('档案审核是否显示调压箱') == '是' ? true : false
1889
- console.log(this.showBox)
1890
- if (this.showBox) {
1891
- // 获取调压箱
1892
- new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/adjustableboxQuery`, { data: { condition: '1 = 1' } }, {
1893
- resolveMsg: null,
1894
- rejectMsg: null
1895
- }).then((res) => {
1896
- const boxOptions = []
1897
- for (const data of res.data) {
1898
- const one = {
1899
- label: data.f_adjustable_id + data.f_adjustable_name,
1900
- value: Number(data.f_adjustable_id)
1901
- }
1902
- boxOptions.push(one)
1903
- }
1904
- this.boxOptions = JSON.parse(JSON.stringify(boxOptions))
1905
- console.log(this.boxOptions)
1906
- }).catch((msg) => {
1907
- //tag)
1908
- })
1909
- }
1910
- =======
1911
- >>>>>>> v3
1912
1302
  }
1913
1303
  }
1914
1304
  }