作者 Cool

商品管理优化

... ... @@ -41,21 +41,21 @@
<ul class="row list-inline plupload-preview" id="p-images"></ul>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Spec_type')}:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-spec_type" data-rule="required" class="form-control selectpicker" name="row[spec_type]">
{foreach name="specTypeList" item="vo"}
<option value="{$key}" {in name="key" value="10"}selected{/in}>{$vo}</option>
{/foreach}
</select>
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Spec_type')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- -->
<!-- <select id="c-spec_type" data-rule="required" class="form-control selectpicker" name="row[spec_type]">-->
<!-- {foreach name="specTypeList" item="vo"}-->
<!-- <option value="{$key}" {in name="key" value="10"}selected{/in}>{$vo}</option>-->
<!-- {/foreach}-->
<!-- </select>-->
</div>
</div>
<!-- </div>-->
<!-- </div>-->
<!-- 商品规格属性 start -->
<div class="goods-spec-many form-group">
<div class="goods-spec-many form-group" style="display:block;">
<!-- <label class="control-label col-xs-12 col-sm-2"></label>-->
<div class="goods-spec-box col-xs-12 col-sm-11" style="background-color: white;">
<!-- 规格属性 -->
... ... @@ -121,38 +121,38 @@
</div>
</div>
<div class="goods-spec-single">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">商品编码:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-goods_no" class="form-control form-control" name="spec[goods_no]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">商品价格:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-goods_price" data-rule="required" class="form-control form-control" name="spec[goods_price]" type="number" value="0">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">商品划线价:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-line_price" class="form-control form-control" name="spec[line_price]" type="number" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">当前库存数量:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-stock_num" class="form-control form-control" name="spec[stock_num]" type="number" value="100">
</div>
</div>
<!--<div class="goods-spec-single">-->
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">商品编码:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-goods_no" class="form-control form-control" name="spec[goods_no]" type="text" value="">-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">商品价格:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-goods_price" data-rule="required" class="form-control form-control" name="spec[goods_price]" type="number" value="0">-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">商品划线价:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-line_price" class="form-control form-control" name="spec[line_price]" type="number" value="">-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">当前库存数量:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-stock_num" class="form-control form-control" name="spec[stock_num]" type="number" value="100">-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">商品重量(Kg):</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-goods_weight" class="form-control form-control" name="spec[goods_weight]" type="number" value="1">-->
<!-- </div>-->
<!-- </div>-->
</div>
<!--</div>-->
<!-- 商品规格属性 end -->
<!-- <div class="form-group">-->
... ...
... ... @@ -38,21 +38,21 @@
<ul class="row list-inline plupload-preview" id="p-images"></ul>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Spec_type')}:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-spec_type" data-rule="required" class="form-control selectpicker" name="row[spec_type]">
{foreach name="specTypeList" item="vo"}
<option value="{$key}" {in name="key" value="$row.spec_type"}selected{/in}>{$vo}</option>
{/foreach}
</select>
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Spec_type')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- -->
<!-- <select id="c-spec_type" data-rule="required" class="form-control selectpicker" name="row[spec_type]">-->
<!-- {foreach name="specTypeList" item="vo"}-->
<!-- <option value="{$key}" {in name="key" value="$row.spec_type"}selected{/in}>{$vo}</option>-->
<!-- {/foreach}-->
<!-- </select>-->
</div>
</div>
<!-- </div>-->
<!-- </div>-->
<!-- 商品规格属性 start -->
<div class="goods-spec-many form-group" style="display: <?= $row['spec_type'] === '20' ? 'block' : 'none' ?>;" >
<div class="goods-spec-many form-group" style="display: block;" >
<!-- <label class="control-label col-xs-12 col-sm-2"></label>-->
<div class="goods-spec-box col-xs-12 col-sm-11" style="background-color: white;">
<!-- 规格属性 -->
... ... @@ -118,38 +118,38 @@
</div>
</div>
<div class="goods-spec-single" style="display: <?= $row['spec_type'] === '10' ? 'block' : 'none' ?>;">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">商品编码:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-goods_no" class="form-control form-control" name="spec[goods_no]" type="text" value="{$row.spec.0.goods_no}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">商品价格:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-goods_price" data-rule="required" class="form-control form-control" name="spec[goods_price]" type="number" value="{$row.spec.0.goods_price}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">商品划线价:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-line_price" class="form-control form-control" name="spec[line_price]" type="number" value="{$row.spec.0.line_price}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">当前库存数量:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-stock_num" class="form-control form-control" name="spec[stock_num]" type="number" value="{$row.spec.0.stock_num}">
</div>
</div>
<!-- <div class="goods-spec-single" style="display: <?= $row['spec_type'] === '10' ? 'block' : 'none' ?>;"> -->
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">商品编码:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-goods_no" class="form-control form-control" name="spec[goods_no]" type="text" value="{$row.spec.0.goods_no}">-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">商品价格:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-goods_price" data-rule="required" class="form-control form-control" name="spec[goods_price]" type="number" value="{$row.spec.0.goods_price}">-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">商品划线价:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-line_price" class="form-control form-control" name="spec[line_price]" type="number" value="{$row.spec.0.line_price}">-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">当前库存数量:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-stock_num" class="form-control form-control" name="spec[stock_num]" type="number" value="{$row.spec.0.stock_num}">-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">商品重量(Kg):</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-goods_weight" class="form-control form-control" name="spec[goods_weight]" type="number" value="{$row.spec.0.goods_weight}">-->
<!-- </div>-->
<!-- </div>-->
</div>
<!-- </div>-->
<!-- 商品规格属性 end -->
<!-- <div class="form-group">-->
... ...
... ... @@ -30,7 +30,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','template','litestoreg
// {field: 'category.name', title: __('Category.name')},
// {field: 'category_id', visible:false,title: __('Category_id')},
{field: 'images', title: __('Images'), formatter: Table.api.formatter.images},
{field: 'spec_type', title: __('Spec_type'), searchList: {"10":__('Spec_type 10'),"20":__('Spec_type 20')}, formatter: Table.api.formatter.normal},
// {field: 'spec_type', title: __('Spec_type'), searchList: {"10":__('Spec_type 10'),"20":__('Spec_type 20')}, formatter: Table.api.formatter.normal},
// {field: 'deduct_stock_type', title: __('Deduct_stock_type'), searchList: {"10":__('Deduct_stock_type 10'),"20":__('Deduct_stock_type 20')}, formatter: Table.api.formatter.normal},
// {field: 'freight.name', title: __('Freight.name')},
{field: 'sales_initial', title: __('Sales_initial')},
... ...