|
@@ -332,6 +332,7 @@
|
|
|
<script src="/public/js/gcl_gather.js"></script>
|
|
|
<script>
|
|
|
const shenpiConst = JSON.parse(unescape('<%- escape(JSON.stringify(shenpiConst)) %>'));
|
|
|
+ const precision = JSON.parse('<%- JSON.stringify(precision) %>');
|
|
|
$(function () {
|
|
|
const intervalIds = {};
|
|
|
<% if (tender.user_id === ctx.session.sessionUser.accountId) { %>
|
|
@@ -1096,6 +1097,18 @@
|
|
|
return needUpdate;
|
|
|
}
|
|
|
|
|
|
+ function findDecimal(unit) {
|
|
|
+ let value = precision.other.value;
|
|
|
+ const changeUnits = precision;
|
|
|
+ for (const d in changeUnits) {
|
|
|
+ if (changeUnits[d].unit !== undefined && changeUnits[d].unit === unit) {
|
|
|
+ value = changeUnits[d].value;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return value;
|
|
|
+ }
|
|
|
+
|
|
|
// 编号排序,多重判断
|
|
|
function sortByCode(a, b) {
|
|
|
let code1 = a.code.split('-');
|