This commit is contained in:
wangyidong
2022-12-23 10:21:12 +08:00
parent 13e8ae5728
commit 0a3df6b5ec
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -253,6 +253,7 @@ function budgetOverrunTips()
function outOfDateTip(currentID)
{
if(window.ignoreTips['dateTip']) return;
if(typeof(systemMode) != 'undefined' && systemMode == 'light') return;
if(batchEditDateTips.includes(Number(currentID))) return;
var end = currentID ? $('#ends\\[' + currentID + '\\]').val() : $('#end').val();
@@ -265,7 +266,7 @@ function outOfDateTip(currentID)
{
var selectedProgramID = currentID ? $("select[name='parents\[" + currentID + "\]']").val() : $('#parent').val();
if(selectedProgramID == 0) return;
if(selectedProgramID == 0 || selectedProgramID == undefined) return;
if(typeof(projectID) == 'undefined') projectID = 0;
projectID = currentID ? $('#projectIdList\\['+ currentID + '\\]').val() : projectID;
+1
View File
@@ -17,6 +17,7 @@
<?php js::set('beginLetterParent', $lang->project->beginLetterParent);?>
<?php js::set('endGreaterParent', $lang->project->endGreaterParent);?>
<?php js::set('LONG_TIME', LONG_TIME);?>
<?php js::set('systemMode', $config->systemMode);?>
<?php js::set('longTime', $lang->project->longTime);?>
<?php js::set('ignore', $lang->project->ignore);?>
<?php $requiredFields = $config->project->edit->requiredFields;?>
+2 -1
View File
@@ -14,6 +14,7 @@
<?php include '../../common/view/kindeditor.html.php';?>
<?php js::import($jsRoot . 'misc/date.js');?>
<?php js::set('LONG_TIME', LONG_TIME);?>
<?php js::set('systemMode', $config->systemMode);?>
<?php js::set('model', $model);?>
<?php js::set('programID', $programID);?>
<?php js::set('copyProjectID', $copyProjectID);?>
@@ -155,7 +156,7 @@
<div class='table-col'>
<?php $hasBranch = $product->type != 'normal' and isset($branchGroups[$product->id]);?>
<div class='input-group <?php if($hasBranch) echo ' has-branch';?>'>
<span class='input-group-addon'><?php echo $lang->product->common;?></span>
<span class='input-group-addon'><?php echo $lang->product->common;?></span>
<?php echo html::select("products[$i]", $allProducts, $product->id, "class='form-control chosen' onchange='loadBranches(this)' data-last='" . $product->id . "' data-type='" . $product->type . "'");?>
</div>
</div>