|
@@ -600,13 +600,13 @@ export default {
|
600
|
600
|
for(let i=0;i<this.tablePrint.length;i++){
|
601
|
601
|
if(this.org_id == 9919 || this.org_id == 9671){
|
602
|
602
|
this.tablePrint[i].min_price = this.tablePrint[i].price
|
603
|
|
- this.tablePrint[i].count_one = parseInt((this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child))/this.tablePrint[i].min_number)
|
|
603
|
+ this.tablePrint[i].count = parseInt((this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child))/this.tablePrint[i].min_number)
|
604
|
604
|
this.tablePrint[i].total_price = ((parseInt((this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child))/this.tablePrint[i].min_number))*this.tablePrint[i].price).toFixed(2)
|
605
|
605
|
this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
|
606
|
606
|
this.tablePrint[i].total = this.getCountSenvenOne(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)/this.tablePrint[i].min_number
|
607
|
607
|
|
608
|
608
|
}else{
|
609
|
|
- this.tablePrint[i].count_one = this.getCount(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_unit,this.tablePrint[i].min_number)
|
|
609
|
+ this.tablePrint[i].count = this.getCount(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_unit,this.tablePrint[i].min_number)
|
610
|
610
|
this.tablePrint[i].total_price = this.getTotalPrice(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].min_price)
|
611
|
611
|
this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
|
612
|
612
|
this.tablePrint[i].total = this.getTotalPriceOne(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].min_price)
|
|
@@ -619,7 +619,7 @@ export default {
|
619
|
619
|
import('@/vendor/Export2Excel').then(excel => {
|
620
|
620
|
const tHeader = ['序号','药品名称', '规格型号','生产厂商','进销商', '单位','数量','单价','总价','出库时间','备注']
|
621
|
621
|
if(this.org_id == 9919){
|
622
|
|
- const filterVal = ['index','drug_name', 'unit', 'manufacturer_name','dealer_name','max_unit','count_one','min_price','total_price','ctime','remark']
|
|
622
|
+ const filterVal = ['index','drug_name', 'unit', 'manufacturer_name','dealer_name','max_unit','count','min_price','total_price','ctime','remark']
|
623
|
623
|
|
624
|
624
|
let obj = {'index':'合计','total_price':0.00}
|
625
|
625
|
for(let i=0;i<this.tablePrint.length;i++){
|