项目阶段更新

master
hanbo 2022-12-09 15:58:11 +08:00
parent b2acf10717
commit 990cc15740
4 changed files with 79 additions and 28 deletions

View File

@ -848,7 +848,6 @@ public class ProjectController extends BaseController {
@RequestMapping("/info/{projectId}")
public ResponseMsg info(@PathVariable int projectId,Map<String, Object> model) {
Project project = projectService.getProject(projectId);
model.put("info",project);
return ResponseMsg.buildSuccessData(project);
}

View File

@ -326,6 +326,33 @@
></textarea>
</td>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="font-size: 15px">项目阶段:</span></th>
<td class="table-title" colspan="1" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="stage" name="stage">
<option value="-1" ></option>
<option value="0">S0-概算立项</option>
<option value="1">S1-项目调研</option>
<option value="2">S2-方案设计</option>
<option value="3">S3-预算评估</option>
<option value="4">S4-招标期</option>
<option value="5">S5-合同期</option>
<option value="6">S6-交付期</option>
<option value="7">S7-结算期</option>
<option value="8">S8-决算期</option>
<option value="9">L-项目丢失</option>
</select>
</td>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="font-size: 15px">当前进度描述:</span></th>
<td class="table-title" colspan="5" >
<textarea rows="3" cols="20" id="stageRemark" name="stageRemark" maxlength="1000"
class="am-input" style="border-style:none;" data-validate-async data-validation-message="当前进度描述"
placeholder="当前进度描述"
></textarea>
</td>
</tr>
</table>
<#-- <div class="am-tabs-bd">-->
<#-- <div class="am-tab-panel am-fade am-in" id="tab2">-->

View File

@ -456,18 +456,18 @@
<div class="st-col st-col-4">
<div class="st-col-title">项目阶段</div>
<div class="st-col-field">
<select data-am-selected="{btnSize: 'sm',btnWidth: '100%',maxHeight: 500,searchBox: 1}" id="qstage" name="qstage">
<select data-am-selected="{btnSize: 'sm',btnWidth: '100%',maxHeight: 500,searchBox: 1}" id="stage" name="stage">
<option value="-1">全部</option>
<option value="0" <#if qstage?? && qstage='0'>selected</#if>>S0-概算立项</option>
<option value="1" <#if qstage?? && qstage='1'>selected</#if>>S1-项目调研</option>
<option value="2" <#if qstage?? && qstage='2'>selected</#if>>S2-方案设计</option>
<option value="3" <#if qstage?? && qstage='3'>selected</#if>>S3-预算评估</option>
<option value="4" <#if qstage?? && qstage='4'>selected</#if>>S4-招标期</option>
<option value="5" <#if qstage?? && qstage='5'>selected</#if>>S5-合同期</option>
<option value="6" <#if qstage?? && qstage='6'>selected</#if>>S6-交付期</option>
<option value="7" <#if qstage?? && qstage='7'>selected</#if>>S7-结算期</option>
<option value="8" <#if qstage?? && qstage='8'>selected</#if>>S8-决算期</option>
<option value="9" <#if qstage?? && qstage='9'>selected</#if>>L-项目丢失</option>
<option value="0" <#if stage?? && stage='0'>selected</#if>>S0-概算立项</option>
<option value="1" <#if stage?? && stage='1'>selected</#if>>S1-项目调研</option>
<option value="2" <#if stage?? && stage='2'>selected</#if>>S2-方案设计</option>
<option value="3" <#if stage?? && stage='3'>selected</#if>>S3-预算评估</option>
<option value="4" <#if stage?? && stage='4'>selected</#if>>S4-招标期</option>
<option value="5" <#if stage?? && stage='5'>selected</#if>>S5-合同期</option>
<option value="6" <#if stage?? && stage='6'>selected</#if>>S6-交付期</option>
<option value="7" <#if stage?? && stage='7'>selected</#if>>S7-结算期</option>
<option value="8" <#if stage?? && stage='8'>selected</#if>>S8-决算期</option>
<option value="9" <#if stage?? && stage='9'>selected</#if>>L-项目丢失</option>
</select>
</div>
</div>
@ -1229,17 +1229,17 @@
<span style="color: red;">*</span>项目阶段</div>
<div class="am-u-sm-6 am-u-md-6">
<select data-am-selected="{btnSize: 'sm',btnWidth: '150px',maxHeight: 300,searchBox: 1}"
id="stage" name="stage">
<option value="0" <#if stage?? && stage='0'>selected</#if>>S0-概算立项</option>
<option value="1" <#if stage?? && stage='1'>selected</#if>>S1-项目调研</option>
<option value="2" <#if stage?? && stage='2'>selected</#if>>S2-方案设计</option>
<option value="3" <#if stage?? && stage='3'>selected</#if>>S3-预算评估</option>
<option value="4" <#if stage?? && stage='4'>selected</#if>>S4-招标期</option>
<option value="5" <#if stage?? && stage='5'>selected</#if>>S5-合同期</option>
<option value="6" <#if stage?? && stage='6'>selected</#if>>S6-交付期</option>
<option value="7" <#if stage?? && stage='7'>selected</#if>>S7-结算期</option>
<option value="8" <#if stage?? && stage='8'>selected</#if>>S8-决算期</option>
<option value="9" <#if stage?? && stage='9'>selected</#if>>L-项目丢失</option>
id="modalStage" name="modalStage">
<option value="0" >S0-概算立项</option>
<option value="1" >S1-项目调研</option>
<option value="2" >S2-方案设计</option>
<option value="3" >S3-预算评估</option>
<option value="4" >S4-招标期</option>
<option value="5" >S5-合同期</option>
<option value="6" >S6-交付期</option>
<option value="7" >S7-结算期</option>
<option value="8" >S8-决算期</option>
<option value="9" >L-项目丢失</option>
</select>
</div>
<div class="am-u-sm-3 am-u-md-3 input-msg"></div>
@ -1388,8 +1388,8 @@
keywordsObj.otherStart = $("#otherStart").val();
if ($("#otherEnd").val())
keywordsObj.otherEnd = $("#otherEnd").val();
if ($("#qstage").val())
keywordsObj.stage = $("#qstage").val();
if ($("#stage").val())
keywordsObj.stage = $("#stage").val();
}
if ($("#customer").val())
keywordsObj.customer = $("#customer").val();
@ -1530,6 +1530,8 @@
keywordsObj.otherStart = $("#otherStart").val();
if ($("#otherEnd").val())
keywordsObj.otherEnd = $("#otherEnd").val();
if ($("#stage").val())
keywordsObj.stage = $("#stage").val();
}
if ($("#customer").val())
keywordsObj.customer = $("#customer").val();
@ -1635,8 +1637,7 @@
* 项目阶段更新保存
*/
var stageRefreshSave = function () {
var stage = $("#stage").val();
console.info("=============="+stage);
var stage = $("#modalStage").val();
var stageRemark = $("#stageRemark").val();
var projectId = $("#stageProjectId").val();
if (stage == '') {
@ -1808,7 +1809,8 @@
type: 'post',
async: false,
success: function (data) {
$("#stage").val(data.data.stage);
$("#modalStage").val(data.data.stage);
$("#modalStage option[value='"+data.data.stage+"']").attr("selected","selected");
$("#stageRemark").val(data.data.stageRemark);
}
});

View File

@ -448,6 +448,27 @@
</div>
</div>
</div>
<!-- 第六行 -->
<div class="flex-row st-row">
<div class="st-col st-col-4">
<div class="st-col-title">项目阶段</div>
<div class="st-col-field">
<select data-am-selected="{btnSize: 'sm',btnWidth: '100%',maxHeight: 500,searchBox: 1}" id="stage" name="stage">
<option value="-1">全部</option>
<option value="0" <#if stage?? && stage='0'>selected</#if>>S0-概算立项</option>
<option value="1" <#if stage?? && stage='1'>selected</#if>>S1-项目调研</option>
<option value="2" <#if stage?? && stage='2'>selected</#if>>S2-方案设计</option>
<option value="3" <#if stage?? && stage='3'>selected</#if>>S3-预算评估</option>
<option value="4" <#if stage?? && stage='4'>selected</#if>>S4-招标期</option>
<option value="5" <#if stage?? && stage='5'>selected</#if>>S5-合同期</option>
<option value="6" <#if stage?? && stage='6'>selected</#if>>S6-交付期</option>
<option value="7" <#if stage?? && stage='7'>selected</#if>>S7-结算期</option>
<option value="8" <#if stage?? && stage='8'>selected</#if>>S8-决算期</option>
<option value="9" <#if stage?? && stage='9'>selected</#if>>L-项目丢失</option>
</select>
</div>
</div>
</div>
</div>
<!-- 按钮 -->
@ -737,6 +758,8 @@
keywordsObj.otherStart = $("#otherStart").val();
if ($("#otherEnd").val())
keywordsObj.otherEnd = $("#otherEnd").val();
if ($("#stage").val())
keywordsObj.stage = $("#stage").val();
}
if ($("#customer").val())
keywordsObj.customer = $("#customer").val();