|
@@ -79,11 +79,7 @@
|
79
|
79
|
</div>
|
80
|
80
|
|
81
|
81
|
<el-table :data="tableList" border style="width: 100%">
|
82
|
|
- <!-- <el-table-column prop="date" label="药品编号" width="180">
|
83
|
|
- <template slot-scope="scope">
|
84
|
|
-
|
85
|
|
- </template>
|
86
|
|
- </el-table-column> -->
|
|
82
|
+
|
87
|
83
|
<el-table-column prop="drug_type" label="药品类型" width="180" align="center">
|
88
|
84
|
<template slot-scope="scope">
|
89
|
85
|
{{getDrugType(scope.row.drug_type)}}
|
|
@@ -116,15 +112,15 @@
|
116
|
112
|
</el-table-column>
|
117
|
113
|
<el-table-column prop="drug_name" label="出库数量" align="center">
|
118
|
114
|
<template slot-scope="scope">
|
119
|
|
- <span v-if="org_id == 10028 || org_id == 9671">{{getOutCount(scope.row.id)+getAutoCount(scope.row.id)}}</span>
|
120
|
|
- <span v-else>{{getWarehouseOutInfo(scope.row.drug_warehouse_out,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
|
115
|
+ <span>{{getOutCount(scope.row.id)+getAutoCount(scope.row.id)}}{{scope.row.max_unit}}</span>
|
|
116
|
+ <!-- <span v-else>{{getWarehouseOutInfo(scope.row.drug_warehouse_out,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span> -->
|
121
|
117
|
</template>
|
122
|
118
|
</el-table-column>
|
123
|
119
|
<el-table-column prop="drug_name" label="剩余库存量" align="center">
|
124
|
120
|
<template slot-scope="scope">
|
125
|
121
|
<div v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">
|
126
|
|
- <span v-if="(org_id == 10028 || org_id == 9671)">{{getWarehoseInfo(scope.row.drug_warehouse_info) - getOutCount(scope.row.id) - getAutoCount(scope.row.id)}} </span>
|
127
|
|
- <span v-else>{{getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
|
122
|
+ <span>{{getWarehoseInfo(scope.row.drug_warehouse_info) - getOutCount(scope.row.id) - getAutoCount(scope.row.id)}}{{scope.row.max_unit}} </span>
|
|
123
|
+ <!-- <span v-else>{{getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span> -->
|
128
|
124
|
</div>
|
129
|
125
|
</template>
|
130
|
126
|
</el-table-column>
|
|
@@ -178,16 +174,6 @@ import { min } from 'moment'
|
178
|
174
|
name: 'stockIn',
|
179
|
175
|
created() {
|
180
|
176
|
|
181
|
|
- // var nowDate = new Date();
|
182
|
|
- // var nowYear = nowDate.getFullYear();
|
183
|
|
- // var nowMonth = nowDate.getMonth() + 1;
|
184
|
|
- // var nowDay = nowDate.getDate();
|
185
|
|
- // this.end_time =nowYear +"-" +(nowMonth < 10 ? "0" + nowMonth : nowMonth) +"-" +(nowDay < 10 ? "0" + nowDay : nowDay);
|
186
|
|
- // nowDate.setMonth(nowDate.getMonth() - 1);
|
187
|
|
- // nowYear = nowDate.getFullYear();
|
188
|
|
- // nowMonth = nowDate.getMonth() + 1;
|
189
|
|
- // nowDay = nowDate.getDate();
|
190
|
|
- // this.start_time =nowYear +"-" +(nowMonth < 10 ? "0" + nowMonth : nowMonth) +"-" +(nowDay < 10 ? "0" + nowDay : nowDay);
|
191
|
177
|
this.getlist()
|
192
|
178
|
var drugCategory = getDictionaryDataConfig('system','drug_category')
|
193
|
179
|
this.drugCategory.push(...drugCategory)
|
|
@@ -524,8 +510,6 @@ import { min } from 'moment'
|
524
|
510
|
console.log("paramsw2ww",params)
|
525
|
511
|
getDrugCountList(params).then(response=>{
|
526
|
512
|
if(response.data.state == 1){
|
527
|
|
- var countlist = response.data.data.countList
|
528
|
|
- this.countList = countlist
|
529
|
513
|
var minCount = response.data.data.minCount
|
530
|
514
|
console.log("minCount",minCount)
|
531
|
515
|
this.minCount = minCount
|
|
@@ -537,6 +521,7 @@ import { min } from 'moment'
|
537
|
521
|
info[i].count = info[i].count * info[i].min_number
|
538
|
522
|
}
|
539
|
523
|
}
|
|
524
|
+
|
540
|
525
|
this.outCountList = response.data.data.outCountList
|
541
|
526
|
console.log("手动出库",this.outCountList)
|
542
|
527
|
this.auCountList = response.data.data.auCountList
|