解决销售订单转销售出库单遇到的单号的bug
This commit is contained in:
@@ -1335,22 +1335,12 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var TotalPrice = res.totalPrice; //合计金额
|
var TotalPrice = res.totalPrice; //合计金额
|
||||||
if(pageType === "skip") { //从订单跳转过来
|
$("#Number").val(res.number).attr("data-defaultNumber",res.number);
|
||||||
buildNumber(); //生成单据编号
|
$("#OperTime").val(res.operTimeStr);
|
||||||
var thisDateTime = getNowFormatDateTime(); //当前时间
|
$("#LinkNumber").val(res.linkNumber); //关联订单号
|
||||||
$("#OperTime").val(thisDateTime);
|
$("#AccountId").val(res.accountId); //账户Id
|
||||||
$("#LinkNumber").val(res.number); //关联订单号
|
$("#DiscountLastMoney").val(res.discountLastMoney); //优惠后金额
|
||||||
$("#AccountId").val(defaultAccountId); //初始化默认的账户Id
|
$("#ChangeAmount").val(res.changeAmount).attr("data-changeamount", res.changeAmount);
|
||||||
$("#DiscountLastMoney").val(TotalPrice); //优惠后金额
|
|
||||||
$("#ChangeAmount").val(TotalPrice).attr("data-changeamount", TotalPrice);
|
|
||||||
} else {
|
|
||||||
$("#Number").val(res.number).attr("data-defaultNumber",res.number);
|
|
||||||
$("#OperTime").val(res.operTimeStr);
|
|
||||||
$("#LinkNumber").val(res.linkNumber); //关联订单号
|
|
||||||
$("#AccountId").val(res.accountId); //账户Id
|
|
||||||
$("#DiscountLastMoney").val(res.discountLastMoney); //优惠后金额
|
|
||||||
$("#ChangeAmount").val(res.changeAmount).attr("data-changeamount", res.changeAmount);
|
|
||||||
}
|
|
||||||
$('#OrganId').combobox('setValue', res.organId);
|
$('#OrganId').combobox('setValue', res.organId);
|
||||||
$("#HandsPersonId").val(res.handsPersonId);
|
$("#HandsPersonId").val(res.handsPersonId);
|
||||||
$("#Remark").val(res.remark);
|
$("#Remark").val(res.remark);
|
||||||
|
|||||||
Reference in New Issue
Block a user