|
@@ -661,8 +661,8 @@ $(document).ready(() => {
|
|
},
|
|
},
|
|
selectionChanged: function (e, info) {
|
|
selectionChanged: function (e, info) {
|
|
if (!info.oldSelections || !info.oldSelections[0] || info.newSelections[0].row !== info.oldSelections[0].row) {
|
|
if (!info.oldSelections || !info.oldSelections[0] || info.newSelections[0].row !== info.oldSelections[0].row) {
|
|
- stagePosSpreadObj.loadCurPosData();
|
|
|
|
SpreadJsObj.resetTopAndSelect(spSpread.getActiveSheet());
|
|
SpreadJsObj.resetTopAndSelect(spSpread.getActiveSheet());
|
|
|
|
+ stagePosSpreadObj.loadCurPosData();
|
|
if (posSearch) {
|
|
if (posSearch) {
|
|
posSearch.search();
|
|
posSearch.search();
|
|
}
|
|
}
|
|
@@ -1117,7 +1117,6 @@ $(document).ready(() => {
|
|
*/
|
|
*/
|
|
loadCurPosData: function () {
|
|
loadCurPosData: function () {
|
|
const node = SpreadJsObj.getSelectObject(slSpread.getActiveSheet());
|
|
const node = SpreadJsObj.getSelectObject(slSpread.getActiveSheet());
|
|
- SpreadJsObj.resetTopAndSelect(spSpread.getActiveSheet());
|
|
|
|
if (node) {
|
|
if (node) {
|
|
const posData = stagePos.ledgerPos[itemsPre + node.id] || [];
|
|
const posData = stagePos.ledgerPos[itemsPre + node.id] || [];
|
|
SpreadJsObj.loadSheetData(spSpread.getActiveSheet(), 'data', posData);
|
|
SpreadJsObj.loadSheetData(spSpread.getActiveSheet(), 'data', posData);
|
|
@@ -1254,9 +1253,9 @@ $(document).ready(() => {
|
|
if (info.sheet.zh_setting) {
|
|
if (info.sheet.zh_setting) {
|
|
const sortData = info.sheet.zh_data;
|
|
const sortData = info.sheet.zh_data;
|
|
const range = info.cellRange;
|
|
const range = info.cellRange;
|
|
- const validField = ['contract_qty', 'qc_qty', 'postil'];
|
|
|
|
|
|
+ const validField = ['contract_qty', 'qc_qty', 'postil', 'real_qty'];
|
|
if (!checkTzMeasureType()) {
|
|
if (!checkTzMeasureType()) {
|
|
- validField.push('name', 'sgfh_qty', 'sjcl_qty', 'qtcl_qty', 'real_qty', 'position', 'drawing_code');
|
|
|
|
|
|
+ validField.push('name', 'sgfh_qty', 'sjcl_qty', 'qtcl_qty', 'position', 'drawing_code');
|
|
}
|
|
}
|
|
for (let iCol = range.col; iCol < range.col + range.colCount; iCol++) {
|
|
for (let iCol = range.col; iCol < range.col + range.colCount; iCol++) {
|
|
const col = info.sheet.zh_setting.cols[iCol];
|
|
const col = info.sheet.zh_setting.cols[iCol];
|