Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
619d4cbe
Commit
619d4cbe
authored
Aug 12, 2020
by
季圣华
Browse files
解决销售订单转销售出库单遇到的单号的bug
parent
d3a77a79
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/js/pages/materials/in_out.js
View file @
619d4cbe
...
@@ -1335,22 +1335,12 @@
...
@@ -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);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment