@newview/permission-service 1.2.33 → 1.2.35

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.
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
7
7
  import { BaseInstance } from "@newview/base-vue";
8
8
  import { defineComponent, ref, reactive, onMounted, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, nextTick, toDisplayString, createElementBlock, Fragment, renderList, withDirectives, vShow, pushScopeId, popScopeId, onUnmounted, createCommentVNode, computed, withModifiers } from "vue";
9
9
  import { PlatformApi, PlatformGroupApi, ModuleApi, RoleApi, RoleModuleApi, InstitutionRoleApi, InstitutionTypeApi, InstitutioninforApi, InstitutionPlatformApi, InstitutionTreeApi, EnterpriseApi, LoginLogApi, UserinforApi, InstitutionUserApi, UserRoleApi, OAuthApi, UserSignApi, InstitutionLinePointApi, InstitutionPointApi, ProjectSummaryApi, DataBoardModuleApi, DataInistitutionRelationApi, DataInstitutionBoardRelationApi } from "@newview/permission-api";
10
- import { BaseApi, QueryWrapper } from "@newview/infrastructure";
10
+ import { BaseApi, QueryWrapper, request } from "@newview/infrastructure";
11
11
  import { Icon, Tag, Checkbox, Divider, CheckboxGroup, Space } from "view-ui-plus";
12
12
  import { SelectPlatform, BaseLogin, PersonSel } from "@newview/permission-ui";
13
13
  import { SignTaskInfoApi } from "@newview/casign-api";
@@ -344,10 +344,13 @@ let PlatformInstance$1 = class PlatformInstance extends BaseInstance {
344
344
  PlatformType: 1,
345
345
  AppId: "",
346
346
  AppSecret: "",
347
+ MapCompany: 1,
348
+ TDTKey: "",
347
349
  LastUpdateUserId: this.storageInfo.getUser().Id,
348
350
  LastUpdateUserName: this.storageInfo.getUser().UserName,
349
351
  LastUpdateDate: this.utilities.getCurrentDate()
350
352
  }));
353
+ __publicField(this, "TDTKeyShow", ref(true));
351
354
  __publicField(this, "platConfigFormItems", reactive([
352
355
  {
353
356
  model: "PlatformType",
@@ -380,7 +383,20 @@ let PlatformInstance$1 = class PlatformInstance extends BaseInstance {
380
383
  }
381
384
  },
382
385
  { model: "AppId", label: "小程序AppId", prop: "AppId", type: "Input", span: 24 },
383
- { model: "AppSecret", label: "小程序秘钥", prop: "AppSecret", type: "Input", span: 24 }
386
+ { model: "AppSecret", label: "小程序秘钥", prop: "AppSecret", type: "Input", span: 24 },
387
+ { model: "MapCompany", label: "地图厂家", prop: "MapCompany", type: "Select", span: 24, selectProp: {
388
+ datas: [
389
+ { value: 1, text: "天地图" },
390
+ { value: 2, text: "必应地图" },
391
+ { value: 3, text: "新视窗超图地图" }
392
+ ],
393
+ onChange: (event, item) => {
394
+ this.TDTKeyShow.value = event == 1;
395
+ }
396
+ } },
397
+ { model: "TDTKey", label: "天地图密钥", prop: "TDTKey", type: "Input", span: 24, isShow: () => {
398
+ return this.TDTKeyShow.value;
399
+ } }
384
400
  ]));
385
401
  __publicField(this, "doSavePlatConfig", async () => {
386
402
  this.saveingPlatConfig.value = true;
@@ -510,15 +526,18 @@ let PlatformInstance$1 = class PlatformInstance extends BaseInstance {
510
526
  PlatformType: 1,
511
527
  AppId: "",
512
528
  AppSecret: "",
529
+ MapCompany: 1,
530
+ TDTKey: "",
513
531
  LastUpdateUserId: this.storageInfo.getUser().Id,
514
532
  LastUpdateUserName: this.storageInfo.getUser().UserName,
515
533
  LastUpdateDate: this.utilities.getCurrentDate()
516
534
  };
517
535
  } else {
518
536
  this.platConfigFormModel.value = res;
519
- this.platConfigFormModel.valueLastUpdateUserId = this.storageInfo.getUser().Id;
520
- this.platConfigFormModel.valueLastUpdateUserNamed = this.storageInfo.getUser().UserName;
521
- this.platConfigFormModel.valueLastUpdateDated = this.utilities.getCurrentDate();
537
+ this.platConfigFormModel.value.MapCompany = res.MapCompany ? res.MapCompany : 1;
538
+ this.platConfigFormModel.value.LastUpdateUserId = this.storageInfo.getUser().Id;
539
+ this.platConfigFormModel.value.LastUpdateUserNamed = this.storageInfo.getUser().UserName;
540
+ this.platConfigFormModel.value.LastUpdateDated = this.utilities.getCurrentDate();
522
541
  }
523
542
  this.isShowPlatConfig.value = true;
524
543
  }
@@ -4619,6 +4638,13 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
4619
4638
  onclick: () => {
4620
4639
  this.doShowImportUser();
4621
4640
  }
4641
+ },
4642
+ {
4643
+ name: "import",
4644
+ text: "导入CA",
4645
+ onclick: () => {
4646
+ this.importCAData();
4647
+ }
4622
4648
  }
4623
4649
  ],
4624
4650
  rightToolbars: [
@@ -5216,10 +5242,17 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
5216
5242
  CAUserYZImg: ""
5217
5243
  }));
5218
5244
  __publicField(this, "userSignFormItems", reactive([
5219
- { model: "CAUserInfoKey", label: "用户KEY", type: "Input", prop: "CAUserInfoKey", span: 24 },
5220
- { model: "CAUserSealKey", label: "印章KEY", type: "Input", prop: "CAUserSealKey", span: 24 },
5221
- { model: "CAUserYZKey", label: "圆章KEY", type: "Input", prop: "CAUserYZKey", span: 24 }
5245
+ // { model: 'CAUserInfoKey', label: '用户KEY', type: 'Input', prop: 'CAUserInfoKey', span: 24 },
5246
+ { model: "CAUserSealKey", label: "印章KEY", type: "Input", prop: "CAUserSealKey", span: 24, inputProp: { append: "选择", onTextClick: () => {
5247
+ this.GetUserSealData(3);
5248
+ } } },
5249
+ { model: "CAUserYZKey", label: "圆章KEY", type: "Input", prop: "CAUserYZKey", span: 24, inputProp: { append: "选择", onTextClick: () => {
5250
+ this.GetUserSealData(2);
5251
+ } } }
5222
5252
  ]));
5253
+ // 私有方法 | private 方法名() {}
5254
+ /** 当前所选人 */
5255
+ __publicField(this, "activeUserSealRow", ref({}));
5223
5256
  // 响应式方法 | xxx = () => {}
5224
5257
  /**
5225
5258
  * 保存用户签字
@@ -5280,6 +5313,115 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
5280
5313
  this.message.error("读取失败,请稍后重试");
5281
5314
  }
5282
5315
  });
5316
+ // 响应式方法 | xxx = () => {}
5317
+ //#endregion 重置密码 END
5318
+ __publicField(this, "importCAModal", ref(false));
5319
+ __publicField(this, "importCAData", () => {
5320
+ this.importCAModal.value = true;
5321
+ });
5322
+ __publicField(this, "doExcelPointImport", async (datas) => {
5323
+ console.log(datas);
5324
+ if (datas.length == 0) {
5325
+ return;
5326
+ }
5327
+ let names = datas.filter((x) => this.utilities.isNull(x["印章ID"]) == true);
5328
+ if (names.length > 0) {
5329
+ this.message.info("印章ID不能为空!");
5330
+ return;
5331
+ }
5332
+ let names1 = datas.filter((x) => this.utilities.isNull(x["印章名称"]) == true);
5333
+ if (names1.length > 0) {
5334
+ this.message.info("印章名称不能为空!");
5335
+ return;
5336
+ }
5337
+ let names2 = datas.filter((x) => this.utilities.isNull(x["所属用户名"]) == true);
5338
+ if (names2.length > 0) {
5339
+ this.message.info("所属用户名不能为空!");
5340
+ return;
5341
+ }
5342
+ let names3 = datas.filter((x) => this.utilities.isNull(x["印章类型"]) == true);
5343
+ if (names3.length > 0) {
5344
+ this.message.info("印章类型不能为空!");
5345
+ return;
5346
+ }
5347
+ let NewId = this.utilities.getUniqueCode();
5348
+ try {
5349
+ let eqlist = [];
5350
+ datas.forEach((element) => {
5351
+ eqlist.push({
5352
+ Id: 0,
5353
+ ProjectId: this.selectedPlatform.Id,
5354
+ RoadId: this.selectedPlatform.Id,
5355
+ ZId: this.utilities.isNull(element["印章ID"]) ? "" : element["印章ID"],
5356
+ ZName: this.utilities.isNull(element["印章名称"]) ? "" : element["印章名称"],
5357
+ UName: this.utilities.isNull(element["所属用户名"]) ? "" : element["所属用户名"],
5358
+ PIn: "111111",
5359
+ CertType: this.utilities.isNull(element["印章类型"]) ? "3" : element["印章类型"] == "签字" ? 3 : 2,
5360
+ HandleKey: NewId
5361
+ });
5362
+ });
5363
+ if (eqlist.length > 0) {
5364
+ var loginparam = {
5365
+ Account: this.utilities.stringHelper.encodeToBase64("hhlhf"),
5366
+ Pwd: this.utilities.stringHelper.encodeToBase64("Lhf513723."),
5367
+ SystemType: 1
5368
+ };
5369
+ let tokenRes = await request("/OldSysApi/OAuth/Token", {
5370
+ params: loginparam
5371
+ });
5372
+ let headers = await this.getTempRequestHeader();
5373
+ let saveRes = await request("/CASignApi/CA_Userinfointo/saves", {
5374
+ headers,
5375
+ method: "post",
5376
+ data: eqlist
5377
+ });
5378
+ let saveRes2 = await request("/CASignApi/CA_Userinfointo/SaveUserSignNew", {
5379
+ headers,
5380
+ params: { HandleKey: NewId, ProjetId: this.selectedPlatform.Id, RoadId: this.selectedPlatform.Id, BusinessKey: this.selectedPlatform.CABusinessKey }
5381
+ });
5382
+ this.message.success("导入成功!");
5383
+ this.importCAModal.value = false;
5384
+ }
5385
+ } catch (error) {
5386
+ this.message.error("导入失败!");
5387
+ }
5388
+ });
5389
+ __publicField(this, "userSealData", ref([]));
5390
+ __publicField(this, "userSealAllData", []);
5391
+ __publicField(this, "searchUserSeal", ref(""));
5392
+ __publicField(this, "userSealListLoading", ref(false));
5393
+ __publicField(this, "selectCASealModal", ref(false));
5394
+ __publicField(this, "selCaType", ref("3"));
5395
+ __publicField(this, "selUserSealId", ref(0));
5396
+ __publicField(this, "caTypeChange", () => {
5397
+ this.userSealData.value = this.userSealAllData.filter((e) => e["CertType"] == this.selCaType.value);
5398
+ });
5399
+ __publicField(this, "doSearchUserSeal", () => {
5400
+ this.userSealData.value = this.userSealAllData.filter((e) => e["SealName"].indexOf(this.searchUserSeal.value) >= 0);
5401
+ });
5402
+ /**
5403
+ * 选择签字信息
5404
+ */
5405
+ __publicField(this, "doSelUserSeal", async () => {
5406
+ console.log(this.selUserSealId.value);
5407
+ let sealInfo = this.userSealAllData.find((e) => e["Id"] == this.selUserSealId.value);
5408
+ if (sealInfo.CertType == 3) {
5409
+ this.userSignFormModel.CAUserSealKey = sealInfo.SKey;
5410
+ this.doLoadUserSealImg();
5411
+ } else {
5412
+ this.userSignFormModel.CAUserYZKey = sealInfo.SKey;
5413
+ this.doLoadUserYZImg();
5414
+ }
5415
+ this.selectCASealModal.value = false;
5416
+ request("/CASignApi/Userseal/saveDynamic", {
5417
+ headers: await this.getTempRequestHeader(),
5418
+ method: "post",
5419
+ data: {
5420
+ Id: sealInfo.Id,
5421
+ BIId: this.selectedInsTree.InstitutionId
5422
+ }
5423
+ });
5424
+ });
5283
5425
  this.props = props;
5284
5426
  this.ctx = ctx;
5285
5427
  }
@@ -5490,12 +5632,12 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
5490
5632
  this.storageInfo.removeAll();
5491
5633
  this.loginRef.value.setLoginResult(result);
5492
5634
  }
5493
- // 私有方法 | private 方法名() {}
5494
5635
  /**
5495
5636
  * 编辑用户签字
5496
5637
  */
5497
5638
  async doShowEditUserSign(row) {
5498
5639
  this.showEditUserSign.value = true;
5640
+ this.activeUserSealRow.value = row;
5499
5641
  const apiResult = await this.userSignApi.getEntityByFilter(QueryWrapper.create().eq("UserId", row.Id));
5500
5642
  const result = this.utilities.parseApiResult(apiResult);
5501
5643
  if (!this.utilities.isNull(result)) {
@@ -5540,11 +5682,43 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
5540
5682
  }
5541
5683
  });
5542
5684
  }
5543
- // 响应式方法 | xxx = () => {}
5544
- //#endregion 重置密码 END
5685
+ async GetUserSealData(type2) {
5686
+ this.userSealData.value = [];
5687
+ this.userSealListLoading.value = true;
5688
+ this.selCaType.value = type2;
5689
+ this.selectCASealModal.value = true;
5690
+ ({
5691
+ Account: this.utilities.stringHelper.encodeToBase64("hhlhf"),
5692
+ Pwd: this.utilities.stringHelper.encodeToBase64("Lhf513723."),
5693
+ SystemType: 1
5694
+ });
5695
+ let res = this.utilities.parseApiResult(await request("/CASignApi/Userseal/GetUserSeal", {
5696
+ headers: await this.getTempRequestHeader(),
5697
+ params: {
5698
+ BusinessKey: this.selectedPlatform.CABusinessKey,
5699
+ Parms: ""
5700
+ }
5701
+ }));
5702
+ this.userSealListLoading.value = false;
5703
+ this.userSealAllData = this.utilities.deepCopy(res);
5704
+ this.caTypeChange();
5705
+ }
5706
+ async getTempRequestHeader() {
5707
+ var loginparam = {
5708
+ Account: this.utilities.stringHelper.encodeToBase64("hhkf"),
5709
+ Pwd: this.utilities.stringHelper.encodeToBase64("Nv88341268#"),
5710
+ SystemType: 1
5711
+ };
5712
+ let tokenRes = await request("/OldSysApi/OAuth/Token", {
5713
+ params: loginparam
5714
+ });
5715
+ return {
5716
+ Authorization: "Bearer " + tokenRes.result.Token
5717
+ };
5718
+ }
5545
5719
  };
5546
- const Userinfor_vue_vue_type_style_index_0_scoped_a643a221_lang = "";
5547
- const _withScopeId$3 = (n) => (pushScopeId("data-v-a643a221"), n = n(), popScopeId(), n);
5720
+ const Userinfor_vue_vue_type_style_index_0_scoped_3d0ba4ac_lang = "";
5721
+ const _withScopeId$3 = (n) => (pushScopeId("data-v-3d0ba4ac"), n = n(), popScopeId(), n);
5548
5722
  const _hoisted_1$e = { class: "instree-search" };
5549
5723
  const _hoisted_2$6 = { class: "instree-list" };
5550
5724
  const _hoisted_3$6 = { style: { "height": "774px", "overflow-y": "auto" } };
@@ -5558,9 +5732,20 @@ const _hoisted_7$4 = { style: { "height": "650px", "overflow-y": "auto" } };
5558
5732
  const _hoisted_8$4 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选需要引入的用户!", -1));
5559
5733
  const _hoisted_9$3 = { style: { "height": "650px", "overflow-y": "auto" } };
5560
5734
  const _hoisted_10$2 = { style: { "display": "none" } };
5561
- const _hoisted_11$2 = { style: { "height": "400px", "overflow-y": "auto" } };
5735
+ const _hoisted_11$2 = { style: { "height": "400px" } };
5562
5736
  const _hoisted_12$1 = ["src"];
5563
5737
  const _hoisted_13$1 = ["src"];
5738
+ const _hoisted_14$1 = { style: { "height": "260px" } };
5739
+ const _hoisted_15$1 = { class: "nv-flex" };
5740
+ const _hoisted_16$1 = { style: { "height": "300px", "overflow": "auto", "margin-top": "10px", "padding": "0 20px" } };
5741
+ const _hoisted_17$1 = {
5742
+ key: 1,
5743
+ class: "nv-full nv-pos-r"
5744
+ };
5745
+ const _hoisted_18$1 = {
5746
+ key: 1,
5747
+ class: "nv-c-v-center"
5748
+ };
5564
5749
  function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
5565
5750
  const _component_SelectPlatform = resolveComponent("SelectPlatform");
5566
5751
  const _component_Tree = resolveComponent("Tree");
@@ -5576,6 +5761,12 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
5576
5761
  const _component_BaseLogin = resolveComponent("BaseLogin");
5577
5762
  const _component_NvComForm = resolveComponent("NvComForm");
5578
5763
  const _component_FormItem = resolveComponent("FormItem");
5764
+ const _component_NvExcelImport = resolveComponent("NvExcelImport");
5765
+ const _component_nvModal = resolveComponent("nvModal");
5766
+ const _component_Input = resolveComponent("Input");
5767
+ const _component_Radio = resolveComponent("Radio");
5768
+ const _component_RadioGroup = resolveComponent("RadioGroup");
5769
+ const _component_NvLoading = resolveComponent("NvLoading");
5579
5770
  const _component_NvPage = resolveComponent("NvPage");
5580
5771
  return openBlock(), createBlock(_component_NvPage, {
5581
5772
  gutter: 8,
@@ -5834,7 +6025,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
5834
6025
  mask: true,
5835
6026
  "mask-closable": false,
5836
6027
  width: 440,
5837
- title: "编辑签字信息",
6028
+ title: _ctx.activeUserSealRow.UserName + "签字信息",
5838
6029
  styles: { top: "3%" }
5839
6030
  }, {
5840
6031
  footer: withCtx(() => [
@@ -5877,7 +6068,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
5877
6068
  key: 0,
5878
6069
  src: _ctx.userSignFormModel.CAUserSealImg,
5879
6070
  alt: "",
5880
- style: { "width": "120px", "height": "35px" }
6071
+ style: { "width": "120px", "height": "35px", "object-fit": "contain" }
5881
6072
  }, null, 8, _hoisted_12$1)) : createCommentVNode("", true),
5882
6073
  createVNode(_component_Button, {
5883
6074
  type: "primary",
@@ -5898,7 +6089,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
5898
6089
  key: 0,
5899
6090
  src: _ctx.userSignFormModel.CAUserYZImg,
5900
6091
  alt: "",
5901
- style: { "width": "120px", "height": "120px", "margin-left": "16px" }
6092
+ style: { "width": "120px", "height": "120px", "object-fit": "contain", "margin-left": "16px" }
5902
6093
  }, null, 8, _hoisted_13$1)) : createCommentVNode("", true),
5903
6094
  createVNode(_component_Button, {
5904
6095
  type: "primary",
@@ -5919,12 +6110,106 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
5919
6110
  ])
5920
6111
  ]),
5921
6112
  _: 1
6113
+ }, 8, ["modelValue", "title"]),
6114
+ createVNode(_component_nvModal, {
6115
+ modelValue: _ctx.importCAModal,
6116
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => _ctx.importCAModal = $event),
6117
+ draggable: "",
6118
+ mask: true,
6119
+ "mask-closable": false,
6120
+ width: 500,
6121
+ title: "导入CA数据",
6122
+ "footer-hide": ""
6123
+ }, {
6124
+ default: withCtx(() => [
6125
+ createElementVNode("div", _hoisted_14$1, [
6126
+ createVNode(_component_NvExcelImport, {
6127
+ ref: "NvExcelImport",
6128
+ onImport: _ctx.doExcelPointImport,
6129
+ isExportTemplete: true,
6130
+ templeteUrl: "https://nvplanfromoss.oss-cn-beijing.aliyuncs.com/XiHu/ExeclTemplate/%E9%99%95%E8%A5%BFCA%E7%AD%BE%E5%AD%97%E6%A8%A1%E6%9D%BF.xlsx"
6131
+ }, null, 8, ["onImport"])
6132
+ ])
6133
+ ]),
6134
+ _: 1
6135
+ }, 8, ["modelValue"]),
6136
+ createVNode(_component_nvModal, {
6137
+ modelValue: _ctx.selectCASealModal,
6138
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => _ctx.selectCASealModal = $event),
6139
+ draggable: "",
6140
+ mask: true,
6141
+ "mask-closable": false,
6142
+ width: 400,
6143
+ title: "选择签字人员"
6144
+ }, {
6145
+ footer: withCtx(() => [
6146
+ createVNode(_component_Button, {
6147
+ type: "text",
6148
+ onClick: _cache[13] || (_cache[13] = ($event) => _ctx.selectCASealModal = false)
6149
+ }, {
6150
+ default: withCtx(() => [
6151
+ createTextVNode("关闭")
6152
+ ]),
6153
+ _: 1
6154
+ }),
6155
+ createVNode(_component_Button, {
6156
+ type: "primary",
6157
+ disabled: !_ctx.selUserSealId,
6158
+ onClick: _ctx.doSelUserSeal
6159
+ }, {
6160
+ default: withCtx(() => [
6161
+ createTextVNode("确定")
6162
+ ]),
6163
+ _: 1
6164
+ }, 8, ["disabled", "onClick"])
6165
+ ]),
6166
+ default: withCtx(() => [
6167
+ createElementVNode("div", _hoisted_15$1, [
6168
+ createVNode(_component_Input, {
6169
+ class: "nv-flex-1",
6170
+ style: { "margin-left": "10px" },
6171
+ modelValue: _ctx.searchUserSeal,
6172
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => _ctx.searchUserSeal = $event),
6173
+ onOnChange: _ctx.doSearchUserSeal,
6174
+ search: "",
6175
+ placeholder: "请输入人员名称"
6176
+ }, null, 8, ["modelValue", "onOnChange"])
6177
+ ]),
6178
+ createElementVNode("div", _hoisted_16$1, [
6179
+ _ctx.userSealData.length > 0 ? (openBlock(), createBlock(_component_RadioGroup, {
6180
+ key: 0,
6181
+ modelValue: _ctx.selUserSealId,
6182
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => _ctx.selUserSealId = $event),
6183
+ vertical: ""
6184
+ }, {
6185
+ default: withCtx(() => [
6186
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.userSealData, (item, index2) => {
6187
+ return openBlock(), createBlock(_component_Radio, {
6188
+ label: item.Id
6189
+ }, {
6190
+ default: withCtx(() => [
6191
+ createElementVNode("span", null, toDisplayString(item.SealName), 1)
6192
+ ]),
6193
+ _: 2
6194
+ }, 1032, ["label"]);
6195
+ }), 256))
6196
+ ]),
6197
+ _: 1
6198
+ }, 8, ["modelValue"])) : (openBlock(), createElementBlock("div", _hoisted_17$1, [
6199
+ _ctx.userSealListLoading ? (openBlock(), createBlock(_component_NvLoading, {
6200
+ key: 0,
6201
+ content: "人员数据加载中..."
6202
+ })) : (openBlock(), createElementBlock("div", _hoisted_18$1, "暂无人员数据"))
6203
+ ]))
6204
+ ])
6205
+ ]),
6206
+ _: 1
5922
6207
  }, 8, ["modelValue"])
5923
6208
  ]),
5924
6209
  _: 1
5925
6210
  });
5926
6211
  }
5927
- const Userinfor = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-a643a221"]]);
6212
+ const Userinfor = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-3d0ba4ac"]]);
5928
6213
  const propDefine$e = {
5929
6214
  linkParam: {
5930
6215
  // 带入的参数
@@ -11358,6 +11643,13 @@ class UserinforInstance2 extends BaseInstance {
11358
11643
  onclick: () => {
11359
11644
  this.doShowImportUser();
11360
11645
  }
11646
+ },
11647
+ {
11648
+ name: "import",
11649
+ text: "导入CA",
11650
+ onclick: () => {
11651
+ this.importCAData();
11652
+ }
11361
11653
  }
11362
11654
  ],
11363
11655
  rightToolbars: [
@@ -11966,10 +12258,17 @@ class UserinforInstance2 extends BaseInstance {
11966
12258
  CAUserYZImg: ""
11967
12259
  }));
11968
12260
  __publicField(this, "userSignFormItems", reactive([
11969
- { model: "CAUserInfoKey", label: "用户KEY", type: "Input", prop: "CAUserInfoKey", span: 24 },
11970
- { model: "CAUserSealKey", label: "印章KEY", type: "Input", prop: "CAUserSealKey", span: 24 },
11971
- { model: "CAUserYZKey", label: "圆章KEY", type: "Input", prop: "CAUserYZKey", span: 24 }
12261
+ // { model: 'CAUserInfoKey', label: '用户KEY', type: 'Input', prop: 'CAUserInfoKey', span: 24 },
12262
+ { model: "CAUserSealKey", label: "印章KEY", type: "Input", prop: "CAUserSealKey", span: 24, inputProp: { append: "选择", onTextClick: () => {
12263
+ this.GetUserSealData(3);
12264
+ } } },
12265
+ { model: "CAUserYZKey", label: "圆章KEY", type: "Input", prop: "CAUserYZKey", span: 24, inputProp: { append: "选择", onTextClick: () => {
12266
+ this.GetUserSealData(2);
12267
+ } } }
11972
12268
  ]));
12269
+ // 私有方法 | private 方法名() {}
12270
+ /** 当前所选人 */
12271
+ __publicField(this, "activeUserSealRow", ref({}));
11973
12272
  // 响应式方法 | xxx = () => {}
11974
12273
  /**
11975
12274
  * 保存用户签字
@@ -12030,6 +12329,115 @@ class UserinforInstance2 extends BaseInstance {
12030
12329
  this.message.error("读取失败,请稍后重试");
12031
12330
  }
12032
12331
  });
12332
+ // 响应式方法 | xxx = () => {}
12333
+ //#endregion 重置密码 END
12334
+ __publicField(this, "importCAModal", ref(false));
12335
+ __publicField(this, "importCAData", () => {
12336
+ this.importCAModal.value = true;
12337
+ });
12338
+ __publicField(this, "doExcelPointImport", async (datas) => {
12339
+ console.log(datas);
12340
+ if (datas.length == 0) {
12341
+ return;
12342
+ }
12343
+ let names = datas.filter((x) => this.utilities.isNull(x["印章ID"]) == true);
12344
+ if (names.length > 0) {
12345
+ this.message.info("印章ID不能为空!");
12346
+ return;
12347
+ }
12348
+ let names1 = datas.filter((x) => this.utilities.isNull(x["印章名称"]) == true);
12349
+ if (names1.length > 0) {
12350
+ this.message.info("印章名称不能为空!");
12351
+ return;
12352
+ }
12353
+ let names2 = datas.filter((x) => this.utilities.isNull(x["所属用户名"]) == true);
12354
+ if (names2.length > 0) {
12355
+ this.message.info("所属用户名不能为空!");
12356
+ return;
12357
+ }
12358
+ let names3 = datas.filter((x) => this.utilities.isNull(x["印章类型"]) == true);
12359
+ if (names3.length > 0) {
12360
+ this.message.info("印章类型不能为空!");
12361
+ return;
12362
+ }
12363
+ let NewId = this.utilities.getUniqueCode();
12364
+ try {
12365
+ let eqlist = [];
12366
+ datas.forEach((element) => {
12367
+ eqlist.push({
12368
+ Id: 0,
12369
+ ProjectId: this.selectedPlatform.Id,
12370
+ RoadId: this.selectedPlatform.Id,
12371
+ ZId: this.utilities.isNull(element["印章ID"]) ? "" : element["印章ID"],
12372
+ ZName: this.utilities.isNull(element["印章名称"]) ? "" : element["印章名称"],
12373
+ UName: this.utilities.isNull(element["所属用户名"]) ? "" : element["所属用户名"],
12374
+ PIn: "111111",
12375
+ CertType: this.utilities.isNull(element["印章类型"]) ? "3" : element["印章类型"] == "签字" ? 3 : 2,
12376
+ HandleKey: NewId
12377
+ });
12378
+ });
12379
+ if (eqlist.length > 0) {
12380
+ var loginparam = {
12381
+ Account: this.utilities.stringHelper.encodeToBase64("hhlhf"),
12382
+ Pwd: this.utilities.stringHelper.encodeToBase64("Lhf513723."),
12383
+ SystemType: 1
12384
+ };
12385
+ let tokenRes = await request("/OldSysApi/OAuth/Token", {
12386
+ params: loginparam
12387
+ });
12388
+ let headers = await this.getTempRequestHeader();
12389
+ let saveRes = await request("/CASignApi/CA_Userinfointo/saves", {
12390
+ headers,
12391
+ method: "post",
12392
+ data: eqlist
12393
+ });
12394
+ let saveRes2 = await request("/CASignApi/CA_Userinfointo/SaveUserSignNew", {
12395
+ headers,
12396
+ params: { HandleKey: NewId, ProjetId: this.selectedPlatform.Id, RoadId: this.selectedPlatform.Id, BusinessKey: this.selectedPlatform.CABusinessKey }
12397
+ });
12398
+ this.message.success("导入成功!");
12399
+ this.importCAModal.value = false;
12400
+ }
12401
+ } catch (error) {
12402
+ this.message.error("导入失败!");
12403
+ }
12404
+ });
12405
+ __publicField(this, "userSealData", ref([]));
12406
+ __publicField(this, "userSealAllData", []);
12407
+ __publicField(this, "searchUserSeal", ref(""));
12408
+ __publicField(this, "userSealListLoading", ref(false));
12409
+ __publicField(this, "selectCASealModal", ref(false));
12410
+ __publicField(this, "selCaType", ref("3"));
12411
+ __publicField(this, "selUserSealId", ref(0));
12412
+ __publicField(this, "caTypeChange", () => {
12413
+ this.userSealData.value = this.userSealAllData.filter((e) => e["CertType"] == this.selCaType.value);
12414
+ });
12415
+ __publicField(this, "doSearchUserSeal", () => {
12416
+ this.userSealData.value = this.userSealAllData.filter((e) => e["SealName"].indexOf(this.searchUserSeal.value) >= 0);
12417
+ });
12418
+ /**
12419
+ * 选择签字信息
12420
+ */
12421
+ __publicField(this, "doSelUserSeal", async () => {
12422
+ console.log(this.selUserSealId.value);
12423
+ let sealInfo = this.userSealAllData.find((e) => e["Id"] == this.selUserSealId.value);
12424
+ if (sealInfo.CertType == 3) {
12425
+ this.userSignFormModel.CAUserSealKey = sealInfo.SKey;
12426
+ this.doLoadUserSealImg();
12427
+ } else {
12428
+ this.userSignFormModel.CAUserYZKey = sealInfo.SKey;
12429
+ this.doLoadUserYZImg();
12430
+ }
12431
+ this.selectCASealModal.value = false;
12432
+ request("/CASignApi/Userseal/saveDynamic", {
12433
+ headers: await this.getTempRequestHeader(),
12434
+ method: "post",
12435
+ data: {
12436
+ Id: sealInfo.Id,
12437
+ BIId: this.selectedInsTree.InstitutionId
12438
+ }
12439
+ });
12440
+ });
12033
12441
  this.props = props;
12034
12442
  this.ctx = ctx;
12035
12443
  this.initData();
@@ -12255,12 +12663,12 @@ class UserinforInstance2 extends BaseInstance {
12255
12663
  this.storageInfo.removeAll();
12256
12664
  this.loginRef.value.setLoginResult(result);
12257
12665
  }
12258
- // 私有方法 | private 方法名() {}
12259
12666
  /**
12260
12667
  * 编辑用户签字
12261
12668
  */
12262
12669
  async doShowEditUserSign(row) {
12263
12670
  this.showEditUserSign.value = true;
12671
+ this.activeUserSealRow.value = row;
12264
12672
  const apiResult = await this.userSignApi.getEntityByFilter(QueryWrapper.create().eq("UserId", row.Id));
12265
12673
  const result = this.utilities.parseApiResult(apiResult);
12266
12674
  if (!this.utilities.isNull(result)) {
@@ -12305,11 +12713,43 @@ class UserinforInstance2 extends BaseInstance {
12305
12713
  }
12306
12714
  });
12307
12715
  }
12308
- // 响应式方法 | xxx = () => {}
12309
- //#endregion 重置密码 END
12716
+ async GetUserSealData(type2) {
12717
+ this.userSealData.value = [];
12718
+ this.userSealListLoading.value = true;
12719
+ this.selCaType.value = type2;
12720
+ this.selectCASealModal.value = true;
12721
+ ({
12722
+ Account: this.utilities.stringHelper.encodeToBase64("hhlhf"),
12723
+ Pwd: this.utilities.stringHelper.encodeToBase64("Lhf513723."),
12724
+ SystemType: 1
12725
+ });
12726
+ let res = this.utilities.parseApiResult(await request("/CASignApi/Userseal/GetUserSeal", {
12727
+ headers: await this.getTempRequestHeader(),
12728
+ params: {
12729
+ BusinessKey: this.selectedPlatform.CABusinessKey,
12730
+ Parms: ""
12731
+ }
12732
+ }));
12733
+ this.userSealListLoading.value = false;
12734
+ this.userSealAllData = this.utilities.deepCopy(res);
12735
+ this.caTypeChange();
12736
+ }
12737
+ async getTempRequestHeader() {
12738
+ var loginparam = {
12739
+ Account: this.utilities.stringHelper.encodeToBase64("hhkf"),
12740
+ Pwd: this.utilities.stringHelper.encodeToBase64("Nv88341268#"),
12741
+ SystemType: 1
12742
+ };
12743
+ let tokenRes = await request("/OldSysApi/OAuth/Token", {
12744
+ params: loginparam
12745
+ });
12746
+ return {
12747
+ Authorization: "Bearer " + tokenRes.result.Token
12748
+ };
12749
+ }
12310
12750
  }
12311
- const Userinfor_vue_vue_type_style_index_0_scoped_76f4c320_lang = "";
12312
- const _withScopeId$2 = (n) => (pushScopeId("data-v-76f4c320"), n = n(), popScopeId(), n);
12751
+ const Userinfor_vue_vue_type_style_index_0_scoped_72cde892_lang = "";
12752
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-72cde892"), n = n(), popScopeId(), n);
12313
12753
  const _hoisted_1$5 = { class: "instree-search" };
12314
12754
  const _hoisted_2$3 = { class: "instree-list" };
12315
12755
  const _hoisted_3$3 = { style: { "height": "750px", "overflow-y": "auto" } };
@@ -12326,6 +12766,17 @@ const _hoisted_10$1 = { style: { "display": "none" } };
12326
12766
  const _hoisted_11$1 = { style: { "height": "400px", "overflow-y": "auto" } };
12327
12767
  const _hoisted_12 = ["src"];
12328
12768
  const _hoisted_13 = ["src"];
12769
+ const _hoisted_14 = { style: { "height": "260px" } };
12770
+ const _hoisted_15 = { class: "nv-flex" };
12771
+ const _hoisted_16 = { style: { "height": "300px", "overflow": "auto", "margin-top": "10px", "padding": "0 20px" } };
12772
+ const _hoisted_17 = {
12773
+ key: 1,
12774
+ class: "nv-full nv-pos-r"
12775
+ };
12776
+ const _hoisted_18 = {
12777
+ key: 1,
12778
+ class: "nv-c-v-center"
12779
+ };
12329
12780
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
12330
12781
  const _component_Option = resolveComponent("Option");
12331
12782
  const _component_Select = resolveComponent("Select");
@@ -12343,6 +12794,12 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
12343
12794
  const _component_BaseLogin = resolveComponent("BaseLogin");
12344
12795
  const _component_NvComForm = resolveComponent("NvComForm");
12345
12796
  const _component_FormItem = resolveComponent("FormItem");
12797
+ const _component_NvExcelImport = resolveComponent("NvExcelImport");
12798
+ const _component_nvModal = resolveComponent("nvModal");
12799
+ const _component_Input = resolveComponent("Input");
12800
+ const _component_Radio = resolveComponent("Radio");
12801
+ const _component_RadioGroup = resolveComponent("RadioGroup");
12802
+ const _component_NvLoading = resolveComponent("NvLoading");
12346
12803
  const _component_NvPage = resolveComponent("NvPage");
12347
12804
  return openBlock(), createBlock(_component_NvPage, {
12348
12805
  gutter: 8,
@@ -12632,8 +13089,8 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
12632
13089
  draggable: "",
12633
13090
  mask: true,
12634
13091
  "mask-closable": false,
12635
- width: 440,
12636
- title: "编辑签字信息",
13092
+ width: 400,
13093
+ title: _ctx.activeUserSealRow.UserName + "签字信息",
12637
13094
  styles: { top: "3%" }
12638
13095
  }, {
12639
13096
  footer: withCtx(() => [
@@ -12718,12 +13175,106 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
12718
13175
  ])
12719
13176
  ]),
12720
13177
  _: 1
13178
+ }, 8, ["modelValue", "title"]),
13179
+ createVNode(_component_nvModal, {
13180
+ modelValue: _ctx.importCAModal,
13181
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => _ctx.importCAModal = $event),
13182
+ draggable: "",
13183
+ mask: true,
13184
+ "mask-closable": false,
13185
+ width: 500,
13186
+ title: "导入CA数据",
13187
+ "footer-hide": ""
13188
+ }, {
13189
+ default: withCtx(() => [
13190
+ createElementVNode("div", _hoisted_14, [
13191
+ createVNode(_component_NvExcelImport, {
13192
+ ref: "NvExcelImport",
13193
+ onImport: _ctx.doExcelPointImport,
13194
+ isExportTemplete: true,
13195
+ templeteUrl: "https://nvplanfromoss.oss-cn-beijing.aliyuncs.com/XiHu/ExeclTemplate/%E9%99%95%E8%A5%BFCA%E7%AD%BE%E5%AD%97%E6%A8%A1%E6%9D%BF.xlsx"
13196
+ }, null, 8, ["onImport"])
13197
+ ])
13198
+ ]),
13199
+ _: 1
13200
+ }, 8, ["modelValue"]),
13201
+ createVNode(_component_nvModal, {
13202
+ modelValue: _ctx.selectCASealModal,
13203
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => _ctx.selectCASealModal = $event),
13204
+ draggable: "",
13205
+ mask: true,
13206
+ "mask-closable": false,
13207
+ width: 400,
13208
+ title: "选择签字人员"
13209
+ }, {
13210
+ footer: withCtx(() => [
13211
+ createVNode(_component_Button, {
13212
+ type: "text",
13213
+ onClick: _cache[14] || (_cache[14] = ($event) => _ctx.selectCASealModal = false)
13214
+ }, {
13215
+ default: withCtx(() => [
13216
+ createTextVNode("关闭")
13217
+ ]),
13218
+ _: 1
13219
+ }),
13220
+ createVNode(_component_Button, {
13221
+ type: "primary",
13222
+ disabled: !_ctx.selUserSealId,
13223
+ onClick: _ctx.doSelUserSeal
13224
+ }, {
13225
+ default: withCtx(() => [
13226
+ createTextVNode("确定")
13227
+ ]),
13228
+ _: 1
13229
+ }, 8, ["disabled", "onClick"])
13230
+ ]),
13231
+ default: withCtx(() => [
13232
+ createElementVNode("div", _hoisted_15, [
13233
+ createVNode(_component_Input, {
13234
+ class: "nv-flex-1",
13235
+ style: { "margin-left": "10px" },
13236
+ modelValue: _ctx.searchUserSeal,
13237
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => _ctx.searchUserSeal = $event),
13238
+ onOnChange: _ctx.doSearchUserSeal,
13239
+ search: "",
13240
+ placeholder: "请输入人员名称"
13241
+ }, null, 8, ["modelValue", "onOnChange"])
13242
+ ]),
13243
+ createElementVNode("div", _hoisted_16, [
13244
+ _ctx.userSealData.length > 0 ? (openBlock(), createBlock(_component_RadioGroup, {
13245
+ key: 0,
13246
+ modelValue: _ctx.selUserSealId,
13247
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => _ctx.selUserSealId = $event),
13248
+ vertical: ""
13249
+ }, {
13250
+ default: withCtx(() => [
13251
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.userSealData, (item, index2) => {
13252
+ return openBlock(), createBlock(_component_Radio, {
13253
+ label: item.Id
13254
+ }, {
13255
+ default: withCtx(() => [
13256
+ createElementVNode("span", null, toDisplayString(item.SealName), 1)
13257
+ ]),
13258
+ _: 2
13259
+ }, 1032, ["label"]);
13260
+ }), 256))
13261
+ ]),
13262
+ _: 1
13263
+ }, 8, ["modelValue"])) : (openBlock(), createElementBlock("div", _hoisted_17, [
13264
+ _ctx.userSealListLoading ? (openBlock(), createBlock(_component_NvLoading, {
13265
+ key: 0,
13266
+ content: "人员数据加载中..."
13267
+ })) : (openBlock(), createElementBlock("div", _hoisted_18, "暂无人员数据"))
13268
+ ]))
13269
+ ])
13270
+ ]),
13271
+ _: 1
12721
13272
  }, 8, ["modelValue"])
12722
13273
  ]),
12723
13274
  _: 1
12724
13275
  });
12725
13276
  }
12726
- const subuserinfor = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-76f4c320"]]);
13277
+ const subuserinfor = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-72cde892"]]);
12727
13278
  const propDefine$5 = {
12728
13279
  linkParam: {
12729
13280
  // 带入的参数
@@ -13589,8 +14140,8 @@ class ModuleInstance2 extends BaseInstance {
13589
14140
  // 响应式方法 | xxx = () => {}
13590
14141
  //#endregion 业务逻辑 END
13591
14142
  }
13592
- const Module_vue_vue_type_style_index_0_scoped_23a8ab5f_lang = "";
13593
- const _withScopeId$1 = (n) => (pushScopeId("data-v-23a8ab5f"), n = n(), popScopeId(), n);
14143
+ const Module_vue_vue_type_style_index_0_scoped_a73dad2e_lang = "";
14144
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-a73dad2e"), n = n(), popScopeId(), n);
13594
14145
  const _hoisted_1$4 = { style: { "height": "650px", "overflow-y": "auto" } };
13595
14146
  const _hoisted_2$2 = {
13596
14147
  class: "import-module",
@@ -13860,7 +14411,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
13860
14411
  _: 1
13861
14412
  });
13862
14413
  }
13863
- const subModule = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-23a8ab5f"]]);
14414
+ const subModule = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-a73dad2e"]]);
13864
14415
  const type = "FeatureCollection";
13865
14416
  const features = [
13866
14417
  {
@@ -26897,7 +27448,7 @@ let ProjectUserinforInstance$1 = class ProjectUserinforInstance extends BaseInst
26897
27448
  }
26898
27449
  //#endregion 系统平台 END
26899
27450
  };
26900
- const Sublinepoins_vue_vue_type_style_index_0_scoped_66a288c7_lang = "";
27451
+ const Sublinepoins_vue_vue_type_style_index_0_scoped_297f680c_lang = "";
26901
27452
  const _hoisted_1$3 = { class: "instree-search" };
26902
27453
  const _hoisted_2$1 = { class: "instree-list" };
26903
27454
  const _hoisted_3$1 = { class: "nv-flex-1 nv-flex-col map-box" };
@@ -27144,7 +27695,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
27144
27695
  _: 1
27145
27696
  });
27146
27697
  }
27147
- const sublinepoins = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-66a288c7"]]);
27698
+ const sublinepoins = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-297f680c"]]);
27148
27699
  const propDefine$3 = {
27149
27700
  Id: {
27150
27701
  default: 0,