Browse Source

[feat]修改出差单信息,添加审核字段,待办id事项字段调整

dev
zhangsiqi 5 months ago
parent
commit
9a61fc1ec0
  1. 1
      ruoyi-admin/src/main/java/com/ruoyi/system/domain/BaseEvectionForm.java
  2. 4
      ruoyi-admin/src/main/resources/mapper/system/BaseEvectionFormMapper.xml
  3. 18
      ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/add.html
  4. 13
      ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/edit.html

1
ruoyi-admin/src/main/java/com/ruoyi/system/domain/BaseEvectionForm.java

@ -138,6 +138,7 @@ public class BaseEvectionForm extends BaseEntity
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date applyTime;
public String getInstanceId() {
return instanceId;
}

4
ruoyi-admin/src/main/resources/mapper/system/BaseEvectionFormMapper.xml

@ -50,14 +50,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
evection_causes,evection_begin_time,evection_end_time,dispatchlist_code,make_code,
travel_mode,hotel,transportation_cost_budget,accommodation_budget,other_expenses_budget,
reality_evenction_begin_time,reality_evenction_end_time,create_by,create_time,update_by,
update_time,remark,instance_id,instance_type,instance_type_name,submit_instance_id,cancel_instance_id,
update_time,remark,instance_id,instance_type,submit_instance_id,cancel_instance_id,
restore_instance_id,apply_title,apply_user,apply_time
from base_evection_form
</sql>
<select id="selectBaseEvectionFormList" parameterType="BaseEvectionForm" resultMap="BaseEvectionFormResult">
<include refid="selectBaseEvectionFormVo" />
<where>
<where>
<if test="auditStatus != null and auditStatus != ''"> and audit_status = #{auditStatus}</if>
<if test="useStatus != null and useStatus != ''"> and use_status = #{useStatus}</if>
<if test="evectionCode != null and evectionCode != ''"> and evection_code = #{evectionCode}</if>

18
ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/add.html

@ -140,8 +140,9 @@
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/baseEvectionForm"
$("#form-baseEvectionForm-add").validate({
focusCleanup: true
$("#form-baseEvectionForm-add").validate({focusCleanup: true});
$(function() {
getSelections();
});
function submitHandler() {
@ -166,6 +167,19 @@
minView: "month",
autoclose: true
});
function getSelections(){
$.ajax({
url: ctx + "system/requisitioning/getEmpUserName",
type: "get",
dataType: "json",
success: function (data) {
$("select[name='deptName']").append($('<option></option>').val(data.deptName).html(data.deptName));
$("select[name='evectionBy']").append($('<option></option>').val(data.userName).html(data.userName));
$("select[name='postName']").append($('<option></option>').val(data.postName).html(data.postName));
}
});
}
</script>
</body>
</html>

13
ruoyi-admin/src/main/resources/templates/system/baseEvectionForm/edit.html

@ -110,6 +110,19 @@
minView: "month",
autoclose: true
});
function getSelections(){
$.ajax({
url: ctx + "system/requisitioning/getEmpUserName",
type: "get",
dataType: "json",
success: function (data) {
$("select[name='deptName']").append($('<option></option>').val(data.deptName).html(data.deptName));
$("select[name='evectionBy']").append($('<option></option>').val(data.userName).html(data.userName));
$("select[name='postName']").append($('<option></option>').val(data.postName).html(data.postName));
}
});
}
</script>
</body>
</html>
Loading…
Cancel
Save