Authored by qinchao

鉴定开始前 ,运行修改地址信息

... ... @@ -1037,8 +1037,8 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
oldInfo = buyerMeta.getMetaValue();
}
}else if(buyerOrder.getStatus().byteValue() != Constant.BUYER_ORDER_STATUS_ALLOCATING.getByteVal()
&&buyerOrder.getStatus().byteValue() < 4) {//平台鉴定前,更新收货人信息
}else if(buyerOrder.getStatus().byteValue() == Constant.BUYER_ORDER_STATUS_PLATFORM_RECEIVE.getByteVal()) {
//平台鉴定前,更新收货人信息
LOGGER.info("updateReceiveInfo change address before judge ,buyerOrder = {}",buyerOrder);
operateType = OperateTypeEnum.OPERATE_TYPE_UPDATE_RECEIVE_INFO.getCode();
BuyerOrderMeta buyerMeta = buyerOrderMetaMapper.selectByOrderCodeAndKey(req.getOrderCode(), BUYER_ORDER_META_KEY_DELIVERY_ADDRESS);
... ...
... ... @@ -165,10 +165,10 @@ $(function() {
iconCls : "icon-search",
onClick : function() {
var status = $("#status").val();
if(status>3){
alert("没有需要更新的数据!");
if(status==2||status==31){
updateOrderInfo(orderCode);
}else{
updateOrderInfo(orderCode);
alert("订单状态不允许更改数据!");
}
}
... ... @@ -317,13 +317,7 @@ function getOrderInfo(orderCode){
//收货信息
//鉴定前,买家可联系客服修改收货信息
if(result.data.status > 3){
$("#receiveName").html(result.data.receiveName);
$("#receiveMobile").html(result.data.receiveMobile);
$("#receiveAddress").html(result.data.receiveAddress);
$("#receiveAddressDetail").html(result.data.receiveAddressDetail);
$("#zipCode").html(result.data.zipCode);
}else{
if(result.data.status==2 ||result.data.status==31){
$("#receiveName").html('<input id="input_receiveName" type="text" class="easyui-textbox" value="' + result.data.receiveName + '"/>');
$("#receiveMobile").html('<input id="input_receiveMobile" type="text" class="easyui-textbox" value="' + result.data.receiveMobile + '"/>');
$("#receiveAddressDetail").html('<input id="input_receiveAddressDetail" type="text" class="easyui-textbox" value="' + result.data.receiveAddressDetail + '"/>');
... ... @@ -335,7 +329,13 @@ function getOrderInfo(orderCode){
+ '<input id="jiedao" class="easyui-combobox" style="width:150px">';
$("#receiveAddress").html(addressStr);
initAreaDropDown(result.data.receiveAreaCode);
}
}else{
$("#receiveName").html(result.data.receiveName);
$("#receiveMobile").html(result.data.receiveMobile);
$("#receiveAddress").html(result.data.receiveAddress);
$("#receiveAddressDetail").html(result.data.receiveAddressDetail);
$("#zipCode").html(result.data.zipCode);
}
//卖家信息
$("#sellerName").html(result.data.sellerName);
... ...