|
@@ -34,6 +34,25 @@ function getExprInfo (field) {
|
|
function transExpr(expr) {
|
|
function transExpr(expr) {
|
|
return expr.replace('=', '').replace('%', '/100');
|
|
return expr.replace('=', '').replace('%', '/100');
|
|
}
|
|
}
|
|
|
|
+const checkOption = {
|
|
|
|
+ sibling: { enable: 1 },
|
|
|
|
+ empty_code: { enable: 1 },
|
|
|
|
+ calc: {
|
|
|
|
+ enable: 1,
|
|
|
|
+ fields: ['sgfh_qty', 'qtcl_qty', 'sjcl_qty', 'quantity'],
|
|
|
|
+ },
|
|
|
|
+ zero: { enable: 1 },
|
|
|
|
+ tp: {
|
|
|
|
+ enable: 1,
|
|
|
|
+ fields: [
|
|
|
|
+ {qty: 'sgfh_qty', tp: 'sgfh_tp'},
|
|
|
|
+ {qty: 'sjcl_qty', tp: 'sjcl_tp'},
|
|
|
|
+ {qty: 'qtcl_qty', tp: 'qtcl_tp'},
|
|
|
|
+ {qty: 'quantity', tp: 'total_price'},
|
|
|
|
+ {qty: 'deal_qty', tp: 'deal_tp'},
|
|
|
|
+ ],
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
let stdXmj, stdGcl, dealBills, searchLedger;
|
|
let stdXmj, stdGcl, dealBills, searchLedger;
|
|
@@ -101,7 +120,7 @@ $(document).ready(function() {
|
|
selector: '#check-list',
|
|
selector: '#check-list',
|
|
relaSpread: ledgerSpread,
|
|
relaSpread: ledgerSpread,
|
|
storeKey: 'ledger-check-' + getTenderId(),
|
|
storeKey: 'ledger-check-' + getTenderId(),
|
|
- checkType: ledgerCheckType,
|
|
|
|
|
|
+ checkType: getCheckType(checkOption),
|
|
afterLocated: function () {
|
|
afterLocated: function () {
|
|
posOperationObj.loadCurPosData();
|
|
posOperationObj.loadCurPosData();
|
|
},
|
|
},
|
|
@@ -3394,25 +3413,7 @@ $(document).ready(function() {
|
|
ledgerPos: pos,
|
|
ledgerPos: pos,
|
|
checkList: checkList,
|
|
checkList: checkList,
|
|
decimal: tenderInfo.decimal,
|
|
decimal: tenderInfo.decimal,
|
|
- checkOption: {
|
|
|
|
- sibling: { enable: 1 },
|
|
|
|
- empty_code: { enable: 1 },
|
|
|
|
- calc: {
|
|
|
|
- enable: 1,
|
|
|
|
- fields: ['sgfh_qty', 'qtcl_qty', 'sjcl_qty', 'quantity'],
|
|
|
|
- },
|
|
|
|
- zero: { enable: 1 },
|
|
|
|
- tp: {
|
|
|
|
- enable: 1,
|
|
|
|
- fields: [
|
|
|
|
- {qty: 'sgfh_qty', tp: 'sgfh_tp'},
|
|
|
|
- {qty: 'sjcl_qty', tp: 'sjcl_tp'},
|
|
|
|
- {qty: 'qtcl_qty', tp: 'qtcl_tp'},
|
|
|
|
- {qty: 'quantity', tp: 'total_price'},
|
|
|
|
- {qty: 'deal_qty', tp: 'deal_tp'},
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- }
|
|
|
|
|
|
+ checkOption: checkOption,
|
|
});
|
|
});
|
|
check2Viewing({
|
|
check2Viewing({
|
|
extra: ZhCalc.div(ledgerTree.datas.length + pos.datas.length, 10000, 0),
|
|
extra: ZhCalc.div(ledgerTree.datas.length + pos.datas.length, 10000, 0),
|