|
@@ -114,7 +114,7 @@
|
114
|
114
|
</div>
|
115
|
115
|
<div class="mainRight">
|
116
|
116
|
<div class="titlelist">
|
117
|
|
- <!-- <div>
|
|
117
|
+ <div>
|
118
|
118
|
班次:
|
119
|
119
|
<el-select
|
120
|
120
|
v-model="shift"
|
|
@@ -157,11 +157,11 @@
|
157
|
157
|
>
|
158
|
158
|
</el-option>
|
159
|
159
|
</el-select>
|
160
|
|
- </div> -->
|
|
160
|
+ </div>
|
161
|
161
|
<div>
|
162
|
|
- <!-- <el-button type="primary" @click="toExport" v-if="state == 2"
|
|
162
|
+ <el-button type="primary" @click="toExport" v-if="state == 2"
|
163
|
163
|
>导出</el-button
|
164
|
|
- > -->
|
|
164
|
+ >
|
165
|
165
|
<!-- <el-button type="primary" @click="tt">调试</el-button>-->
|
166
|
166
|
<el-button type="primary" @click="dispense" v-if="state == 1"
|
167
|
167
|
>发药</el-button
|
|
@@ -173,13 +173,12 @@
|
173
|
173
|
|
174
|
174
|
<el-divider></el-divider>
|
175
|
175
|
<div class="right_table">
|
176
|
|
- <!-- :summary-method="getSummaries"
|
177
|
|
- show-summary -->
|
178
|
176
|
<el-table
|
179
|
177
|
ref="table_01"
|
180
|
178
|
:height="tableHeight"
|
181
|
179
|
:data="tableData"
|
182
|
|
-
|
|
180
|
+ :summary-method="getSummaries_t1"
|
|
181
|
+ show-summary
|
183
|
182
|
border
|
184
|
183
|
highlight-current-row
|
185
|
184
|
style="width: 100%"
|
|
@@ -272,15 +271,13 @@
|
272
|
271
|
</el-table-column>
|
273
|
272
|
</el-table>
|
274
|
273
|
</div>
|
275
|
|
- <div>
|
276
|
|
- <!-- :summary-method="getSummaries"
|
277
|
|
- show-summarys -->
|
|
274
|
+ <div class="right_table">
|
278
|
275
|
<el-table
|
279
|
276
|
ref="table_01"
|
280
|
|
- v-if="state == 2"
|
281
|
277
|
:height="tableHeight"
|
282
|
278
|
:data="tableData"
|
283
|
|
-
|
|
279
|
+ :summary-method="getSummaries_t2"
|
|
280
|
+ show-summary
|
284
|
281
|
border
|
285
|
282
|
highlight-current-row
|
286
|
283
|
style="width: 100%"
|
|
@@ -290,7 +287,7 @@
|
290
|
287
|
color: '#606266',
|
291
|
288
|
}"
|
292
|
289
|
@selection-change="handleSelectionChange"
|
293
|
|
-
|
|
290
|
+ v-if="state == 2"
|
294
|
291
|
>
|
295
|
292
|
<!-- <el-table-column type="selection" width="55"> </el-table-column>-->
|
296
|
293
|
<el-table-column
|
|
@@ -502,21 +499,14 @@ export default {
|
502
|
499
|
},
|
503
|
500
|
|
504
|
501
|
methods: {
|
505
|
|
- tt() {
|
506
|
|
- console.log("this.state", this.state);
|
507
|
|
- console.log("this.tableData", this.tableData);
|
508
|
|
- console.log("this.deliveryway", this.deliveryway);
|
509
|
|
- },
|
|
502
|
+ tt() {},
|
510
|
503
|
async fun3() {
|
511
|
|
- console.log("fun3");
|
512
|
504
|
this.fun1().then((val) => {
|
513
|
505
|
this.fun2();
|
514
|
506
|
});
|
515
|
507
|
},
|
516
|
508
|
async fun4(tps) {
|
517
|
|
- console.log("fun3", tps);
|
518
|
509
|
this.fun1().then((val) => {
|
519
|
|
- console.log("this.issued_drug", this.issued_drug);
|
520
|
510
|
for (let i = 0; i < this.issued_drug.length; i++) {
|
521
|
511
|
if (tps == this.issued_drug[i].id) {
|
522
|
512
|
this.$refs.table02.setCurrentRow(this.issued_drug[i]);
|
|
@@ -528,7 +518,6 @@ export default {
|
528
|
518
|
async fun5(tps) {
|
529
|
519
|
console.log("fun3", tps);
|
530
|
520
|
this.fun1().then((val) => {
|
531
|
|
- console.log("this.issued_drug", this.waiting_drug);
|
532
|
521
|
for (let i = 0; i < this.waiting_drug.length; i++) {
|
533
|
522
|
if (tps == this.waiting_drug[i].id) {
|
534
|
523
|
this.$refs.table01.setCurrentRow(this.waiting_drug[i]);
|
|
@@ -537,8 +526,7 @@ export default {
|
537
|
526
|
}
|
538
|
527
|
});
|
539
|
528
|
},
|
540
|
|
- getSummaries(param) {
|
541
|
|
- console.log(param, "pram");
|
|
529
|
+ getSummaries_t1(param) {
|
542
|
530
|
const { columns, data } = param;
|
543
|
531
|
const sums = [];
|
544
|
532
|
columns.forEach((column, index) => {
|
|
@@ -555,6 +543,22 @@ export default {
|
555
|
543
|
return sums;
|
556
|
544
|
},
|
557
|
545
|
|
|
546
|
+ getSummaries_t2(param) {
|
|
547
|
+ const { columns, data } = param;
|
|
548
|
+ const sums = [];
|
|
549
|
+ columns.forEach((column, index) => {
|
|
550
|
+ if (index === 0) {
|
|
551
|
+ sums[index] = "合计";
|
|
552
|
+ return;
|
|
553
|
+ }
|
|
554
|
+ if (index === 6) {
|
|
555
|
+ sums[index] = this.total;
|
|
556
|
+ return;
|
|
557
|
+ }
|
|
558
|
+ });
|
|
559
|
+ return sums;
|
|
560
|
+ },
|
|
561
|
+
|
558
|
562
|
changeTimes() {
|
559
|
563
|
// alert("aa")
|
560
|
564
|
// this.getdruglist();
|
|
@@ -1033,7 +1037,11 @@ export default {
|
1033
|
1037
|
},
|
1034
|
1038
|
updated() {
|
1035
|
1039
|
this.$nextTick(() => {
|
1036
|
|
- this.$refs["table_01"].doLayout();
|
|
1040
|
+ if (this.$refs["table_01"]) {
|
|
1041
|
+ this.$refs["table_01"].doLayout();
|
|
1042
|
+ } else if (this.$refs["table_02"]) {
|
|
1043
|
+ this.$refs["table_02"].doLayout();
|
|
1044
|
+ }
|
1037
|
1045
|
});
|
1038
|
1046
|
},
|
1039
|
1047
|
};
|
|
@@ -1076,6 +1084,10 @@ export default {
|
1076
|
1084
|
white-space: nowrap;
|
1077
|
1085
|
color: #909399;
|
1078
|
1086
|
font-size: 14px;
|
|
1087
|
+
|
|
1088
|
+ /deep/ .el-input__inner {
|
|
1089
|
+ font-size: 13px !important;
|
|
1090
|
+ }
|
1079
|
1091
|
}
|
1080
|
1092
|
.el-button {
|
1081
|
1093
|
height: 34px;
|
|
@@ -1094,10 +1106,10 @@ export default {
|
1094
|
1106
|
overflow-y: auto;
|
1095
|
1107
|
overflow-x: hidden;
|
1096
|
1108
|
}
|
1097
|
|
-.right_table {
|
1098
|
|
- /deep/ .el-table--scrollable-x .el-table__body-wrapper {
|
|
1109
|
+/deep/ .right_table {
|
|
1110
|
+ .el-table__body-wrapper {
|
1099
|
1111
|
overflow-y: auto;
|
1100
|
|
- overflow-x: scroll;
|
|
1112
|
+ overflow-x: scroll !important;
|
1101
|
1113
|
}
|
1102
|
1114
|
// /deep/ .el-table__footer-wrapper {
|
1103
|
1115
|
// margin-top: -2px !important;
|