liche update for admin auto attr edit rm some param

This commit is contained in:
xxb
2021-08-12 17:14:32 +08:00
parent 7b0ab1b3b6
commit 4c7e18b2e9
4 changed files with 16 additions and 22 deletions
+15 -6
View File
@@ -9,7 +9,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
class Goods extends HD_Controller
{
private $packAry = array(0 => '无', 1 => '是');
private $statusAry = array(0 => '下架', 1 => '正常', 2 => '已售');
private $statusAry = array(0 => '下架', 1 => '未售', 2 => '已售');
public function __construct()
{
@@ -307,9 +307,8 @@ class Goods extends HD_Controller
$cor_id = $objWorksheet->getCell('D' . $_row)->getValue(); //车身颜色id
$incor_id = $objWorksheet->getCell('E' . $_row)->getValue(); //内饰颜色id
$stdard_num = $objWorksheet->getCell('G' . $_row)->getValue(); //合格证号
$frame_num = $objWorksheet->getCell('H' . $_row)->getValue(); //车架号
$pro_time = $objWorksheet->getCell('I' . $_row)->getValue(); //生产时间
$ori_price = $objWorksheet->getCell('J' . $_row)->getValue(); //指导价
$pro_time = $objWorksheet->getCell('H' . $_row)->getValue(); //生产时间
$ori_price = $objWorksheet->getCell('I' . $_row)->getValue(); //平台价
$re_b = $this->mdAutoBrand->get(array('name' => $brand_id));
$brand_id = $re_b ? $re_b['id'] : 0;
$re_s = $this->mdAutoSeries->get(array('brand_id' => $brand_id, 'name' => $s_id));
@@ -321,8 +320,18 @@ class Goods extends HD_Controller
$re_a2 = $this->mdAutoAttr->get(array('s_id' => $s_id, 'type' => 2, 'title' => $incor_id));
$incor_id = $re_a2 ? $re_a2['id'] : 0;
$pro_time = $pro_time ? gmdate("Y/m/d H:i:s", PHPExcel_Shared_Date::ExcelToPHP($pro_time)) : '';
$addData = array('brand_id' => $brand_id, 's_id' => $s_id, 'v_id' => $v_id, 'cor_id' => $cor_id, 'incor_id' => $incor_id
, 'ori_price' => $ori_price, 'vin' => $vin, 'stdard_num' => $stdard_num, 'pro_time' => $pro_time, 'c_time' => time());
$addData = array(
'brand_id' => $brand_id,
's_id' => $s_id,
'v_id' => $v_id,
'cor_id' => $cor_id,
'incor_id' => $incor_id,
'ori_price' => $ori_price,
'vin' => $vin,
'stdard_num' => $stdard_num,
'pro_time' => $pro_time,
'c_time' => time()
);
$id = $this->mdItems->add($addData);
if ($id) {
$j++;
-15
View File
@@ -49,21 +49,6 @@
</div>
</div>
</template>
<!--汽车型号-->
<template v-if="info.type==1">
<div class="am-form-group">
<label class="am-para-label">指导价:</label>
<div class="am-para-input w200">
<input type="text" placeholder="输入指导价" name="" v-model="info.jsondata.price">
</div>
</div>
<div class="am-form-group">
<label class="am-para-label">订金:</label>
<div class="am-para-input w200">
<input type="text" placeholder="请输入订金" name="" v-model="info.jsondata.deposit">
</div>
</div>
</template>
<div class="am-form-group" style="margin-bottom: 2rem">
<div class="am-para-input">
<button class="am-btn am-btn-secondary" type="button" @click="saveEdit()">保存</button>
+1 -1
View File
@@ -75,7 +75,7 @@
<th width="6%"><span>市场平台价</span></th>
<th width="6%"><span>折扣%</span></th>
<th width="6%"><span>采购成本</span></th>
<th width="6%"><span>采购状态</span></th>
<th width="6%"><span>车辆状态</span></th>
</tr>
</thead>
<tbody>
Binary file not shown.