|
@@ -112,25 +112,25 @@
|
112
|
112
|
</div>
|
113
|
113
|
<div class="mainRight">
|
114
|
114
|
<div class="titlelist">
|
115
|
|
-<!-- 班次:-->
|
116
|
|
-<!-- <el-select v-model="shift" placeholder="请选择" @change="searchAction">-->
|
117
|
|
-<!-- <el-option-->
|
118
|
|
-<!-- v-for="item in banshift"-->
|
119
|
|
-<!-- :key="item.value"-->
|
120
|
|
-<!-- :label="item.text"-->
|
121
|
|
-<!-- :value="item.value">-->
|
122
|
|
-<!-- </el-option>-->
|
123
|
|
-<!-- </el-select>-->
|
124
|
|
-<!-- 分区:-->
|
125
|
|
-<!-- <el-select v-model="partition" placeholder="请选择" @change="searchAction">-->
|
126
|
|
-<!-- <el-option-->
|
127
|
|
-<!-- v-for="item in fen"-->
|
128
|
|
-<!-- :key="item.id"-->
|
129
|
|
-<!-- :label="item.name"-->
|
130
|
|
-<!-- :value="item.id">-->
|
131
|
|
-<!-- </el-option>-->
|
132
|
|
-<!-- </el-select>-->
|
133
|
|
-<!-- <el-button type="primary" @click="toExport" v-if="state == 2">导出</el-button>-->
|
|
115
|
+ 班次:
|
|
116
|
+ <el-select v-model="shift" placeholder="请选择" @change="searchAction">
|
|
117
|
+ <el-option
|
|
118
|
+ v-for="item in banshift"
|
|
119
|
+ :key="item.value"
|
|
120
|
+ :label="item.text"
|
|
121
|
+ :value="item.value">
|
|
122
|
+ </el-option>
|
|
123
|
+ </el-select>
|
|
124
|
+ 分区:
|
|
125
|
+ <el-select v-model="partition" placeholder="请选择" @change="searchAction">
|
|
126
|
+ <el-option
|
|
127
|
+ v-for="item in fen"
|
|
128
|
+ :key="item.id"
|
|
129
|
+ :label="item.name"
|
|
130
|
+ :value="item.id">
|
|
131
|
+ </el-option>
|
|
132
|
+ </el-select>
|
|
133
|
+ <el-button type="primary" @click="toExport" v-if="state == 2">导出</el-button>
|
134
|
134
|
<el-button type="primary" @click="dispense" v-if="state == 1"
|
135
|
135
|
>发药</el-button
|
136
|
136
|
>
|
|
@@ -322,7 +322,12 @@ export default {
|
322
|
322
|
})
|
323
|
323
|
},
|
324
|
324
|
tiaoshi() {
|
|
325
|
+ console.log("this.shift", this.shift);
|
325
|
326
|
console.log("this.partition", this.partition);
|
|
327
|
+ console.log("this.waitmount_data", this.waitmount_data);
|
|
328
|
+ console.log("this.alreadmount_data", this.alreadmount_data);
|
|
329
|
+ console.log("this.waitmount", this.waitmount);
|
|
330
|
+ console.log("this.alreadmount", this.alreadmount);
|
326
|
331
|
},
|
327
|
332
|
async fun3() {
|
328
|
333
|
console.log("fun3");
|
|
@@ -443,11 +448,25 @@ export default {
|
443
|
448
|
waitingdrug(params).then((res) => {
|
444
|
449
|
if (res.data.state == 1) {
|
445
|
450
|
this.waitmount_data = res.data.data.list;
|
|
451
|
+ if(this.shift != 0 || this.partition != 0){
|
|
452
|
+ if(this.waitmount_data == null){
|
|
453
|
+ this.waitmount = 0
|
|
454
|
+ }else{
|
|
455
|
+ this.waitmount = this.waitmount_data.length
|
|
456
|
+ }
|
|
457
|
+ }
|
446
|
458
|
}
|
447
|
459
|
});
|
448
|
460
|
issueddrugs(params).then((res) => {
|
449
|
461
|
if (res.data.state == 1) {
|
450
|
462
|
this.alreadmount_data = res.data.data.list;
|
|
463
|
+ if(this.shift != 0 || this.partition != 0){
|
|
464
|
+ if (this.alreadmount_data == null){
|
|
465
|
+ this.alreadmount = 0
|
|
466
|
+ }else{
|
|
467
|
+ this.alreadmount = this.alreadmount_data.length
|
|
468
|
+ }
|
|
469
|
+ }
|
451
|
470
|
}
|
452
|
471
|
});
|
453
|
472
|
},
|
|
@@ -560,6 +579,10 @@ export default {
|
560
|
579
|
searchAction() {
|
561
|
580
|
this.tableData = null;
|
562
|
581
|
this.getwaitmount();
|
|
582
|
+ if(this.shift != 0 || this.partition != 0){
|
|
583
|
+ }else{
|
|
584
|
+ this.gettodaynumber();
|
|
585
|
+ }
|
563
|
586
|
},
|
564
|
587
|
|
565
|
588
|
// 药品发药
|