|
|
@ -9,7 +9,7 @@ |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label">技术绩效ID:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<input name="techniqueId" class="form-control" type="text"> |
|
|
|
<input name="techniqueId" class="form-control" type="text" disabled> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
@ -33,7 +33,9 @@ |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label">币种:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<input name="currency" class="form-control" type="text"> |
|
|
|
<select name="currency" class="form-control" th:with="currency=${@dict.getType('sys_common_currency')}"> |
|
|
|
<option th:each="dict : ${currency}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
@ -71,10 +73,24 @@ |
|
|
|
<th:block th:include="include :: footer" /> |
|
|
|
<script th:inline="javascript"> |
|
|
|
var prefix = ctx + "system/technicalMerits" |
|
|
|
$("#form-technicalMerits-add").validate({ |
|
|
|
focusCleanup: true |
|
|
|
$("#form-technicalMerits-add").validate({focusCleanup: true}); |
|
|
|
$(function (){ |
|
|
|
$.ajax({ |
|
|
|
url: prefix + "/getId", |
|
|
|
type: "get", |
|
|
|
dateType: "json", |
|
|
|
success: function (resp) { |
|
|
|
if (resp.code === 0) { |
|
|
|
$("#form-technicalMerits-add input[name='techniqueId']").val(resp.data); |
|
|
|
} else { |
|
|
|
$.modal.msgError("失败啦"); |
|
|
|
} |
|
|
|
}, |
|
|
|
error: function () { |
|
|
|
$.modal.msgError("后台出错啦!"); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
}) |
|
|
|
function submitHandler() { |
|
|
|
if ($.validate.form()) { |
|
|
|
$.operate.save(prefix + "/add", $('#form-technicalMerits-add').serialize()); |
|
|
|