|
@@ -42,7 +42,7 @@ $(document).ready(() => {
|
|
|
});
|
|
|
const posSearch = $.posSearch({selector: '#pos-search', searchSpread: posSpread});
|
|
|
|
|
|
- // 初始化 清单树结构
|
|
|
+ // 初始化 节点树结构
|
|
|
const treeSetting = {
|
|
|
id: 'ledger_id',
|
|
|
pid: 'ledger_pid',
|
|
@@ -96,7 +96,7 @@ $(document).ready(() => {
|
|
|
const rNode = sheet.zh_tree.nodes[sel.row + r];
|
|
|
if (rNode.level > node.level) continue;
|
|
|
if ((rNode.level < node.level) || (rNode.level === node.level && rNode.pid !== node.pid)) {
|
|
|
- toastr.warning('请选择同一清单下的节点,进行该操作');
|
|
|
+ toastr.warning('请选择同一节点下的节点,进行该操作');
|
|
|
return;
|
|
|
}
|
|
|
count += 1;
|
|
@@ -235,7 +235,7 @@ $(document).ready(() => {
|
|
|
for (let i = 0; i < count; i++) {
|
|
|
const child = children[i+index];
|
|
|
if (tree.checkNodeUsed(child, pos)) {
|
|
|
- toastr.warning('选中的清单已计量,不可删除');
|
|
|
+ toastr.warning('选中的节点已计量,不可删除');
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
@@ -247,9 +247,9 @@ $(document).ready(() => {
|
|
|
const child = children[index];
|
|
|
if (tree.checkNodeUsed(child, pos)) {
|
|
|
if (i >= index + count) {
|
|
|
- toastr.warning('其后清单已计量,选中的清单不可升级');
|
|
|
+ toastr.warning('其后节点已计量,选中的节点不可升级');
|
|
|
} else {
|
|
|
- toastr.warning('选中的清单已计量,不可升级');
|
|
|
+ toastr.warning('选中的节点已计量,不可升级');
|
|
|
}
|
|
|
return;
|
|
|
}
|
|
@@ -261,7 +261,7 @@ $(document).ready(() => {
|
|
|
for (let i = 0; i < count; i++) {
|
|
|
const child = children[i+index];
|
|
|
if (tree.checkNodeUsed(child, pos)) {
|
|
|
- toastr.warning('选中的清单已计量,不可降级');
|
|
|
+ toastr.warning('选中的节点已计量,不可降级');
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
@@ -342,7 +342,7 @@ $(document).ready(() => {
|
|
|
if (info.editingText) {
|
|
|
const text = info.editingText.replace('\n', '');
|
|
|
if (node.used && (col.field === 'code' || col.field ==='b_code') && orgValue !== '' && text === '') {
|
|
|
- toastr.error('清单已计量,请删除编号');
|
|
|
+ toastr.error('节点已计量,请勿删除编号');
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.row);
|
|
|
return;
|
|
|
}
|
|
@@ -364,7 +364,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
} else {
|
|
|
if (node.used && (col.field === 'code' || col.field ==='b_code') && orgValue !== '') {
|
|
|
- toastr.error('清单已计量,请删除编号');
|
|
|
+ toastr.error('节点已计量,请勿删除编号');
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.row);
|
|
|
return;
|
|
|
}
|
|
@@ -392,8 +392,8 @@ $(document).ready(() => {
|
|
|
},
|
|
|
clipboardPasted: function (e, info) {
|
|
|
const hint = {
|
|
|
- usedUp: {type: 'error', msg: '清单已计量,不可修改单价'},
|
|
|
- usedCode: {type: 'error', msg: '清单已计量,编号不可修改为空值'},
|
|
|
+ usedUp: {type: 'error', msg: '节点已计量,不可修改单价'},
|
|
|
+ usedCode: {type: 'error', msg: '节点已计量,编号不可修改为空值'},
|
|
|
invalidExpr: {type: 'error', msg: '粘贴的表达式非法'},
|
|
|
posCode: {type: 'error', msg: '清单含有计量单元,请先删除计量单元,再修改清单编号为空'},
|
|
|
posQty: {type: 'error', msg: '清单含有计量单元,数量金额根据计量单元汇总计算所得,不可修改'},
|
|
@@ -606,7 +606,7 @@ $(document).ready(() => {
|
|
|
},
|
|
|
items: {
|
|
|
'batchInsertBillsPos': {
|
|
|
- name: '批量插入清单-部位',
|
|
|
+ name: '批量插入节点-部位',
|
|
|
icon: 'fa-sign-in',
|
|
|
disabled: function (key, opt) {
|
|
|
const select = SpreadJsObj.getSelectObject(billsSheet);
|
|
@@ -849,12 +849,12 @@ $(document).ready(() => {
|
|
|
clipboardPasted: function (e, info) {
|
|
|
const node = SpreadJsObj.getSelectObject(billsSheet);
|
|
|
if (node.code && (node.code !== '')) {
|
|
|
- toastr.error('项目节不可含有清单明细');
|
|
|
+ toastr.error('项目节不可含有节点明细');
|
|
|
posSpreadObj.loadCurPosData();
|
|
|
return;
|
|
|
}
|
|
|
if (node.children && (node.children.length > 0)) {
|
|
|
- toastr.error('仅清单子项可以含有计量单元');
|
|
|
+ toastr.error('仅节点子项可以含有计量单元');
|
|
|
posSpreadObj.loadCurPosData();
|
|
|
return;
|
|
|
}
|
|
@@ -1041,7 +1041,7 @@ $(document).ready(() => {
|
|
|
|
|
|
if (stdType === 'gcl') {
|
|
|
if (mainNode.code && mainNode.code !== '' && !mainTree.isLeafXmj(mainNode)) {
|
|
|
- toastr.warning('非最底层项目下,不应添加清单');
|
|
|
+ toastr.warning('非最底层项目下,不应添加节点');
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
@@ -1109,7 +1109,7 @@ $(document).ready(() => {
|
|
|
if (!mainNode || !mainTree) { return; }
|
|
|
|
|
|
if (mainNode.code && mainNode.code !== '' && !mainTree.isLeafXmj(mainNode)) {
|
|
|
- toastr.warning('非最底层项目下,不应添加清单');
|
|
|
+ toastr.warning('非最底层项目下,不应添加节点');
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -1189,11 +1189,11 @@ $(document).ready(() => {
|
|
|
};
|
|
|
for (let iNum = 1; iNum <= this.billsCount; iNum++) {
|
|
|
this.posSpreadSetting.cols.push(
|
|
|
- {title: '清单' + iNum, field: 'bills' + iNum, hAlign: 2, width: 50}
|
|
|
+ {title: '节点' + iNum, field: 'bills' + iNum, hAlign: 2, width: 50}
|
|
|
)
|
|
|
}
|
|
|
this.posSpread = SpreadJsObj.createNewSpread($('.batch-l-b', this.obj)[0]);
|
|
|
- // 初始化 签约清单 参数
|
|
|
+ // 初始化 签约节点 参数
|
|
|
this.dealSpreadSetting = {
|
|
|
cols: [
|
|
|
{title: '清单编号', field: 'code', width: 80, formatter: '@', readOnly: true},
|
|
@@ -1212,10 +1212,10 @@ $(document).ready(() => {
|
|
|
this.initView();
|
|
|
SpreadJsObj.initSheet(this.dealSpread.getActiveSheet(), this.dealSpreadSetting);
|
|
|
SpreadJsObj.refreshColumnAlign(this.dealSpread.getActiveSheet());
|
|
|
- // 拉取签约清单数据
|
|
|
+ // 拉取签约节点数据
|
|
|
dealBills.loadData();
|
|
|
SpreadJsObj.loadSheetData(this.dealSpread.getActiveSheet(), 'data', dealBills.data);
|
|
|
- // 双击签约清单,自动添加到清单编号窗口
|
|
|
+ // 双击签约节点,自动添加到清单编号窗口
|
|
|
this.dealSpread.bind(GC.Spread.Sheets.Events.CellDoubleClick, function (e, info) {
|
|
|
const deal = info.sheet.zh_data[info.row];
|
|
|
const qdSheet = self.qdSpread.getActiveSheet(), posSheet = self.posSpread.getActiveSheet();
|
|
@@ -1227,7 +1227,7 @@ $(document).ready(() => {
|
|
|
if (sel.row + 1 === qdSheet.getRowCount()) {
|
|
|
const count = sel.row + 2;
|
|
|
qdSheet.setRowCount(count);
|
|
|
- qdSheet.getCell(sel.row + 1, 0, GC.Spread.Sheets.SheetArea.rowHeader).text('清单' + count);
|
|
|
+ qdSheet.getCell(sel.row + 1, 0, GC.Spread.Sheets.SheetArea.rowHeader).text('节点' + count);
|
|
|
|
|
|
const colCount = posSheet.getColumnCount() + 1
|
|
|
posSheet.setColumnCount(colCount);
|
|
@@ -1272,7 +1272,7 @@ $(document).ready(() => {
|
|
|
SpreadJsObj.beginMassOperation(qdSheet);
|
|
|
qdSheet.clear(0, 0, qdSheet.getRowCount(), qdSheet.getColumnCount(), GC.Spread.Sheets.SheetArea.viewport, GC.Spread.Sheets.StorageType.data);
|
|
|
for (let iRow = 1; iRow <= this.billsCount; iRow++) {
|
|
|
- qdSheet.getCell(iRow - 1, 0, GC.Spread.Sheets.SheetArea.rowHeader).text('清单' + iRow);
|
|
|
+ qdSheet.getCell(iRow - 1, 0, GC.Spread.Sheets.SheetArea.rowHeader).text('节点' + iRow);
|
|
|
}
|
|
|
qdSheet.setSelection(0, 0, 1 ,1);
|
|
|
SpreadJsObj.endMassOperation(qdSheet);
|
|
@@ -1286,7 +1286,7 @@ $(document).ready(() => {
|
|
|
posSheet.clear(0, 0, posSheet.getRowCount(), posSheet.getColumnCount(), GC.Spread.Sheets.SheetArea.viewport, GC.Spread.Sheets.StorageType.data);
|
|
|
posSheet.setSelection(0, 0, 1 ,1);
|
|
|
SpreadJsObj.endMassOperation(posSheet);
|
|
|
- // 检查签约清单数据,以工具栏数据为准
|
|
|
+ // 检查签约节点数据,以工具栏数据为准
|
|
|
if (dealBills) {
|
|
|
SpreadJsObj.loadSheetData(this.dealSpread.getActiveSheet(), 'data', dealBills.data);
|
|
|
}
|
|
@@ -1352,7 +1352,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- // 展开收起标准清单
|
|
|
+ // 展开收起标准节点
|
|
|
$('a', '#side-menu').bind('click', function (e) {
|
|
|
e.preventDefault();
|
|
|
const tab = $(this), tabPanel = $(tab.attr('content'));
|