liche update for admin auto car add price book
This commit is contained in:
@@ -101,6 +101,7 @@ class Cars extends HD_Controller{
|
||||
'title' => $title,
|
||||
'status' => $v['status'],
|
||||
'price_car' => $v['price_car'] > 0 ? $v['price_car'] : '0.00',
|
||||
'price_book' => $v['price_book'] > 0 ? $v['price_book'] : '0.00',
|
||||
'price_insure' => $v['price_insure'] > 0 ? $v['price_insure'] : '0.00',
|
||||
'price_fine' => $v['price_fine'] > 0 ? $v['price_fine'] : '0.00',
|
||||
'price_finance' => $v['price_finance'] > 0 ? $v['price_finance'] : '0.00',
|
||||
@@ -149,6 +150,7 @@ class Cars extends HD_Controller{
|
||||
'sery_name' => $row_sery['name'],
|
||||
'attr' => $attr,
|
||||
'price_car' => $row['price_car'] > 0 ? $row['price_car'] : '',
|
||||
'price_book' => $row['price_book'] > 0 ? $row['price_book'] : '',
|
||||
'price_insure' => $row['price_insure'] > 0 ? $row['price_insure'] : '',
|
||||
'price_fine' => $row['price_fine'] > 0 ? $row['price_fine'] : '',
|
||||
'price_finance' => $row['price_finance'] > 0 ? $row['price_finance'] : '',
|
||||
@@ -254,6 +256,7 @@ class Cars extends HD_Controller{
|
||||
|
||||
$upd = array(
|
||||
'price_car' => floatval($info['price_car']),
|
||||
'price_book' => floatval($info['price_book']),
|
||||
'price_insure' => floatval($info['price_insure']),
|
||||
'price_fine' => floatval($info['price_fine']),
|
||||
'price_finance' => floatval($info['price_finance']),
|
||||
|
||||
@@ -45,13 +45,14 @@
|
||||
<label><input type="checkbox" data-check-target=".ids"></label>
|
||||
<span>ID</span>
|
||||
</th>
|
||||
<th width="8%"><span>裸车报价</span></th>
|
||||
<th width="8%"><span>保险报价</span></th>
|
||||
<th width="8%"><span>精品报价</span></th>
|
||||
<th width="8%"><span>金融报价</span></th>
|
||||
<th width="8%"><span>分期首付</span></th>
|
||||
<th width="8%"><span>月供金额</span></th>
|
||||
<th width="8%"><span>公司加价</span></th>
|
||||
<th width="7%"><span>裸车报价</span></th>
|
||||
<th width="7%"><span>定金</span></th>
|
||||
<th width="7%"><span>保险报价</span></th>
|
||||
<th width="7%"><span>精品报价</span></th>
|
||||
<th width="7%"><span>金融报价</span></th>
|
||||
<th width="7%"><span>分期首付</span></th>
|
||||
<th width="7%"><span>月供金额</span></th>
|
||||
<th width="7%"><span>公司加价</span></th>
|
||||
<th width="10%"><span>一级分销佣金</span></th>
|
||||
<th width="10%"><span>二级分销佣金</span></th>
|
||||
<th width=""><span>操作</span></th>
|
||||
@@ -60,7 +61,7 @@
|
||||
<tbody>
|
||||
<template v-for="(v,i) in lists">
|
||||
<tr class="tl">
|
||||
<td colspan="11">车型:<span style="font-weight: 600;color:#FF7F50;">{{v.title}}</span></td>
|
||||
<td colspan="12">车型:<span style="font-weight: 600;color:#FF7F50;">{{v.title}}</span></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td>
|
||||
@@ -69,6 +70,7 @@
|
||||
</td>
|
||||
<template v-if="1==v.edit">
|
||||
<td><input style="width: 100%" type="text" name="price_car" v-model="info_edit.price_car" placeholder=""></td>
|
||||
<td><input style="width: 100%" type="text" name="price_book" v-model="info_edit.price_book" placeholder=""></td>
|
||||
<td><input style="width: 100%" type="text" name="price_insure" v-model="info_edit.price_insure" placeholder=""></td>
|
||||
<td><input style="width: 100%" type="text" name="price_fine" v-model="info_edit.price_fine" placeholder=""></td>
|
||||
<td><input style="width: 100%" type="text" name="price_finance" v-model="info_edit.price_finance" placeholder=""></td>
|
||||
@@ -80,6 +82,7 @@
|
||||
</template>
|
||||
<template v-else>
|
||||
<td>{{v.price_car}}</td>
|
||||
<td>{{v.price_book}}</td>
|
||||
<td>{{v.price_insure}}</td>
|
||||
<td>{{v.price_fine}}</td>
|
||||
<td>{{v.price_finance}}</td>
|
||||
|
||||
@@ -76,3 +76,4 @@ create table lc_auto_cars (
|
||||
unique(attrs)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='车型库';
|
||||
alter table lc_auto_cars add column month_pay double(10,2) not null default 0.0 comment '月供' after first_pay;
|
||||
alter table lc_auto_cars add column price_book double(10,2) not null default 0.0 comment '定金' after price_car;
|
||||
|
||||
Reference in New Issue
Block a user