|
@@ -65,6 +65,7 @@ const billsGuidance = (function () {
|
|
{
|
|
{
|
|
width: 45,
|
|
width: 45,
|
|
readOnly: true,
|
|
readOnly: true,
|
|
|
|
+ showHint: true,
|
|
head: {
|
|
head: {
|
|
titleNames: ["计量单位"],
|
|
titleNames: ["计量单位"],
|
|
spanCols: [1],
|
|
spanCols: [1],
|
|
@@ -300,6 +301,8 @@ const billsGuidance = (function () {
|
|
module.workBook.focus();
|
|
module.workBook.focus();
|
|
sheet.options.isProtected = true;
|
|
sheet.options.isProtected = true;
|
|
sheet.name('stdBillsGuidance_bills');
|
|
sheet.name('stdBillsGuidance_bills');
|
|
|
|
+ //设置悬浮提示
|
|
|
|
+ TREE_SHEET_HELPER.initSetting(bills.dom[0], bills.treeSetting);
|
|
}
|
|
}
|
|
if(module === guideItem){
|
|
if(module === guideItem){
|
|
sheet.options.isProtected = true;
|
|
sheet.options.isProtected = true;
|
|
@@ -416,6 +419,15 @@ const billsGuidance = (function () {
|
|
bills.tree.setRootExpanded(bills.tree.roots, false);
|
|
bills.tree.setRootExpanded(bills.tree.roots, false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //设置tag以悬浮提示
|
|
|
|
+ function setTagForHint(nodes){
|
|
|
|
+ let sheet = bills.workBook.getActiveSheet();
|
|
|
|
+ renderSheetFunc(sheet, function () {
|
|
|
|
+ for(let node of nodes){
|
|
|
|
+ sheet.setTag(node.serialNo(), 2, node.data.ruleText ? node.data.ruleText : '');
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
//初始选择清单指引库
|
|
//初始选择清单指引库
|
|
//@param {Number}libID @return {void}
|
|
//@param {Number}libID @return {void}
|
|
function libInitSel(libID){
|
|
function libInitSel(libID){
|
|
@@ -428,6 +440,7 @@ const billsGuidance = (function () {
|
|
for(let node of bills.tree.items){
|
|
for(let node of bills.tree.items){
|
|
node.guidance = {tree: null, controller: null};
|
|
node.guidance = {tree: null, controller: null};
|
|
}
|
|
}
|
|
|
|
+ setTagForHint(bills.tree.items);
|
|
//默认初始节点
|
|
//默认初始节点
|
|
billsInitSel(0);
|
|
billsInitSel(0);
|
|
});
|
|
});
|
|
@@ -604,13 +617,17 @@ const billsGuidance = (function () {
|
|
sessionStorage.setItem('stdBillsGuidanceExpState', bills.tree.getExpState(bills.tree.items));
|
|
sessionStorage.setItem('stdBillsGuidanceExpState', bills.tree.getExpState(bills.tree.items));
|
|
|
|
|
|
let sel = billsSheet.getSelections();
|
|
let sel = billsSheet.getSelections();
|
|
- bills.controller.setTreeSelected(result[0]);
|
|
|
|
- billsSheet.setSelection(result[0].serialNo(), sel[0].col, 1, 1);
|
|
|
|
- billsInitSel(result[0].serialNo());
|
|
|
|
|
|
+ renderSheetFunc(billsSheet, function () {
|
|
|
|
+ bills.controller.setTreeSelected(result[0]);
|
|
|
|
+ billsSheet.setSelection(result[0].serialNo(), sel[0].col, 1, 1);
|
|
|
|
+ billsInitSel(result[0].serialNo());
|
|
|
|
|
|
- for (let node of result) {
|
|
|
|
- billsSheet.getRange(node.serialNo(), -1, 1, -1).backColor('lemonChiffon');
|
|
|
|
- }
|
|
|
|
|
|
+ for (let node of result) {
|
|
|
|
+ billsSheet.getRange(node.serialNo(), -1, 1, -1).backColor('lemonChiffon');
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ //搜索初始定位
|
|
|
|
+ billsSheet.showRow(result[0].serialNo(), GC.Spread.Sheets.VerticalPosition.bottom);
|
|
|
|
|
|
$('#nextBillsGuidance').show();
|
|
$('#nextBillsGuidance').show();
|
|
$('#nextBillsGuidance').unbind('click');
|
|
$('#nextBillsGuidance').unbind('click');
|