|
@@ -49,7 +49,7 @@ $(document).ready(function() {
|
|
|
node.dgn_price = ZhCalc.round(ZhCalc.div(node.total_price, node.dgn_qty1), 2);
|
|
|
};
|
|
|
const ledgerTree = createNewPathTree('ledger', treeSetting);
|
|
|
- // 初始化 部位明细
|
|
|
+ // 初始化 计量单元
|
|
|
const pos = new PosData({
|
|
|
id: 'id', ledgerId: 'lid',
|
|
|
});
|
|
@@ -380,7 +380,7 @@ $(document).ready(function() {
|
|
|
if (orgValue == info.editingText || ((!orgValue || orgValue === '') && (info.editingText === ''))) {
|
|
|
return;
|
|
|
}
|
|
|
- // 台账模式,检查部位明细相关
|
|
|
+ // 台账模式,检查计量单元相关
|
|
|
if (checkTzMeasureType()) {
|
|
|
if (col.field === 'sgfh_qty' || col.field === 'sgfh_tp' ||
|
|
|
col.field === 'sjcl_qty' || col.field === 'sjcl_tp' ||
|
|
@@ -388,7 +388,7 @@ $(document).ready(function() {
|
|
|
if (!node.children || node.children.length ===0) {
|
|
|
const lPos = pos.getLedgerPos(node.id);
|
|
|
if (lPos && lPos.length > 0) {
|
|
|
- toastr.error('清单含有部位明细,请在部位明细输入数量');
|
|
|
+ toastr.error('清单含有计量单元,请在计量单元输入数量');
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.row);
|
|
|
return;
|
|
|
}
|
|
@@ -397,7 +397,7 @@ $(document).ready(function() {
|
|
|
if (col.field === 'b_code' && (info.editingText === '' || !info.editingText)) {
|
|
|
const lPos = pos.getLedgerPos(node.id);
|
|
|
if (lPos && lPos.length > 0) {
|
|
|
- toastr.error('清单含有部位明细,请先删除部位明细,再删除清单编号');
|
|
|
+ toastr.error('清单含有计量单元,请先删除计量单元,再删除清单编号');
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.row);
|
|
|
return;
|
|
|
}
|
|
@@ -455,7 +455,7 @@ $(document).ready(function() {
|
|
|
if (lPos && lPos.length > 0) {
|
|
|
if (value === '' && colSetting.field === 'b_code') {
|
|
|
if (!bHint) {
|
|
|
- toastr.warning('清单含有部位明细,请先删除部位明细,再删除清单编号');
|
|
|
+ toastr.warning('清单含有计量单元,请先删除计量单元,再删除清单编号');
|
|
|
bHint = true;
|
|
|
}
|
|
|
continue;
|
|
@@ -464,7 +464,7 @@ $(document).ready(function() {
|
|
|
colSetting.field === 'sjcl_qty' || colSetting.field === 'sjcl_tp' ||
|
|
|
colSetting.field === 'qtcl_qty' || colSetting.field === 'qtcl_tp') {
|
|
|
if (!bHint) {
|
|
|
- toastr.warning('清单含有部位明细,数量金额根据部位明细汇总计算所得,不可编辑');
|
|
|
+ toastr.warning('清单含有计量单元,数量金额根据计量单元汇总计算所得,不可编辑');
|
|
|
bHint = true;
|
|
|
}
|
|
|
continue;
|
|
@@ -581,8 +581,8 @@ $(document).ready(function() {
|
|
|
const hint = [];
|
|
|
if (bParentHint) hint.push('含有子项的清单,不可粘贴数量、单价、金额');
|
|
|
if (bGclHint) hint.push('工程量清单,不可粘贴设计数量');
|
|
|
- if (bQtyHint) hint.push('含有部位明细的清单,不可粘贴数量');
|
|
|
- if (bCodeHint) hint.push('含有部位明细的清单,清单编号不可粘贴空值');
|
|
|
+ if (bQtyHint) hint.push('含有计量单元的清单,不可粘贴数量');
|
|
|
+ if (bCodeHint) hint.push('含有计量单元的清单,清单编号不可粘贴空值');
|
|
|
if (bNumHint) hint.push('单价、数量等应输入数字或可计算的表达式');
|
|
|
// if (hint.length > 0) hint.unshift('复制粘贴的数据中,存在非法数据,已过滤:');
|
|
|
// if (hint.length > 0) toastr.warning(hint.join('</br>'));
|
|
@@ -628,9 +628,9 @@ $(document).ready(function() {
|
|
|
if (lPos && lPos.length > 0) {
|
|
|
if (!bHint) {
|
|
|
if (col.field === 'code') {
|
|
|
- toastr.warning('清单含有部位明细,请先删除部位明细,再删除清单编号');
|
|
|
+ toastr.warning('清单含有计量单元,请先删除计量单元,再删除清单编号');
|
|
|
} else {
|
|
|
- toastr.warning('清单含有部位明细,数量金额根据部位明细汇总计算所得,不可删除');
|
|
|
+ toastr.warning('清单含有计量单元,数量金额根据计量单元汇总计算所得,不可删除');
|
|
|
}
|
|
|
bHint = true;
|
|
|
}
|
|
@@ -1030,7 +1030,7 @@ $(document).ready(function() {
|
|
|
}
|
|
|
|
|
|
const posSearch = $.posSearch({selector: '#pos-search', searchSpread: posSpread});
|
|
|
- // 台账模式加载部位明细数据
|
|
|
+ // 台账模式加载计量单元数据
|
|
|
if (checkTzMeasureType()) {
|
|
|
$.divResizer({
|
|
|
select: '#main-resize',
|
|
@@ -1043,13 +1043,13 @@ $(document).ready(function() {
|
|
|
});
|
|
|
SpreadJsObj.initSheet(posSpread.getActiveSheet(), posSpreadSetting);
|
|
|
}
|
|
|
- // 绑定部位明细编辑事件
|
|
|
+ // 绑定计量单元编辑事件
|
|
|
const posOperationObj = {
|
|
|
editStarting: function (e, info) {
|
|
|
posOperationObj.ledgerTreeNode = SpreadJsObj.getSelectObject(ledgerSpread.getActiveSheet());
|
|
|
},
|
|
|
/**
|
|
|
- * 加载部位明细 根据当前台账选择节点
|
|
|
+ * 加载计量单元 根据当前台账选择节点
|
|
|
*/
|
|
|
loadCurPosData: function () {
|
|
|
const node = treeOperationObj.getSelectNode(ledgerSpread.getActiveSheet());
|
|
@@ -1082,11 +1082,11 @@ $(document).ready(function() {
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.row);
|
|
|
return;
|
|
|
} else if (newText && newText !== '' && node.children && node.children.length > 0) {
|
|
|
- toastr.error('父节点不可插入部位明细');
|
|
|
+ toastr.error('父节点不可插入计量单元');
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.row);
|
|
|
return;
|
|
|
} else if (newText && newText !== '' && (!node.b_code || node.b_code === '')) {
|
|
|
- toastr.error('项目节不可插入部位明细');
|
|
|
+ toastr.error('项目节不可插入计量单元');
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.row);
|
|
|
return;
|
|
|
}
|
|
@@ -1204,7 +1204,7 @@ $(document).ready(function() {
|
|
|
}
|
|
|
},
|
|
|
/**
|
|
|
- * 删除 部位明细
|
|
|
+ * 删除 计量单元
|
|
|
* @param sheet
|
|
|
*/
|
|
|
deletePos: function (sheet) {
|
|
@@ -1243,7 +1243,7 @@ $(document).ready(function() {
|
|
|
return;
|
|
|
}
|
|
|
if (node.children && (node.children.length > 0)) {
|
|
|
- toastr.error('仅清单子项可以含有部位明细');
|
|
|
+ toastr.error('仅清单子项可以含有计量单元');
|
|
|
posOperationObj.loadCurPosData();
|
|
|
return;
|
|
|
}
|