@indfnd/common-mobile-pro 1.0.25 → 1.0.27

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.
@@ -171320,6 +171320,1957 @@ var packages_file_box_src_component = (0,packages_componentNormalizer["default"]
171320
171320
 
171321
171321
  /* harmony default export */ const packages_file_box = (packages_file_box_src);
171322
171322
 
171323
+ ;// ./node_modules/gy-vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[1]!./node_modules/gy-vue-loader/lib/index.js??gy-vue-loader-options!./packages/components/audit-framework/src/index.vue?vue&type=template&id=0be776b0&scoped=true
171324
+ var packages_srcvue_type_template_id_0be776b0_scoped_true_render = function render() {
171325
+ var _vm = this,
171326
+ _c = _vm._self._c
171327
+ return _c(
171328
+ "div",
171329
+ { staticClass: "audit-framework" },
171330
+ [
171331
+ _c("LamboLoading", { attrs: { "show-loading": _vm.loading } }, [
171332
+ _vm._v("保存中。。。"),
171333
+ ]),
171334
+ _vm._v(" "),
171335
+ _c(
171336
+ "van-tabs",
171337
+ {
171338
+ attrs: { swipeable: "", sticky: "", "offset-top": "68px" },
171339
+ model: {
171340
+ value: _vm.active,
171341
+ callback: function ($$v) {
171342
+ _vm.active = $$v
171343
+ },
171344
+ expression: "active",
171345
+ },
171346
+ },
171347
+ [
171348
+ _c("van-tab", { attrs: { title: "审批单", name: "auditForm" } }, [
171349
+ _c("div", { staticClass: "audit-framework-title" }, [
171350
+ _vm._v(_vm._s(_vm.auditFormTitle)),
171351
+ ]),
171352
+ _vm._v(" "),
171353
+ _c(
171354
+ "div",
171355
+ { staticClass: "audit-framework-content" },
171356
+ [
171357
+ _vm.isRefresh
171358
+ ? _c(
171359
+ "van-collapse",
171360
+ {
171361
+ model: {
171362
+ value: _vm.collapseActives,
171363
+ callback: function ($$v) {
171364
+ _vm.collapseActives = $$v
171365
+ },
171366
+ expression: "collapseActives",
171367
+ },
171368
+ },
171369
+ [
171370
+ _c(
171371
+ "van-collapse-item",
171372
+ {
171373
+ attrs: {
171374
+ name: "baseInfo",
171375
+ border: false,
171376
+ "is-link": false,
171377
+ },
171378
+ scopedSlots: _vm._u(
171379
+ [
171380
+ {
171381
+ key: "title",
171382
+ fn: function () {
171383
+ return [
171384
+ _c(
171385
+ "span",
171386
+ {
171387
+ staticStyle: {
171388
+ "font-size": "16px",
171389
+ "font-weight": "bold",
171390
+ },
171391
+ },
171392
+ [
171393
+ _vm._v(
171394
+ "\n 基本信息\n "
171395
+ ),
171396
+ ]
171397
+ ),
171398
+ ]
171399
+ },
171400
+ proxy: true,
171401
+ },
171402
+ {
171403
+ key: "value",
171404
+ fn: function () {
171405
+ return [
171406
+ _c("van-switch", {
171407
+ attrs: { size: "16px" },
171408
+ model: {
171409
+ value: _vm.baseInfoChecked,
171410
+ callback: function ($$v) {
171411
+ _vm.baseInfoChecked = $$v
171412
+ },
171413
+ expression: "baseInfoChecked",
171414
+ },
171415
+ }),
171416
+ ]
171417
+ },
171418
+ proxy: true,
171419
+ },
171420
+ ],
171421
+ null,
171422
+ false,
171423
+ 1359112350
171424
+ ),
171425
+ },
171426
+ [
171427
+ _vm._v(" "),
171428
+ _vm._v(" "),
171429
+ _c("LamboMListBox", {
171430
+ attrs: { data: _vm.auditFormBaseInfo },
171431
+ }),
171432
+ ],
171433
+ 1
171434
+ ),
171435
+ _vm._v(" "),
171436
+ _c(
171437
+ "van-collapse-item",
171438
+ {
171439
+ attrs: {
171440
+ name: "auditLog",
171441
+ border: false,
171442
+ "is-link": false,
171443
+ },
171444
+ scopedSlots: _vm._u(
171445
+ [
171446
+ {
171447
+ key: "title",
171448
+ fn: function () {
171449
+ return [
171450
+ _c(
171451
+ "span",
171452
+ {
171453
+ staticStyle: {
171454
+ "font-size": "16px",
171455
+ "font-weight": "bold",
171456
+ },
171457
+ },
171458
+ [_vm._v("审批意见")]
171459
+ ),
171460
+ ]
171461
+ },
171462
+ proxy: true,
171463
+ },
171464
+ {
171465
+ key: "value",
171466
+ fn: function () {
171467
+ return [
171468
+ _c("van-switch", {
171469
+ attrs: { size: "16px" },
171470
+ model: {
171471
+ value: _vm.auditLogChecked,
171472
+ callback: function ($$v) {
171473
+ _vm.auditLogChecked = $$v
171474
+ },
171475
+ expression: "auditLogChecked",
171476
+ },
171477
+ }),
171478
+ ]
171479
+ },
171480
+ proxy: true,
171481
+ },
171482
+ ],
171483
+ null,
171484
+ false,
171485
+ 3411956898
171486
+ ),
171487
+ },
171488
+ [
171489
+ _vm._v(" "),
171490
+ _vm._v(" "),
171491
+ _vm.active == "auditForm"
171492
+ ? _c("LamboMFlowBox", {
171493
+ attrs: {
171494
+ data: _vm.currentFlowData,
171495
+ showType: "modal",
171496
+ },
171497
+ })
171498
+ : _vm._e(),
171499
+ ],
171500
+ 1
171501
+ ),
171502
+ ],
171503
+ 1
171504
+ )
171505
+ : _vm._e(),
171506
+ ],
171507
+ 1
171508
+ ),
171509
+ ]),
171510
+ _vm._v(" "),
171511
+ _c(
171512
+ "van-tab",
171513
+ { attrs: { title: "明细信息", name: "baseInfo" } },
171514
+ [_vm._t("detaileContent")],
171515
+ 2
171516
+ ),
171517
+ _vm._v(" "),
171518
+ _c(
171519
+ "van-tab",
171520
+ { attrs: { title: "流程跟踪", name: "auditLog" } },
171521
+ [
171522
+ _vm.active == "auditLog"
171523
+ ? _c("LamboMFlowBox", {
171524
+ attrs: { data: _vm.allFlowData, showType: "page" },
171525
+ })
171526
+ : _vm._e(),
171527
+ ],
171528
+ 1
171529
+ ),
171530
+ ],
171531
+ 1
171532
+ ),
171533
+ _vm._v(" "),
171534
+ _vm.params.audit
171535
+ ? _c("LamboMAuditBox", {
171536
+ attrs: {
171537
+ commonApi: _vm.params.commonApi,
171538
+ creatPersonData: _vm.creatPersonData,
171539
+ nextNode: _vm.nextNode,
171540
+ dafalutOpinion: _vm.dafalutOpinion,
171541
+ },
171542
+ on: {
171543
+ onSubmit: _vm.params.onSubmit,
171544
+ onReject: _vm.params.onReject,
171545
+ onSave: _vm.savePersonalOpinionData,
171546
+ },
171547
+ })
171548
+ : _vm._e(),
171549
+ ],
171550
+ 1
171551
+ )
171552
+ }
171553
+ var packages_srcvue_type_template_id_0be776b0_scoped_true_staticRenderFns = []
171554
+ packages_srcvue_type_template_id_0be776b0_scoped_true_render._withStripped = true
171555
+
171556
+
171557
+ ;// ./packages/components/audit-framework/src/index.vue?vue&type=template&id=0be776b0&scoped=true
171558
+
171559
+ ;// ./node_modules/gy-vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[1]!./node_modules/gy-vue-loader/lib/index.js??gy-vue-loader-options!./packages/components/audit-framework/src/components/list-box.vue?vue&type=template&id=4056824f&scoped=true
171560
+ var packages_list_boxvue_type_template_id_4056824f_scoped_true_render = function render() {
171561
+ var _vm = this,
171562
+ _c = _vm._self._c
171563
+ return _c(
171564
+ "div",
171565
+ { staticClass: "list-box" },
171566
+ [
171567
+ _c(
171568
+ "van-cell-group",
171569
+ { attrs: { inset: "" } },
171570
+ [
171571
+ _vm._l(_vm.data, function (item, idx) {
171572
+ return [
171573
+ !item.isShow
171574
+ ? _c("van-cell", {
171575
+ key: idx,
171576
+ class: item.class,
171577
+ style: item.style,
171578
+ attrs: { value: item.value, "is-link": item.isLink },
171579
+ on: {
171580
+ click: function ($event) {
171581
+ item.methodName
171582
+ ? item.methodParam
171583
+ ? _vm.$parent[item.methodName](...item.methodParam)
171584
+ : _vm.$parent[item.methodName]()
171585
+ : _vm.$emit("linkClick")
171586
+ },
171587
+ },
171588
+ scopedSlots: _vm._u(
171589
+ [
171590
+ {
171591
+ key: "title",
171592
+ fn: function () {
171593
+ return [_vm._v(_vm._s(item.title))]
171594
+ },
171595
+ proxy: true,
171596
+ },
171597
+ {
171598
+ key: "default",
171599
+ fn: function () {
171600
+ return [
171601
+ item.isEdit
171602
+ ? _c("span", [
171603
+ _c(
171604
+ "span",
171605
+ {
171606
+ staticClass: "van-cell_bold_value_edit",
171607
+ on: {
171608
+ click: function ($event) {
171609
+ return _vm.$emit(
171610
+ "valueOnChange",
171611
+ item
171612
+ )
171613
+ },
171614
+ },
171615
+ },
171616
+ [_vm._v(_vm._s(item.value))]
171617
+ ),
171618
+ _vm._v(" "),
171619
+ item.isNum || item.isBoldNum
171620
+ ? _c("span", [
171621
+ _vm._v(
171622
+ " " + _vm._s(item.unitName || "元")
171623
+ ),
171624
+ ])
171625
+ : _vm._e(),
171626
+ ])
171627
+ : _c("span", [
171628
+ item.isNum
171629
+ ? _c(
171630
+ "span",
171631
+ { staticClass: "van-cell_num_value" },
171632
+ [_vm._v(_vm._s(item.value))]
171633
+ )
171634
+ : item.isBoldNum
171635
+ ? _c(
171636
+ "span",
171637
+ {
171638
+ staticClass: "van-cell_bold_value",
171639
+ },
171640
+ [_vm._v(_vm._s(item.value))]
171641
+ )
171642
+ : item.isArray
171643
+ ? _c(
171644
+ "span",
171645
+ { staticClass: "van-cell_file" },
171646
+ _vm._l(
171647
+ item.fileList,
171648
+ function (file, idx) {
171649
+ return _c(
171650
+ "div",
171651
+ {
171652
+ key: idx,
171653
+ staticClass:
171654
+ "van-cell_file-name",
171655
+ on: {
171656
+ click: function ($event) {
171657
+ return _vm.clickFile(file)
171658
+ },
171659
+ },
171660
+ },
171661
+ [
171662
+ _vm._v(
171663
+ "\n " +
171664
+ _vm._s(file.fileName) +
171665
+ "\n "
171666
+ ),
171667
+ ]
171668
+ )
171669
+ }
171670
+ ),
171671
+ 0
171672
+ )
171673
+ : _c("span", [
171674
+ _vm._v(_vm._s(item.value)),
171675
+ ]),
171676
+ _vm._v(" "),
171677
+ item.isNum || item.isBoldNum
171678
+ ? _c("span", [
171679
+ _vm._v(
171680
+ " " + _vm._s(item.unitName || "元")
171681
+ ),
171682
+ ])
171683
+ : _vm._e(),
171684
+ ]),
171685
+ ]
171686
+ },
171687
+ proxy: true,
171688
+ },
171689
+ ],
171690
+ null,
171691
+ true
171692
+ ),
171693
+ })
171694
+ : _vm._e(),
171695
+ ]
171696
+ }),
171697
+ _vm._v(" "),
171698
+ _vm.extValue && _vm.extValue != ""
171699
+ ? _c("div", { staticStyle: { height: "5px" } })
171700
+ : _vm._e(),
171701
+ _vm._v(" "),
171702
+ _vm.extValue && _vm.extValue != ""
171703
+ ? _c(
171704
+ "van-row",
171705
+ {
171706
+ staticClass: "ext-wrapper",
171707
+ attrs: { align: "center", wrap: false },
171708
+ },
171709
+ [
171710
+ _c("div", [
171711
+ _c(
171712
+ "span",
171713
+ { staticClass: "ext-wrapper-title" },
171714
+ [
171715
+ _c("van-icon", { attrs: { name: "info-o" } }),
171716
+ _vm._v(
171717
+ "\n " + _vm._s(_vm.extTitle) + "\n "
171718
+ ),
171719
+ ],
171720
+ 1
171721
+ ),
171722
+ _vm._v(" "),
171723
+ _c("span", { staticClass: "ext-wrapper-value" }, [
171724
+ _vm._v(
171725
+ "\n " + _vm._s(_vm.extValue) + "\n "
171726
+ ),
171727
+ ]),
171728
+ ]),
171729
+ ]
171730
+ )
171731
+ : _vm._e(),
171732
+ _vm._v(" "),
171733
+ _c("div", { staticStyle: { height: "5px" } }),
171734
+ _vm._v(" "),
171735
+ _c(
171736
+ "van-row",
171737
+ {
171738
+ staticClass: "cust-ext-wrapper",
171739
+ attrs: { align: "center", wrap: false },
171740
+ },
171741
+ [_vm._t("cust-ext-wrapper")],
171742
+ 2
171743
+ ),
171744
+ _vm._v(" "),
171745
+ _c(
171746
+ "van-row",
171747
+ {
171748
+ staticClass: "cust-ext-wrapper",
171749
+ attrs: { align: "center", wrap: false },
171750
+ },
171751
+ [_vm._t("cust-ext-wrapper1")],
171752
+ 2
171753
+ ),
171754
+ ],
171755
+ 2
171756
+ ),
171757
+ _vm._v(" "),
171758
+ _c("PreviewBox", {
171759
+ attrs: { id: _vm.id, fileId: _vm.fileId },
171760
+ model: {
171761
+ value: _vm.previewShow,
171762
+ callback: function ($$v) {
171763
+ _vm.previewShow = $$v
171764
+ },
171765
+ expression: "previewShow",
171766
+ },
171767
+ }),
171768
+ ],
171769
+ 1
171770
+ )
171771
+ }
171772
+ var packages_list_boxvue_type_template_id_4056824f_scoped_true_staticRenderFns = []
171773
+ packages_list_boxvue_type_template_id_4056824f_scoped_true_render._withStripped = true
171774
+
171775
+
171776
+ ;// ./packages/components/audit-framework/src/components/list-box.vue?vue&type=template&id=4056824f&scoped=true
171777
+
171778
+ ;// ./node_modules/gy-vue-loader/lib/index.js??gy-vue-loader-options!./packages/components/audit-framework/src/components/list-box.vue?vue&type=script&lang=js
171779
+
171780
+
171781
+ /* harmony default export */ const packages_list_boxvue_type_script_lang_js = ({
171782
+ components: {
171783
+ PreviewBox: packages_preview_box,
171784
+ },
171785
+ emits: ["onLog", "onDetail", "valueOnChange", "linkClick", "onDelete"],
171786
+ props: {
171787
+ busiPk: {
171788
+ type: String,
171789
+ default: "",
171790
+ },
171791
+ isShowCheck: {
171792
+ type: Boolean,
171793
+ default: false,
171794
+ },
171795
+ heardTitle: {
171796
+ type: String,
171797
+ default: "",
171798
+ },
171799
+ heardSubTitle: {
171800
+ type: String,
171801
+ default: "",
171802
+ },
171803
+ status: {
171804
+ type: Boolean,
171805
+ default: false,
171806
+ },
171807
+ nodeName: {
171808
+ type: String,
171809
+ default: "审批中",
171810
+ },
171811
+ maxNode: {
171812
+ type: String,
171813
+ default: "",
171814
+ },
171815
+ curNode: {
171816
+ type: String,
171817
+ default: "",
171818
+ },
171819
+ isAutoStatus: {
171820
+ type: Boolean,
171821
+ default: false,
171822
+ },
171823
+ isShowStatus: {
171824
+ type: Boolean,
171825
+ default: true,
171826
+ },
171827
+ data: {
171828
+ type: Array,
171829
+ default: () => {
171830
+ return [];
171831
+ },
171832
+ },
171833
+ isShowBtn: {
171834
+ type: Boolean,
171835
+ default: true,
171836
+ },
171837
+ isShowOptBtn: {
171838
+ type: Boolean,
171839
+ default: false,
171840
+ },
171841
+ isShowDeleteBtn: {
171842
+ type: Boolean,
171843
+ default: true,
171844
+ },
171845
+ //部分不能查看审批日志的,禁用
171846
+ isShowLog: {
171847
+ type: Boolean,
171848
+ default: true,
171849
+ },
171850
+ isShowExt: {
171851
+ type: Boolean,
171852
+ default: false,
171853
+ },
171854
+ extTitle: {
171855
+ type: String,
171856
+ default: "",
171857
+ },
171858
+ extValue: {
171859
+ type: String,
171860
+ default: "",
171861
+ },
171862
+ iconSize: {
171863
+ type: String,
171864
+ default: "md",
171865
+ },
171866
+ iconId: {
171867
+ type: String,
171868
+ default: "scheme",
171869
+ },
171870
+ heardValue: {
171871
+ type: String,
171872
+ default: "",
171873
+ },
171874
+ heardValueIsNum: {
171875
+ type: Boolean,
171876
+ default: false,
171877
+ },
171878
+ isLink: {
171879
+ type: Boolean,
171880
+ default: false,
171881
+ },
171882
+ methodName: {
171883
+ type: String,
171884
+ default: "",
171885
+ },
171886
+ methodParam: {
171887
+ type: Array,
171888
+ default: () => {
171889
+ return [];
171890
+ },
171891
+ },
171892
+ },
171893
+ data() {
171894
+ return {
171895
+ previewShow: false,
171896
+ id: "",
171897
+ fileId: "",
171898
+ };
171899
+ },
171900
+ created() {},
171901
+ methods: {
171902
+ clickFile(file) {
171903
+ this.fileId = file.fileId;
171904
+ this.id = file.fileId;
171905
+ this.previewShow = true;
171906
+ },
171907
+ },
171908
+ });
171909
+
171910
+ ;// ./packages/components/audit-framework/src/components/list-box.vue?vue&type=script&lang=js
171911
+ /* harmony default export */ const packages_components_list_boxvue_type_script_lang_js = (packages_list_boxvue_type_script_lang_js);
171912
+ ;// ./packages/components/audit-framework/src/components/list-box.vue
171913
+
171914
+
171915
+
171916
+ ;
171917
+
171918
+
171919
+ /* normalize component */
171920
+
171921
+ var packages_list_box_component = (0,packages_componentNormalizer["default"])(
171922
+ packages_components_list_boxvue_type_script_lang_js,
171923
+ packages_list_boxvue_type_template_id_4056824f_scoped_true_render,
171924
+ packages_list_boxvue_type_template_id_4056824f_scoped_true_staticRenderFns,
171925
+ false,
171926
+ null,
171927
+ "4056824f",
171928
+ null
171929
+
171930
+ )
171931
+
171932
+ /* harmony default export */ const packages_components_list_box = (packages_list_box_component.exports);
171933
+ ;// ./node_modules/gy-vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[1]!./node_modules/gy-vue-loader/lib/index.js??gy-vue-loader-options!./packages/components/audit-framework/src/components/audit-box.vue?vue&type=template&id=ef661cfc&scoped=true
171934
+ var packages_audit_boxvue_type_template_id_ef661cfc_scoped_true_render = function render() {
171935
+ var _vm = this,
171936
+ _c = _vm._self._c
171937
+ return _c(
171938
+ "div",
171939
+ [
171940
+ _c("div", { staticStyle: { "margin-bottom": "140px" } }),
171941
+ _vm._v(" "),
171942
+ _c(
171943
+ "van-row",
171944
+ {
171945
+ staticClass: "check-wrapper-opinion",
171946
+ attrs: { align: "center", wrap: false },
171947
+ },
171948
+ [
171949
+ _c(
171950
+ "van-col",
171951
+ { attrs: { span: "21" } },
171952
+ [
171953
+ _c("van-field", {
171954
+ attrs: {
171955
+ type: "input",
171956
+ placeholder: "请输入审批意见",
171957
+ border: true,
171958
+ maxlength: "512",
171959
+ },
171960
+ model: {
171961
+ value: _vm.opinion,
171962
+ callback: function ($$v) {
171963
+ _vm.opinion = $$v
171964
+ },
171965
+ expression: "opinion",
171966
+ },
171967
+ }),
171968
+ ],
171969
+ 1
171970
+ ),
171971
+ _vm._v(" "),
171972
+ _c("van-col", { attrs: { span: "2" } }, [
171973
+ _c("div", {
171974
+ staticClass: "chat-btn",
171975
+ on: {
171976
+ click: function ($event) {
171977
+ _vm.showCheckOpinion = true
171978
+ },
171979
+ },
171980
+ }),
171981
+ ]),
171982
+ ],
171983
+ 1
171984
+ ),
171985
+ _vm._v(" "),
171986
+ _c(
171987
+ "van-row",
171988
+ {
171989
+ staticClass: "check-wrapper",
171990
+ attrs: { align: "center", wrap: false },
171991
+ },
171992
+ [
171993
+ _c(
171994
+ "van-col",
171995
+ { staticClass: "check-col-wrapper", attrs: { span: "24" } },
171996
+ [
171997
+ _c(
171998
+ "span",
171999
+ {
172000
+ class: [
172001
+ "btn",
172002
+ "confirm",
172003
+ { "confirm-disabled": _vm.confirmDisabled },
172004
+ ],
172005
+ on: {
172006
+ click: function ($event) {
172007
+ _vm.showSubmitSheet = true
172008
+ },
172009
+ },
172010
+ },
172011
+ [_vm._v(_vm._s(_vm.confirmText))]
172012
+ ),
172013
+ _vm._v(" "),
172014
+ _c(
172015
+ "span",
172016
+ {
172017
+ class: ["btn", "save", { "save-disabled": _vm.saveDisabled }],
172018
+ on: { click: _vm.forSave },
172019
+ },
172020
+ [_vm._v(_vm._s(_vm.saveText))]
172021
+ ),
172022
+ _vm._v(" "),
172023
+ _c(
172024
+ "span",
172025
+ {
172026
+ class: [
172027
+ "btn",
172028
+ "reject",
172029
+ { "reject-disabled": _vm.rejectDisabled },
172030
+ ],
172031
+ on: {
172032
+ click: function ($event) {
172033
+ _vm.showRejectSheet = true
172034
+ },
172035
+ },
172036
+ },
172037
+ [_vm._v(_vm._s(_vm.rejectText))]
172038
+ ),
172039
+ ]
172040
+ ),
172041
+ ],
172042
+ 1
172043
+ ),
172044
+ _vm._v(" "),
172045
+ _c(
172046
+ "van-popup",
172047
+ {
172048
+ style: { width: "100%", height: "70%" },
172049
+ attrs: {
172050
+ title: "意见维护",
172051
+ round: "",
172052
+ "destroy-on-close": "true",
172053
+ "lazy-render": true,
172054
+ position: "bottom",
172055
+ closeable: true,
172056
+ },
172057
+ model: {
172058
+ value: _vm.showCheckOpinion,
172059
+ callback: function ($$v) {
172060
+ _vm.showCheckOpinion = $$v
172061
+ },
172062
+ expression: "showCheckOpinion",
172063
+ },
172064
+ },
172065
+ [
172066
+ _c("OpinionSheet", {
172067
+ attrs: { commonApi: _vm.commonApi },
172068
+ on: { forOpinionChange: _vm.forOpinionChange },
172069
+ }),
172070
+ ],
172071
+ 1
172072
+ ),
172073
+ _vm._v(" "),
172074
+ _c(
172075
+ "van-popup",
172076
+ {
172077
+ style: { width: "100%", height: "70%" },
172078
+ attrs: {
172079
+ title: "发送",
172080
+ round: "",
172081
+ "destroy-on-close": "true",
172082
+ "lazy-render": true,
172083
+ position: "bottom",
172084
+ closeable: true,
172085
+ },
172086
+ model: {
172087
+ value: _vm.showSubmitSheet,
172088
+ callback: function ($$v) {
172089
+ _vm.showSubmitSheet = $$v
172090
+ },
172091
+ expression: "showSubmitSheet",
172092
+ },
172093
+ },
172094
+ [
172095
+ _c("SubmitSheet", {
172096
+ attrs: { nextNode: _vm.nextNode },
172097
+ on: { forSubmit: _vm.forSubmit },
172098
+ }),
172099
+ ],
172100
+ 1
172101
+ ),
172102
+ _vm._v(" "),
172103
+ _c(
172104
+ "van-popup",
172105
+ {
172106
+ style: { width: "100%", height: "70%" },
172107
+ attrs: {
172108
+ title: "退回",
172109
+ round: "",
172110
+ "destroy-on-close": "true",
172111
+ "lazy-render": true,
172112
+ position: "bottom",
172113
+ closeable: true,
172114
+ },
172115
+ model: {
172116
+ value: _vm.showRejectSheet,
172117
+ callback: function ($$v) {
172118
+ _vm.showRejectSheet = $$v
172119
+ },
172120
+ expression: "showRejectSheet",
172121
+ },
172122
+ },
172123
+ [
172124
+ _c("RejectSheet", {
172125
+ attrs: { creatPersonData: _vm.creatPersonData },
172126
+ on: { forReject: _vm.forReject },
172127
+ }),
172128
+ ],
172129
+ 1
172130
+ ),
172131
+ ],
172132
+ 1
172133
+ )
172134
+ }
172135
+ var packages_audit_boxvue_type_template_id_ef661cfc_scoped_true_staticRenderFns = []
172136
+ packages_audit_boxvue_type_template_id_ef661cfc_scoped_true_render._withStripped = true
172137
+
172138
+
172139
+ ;// ./packages/components/audit-framework/src/components/audit-box.vue?vue&type=template&id=ef661cfc&scoped=true
172140
+
172141
+ ;// ./node_modules/gy-vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[1]!./node_modules/gy-vue-loader/lib/index.js??gy-vue-loader-options!./packages/components/audit-framework/src/components/submit-sheet.vue?vue&type=template&id=3fcc8019&scoped=true
172142
+ var packages_submit_sheetvue_type_template_id_3fcc8019_scoped_true_render = function render() {
172143
+ var _vm = this,
172144
+ _c = _vm._self._c
172145
+ return _c("div", { staticClass: "submit-sheet" }, [
172146
+ _c("div", { class: ["submit-sheet-item", "top"] }, [
172147
+ _c("div", { staticClass: "submit-sheet-item-title" }, [
172148
+ _vm._v("您即将发给"),
172149
+ ]),
172150
+ _vm._v(" "),
172151
+ _c("div", { staticClass: "submit-sheet-flow" }, [
172152
+ _c("div", { staticClass: "submit-sheet-flow-right" }, [
172153
+ _c("div", { staticClass: "submit-sheet-flow-name" }, [
172154
+ _vm._v("\n " + _vm._s(_vm.nextNodeName) + "\n "),
172155
+ ]),
172156
+ _vm._v(" "),
172157
+ _c("div", { staticClass: "submit-sheet-flow-personcount" }, [
172158
+ _vm._v(_vm._s(_vm.flowCount) + "人"),
172159
+ ]),
172160
+ ]),
172161
+ _vm._v(" "),
172162
+ _c("div", { staticClass: "submit-sheet-flow-left" }, [
172163
+ _vm.flowNodes.length > 0
172164
+ ? _c(
172165
+ "span",
172166
+ _vm._l(_vm.flowNodes, function (item, idx) {
172167
+ return _c(
172168
+ "div",
172169
+ {
172170
+ key: idx,
172171
+ staticClass: "submit-sheet-flow-item",
172172
+ on: {
172173
+ click: function ($event) {
172174
+ return _vm.checkPerson(item)
172175
+ },
172176
+ },
172177
+ },
172178
+ [
172179
+ _c("div", {
172180
+ class: [
172181
+ "submit-sheet-flow-item-icon",
172182
+ _vm.checkedPerson.includes(item.userId)
172183
+ ? "checked"
172184
+ : "noChecked",
172185
+ ],
172186
+ }),
172187
+ _vm._v(" "),
172188
+ _c(
172189
+ "div",
172190
+ {
172191
+ class: [
172192
+ "submit-sheet-flow-item-name",
172193
+ _vm.checkedPerson.includes(item.userId)
172194
+ ? "checked"
172195
+ : "noChecked",
172196
+ ],
172197
+ },
172198
+ [
172199
+ _vm._v(
172200
+ "\n " +
172201
+ _vm._s(item.userName) +
172202
+ "\n "
172203
+ ),
172204
+ ]
172205
+ ),
172206
+ ]
172207
+ )
172208
+ }),
172209
+ 0
172210
+ )
172211
+ : _c("span", [_vm._v("无")]),
172212
+ ]),
172213
+ ]),
172214
+ ]),
172215
+ _vm._v(" "),
172216
+ _c("div", { class: ["submit-sheet-item", "bottom"] }, [
172217
+ _c("div", { staticClass: "submit-sheet-item-title" }, [
172218
+ _vm._v("提醒方式"),
172219
+ ]),
172220
+ _vm._v(" "),
172221
+ _c(
172222
+ "div",
172223
+ { staticClass: "submit-sheet-item-content" },
172224
+ [
172225
+ _c(
172226
+ "van-checkbox-group",
172227
+ {
172228
+ attrs: { direction: "horizontal" },
172229
+ model: {
172230
+ value: _vm.noticeType,
172231
+ callback: function ($$v) {
172232
+ _vm.noticeType = $$v
172233
+ },
172234
+ expression: "noticeType",
172235
+ },
172236
+ },
172237
+ [
172238
+ _c(
172239
+ "van-checkbox",
172240
+ { attrs: { name: "isSendMsgParam", shape: "square" } },
172241
+ [_vm._v("短信提醒")]
172242
+ ),
172243
+ _vm._v(" "),
172244
+ _c(
172245
+ "van-checkbox",
172246
+ { attrs: { name: "isSendTaskParam", shape: "square" } },
172247
+ [_vm._v("系统消息")]
172248
+ ),
172249
+ ],
172250
+ 1
172251
+ ),
172252
+ ],
172253
+ 1
172254
+ ),
172255
+ ]),
172256
+ _vm._v(" "),
172257
+ _c(
172258
+ "div",
172259
+ { staticClass: "submit-sheet-btn", on: { click: _vm.forSubmit } },
172260
+ [_vm._v("发送")]
172261
+ ),
172262
+ ])
172263
+ }
172264
+ var packages_submit_sheetvue_type_template_id_3fcc8019_scoped_true_staticRenderFns = []
172265
+ packages_submit_sheetvue_type_template_id_3fcc8019_scoped_true_render._withStripped = true
172266
+
172267
+
172268
+ ;// ./packages/components/audit-framework/src/components/submit-sheet.vue?vue&type=template&id=3fcc8019&scoped=true
172269
+
172270
+ ;// ./node_modules/gy-vue-loader/lib/index.js??gy-vue-loader-options!./packages/components/audit-framework/src/components/submit-sheet.vue?vue&type=script&lang=js
172271
+
172272
+
172273
+ /* harmony default export */ const packages_submit_sheetvue_type_script_lang_js = ({
172274
+ props: {
172275
+ nextNode: {
172276
+ type: Object,
172277
+ default: () => {
172278
+ return {};
172279
+ },
172280
+ },
172281
+ },
172282
+ watch: {
172283
+ flowNode: {
172284
+ handler() {
172285
+ this.flowNodes = packages_lodash_lodash_default().cloneDeep(this.nextNode.nextNodeData);
172286
+ this.nextNodeName = this.nextNode.nextNodeName;
172287
+ this.checkedPerson = this.flowNodes.map((item) => item.userId);
172288
+ this.flowCount = this.checkedPerson.length;
172289
+ },
172290
+ deep: true,
172291
+ immediate: true,
172292
+ },
172293
+ },
172294
+ data() {
172295
+ return {
172296
+ noticeType: [], // 提醒方式
172297
+ flowCount: 0, // 选中了几个人
172298
+ flowNodes: [], // 下一级流程节点人数
172299
+ checkedPerson: [], // 选中的节点人
172300
+ nextNodeName: "", // 下级流程名称
172301
+ };
172302
+ },
172303
+ methods: {
172304
+ checkPerson(item) {
172305
+ const index = this.checkedPerson.indexOf(item.userId);
172306
+ if (index !== -1) {
172307
+ // 如果存在,删除它
172308
+ this.checkedPerson.splice(index, 1);
172309
+ } else {
172310
+ // 如果不存在,添加它
172311
+ this.checkedPerson.push(item.userId);
172312
+ }
172313
+ this.flowCount = this.checkedPerson.length;
172314
+ },
172315
+ forSubmit() {
172316
+ this.$emit(
172317
+ "forSubmit",
172318
+ {
172319
+ isSendMsgParam: this.noticeType.includes("isSendMsgParam")
172320
+ ? "1"
172321
+ : "0",
172322
+ isSendTaskParam: this.noticeType.includes("isSendTaskParam")
172323
+ ? "1"
172324
+ : "0",
172325
+ },
172326
+ this.checkedPerson
172327
+ );
172328
+ },
172329
+ },
172330
+ });
172331
+
172332
+ ;// ./packages/components/audit-framework/src/components/submit-sheet.vue?vue&type=script&lang=js
172333
+ /* harmony default export */ const packages_components_submit_sheetvue_type_script_lang_js = (packages_submit_sheetvue_type_script_lang_js);
172334
+ ;// ./packages/components/audit-framework/src/components/submit-sheet.vue
172335
+
172336
+
172337
+
172338
+ ;
172339
+
172340
+
172341
+ /* normalize component */
172342
+
172343
+ var packages_submit_sheet_component = (0,packages_componentNormalizer["default"])(
172344
+ packages_components_submit_sheetvue_type_script_lang_js,
172345
+ packages_submit_sheetvue_type_template_id_3fcc8019_scoped_true_render,
172346
+ packages_submit_sheetvue_type_template_id_3fcc8019_scoped_true_staticRenderFns,
172347
+ false,
172348
+ null,
172349
+ "3fcc8019",
172350
+ null
172351
+
172352
+ )
172353
+
172354
+ /* harmony default export */ const packages_submit_sheet = (packages_submit_sheet_component.exports);
172355
+ ;// ./node_modules/gy-vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[1]!./node_modules/gy-vue-loader/lib/index.js??gy-vue-loader-options!./packages/components/audit-framework/src/components/reject-sheet.vue?vue&type=template&id=02ac45a1&scoped=true
172356
+ var packages_reject_sheetvue_type_template_id_02ac45a1_scoped_true_render = function render() {
172357
+ var _vm = this,
172358
+ _c = _vm._self._c
172359
+ return _c("div", { staticClass: "reject-sheet" }, [
172360
+ _c(
172361
+ "div",
172362
+ { class: ["reject-sheet-item", "top"] },
172363
+ [
172364
+ _c("div", { staticClass: "reject-sheet-item-title" }, [
172365
+ _vm._v("请选择退回环节"),
172366
+ ]),
172367
+ _vm._v(" "),
172368
+ _c("van-picker", {
172369
+ attrs: {
172370
+ "show-toolbar": false,
172371
+ columns: _vm.creatNodes.map((item) => ({
172372
+ text: item.userName,
172373
+ value: item.userId,
172374
+ })),
172375
+ },
172376
+ }),
172377
+ ],
172378
+ 1
172379
+ ),
172380
+ _vm._v(" "),
172381
+ _c("div", { class: ["reject-sheet-item", "bottom"] }, [
172382
+ _c("div", { staticClass: "reject-sheet-item-title" }, [
172383
+ _vm._v("提醒方式"),
172384
+ ]),
172385
+ _vm._v(" "),
172386
+ _c(
172387
+ "div",
172388
+ { staticClass: "reject-sheet-item-content" },
172389
+ [
172390
+ _c(
172391
+ "van-checkbox-group",
172392
+ {
172393
+ attrs: { shape: "square", direction: "horizontal" },
172394
+ model: {
172395
+ value: _vm.noticeType,
172396
+ callback: function ($$v) {
172397
+ _vm.noticeType = $$v
172398
+ },
172399
+ expression: "noticeType",
172400
+ },
172401
+ },
172402
+ [
172403
+ _c(
172404
+ "van-checkbox",
172405
+ { attrs: { name: "isSendMsgParam", shape: "square" } },
172406
+ [_vm._v("短信提醒")]
172407
+ ),
172408
+ _vm._v(" "),
172409
+ _c(
172410
+ "van-checkbox",
172411
+ { attrs: { name: "isSendTaskParam", shape: "square" } },
172412
+ [_vm._v("系统消息")]
172413
+ ),
172414
+ ],
172415
+ 1
172416
+ ),
172417
+ ],
172418
+ 1
172419
+ ),
172420
+ ]),
172421
+ _vm._v(" "),
172422
+ _c(
172423
+ "div",
172424
+ { staticClass: "reject-sheet-btn", on: { click: _vm.onReject } },
172425
+ [_vm._v("确认退回")]
172426
+ ),
172427
+ ])
172428
+ }
172429
+ var packages_reject_sheetvue_type_template_id_02ac45a1_scoped_true_staticRenderFns = []
172430
+ packages_reject_sheetvue_type_template_id_02ac45a1_scoped_true_render._withStripped = true
172431
+
172432
+
172433
+ ;// ./packages/components/audit-framework/src/components/reject-sheet.vue?vue&type=template&id=02ac45a1&scoped=true
172434
+
172435
+ ;// ./node_modules/gy-vue-loader/lib/index.js??gy-vue-loader-options!./packages/components/audit-framework/src/components/reject-sheet.vue?vue&type=script&lang=js
172436
+
172437
+
172438
+ /* harmony default export */ const packages_reject_sheetvue_type_script_lang_js = ({
172439
+ props: {
172440
+ creatPersonData: {
172441
+ type: Array,
172442
+ default: () => {
172443
+ return [];
172444
+ },
172445
+ },
172446
+ },
172447
+ watch: {
172448
+ creatPersonData: {
172449
+ handler() {
172450
+ this.creatNodes = packages_lodash_lodash_default().cloneDeep(this.creatPersonData);
172451
+ },
172452
+ deep: true,
172453
+ immediate: true,
172454
+ },
172455
+ },
172456
+ data() {
172457
+ return {
172458
+ creatNodes: [], // 下一级流程节点人数
172459
+ noticeType: [], // 提醒方式
172460
+ };
172461
+ },
172462
+ methods: {
172463
+ onReject() {
172464
+ this.$emit("forReject", {
172465
+ isSendMsgParam: this.noticeType.includes("isSendMsgParam") ? "1" : "0",
172466
+ isSendTaskParam: this.noticeType.includes("isSendTaskParam")
172467
+ ? "1"
172468
+ : "0",
172469
+ });
172470
+ },
172471
+ },
172472
+ });
172473
+
172474
+ ;// ./packages/components/audit-framework/src/components/reject-sheet.vue?vue&type=script&lang=js
172475
+ /* harmony default export */ const packages_components_reject_sheetvue_type_script_lang_js = (packages_reject_sheetvue_type_script_lang_js);
172476
+ ;// ./packages/components/audit-framework/src/components/reject-sheet.vue
172477
+
172478
+
172479
+
172480
+ ;
172481
+
172482
+
172483
+ /* normalize component */
172484
+
172485
+ var packages_reject_sheet_component = (0,packages_componentNormalizer["default"])(
172486
+ packages_components_reject_sheetvue_type_script_lang_js,
172487
+ packages_reject_sheetvue_type_template_id_02ac45a1_scoped_true_render,
172488
+ packages_reject_sheetvue_type_template_id_02ac45a1_scoped_true_staticRenderFns,
172489
+ false,
172490
+ null,
172491
+ "02ac45a1",
172492
+ null
172493
+
172494
+ )
172495
+
172496
+ /* harmony default export */ const packages_reject_sheet = (packages_reject_sheet_component.exports);
172497
+ ;// ./node_modules/gy-vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[1]!./node_modules/gy-vue-loader/lib/index.js??gy-vue-loader-options!./packages/components/audit-framework/src/components/opinion-sheet.vue?vue&type=template&id=699b1f92&scoped=true
172498
+ var packages_opinion_sheetvue_type_template_id_699b1f92_scoped_true_render = function render() {
172499
+ var _vm = this,
172500
+ _c = _vm._self._c
172501
+ return _c("div", { staticClass: "opinion-sheet" }, [
172502
+ _c("div", { class: ["opinion-sheet-item", "top"] }, [
172503
+ _c(
172504
+ "div",
172505
+ _vm._l(_vm.opinionData, function (item) {
172506
+ return _c("van-cell", {
172507
+ key: item.opinionId,
172508
+ attrs: { title: item.opinionContent },
172509
+ scopedSlots: _vm._u(
172510
+ [
172511
+ {
172512
+ key: "title",
172513
+ fn: function () {
172514
+ return [
172515
+ _c(
172516
+ "span",
172517
+ {
172518
+ on: {
172519
+ click: function ($event) {
172520
+ return _vm.$emit("forOpinionChange", item)
172521
+ },
172522
+ },
172523
+ },
172524
+ [_vm._v(_vm._s(item.opinionContent))]
172525
+ ),
172526
+ ]
172527
+ },
172528
+ proxy: true,
172529
+ },
172530
+ {
172531
+ key: "right-icon",
172532
+ fn: function () {
172533
+ return [
172534
+ item.updateId != null
172535
+ ? _c("van-icon", {
172536
+ attrs: { name: "close", size: "16" },
172537
+ on: {
172538
+ click: function ($event) {
172539
+ return _vm.deleteCommonOpinionDataApi(
172540
+ item.opinionId
172541
+ )
172542
+ },
172543
+ },
172544
+ })
172545
+ : _vm._e(),
172546
+ ]
172547
+ },
172548
+ proxy: true,
172549
+ },
172550
+ ],
172551
+ null,
172552
+ true
172553
+ ),
172554
+ })
172555
+ }),
172556
+ 1
172557
+ ),
172558
+ ]),
172559
+ _vm._v(" "),
172560
+ _c(
172561
+ "div",
172562
+ { class: ["opinion-sheet-item", "bottom"] },
172563
+ [
172564
+ _c(
172565
+ "van-row",
172566
+ { attrs: { wrap: false, align: "center" } },
172567
+ [
172568
+ _c(
172569
+ "van-col",
172570
+ { attrs: { span: "20" } },
172571
+ [
172572
+ _c("van-field", {
172573
+ attrs: {
172574
+ type: "input",
172575
+ placeholder: "请输入意见",
172576
+ border: true,
172577
+ maxlength: "512",
172578
+ },
172579
+ model: {
172580
+ value: _vm.opinion,
172581
+ callback: function ($$v) {
172582
+ _vm.opinion = $$v
172583
+ },
172584
+ expression: "opinion",
172585
+ },
172586
+ }),
172587
+ ],
172588
+ 1
172589
+ ),
172590
+ _vm._v(" "),
172591
+ _c(
172592
+ "van-col",
172593
+ { attrs: { span: "4" } },
172594
+ [
172595
+ _c(
172596
+ "van-button",
172597
+ {
172598
+ attrs: { type: "primary", size: "large", color: "#0982ff" },
172599
+ on: { click: _vm.forCommonOpinionSave },
172600
+ },
172601
+ [_vm._v("添加")]
172602
+ ),
172603
+ ],
172604
+ 1
172605
+ ),
172606
+ ],
172607
+ 1
172608
+ ),
172609
+ ],
172610
+ 1
172611
+ ),
172612
+ ])
172613
+ }
172614
+ var packages_opinion_sheetvue_type_template_id_699b1f92_scoped_true_staticRenderFns = []
172615
+ packages_opinion_sheetvue_type_template_id_699b1f92_scoped_true_render._withStripped = true
172616
+
172617
+
172618
+ ;// ./packages/components/audit-framework/src/components/opinion-sheet.vue?vue&type=template&id=699b1f92&scoped=true
172619
+
172620
+ ;// ./node_modules/gy-vue-loader/lib/index.js??gy-vue-loader-options!./packages/components/audit-framework/src/components/opinion-sheet.vue?vue&type=script&lang=js
172621
+
172622
+
172623
+ /* harmony default export */ const packages_opinion_sheetvue_type_script_lang_js = ({
172624
+ props: {
172625
+ commonApi: {
172626
+ type: Object,
172627
+ default: () => {},
172628
+ },
172629
+ },
172630
+ data() {
172631
+ return {
172632
+ opinionData: [], // 常用意见数组
172633
+ opinion: "", // 输入的常用意见
172634
+ };
172635
+ },
172636
+ created() {
172637
+ this.getCommonOpinionData();
172638
+ },
172639
+ methods: {
172640
+ // 获取常用意见
172641
+ async getCommonOpinionData() {
172642
+ try {
172643
+ const { data } = await this.commonApi.getCommonOpinionData({
172644
+ opinionType: "",
172645
+ });
172646
+ console.log("获取到的常用意见是", data);
172647
+ this.opinionData = data;
172648
+ } catch (error) {
172649
+ console.error(error);
172650
+ }
172651
+ },
172652
+ // 删除常用意见
172653
+ async deleteCommonOpinionDataApi(opinionId) {
172654
+ try {
172655
+ await this.commonApi.deleteCommonOpinionDataApi({
172656
+ opinionId: opinionId,
172657
+ });
172658
+ this.$toast.success("删除成功");
172659
+ this.getCommonOpinionData();
172660
+ } catch (error) {
172661
+ this.$toast.success("删除失败,请重试");
172662
+ console.error(error);
172663
+ }
172664
+ },
172665
+ // 保存常用意见
172666
+ async forCommonOpinionSave() {
172667
+ try {
172668
+ await this.commonApi.saveCommonOpinionDataApi({
172669
+ opinionContent: this.opinion,
172670
+ });
172671
+ this.$toast.success("添加成功");
172672
+ this.getCommonOpinionData();
172673
+ } catch (error) {
172674
+ this.$toast.success("添加失败,请重试");
172675
+ console.error(error);
172676
+ }
172677
+ },
172678
+ },
172679
+ });
172680
+
172681
+ ;// ./packages/components/audit-framework/src/components/opinion-sheet.vue?vue&type=script&lang=js
172682
+ /* harmony default export */ const packages_components_opinion_sheetvue_type_script_lang_js = (packages_opinion_sheetvue_type_script_lang_js);
172683
+ ;// ./packages/components/audit-framework/src/components/opinion-sheet.vue
172684
+
172685
+
172686
+
172687
+ ;
172688
+
172689
+
172690
+ /* normalize component */
172691
+
172692
+ var packages_opinion_sheet_component = (0,packages_componentNormalizer["default"])(
172693
+ packages_components_opinion_sheetvue_type_script_lang_js,
172694
+ packages_opinion_sheetvue_type_template_id_699b1f92_scoped_true_render,
172695
+ packages_opinion_sheetvue_type_template_id_699b1f92_scoped_true_staticRenderFns,
172696
+ false,
172697
+ null,
172698
+ "699b1f92",
172699
+ null
172700
+
172701
+ )
172702
+
172703
+ /* harmony default export */ const packages_opinion_sheet = (packages_opinion_sheet_component.exports);
172704
+ ;// ./node_modules/gy-vue-loader/lib/index.js??gy-vue-loader-options!./packages/components/audit-framework/src/components/audit-box.vue?vue&type=script&lang=js
172705
+
172706
+
172707
+
172708
+
172709
+
172710
+ /* harmony default export */ const packages_audit_boxvue_type_script_lang_js = ({
172711
+ components: {
172712
+ SubmitSheet: packages_submit_sheet,
172713
+ RejectSheet: packages_reject_sheet,
172714
+ OpinionSheet: packages_opinion_sheet,
172715
+ },
172716
+ emits: ["onSubmit", "onSave", "onReject"],
172717
+ props: {
172718
+ audit: {
172719
+ type: Boolean,
172720
+ default: false,
172721
+ },
172722
+ //是否禁用驳回
172723
+ rejectDisabled: {
172724
+ type: Boolean,
172725
+ default: false,
172726
+ },
172727
+ //是否禁用通过
172728
+ confirmDisabled: {
172729
+ type: Boolean,
172730
+ default: false,
172731
+ },
172732
+ //是否禁用保存
172733
+ saveDisabled: {
172734
+ type: Boolean,
172735
+ default: false,
172736
+ },
172737
+ //自定义按钮名字
172738
+ confirmText: {
172739
+ type: String,
172740
+ default: "提交",
172741
+ },
172742
+ saveText: {
172743
+ type: String,
172744
+ default: "保存",
172745
+ },
172746
+ rejectText: {
172747
+ type: String,
172748
+ default: "退回",
172749
+ },
172750
+ opinionApi: {
172751
+ type: Function,
172752
+ require: false,
172753
+ },
172754
+ creatPersonData: {
172755
+ type: Array,
172756
+ default: () => [],
172757
+ },
172758
+ nextNode: {
172759
+ type: Object,
172760
+ default: () => {},
172761
+ },
172762
+ commonApi: {
172763
+ type: Object,
172764
+ default: () => {},
172765
+ },
172766
+ dafalutOpinion: {
172767
+ type: String,
172768
+ default: "",
172769
+ },
172770
+ },
172771
+ data() {
172772
+ return {
172773
+ showCheckOpinion: false,
172774
+ showSubmitSheet: false,
172775
+ showRejectSheet: false,
172776
+ text: "",
172777
+ status: "",
172778
+ type: "",
172779
+ opinion: "",
172780
+ opinionData: [],
172781
+ opinionDataSubmit: [],
172782
+ opinionDataReject: [],
172783
+ };
172784
+ },
172785
+ watch: {
172786
+ dafalutOpinion: {
172787
+ handler(val) {
172788
+ if (val != "") {
172789
+ this.opinion = val;
172790
+ }
172791
+ },
172792
+ },
172793
+ },
172794
+ methods: {
172795
+ forSubmit(noticeType, checkPerson) {
172796
+ if (this.confirmDisabled) {
172797
+ return;
172798
+ }
172799
+ this.showSubmitSheet = false;
172800
+ this.$emit("onSubmit", this.opinion, noticeType, checkPerson);
172801
+ },
172802
+ forSave() {
172803
+ if (this.saveDisabled) {
172804
+ return;
172805
+ }
172806
+ this.$emit("onSave", this.opinion);
172807
+ },
172808
+ forReject(noticeType) {
172809
+ if (this.rejectDisabled) {
172810
+ return;
172811
+ }
172812
+ this.showRejectSheet = false;
172813
+ this.$emit("onReject", this.opinion, noticeType);
172814
+ },
172815
+ forOpinionChange(item) {
172816
+ this.showCheckOpinion = false;
172817
+ this.opinion = item.opinionContent;
172818
+ },
172819
+ },
172820
+ });
172821
+
172822
+ ;// ./packages/components/audit-framework/src/components/audit-box.vue?vue&type=script&lang=js
172823
+ /* harmony default export */ const packages_components_audit_boxvue_type_script_lang_js = (packages_audit_boxvue_type_script_lang_js);
172824
+ ;// ./packages/components/audit-framework/src/components/audit-box.vue
172825
+
172826
+
172827
+
172828
+ ;
172829
+
172830
+
172831
+ /* normalize component */
172832
+
172833
+ var packages_audit_box_component = (0,packages_componentNormalizer["default"])(
172834
+ packages_components_audit_boxvue_type_script_lang_js,
172835
+ packages_audit_boxvue_type_template_id_ef661cfc_scoped_true_render,
172836
+ packages_audit_boxvue_type_template_id_ef661cfc_scoped_true_staticRenderFns,
172837
+ false,
172838
+ null,
172839
+ "ef661cfc",
172840
+ null
172841
+
172842
+ )
172843
+
172844
+ /* harmony default export */ const packages_components_audit_box = (packages_audit_box_component.exports);
172845
+ ;// ./node_modules/gy-vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[1]!./node_modules/gy-vue-loader/lib/index.js??gy-vue-loader-options!./packages/components/audit-framework/src/components/flow-box.vue?vue&type=template&id=01a2f9cf&scoped=true
172846
+ var packages_flow_boxvue_type_template_id_01a2f9cf_scoped_true_render = function render() {
172847
+ var _vm = this,
172848
+ _c = _vm._self._c
172849
+ return _c(
172850
+ "div",
172851
+ { staticClass: "step-box" },
172852
+ [
172853
+ _vm.showType == "page"
172854
+ ? _c(
172855
+ "van-steps",
172856
+ {
172857
+ attrs: {
172858
+ direction: "vertical",
172859
+ active: _vm.activeIndex,
172860
+ "active-color": "#488aff",
172861
+ },
172862
+ },
172863
+ _vm._l(_vm.logList, function (item) {
172864
+ return _c("van-step", { key: item.key }, [
172865
+ _c("div", { staticClass: "step-item" }, [
172866
+ _c("div", { staticClass: "step-item-top" }, [
172867
+ _c("div", { staticClass: "step-item-title" }, [
172868
+ _vm._v(
172869
+ "\n " +
172870
+ _vm._s(item.flowNodeName) +
172871
+ "\n "
172872
+ ),
172873
+ ]),
172874
+ _vm._v(" "),
172875
+ _c("div", { staticClass: "step-item-time" }, [
172876
+ _vm._v(
172877
+ "\n " +
172878
+ _vm._s(_vm.formatServerTime(item.dealTime)) +
172879
+ "\n "
172880
+ ),
172881
+ ]),
172882
+ ]),
172883
+ _vm._v(" "),
172884
+ item.isShow != "1"
172885
+ ? _c("div", { staticClass: "step-item-content" }, [
172886
+ _c("p", [_vm._v(_vm._s(item.dealOpinion))]),
172887
+ ])
172888
+ : _vm._e(),
172889
+ _vm._v(" "),
172890
+ _c("div", { staticClass: "step-item-bottm" }, [
172891
+ _vm._v(
172892
+ "\n " + _vm._s(item.dealUserName) + "\n "
172893
+ ),
172894
+ ]),
172895
+ ]),
172896
+ ])
172897
+ }),
172898
+ 1
172899
+ )
172900
+ : _vm._e(),
172901
+ _vm._v(" "),
172902
+ _vm.showType == "modal"
172903
+ ? _c(
172904
+ "div",
172905
+ _vm._l(_vm.data, function (item) {
172906
+ return _c("span", { key: item.key }, [
172907
+ _c("div", { staticClass: "auditform-step-item" }, [
172908
+ _c("div", { staticClass: "auditform-step-item-title" }, [
172909
+ _vm._v(
172910
+ "\n " +
172911
+ _vm._s(item.flowNodeName + "意见") +
172912
+ "\n "
172913
+ ),
172914
+ ]),
172915
+ _vm._v(" "),
172916
+ _c("div", { staticClass: "auditform-step-item-content" }, [
172917
+ _c("p", [_vm._v(_vm._s(item.dealOpinion))]),
172918
+ ]),
172919
+ _vm._v(" "),
172920
+ _c("div", { staticClass: "auditform-step-item-bottm" }, [
172921
+ _c("div", [_vm._v(_vm._s(item.dealUserName))]),
172922
+ _vm._v("\n    \n "),
172923
+ _c("div", [
172924
+ _vm._v(
172925
+ _vm._s(_vm.auditFormFormatServerTime(item.dealTime))
172926
+ ),
172927
+ ]),
172928
+ ]),
172929
+ ]),
172930
+ ])
172931
+ }),
172932
+ 0
172933
+ )
172934
+ : _vm._e(),
172935
+ ],
172936
+ 1
172937
+ )
172938
+ }
172939
+ var packages_flow_boxvue_type_template_id_01a2f9cf_scoped_true_staticRenderFns = []
172940
+ packages_flow_boxvue_type_template_id_01a2f9cf_scoped_true_render._withStripped = true
172941
+
172942
+
172943
+ ;// ./packages/components/audit-framework/src/components/flow-box.vue?vue&type=template&id=01a2f9cf&scoped=true
172944
+
172945
+ ;// ./node_modules/gy-vue-loader/lib/index.js??gy-vue-loader-options!./packages/components/audit-framework/src/components/flow-box.vue?vue&type=script&lang=js
172946
+
172947
+
172948
+
172949
+
172950
+ /* harmony default export */ const packages_flow_boxvue_type_script_lang_js = ({
172951
+ props: {
172952
+ data: {
172953
+ type: Array,
172954
+ default: () => {
172955
+ return [];
172956
+ },
172957
+ },
172958
+ showType: {
172959
+ type: String,
172960
+ default: "modal",
172961
+ },
172962
+ },
172963
+ data() {
172964
+ return {
172965
+ logList: [],
172966
+ activeIndex: 0,
172967
+ };
172968
+ },
172969
+ created() {
172970
+ console.log("走初始化了??");
172971
+ if (this.showType == "page") {
172972
+ this.logList = packages_lodash_lodash_default().cloneDeep(this.data).reverse();
172973
+ this.activeIndex = 0;
172974
+ for (let i = 0; i < this.logList.length; i++) {
172975
+ if (this.logList[i]["dealOpinion"] == null) {
172976
+ this.activeIndex = i;
172977
+ return;
172978
+ }
172979
+ }
172980
+ }
172981
+ },
172982
+ watch: {
172983
+ data: {
172984
+ handler() {
172985
+ if (this.showType == "page") {
172986
+ this.logList = packages_lodash_lodash_default().cloneDeep(this.data).reverse();
172987
+ this.activeIndex = 0;
172988
+ for (let i = 0; i < this.logList.length; i++) {
172989
+ if (this.logList[i]["dealOpinion"] == null) {
172990
+ this.activeIndex = i;
172991
+ return;
172992
+ }
172993
+ }
172994
+ }
172995
+ },
172996
+ deep: true,
172997
+ },
172998
+ },
172999
+ methods: {
173000
+ formatServerTime(timeString) {
173001
+ if (typeof timeString !== "string" || !packages_dayjs_min_default()(timeString).isValid()) {
173002
+ return timeString;
173003
+ }
173004
+ switch (timeString.length) {
173005
+ case 8: {
173006
+ return packages_dayjs_min_default()(timeString, "YYYYMMDD").format("YYYY.MM.DD");
173007
+ }
173008
+ case 14: {
173009
+ return packages_dayjs_min_default()(timeString, "YYYYMMDDHHmmss").format("MM-DD HH:mm");
173010
+ }
173011
+ default: {
173012
+ return timeString;
173013
+ }
173014
+ }
173015
+ },
173016
+ auditFormFormatServerTime(timeString) {
173017
+ if (typeof timeString !== "string" || !packages_dayjs_min_default()(timeString).isValid()) {
173018
+ return timeString;
173019
+ }
173020
+ switch (timeString.length) {
173021
+ case 8: {
173022
+ return packages_dayjs_min_default()(timeString, "YYYYMMDD").format("YYYY.MM.DD");
173023
+ }
173024
+ case 14: {
173025
+ return packages_dayjs_min_default()(timeString, "YYYYMMDDHHmmss").format("YYYY-MM-DD");
173026
+ }
173027
+ default: {
173028
+ return timeString;
173029
+ }
173030
+ }
173031
+ },
173032
+ },
173033
+ });
173034
+
173035
+ ;// ./packages/components/audit-framework/src/components/flow-box.vue?vue&type=script&lang=js
173036
+ /* harmony default export */ const packages_components_flow_boxvue_type_script_lang_js = (packages_flow_boxvue_type_script_lang_js);
173037
+ ;// ./packages/components/audit-framework/src/components/flow-box.vue
173038
+
173039
+
173040
+
173041
+ ;
173042
+
173043
+
173044
+ /* normalize component */
173045
+
173046
+ var packages_flow_box_component = (0,packages_componentNormalizer["default"])(
173047
+ packages_components_flow_boxvue_type_script_lang_js,
173048
+ packages_flow_boxvue_type_template_id_01a2f9cf_scoped_true_render,
173049
+ packages_flow_boxvue_type_template_id_01a2f9cf_scoped_true_staticRenderFns,
173050
+ false,
173051
+ null,
173052
+ "01a2f9cf",
173053
+ null
173054
+
173055
+ )
173056
+
173057
+ /* harmony default export */ const packages_components_flow_box = (packages_flow_box_component.exports);
173058
+ ;// ./node_modules/gy-vue-loader/lib/index.js??gy-vue-loader-options!./packages/components/audit-framework/src/index.vue?vue&type=script&lang=js
173059
+
173060
+
173061
+ // 为了不营销之前的组件显示,因此下面部分组件均为复制组件
173062
+
173063
+
173064
+
173065
+ /* harmony default export */ const packages_audit_framework_srcvue_type_script_lang_js = ({
173066
+ name: "LamboMAuditFramework",
173067
+ components: {
173068
+ LamboMListBox: packages_components_list_box,
173069
+ LamboMAuditBox: packages_components_audit_box,
173070
+ LamboMFlowBox: packages_components_flow_box,
173071
+ },
173072
+ props: {
173073
+ params: {
173074
+ type: Object,
173075
+ default: () => {
173076
+ return {};
173077
+ },
173078
+ },
173079
+ },
173080
+ data() {
173081
+ return {
173082
+ isRefresh: true,
173083
+ loading: false,
173084
+ baseInfoChecked: true,
173085
+ auditLogChecked: true,
173086
+ collapseActives: ["baseInfo", "auditLog"], // 折叠面板激活项
173087
+ active: "auditForm", // 当前激活的tab
173088
+ auditFormTitle: "", // 审核单名称
173089
+ auditFormBaseInfo: [], // 审核单内容
173090
+ auditFormLog: [], // 审核日志
173091
+ creatPersonData: [], // 创建人
173092
+ dafalutOpinion: "", // 当前和已保存的个人意见
173093
+ allFlowData: [], // 全流程
173094
+ currentFlowData: [], // 当前流程
173095
+ nextNode: {
173096
+ nextNodeData: [], // 下级审核人
173097
+ nextNodeName: "", // 下级节点名称
173098
+ },
173099
+ };
173100
+ },
173101
+ async mounted() {
173102
+ await this.getFlowCreatPersonData();
173103
+ await this.getFlowNextNodeData();
173104
+ await this.getPersonalOpinionData();
173105
+ await this.getFlows();
173106
+ },
173107
+ watch: {
173108
+ params: {
173109
+ handler() {
173110
+ this.auditFormTitle = packages_lodash_lodash_default().cloneDeep(this.params.auditFormTitle);
173111
+ this.auditFormBaseInfo = packages_lodash_lodash_default().cloneDeep(this.params.auditFormBaseInfo);
173112
+ this.auditFormLog = packages_lodash_lodash_default().cloneDeep(this.params.auditFormLog);
173113
+ },
173114
+ deep: true,
173115
+ immediate: true,
173116
+ },
173117
+ baseInfoChecked: {
173118
+ handler() {
173119
+ this.setCollapseActive();
173120
+ },
173121
+ },
173122
+ auditLogChecked: {
173123
+ handler() {
173124
+ this.setCollapseActive();
173125
+ },
173126
+ },
173127
+ },
173128
+ methods: {
173129
+ setCollapseActive() {
173130
+ this.isRefresh = false;
173131
+ this.collapseActives = [];
173132
+ if (this.baseInfoChecked) {
173133
+ this.collapseActives.push("baseInfo");
173134
+ }
173135
+ if (this.auditLogChecked) {
173136
+ this.collapseActives.push("auditLog");
173137
+ }
173138
+ this.$nextTick(() => {
173139
+ this.isRefresh = true;
173140
+ });
173141
+ },
173142
+ // 新增方法,查询单据创建人
173143
+ async getFlowCreatPersonData() {
173144
+ try {
173145
+ const { data } = await this.params.commonApi.getFlowCreatPersonDataApi({
173146
+ busiPk: this.params.commonParams.busiPk,
173147
+ flowId: this.params.commonParams.flowId,
173148
+ });
173149
+ this.creatPersonData = data;
173150
+ } catch (error) {
173151
+ console.error(error);
173152
+ }
173153
+ },
173154
+ // 新增方法,查询下级审核人
173155
+ async getFlowNextNodeData() {
173156
+ const { data } = await this.params.commonApi.getFlowNextNodeDataApi({
173157
+ busiPk: this.params.commonParams.busiPk,
173158
+ currentStatus: this.params.commonParams.currentStatus,
173159
+ flowId: this.params.commonParams.flowId,
173160
+ organId: this.params.commonParams.organId,
173161
+ });
173162
+ if (data.userTrees && data.userTrees.length > 0) {
173163
+ this.nextNodeData = this.getUpperLevelOfLeafNode(data.userTrees).map(
173164
+ (item) => {
173165
+ return {
173166
+ userId: item.id,
173167
+ userName: item.title,
173168
+ };
173169
+ }
173170
+ );
173171
+ }
173172
+ this.nextNode = {
173173
+ nextNodeData: this.nextNodeData,
173174
+ nextNodeName: data.nextNodeName || "",
173175
+ };
173176
+ },
173177
+ // 新增方法,保存个人意见
173178
+ async savePersonalOpinionData(opinion) {
173179
+ this.loading = true;
173180
+ try {
173181
+ await this.params.commonApi.savePersonalOpinionDataApi({
173182
+ busiPk: this.params.commonParams.busiPk,
173183
+ currentStatus: this.params.commonParams.currentStatus,
173184
+ opinionContent: opinion,
173185
+ });
173186
+ this.$toast.success("保存成功");
173187
+ this.loading = false;
173188
+ } catch (error) {
173189
+ this.$toast.success("保存失败");
173190
+ this.loading = false;
173191
+ console.error(error);
173192
+ }
173193
+ },
173194
+ // 新增方法,查询个人意见
173195
+ async getPersonalOpinionData() {
173196
+ try {
173197
+ const { data } = await this.params.commonApi.getPersonalOpinionDataApi({
173198
+ busiPk: this.params.commonParams.busiPk,
173199
+ currentStatus: this.params.commonParams.currentStatus,
173200
+ });
173201
+ this.dafalutOpinion = data.opinionContent || "";
173202
+ } catch (error) {
173203
+ console.error(error);
173204
+ }
173205
+ },
173206
+ // 查询全流程和截至到当前流程
173207
+ async getFlows() {
173208
+ try {
173209
+ const allFlowData = await this.params.commonApi.getAuditLogData({
173210
+ busiPk: this.params.commonParams.busiPk,
173211
+ flowId: this.params.commonParams.flowId,
173212
+ type: "1",
173213
+ idDelete: "0",
173214
+ });
173215
+ this.allFlowData = allFlowData.data;
173216
+ const currentFlowData = await this.params.commonApi.getAuditLogData({
173217
+ busiPk: this.params.commonParams.busiPk,
173218
+ flowId: this.params.commonParams.flowId,
173219
+ type: "0",
173220
+ idDelete: "0",
173221
+ order: "desc",
173222
+ });
173223
+ this.currentFlowData = currentFlowData.data;
173224
+ } catch (error) {
173225
+ console.error(error);
173226
+ }
173227
+ },
173228
+
173229
+ // 获取最下级叶子节点
173230
+ getUpperLevelOfLeafNode(nodes) {
173231
+ let result = [];
173232
+ nodes.forEach((node) => {
173233
+ if (node.children && node.children.length === 0) {
173234
+ // 找到最底层叶子节点的上一级,记录其 children
173235
+ result.push(node);
173236
+ } else if (node.children && node.children.length > 0) {
173237
+ // 如果当前节点有子节点,则递归查找子节点
173238
+ const parentChildren = this.getUpperLevelOfLeafNode(node.children);
173239
+ result = result.concat(parentChildren);
173240
+ }
173241
+ });
173242
+ return result;
173243
+ },
173244
+ },
173245
+ });
173246
+
173247
+ ;// ./packages/components/audit-framework/src/index.vue?vue&type=script&lang=js
173248
+ /* harmony default export */ const packages_components_audit_framework_srcvue_type_script_lang_js = (packages_audit_framework_srcvue_type_script_lang_js);
173249
+ ;// ./packages/components/audit-framework/src/index.vue
173250
+
173251
+
173252
+
173253
+ ;
173254
+
173255
+
173256
+ /* normalize component */
173257
+
173258
+ var packages_audit_framework_src_component = (0,packages_componentNormalizer["default"])(
173259
+ packages_components_audit_framework_srcvue_type_script_lang_js,
173260
+ packages_srcvue_type_template_id_0be776b0_scoped_true_render,
173261
+ packages_srcvue_type_template_id_0be776b0_scoped_true_staticRenderFns,
173262
+ false,
173263
+ null,
173264
+ "0be776b0",
173265
+ null
173266
+
173267
+ )
173268
+
173269
+ /* harmony default export */ const packages_audit_framework_src = (packages_audit_framework_src_component.exports);
173270
+ ;// ./packages/components/audit-framework/index.js
173271
+
173272
+ /* harmony default export */ const packages_audit_framework = (packages_audit_framework_src);
173273
+
171323
173274
  // EXTERNAL MODULE: ./node_modules/ag-grid-community/dist/ag-grid-community.auto.esm.js
171324
173275
  var packages_ag_grid_community_auto_esm = __webpack_require__(4436);
171325
173276
  ;// ./node_modules/ag-grid-enterprise/dist/ag-grid-enterprise.auto.esm.js
@@ -255693,6 +257644,7 @@ const packages_getThemeVarByKey = (themeKey = 'default',varKey) => {
255693
257644
 
255694
257645
 
255695
257646
 
257647
+
255696
257648
  const packages_components = {
255697
257649
  // 基础组件
255698
257650
  SchemaForm: packages_schema_form,
@@ -255719,6 +257671,7 @@ const packages_components = {
255719
257671
  LamboActionSheet: packages_packages_action_sheet,
255720
257672
  LamboSingleSelect: packages_single_select,
255721
257673
  LamboMultiSelect: packages_multi_select,
257674
+ LamboMAuditFramework: packages_audit_framework,
255722
257675
  LamboTreeSelect: packages_packages_tree_select,
255723
257676
  // 展示组件
255724
257677
  LamboButtonGroup: packages_button_group["default"],