|
@ -394,35 +394,35 @@ $(function(){
|
|
if(!dispPackUntuckFlag && !dispQuantityUntuckFlag){
|
|
if(!dispPackUntuckFlag && !dispQuantityUntuckFlag){
|
|
sum = Math.ceil((Math.ceil(single / $info.minDose) * rate * date) / $info.pakeSpec);
|
|
sum = Math.ceil((Math.ceil(single / $info.minDose) * rate * date) / $info.pakeSpec);
|
|
|
|
|
|
$sum.text(sum+$info.packUnitName)
|
|
|
|
$sum.attr('data-num',sum)
|
|
|
|
$sum.attr('data-name',$info.packUnitName);
|
|
|
|
$sum.attr('data-unit',$info.packUnit);
|
|
|
|
|
|
$sum.text(sum + $info.packUnitName)
|
|
|
|
$sum.attr('data-num', Math.ceil(single / $info.minDose) * rate * date)
|
|
|
|
$sum.attr('data-name', $info.drugNumUnitName);
|
|
|
|
$sum.attr('data-unit', $info.drugNumUnit);
|
|
}else{
|
|
}else{
|
|
if(dispQuantityUntuckFlag){
|
|
if(dispQuantityUntuckFlag){
|
|
//ceil(剂量数量*频次*天数/最小剂量)
|
|
//ceil(剂量数量*频次*天数/最小剂量)
|
|
sum = Math.ceil(num / $info.minDose);
|
|
sum = Math.ceil(num / $info.minDose);
|
|
if(dispPackUntuckFlag){
|
|
if(dispPackUntuckFlag){
|
|
//可拆包
|
|
//可拆包
|
|
$sum.text(sum+$info.drugNumUnitName)
|
|
|
|
$sum.attr('data-num',sum)
|
|
|
|
$sum.attr('data-name',$info.drugNumUnitName);
|
|
|
|
$sum.attr('data-unit',$info.drugNumUnit);
|
|
|
|
|
|
$sum.text(sum + $info.drugNumUnitName)
|
|
|
|
$sum.attr('data-num', sum)
|
|
|
|
$sum.attr('data-name', $info.drugNumUnitName);
|
|
|
|
$sum.attr('data-unit', $info.drugNumUnit);
|
|
}else{
|
|
}else{
|
|
//不可拆包
|
|
//不可拆包
|
|
sum = Math.ceil(sum / $info.pakeSpec);
|
|
sum = Math.ceil(sum / $info.pakeSpec);
|
|
$sum.text(sum+$info.packUnitName)
|
|
|
|
$sum.attr('data-num',sum)
|
|
|
|
$sum.attr('data-name',$info.packUnitName);
|
|
|
|
$sum.attr('data-unit',$info.packUnit);
|
|
|
|
|
|
$sum.text(sum + $info.packUnitName)
|
|
|
|
$sum.attr('data-num', Math.ceil(num / $info.minDose))
|
|
|
|
$sum.attr('data-name', $info.drugNumUnitName);
|
|
|
|
$sum.attr('data-unit', $info.drugNumUnit);
|
|
}
|
|
}
|
|
}else if(dispPackUntuckFlag){
|
|
}else if(dispPackUntuckFlag){
|
|
//可拆包: 单元数量(ceil(次剂量/最小单位))*频次*天数
|
|
//可拆包: 单元数量(ceil(次剂量/最小单位))*频次*天数
|
|
sum = Math.ceil(single / $info.minDose) * rate * date;
|
|
sum = Math.ceil(single / $info.minDose) * rate * date;
|
|
$sum.text(sum+$info.drugNumUnitName)
|
|
|
|
$sum.attr('data-num',sum)
|
|
|
|
$sum.attr('data-name',$info.drugNumUnitName);
|
|
|
|
$sum.attr('data-unit',$info.drugNumUnit);
|
|
|
|
|
|
$sum.text(sum + $info.drugNumUnitName)
|
|
|
|
$sum.attr('data-num', sum)
|
|
|
|
$sum.attr('data-name', $info.drugNumUnitName);
|
|
|
|
$sum.attr('data-unit', $info.drugNumUnit);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@ -440,34 +440,34 @@ $(function(){
|
|
if(!res.dispPackUntuckFlag && !res.dispQuantityUntuckFlag){
|
|
if(!res.dispPackUntuckFlag && !res.dispQuantityUntuckFlag){
|
|
sum = Math.ceil((Math.ceil(single / $info.minDose) * rate * date)/msg.packSpec)
|
|
sum = Math.ceil((Math.ceil(single / $info.minDose) * rate * date)/msg.packSpec)
|
|
|
|
|
|
$sum.text(sum+$info.packUnitName)
|
|
|
|
$sum.attr('data-num',sum)
|
|
|
|
$sum.attr('data-name',$info.packUnitName);
|
|
|
|
$sum.attr('data-unit',$info.packUnit);
|
|
|
|
|
|
$sum.text(sum + $info.packUnitName)
|
|
|
|
$sum.attr('data-num', Math.ceil(single / $info.minDose) * rate * date)
|
|
|
|
$sum.attr('data-name', $info.quantityUnitName);
|
|
|
|
$sum.attr('data-unit', $info.quantityUnit);
|
|
}else{
|
|
}else{
|
|
if(res.dispQuantityUntuckFlag){
|
|
if(res.dispQuantityUntuckFlag){
|
|
//ceil(剂量数量*频次*天数/最小剂量)
|
|
//ceil(剂量数量*频次*天数/最小剂量)
|
|
sum = Math.ceil(num / msg.minDose);
|
|
sum = Math.ceil(num / msg.minDose);
|
|
if(res.dispPackUntuckFlag){
|
|
if(res.dispPackUntuckFlag){
|
|
$sum.text(sum+$info.quantityUnitName)
|
|
|
|
$sum.attr('data-num',sum)
|
|
|
|
$sum.attr('data-name',$info.quantityUnitName);
|
|
|
|
$sum.attr('data-unit',$info.quantityUnit);
|
|
|
|
|
|
$sum.text( sum + $info.quantityUnitName)
|
|
|
|
$sum.attr('data-num', sum)
|
|
|
|
$sum.attr('data-name', $info.quantityUnitName);
|
|
|
|
$sum.attr('data-unit', $info.quantityUnit);
|
|
}else{
|
|
}else{
|
|
//不可拆包
|
|
//不可拆包
|
|
sum = Math.ceil(sum / msg.packSpec);
|
|
sum = Math.ceil(sum / msg.packSpec);
|
|
$sum.text(sum+$info.packUnitName)
|
|
|
|
$sum.attr('data-num',sum)
|
|
|
|
$sum.attr('data-name',$info.packUnitName);
|
|
|
|
$sum.attr('data-unit',$info.packUnit);
|
|
|
|
|
|
$sum.text(sum + $info.packUnitName)
|
|
|
|
$sum.attr('data-num', Math.ceil(num / msg.minDose))
|
|
|
|
$sum.attr('data-name', $info.quantityUnitName);
|
|
|
|
$sum.attr('data-unit', $info.quantityUnit);
|
|
}
|
|
}
|
|
}else if(res.dispPackUntuckFlag){
|
|
}else if(res.dispPackUntuckFlag){
|
|
//可拆包: 单元数量(ceil(次剂量/最小单位))*频次*天数
|
|
//可拆包: 单元数量(ceil(次剂量/最小单位))*频次*天数
|
|
sum = Math.ceil(single / msg.minDose) * rate * date;
|
|
sum = Math.ceil(single / msg.minDose) * rate * date;
|
|
$sum.text(sum+$info.quantityUnitName)
|
|
|
|
$sum.attr('data-num',sum)
|
|
|
|
$sum.attr('data-name',$info.quantityUnitName);
|
|
|
|
$sum.attr('data-unit',$info.quantityUnit);
|
|
|
|
|
|
$sum.text(sum + $info.quantityUnitName)
|
|
|
|
$sum.attr('data-num', sum)
|
|
|
|
$sum.attr('data-name', $info.quantityUnitName);
|
|
|
|
$sum.attr('data-unit', $info.quantityUnit);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|