123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501 |
- <!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">
- <link href="${path}/common/lib/jquery.ui/jquery-ui.css" rel="stylesheet" type="text/css"/>
- <link href="${path}/common/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css"/>
- <link href="${path}/common/lib/icheck/icheck.css" rel="stylesheet" type="text/css"/>
- <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;text-align: left;font-size: 16px;padding-left: 10px;}
- .tit-2:after{content: '';position: absolute;left: 0;top: 20%;height: 60%;width: 3px;background-color: #32a3d8;}
- #province select{margin-right:10px; width:100px;height: 31px;-webkit-appearance:none !important;appearance:none;background: url(${path}/common/images/cm/select-1.png) right center no-repeat;background-size: auto 100%;padding-left:3px;padding-right: 25px;}
- #suggest, #suggest2 {width:200px}
- .gray {color:gray}
- .ac_results {background:#fff;border:1px solid #7f9db9;position: absolute;z-index: 10000;display: none}
- .ac_results li a {white-space: nowrap;text-decoration:none;display:block;color:#05a;padding:1px 3px}
- .ac_results li {border:1px solid #fff}
- .ac_over, .ac_results li a:hover {background:#c8e3fc}
- .ac_results li a span {float:right}
- .ac_result_tip {border-bottom:1px dashed #666;padding:3px}
- .select-box{background: url(${path}/common/images/cm/select-1.png) right center no-repeat;background-size: auto 100%;}
- .select-box select{-webkit-appearance:none !important;background-color: transparent; appearance:none;padding-right: 25px;}
- .dalog-ask{position: absolute;left:60%;top:0;-webkit-transform: translateY(-30%);transform: translateY(-30%);display: none;background-color: #fff;z-index: 10;}
- .tag{ width:300px; min-height:300px; border:1px solid #32a3d8; position:relative;background-color: #fff;line-height: 1.5;padding: 10px 12px;}
- .tag em{display:block; border-width:15px; position:absolute; top:30%; left:-30px;border-style:solid dashed dashed; border-color:transparent #32a3d8 transparent transparent;font-size:0; line-height:0;}
- .dalog-ask .ask{color: #000;margin: 10px 0 5px 0;}
- .dalog-ask .answer{color: #666;margin-bottom: 10px;}
- .dalog-ask .answer:hover{color: #32a3d8;cursor: pointer;}
- .time-line-list{list-style: none;width: 100%;margin-left: -20px;}
- .time-line-list>li{position: relative;float: left; text-align: center;width: 100px;overflow: hidden;white-space: nowrap;word-break: break-all;padding: 2px 0;}
- .time-line-list .number{display: inline-block; padding: 2px; background: #32a3d8;border: 2px solid #fff;box-shadow:0 0 0 1px #32a3d8;width: 20px;height: 20px;color: #fff;line-height: 20px;border-radius: 50%;}
- .time-line-list>li:before{content:'';position: absolute;height: 1px;width: 30%;right:0;top: 15px; background-color: #32a3d8;}
- .time-line-list>li:after{content: '';position: absolute;height: 1px;width: 30%;left: 0;top: 15px;background:#32a3d8;}
- .time-line-list>li:first-child:after,.time-line-list>li:last-child:before{display: none;}
- .time-line-list .arrow{border-width:7px; position:absolute; left:25%; top:9px;border-style:solid dashed dashed; border-color:transparent transparent transparent #32a3d8;font-size:0; line-height:0;}
- .time-line-list>li:first-child .arrow{display: none;}
- .table-bg th{background-color: #e2f6ff;}
- .update-parts>span{margin-right: 10px;padding: 3px 4px;background-color: #effaff;border: 1px solid #32a3d8;}
- .my-search-input{padding-left: 30px;background: url(${path}/common/images/cm/search.png) 6px center no-repeat;background-size: auto 60%; }
- </style>
- <title>添加签收 - 客诉管理 - RST</title>
- </head>
- <body>
- <nav class="breadcrumb"><i class="Hui-iconfont"></i> 首页
- <span class="c-gray en">></span> 客诉管理
- <span class="c-gray en">></span> 添加签收
- <a class="btn radius r"
- style="line-height:1.6em;margin-top:3px;background: #32a3d8;color: #fff;border:1px solid #32a3d8;"
- href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a>
- </nav>
- <article class="page-container" style="padding: 10px;">
- <div class="pd-20 cl">
- <form action="" method="post" class="form form-horizontal" id="form-signclosed-add">
- <#--<div class="row cl">
- <label class="form-label col-3 col-sm-3"><span class="c-red">*</span>签收类型:</label>
- <div class="formControls col-7 col-sm-7 skin-minimal">
- <div class="radio-box">
- <input type="radio" id="tel-1" name="signclosedType" value="1" datatype="*" checked nullmsg="请选择签收类型!">
- <label for="tel-1">客诉寄回</label>
- </div>
- <div class="radio-box">
- <input type="radio" id="tel-2" name="signclosedType" value="2">
- <label for="tel-2">代理商退货</label>
- </div>
- <div class="radio-box">
- <input type="radio" id="tel-3" name="signclosedType" value="3">
- <label for="tel-3">其他</label>
- <input type="text" style="width: 114px;margin-left: 10px;" class="input-text" placeholder="选择其他时有值" id="signclosedTypeName" name="signclosedTypeName">
- </div>
- </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-2 col-sm-2 skin-minimal">
- <span class="select-box">
- <select id="signclosedLogistics" name="signclosedLogistics" class="select">
- <option value="">请选择物流公司</option>
- <option value="sto">申通快递</option>
- <option value="yto">圆通快递</option>
- <option value="sf">顺丰快递</option>
- <option value="ems">邮政EMS</option>
- <option value="zto">中通快递</option>
- <option value="zjs">宅急送</option>
- <option value="yunda">韵达快递</option>
- <option value="cces">cces快递</option>
- <option value="pick">上门提货</option>
- <option value="htky">汇通快递</option>
- <option value="ttkdex">天天快递</option>
- <option value="stars">星晨急便</option>
- <option value="jd">京东快递</option>
- <option value="01">其他</option>
- <option value="02">上门送货</option>
- </select>
- </span>
- </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-2 col-sm-2 skin-minimal">
- <input type="text" style="" class="input-text" placeholder="物流单号" id="signclosedLogisticsNumber" name="signclosedLogisticsNumber">
- </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-2 col-sm-2 skin-minimal">
- <input type="text" style="" class="input-text my-input-date Wdate" placeholder="签收日期" onClick="WdatePicker({skin:'whyGreen',maxDate:'%y-%M-%d'})" id="signclosed_date" name="signclosed_date" readonly="readonly"/>
- </div>
- </div>
- <div class="row cl address_info" style="position: relative;">
- <label class="form-label col-3 col-sm-3">寄件区域:</label>
- <div class="formControls col-2 col-sm-2" style="">
- <span class="select-box">
- <select class="select init_province" id="provinces">
- </select>
- </span>
- </div>
- <div class="formControls col-2 col-sm-2">
- <span class="select-box">
- <select class="select init_city" id="city">
- </select>
- </span>
- </div>
- <div class="formControls col-2 col-sm-2" style="position: relative;">
- <span class="select-box">
- <select class="select init_country" id="area">
- </select>
- </span>
- </div>
- <input type="hidden" name="signclosedAddrProvinces" id="signclosedAddrProvinces" >
- <input type="hidden" name="signclosedAddrCity" id="signclosedAddrCity" >
- <input type="hidden" name="signclosedAddrArea" id="signclosedAddrArea" >
- </div>
- <div class="row cl" id="renewedProduct">
- <label class="form-label col-3 col-sm-3"><span class="c-red">*</span>签收产品:</label>
- <div class="formControls col-8 col-sm-8 text-c" id="produceSelect">
- <div>
- <input type="text" oninput="selectProduct();" onpropertychange="selectProduct();" class="input-text" style="width: 826px;float: left;" id="selectProcuct" name="selectProcuct" placeholder="请输入产品名称搜索">
- </div>
- <table class="table table-border table-bg table-bordered" style="width: 826px;">
- <thead>
- <tr class="text-c">
- <th style="text-align: center;" width="80">产品名称</th>
- <th style="text-align: center;" width="130">产品颜色</th>
- <th style="text-align: center;" width="100">产品配件</th>
- </tr>
- </thead>
- <tbody id="addProduct">
- <td colspan="3">暂无数据!</td>
- </tbody>
- </table>
- </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-2 col-sm-2 skin-minimal">
- <input type="text" class="input-text" placeholder="寄件方姓名/公司名称" id="signclosedSendName" name="signclosedSendName">
- </div>
- <div class="formControls col-2 col-sm-2 skin-minimal">
- <input type="text" class="input-text" placeholder="寄件方联系电话" id="signclosedSendTel" name="signclosedSendTel">
- </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-5 col-sm-5 skin-minimal">
- <div class="radio-box">
- <input type="radio" id="tel-4" name="signclosedIsFittings" value="1" datatype="*" checked >
- <label for="tel-4">缺少配件</label>
- </div>
- <div class="radio-box">
- <input type="radio" id="tel-5" name="signclosedIsFittings" value="2" datatype="*">
- <label for="tel-5">不缺配件</label>
- </div>
- </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-5 col-sm-5 skin-minimal">
- <div class="radio-box">
- <input type="radio" id="tel-6" name="signclosedIsQuality" value="1" datatype="*" checked >
- <label for="tel-6">需要品检</label>
- </div>
- <div class="radio-box">
- <input type="radio" id="tel-7" name="signclosedIsQuality" value="2" datatype="*">
- <label for="tel-7">不需要品检</label>
- </div>
- </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-5 col-sm-5 skin-minimal">
- <div class="radio-box">
- <input type="radio" id="tel-8" name="signclosedIsInto" value="1" datatype="*" checked >
- <label for="tel-8">已转入品检</label>
- </div>
- <div class="radio-box">
- <input type="radio" id="tel-9" name="signclosedIsInto" value="2" datatype="*">
- <label for="tel-9">未转入品检</label>
- </div>
- </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-5 col-sm-5 skin-minimal">
- <div class="radio-box">
- <input type="radio" id="tel-10" name="signclosedState" onclick="show();" value="1" datatype="*" checked >
- <label for="tel-10">已签收</label>
- </div>
- <div class="radio-box">
- <input type="radio" id="tel-11" name="signclosedState" onclick="hide();" value="2" datatype="*">
- <label for="tel-11">未签收</label>
- </div>
- </div>
- </div>
- <div class="row cl" id="objectsStateId">
- <label class="form-label col-3 col-sm-3"><span class="c-red">*</span>物件状态:</label>
- <div class="formControls col-5 col-sm-5 skin-minimal">
- <div class="radio-box">
- <input type="radio" id="tel-12" name="signclosedObjectsState" value="1" datatype="*" checked >
- <label for="tel-12">正常签收</label>
- </div>
- <div class="radio-box">
- <input type="radio" id="tel-13" name="signclosedObjectsState" value="2" datatype="*">
- <label for="tel-13">物件不对</label>
- </div>
- </div>
- </div>-->
- <div class="row cl">
- <label class="form-label col-3 col-sm-3">备注:</label>
- <div class="formControls col-5 col-sm-5">
- <textarea name="signclosedDesc" id="signclosedDesc" cols="" rows="2" class="textarea" placeholder="请填写备注"></textarea>
- </div>
- </div>
- <div class="row cl">
- <div class="col-2 col-sm-2 col-offset-3">
- <button onClick="add();" class="btn btn-block btn-primary size-XL" type="button">确认录入</button>
- </div>
- </div>
- </form>
- </div>
- </article>
- <script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
- <script type="text/javascript" src="${path}/common/lib/webuploader/0.1.5/webuploader.min.js"></script>
- <script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
- <script type="text/javascript" src="${path}/common/lib/cm.lib/jquery.provincesCity.js"></script>
- <script type="text/javascript" src="${path}/common/lib/cm.lib/provincesData.js"></script>
- <script type="text/javascript" src="${path}/common/lib/cm.lib/airCity.js"></script>
- <#--<script type="text/javascript" src="${path}/common/lib/cm.lib/dimensions.js"></script>-->
- <script type="text/javascript" src="${path}/common/lib/cm.lib/suggest.js"></script>
- <script type="text/javascript">
- /*初始化单选框样式*/
- $(function(){
- $('.skin-minimal input').iCheck({
- checkboxClass: 'icheckbox-blue',
- radioClass: 'iradio-blue',
- increaseArea: '20%'
- });
- });
- /*初始化省市区*/
- $(".address_info").initAddress();
- function hide() {
- $("#objectsStateId").hide();
- }
- function show() {
- $("#objectsStateId").show();
- }
- //动态回显产品js state
- function selectProduct(){
- var productName = $("#selectProcuct").val();
- if(productName == null || productName == ""){
- var productTable = '<td colspan="3">暂无数据!</td>';
- $("#addProduct").html(productTable);
- return false;
- }
- $.ajax({
- cache: true,
- type: "POST",
- url: "${path}/admin/signclosed/select_product",
- data:{'productName':productName},
- async: false,
- success: function(data){
- if (data.returnCode == 200) {
- $("#addProduct").html("");
- $.each(data.returnMsg.productList,function(i,value) {
- var colorTable = '';
- var fittingsTable = '';
- /*var colorlength = value.colorList.length;
- var fittingslength = value.fittingsList.length;*/
- if(value.colorList != null) {
- if (value.colorList.length > 0) {
- $.each(value.colorList, function (i, value) {
- colorTable = colorTable + '<td id="tdColorId' + value.colorId + '" style="border: 1px solid #DCDCDC;"><input type="checkbox" value="' + value.colorId + '" name="alreadyColorName" datatype="*">' + value.colorName + ''
- + '<input type="text" style="width: 50px;margin-left: 10px;" class="input-text" oninput="generateInput(' + value.colorId + ')" onpropertychange="generateInput(' + value.colorId + ')" placeholder="数量" id="alreadyColorId' + value.colorId + '" name="alreadyColorId' + value.colorId + '"><br>' +
- '</td>'
- });
- }else{
- colorTable = '暂无颜色,请先添加产品颜色';
- }
- }else {
- colorTable = '暂无颜色,请先添加产品颜色';
- }
- if(value.fittingsList != null) {
- if (value.fittingsList.length > 0) {
- $.each(value.fittingsList, function (i, value) {
- fittingsTable = fittingsTable + '<input type="checkbox" value="' + value.fittingsId + '" name="alreadyFittingsName" datatype="*">' + value.fittingsName + ''
- + '<input type="text" style="width: 50px;margin-left: 10px;" class="input-text" value="" placeholder="数量" id="alreadyFittingsId' + value.fittingsId + '" name="alreadyFittingsId' + value.fittingsId + '"><br>'
- });
- }else{
- fittingsTable = '暂无配件,请先添加配件';
- }
- }else{
- fittingsTable = '暂无配件,请先添加配件';
- }
- var productTable = '<tr">'
- +'<td>'+value.productName+'</td>'
- +'<td><table border="0">'+colorTable+'</table></td>'
- +'<td>'+fittingsTable+'</td>'
- +'</tr>';
- $("#addProduct").append(productTable);
- });
- }else{
- var productTable = '<td colspan="3">暂无数据!</td>';
- $("#addProduct").html(productTable);
- }
- },
- error: function(XmlHttpRequest, textStatus, errorThrown){
- layer.msg('查询错误,请刷新页面重试',{icon: 5,time:1000});
- }
- });
- }
- //填写数量后动态生成相同数量的文本框
- function generateInput(colorId){
- /*var inputList = "";
- var number = $("#alreadyColorId"+colorId).val();
- var machineNumberName = "machineNumber"+colorId;
- if(!/^\d+$/.test(number)){
- layer.msg('请输入正确的数量',{icon: 5,time:1000});
- $('input[name='+machineNumberName+']').remove();
- return false;
- }
- $('input[name='+machineNumberName+']').remove();
- for (var i = 1;i<=number;i++){
- inputList = inputList + '<input type="text" class="input-text" style="width: 110px;" placeholder="机器编号" name="machineNumber' + colorId + '" >';
- }
- $("#tdColorId"+colorId).append(inputList);*/
- }
- //动态回显产品js end
- $(function(){
- var province = listProvince(null,null);
- var provinceHtml = '';
- for(var i=0;i<province.length;i++){
- provinceHtml += '<option value="'+ province[i].provinceId +'">'+ province[i].province +'</option>';
- }
- $("#province").html(provinceHtml);
- var city = listCity(null,null);
- var cityHtml = '';
- for(var i=0;i<city.length;i++){
- cityHtml += '<option value="'+ city[i].cityId +'">'+ city[i].city +'</option>';
- }
- $("#city").html(cityHtml);
- /*监听省选择事件*/
- $(document).on('change', '#province', function() {
- var proId = $("#province").val();
- var city = listCity(proId,null);
- var cityHtml = '';
- for(var i=0;i<city.length;i++){
- cityHtml += '<option value="'+ city[i].cityId +'">'+ city[i].city +'</option>';
- }
- $("#city").html(cityHtml);
- });
- });
- function add() {
- /*var signclosedType = $("#signclosedType").val();
- if( signclosedType == 3){
- var signclosedTypeName = $("#signclosedTypeName").val();
- if( signclosedTypeName == null || signclosedTypeName == "" ) {
- layer.msg('类型为其他时需填值', {icon: 5, time: 1000});
- return;
- }
- }*/
- var signclosedLogistics = $("#signclosedLogistics").val();
- if( signclosedLogistics == null || signclosedLogistics == "" ){
- alert(signclosedLogistics);
- layer.msg('请选择物流公司',{icon: 5,time:1000});
- return;
- }
- var signclosedLogisticsNumber = $("#signclosedLogisticsNumber").val();
- if( signclosedLogisticsNumber == null || signclosedLogisticsNumber == "" ){
- layer.msg('物流单号不能为空',{icon: 5,time:1000});
- return;
- }
- if( signclosedLogisticsNumber.length > 300 ){
- layer.msg('物流单号长度不得大于20个字符',{icon: 5,time:1000});
- return;
- }
- var signclosedSendName = $("#signclosedSendName").val();
- if( signclosedSendName == null || signclosedSendName == "" ){
- layer.msg('寄件人姓名不能为空',{icon: 5,time:1000});
- return;
- }
- if( signclosedSendName.length > 10 ){
- layer.msg('寄件人姓名长度不得大于10个字符',{icon: 5,time:1000});
- return;
- }
- var signclosedSendTel = $("#signclosedSendTel").val();
- if( signclosedSendTel == null || signclosedSendTel == "" ){
- layer.msg('请输入寄件人电话',{icon: 5,time:1000});
- return;
- }
- if( signclosedSendTel.length > 11 ){
- layer.msg('寄件人电话长度不得大于11个字符',{icon: 5,time:1000});
- return;
- }
- /*var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
- if(!myreg.test(signclosedSendTel)){
- layer.msg('寄件人电话格式不正确',{icon: 5,time:1000});
- return;
- }*/
- var signclosed_date = $("#signclosed_date").val();
- if( signclosed_date == null || signclosed_date == "" ){
- layer.msg('请选择签收日期',{icon: 5,time:1000});
- return;
- }
- var signclosedDesc = $("#signclosedDesc").val();
- if( signclosedDesc != null || signclosedDesc == "" ){
- if( signclosedDesc.length > 300 ){
- layer.msg('备注长度不得大于150个字符',{icon: 5,time:1000});
- return;
- }
- }
- //设置省市县
- var provinces = $("#provinces").find("option:selected").text();
- var city = $("#city").find("option:selected").text();
- var area = $("#area").find("option:selected").text();
- $("#signclosedAddrProvinces").val(provinces);
- $("#signclosedAddrCity").val(city);
- $("#signclosedAddrArea").val(area);
- $.ajax({
- cache: true,
- type: "POST",
- url: "${path}/admin/signclosed/add_signclosed",
- data:$('#form-signclosed-add').serialize(),// 你的formid
- async: false,
- success: function(data){
- if (data.returnCode == 200) {
- layer.msg('签收成功',{icon: 1,time:1000},function () {
- location.replace(location.href);
- window.location.href= "${path}/admin/signclosed/select_signclosed_list";
- });
- } else if(data.returnCode == 502) {
- layer.msg('请至少选择一件已签收的产品',{icon: 5,time:1000});
- } else if(data.returnCode == 503) {
- layer.msg('请输入产品数量',{icon: 5,time:1000});
- } else if(data.returnCode == 504) {
- layer.msg('请输入配件数量',{icon: 5,time:1000});
- }else{
- layer.msg('添加失败',{icon: 5,time:1000});
- }
- },
- error: function(XmlHttpRequest, textStatus, errorThrown){
- layer.msg('添加错误',{icon: 5,time:1000});
- }
- });
- }
- </script>
- <!--/请在上方写此页面业务相关的脚本-->
- </body>
- </html>
|