|
@@ -65,7 +65,7 @@
|
|
|
</#if>
|
|
|
</select>
|
|
|
<select id="storeId" class="my-select" name="strategyStoreId" style="width: 195px">
|
|
|
- <option value="">选择销售店铺</option>
|
|
|
+ <option value="0" <#if deliveryStrategy.strategyStoreId == 0>selected</#if>>所有店铺</option>
|
|
|
<#if storeInfoList?? && (storeInfoList?size > 0) >
|
|
|
<#list storeInfoList as type>
|
|
|
<option value ="${type.storeId!}" <#if deliveryStrategy.strategyStoreId == type.storeId>selected</#if>>${type.storeName!}</option>
|
|
@@ -78,7 +78,7 @@
|
|
|
<label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;margin-top: 14px;"><span class="c-red">*</span>地址:</label>
|
|
|
<div class="formControls col-9 col-sm-9 huanhang" style="margin: 10px 0px 10px 0;">
|
|
|
<select id="strategyProvinceNumber" class="my-select" name="strategyProvinceNumber" style="width: 195px">
|
|
|
- <option value="">选择省份</option>
|
|
|
+ <option value="0" <#if deliveryStrategy.strategyProvinceNumber == 0>selected</#if>>所有省份</option>
|
|
|
<#if provinceList?? && (provinceList?size > 0) >
|
|
|
<#list provinceList as province>
|
|
|
<option value ="${province.divisionCode!}" <#if deliveryStrategy.strategyProvinceNumber == province.divisionCode>selected</#if>>${province.province!}</option>
|
|
@@ -90,7 +90,8 @@
|
|
|
<div class="row cl">
|
|
|
<label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;margin-top: 14px;"><span class="c-red">*</span>产品:</label>
|
|
|
<div class="formControls col-9 col-sm-9 huanhang" style="margin: 10px 0px 10px 0;">
|
|
|
- <select id="productId" name="productId" class="my-select" style="width: 195px">
|
|
|
+ <select id="productId" name="strategyProductId" class="my-select" style="width: 195px">
|
|
|
+ <option value="0" <#if deliveryStrategy.strategyProductId == 0>selected</#if>>所有产品</option>
|
|
|
<#if (productList?size > 0)>
|
|
|
<#list productList as product>
|
|
|
<option value="${product.productId!""}" <#if productId == product.productId>selected</#if> >${product.productName!""}</option>
|
|
@@ -99,6 +100,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="productColorId" name="strategyColorId" class="my-select" style="width: 195px">
|
|
|
+ <option value="0" <#if deliveryStrategy.strategyColorId == 0>selected</#if>>所有颜色</option>
|
|
|
<#if (productColorList?size > 0)>
|
|
|
<#list productColorList as productColor>
|
|
|
<option value="${productColor.colorId!""}" <#if deliveryStrategy.strategyColorId == productColor.colorId>selected</#if> >${productColor.colorName!""}</option>
|
|
@@ -199,7 +201,7 @@
|
|
|
url: "${path}/admin/customer/select_storeInfo",
|
|
|
success: function(data){
|
|
|
$("#storeId").empty(); //清空下拉框
|
|
|
- $("#storeId").append("<option value=''>选择销售店铺</option>");
|
|
|
+ $("#storeId").append("<option value='0'>所有店铺</option>");
|
|
|
if (data.returnCode == 200) {
|
|
|
for(var i=0;i<data.returnMsg.storeInfoList.length;i++){
|
|
|
var storeInfo = data.returnMsg.storeInfoList[i];
|
|
@@ -211,6 +213,36 @@
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+ //查询产品颜色信息
|
|
|
+ $('#productId').change(function(){
|
|
|
+ getProduct($(this).children('option:selected').val());
|
|
|
+ })
|
|
|
+ function getProduct(productId) {
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ url: "${path}/admin/product/get_product",
|
|
|
+ data:{colorProductId:productId},// 你的formid
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ $("#productColorId").empty();
|
|
|
+ if(data.returnMsg.productColorList.length > 0){
|
|
|
+ $("#productColorId").append("<option value='0'>所有颜色</option>");
|
|
|
+ for(var i=0;i<data.returnMsg.productColorList.length;i++){
|
|
|
+ var productColor = data.returnMsg.productColorList[i];
|
|
|
+ $("#productColorId").append('<option value='+productColor.colorId+'>'+productColor.colorName+'</option>');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ layer.msg('添加错误',{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|