|
@@ -49,7 +49,7 @@ class WasteRecord extends Base {
|
|
|
$info = json_decode(json_encode($info),true);
|
|
|
|
|
|
$cate = Db::name('waste_type')->where('id',$info['cateid'])->find();
|
|
|
-
|
|
|
+ $tnum = $info['weight'].'kg';
|
|
|
if($cate['type'] == 1 && $info['num'] > 0){
|
|
|
$tnum = round($info['weight'] / 1000, 2).'kg'.'('.$info['num'].$cate['unit'].')';
|
|
|
}
|