|
@@ -10,7 +10,7 @@
|
|
|
|
|
|
const ckBillsSpread = window.location.pathname + '-billsSelect';
|
|
|
function transExpr(expr) {
|
|
|
- return expr.replace('=', '').replace('%', '/100');
|
|
|
+ return $.trim(expr).replace('\t', '').replace('=', '').replace('%', '/100');
|
|
|
}
|
|
|
|
|
|
$(document).ready(() => {
|
|
@@ -42,7 +42,7 @@ $(document).ready(() => {
|
|
|
});
|
|
|
const posSearch = $.posSearch({selector: '#pos-search', searchSpread: posSpread});
|
|
|
|
|
|
- // 初始化 清单树结构
|
|
|
+ // 初始化 节点树结构
|
|
|
const treeSetting = {
|
|
|
id: 'ledger_id',
|
|
|
pid: 'ledger_pid',
|
|
@@ -64,7 +64,7 @@ $(document).ready(() => {
|
|
|
// 加载至spread
|
|
|
SpreadJsObj.loadSheetData(billsSheet, SpreadJsObj.DataType.Tree, billsTree);
|
|
|
SpreadJsObj.loadTopAndSelect(billsSheet, ckBillsSpread);
|
|
|
- // 初始化 部位明细
|
|
|
+ // 初始化 计量单元
|
|
|
const pos = new PosData({ id: 'id', ledgerId: 'lid' });
|
|
|
pos.loadDatas(posData);
|
|
|
|
|
@@ -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;
|
|
|
}
|
|
|
}
|
|
@@ -315,7 +315,7 @@ $(document).ready(() => {
|
|
|
if (orgValue == info.editingText || ((!orgValue || orgValue === '') && (info.editingText === ''))) {
|
|
|
return;
|
|
|
}
|
|
|
- // 台账模式,检查部位明细相关
|
|
|
+ // 台账模式,检查计量单元相关
|
|
|
if (isTz) {
|
|
|
if (col.field === 'sgfh_qty' || col.field === 'sgfh_tp' ||
|
|
|
col.field === 'sjcl_qty' || col.field === 'sjcl_tp' ||
|
|
@@ -323,7 +323,7 @@ $(document).ready(() => {
|
|
|
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;
|
|
|
}
|
|
@@ -332,7 +332,7 @@ $(document).ready(() => {
|
|
|
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;
|
|
|
}
|
|
@@ -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,11 +392,11 @@ $(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: '清单含有部位明细,数量金额根据部位明细汇总计算所得,不可修改'},
|
|
|
+ posCode: {type: 'error', msg: '清单含有计量单元,请先删除计量单元,再修改清单编号为空'},
|
|
|
+ posQty: {type: 'error', msg: '清单含有计量单元,数量金额根据计量单元汇总计算所得,不可修改'},
|
|
|
};
|
|
|
|
|
|
const tree = info.sheet.zh_tree;
|
|
@@ -514,6 +514,10 @@ $(document).ready(() => {
|
|
|
pos.updateDatas(data.pos);
|
|
|
const result = tree.loadPostData(data.ledger);
|
|
|
self.refreshTree(sheet, result);
|
|
|
+ const sel = sheet.getSelections()[0];
|
|
|
+ if (sel) {
|
|
|
+ sheet.setSelection(tree.nodes.indexOf(refreshData.create[0]), sel.col, sel.rowCount, sel.colCount);
|
|
|
+ }
|
|
|
self.refreshOperationValid(sheet);
|
|
|
removeLocalCache(copyBlockTag);
|
|
|
}, null, true);
|
|
@@ -528,6 +532,7 @@ $(document).ready(() => {
|
|
|
switch (col.field) {
|
|
|
case 'unit_price':
|
|
|
info.cancel = (node.children && node.children.length > 0) || node.used;
|
|
|
+ break;
|
|
|
case 'sgfh_qty':
|
|
|
case 'sgfh_tp':
|
|
|
case 'sjcl_qty':
|
|
@@ -556,6 +561,8 @@ $(document).ready(() => {
|
|
|
});
|
|
|
|
|
|
$('#bills-expr').bind('change mouseleave', function () {
|
|
|
+ if (this.readOnly) return;
|
|
|
+
|
|
|
const expr = $(this);
|
|
|
const select = SpreadJsObj.getSelectObject(billsSheet);
|
|
|
const field = expr.attr('field'), orgValue = expr.attr('org'), newValue = expr.val();
|
|
@@ -601,7 +608,7 @@ $(document).ready(() => {
|
|
|
},
|
|
|
items: {
|
|
|
'batchInsertBillsPos': {
|
|
|
- name: '批量插入清单-部位',
|
|
|
+ name: '批量插入节点-部位',
|
|
|
icon: 'fa-sign-in',
|
|
|
disabled: function (key, opt) {
|
|
|
const select = SpreadJsObj.getSelectObject(billsSheet);
|
|
@@ -637,7 +644,7 @@ $(document).ready(() => {
|
|
|
|
|
|
const posSpreadObj = {
|
|
|
/**
|
|
|
- * 加载部位明细 根据当前台账选择节点
|
|
|
+ * 加载计量单元 根据当前台账选择节点
|
|
|
*/
|
|
|
loadCurPosData: function () {
|
|
|
const node = SpreadJsObj.getSelectObject(billsSheet);
|
|
@@ -675,11 +682,11 @@ $(document).ready(() => {
|
|
|
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;
|
|
|
}
|
|
@@ -700,7 +707,7 @@ $(document).ready(() => {
|
|
|
return;
|
|
|
}
|
|
|
} else {
|
|
|
- data.posPostType = 'update-pos';
|
|
|
+ data.posPostType = 'update';
|
|
|
data.postData = {id: posData.id, name: newText};
|
|
|
}
|
|
|
} else if (!posData) {
|
|
@@ -789,7 +796,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
},
|
|
|
/**
|
|
|
- * 删除 部位明细
|
|
|
+ * 删除 计量单元
|
|
|
* @param sheet
|
|
|
*/
|
|
|
deletePos: function (sheet) {
|
|
@@ -844,12 +851,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;
|
|
|
}
|
|
@@ -934,6 +941,8 @@ $(document).ready(() => {
|
|
|
posSpread.bind(spreadNS.Events.SelectionChanged, posSpreadObj.selectionChanged);
|
|
|
if (!readOnly) {
|
|
|
$('#pos-expr').bind('change mouseleave', function () {
|
|
|
+ if (this.readOnly) return;
|
|
|
+
|
|
|
const expr = $(this);
|
|
|
const select = SpreadJsObj.getSelectObject(posSheet);
|
|
|
const field = expr.attr('field'), orgValue = expr.attr('org'), newValue = expr.val();
|
|
@@ -1036,7 +1045,7 @@ $(document).ready(() => {
|
|
|
|
|
|
if (stdType === 'gcl') {
|
|
|
if (mainNode.code && mainNode.code !== '' && !mainTree.isLeafXmj(mainNode)) {
|
|
|
- toastr.warning('非最底层项目下,不应添加清单');
|
|
|
+ toastr.warning('非最底层项目下,不应添加节点');
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
@@ -1104,7 +1113,7 @@ $(document).ready(() => {
|
|
|
if (!mainNode || !mainTree) { return; }
|
|
|
|
|
|
if (mainNode.code && mainNode.code !== '' && !mainTree.isLeafXmj(mainNode)) {
|
|
|
- toastr.warning('非最底层项目下,不应添加清单');
|
|
|
+ toastr.warning('非最底层项目下,不应添加节点');
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -1165,7 +1174,9 @@ $(document).ready(() => {
|
|
|
],
|
|
|
emptyRows: this.billsCount,
|
|
|
headRows: 1,
|
|
|
- headRowHeight: [40],
|
|
|
+ headRowHeight: [32],
|
|
|
+ headerFont: '12px 微软雅黑',
|
|
|
+ font: '12px 微软雅黑',
|
|
|
};
|
|
|
this.qdSpread = SpreadJsObj.createNewSpread($('.batch-l-t', this.obj)[0]);
|
|
|
// 初始化 部位数量复核表 参数
|
|
@@ -1176,15 +1187,17 @@ $(document).ready(() => {
|
|
|
],
|
|
|
emptyRows: this.posCount,
|
|
|
headRows: 1,
|
|
|
- headRowHeight: [40],
|
|
|
+ headRowHeight: [32],
|
|
|
+ headerFont: '12px 微软雅黑',
|
|
|
+ font: '12px 微软雅黑',
|
|
|
};
|
|
|
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},
|
|
@@ -1194,17 +1207,19 @@ $(document).ready(() => {
|
|
|
],
|
|
|
emptyRows: 0,
|
|
|
headRows: 1,
|
|
|
- headRowHeight: [40],
|
|
|
+ headRowHeight: [32],
|
|
|
+ headerFont: '12px 微软雅黑',
|
|
|
+ font: '12px 微软雅黑',
|
|
|
};
|
|
|
this.dealSpread = SpreadJsObj.createNewSpread($('.batch-r', this.obj)[0]);
|
|
|
// 初始化 清单编号、部位数量复核表 表格
|
|
|
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();
|
|
@@ -1216,7 +1231,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);
|
|
@@ -1261,7 +1276,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);
|
|
@@ -1275,7 +1290,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);
|
|
|
}
|
|
@@ -1321,8 +1336,10 @@ $(document).ready(() => {
|
|
|
],
|
|
|
emptyRows: 0,
|
|
|
headRows: 1,
|
|
|
- headRowHeight: [40],
|
|
|
+ headRowHeight: [32],
|
|
|
defaultRowHeight: 21,
|
|
|
+ headerFont: '12px 微软雅黑',
|
|
|
+ font: '12px 微软雅黑',
|
|
|
});
|
|
|
$.divResizer({
|
|
|
select: '#revise-right-spr',
|
|
@@ -1339,33 +1356,40 @@ $(document).ready(() => {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- // 展开收起标准清单
|
|
|
+ const showSideTools = function (show) {
|
|
|
+ const left = $('#left-view'), right = $('#right-view'), parent = left.parent();
|
|
|
+ if (show) {
|
|
|
+ right.show();
|
|
|
+ autoFlashHeight();
|
|
|
+ /**
|
|
|
+ * right.show()后, parent被撑开成2倍left.height, 导致parent.width减少了10px
|
|
|
+ * 第一次left.width调整后,parent的缩回left.height, 此时parent.width又增加了10px
|
|
|
+ * 故需要通过最终的parent.width再计算一次left.width
|
|
|
+ *
|
|
|
+ * Q: 为什么不通过先计算left.width的宽度,以避免计算两次left.width?
|
|
|
+ * A: 右侧工具栏不一定显示,当右侧工具栏显示过一次后,就必须使用parent和right来计算left.width
|
|
|
+ *
|
|
|
+ */
|
|
|
+ //left.css('width', parent.width() - right.outerWidth());
|
|
|
+ //left.css('width', parent.width() - right.outerWidth());
|
|
|
+ const percent = 100 - right.outerWidth() /parent.width() * 100;
|
|
|
+ left.css('width', percent + '%');
|
|
|
+ } else {
|
|
|
+ left.width(parent.width());
|
|
|
+ right.hide();
|
|
|
+ }
|
|
|
+ };
|
|
|
+ $('#content-tab').addClass('active');
|
|
|
+ $('#xd-content').addClass('active');
|
|
|
+ showSideTools(true);
|
|
|
+ billsSpread.refresh();
|
|
|
+ if (posSpread) {
|
|
|
+ posSpread.refresh();
|
|
|
+ }
|
|
|
+ // 展开收起标准节点
|
|
|
$('a', '#side-menu').bind('click', function (e) {
|
|
|
e.preventDefault();
|
|
|
const tab = $(this), tabPanel = $(tab.attr('content'));
|
|
|
- const showSideTools = function (show) {
|
|
|
- const left = $('#left-view'), right = $('#right-view'), parent = left.parent();
|
|
|
- if (show) {
|
|
|
- right.show();
|
|
|
- autoFlashHeight();
|
|
|
- /**
|
|
|
- * right.show()后, parent被撑开成2倍left.height, 导致parent.width减少了10px
|
|
|
- * 第一次left.width调整后,parent的缩回left.height, 此时parent.width又增加了10px
|
|
|
- * 故需要通过最终的parent.width再计算一次left.width
|
|
|
- *
|
|
|
- * Q: 为什么不通过先计算left.width的宽度,以避免计算两次left.width?
|
|
|
- * A: 右侧工具栏不一定显示,当右侧工具栏显示过一次后,就必须使用parent和right来计算left.width
|
|
|
- *
|
|
|
- */
|
|
|
- //left.css('width', parent.width() - right.outerWidth());
|
|
|
- //left.css('width', parent.width() - right.outerWidth());
|
|
|
- const percent = 100 - right.outerWidth() /parent.width() * 100;
|
|
|
- left.css('width', percent + '%');
|
|
|
- } else {
|
|
|
- left.width(parent.width());
|
|
|
- right.hide();
|
|
|
- }
|
|
|
- };
|
|
|
// 展开工具栏、切换标签
|
|
|
if (!tab.hasClass('active')) {
|
|
|
const close = $('.active', '#side-menu').length === 0;
|
|
@@ -1392,8 +1416,10 @@ $(document).ready(() => {
|
|
|
treeCol: 0,
|
|
|
emptyRows: 0,
|
|
|
headRows: 1,
|
|
|
- headRowHeight: [40],
|
|
|
+ headRowHeight: [32],
|
|
|
defaultRowHeight: 21,
|
|
|
+ headerFont: '12px 微软雅黑',
|
|
|
+ font: '12px 微软雅黑',
|
|
|
});
|
|
|
stdXmj.loadLib($('select', '#std-xmj').val());
|
|
|
}
|
|
@@ -1416,8 +1442,10 @@ $(document).ready(() => {
|
|
|
treeCol: 0,
|
|
|
emptyRows: 0,
|
|
|
headRows: 1,
|
|
|
- headRowHeight: [40],
|
|
|
+ headRowHeight: [32],
|
|
|
defaultRowHeight: 21,
|
|
|
+ headerFont: '12px 微软雅黑',
|
|
|
+ font: '12px 微软雅黑',
|
|
|
});
|
|
|
stdGcl.loadLib($('select', '#std-gcl').val());
|
|
|
}
|
|
@@ -1441,8 +1469,10 @@ $(document).ready(() => {
|
|
|
],
|
|
|
emptyRows: 0,
|
|
|
headRows: 1,
|
|
|
- headRowHeight: [40],
|
|
|
+ headRowHeight: [32],
|
|
|
defaultRowHeight: 21,
|
|
|
+ headerFont: '12px 微软雅黑',
|
|
|
+ font: '12px 微软雅黑',
|
|
|
},
|
|
|
afterLocated: function () {
|
|
|
posSpreadObj.loadCurPosData();
|
|
@@ -1466,8 +1496,10 @@ $(document).ready(() => {
|
|
|
if (!readOnly) {
|
|
|
// 修订详情 保存
|
|
|
$('#save').click(function () {
|
|
|
- const content = $('textarea').val();
|
|
|
- postData('save', { content: content });
|
|
|
+ const content = $('#content').val();
|
|
|
+ postData('save', { content: content }, function () {
|
|
|
+ $('#content').attr('org-value', content);
|
|
|
+ });
|
|
|
});
|
|
|
}
|
|
|
|