|
@@ -116,12 +116,16 @@
|
116
|
116
|
</el-table-column>
|
117
|
117
|
<el-table-column prop="drug_name" label="出库数量" align="center">
|
118
|
118
|
<template slot-scope="scope">
|
119
|
|
- {{getWarehouseOutInfo(scope.row.drug_warehouse_out,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}
|
|
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>
|
120
|
121
|
</template>
|
121
|
122
|
</el-table-column>
|
122
|
123
|
<el-table-column prop="drug_name" label="剩余库存量" align="center">
|
123
|
124
|
<template slot-scope="scope">
|
124
|
|
- <span>{{getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
|
125
|
+ <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>
|
|
128
|
+ </div>
|
125
|
129
|
</template>
|
126
|
130
|
</el-table-column>
|
127
|
131
|
<el-table-column prop="drug_name" label="操作" align="center" width="200px">
|
|
@@ -174,23 +178,24 @@ import { min } from 'moment'
|
174
|
178
|
name: 'stockIn',
|
175
|
179
|
created() {
|
176
|
180
|
|
177
|
|
- var nowDate = new Date();
|
178
|
|
- var nowYear = nowDate.getFullYear();
|
179
|
|
- var nowMonth = nowDate.getMonth() + 1;
|
180
|
|
- var nowDay = nowDate.getDate();
|
181
|
|
- this.end_time =nowYear +"-" +(nowMonth < 10 ? "0" + nowMonth : nowMonth) +"-" +(nowDay < 10 ? "0" + nowDay : nowDay);
|
182
|
|
- nowDate.setMonth(nowDate.getMonth() - 1);
|
183
|
|
- nowYear = nowDate.getFullYear();
|
184
|
|
- nowMonth = nowDate.getMonth() + 1;
|
185
|
|
- nowDay = nowDate.getDate();
|
186
|
|
- this.start_time =nowYear +"-" +(nowMonth < 10 ? "0" + nowMonth : nowMonth) +"-" +(nowDay < 10 ? "0" + nowDay : nowDay);
|
|
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);
|
187
|
191
|
this.getlist()
|
188
|
192
|
var drugCategory = getDictionaryDataConfig('system','drug_category')
|
189
|
193
|
this.drugCategory.push(...drugCategory)
|
190
|
194
|
var drugTypeList = getDictionaryDataConfig('system','drug_type')
|
191
|
195
|
this.drugTypeList.push(...drugTypeList)
|
192
|
|
-
|
193
|
|
- // this.getDrugCountList()
|
|
196
|
+ this.org_id = this.$store.getters.xt_user.org.id
|
|
197
|
+ console.log("机构ID",this.org_id)
|
|
198
|
+ this.getDrugCountList()
|
194
|
199
|
|
195
|
200
|
|
196
|
201
|
},
|
|
@@ -240,6 +245,7 @@ import { min } from 'moment'
|
240
|
245
|
drugOutList:[],
|
241
|
246
|
cancelCountList:[],
|
242
|
247
|
allCountList:[],
|
|
248
|
+ org_id:"",
|
243
|
249
|
}
|
244
|
250
|
},
|
245
|
251
|
methods: {
|
|
@@ -528,8 +534,10 @@ import { min } from 'moment'
|
528
|
534
|
info[i].count = info[i].count * info[i].min_number
|
529
|
535
|
}
|
530
|
536
|
}
|
531
|
|
- console.log("搜有列表",this.autoCountList)
|
532
|
|
- console.log("info2222222",info)
|
|
537
|
+ this.outCountList = response.data.data.outCountList
|
|
538
|
+ console.log("手动出库",this.outCountList)
|
|
539
|
+ this.auCountList = response.data.data.auCountList
|
|
540
|
+ console.log("自动出库",this.auCountList)
|
533
|
541
|
this.drugOutList = info
|
534
|
542
|
}
|
535
|
543
|
})
|