cnhis-design-vue 3.0.3 → 3.0.6
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.
- package/CHANGELOG.md +22 -0
- package/env.d.ts +0 -2
- package/es/big-table/index.css +12 -206
- package/es/big-table/index.js +130 -502
- package/es/button-print/index.css +12 -206
- package/es/button-print/index.js +30 -128
- package/es/drag-layout/index.css +12 -206
- package/es/field-set/index.css +1044 -0
- package/es/field-set/index.js +351 -0
- package/es/grid/index.css +252 -248
- package/es/index.css +40 -36
- package/es/index.js +145 -274
- package/package.json +1 -1
- package/packages/big-table/index.ts +0 -5
- package/packages/big-table/src/BigTable.vue +9 -13
- package/packages/big-table/src/assets/iconfont/iconfont.less +3 -2
- package/packages/big-table/src/assets/style/table-global.less +4 -0
- package/packages/big-table/src/bigTableEmits.ts +1 -2
- package/packages/big-table/src/components/edit-form/edit-date.vue +42 -0
- package/packages/big-table/src/components/edit-form/edit-input.vue +2 -2
- package/packages/big-table/src/components/edit-form/edit-select.vue +12 -3
- package/packages/big-table/src/hooks/useEdit.ts +3 -3
- package/packages/button-print/src/ButtonPrint.vue +39 -128
- package/packages/field-set/index.ts +15 -0
- package/packages/{big-table → field-set}/src/FieldSet.vue +0 -6
- package/packages/index.ts +3 -0
|
@@ -1,201 +1,3 @@
|
|
|
1
|
-
ul[data-v-5cd39776] {
|
|
2
|
-
margin: 0;
|
|
3
|
-
padding: 0;
|
|
4
|
-
}
|
|
5
|
-
.fields-set-content[data-v-5cd39776] {
|
|
6
|
-
height: 100%;
|
|
7
|
-
display: -webkit-box;
|
|
8
|
-
display: -webkit-flex;
|
|
9
|
-
display: -ms-flexbox;
|
|
10
|
-
display: flex;
|
|
11
|
-
-webkit-box-orient: vertical;
|
|
12
|
-
-webkit-box-direction: normal;
|
|
13
|
-
-webkit-flex-direction: column;
|
|
14
|
-
-ms-flex-direction: column;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
}
|
|
18
|
-
.fields-set-content[data-v-5cd39776] .fields-table[data-v-5cd39776] {
|
|
19
|
-
-webkit-box-flex: 1;
|
|
20
|
-
-webkit-flex: 1;
|
|
21
|
-
-ms-flex: 1;
|
|
22
|
-
flex: 1;
|
|
23
|
-
display: -webkit-box;
|
|
24
|
-
display: -webkit-flex;
|
|
25
|
-
display: -ms-flexbox;
|
|
26
|
-
display: flex;
|
|
27
|
-
-webkit-box-orient: vertical;
|
|
28
|
-
-webkit-box-direction: normal;
|
|
29
|
-
-webkit-flex-direction: column;
|
|
30
|
-
-ms-flex-direction: column;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
overflow: auto;
|
|
33
|
-
}
|
|
34
|
-
.setting-view[data-v-5cd39776] {
|
|
35
|
-
height: 100%;
|
|
36
|
-
position: relative;
|
|
37
|
-
}
|
|
38
|
-
.setting-view[data-v-5cd39776] [data-v-5cd39776] .n-spin-container {
|
|
39
|
-
width: 100%;
|
|
40
|
-
height: 100%;
|
|
41
|
-
}
|
|
42
|
-
.setting-view[data-v-5cd39776] [data-v-5cd39776] .n-spin-content {
|
|
43
|
-
height: 100%;
|
|
44
|
-
}
|
|
45
|
-
.setting-view[data-v-5cd39776] .setting-title[data-v-5cd39776] {
|
|
46
|
-
background: #f2f2f4;
|
|
47
|
-
border: 1px solid #f2f2f2;
|
|
48
|
-
height: 52px;
|
|
49
|
-
line-height: 52px;
|
|
50
|
-
}
|
|
51
|
-
.setting-view[data-v-5cd39776] .setting-title[data-v-5cd39776] span[data-v-5cd39776] {
|
|
52
|
-
display: inline-block;
|
|
53
|
-
}
|
|
54
|
-
.setting-view[data-v-5cd39776] .setting-title[data-v-5cd39776].seting-title-api[data-v-5cd39776] .width-large[data-v-5cd39776] {
|
|
55
|
-
width: 15%;
|
|
56
|
-
}
|
|
57
|
-
.setting-view[data-v-5cd39776] .set-show[data-v-5cd39776] {
|
|
58
|
-
min-height: 100px;
|
|
59
|
-
overflow-y: auto;
|
|
60
|
-
}
|
|
61
|
-
.setting-view[data-v-5cd39776] .set-show[data-v-5cd39776].set-show-api[data-v-5cd39776] .width-large[data-v-5cd39776] {
|
|
62
|
-
width: 15%;
|
|
63
|
-
}
|
|
64
|
-
.setting-view[data-v-5cd39776] .set-show[data-v-5cd39776] .left-style.sortable-chosen[data-v-5cd39776] {
|
|
65
|
-
background: #fafafa;
|
|
66
|
-
-webkit-box-shadow: 0px 0px 10px 0px #d5d5d5;
|
|
67
|
-
box-shadow: 0px 0px 10px 0px #d5d5d5;
|
|
68
|
-
}
|
|
69
|
-
.setting-view[data-v-5cd39776] .set-show[data-v-5cd39776] li[data-v-5cd39776] {
|
|
70
|
-
padding: 5px 0;
|
|
71
|
-
display: -webkit-box;
|
|
72
|
-
display: -webkit-flex;
|
|
73
|
-
display: -ms-flexbox;
|
|
74
|
-
display: flex;
|
|
75
|
-
-webkit-box-align: center;
|
|
76
|
-
-webkit-align-items: center;
|
|
77
|
-
-ms-flex-align: center;
|
|
78
|
-
align-items: center;
|
|
79
|
-
border-bottom: 1px solid #e8e8e8;
|
|
80
|
-
height: 52px;
|
|
81
|
-
line-height: 52px;
|
|
82
|
-
}
|
|
83
|
-
.setting-view[data-v-5cd39776] .set-show[data-v-5cd39776] .alias-style[data-v-5cd39776] {
|
|
84
|
-
outline: none;
|
|
85
|
-
border-radius: 4px 4px 4px 4px;
|
|
86
|
-
border: solid 1px #d5d5d5;
|
|
87
|
-
height: 32px;
|
|
88
|
-
text-indent: 16px;
|
|
89
|
-
color: #38454f;
|
|
90
|
-
width: 100%;
|
|
91
|
-
}
|
|
92
|
-
.setting-view[data-v-5cd39776] .set-show[data-v-5cd39776] .is-sort-style[data-v-5cd39776] {
|
|
93
|
-
outline: none;
|
|
94
|
-
border-radius: 4px 4px 4px 4px;
|
|
95
|
-
border: solid 1px #d5d5d5;
|
|
96
|
-
height: 32px;
|
|
97
|
-
text-indent: 6px;
|
|
98
|
-
color: #38454f;
|
|
99
|
-
width: 87px;
|
|
100
|
-
margin-right: 5px;
|
|
101
|
-
}
|
|
102
|
-
.setting-view[data-v-5cd39776] .set-show[data-v-5cd39776] .is-sort-style[data-v-5cd39776][data-v-5cd39776]:disabled {
|
|
103
|
-
cursor: not-allowed;
|
|
104
|
-
background: #f5f5f5;
|
|
105
|
-
}
|
|
106
|
-
.setting-view[data-v-5cd39776] .set-show[data-v-5cd39776] .col-width-style[data-v-5cd39776] {
|
|
107
|
-
width: 70px;
|
|
108
|
-
}
|
|
109
|
-
.setting-view[data-v-5cd39776] .set-show[data-v-5cd39776] .title-item[data-v-5cd39776] {
|
|
110
|
-
display: -webkit-inline-box;
|
|
111
|
-
display: -webkit-inline-flex;
|
|
112
|
-
display: -ms-inline-flexbox;
|
|
113
|
-
display: inline-flex;
|
|
114
|
-
-webkit-box-pack: start;
|
|
115
|
-
-webkit-justify-content: flex-start;
|
|
116
|
-
-ms-flex-pack: start;
|
|
117
|
-
justify-content: flex-start;
|
|
118
|
-
-webkit-box-align: center;
|
|
119
|
-
-webkit-align-items: center;
|
|
120
|
-
-ms-flex-align: center;
|
|
121
|
-
align-items: center;
|
|
122
|
-
text-align: left;
|
|
123
|
-
}
|
|
124
|
-
.setting-view[data-v-5cd39776] .set-show[data-v-5cd39776] .title-item[data-v-5cd39776] > span[data-v-5cd39776] {
|
|
125
|
-
display: inline-block;
|
|
126
|
-
max-width: calc(100% - 20px);
|
|
127
|
-
overflow: hidden;
|
|
128
|
-
white-space: nowrap;
|
|
129
|
-
text-overflow: ellipsis;
|
|
130
|
-
}
|
|
131
|
-
.setting-view[data-v-5cd39776] .alias-style[data-v-5cd39776] {
|
|
132
|
-
outline: none;
|
|
133
|
-
border-radius: 4px 4px 4px 4px;
|
|
134
|
-
border: solid 1px #d4dee5;
|
|
135
|
-
height: 32px;
|
|
136
|
-
text-indent: 16px;
|
|
137
|
-
color: #38454f;
|
|
138
|
-
}
|
|
139
|
-
.setting-view[data-v-5cd39776] .btn-operate[data-v-5cd39776] {
|
|
140
|
-
border-top: 1px solid #d5d5d5;
|
|
141
|
-
padding: 12px 0 12px;
|
|
142
|
-
}
|
|
143
|
-
.setting-view[data-v-5cd39776] .width-show[data-v-5cd39776] {
|
|
144
|
-
display: inline-block;
|
|
145
|
-
width: 10%;
|
|
146
|
-
overflow: hidden;
|
|
147
|
-
white-space: nowrap;
|
|
148
|
-
text-overflow: ellipsis;
|
|
149
|
-
}
|
|
150
|
-
.setting-view[data-v-5cd39776] .drag-icon-wrap[data-v-5cd39776] {
|
|
151
|
-
width: 5% !important;
|
|
152
|
-
cursor: pointer;
|
|
153
|
-
text-align: center;
|
|
154
|
-
}
|
|
155
|
-
.setting-view[data-v-5cd39776] .width-showed[data-v-5cd39776] {
|
|
156
|
-
display: inline-block;
|
|
157
|
-
width: 15%;
|
|
158
|
-
overflow: hidden;
|
|
159
|
-
white-space: nowrap;
|
|
160
|
-
text-overflow: ellipsis;
|
|
161
|
-
}
|
|
162
|
-
.setting-view[data-v-5cd39776] .width-showed[data-v-5cd39776] select[data-v-5cd39776] {
|
|
163
|
-
width: 90% !important;
|
|
164
|
-
}
|
|
165
|
-
.setting-view[data-v-5cd39776] .width-word[data-v-5cd39776] {
|
|
166
|
-
display: inline-block;
|
|
167
|
-
width: 20%;
|
|
168
|
-
line-height: 52px;
|
|
169
|
-
overflow: hidden;
|
|
170
|
-
white-space: nowrap;
|
|
171
|
-
}
|
|
172
|
-
.setting-view[data-v-5cd39776] .width-word[data-v-5cd39776] input[data-v-5cd39776] {
|
|
173
|
-
width: 90% !important;
|
|
174
|
-
}
|
|
175
|
-
.setting-view[data-v-5cd39776] .width-large[data-v-5cd39776] {
|
|
176
|
-
display: inline-block;
|
|
177
|
-
width: 20%;
|
|
178
|
-
overflow: hidden;
|
|
179
|
-
white-space: nowrap;
|
|
180
|
-
text-overflow: ellipsis;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
.popver-content {
|
|
185
|
-
height: 400px;
|
|
186
|
-
overflow: hidden;
|
|
187
|
-
overflow-y: auto;
|
|
188
|
-
}
|
|
189
|
-
.popver-ul {
|
|
190
|
-
margin-bottom: 10px;
|
|
191
|
-
}
|
|
192
|
-
.ul-title {
|
|
193
|
-
font-size: 14px;
|
|
194
|
-
font-weight: 400;
|
|
195
|
-
color: rgba(145, 159, 190, 1);
|
|
196
|
-
line-height: 20px;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
1
|
body > .vxe-table--tooltip-wrapper {
|
|
200
2
|
display: none !important;
|
|
201
3
|
}
|
|
@@ -512,11 +314,11 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
512
314
|
width: var(--tableImageWidth);
|
|
513
315
|
}
|
|
514
316
|
|
|
317
|
+
/*
|
|
515
318
|
@font-face {
|
|
516
319
|
font-family: "iconfont";
|
|
517
|
-
/* Project id */
|
|
518
320
|
src: url('iconfont.ttf?t=1631151904509') format('truetype');
|
|
519
|
-
}
|
|
321
|
+
}*/
|
|
520
322
|
.iconfont {
|
|
521
323
|
font-family: "iconfont" !important;
|
|
522
324
|
font-size: 16px;
|
|
@@ -556,6 +358,16 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
556
358
|
overflow: hidden;
|
|
557
359
|
-webkit-transition: width 2s;
|
|
558
360
|
transition: width 2s;
|
|
361
|
+
/*
|
|
362
|
+
.sort-icon-asc {
|
|
363
|
+
background-image: url('../img/icon-asc.png');
|
|
364
|
+
}
|
|
365
|
+
*/
|
|
366
|
+
/*
|
|
367
|
+
.sort-icon-desc {
|
|
368
|
+
background-image: url('../img/icon-desc.png');
|
|
369
|
+
}
|
|
370
|
+
*/
|
|
559
371
|
}
|
|
560
372
|
.big-table-filter-wrap .sort-list {
|
|
561
373
|
margin-top: 6px;
|
|
@@ -582,18 +394,12 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
582
394
|
background-size: contain;
|
|
583
395
|
display: inline-block;
|
|
584
396
|
}
|
|
585
|
-
.big-table-filter-wrap .sort-icon-asc {
|
|
586
|
-
background-image: url('../img/icon-asc.png');
|
|
587
|
-
}
|
|
588
397
|
.big-table-filter-wrap .sort-text {
|
|
589
398
|
margin-left: 11px;
|
|
590
399
|
font-size: 14px;
|
|
591
400
|
line-height: 32px;
|
|
592
401
|
color: rgba(0, 0, 0, 0.8);
|
|
593
402
|
}
|
|
594
|
-
.big-table-filter-wrap .sort-icon-desc {
|
|
595
|
-
background-image: url('../img/icon-desc.png');
|
|
596
|
-
}
|
|
597
403
|
.big-table-filter-wrap .filter-header {
|
|
598
404
|
padding: 0 13px;
|
|
599
405
|
cursor: initial;
|
package/es/button-print/index.js
CHANGED
|
@@ -7903,14 +7903,13 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
7903
7903
|
previewText: { type: String, required: false, default: "\u6253\u5370\u9884\u89C8" },
|
|
7904
7904
|
formatEditText: { type: String, required: false, default: "\u683C\u5F0F\u7F16\u8F91" },
|
|
7905
7905
|
identityVerificationTitle: { type: String, required: false, default: "\u6253\u5370\u670D\u52A1\u8EAB\u4EFD\u6821\u9A8C" },
|
|
7906
|
-
params: { type: Array, required:
|
|
7907
|
-
hisParams: { type: null, required: true },
|
|
7906
|
+
params: { type: Array, required: false, default: () => [] },
|
|
7908
7907
|
prevFn: { type: Function, required: false, default: () => Promise.resolve() },
|
|
7909
7908
|
verifyUser: { type: Function, required: false, default: () => Promise.resolve() },
|
|
7910
7909
|
queryPrintFormatByNumber: { type: Function, required: true, default: () => Promise.resolve({}) },
|
|
7911
7910
|
queryTemplateParams: { type: Function, required: false, default: () => Promise.resolve({}) },
|
|
7912
7911
|
strategy: { type: String, required: false, default: "MULTI" },
|
|
7913
|
-
|
|
7912
|
+
printParams: { type: Array, required: false }
|
|
7914
7913
|
},
|
|
7915
7914
|
emits: ["success", "error"],
|
|
7916
7915
|
setup(__props, { emit }) {
|
|
@@ -7951,7 +7950,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
7951
7950
|
let id = state.currentFormatId;
|
|
7952
7951
|
return state.formatList.find((item) => item.id === id);
|
|
7953
7952
|
});
|
|
7954
|
-
|
|
7953
|
+
computed(() => currentFormatItem.value.name || "\u683C\u5F0F\u9009\u62E9");
|
|
7955
7954
|
const getTemplateIdByFormatId = (id) => {
|
|
7956
7955
|
let find = state.formatList.find((item) => item.id === id);
|
|
7957
7956
|
return find.templateId;
|
|
@@ -7973,36 +7972,8 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
7973
7972
|
};
|
|
7974
7973
|
emit("error", error);
|
|
7975
7974
|
};
|
|
7976
|
-
const getHisParams = (index = 0) => {
|
|
7977
|
-
const { reportid = "280" } = props.hisParams;
|
|
7978
|
-
const { id, name } = state.templateParams;
|
|
7979
|
-
return {
|
|
7980
|
-
reportid,
|
|
7981
|
-
formatid: state.currentFormatId || id,
|
|
7982
|
-
formatname: name,
|
|
7983
|
-
param: props.params[index]
|
|
7984
|
-
};
|
|
7985
|
-
};
|
|
7986
|
-
const getOnceHisParams = () => {
|
|
7987
|
-
const { reportid = "280" } = props.hisParams;
|
|
7988
|
-
const { id, name } = state.templateParams;
|
|
7989
|
-
const obj = {};
|
|
7990
|
-
Object.keys(props.params[0]).forEach((v) => {
|
|
7991
|
-
obj[v] = [];
|
|
7992
|
-
props.params.forEach((k) => {
|
|
7993
|
-
obj[v].push(k[v]);
|
|
7994
|
-
});
|
|
7995
|
-
obj[v] = obj[v].join(",");
|
|
7996
|
-
});
|
|
7997
|
-
return {
|
|
7998
|
-
reportid,
|
|
7999
|
-
formatid: state.currentFormatId || id,
|
|
8000
|
-
formatname: name,
|
|
8001
|
-
param: obj
|
|
8002
|
-
};
|
|
8003
|
-
};
|
|
8004
7975
|
const getPrintParams = (index = 0) => {
|
|
8005
|
-
const params = state.printParams[index];
|
|
7976
|
+
const params = props.printParams?.length ? props.printParams[index] : state.printParams[index];
|
|
8006
7977
|
return JSON.stringify(params);
|
|
8007
7978
|
};
|
|
8008
7979
|
const getOnceParams = () => {
|
|
@@ -8044,49 +8015,26 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
8044
8015
|
prevFnError();
|
|
8045
8016
|
return Promise.reject();
|
|
8046
8017
|
}).then(() => {
|
|
8047
|
-
if (props.
|
|
8048
|
-
|
|
8049
|
-
if (props.strategy === "MULTI") {
|
|
8050
|
-
for (let i = 0; i < props.params.length; i++) {
|
|
8051
|
-
const params = getHisParams(i);
|
|
8052
|
-
printInstance[printFn](7, params).then((res) => {
|
|
8053
|
-
console.log(res, "777777777777");
|
|
8054
|
-
}).catch((error) => {
|
|
8055
|
-
console.log(error, "error777");
|
|
8056
|
-
});
|
|
8057
|
-
}
|
|
8058
|
-
}
|
|
8059
|
-
else {
|
|
8060
|
-
const params = getOnceHisParams();
|
|
8061
|
-
printInstance[printFn](7, params).then((res) => {
|
|
8062
|
-
console.log(res, "777777777777");
|
|
8063
|
-
}).catch((error) => {
|
|
8064
|
-
console.log(error, "error777");
|
|
8065
|
-
});
|
|
8066
|
-
}
|
|
8067
|
-
}
|
|
8068
|
-
else {
|
|
8069
|
-
if (props.strategy === "MULTI") {
|
|
8070
|
-
for (let i = 0; i < state.printParams.length; i++) {
|
|
8071
|
-
const queryParams = {
|
|
8072
|
-
formatId: state.currentFormatId,
|
|
8073
|
-
templateId: getTemplateIdByFormatId(state.currentFormatId),
|
|
8074
|
-
params: getPrintParams(i)
|
|
8075
|
-
};
|
|
8076
|
-
printInstance.printDirect(queryParams, callLocalServicesSuccessCbTmp, callLocalServicesErrorCb);
|
|
8077
|
-
}
|
|
8078
|
-
}
|
|
8079
|
-
else {
|
|
8018
|
+
if (props.strategy === "MULTI") {
|
|
8019
|
+
for (let i = 0; i < state.printParams.length; i++) {
|
|
8080
8020
|
const queryParams = {
|
|
8081
8021
|
formatId: state.currentFormatId,
|
|
8082
8022
|
templateId: getTemplateIdByFormatId(state.currentFormatId),
|
|
8083
|
-
params:
|
|
8023
|
+
params: getPrintParams(i)
|
|
8084
8024
|
};
|
|
8085
|
-
printInstance.printDirect(queryParams,
|
|
8086
|
-
callLocalServicesSuccessCb(res, "print");
|
|
8087
|
-
}, callLocalServicesErrorCb);
|
|
8025
|
+
printInstance.printDirect(queryParams, callLocalServicesSuccessCbTmp, callLocalServicesErrorCb);
|
|
8088
8026
|
}
|
|
8089
8027
|
}
|
|
8028
|
+
else {
|
|
8029
|
+
const queryParams = {
|
|
8030
|
+
formatId: state.currentFormatId,
|
|
8031
|
+
templateId: getTemplateIdByFormatId(state.currentFormatId),
|
|
8032
|
+
params: getOnceParams()
|
|
8033
|
+
};
|
|
8034
|
+
printInstance.printDirect(queryParams, (res) => {
|
|
8035
|
+
callLocalServicesSuccessCb(res, "print");
|
|
8036
|
+
}, callLocalServicesErrorCb);
|
|
8037
|
+
}
|
|
8090
8038
|
}).finally(() => {
|
|
8091
8039
|
state.visible = false;
|
|
8092
8040
|
});
|
|
@@ -8096,26 +8044,15 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
8096
8044
|
prevFnError();
|
|
8097
8045
|
return Promise.reject();
|
|
8098
8046
|
}).then(() => {
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
}
|
|
8108
|
-
else {
|
|
8109
|
-
const params = props.strategy === "MULTI" ? getPrintParams() : getOnceParams();
|
|
8110
|
-
const queryParams = {
|
|
8111
|
-
formatId: state.currentFormatId,
|
|
8112
|
-
templateId: getTemplateIdByFormatId(state.currentFormatId),
|
|
8113
|
-
params
|
|
8114
|
-
};
|
|
8115
|
-
printInstance.preview(queryParams, (res) => {
|
|
8116
|
-
callLocalServicesSuccessCb(res, "preview");
|
|
8117
|
-
}, callLocalServicesErrorCb);
|
|
8118
|
-
}
|
|
8047
|
+
const params = props.strategy === "MULTI" ? getPrintParams() : getOnceParams();
|
|
8048
|
+
const queryParams = {
|
|
8049
|
+
formatId: state.currentFormatId,
|
|
8050
|
+
templateId: getTemplateIdByFormatId(state.currentFormatId),
|
|
8051
|
+
params
|
|
8052
|
+
};
|
|
8053
|
+
printInstance.preview(queryParams, (res) => {
|
|
8054
|
+
callLocalServicesSuccessCb(res, "preview");
|
|
8055
|
+
}, callLocalServicesErrorCb);
|
|
8119
8056
|
}).finally(() => {
|
|
8120
8057
|
state.visible = false;
|
|
8121
8058
|
});
|
|
@@ -8125,18 +8062,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
8125
8062
|
prevFnError();
|
|
8126
8063
|
return Promise.reject();
|
|
8127
8064
|
}).then(() => {
|
|
8128
|
-
|
|
8129
|
-
const params = props.strategy === "MULTI" ? getHisParams() : getOnceHisParams();
|
|
8130
|
-
const printFn = props.versionType == 1 ? "handleHisPrint" : "handleOldHisPrint";
|
|
8131
|
-
printInstance[printFn](9, params).then((res) => {
|
|
8132
|
-
console.log(res, 999999);
|
|
8133
|
-
}).catch((error) => {
|
|
8134
|
-
console.log(error, "error999");
|
|
8135
|
-
});
|
|
8136
|
-
}
|
|
8137
|
-
else {
|
|
8138
|
-
state.identityVerification.visible = true;
|
|
8139
|
-
}
|
|
8065
|
+
state.identityVerification.visible = true;
|
|
8140
8066
|
}).finally(() => {
|
|
8141
8067
|
state.visible = false;
|
|
8142
8068
|
});
|
|
@@ -8181,25 +8107,6 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
8181
8107
|
let findDefault = list.find((item) => item[key] == 1);
|
|
8182
8108
|
return findDefault?.id || list[0].id;
|
|
8183
8109
|
};
|
|
8184
|
-
const setOptions = () => {
|
|
8185
|
-
const children = state.formatList.map((v) => {
|
|
8186
|
-
return {
|
|
8187
|
-
label: v.name,
|
|
8188
|
-
key: v.id
|
|
8189
|
-
};
|
|
8190
|
-
});
|
|
8191
|
-
options.unshift({
|
|
8192
|
-
label: formatTitle.value,
|
|
8193
|
-
key: "format",
|
|
8194
|
-
children
|
|
8195
|
-
});
|
|
8196
|
-
};
|
|
8197
|
-
const initHIS = (formatListResult) => {
|
|
8198
|
-
state.formatList = formatListResult ? formatListResult.list.filter((item) => item.printmark == 1) : [];
|
|
8199
|
-
setOptions();
|
|
8200
|
-
state.currentFormatId = getDefaultFormatId(state.formatList, "printmark");
|
|
8201
|
-
state.templateParams = state.formatList[0];
|
|
8202
|
-
};
|
|
8203
8110
|
const formatFormatList = (list) => {
|
|
8204
8111
|
let formatList = [];
|
|
8205
8112
|
list.forEach((item) => {
|
|
@@ -8263,7 +8170,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
8263
8170
|
};
|
|
8264
8171
|
const initCRM = async (formatListResult) => {
|
|
8265
8172
|
state.formatList = formatListResult ? formatFormatList(formatListResult.obj) : [];
|
|
8266
|
-
|
|
8173
|
+
console.log("formatListResult", formatListResult);
|
|
8267
8174
|
state.currentFormatId = getDefaultFormatId(state.formatList, "defaultFlag");
|
|
8268
8175
|
if (!state.currentFormatId) {
|
|
8269
8176
|
window.$message.error("\u83B7\u53D6\u6253\u5370\u683C\u5F0F\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01");
|
|
@@ -8289,12 +8196,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
8289
8196
|
setTimeoutSpin();
|
|
8290
8197
|
instantiatePrintSDK();
|
|
8291
8198
|
const formatListResult = await props.queryPrintFormatByNumber();
|
|
8292
|
-
|
|
8293
|
-
initHIS(formatListResult);
|
|
8294
|
-
}
|
|
8295
|
-
else {
|
|
8296
|
-
await initCRM(formatListResult);
|
|
8297
|
-
}
|
|
8199
|
+
await initCRM(formatListResult);
|
|
8298
8200
|
setLoaded();
|
|
8299
8201
|
return true;
|
|
8300
8202
|
};
|