|
@@ -48,6 +48,8 @@
|
|
|
.my-search-input{padding-left: 30px;background: url(${path}/common/images/cm/search.png) 6px center no-repeat;background-size: auto 60%; }
|
|
|
.input-produce{height: 25px;line-height: 25px}
|
|
|
.color-div{height: 30px;}
|
|
|
+
|
|
|
+ .table-td-color{}
|
|
|
</style>
|
|
|
<title>添加客诉 - 客诉管理 - RST</title>
|
|
|
</head>
|
|
@@ -143,7 +145,7 @@
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
<div class="clearfix">
|
|
|
- <input type="text" placeholder="搜索关键词" class="input-text ac_input" name="questionId" value="" id="search_text" autocomplete="off" style="width:60%"><button type="button" class="btn btn-primary" id="search_button">搜索</button>
|
|
|
+ <input type="text" placeholder="搜索关键词" class="input-text ac_input" name="questionIdMsg" value="" id="search_text" autocomplete="off" style="width:60%"><button type="button" class="btn btn-primary" id="search_button">搜索</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -159,11 +161,21 @@
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>问题标题:</label>
|
|
|
+ <div class="formControls col-5 col-sm-5">
|
|
|
+ <input type="text" class="input-text" style="width: 625px;" name="describeTitle" id="describeTitle">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div class="row cl">
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>问题内容:</label>
|
|
|
<div class="formControls col-5 col-sm-5">
|
|
|
<input type="hidden" name="questionId" id="questionId">
|
|
|
- <script id="describeContentText" type="text/plain" style="width:650px;height:250px;"></script>
|
|
|
+ <script id="describeContentText" type="text/plain" style="width:650px;height:250px;">
|
|
|
+ </script>
|
|
|
+ </script>
|
|
|
<input type="hidden" name="describeContent" id="describeContent">
|
|
|
</div>
|
|
|
</div>
|
|
@@ -184,6 +196,13 @@
|
|
|
<div class="formControls col-10 col-sm-10">
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <input type="hidden" id="sendProdcues" name="sendProdcuesJson" value="">
|
|
|
+ <input type="hidden" id="sendFittings" name="sendFittingsJson" value="">
|
|
|
+ <input type="hidden" id="closedProdcues" name="closedProdcuesJson" value="">
|
|
|
+ <input type="hidden" id="closedFittings" name="closedFittingsJson" value="">
|
|
|
+
|
|
|
+
|
|
|
<div class="row cl">
|
|
|
<label class="form-label col-1 col-sm-1">处理类型:</label>
|
|
|
<div class="formControls col-10 col-sm-10 skin-minimal">
|
|
@@ -262,15 +281,18 @@
|
|
|
<#--<tr id="showOrderAddress">-->
|
|
|
<#--</tr>-->
|
|
|
</table>
|
|
|
+ <input type="hidden" id="companyId" name="companyId" value="" >
|
|
|
+ <input type="hidden" id="storeId" name="storeId" value="" >
|
|
|
+ <input type="hidden" id="orderId" name="salesId" value="" >
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row cl" id="recipientInfo" style="display: none;">
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>收件信息:</label>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
- <input type="text" class="input-text" value="" placeholder="填写收件人姓名" id="sendName" name="sendName">
|
|
|
+ <input type="text" class="input-text" value="" placeholder="填写收件人姓名" id="sendName" name="relationSendName" datatype="s1-20" errormsg="联系人格式不正确!" >
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
- <input type="text" class="input-text" value="" placeholder="填写收件人手机号" id="sendTel" name="sendTel">
|
|
|
+ <input type="text" class="input-text" value="" placeholder="填写收件人手机号" id="sendTel" name="relationSendTel" datatype="m" errormsg="联系人电话格式不正确!">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row cl" id="recipientAddress" style="display: none;">
|
|
@@ -278,28 +300,30 @@
|
|
|
<label class="form-label col-1 col-sm-1"></label>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
<span class="select-box">
|
|
|
- <select id="province" class="select">
|
|
|
+ <select id="province" class="select" name="provinceNumber">
|
|
|
</select>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
<span class="select-box">
|
|
|
- <select id="city" class="select">
|
|
|
+ <select id="city" class="select" name="cityNumber">
|
|
|
</select>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
<span class="select-box">
|
|
|
- <select id="district" class="select">
|
|
|
+ <select id="district" class="select" name="areaNumber">
|
|
|
</select>
|
|
|
</span>
|
|
|
</div>
|
|
|
|
|
|
+ <input type="hidden" name="relationSendMergeAddress" id="relationSendMergeAddress">
|
|
|
+
|
|
|
</div>
|
|
|
<div class="row cl" id="recipientAddressText" style="display: none;">
|
|
|
<label class="form-label col-1 col-sm-1"></label>
|
|
|
<div class="formControls col-5 col-sm-5">
|
|
|
- <textarea name="" id="sendAddress" cols="" rows="2" class="textarea" placeholder="请填写详细地址"></textarea>
|
|
|
+ <textarea name="relationSendAddress" id="sendAddress" cols="" rows="2" class="textarea" placeholder="请填写详细地址,最多支持50字符" onKeyUp="$.Huitextarealength(this,50)"></textarea>
|
|
|
<span id="addrssMsg"></span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -307,7 +331,7 @@
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span><span id="relationProduct">换新产品</span>:</label>
|
|
|
<div class="formControls col-9 col-sm-9 text-c" id="produceSelect">
|
|
|
|
|
|
- <#--<table class="table table-border table-bg table-bordered">
|
|
|
+ <table class="table table-border table-bg table-bordered">
|
|
|
<thead>
|
|
|
<tr class="text-c">
|
|
|
<th style="text-align: center;" width="60">产品名称</th>
|
|
@@ -316,7 +340,7 @@
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody id="addProduct">
|
|
|
- <tr >
|
|
|
+ <#--<tr >
|
|
|
<td>冲奶机</td>
|
|
|
<td>
|
|
|
<div>
|
|
@@ -338,10 +362,10 @@
|
|
|
<input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">
|
|
|
</div>
|
|
|
</td>
|
|
|
- </tr>
|
|
|
+ </tr>-->
|
|
|
</tbody>
|
|
|
</table>
|
|
|
--->
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -394,9 +418,9 @@
|
|
|
</div>
|
|
|
<div class="row cl" id="updateProduct" style="display: none;">
|
|
|
<label class="form-label col-1 col-sm-1">更换产品:</label>
|
|
|
- <div class="formControls col-7 col-sm-7" id="back-product">
|
|
|
+ <div class="formControls col-9 col-sm-9" >
|
|
|
|
|
|
- <#-- <table class="table table-border table-bg table-bordered">
|
|
|
+ <table class="table table-border table-bg table-bordered">
|
|
|
<thead>
|
|
|
<tr class="text-c">
|
|
|
<th style="text-align: center;" width="60">产品名称</th>
|
|
@@ -404,39 +428,18 @@
|
|
|
<th style="text-align: center;" width="60">产品配件</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
- <tbody id="addProduct">
|
|
|
- <tr >
|
|
|
- <td>冲奶机</td>
|
|
|
- <td>
|
|
|
- <div>
|
|
|
- 白色
|
|
|
- <input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- 白色
|
|
|
- <input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div>
|
|
|
- 水箱
|
|
|
- <input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- 水箱
|
|
|
- <input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
+ <tbody id="back-product">
|
|
|
+
|
|
|
</tbody>
|
|
|
- </table>-->
|
|
|
+ </table>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
<div class="row cl">
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>处理描述:</label>
|
|
|
<div class="formControls col-5 col-sm-5">
|
|
|
- <script id="describeHandleDescText" type="text/plain" style="width:1024px;height:300px;"></script>
|
|
|
+ <script id="describeHandleDescText" type="text/plain" style="width:650px;height:250px;"></script>
|
|
|
+ </script>
|
|
|
<input type="hidden" id="describeHandleDesc" name="describeHandleDesc">
|
|
|
</div>
|
|
|
</div>
|
|
@@ -454,34 +457,34 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="needToVisit">
|
|
|
- <div class="row cl" id="needToVisit">
|
|
|
+ <div class="row cl">
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访人:</label>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
- <input type="text" class="input-text" value="" placeholder="填写回访人姓名" id="" name="visit.visitName">
|
|
|
+ <input type="text" class="input-text" value="" placeholder="填写回访人姓名" id="" name="visitName" datatype="s1-20" errormsg="回访人姓名格式不正确!" >
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
- <input type="text" class="input-text" value="" placeholder="填写回访人手机号" id="" name="visit.visitTel">
|
|
|
+ <input type="text" class="input-text" value="" placeholder="填写回访人手机号" id="" name="visitTel" datatype="m" errormsg="回访人手机号码格式不正确!">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row cl">
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访日期:</label>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
- <input type="text" placeholder="请选择回访日期" id="datemin" name="visit.visitDate" class="input-text Wdate" onclick="WdatePicker({skin:'whyGreen',minDate:'%y-%M-%d'})" readonly="readonly">
|
|
|
+ <input type="text" placeholder="请选择回访日期" id="datemin" name="visitDate" datatype="*" class="input-text Wdate" onclick="WdatePicker({skin:'whyGreen',minDate:'%y-%M-%d'})" readonly="readonly">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row cl">
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>回访时间:</label>
|
|
|
<div class="formControls col-10 col-sm-10 skin-minimal">
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="visit-time-1" name="visit.visitTimeSelect">
|
|
|
+ <input type="radio" id="visit-time-1" name="visitTimeSelect" value="1" checked>
|
|
|
<label for="visit-time-1">09:00-12:00</label>
|
|
|
</div>
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="visit-time-2" name="visit.visitTimeSelect">
|
|
|
+ <input type="radio" id="visit-time-2" name="visitTimeSelect" value="2">
|
|
|
<label for="visit-time-2">12:00-14:00</label>
|
|
|
</div>
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="visit-time-3" name="visit.visitTimeSelect">
|
|
|
+ <input type="radio" id="visit-time-3" name="visitTimeSelect" value="3">
|
|
|
<label for="visit-time-3">14:00-18:00</label>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -489,7 +492,7 @@
|
|
|
<div class="row cl">
|
|
|
<label class="form-label col-1 col-sm-1"><span class="c-red">*</span>提醒人:</label>
|
|
|
<div class="formControls col-4 col-sm-4"> <span class="select-box">
|
|
|
- <select name="" class="select" id="visitAdminId" name="visit.adminId">
|
|
|
+ <select class="select" id="visitAdminId" name="visitAdminId">
|
|
|
|
|
|
</select>
|
|
|
</span>
|
|
@@ -532,6 +535,7 @@
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
$(function(){
|
|
|
+
|
|
|
$("#province").ProvinceCity();
|
|
|
$('.skin-minimal input').iCheck({
|
|
|
checkboxClass: 'icheckbox-blue',
|
|
@@ -553,8 +557,13 @@
|
|
|
|
|
|
$("#questionId").val($(this).find(".quesId").val());
|
|
|
|
|
|
+ var title = $(this).prev().html();
|
|
|
+ $("#describeTitle").val(title);
|
|
|
+
|
|
|
+ //$("#questionId").val(.find(".quesId").val());
|
|
|
+
|
|
|
//$("#answer-textarea").text();
|
|
|
- //$(".dalog-ask").hide(); 隐藏qa
|
|
|
+ $(".dalog-ask").hide(); //隐藏qa
|
|
|
});
|
|
|
|
|
|
/*实时监听文本框-- 员工编号*/
|
|
@@ -654,14 +663,13 @@
|
|
|
/*监听回访类型选择事件 是否需要回访 1:不需要回访 2:需要回复 */
|
|
|
$("input[name='customerIsVisit']").change(function (){
|
|
|
if($(this).val() == 2){
|
|
|
- $("#needToVisit").show();
|
|
|
+ $("#needToVisit").css("display","block");
|
|
|
}else{
|
|
|
- $("#needToVisit").hide();
|
|
|
+ $("#needToVisit").css("display","none");
|
|
|
}
|
|
|
})
|
|
|
|
|
|
|
|
|
-
|
|
|
/*监听回访选择客服的选择事件*/
|
|
|
$(document).on('change', '#visitAdminId', function() {
|
|
|
var visitAdminName = $("#visitAdminId").find("option:selected").text();
|
|
@@ -732,8 +740,11 @@
|
|
|
}
|
|
|
|
|
|
/*获取客服*/
|
|
|
+ var sysAminList;
|
|
|
function getSysAdmin(){
|
|
|
- var sysAminList;
|
|
|
+ if(sysAminList != null && sysAminList.length > 0){
|
|
|
+ return sysAminList
|
|
|
+ }
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
data: {
|
|
@@ -1003,7 +1014,7 @@
|
|
|
function initComplaintQuestionInfo(){
|
|
|
var complaintId = $("[name='complaintId']").val();
|
|
|
var smallClassId = $("[name='smallClassId']").val();;
|
|
|
- var questionName = $("[name='questionId']").val();;;
|
|
|
+ var questionName = $("[name='questionIdMsg']").val();;;
|
|
|
var html = "";
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
@@ -1057,6 +1068,8 @@
|
|
|
var html = '';
|
|
|
var address = ''; //地址
|
|
|
var orderItemList = {};
|
|
|
+ var companyId = ''; //销售公司
|
|
|
+ var storeId = ''; //店铺
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
data: {
|
|
@@ -1069,6 +1082,9 @@
|
|
|
for(var i=0;i<data.returnMsg.salesOrderList.length;i++){
|
|
|
var salesOrder = data.returnMsg.salesOrderList[i];
|
|
|
|
|
|
+ companyId = salesOrder.salesCompanyId;
|
|
|
+ storeId = salesOrder.salesStoreId;
|
|
|
+
|
|
|
var productsHtml = '';
|
|
|
var salesOrderItem = salesOrder.salesOrderItemList;
|
|
|
orderItemList = salesOrder.salesOrderItemList;
|
|
@@ -1108,6 +1124,10 @@
|
|
|
$("#addressInfo").val(address);
|
|
|
setAdress(); //显示地址
|
|
|
setProduce(orderItemList); //显示产品
|
|
|
+
|
|
|
+ $("#companyId").val(companyId);
|
|
|
+ $("#storeId").val(storeId);
|
|
|
+ $("#orderId").val(orderId);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -1129,7 +1149,11 @@
|
|
|
var proId = setPro(getAddress(addresList[0],0),1);
|
|
|
var cityId = setCity(getAddress(addresList[1],1),proId,1);
|
|
|
setDistrict(getAddress(addresList[2],2),cityId,1);
|
|
|
- $("#sendAddress").val(addresList[3]);
|
|
|
+ var sendAddress = addresList[3];
|
|
|
+ if(addresList.length > 4){
|
|
|
+ sendAddress += addresList[4];
|
|
|
+ }
|
|
|
+ $("#sendAddress").val(sendAddress);
|
|
|
}
|
|
|
|
|
|
/***
|
|
@@ -1287,39 +1311,54 @@
|
|
|
|
|
|
var colorHtml = '';
|
|
|
if(colorList != null && colorList.length >0 ){
|
|
|
- for(var k=0;k<orderItemList.length;k++){
|
|
|
- var item = orderItemList[k];
|
|
|
- for(var j=0;j<colorList.length;j++){
|
|
|
- var color = colorList[j];
|
|
|
- var number = "";
|
|
|
+ colorHtml += '<table style="height: 100%;">';
|
|
|
+ for(var j=0;j<colorList.length;j++){
|
|
|
+ var number = "";
|
|
|
+ var color = colorList[j];
|
|
|
+ for(var k=0;k<orderItemList.length;k++){
|
|
|
+ var item = orderItemList[k];
|
|
|
if(item.itemColorId == color.colorId){
|
|
|
number = item.itemNum;
|
|
|
}
|
|
|
- if(color.colorProductId == product.productId) {
|
|
|
- colorHtml += '<div class="color-div">' +
|
|
|
- '<input type="hidden" value="' + color.colorId + '">' +
|
|
|
- '<span>' + color.colorName + '<span> ' +
|
|
|
- '<input type="text" class="input-text input-produce input-pro-number" style="width: 40px;text-align: center;" value="'+ number +'" placeholder="" id="" name="">' +
|
|
|
- '</div>';
|
|
|
- }
|
|
|
}
|
|
|
+ var fristInputStyle = "border-top: 1px solid #ddd;";
|
|
|
+ if(color.colorProductId == product.productId) {
|
|
|
+ colorHtml += '<tr >' +
|
|
|
+ ' <td width="85" style="border-left: none;text-align: center;'+ fristInputStyle +'">' + color.colorName + '</td>' +
|
|
|
+ ' <td width="15" style="'+ fristInputStyle +'">' +
|
|
|
+ ' <input type="hidden" class="input-produce-id" value="' + color.colorProductId + '">' +
|
|
|
+ ' <input type="hidden" class="input-color-id" value="' + color.colorId + '">' +
|
|
|
+ ' <input type="text" class="input-text input-color-number" style="width: 100%;" value="'+ number +'" placeholder="产品数量" id="" name="">' +
|
|
|
+ ' </td>' +
|
|
|
+ ' </tr>';
|
|
|
+ fristInputStyle = "";
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
+ colorHtml += '</table>';
|
|
|
}else{
|
|
|
colorHtml += '<span>暂无该产品的颜色!<span>';
|
|
|
}
|
|
|
|
|
|
var produceFittingsHtml = '';
|
|
|
if(produceFittings != null && produceFittings.length > 0){
|
|
|
+ produceFittingsHtml += '<table style="height: 100%;">';
|
|
|
for(var m=0;m<produceFittings.length;m++){
|
|
|
var produceFit = produceFittings[m];
|
|
|
- if(produceFit.productId == product.productId){
|
|
|
- produceFittingsHtml += '<div class="color-div">' +
|
|
|
- '<input type="hidden" value="' + produceFit.fittingsId +'">'+
|
|
|
- '<span>' + produceFit.fittingsName +'<span> '+
|
|
|
- '<input type="text" class="input-text input-produce input-pro-number" style="width: 40px;text-align: center;" value="" placeholder="" id="" name="">' +
|
|
|
- '</div>';
|
|
|
+ if(produceFit.productId == product.productId) {
|
|
|
+ var fristInputStyle = "border-top: 1px solid #ddd;";
|
|
|
+ produceFittingsHtml += '<tr >' +
|
|
|
+ ' <td width="85" style="border-left: none;text-align: center; '+ fristInputStyle +'">' + produceFit.fittingsName +'</td>' +
|
|
|
+ ' <td width="15" style="'+ fristInputStyle +'">' +
|
|
|
+ ' <input type="hidden" class="input-produce-id" value="' + produceFit.productId + '">' +
|
|
|
+ ' <input type="hidden" class="input-fittings-id" value="' + produceFit.fittingsId +'">' +
|
|
|
+ ' <input type="text" class="input-text input-fittings-number" style="width: 100%;" value="'+ number +'" placeholder="产品数量" id="" name="">' +
|
|
|
+ ' </td>' +
|
|
|
+ ' </tr>';
|
|
|
+ fristInputStyle = "";
|
|
|
}
|
|
|
}
|
|
|
+ produceFittingsHtml += '</table>';
|
|
|
}else{
|
|
|
produceFittingsHtml += '<span>暂无产品配件!<span>';
|
|
|
}
|
|
@@ -1328,11 +1367,11 @@
|
|
|
'<span>'+ product.productName +'</span>';
|
|
|
|
|
|
html += ' <tr >' +
|
|
|
- ' <td>'+ produceHtml +'</td>' +
|
|
|
- ' <td>' +
|
|
|
+ ' <td width="80">'+ produceHtml +'</td>' +
|
|
|
+ ' <td style="padding: 0px;text-align: center;">' +
|
|
|
colorHtml +
|
|
|
- ' </td>' +
|
|
|
- ' <td>' +
|
|
|
+ ' </td>' +
|
|
|
+ ' <td style="padding: 0px;text-align: center;">' +
|
|
|
produceFittingsHtml +
|
|
|
' </td>' +
|
|
|
'</tr>';
|
|
@@ -1342,7 +1381,7 @@
|
|
|
|
|
|
initCheck(); //因为需要展示产品,所以再次初始化多选框
|
|
|
|
|
|
- setBackProduct(); //设置寄回产品
|
|
|
+ setBackProduct(html); //设置寄回产品
|
|
|
|
|
|
monitorProduct(); //监听产品变化
|
|
|
}
|
|
@@ -1391,65 +1430,23 @@
|
|
|
/*监听产品变化*/
|
|
|
function monitorProduct(){
|
|
|
/*产品数量*/
|
|
|
- $(".input-pro-number").blur(function (){
|
|
|
+ $("#addProduct").find(".input-color-number").blur(function (){
|
|
|
+ setBackProduct();
|
|
|
+ })
|
|
|
+ /*产品配件*/
|
|
|
+ $("#addProduct").find(".input-fittings-number").blur(function (){
|
|
|
setBackProduct();
|
|
|
})
|
|
|
- }
|
|
|
-
|
|
|
- /*添加产品*/
|
|
|
- function addProduct(){
|
|
|
- var html = '';
|
|
|
- var productList = getProduct();
|
|
|
-
|
|
|
- var produceHtml = '<select name="" class="select" style="width: 100px;">';
|
|
|
- for(var i=0;i<productList.length;i++){
|
|
|
-
|
|
|
- }
|
|
|
- html+= '<div class="formControls col-1 col-sm-1">\n' +
|
|
|
- ' <a><img src="${path}/common/images/cm/add-produce.png" width="21" height="21"></button></a>\n' +
|
|
|
- ' </div>'
|
|
|
-
|
|
|
- html += '<div class="skin-minimal">' +
|
|
|
- ' <div class="check-box">' +
|
|
|
- ' <input type="checkbox" id="checkbox-1" checked>' +
|
|
|
- '' +
|
|
|
- ' <label for="checkbox-1">净水机</label> -' +
|
|
|
- '' +
|
|
|
- ' <label for="checkbox-1">净水机</label>' +
|
|
|
- '' +
|
|
|
- ' <select name="" class="select" style="width: 100px;">' +
|
|
|
- ' <option value="0">黑色</option>' +
|
|
|
- ' <option value="1">白色</option>' +
|
|
|
- ' </select>' +
|
|
|
- ' <input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">' +
|
|
|
- ' </div>' +
|
|
|
- '' +
|
|
|
- ' <div class="check-box">' +
|
|
|
- ' <input type="checkbox" id="checkbox-2" checked>' +
|
|
|
- ' <label for="checkbox-2">水箱</label>' +
|
|
|
- ' <input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">' +
|
|
|
- ' </div>' +
|
|
|
- ' <div class="check-box">' +
|
|
|
- ' <input type="checkbox" id="checkbox-3" checked>' +
|
|
|
- ' <label for="checkbox-2">T1</label>' +
|
|
|
- ' <input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">' +
|
|
|
- ' </div>' +
|
|
|
- ' <div class="check-box">' +
|
|
|
- ' <input type="checkbox" id="checkbox-4" checked>' +
|
|
|
- ' <label for="checkbox-2">T2</label>' +
|
|
|
- ' <input type="text" class="input-text" style="width: 40px;text-align: center;" value="1" placeholder="" id="" name="">' +
|
|
|
- ' </div>' +
|
|
|
- ' </div>'
|
|
|
-
|
|
|
}
|
|
|
|
|
|
/*设置寄回产品*/
|
|
|
- function setBackProduct() {
|
|
|
- var html = '';
|
|
|
+ function setBackProduct(html) {
|
|
|
+ if(html != null && html != "" && typeof(html) != "undefined"){
|
|
|
+ $("#back-product").html(html);
|
|
|
+ }else{
|
|
|
|
|
|
- $("#back-product").html(html);
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
</script>
|
|
|
<script>
|
|
|
$(function(){
|
|
@@ -1507,6 +1504,14 @@
|
|
|
}
|
|
|
/*----TDS收集模块--end-----*/
|
|
|
|
|
|
+ /* 地址拼接 */
|
|
|
+ var province = $("#province").find("option:selected").text();
|
|
|
+ var city = $("#city").find("option:selected").text();
|
|
|
+ var district = $("#district").find("option:selected").text();
|
|
|
+ var relationSendMergeAddress = province + "-" + city + "-" + district;
|
|
|
+ $("#relationSendMergeAddress").val(relationSendMergeAddress);
|
|
|
+ /* 地址拼接 */
|
|
|
+
|
|
|
/*----问题描述- start --*/
|
|
|
var describeContentText = UE.getEditor('describeContentText').getContent();
|
|
|
$("#describeContent").val(describeContentText);
|
|
@@ -1517,7 +1522,75 @@
|
|
|
$("#describeHandleDesc").val(describeHandleDescText);
|
|
|
/*----处理描述--end-----*/
|
|
|
|
|
|
+ /* --- 类型:售后 处理结果:维修/换新/补发/退货/无理由退货 -- 处理产品 start---- */
|
|
|
+ var sendProdcues = new Array(); //寄出产品表
|
|
|
+ var sendFittings = new Array();
|
|
|
+ var closedProdcues = new Array();
|
|
|
+ var closedFittings = new Array();
|
|
|
+ $("#addProduct").find(".input-color-number").each(function(){
|
|
|
+ var number = $(this).val();
|
|
|
+ if(number != null && number != ""){
|
|
|
+ var product = new Object();
|
|
|
+ product.productId = $(this).parent().find(".input-produce-id").val();
|
|
|
+ product.colorId = $(this).parent().find(".input-color-id").val();
|
|
|
+ product.closedProdcueNumber = $(this).val();
|
|
|
+ //换新、维修,退货,无理由退货,
|
|
|
+ if(allCustomerType == 3 || allCustomerType == 4 || allCustomerType == 6 || allCustomerType == 7){
|
|
|
+ closedProdcues.push(product);
|
|
|
+ }else if(allCustomerType == 5){
|
|
|
+ sendProdcues.push(product);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ $("#addProduct").find(".input-fittings-number").each(function(){
|
|
|
+ var number = $(this).val();
|
|
|
+ if(number != null && number != ""){
|
|
|
+ var fittings = new Object();
|
|
|
+ fittings.productId = $(this).parent().find(".input-produce-id").val();
|
|
|
+ fittings.fittingsId = $(this).parent().find(".input-fittings-id").val();
|
|
|
+ fittings.sendFittingNumber = $(this).val();
|
|
|
+ //换新、维修,退货,无理由退货,
|
|
|
+ if(allCustomerType == 3 || allCustomerType == 4 || allCustomerType == 6 || allCustomerType == 7){
|
|
|
+ closedFittings.push(fittings);
|
|
|
+ }else if(allCustomerType == 5){
|
|
|
+ sendFittings.push(fittings);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ $("#back-product").find(".input-color-number").each(function(){
|
|
|
+ var number = $(this).val();
|
|
|
+ if(number != null && number != ""){
|
|
|
+ //换新、维修,
|
|
|
+ if(allCustomerType == 3 || allCustomerType == 4){
|
|
|
+ var fittings = new Object();
|
|
|
+ fittings.productId = $(this).parent().find(".input-produce-id").val();
|
|
|
+ fittings.fittingsId = $(this).parent().find(".input-fittings-id").val();
|
|
|
+ fittings.sendFittingNumber = $(this).val();
|
|
|
+ sendProdcues.push(fittings);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ $("#back-product").find(".input-fittings-number").each(function(){
|
|
|
+ var number = $(this).val();
|
|
|
+ if(number != null && number != ""){
|
|
|
+ //换新、维修
|
|
|
+ if(allCustomerType == 3 || allCustomerType == 4){
|
|
|
+ var fittings = new Object();
|
|
|
+ fittings.productId = $(this).parent().find(".input-produce-id").val();
|
|
|
+ fittings.fittingsId = $(this).parent().find(".input-fittings-id").val();
|
|
|
+ fittings.sendFittingNumber = $(this).val();
|
|
|
+ sendFittings.push(fittings);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
+ $("#sendProdcues").val(JSON.stringify(sendProdcues));
|
|
|
+ $("#sendFittings").val(JSON.stringify(sendFittings));
|
|
|
+ $("#closedProdcues").val(JSON.stringify(closedProdcues));
|
|
|
+ $("#closedFittings").val(JSON.stringify(closedFittings));
|
|
|
}
|
|
|
|
|
|
/* 添加客诉 */
|