|
@@ -8,6 +8,18 @@
|
|
|
* @version
|
|
|
*/
|
|
|
|
|
|
+function needCheckDetail(check = false) {
|
|
|
+ if (check) {
|
|
|
+ stage.check_detail = true;
|
|
|
+ $('#check_point').show();
|
|
|
+ $('#check-detail').show();
|
|
|
+ } else {
|
|
|
+ stage.check_detail = false;
|
|
|
+ $('#check_point').hide();
|
|
|
+ $('#check-detail').hide();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
$(document).ready(() => {
|
|
|
autoFlashHeight();
|
|
|
const detailSpreadSetting = {
|
|
@@ -145,6 +157,7 @@ $(document).ready(() => {
|
|
|
postData(window.location.pathname + '/save', updateData, function (result) {
|
|
|
stageIm.loadUpdateDetailData(result);
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.row);
|
|
|
+ needCheckDetail();
|
|
|
}, function () {
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.row);
|
|
|
});
|
|
@@ -188,6 +201,7 @@ $(document).ready(() => {
|
|
|
postData(window.location.pathname + '/save', datas, function (result) {
|
|
|
stageIm.loadUpdateDetailData(result);
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.cellRange.row, info.cellRange.rowCount);
|
|
|
+ needCheckDetail();
|
|
|
}, function () {
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.cellRange.row, info.cellRange.rowCount);
|
|
|
})
|
|
@@ -216,6 +230,7 @@ $(document).ready(() => {
|
|
|
postData(window.location.pathname + '/save', datas, function (result) {
|
|
|
stageIm.loadUpdateDetailData(result);
|
|
|
SpreadJsObj.reLoadRowData(sheet, sel.row, sel.rowCount);
|
|
|
+ needCheckDetail();
|
|
|
}, function () {
|
|
|
SpreadJsObj.reLoadRowData(sheet, sel.row, sel.rowCount);
|
|
|
});
|
|
@@ -257,6 +272,7 @@ $(document).ready(() => {
|
|
|
postData(window.location.pathname + '/save', datas, function (result) {
|
|
|
stageIm.loadUpdateDetailData(result);
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.fillRange.row, info.fillRange.rowCount);
|
|
|
+ needCheckDetail();
|
|
|
}, function () {
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.fillRange.row, info.fillRange.rowCount);
|
|
|
})
|
|
@@ -367,6 +383,7 @@ $(document).ready(() => {
|
|
|
postData(window.location.pathname + '/build', data, function (result) {
|
|
|
stage.im_type = data.im_type;
|
|
|
stage.im_pre = data.im_pre;
|
|
|
+ needCheckDetail();
|
|
|
// 加载生成数据
|
|
|
reBuildImData();
|
|
|
$('#choose').modal('hide');
|
|
@@ -503,6 +520,7 @@ $(document).ready(() => {
|
|
|
postData(window.location.pathname + '/adv', data, function (result) {
|
|
|
stage.im_gather = data.im_gather;
|
|
|
stage.im_gather_node = data.im_gather_node;
|
|
|
+ needCheckDetail();
|
|
|
$('#choose2').modal('hide');
|
|
|
});
|
|
|
});
|
|
@@ -568,6 +586,7 @@ $(document).ready(() => {
|
|
|
$('#unit-name').attr('readonly', '');
|
|
|
$('#drawing-code').attr('readonly', '');
|
|
|
$('#calc-memo').attr('readonly', '');
|
|
|
+ needCheckDetail();
|
|
|
});
|
|
|
});
|
|
|
// 取消
|
|
@@ -677,6 +696,7 @@ $(document).ready(() => {
|
|
|
// $('.img-item').mousedown(moveImageItem);
|
|
|
$('.img-bar').click(removeImageItem);
|
|
|
setdraggrable();
|
|
|
+ needCheckDetail();
|
|
|
});
|
|
|
}
|
|
|
});
|
|
@@ -727,12 +747,14 @@ $(document).ready(() => {
|
|
|
_.assign(data, result);
|
|
|
$('#calc-img').html('<img src="/' + data.calc_img + '" class="d-100" width="100%">');
|
|
|
$('#edit-img').modal('hide');
|
|
|
+ needCheckDetail();
|
|
|
});
|
|
|
} else if (data.calc_img) {
|
|
|
postData(window.location.pathname + '/merge-img', {updateType: 'clear', lid: data.lid, uuid: data.uuid}, function (result) {
|
|
|
_.assign(data, result);
|
|
|
$('#calc-img').html('');
|
|
|
$('#edit-img').modal('hide');
|
|
|
+ needCheckDetail();
|
|
|
});
|
|
|
}
|
|
|
});
|