...
|
...
|
@@ -23,172 +23,11 @@ |
|
|
<form id="basicForm" role="form" class="form-horizontal form-bordered" method="post" action="{{action}}">
|
|
|
|
|
|
<div class="panel panel-default">
|
|
|
{{# data}}
|
|
|
<div class="panel-heading">
|
|
|
<h4 class="panel-title">基本信息</h4>
|
|
|
</div>
|
|
|
<div class="panel-body" id="basicInfo">
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">店铺 <span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<select id="shopId" class="form-control" required>
|
|
|
<option value="-1">店铺</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
|
|
|
<label class="col-sm-1 control-label">品牌 <span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<select id="brandId" class="form-control" required>
|
|
|
<option value="-1">品牌</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
|
|
|
<label class="col-sm-1 control-label">供应商 <span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<select id="supplierId" class="form-control" required>
|
|
|
<option value="-1">供应商</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">分类<span class="red">*</span></label>
|
|
|
<div class="col-sm-10">
|
|
|
<div id="tree"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">商品名称<span class="red">*</span></label>
|
|
|
<div class="col-sm-3">
|
|
|
<input type="text" id="productName" class="form-control" required/>
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">厂家编号</label>
|
|
|
<div class="col-sm-1">
|
|
|
<input type="text" id="factoryCode" class="form-control" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">货品年<span class="red">*</span></label>
|
|
|
<div class="col-sm-1">
|
|
|
<select id="goodsYears" class="form-control" required>
|
|
|
<option value="2015">2015</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">货品季<span class="red">*</span></label>
|
|
|
<div class="col-sm-1">
|
|
|
<select id="goodsSeason" class="form-control" required>
|
|
|
<option value="春">春</option>
|
|
|
<option value="夏">夏</option>
|
|
|
<option value="秋">秋</option>
|
|
|
<option value="冬">冬</option>
|
|
|
<option value="春夏">春夏</option>
|
|
|
<option value="秋冬">秋冬</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">商品属性<span class="red">*</span></label>
|
|
|
<div class="col-sm-1">
|
|
|
<select id="attribute" class="form-control" required>
|
|
|
<option value="1">普通商品</option>
|
|
|
<option value="2">赠品</option>
|
|
|
<option value="3">虚拟商品</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">商品话题</label>
|
|
|
<div class="col-sm-5">
|
|
|
<input type="text" id="productTag" class="form-control" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<!-- 【年龄层】默认 成人 ,成人和大童小童互斥,如果是童装,年龄层必填,并且大童小童可以复选。 -->
|
|
|
<label class="col-sm-2 control-label">年龄层<span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<label class="radio-inline">
|
|
|
<input type="checkbox" name="ageLevel" checked="checked" value="1">成人</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="checkbox" name="ageLevel" value="2">大童</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="checkbox" name="ageLevel" value="3">小童</label>
|
|
|
<input type="hidden" id="ageLevel" name="ageLevel" value="{{ageLevel}}" for="checkbox" required placeholder="年龄层" />
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">性别<span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="gender" value="1" checked="checked">男</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="gender" value="2">女</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="gender" value="3">通用</label>
|
|
|
<input type="hidden" id="gender" name="gender" value="{{gender}}" for="radio" required />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-4"></div>
|
|
|
<label class="col-sm-1 control-label">重点款<span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="brandLevel" value="1">是</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="brandLevel" value="0">否</label>
|
|
|
</div>
|
|
|
<input type="hidden" id="grade" value="{{grade}}" for="radio" required/>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">促销礼品</label>
|
|
|
<div class="col-sm-2">
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="brandLevel" value="Y">是</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="brandLevel" value="N">否</label>
|
|
|
<input id="isPromotionalGifts" type="hidden" value="{{isPromotionalGifts}}" for="radio" />
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">限量款</label>
|
|
|
<div class="col-sm-2">
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="brandLevel" value="1">是</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="brandLevel" value="0">否</label>
|
|
|
</div>
|
|
|
<input id="isLimited" type="hidden" value="{{isLimited}}" for="radio" />
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">是否限购</label>
|
|
|
<div class="col-sm-2">
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="brandLevel" value="Y">是</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="brandLevel" value="N">否</label>
|
|
|
</div>
|
|
|
<input type="hidden" id="isLimitbuy" value="{{isLimitbuy}}" for="radio" />
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">吊牌价<span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<input type="text" id="retailPrice" class="form-control" required value="{{retailPrice}}" />
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">销售价<span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<input type="text" id="salesPrice" class="form-control" required value="{{salesPrice}}" />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">预计上架时间<span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<input type="text" id="expectShelfTime" jsaction="time" value="{{expectShelfTime}}" required class="form-control" />
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">预计到货时间</label>
|
|
|
<div class="col-sm-2">
|
|
|
<input type="text" id="{{expectArrivalTime}}" jsaction="time" value="{{expectArrivalTime}}" class="form-control" />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="panel-heading">
|
...
|
...
|
@@ -199,26 +38,18 @@ |
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">颜色分类 <span class="red">*</span></label>
|
|
|
<p>
|
|
|
<button type="button" class="btn btn-default sortadd btn-xs" data-id="1">红色(+)</button>
|
|
|
{{#data}}
|
|
|
{{#each list}}
|
|
|
<button type="button" class="btn btn-default sortadd btn-xs" data-id="1">红色(+)</button>
|
|
|
{{/each}}
|
|
|
{{/data}}
|
|
|
</p>
|
|
|
</div>
|
|
|
<div id="basicTable"></div>
|
|
|
<!-- <div class="form-group">
|
|
|
<div class="col-sm-3">
|
|
|
<p>色系:粉红色</p>
|
|
|
<button type="button" class="btn btn-default btn-xs">删除</button>
|
|
|
</div>
|
|
|
<div class="col-sm-3">
|
|
|
<input type="file" id="filename" name="filename" />
|
|
|
</div>
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
</div>
|
|
|
</div> -->
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
{{/ data}}
|
|
|
<div class="panel-footer">
|
|
|
<div class="row">
|
|
|
<div class="col-sm-8 col-sm-offset-2">
|
...
|
...
|
@@ -243,12 +74,7 @@ |
|
|
<!-- <label class="col-sm-1 red">*</label> -->
|
|
|
<div class="col-sm-2">
|
|
|
<select class="form-control btn-sort-chima" data-index=[[index]] data-eq=[[__index]] value='[[item.sizeId]]' required placeholder="尺码">
|
|
|
<option value="-1">选择尺码</option>
|
|
|
<option value="XS">XS</option>
|
|
|
<option value="S">S</option>
|
|
|
<option value="M">M</option>
|
|
|
<option value="L">L</option>
|
|
|
<option value="ML">ML</option>
|
|
|
<option value="[[item.sizeId||'-1']]">[[item.sizeName||'选择尺码']]</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-2">
|
...
|
...
|
@@ -260,8 +86,8 @@ |
|
|
<div class="col-sm-2">
|
|
|
<select class="form-control btn-sort-kebu" value="[[item.isSuppled]]" data-index=[[index]] data-eq=[[__index]]>
|
|
|
<option value="-1">能否补货</option>
|
|
|
<option value="1">可补货</option>
|
|
|
<option value="2">不可补货</option>
|
|
|
<option value="Y">可补货</option>
|
|
|
<option value="N">不可补货</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-2">
|
...
|
...
|
@@ -274,4 +100,169 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
[[/each]]
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="template2">
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">店铺 <span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<select id="shopId" class="form-control" required>
|
|
|
<option value="[[shopId||'-1']]">[[shopName||'店铺']]</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
|
|
|
<label class="col-sm-1 control-label">品牌 <span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<select id="brandId" class="form-control" required>
|
|
|
<option value="[[brandId||'-1']]">[[brandName||'品牌']]</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
|
|
|
<label class="col-sm-1 control-label">供应商 <span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<select id="supplierId" class="form-control" required>
|
|
|
<option value="[[supplierId||'-1']]">[[supplierName||'供应商']]</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">分类<span class="red">*</span></label>
|
|
|
<div class="col-sm-10">
|
|
|
<div id="tree"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">商品名称<span class="red">*</span></label>
|
|
|
<div class="col-sm-3">
|
|
|
<input type="text" id="productName" class="form-control" value="[[productName]]" required/>
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">厂家编号</label>
|
|
|
<div class="col-sm-1">
|
|
|
<input type="text" id="factoryCode" value="[[factoryCode]]" class="form-control" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">货品年<span class="red">*</span></label>
|
|
|
<div class="col-sm-1">
|
|
|
<select id="goodsYears" class="form-control" required>
|
|
|
<option value="2015">2015</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">货品季<span class="red">*</span></label>
|
|
|
<div class="col-sm-1">
|
|
|
<select id="goodsSeason" class="form-control" value="[[goodsSeason]]" required>
|
|
|
<option value="1">春</option>
|
|
|
<option value="2">夏</option>
|
|
|
<option value="3">秋</option>
|
|
|
<option value="4">冬</option>
|
|
|
<option value="5">春夏</option>
|
|
|
<option value="6">秋冬</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">商品属性<span class="red">*</span></label>
|
|
|
<div class="col-sm-1">
|
|
|
<select id="attribute" class="form-control" value="[[attribute]]" required>
|
|
|
<option value="1">普通商品</option>
|
|
|
<option value="2">赠品</option>
|
|
|
<option value="3">虚拟商品</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">商品话题</label>
|
|
|
<div class="col-sm-5">
|
|
|
<input type="text" id="productTag" class="form-control" value="[[productTag]]" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<!-- 【年龄层】默认 成人 ,成人和大童小童互斥,如果是童装,年龄层必填,并且大童小童可以复选。 -->
|
|
|
<label class="col-sm-2 control-label">年龄层<span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<label class="radio-inline">
|
|
|
<input type="checkbox" name="ageLevel" value="1">成人</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="checkbox" name="ageLevel" value="2">大童</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="checkbox" name="ageLevel" value="3">小童</label>
|
|
|
<input type="hidden" id="ageLevel" name="ageLevel" value="[[ageLevel||'1']]" for="checkbox" placeholder="年龄层" />
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">性别<span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="gender" value="1">男</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="gender" value="2">女</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="gender" value="3">通用</label>
|
|
|
<input type="hidden" id="gender" name="gender" value="[[gender||'1']]" for="radio" required />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-4"></div>
|
|
|
<label class="col-sm-1 control-label">重点款<span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="grade" value="1">是</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="grade" value="0">否</label>
|
|
|
</div>
|
|
|
<input type="hidden" id="grade" value="[[grade]]" for="radio" required/>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">促销礼品</label>
|
|
|
<div class="col-sm-2">
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="isPromotionalGifts" value="Y">是</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="isPromotionalGifts" value="N">否</label>
|
|
|
<input id="isPromotionalGifts" type="hidden" value="[[isPromotionalGifts]]" for="radio" />
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">限量款</label>
|
|
|
<div class="col-sm-2">
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="isLimited" value="Y">是</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="isLimited" value="N">否</label>
|
|
|
</div>
|
|
|
<input id="isLimited" type="hidden" value="[[isLimited]]" for="radio" />
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">是否限购</label>
|
|
|
<div class="col-sm-2">
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="brandLevel" value="Y">是</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="brandLevel" value="N">否</label>
|
|
|
</div>
|
|
|
<input type="hidden" id="isLimitbuy" value="[[isLimitbuy]]" for="radio" />
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">吊牌价<span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<input type="text" id="retailPrice" class="form-control" required value="[[retailPrice]]" />
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">销售价<span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<input type="text" id="salesPrice" class="form-control" required value="[[salesPrice]]" />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">预计上架时间<span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<input type="text" id="expectShelfTime" jsaction="time" value="[[expectShelfTime]]" required class="form-control" />
|
|
|
</div>
|
|
|
<label class="col-sm-1 control-label">预计到货时间</label>
|
|
|
<div class="col-sm-2">
|
|
|
<input type="text" id="[[expectArrivalTime]]" jsaction="time" value="[[expectArrivalTime]]" class="form-control" />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
</script> |
|
|
\ No newline at end of file |
...
|
...
|
|