|
@@ -114,34 +114,34 @@
|
114
|
114
|
</div>
|
115
|
115
|
<div class="mainRight">
|
116
|
116
|
<div class="titlelist">
|
117
|
|
- 班次:
|
118
|
|
- <el-select v-model="shift" placeholder="请选择" @change="getdrugsdetails">
|
119
|
|
- <el-option
|
120
|
|
- v-for="item in banshift"
|
121
|
|
- :key="item.value"
|
122
|
|
- :label="item.text"
|
123
|
|
- :value="item.value">
|
124
|
|
- </el-option>
|
125
|
|
- </el-select>
|
126
|
|
- 分区:
|
127
|
|
- <el-select v-model="partition" placeholder="请选择" @change="getdrugsdetails">
|
128
|
|
- <el-option
|
129
|
|
- v-for="item in fen"
|
130
|
|
- :key="item.id"
|
131
|
|
- :label="item.name"
|
132
|
|
- :value="item.id">
|
133
|
|
- </el-option>
|
134
|
|
- </el-select>
|
135
|
|
- 给药途径:
|
136
|
|
- <el-select v-model="deliveryway" placeholder="请选择" @change="getdruglist02">
|
137
|
|
- <el-option
|
138
|
|
- v-for="item in routeofadministration"
|
139
|
|
- :key="item.name"
|
140
|
|
- :label="item.name"
|
141
|
|
- :value="item.name">
|
142
|
|
- </el-option>
|
143
|
|
- </el-select>
|
144
|
|
- <el-button type="primary" @click="toExport" v-if="state == 2">导出</el-button>
|
|
117
|
+<!-- 班次:-->
|
|
118
|
+<!-- <el-select v-model="shift" placeholder="请选择" @change="getdrugsdetails02">-->
|
|
119
|
+<!-- <el-option-->
|
|
120
|
+<!-- v-for="item in banshift"-->
|
|
121
|
+<!-- :key="item.value"-->
|
|
122
|
+<!-- :label="item.text"-->
|
|
123
|
+<!-- :value="item.value">-->
|
|
124
|
+<!-- </el-option>-->
|
|
125
|
+<!-- </el-select>-->
|
|
126
|
+<!-- 分区:-->
|
|
127
|
+<!-- <el-select v-model="partition" placeholder="请选择" @change="getdrugsdetails">-->
|
|
128
|
+<!-- <el-option-->
|
|
129
|
+<!-- v-for="item in fen"-->
|
|
130
|
+<!-- :key="item.id"-->
|
|
131
|
+<!-- :label="item.name"-->
|
|
132
|
+<!-- :value="item.id">-->
|
|
133
|
+<!-- </el-option>-->
|
|
134
|
+<!-- </el-select>-->
|
|
135
|
+<!-- 给药途径:-->
|
|
136
|
+<!-- <el-select v-model="deliveryway" placeholder="请选择" @change="getdruglist02">-->
|
|
137
|
+<!-- <el-option-->
|
|
138
|
+<!-- v-for="item in routeofadministration"-->
|
|
139
|
+<!-- :key="item.name"-->
|
|
140
|
+<!-- :label="item.name"-->
|
|
141
|
+<!-- :value="item.name">-->
|
|
142
|
+<!-- </el-option>-->
|
|
143
|
+<!-- </el-select>-->
|
|
144
|
+<!-- <el-button type="primary" @click="toExport" v-if="state == 2">导出</el-button>-->
|
145
|
145
|
<!-- <el-button type="primary" @click="tt">调试</el-button>-->
|
146
|
146
|
<el-button type="primary" @click="dispense" v-if="state == 1"
|
147
|
147
|
>发药</el-button
|
|
@@ -347,8 +347,8 @@
|
347
|
347
|
</el-table-column>
|
348
|
348
|
</el-table>
|
349
|
349
|
</div>
|
350
|
|
- <div style="background-color: #f5f7fa;display:flex;padding: 10px;justify-content:space-around;position:absolute;width:75.6%;margin-top: 27.5%;
|
351
|
|
-"><div style="width: 40%;padding-left:3%">合计 </div> <div style="width: 40%;display: flex;justify-content:center;padding-left: 37%">{{total}}</div></div>
|
|
350
|
+<!-- <div style="background-color: #f5f7fa;display:flex;padding: 10px;justify-content:space-around;position:absolute;width:75.6%;margin-top: 27.5%;-->
|
|
351
|
+<!--"><div style="width: 40%;padding-left:3%">合计 </div> <div style="width: 40%;display: flex;justify-content:center;padding-left: 37%">{{total}}</div></div>-->
|
352
|
352
|
<div style="margin-top: 25px" v-if="state == 1">
|
353
|
353
|
领药人:
|
354
|
354
|
<el-select v-model="admin_user_id" placeholder="请选择">
|
|
@@ -914,6 +914,29 @@ export default {
|
914
|
914
|
this.getdrugsdetails(1);
|
915
|
915
|
}
|
916
|
916
|
},
|
|
917
|
+ getdrugsdetails02(val) {
|
|
918
|
+ if(this.state == 1){
|
|
919
|
+ val = 0
|
|
920
|
+ }else{
|
|
921
|
+ val = 1
|
|
922
|
+ }
|
|
923
|
+ var params = {
|
|
924
|
+ drug_id: this.currentRow.id,
|
|
925
|
+ is_medicine: val,
|
|
926
|
+ time: this.start_time,
|
|
927
|
+ shift: this.shift,
|
|
928
|
+ partition: this.partition,
|
|
929
|
+ deliveryway: this.deliveryway,
|
|
930
|
+ };
|
|
931
|
+ getpatientswithdrugs(params).then((res) => {
|
|
932
|
+ if (res.data.state == 1) {
|
|
933
|
+ this.tableData = res.data.data.list; //列表数据
|
|
934
|
+ this.total = res.data.data.total;//合计
|
|
935
|
+ } else {
|
|
936
|
+ this.$message.error(res.data.msg);
|
|
937
|
+ }
|
|
938
|
+ });
|
|
939
|
+ },
|
917
|
940
|
getdrugsdetails(val) {
|
918
|
941
|
var params = {
|
919
|
942
|
drug_id: this.currentRow.id,
|