|
@@ -2921,16 +2921,20 @@ $(document).ready(() => {
|
|
|
SpreadJsObj.reLoadSheetHeader(self.sheet);
|
|
|
$('[name=type-title-contract]').text('本期合同计量金额');
|
|
|
$('[name=type-title-qc]').text('本期变更计量金额');
|
|
|
- $('#show-qc-minus-jl').parent().hide();
|
|
|
- $('#qc-minus-jl').parent().hide();
|
|
|
+ if ($('#show-qc-minus-jl').length > 0) {
|
|
|
+ $('#show-qc-minus-jl').parent().hide();
|
|
|
+ $('#qc-minus-jl').parent().hide();
|
|
|
+ }
|
|
|
} else {
|
|
|
const jlCol = self.spreadSetting.cols.find(function (x) {return x.field === 'jl'});
|
|
|
jlCol.title = '本期计量数量';
|
|
|
SpreadJsObj.reLoadSheetHeader(self.sheet);
|
|
|
$('[name=type-title-contract]').text('本期合同计量数量');
|
|
|
$('[name=type-title-qc]').text('本期变更计量数量');
|
|
|
- $('#show-qc-minus-jl').parent().show();
|
|
|
- $('#qc-minus-jl').parent().show();
|
|
|
+ if ($('#show-qc-minus-jl').length > 0) {
|
|
|
+ $('#show-qc-minus-jl').parent().show();
|
|
|
+ $('#qc-minus-jl').parent().show();
|
|
|
+ }
|
|
|
}
|
|
|
if (stage.im_type === imType.bb.value || stage.im_type === imType.bw.value) {
|
|
|
$('#show-jldy').parent().show();
|
|
@@ -3020,16 +3024,20 @@ $(document).ready(() => {
|
|
|
SpreadJsObj.reLoadSheetHeader(self.sheet);
|
|
|
$('[name=type-title-contract]').text('本期合同计量金额');
|
|
|
$('[name=type-title-qc]').text('本期变更计量金额');
|
|
|
- $('#show-qc-minus-jl').parent().hide();
|
|
|
- $('#qc-minus-jl').parent().hide();
|
|
|
+ if ($('#show-qc-minus-jl').length > 0) {
|
|
|
+ $('#show-qc-minus-jl').parent().hide();
|
|
|
+ $('#qc-minus-jl').parent().hide();
|
|
|
+ }
|
|
|
} else {
|
|
|
const jlCol = self.spreadSetting.cols.find(function (x) {return x.field === 'jl'});
|
|
|
jlCol.title = '本期计量数量';
|
|
|
SpreadJsObj.reLoadSheetHeader(self.sheet);
|
|
|
$('[name=type-title-contract]').text('本期合同计量数量');
|
|
|
$('[name=type-title-qc]').text('本期变更计量数量');
|
|
|
- $('#show-qc-minus-jl').parent().show();
|
|
|
- $('#qc-minus-jl').parent().show();
|
|
|
+ if ($('#show-qc-minus-jl').length > 0) {
|
|
|
+ $('#show-qc-minus-jl').parent().show();
|
|
|
+ $('#qc-minus-jl').parent().show();
|
|
|
+ }
|
|
|
}
|
|
|
if (stage.im_type === imType.bb.value || stage.im_type === imType.bw.value) {
|
|
|
$('#show-jldy').parent().show();
|