|
@@ -21,6 +21,8 @@ $(document).ready(() => {
|
|
|
{title: '|金额', colSpan: '|1', rowSpan: '|1', field: 'deal_bills_tp', hAlign: 2, width: 80, type: 'Number'},
|
|
|
{title: '台账|数量', colSpan: '2|1', rowSpan: '1|1', field: 'quantity', hAlign: 2, width: 80, type: 'Number'},
|
|
|
{title: '|金额', colSpan: '|1', rowSpan: '|1', field: 'total_price', hAlign: 2, width: 80, type: 'Number'},
|
|
|
+ {title: '签约-台账|数量', colSpan: '2|1', rowSpan: '1|1', field: 'compare_qty', hAlign: 2, width: 80, type: 'Number'},
|
|
|
+ {title: '|金额', colSpan: '|1', rowSpan: '|1', field: 'compare_tp', hAlign: 2, width: 80, type: 'Number'},
|
|
|
],
|
|
|
emptyRows: 0,
|
|
|
headRows: 2,
|
|
@@ -29,6 +31,9 @@ $(document).ready(() => {
|
|
|
headerFont: '12px 微软雅黑',
|
|
|
font: '12px 微软雅黑',
|
|
|
readOnly: true,
|
|
|
+ getColor: function (sheet, data, col, defaultColor) {
|
|
|
+ return data && data.differ ? '#FFE699' : defaultColor;
|
|
|
+ }
|
|
|
});
|
|
|
const gclSheet = gclSpread.getActiveSheet();
|
|
|
const leafXmjSpread = SpreadJsObj.createNewSpread($('#leaf-xmj-spread')[0]);
|
|
@@ -76,6 +81,11 @@ $(document).ready(() => {
|
|
|
gclGatherModel.loadPosData(data.pos);
|
|
|
gclGatherModel.loadDealBillsData(data.dealBills);
|
|
|
gclGatherData = gclGatherModel.gatherGclData();
|
|
|
+ gclGatherModel.checkDiffer(gclGatherData);
|
|
|
+ for (const gcl of gclGatherData) {
|
|
|
+ gcl.compare_qty = ZhCalc.sub(gcl.deal_bills_qty, gcl.quantity);
|
|
|
+ gcl.compare_tp = ZhCalc.sub(gcl.deal_bills_tp, gcl.total_price);
|
|
|
+ }
|
|
|
SpreadJsObj.loadSheetData(gclSheet, SpreadJsObj.DataType.Data, gclGatherData);
|
|
|
loadLeafXmjData(0);
|
|
|
}, null, true);
|