|
@@ -0,0 +1,258 @@
|
|
|
+<!DOCTYPE HTML>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta name="renderer" content="webkit|ie-comp|ie-stand">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
+ <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
|
|
|
+ <meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
|
+<#include "/base/add_base.ftl">
|
|
|
+ <title>添加快递策略 - H-ui.filter v2.4</title>
|
|
|
+ <style>
|
|
|
+ .tit{position: relative;text-align: left;font-size: 16px;padding-left: 10px;}
|
|
|
+ .tit:after{content: '';position: absolute;left: 0;top: 20%;height: 60%;width: 3px;background-color: #32a3d8;}
|
|
|
+ .tit-2{position: relative;font-size: 16px;padding-left: 10px;color: #50a2ea;display: inline-block;}
|
|
|
+ .tit-2:after{content: '';position: absolute;left: 0;top: 50%;height: 6px;width: 6px;border-radius: 6px;margin-top: -3px; background-color: #32a3d8;}
|
|
|
+ .my-title{font-weight: 500;padding-left: 15px;position: relative;}
|
|
|
+ .my-title:after{content: '';position: absolute;left: 0;top:12%;width: 3px;height: 80%;background: #32a3d8;}
|
|
|
+ .my-input{padding: 8px 5px;width: 80%;border:1px solid rgba(0,0,0,.1);}
|
|
|
+ .my-input-date{padding: 8px 10px;border:1px solid rgba(0,0,0,.1);width: 80%;background: url(http://s.iamberry.com/images/rili-1.png) 98.5% center no-repeat; background-size:auto 50%;}
|
|
|
+ .input-box{margin: 18px 0;}
|
|
|
+ .input-dic{float: left;margin:5px 10px 0 0;font-size: 14px;}
|
|
|
+ .add-list{list-style-type: none;padding: 10px;background-color: #f5f5f5;width: 60%;float: left;margin: 0;}
|
|
|
+ .add-list>li{margin: 10px 0;}
|
|
|
+ .my-textarea{padding: 5px 10px;width: 77%;border:1px solid rgba(0,0,0,.1);margin-left: 12.5%;}
|
|
|
+ .my-btn-reset{padding: 10px 20px;width: 150px; background-color: #fff;color: #32a3d8;border: 1px solid #32a3d8;cursor:pointer;margin: 10px 10px 0 10px;}
|
|
|
+ .my-btn-submit{padding: 10px 20px;width: 158px; background-color: #50a2ea;color: #fff;border: 1px solid #50a2ea;cursor:pointer;margin: 10px 10px 0 10px;}
|
|
|
+ .my-select {
|
|
|
+ border: 1px solid rgba(0,0,0,.1);
|
|
|
+ padding: 6px 50px 6px 15px;
|
|
|
+ height: 34px;
|
|
|
+ -webkit-appearance: none;
|
|
|
+ appearance: none;
|
|
|
+ background: url(/common/images/pts/select-11.png) right center no-repeat;
|
|
|
+ background-size: auto 100%;
|
|
|
+ }
|
|
|
+ .check-box, .radio-box{padding-left: 0;}
|
|
|
+ input[type=radio]{-webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/radio-1.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
+ input[type=radio]:checked{-webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/radio-2.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
+ .huanhang{ float:left}
|
|
|
+ input[type=radio]{-webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/radio-1.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
+ input[type=radio]:checked{-webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/radio-2.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
+ </style>
|
|
|
+ <meta name="keywords" content="${path}">
|
|
|
+ <meta name="description" content="H-ui.admin v3.0,是一款由国人开发的轻量级扁平化网站后台模板,完全免费开源的网站后台管理系统模版,适合中小型CMS后台系统。">
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<article class="page-container">
|
|
|
+ <form class="form form-horizontal" id="form-admin-add">
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-3">
|
|
|
+ <div class="tit-2">新增快递策略</div>
|
|
|
+ </label>
|
|
|
+ <div class="formControls col-9">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-3 col-sm-3"><span class="c-red">*</span>销售渠道:</label>
|
|
|
+ <div class="formControls col-9 col-sm-9">
|
|
|
+ <select id="companyId" class="my-select" name="strategyCompanyId" style="width: 195px">
|
|
|
+ <option value="">选择销售公司</option>
|
|
|
+ <#if companyInfoList?? && (companyInfoList?size > 0) >
|
|
|
+ <#list companyInfoList as type>
|
|
|
+ <option value ="${type.companyId!}">${type.companyName!}</option>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </select>
|
|
|
+ <select id="storeId" class="my-select" name="strategyStoreId" style="width: 195px">
|
|
|
+ <option value="">选择销售店铺</option>
|
|
|
+ <#if storeList?? && (storeList?size > 0) >
|
|
|
+ <#list storeList as type>
|
|
|
+ <option value ="${type.storeId!}">${type.storeName!}</option>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <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="strategyProvinceNumber" class="my-select" name="strategyProvinceNumber" style="width: 195px">
|
|
|
+ <option value="">选择省份</option>
|
|
|
+ <#if provinceList?? && (provinceList?size > 0) >
|
|
|
+ <#list provinceList as province>
|
|
|
+ <option value ="${province.divisionCode!}">${province.province!}</option>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <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">
|
|
|
+ <#if (productList?size > 0)>
|
|
|
+ <#list productList as product>
|
|
|
+ <option value="${product.productId!""}" >${product.productName!""}</option>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="productColorId" name="strategyColorId" class="my-select" style="width: 195px">
|
|
|
+ <#if (productColorList?size > 0)>
|
|
|
+ <#list productColorList as productColor>
|
|
|
+ <option value="${productColor.colorId!""}" >${productColor.colorName!""}</option>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <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="strategyPostFirm" name="strategyPostFirm" class="my-select" style="width: 195px">
|
|
|
+ <#if (logisticsInfoList?size > 0)>
|
|
|
+ <#list logisticsInfoList as logisticsInfo>
|
|
|
+ <option value="${logisticsInfo.logisticsRstCode!""}" >${logisticsInfo.logisticsName!""}</option>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <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;">
|
|
|
+ <input class="my-input" type="text" value="${priorityNum!""}" name="strategyPriority" id="strategyPriority" placeholder="请输入优先级" style="width: 78%;"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-3 col-sm-3 huanhang" style="text-align: right;margin-top: 14px;"></label>
|
|
|
+ <div class="formControls col-9 col-sm-9 huanhang" style="margin: 10px 0px 10px 0;padding-left: 0;">
|
|
|
+ <button type="button" class="my-btn-submit" onclick="addDeliveryStrategy();" style="margin-top: 20px;">确认新建</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+</article>
|
|
|
+<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
|
+<script type="text/javascript">
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 打开员工列表
|
|
|
+ */
|
|
|
+ function add_employee() {
|
|
|
+ layer_show("员工列表","${path}/admin/employee/employee_list?pageSize=1000","800","500");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 删除员工
|
|
|
+ */
|
|
|
+ function delEmployee($this){
|
|
|
+ $this.parents("tr").remove();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 添加回访信息
|
|
|
+ */
|
|
|
+ function addDeliveryStrategy() {
|
|
|
+ var companyId = $("#companyId").val();
|
|
|
+ if(companyId == null || companyId == ""){
|
|
|
+ layer.msg("销售公司不能为空!", {icon: 5, time: 2000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var storeId = $("#storeId").val();
|
|
|
+ if(storeId == null || storeId == ""){
|
|
|
+ layer.msg("店铺不能为空!", {icon: 5, time: 2000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var strategyProvinceNumber = $("#strategyProvinceNumber").val();
|
|
|
+ if(strategyProvinceNumber == null || strategyProvinceNumber == ""){
|
|
|
+ layer.msg("省份不能为空!", {icon: 5, time: 2000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var strategyPriority = $("#strategyPriority").val();
|
|
|
+ if(strategyPriority == null || strategyPriority == ""){
|
|
|
+ layer.msg("优先级不能为空!", {icon: 5, time: 2000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ data: $('#form-admin-add').serialize(),
|
|
|
+ url: "${path}/admin/deliveryStrategy/addDeliveryStrategy",
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ layer.msg("添加成功!", {icon: 1, time: 1000},function () {
|
|
|
+ window.location.href= '${path}/admin/deliveryStrategy/select_deliveryStrategy_list';
|
|
|
+ });
|
|
|
+ /*layer.msg("添加成功!", {icon: 1, time: 2000});*/
|
|
|
+ } else {
|
|
|
+ layer.msg("添加失败!", {icon: 5, time: 5000});
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ layer.msg("添加失败!", {icon: 5, time: 2000});
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ $("#companyId").change(function (){
|
|
|
+ setStore($("#companyId").val());
|
|
|
+ });
|
|
|
+ /*获取销售店铺*/
|
|
|
+ function setStore(companyId){
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ data: {
|
|
|
+ companyId : companyId
|
|
|
+ },
|
|
|
+ url: "${path}/admin/customer/select_storeInfo",
|
|
|
+ success: function(data){
|
|
|
+ $("#storeId").empty(); //清空下拉框
|
|
|
+ $("#storeId").append("<option value=''>选择销售店铺</option>");
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ for(var i=0;i<data.returnMsg.storeInfoList.length;i++){
|
|
|
+ var storeInfo = data.returnMsg.storeInfoList[i];
|
|
|
+ $("#storeId").append("<option data-id='"+storeInfo.storeId+"' value='"+ storeInfo.storeId +"'>"+ storeInfo.storeName +"</option>");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ //查询产品颜色信息
|
|
|
+ $('#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){
|
|
|
+ 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>
|