Commit e1490e5f by duwenjun

调整字段顺序,显示报价

parent 2faa9bc6
Showing with 1 additions and 2 deletions
...@@ -311,6 +311,7 @@ class QuoteModel extends Model ...@@ -311,6 +311,7 @@ class QuoteModel extends Model
$v["price_rmb"] = "--"; $v["price_rmb"] = "--";
} }
$v['price_rmb'] = ($v['currency'] == 1) ? $v['price_rmb'] : '';
$v["currency"] = InquiryMap::$currency[$v["currency"]]; $v["currency"] = InquiryMap::$currency[$v["currency"]];
if ($v['delivery_time'] > 6) { if ($v['delivery_time'] > 6) {
...@@ -320,11 +321,9 @@ class QuoteModel extends Model ...@@ -320,11 +321,9 @@ class QuoteModel extends Model
} }
$v["effect_days"] = $v["effect_days"] . "天"; $v["effect_days"] = $v["effect_days"] . "天";
$v['expire_time'] = ($v['expire_time']) ? date('Y-m-d', $v['expire_time']) : ''; $v['expire_time'] = ($v['expire_time']) ? date('Y-m-d', $v['expire_time']) : '';
$v['price_rmb'] = $v['currency'] == 1 ? $v['price_rmb'] : '';
$v["digikey"] = "包装:" . $v["raw_goods_packing"]; $v["digikey"] = "包装:" . $v["raw_goods_packing"];
$v['source_val'] = array_get(Config('quote.quote_source'), $v['source'], ''); $v['source_val'] = array_get(Config('quote.quote_source'), $v['source'], '');
} }
return [0, '获取成功', $list['data'], $list['total']]; return [0, '获取成功', $list['data'], $list['total']];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment