...
|
...
|
@@ -35,6 +35,7 @@ |
|
|
<select id="status_2" class="easyui-combobox" style="width:250px;" >
|
|
|
<option value="">全部</option>
|
|
|
<option value="2">卖家已发货</option>
|
|
|
<option value="31">平台质检中</option>
|
|
|
</select>
|
|
|
|
|
|
<br>
|
...
|
...
|
@@ -63,7 +64,7 @@ |
|
|
<input id="sellerMobile_2" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="tab_0" title="待鉴定" style="padding:20px;display:none;">
|
|
|
<!-- <div id="tab_0" title="待鉴定" style="padding:20px;display:none;">
|
|
|
<div>
|
|
|
<label> 订单编号:</label>
|
|
|
<input id="orderCode_0" type="text" class="easyui-textbox" style="width:150px">
|
...
|
...
|
@@ -77,7 +78,6 @@ |
|
|
<label>订单状态:</label>
|
|
|
<select id="status_0" class="easyui-combobox" style="width:250px;" >
|
|
|
<option value="">全部</option>
|
|
|
<option value="31">平台已收货</option>
|
|
|
<option value="3">平台鉴定中</option>
|
|
|
</select>
|
|
|
|
...
|
...
|
@@ -105,7 +105,7 @@ |
|
|
<label>卖家手机号:</label>
|
|
|
<input id="sellerMobile_0" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>-->
|
|
|
|
|
|
<div id="tab_1" title="待发货" style="padding:20px;display:none;">
|
|
|
<div>
|
...
|
...
|
@@ -121,7 +121,7 @@ |
|
|
<label>订单状态:</label>
|
|
|
<select id="status_1" class="easyui-combobox" style="width:250px;" >
|
|
|
<option value="">全部</option>
|
|
|
<option value="32">平台鉴定通过</option>
|
|
|
<option value="3">平台鉴定中</option>
|
|
|
<option value="13">已取消(商品鉴定不通过)</option>
|
|
|
<option value="17">已取消(买家在卖家发货后取消订单)</option>
|
|
|
</select>
|
...
|
...
|
@@ -209,19 +209,10 @@ |
|
|
</div>
|
|
|
<script>
|
|
|
const domain = document.location.href.indexOf('test3') > 0 ? 'http://java-ufo-platform.test3.ingress.dev.yohocorp.com' : '';
|
|
|
const tab_status_platform_receive="2,31";
|
|
|
const tab_status_platform_to_be_sending="3,13,17";
|
|
|
const tab_status_platform_finished="4,13,17";
|
|
|
$(function() {
|
|
|
|
|
|
|
|
|
console.log(window.parent.rollId);
|
|
|
var rollId = window.parent.rollId || '1';
|
|
|
if (rollId === '99') {
|
|
|
$('.tabs').find('li').eq(0).hide();
|
|
|
$('.tabs').find('li').eq(2).hide();
|
|
|
$('.tabs').find('li').eq(3).hide();
|
|
|
$('#tt').tabs('select', 1);
|
|
|
getToBeJudgedList();
|
|
|
}
|
|
|
|
|
|
//获取鉴定状态对应的记录数
|
|
|
getCountByJudgeStatus();
|
|
|
|
...
|
...
|
@@ -238,7 +229,7 @@ $(function() { |
|
|
iconCls : "icon-search",
|
|
|
onClick : function() {
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr : "2",
|
|
|
statusStr : tab_status_platform_receive,
|
|
|
status : $("#status_2").myCombobox("getValue"),
|
|
|
orderCode : $("#orderCode_2").val(),
|
|
|
uid : $("#buyerUid_2").val(),
|
...
|
...
|
@@ -253,7 +244,7 @@ $(function() { |
|
|
}
|
|
|
});
|
|
|
|
|
|
$("#searchBtn_0").linkbutton({
|
|
|
/*$("#searchBtn_0").linkbutton({
|
|
|
iconCls : "icon-search",
|
|
|
onClick : function() {
|
|
|
$("#orderListTable").datagrid("load", {
|
...
|
...
|
@@ -270,12 +261,12 @@ $(function() { |
|
|
depotNo : $("#depotNo").combobox("getValue")
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
});*/
|
|
|
$("#searchBtn_1").linkbutton({
|
|
|
iconCls : "icon-search",
|
|
|
onClick : function() {
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr : "32,13,17",
|
|
|
statusStr : tab_status_platform_to_be_sending,
|
|
|
platformExpressInfoFlag:"haveNotExpress",
|
|
|
status : $("#status_1").myCombobox("getValue"),
|
|
|
orderCode : $("#orderCode_1").val(),
|
...
|
...
|
@@ -295,7 +286,7 @@ $(function() { |
|
|
iconCls : "icon-search",
|
|
|
onClick : function() {
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr : "4,13,17",
|
|
|
statusStr : tab_status_platform_finished,
|
|
|
platformExpressInfoFlag:"haveExpress",
|
|
|
status : $("#status_3").myCombobox("getValue"),
|
|
|
orderCode : $("#orderCode_3").val(),
|
...
|
...
|
@@ -315,7 +306,6 @@ $(function() { |
|
|
getToBeReceiveList();
|
|
|
$("#tt").tabs({
|
|
|
onSelect:function(title,index){
|
|
|
console.log('select', title, index);
|
|
|
tabsSelected(index);
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -324,10 +314,8 @@ $(function() { |
|
|
if(index == 0){
|
|
|
getToBeReceiveList();
|
|
|
}else if(index == 1){
|
|
|
getToBeJudgedList();
|
|
|
}else if(index == 2){
|
|
|
getToBeSendOutList();
|
|
|
}else if(index == 3){
|
|
|
}else if(index == 2){
|
|
|
getAlreadyJudgedList();
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -347,13 +335,13 @@ $(function() { |
|
|
$("#sellerMobile_2").textbox('setValue','');
|
|
|
$("#skup_2").textbox('setValue','');
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr: "2",
|
|
|
statusStr: tab_status_platform_receive,
|
|
|
depotNo: $("#depotNo").combobox("getValue")
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$("#allBtn_0").linkbutton({
|
|
|
/*$("#allBtn_0").linkbutton({
|
|
|
iconCls: "icon-import",
|
|
|
onClick: function () {
|
|
|
$("#orderCode_0").textbox('setValue','');
|
...
|
...
|
@@ -371,7 +359,7 @@ $(function() { |
|
|
depotNo: $("#depotNo").combobox("getValue")
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
});*/
|
|
|
|
|
|
$("#allBtn_1").linkbutton({
|
|
|
iconCls: "icon-import",
|
...
|
...
|
@@ -387,7 +375,7 @@ $(function() { |
|
|
$("#sellerMobile_1").textbox('setValue','');
|
|
|
$("#skup_1").textbox('setValue','');
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr: "32,13,17",
|
|
|
statusStr: tab_status_platform_to_be_sending,
|
|
|
platformExpressInfoFlag:"haveNotExpress",
|
|
|
depotNo: $("#depotNo").combobox("getValue")
|
|
|
});
|
...
|
...
|
@@ -409,7 +397,7 @@ $(function() { |
|
|
$("#sellerMobile_3").textbox('setValue','');
|
|
|
$("#skup_3").textbox('setValue','');
|
|
|
$("#orderListTable").datagrid("load", {
|
|
|
statusStr: "4,13,17",
|
|
|
statusStr: tab_status_platform_finished,
|
|
|
platformExpressInfoFlag:"haveExpress",
|
|
|
depotNo: $("#depotNo").combobox("getValue")
|
|
|
});
|
...
|
...
|
@@ -419,20 +407,16 @@ $(function() { |
|
|
});
|
|
|
|
|
|
function getToBeReceiveList() {
|
|
|
getToBeReceiveListOrJudgedList(false,"2",null);
|
|
|
getToBeReceiveListOrJudgedList(false,tab_status_platform_receive,null);
|
|
|
}
|
|
|
|
|
|
function getToBeJudgedList() {
|
|
|
console.log('运行了');
|
|
|
getToBeReceiveListOrJudgedList(false,"31,3",null,false);
|
|
|
}
|
|
|
|
|
|
function getToBeSendOutList() {
|
|
|
getToBeReceiveListOrJudgedList(false,"32,13,17","haveNotExpress");
|
|
|
getToBeReceiveListOrJudgedList(false,tab_status_platform_to_be_sending,"haveNotExpress");
|
|
|
}
|
|
|
|
|
|
function getAlreadyJudgedList(){
|
|
|
getToBeReceiveListOrJudgedList(true,"4,13,17","haveExpress");
|
|
|
getToBeReceiveListOrJudgedList(true,tab_status_platform_finished,"haveExpress");
|
|
|
}
|
|
|
|
|
|
function getToBeReceiveListOrJudgedList(platformWaybillShowFlag,paramStatusStr,platformExpressInfoFlag){
|
...
|
...
|
@@ -470,19 +454,35 @@ function getToBeReceiveListOrJudgedList(platformWaybillShowFlag,paramStatusStr,p |
|
|
confirmReceive(id);
|
|
|
}
|
|
|
});
|
|
|
//开始鉴定
|
|
|
$(this).datagrid("getPanel").find("a[role='judgeBegin']").linkbutton({
|
|
|
//质检通过-- 进入鉴定
|
|
|
$(this).datagrid("getPanel").find("a[role='qualityCheckPass']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var id = $(this).attr("dataId");
|
|
|
qualityCheckPass(id);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//质检不通过-- 进入鉴定不通过状态
|
|
|
$(this).datagrid("getPanel").find("a[role='qualityCheckNotPass']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var id = $(this).attr("dataId");
|
|
|
qualityCheckNotPass(id);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//瑕疵确认
|
|
|
$(this).datagrid("getPanel").find("a[role='minorFaultConfirm']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var id = $(this).attr("dataId");
|
|
|
judgeBegin(id);
|
|
|
minorFaultConfirm(id);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//录入鉴定结果:通过
|
|
|
$(this).datagrid("getPanel").find("a[role='pass']").linkbutton({
|
|
|
onClick: function () {
|
|
|
//var buyerOrderCode = $(this).attr("orderCode");
|
|
|
//$("#buyerOrderCode").val(buyerOrderCode);
|
|
|
var buyerOrderCode = $(this).attr("orderCode");
|
|
|
$("#buyerOrderCode").val(buyerOrderCode);
|
|
|
judgePass($(this).attr("dataId"));
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -490,8 +490,8 @@ function getToBeReceiveListOrJudgedList(platformWaybillShowFlag,paramStatusStr,p |
|
|
//录入鉴定结果:不通过
|
|
|
$(this).datagrid("getPanel").find("a[role='reject']").linkbutton({
|
|
|
onClick: function () {
|
|
|
//var skup = $(this).attr("skup");
|
|
|
//$("#skup").val(skup);
|
|
|
var skup = $(this).attr("skup");
|
|
|
$("#skup").val(skup);
|
|
|
judgeReject($(this).attr("dataId"));
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -517,13 +517,13 @@ function getToBeReceiveListOrJudgedList(platformWaybillShowFlag,paramStatusStr,p |
|
|
});
|
|
|
|
|
|
//发货
|
|
|
$(this).datagrid("getPanel").find("a[role='sendOut']").linkbutton({
|
|
|
/*$(this).datagrid("getPanel").find("a[role='sendOut']").linkbutton({
|
|
|
onClick: function () {
|
|
|
var buyerOrderCode = $(this).attr("order_code");
|
|
|
$("#buyerOrderCode").val(buyerOrderCode);
|
|
|
addPassPage($(this).attr("dataId"));
|
|
|
}
|
|
|
});
|
|
|
});*/
|
|
|
|
|
|
//鉴定不通过造成的退回
|
|
|
$(this).datagrid("getPanel").find("a[role='reback_cause_of_judge_failure']").linkbutton({
|
...
|
...
|
@@ -635,8 +635,16 @@ function getTableColumn(platformWaybillShowFlag) { |
|
|
if (rowData.status == 2) {
|
|
|
return "<a role='confirm' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;'>确认收货</a>";
|
|
|
} else if (rowData.status == 31) {
|
|
|
|
|
|
return "<a role='judgeBegin' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;'>开始鉴定</a>";;
|
|
|
var operateButton ="";
|
|
|
if(rowData.qualityCheckType!=null && rowData.qualityCheckType == 2){
|
|
|
//已经有瑕疵确认了 ,只能查看
|
|
|
operateButton += "查看瑕疵";
|
|
|
}else{
|
|
|
operateButton += "<a role='qualityCheckPass' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;'>质检通过</a>";
|
|
|
operateButton += "<a role='qualityCheckNotPass' dataId='"+ rowData.id + "'" + " skup='"+rowData.skup +"' style='margin-left:10px;background-color: #d9534f !important; color: #fff !important;'>质检不通过</a>";
|
|
|
operateButton += "<a role='minorFaultConfirm' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5bc0de !important;'>瑕疵确认</a>";
|
|
|
}
|
|
|
return operateButton ;
|
|
|
}else if (rowData.status == 3) {
|
|
|
var operateButton = "<a role='pass' dataId='"+ rowData.id + "'" + " orderCode='"+rowData.orderCode +"' style='margin-left:10px;background-color: #5cb85c !important;'>鉴定通过</a>"+
|
|
|
"<a role='reject' dataId='"+ rowData.id + "'" + " skup='"+rowData.skup +"' style='margin-left:10px;background-color: #d9534f !important; color: #fff !important;'>鉴定不通过</a>"+
|
...
|
...
|
@@ -645,12 +653,6 @@ function getTableColumn(platformWaybillShowFlag) { |
|
|
operateButton += "<a role='query' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #FFCC33 !important;'>查看视频</a>";
|
|
|
}
|
|
|
return operateButton;
|
|
|
}else if (rowData.status == 32) {
|
|
|
var operateButton = "<a role='sendOut' dataId='"+ rowData.id + "'" + " order_code='"+rowData.orderCode +"' style='margin-left:10px;background-color: #5cb85c !important;'>发货</a>";
|
|
|
if (rowData.containMp4Flag) {
|
|
|
operateButton += "<a role='query' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #FFCC33 !important;'>查看视频</a>";
|
|
|
}
|
|
|
return operateButton;
|
|
|
}else if (rowData.status == 4) {
|
|
|
var operateButton = "<a role='platform_waybill_viewExpress' dataId='"+ rowData.orderCode + "' style='margin-left:10px;background-color: #5cb85c !important;'>查看物流</a>";
|
|
|
if (rowData.containMp4Flag) {
|
...
|
...
|
@@ -718,18 +720,18 @@ function confirmReceive(id){ |
|
|
}
|
|
|
});
|
|
|
}
|
|
|
//开始鉴定
|
|
|
function judgeBegin(id) {
|
|
|
$.messager.confirm("开始鉴定提醒", "是否开始鉴定?", function(flag) {
|
|
|
//质检通过
|
|
|
function qualityCheckPass(id) {
|
|
|
$.messager.confirm("质检通过提醒", "是否质检通过?", function(flag) {
|
|
|
if (flag) {
|
|
|
$.post(contextPath + "/buyerOrder/judgeBegin", {
|
|
|
$.post(contextPath + "/buyerOrder/qualityCheckPass", {
|
|
|
id : id
|
|
|
}, function(data) {
|
|
|
if (data.code == 200) {
|
|
|
$("#orderListTable").datagrid("reload");
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : "开始鉴定成功!"
|
|
|
msg : "质检通过成功!"
|
|
|
});
|
|
|
}else {
|
|
|
window.self.$.messager.alert("失败", "失败!", "error");
|
...
|
...
|
@@ -739,46 +741,19 @@ function judgeBegin(id) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
//鉴定通过
|
|
|
function judgePass(id) {
|
|
|
$.messager.confirm("鉴定通过提醒", "是否鉴定通过?", function(flag) {
|
|
|
if (flag) {
|
|
|
$.post(contextPath + "/buyerOrder/judgePass", {
|
|
|
id : id
|
|
|
}, function(data) {
|
|
|
if (data.code == 200) {
|
|
|
$("#orderListTable").datagrid("reload");
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : "鉴定通过成功!"
|
|
|
});
|
|
|
}else {
|
|
|
window.self.$.messager.alert("失败", "失败!", "error");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
//上传图片,并且调用接口
|
|
|
function qualityCheckNotPass(id) {
|
|
|
|
|
|
}
|
|
|
|
|
|
//鉴定不通过
|
|
|
function judgeReject(id) {
|
|
|
$.messager.confirm("鉴定不通过提醒", "是否鉴定不通过?", function(flag) {
|
|
|
if (flag) {
|
|
|
$.post(contextPath + "/buyerOrder/judgeReject", {
|
|
|
id : id
|
|
|
}, function(data) {
|
|
|
if (data.code == 200) {
|
|
|
$("#orderListTable").datagrid("reload");
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : "鉴定不通过完成!"
|
|
|
});
|
|
|
}else {
|
|
|
window.self.$.messager.alert("失败", "失败!", "error");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
//瑕疵确认
|
|
|
function minorFaultConfirm(id) {
|
|
|
|
|
|
}
|
|
|
|
|
|
//鉴定通过,并且发货
|
|
|
function judgePass(id) {
|
|
|
addPassPage(id);
|
|
|
}
|
|
|
|
|
|
//鉴定通过后发货
|
...
|
...
|
@@ -841,6 +816,38 @@ function addRebackPage(id) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
//鉴定不通过,并且发货
|
|
|
function judgeReject(id) {
|
|
|
var div = $("<div id='rejectDiv'>").appendTo($(document.body));
|
|
|
var url = contextPath + "/html/judgeCenter/reject.html?time_version=" + new Date().getTime();;
|
|
|
$(div).myDialog({
|
|
|
width: "50%",
|
|
|
height: "60%",
|
|
|
title: "商品寄回(鉴定不通过)",
|
|
|
href: url,
|
|
|
modal: true,
|
|
|
collapsible: true,
|
|
|
cache: false,
|
|
|
buttons: [{
|
|
|
text: "取消",
|
|
|
iconCls: "icon-cancel",
|
|
|
handler: function () {
|
|
|
$(div).dialog("close");
|
|
|
}
|
|
|
},{
|
|
|
text: "寄回",
|
|
|
id: "rejectBtn",
|
|
|
iconCls: "icon-save",
|
|
|
onClick: function () {
|
|
|
$('#rejectBtn').linkbutton('disable');
|
|
|
|
|
|
sendBackGoods(id,true);
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
//鉴定不通过后退回商品
|
|
|
function addRejectPage(id) {
|
|
|
var div = $("<div id='rejectDiv'>").appendTo($(document.body));
|
...
|
...
|
@@ -865,7 +872,7 @@ function addRejectPage(id) { |
|
|
iconCls: "icon-save",
|
|
|
onClick: function () {
|
|
|
$('#rejectBtn').linkbutton('disable');
|
|
|
sendBackGoods(id);
|
|
|
sendBackGoods(id,false);
|
|
|
}
|
|
|
}]
|
|
|
});
|
...
|
...
|
@@ -1000,7 +1007,7 @@ function deliverGoods(id){ |
|
|
alert("收货人手机号为空!");
|
|
|
return;
|
|
|
}
|
|
|
$.post(contextPath + "/buyerOrder/deliverGoods", {
|
|
|
$.post(contextPath + "/buyerOrder/judgePass", {
|
|
|
id : id,
|
|
|
status : 4,
|
|
|
expressCompanyId : expressCompanyId,
|
...
|
...
|
@@ -1064,7 +1071,12 @@ function reBackGoods(id){ |
|
|
}
|
|
|
|
|
|
//鉴定不通过寄回
|
|
|
function sendBackGoods(id){
|
|
|
function sendBackGoods(id,changeStateToReject){
|
|
|
var reqUrl="/buyerOrder/returnBackOrderCauseOfJudgeFailure";
|
|
|
if(changeStateToReject){
|
|
|
reqUrl="/buyerOrder/judgeReject";
|
|
|
}
|
|
|
|
|
|
var expressCompanyId = $("#expressCompany").myCombobox("getValue");
|
|
|
var waybillCode = $("#waybillCode").textbox("getValue");
|
|
|
var mobile = $("#sendBackInfo_mobile").val();
|
...
|
...
|
@@ -1080,7 +1092,7 @@ function sendBackGoods(id){ |
|
|
alert("收货人手机号为空!");
|
|
|
return;
|
|
|
}
|
|
|
$.post(contextPath + "/buyerOrder/returnBackOrderCauseOfJudgeFailure", {
|
|
|
$.post(contextPath +reqUrl , {
|
|
|
id : id,
|
|
|
status : 13,
|
|
|
expressCompanyId : expressCompanyId,
|
...
|
...
|
@@ -1127,15 +1139,9 @@ function getCountByJudgeStatus(){ |
|
|
}
|
|
|
});
|
|
|
|
|
|
var tab_toBeJudged = $('#tt').tabs('getTab',1); // 取得第一个tab
|
|
|
$('#tt').tabs('update', {
|
|
|
tab: tab_toBeJudged,
|
|
|
options: {
|
|
|
title: '待鉴定('+ result.data.toBeJudgedNum + ")"
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
var tab_toBeSendOutNum = $('#tt').tabs('getTab',2); // 取得第一个tab
|
|
|
var tab_toBeSendOutNum = $('#tt').tabs('getTab',1); // 取得第一个tab
|
|
|
$('#tt').tabs('update', {
|
|
|
tab: tab_toBeSendOutNum,
|
|
|
options: {
|
...
|
...
|
@@ -1143,7 +1149,7 @@ function getCountByJudgeStatus(){ |
|
|
}
|
|
|
});
|
|
|
|
|
|
var tab_alreadyJudgedNum = $('#tt').tabs('getTab',3); // 取得第一个tab
|
|
|
var tab_alreadyJudgedNum = $('#tt').tabs('getTab',2); // 取得第一个tab
|
|
|
$('#tt').tabs('update', {
|
|
|
tab: tab_alreadyJudgedNum,
|
|
|
options: {
|
...
|
...
|
|