|
@@ -215,7 +215,7 @@ $(document).ready(() => {
|
|
|
changeSpreadSheet.addRows(select.order, 1);
|
|
|
SpreadJsObj.reLoadRowData(changeSpreadSheet, select.order);
|
|
|
changeSpreadSheet.setSelection(select.order, 0, 1, 1);
|
|
|
- console.log(changeList);
|
|
|
+ // console.log(changeList);
|
|
|
} else {
|
|
|
changeList.push(result);
|
|
|
changeSpreadSheet.addRows(changeList.length - 1, 1);
|
|
@@ -266,7 +266,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
delList.push(select.id);
|
|
|
}
|
|
|
- console.log(lastSelect, delList);
|
|
|
+ // console.log(lastSelect, delList);
|
|
|
if (delList.length) {
|
|
|
postData(window.location.pathname + '/save', {type: 'del', ids: delList, postData: lastSelect ? lastSelect.order : null}, function (result) {
|
|
|
changeList.splice(row, delList.length);
|
|
@@ -319,7 +319,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
}
|
|
|
data.postData.push(preUpdate);
|
|
|
- console.log(data);
|
|
|
+ // console.log(data);
|
|
|
if (data.postData.length > 0) {
|
|
|
postData(window.location.pathname + '/save', data, function () {
|
|
|
_.forEach(data.postData, function (item) {
|
|
@@ -361,7 +361,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
}
|
|
|
data.postData.push(nextUpdate);
|
|
|
- console.log(data);
|
|
|
+ // console.log(data);
|
|
|
if (data.postData.length > 0) {
|
|
|
postData(window.location.pathname + '/save', data, function () {
|
|
|
_.forEach(data.postData, function (item) {
|
|
@@ -481,7 +481,7 @@ $(document).ready(() => {
|
|
|
select.spamount = ZhCalc.round(validText, findDecimal(select.unit)) || 0;
|
|
|
}
|
|
|
select[col.field] = validText;
|
|
|
- console.log(select);
|
|
|
+ // console.log(select);
|
|
|
delete select.waitingLoading;
|
|
|
|
|
|
// 更新至服务器
|
|
@@ -603,7 +603,7 @@ $(document).ready(() => {
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.cellRange.row, info.cellRange.rowCount);
|
|
|
return;
|
|
|
}
|
|
|
- console.log(data);
|
|
|
+ // console.log(data);
|
|
|
// 更新至服务器
|
|
|
postData(window.location.pathname + '/save', { type:'paste', updateData: data }, function (result) {
|
|
|
changeList = result;
|
|
@@ -658,7 +658,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
}
|
|
|
changeListData = gclGatherData.concat(dealBillList).sort(sortByCode);
|
|
|
- console.log(changeListData);
|
|
|
+ // console.log(changeListData);
|
|
|
// 先加载台账数据
|
|
|
let listHtml = '';
|
|
|
let list_index = 1;
|
|
@@ -1119,7 +1119,7 @@ $(document).ready(() => {
|
|
|
select = SpreadJsObj.getSelectObject(changeSpreadSheet);
|
|
|
}
|
|
|
const newLedgerList = remakeChangeSpread();
|
|
|
- console.log(newLedgerList, select);
|
|
|
+ // console.log(newLedgerList, select);
|
|
|
// 更新至服务器
|
|
|
postData(window.location.pathname + '/save', { type:'ledger_list', updateData: newLedgerList, postData: select ? select.order : null }, function (result) {
|
|
|
changeList = result.changeList;
|
|
@@ -1204,7 +1204,7 @@ $(document).ready(() => {
|
|
|
const select = parseInt($('#select-list').val());
|
|
|
const value = _.trim($(this).val());
|
|
|
const valueList = _.slice(_.without(_.uniq(_.replace(_.replace(value, /\'|\"/g, ''), /\t/g, ' ').split(' ')), ''), 0, 10);
|
|
|
- console.log(valueList);
|
|
|
+ // console.log(valueList);
|
|
|
// 判断是否存在多个分词,以换行或空格分隔,多个则显示左侧菜单
|
|
|
if (value !== '' && valueList.length > 1) {
|
|
|
if (_.without(_.uniq(value.split(' ')), '').length > 10) {
|
|
@@ -1286,7 +1286,7 @@ $(document).ready(() => {
|
|
|
} else {
|
|
|
const value = _.trim($('#list-input').val());
|
|
|
const valueList = _.slice(_.without(_.uniq(_.replace(value, /\t/g, ' ').split(' ')), ''), 0, 10);
|
|
|
- console.log(_.indexOf(valueList, oldVal), valueList, val, oldVal);
|
|
|
+ // console.log(_.indexOf(valueList, oldVal), valueList, val, oldVal);
|
|
|
if (_.indexOf(valueList, val) !== -1) {
|
|
|
toastr.warning('已存在相同的检索词');
|
|
|
val = oldVal;
|
|
@@ -1460,7 +1460,7 @@ $(document).ready(() => {
|
|
|
});
|
|
|
}
|
|
|
for (const [index, leaf] of gcl.leafXmjs.entries()) {
|
|
|
- if (!leaf.cid) continue;
|
|
|
+ if (!leaf.cid || leaf.cid !== window.location.pathname.split('/')[4]) continue;
|
|
|
|
|
|
const bwmx = [leaf.code, leaf.jldy || '', leaf.dwgc || '', leaf.fbgc || '', leaf.fxgc || '', leaf.gcl_id, leaf.mx_id, leaf.jldy || ''];
|
|
|
const de_qu = bwmx.join(infoSpr) + qtySpr + (leaf.quantity || 0);
|
|
@@ -1816,7 +1816,7 @@ function tableDataRemake(changeListData) {
|
|
|
}
|
|
|
}
|
|
|
if(updateList.length > 0) {
|
|
|
- console.log(updateList);
|
|
|
+ // console.log(updateList);
|
|
|
postData(window.location.pathname + '/save', { type:'update_list', updateData: updateList }, function (result) {
|
|
|
}, function () {
|
|
|
});
|