Browse Source

修改出库申请审批页面

lwx_dev
erdanergou 3 years ago
parent
commit
c423672ff1
  1. 6
      src/main/java/com/dreamchaser/depository_manage/mapper/DepositoryRecordMapper.xml
  2. 3
      src/main/java/com/dreamchaser/depository_manage/mapper/StockTakingMapper.xml
  3. 4
      src/main/resources/templates/pages/application/application-in.html
  4. 8
      src/main/resources/templates/pages/warehouse/depository_add.html
  5. 6
      src/main/resources/templates/pages/warehouse/warehouse_view.html
  6. 6
      target/classes/com/dreamchaser/depository_manage/mapper/DepositoryRecordMapper.xml
  7. 3
      target/classes/com/dreamchaser/depository_manage/mapper/StockTakingMapper.xml
  8. 4
      target/classes/templates/pages/application/application-in.html
  9. 8
      target/classes/templates/pages/warehouse/depository_add.html
  10. 6
      target/classes/templates/pages/warehouse/warehouse_view.html

6
src/main/java/com/dreamchaser/depository_manage/mapper/DepositoryRecordMapper.xml

@ -184,6 +184,7 @@
and (departmentHeadTime != 0 and FIND_IN_SET(#{userId},departmenthead) != 0) and (departmentHeadTime != 0 and FIND_IN_SET(#{userId},departmenthead) != 0)
or (depositoryManagerTime != 0 and FIND_IN_SET(#{userId},depositoryManager) != 0) or (depositoryManagerTime != 0 and FIND_IN_SET(#{userId},depositoryManager) != 0)
</if> </if>
</select> </select>
<!-- 查询所有数据 --> <!-- 查询所有数据 -->
<select id="findCountByCondition" resultType="integer" parameterType="map"> <select id="findCountByCondition" resultType="integer" parameterType="map">
@ -291,6 +292,7 @@
or (depositoryManagerTime != 0 and FIND_IN_SET(#{userId},depositoryManager) != 0 and depositoryManagerPass != 3) or (depositoryManagerTime != 0 and FIND_IN_SET(#{userId},depositoryManager) != 0 and depositoryManagerPass != 3)
</if> </if>
group by aorid group by aorid
ORDER BY applicantTime desc
<if test="begin != null and size != null"> <if test="begin != null and size != null">
LIMIT #{begin},#{size} LIMIT #{begin},#{size}
</if> </if>
@ -329,9 +331,11 @@
<if test="applicantTime != null and applicantTime != ''"> <if test="applicantTime != null and applicantTime != ''">
and applicant_time >= #{applicantTime} and applicant_time >= #{applicantTime}
</if> </if>
order by applicant_time desc
<if test="begin != null and size != null"> <if test="begin != null and size != null">
LIMIT #{begin},#{size} LIMIT #{begin},#{size}
</if> </if>
</select> </select>
<!--根据条件查询出库记录--> <!--根据条件查询出库记录-->
<select id="findApplicationOutRecordByDepository" parameterType="String" resultMap="applicationOutRecord"> <select id="findApplicationOutRecordByDepository" parameterType="String" resultMap="applicationOutRecord">
@ -404,6 +408,8 @@
and placeId = #{placeId} and placeId = #{placeId}
</if> </if>
GROUP BY aorid GROUP BY aorid
ORDER BY applicantTime desc
<if test="begin != null and size != null"> <if test="begin != null and size != null">
LIMIT #{begin},#{size} LIMIT #{begin},#{size}
</if> </if>

3
src/main/java/com/dreamchaser/depository_manage/mapper/StockTakingMapper.xml

@ -214,6 +214,7 @@
<if test="originator != null and originator!=''"> <if test="originator != null and originator!=''">
and st.originator = #{originator} and st.originator = #{originator}
</if> </if>
</select> </select>
@ -293,6 +294,7 @@
and (state != 3 and departmentManagerState != 3 and FIND_IN_SET(#{userId},st.departmentManager) != 0 ) and (state != 3 and departmentManagerState != 3 and FIND_IN_SET(#{userId},st.departmentManager) != 0 )
or (state != 3 and departmentManagerState != 3 and #{userId} = st.originator) or (state != 3 and departmentManagerState != 3 and #{userId} = st.originator)
</if> </if>
ORDER BY st.createTime desc
<if test="begin != null and size != null"> <if test="begin != null and size != null">
LIMIT #{begin},#{size} LIMIT #{begin},#{size}
</if> </if>
@ -321,6 +323,7 @@
from stocktaking st from stocktaking st
where 1 = 1 where 1 = 1
and originator = #{userId} and originator = #{userId}
ORDER BY st.createTime desc
<if test="begin != null and size != null"> <if test="begin != null and size != null">
LIMIT #{begin},#{size} LIMIT #{begin},#{size}
</if> </if>

4
src/main/resources/templates/pages/application/application-in.html

@ -659,7 +659,7 @@
// 获取当前高度 // 获取当前高度
var height = parseInt(($("#stepForm").css('height')).split("px")[0]); var height = parseInt(($("#stepForm").css('height')).split("px")[0]);
params.push(NewIdNumber); params.push(NewIdNumber);
$("#stepForm").css("height", height + 623 + 'px'); $("#stepForm").css("height", height + 558 + 'px');
$("#" + parentId).after(materialItem); $("#" + parentId).after(materialItem);
}; };
// 实现卡片删除 // 实现卡片删除
@ -671,7 +671,7 @@
// 获取祖父节点 // 获取祖父节点
var reparent = parent.parentNode; var reparent = parent.parentNode;
var height = parseInt(($("#stepForm").css('height')).split("px")[0]); var height = parseInt(($("#stepForm").css('height')).split("px")[0]);
$("#stepForm").css("height", height - 623 + 'px'); $("#stepForm").css("height", height - 558 + 'px');
params = remove(params, parentId); params = remove(params, parentId);
reparent.removeChild(parent); reparent.removeChild(parent);
}; };

8
src/main/resources/templates/pages/warehouse/depository_add.html

@ -40,7 +40,7 @@
<label class="layui-form-label">部门</label> <label class="layui-form-label">部门</label>
<div class="layui-input-block"> <div class="layui-input-block">
<select name="adminorg" id="adminorg"></select> <select name="adminorg" id="adminorg" lay-verify="required"></select>
</div> </div>
</div> </div>
@ -55,7 +55,7 @@
<label class="layui-form-label">地址:</label> <label class="layui-form-label">地址:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="text" placeholder="请填写仓库地址" class="layui-input" <input type="text" placeholder="请填写仓库地址" class="layui-input"
name="address" lay-verify="required"/> name="address" />
</div> </div>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
@ -69,14 +69,14 @@
<label class="layui-form-label">最大存储量:</label> <label class="layui-form-label">最大存储量:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input name="maxNumber" placeholder="请填写最大存储量..." <input name="maxNumber" placeholder="请填写最大存储量..."
class="layui-input" value="500"></input> class="layui-input" value="5000"/>
</div> </div>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">最小存储量:</label> <label class="layui-form-label">最小存储量:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input name="minNumber" placeholder="请填写最小存储量..." <input name="minNumber" placeholder="请填写最小存储量..."
class="layui-input" value="0"></input> class="layui-input" value="0"/>
</div> </div>
</div> </div>

6
src/main/resources/templates/pages/warehouse/warehouse_view.html

@ -43,7 +43,7 @@
<div class="layui-form-item" style="display: inline-block"> <div class="layui-form-item" style="display: inline-block">
<label class="layui-form-label">部门</label> <label class="layui-form-label">部门</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<select name="adminorg" id="adminorg"> <select name="adminorg" id="adminorg" lay-verify="required">
<option value="">请选择部门</option> <option value="">请选择部门</option>
<option th:each="post,iterStar:${postList}" th:text="${post?.getName()}" th:value="${post?.getId()}" th:selected="${record.getAdminorg().equals(post.getId().toString())}"></option> <option th:each="post,iterStar:${postList}" th:text="${post?.getName()}" th:value="${post?.getId()}" th:selected="${record.getAdminorg().equals(post.getId().toString())}"></option>
</select> </select>
@ -52,13 +52,13 @@
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">仓库地址</label> <label class="layui-form-label">仓库地址</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="text" th:value="${record.getAddress()}" name="address" required lay-verify="required" autocomplete="off" class="layui-input"> <input type="text" th:value="${record.getAddress()}" name="address" autocomplete="off" class="layui-input">
</div> </div>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">仓库介绍</label> <label class="layui-form-label">仓库介绍</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="text" th:value="${record.getIntroduce()}" name="introduce" required lay-verify="required" autocomplete="off" class="layui-input"> <input type="text" th:value="${record.getIntroduce()}" name="introduce" autocomplete="off" class="layui-input">
</div> </div>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">

6
target/classes/com/dreamchaser/depository_manage/mapper/DepositoryRecordMapper.xml

@ -184,6 +184,7 @@
and (departmentHeadTime != 0 and FIND_IN_SET(#{userId},departmenthead) != 0) and (departmentHeadTime != 0 and FIND_IN_SET(#{userId},departmenthead) != 0)
or (depositoryManagerTime != 0 and FIND_IN_SET(#{userId},depositoryManager) != 0) or (depositoryManagerTime != 0 and FIND_IN_SET(#{userId},depositoryManager) != 0)
</if> </if>
</select> </select>
<!-- 查询所有数据 --> <!-- 查询所有数据 -->
<select id="findCountByCondition" resultType="integer" parameterType="map"> <select id="findCountByCondition" resultType="integer" parameterType="map">
@ -291,6 +292,7 @@
or (depositoryManagerTime != 0 and FIND_IN_SET(#{userId},depositoryManager) != 0 and depositoryManagerPass != 3) or (depositoryManagerTime != 0 and FIND_IN_SET(#{userId},depositoryManager) != 0 and depositoryManagerPass != 3)
</if> </if>
group by aorid group by aorid
ORDER BY applicantTime desc
<if test="begin != null and size != null"> <if test="begin != null and size != null">
LIMIT #{begin},#{size} LIMIT #{begin},#{size}
</if> </if>
@ -329,9 +331,11 @@
<if test="applicantTime != null and applicantTime != ''"> <if test="applicantTime != null and applicantTime != ''">
and applicant_time >= #{applicantTime} and applicant_time >= #{applicantTime}
</if> </if>
order by applicant_time desc
<if test="begin != null and size != null"> <if test="begin != null and size != null">
LIMIT #{begin},#{size} LIMIT #{begin},#{size}
</if> </if>
</select> </select>
<!--根据条件查询出库记录--> <!--根据条件查询出库记录-->
<select id="findApplicationOutRecordByDepository" parameterType="String" resultMap="applicationOutRecord"> <select id="findApplicationOutRecordByDepository" parameterType="String" resultMap="applicationOutRecord">
@ -404,6 +408,8 @@
and placeId = #{placeId} and placeId = #{placeId}
</if> </if>
GROUP BY aorid GROUP BY aorid
ORDER BY applicantTime desc
<if test="begin != null and size != null"> <if test="begin != null and size != null">
LIMIT #{begin},#{size} LIMIT #{begin},#{size}
</if> </if>

3
target/classes/com/dreamchaser/depository_manage/mapper/StockTakingMapper.xml

@ -214,6 +214,7 @@
<if test="originator != null and originator!=''"> <if test="originator != null and originator!=''">
and st.originator = #{originator} and st.originator = #{originator}
</if> </if>
</select> </select>
@ -293,6 +294,7 @@
and (state != 3 and departmentManagerState != 3 and FIND_IN_SET(#{userId},st.departmentManager) != 0 ) and (state != 3 and departmentManagerState != 3 and FIND_IN_SET(#{userId},st.departmentManager) != 0 )
or (state != 3 and departmentManagerState != 3 and #{userId} = st.originator) or (state != 3 and departmentManagerState != 3 and #{userId} = st.originator)
</if> </if>
ORDER BY st.createTime desc
<if test="begin != null and size != null"> <if test="begin != null and size != null">
LIMIT #{begin},#{size} LIMIT #{begin},#{size}
</if> </if>
@ -321,6 +323,7 @@
from stocktaking st from stocktaking st
where 1 = 1 where 1 = 1
and originator = #{userId} and originator = #{userId}
ORDER BY st.createTime desc
<if test="begin != null and size != null"> <if test="begin != null and size != null">
LIMIT #{begin},#{size} LIMIT #{begin},#{size}
</if> </if>

4
target/classes/templates/pages/application/application-in.html

@ -659,7 +659,7 @@
// 获取当前高度 // 获取当前高度
var height = parseInt(($("#stepForm").css('height')).split("px")[0]); var height = parseInt(($("#stepForm").css('height')).split("px")[0]);
params.push(NewIdNumber); params.push(NewIdNumber);
$("#stepForm").css("height", height + 623 + 'px'); $("#stepForm").css("height", height + 558 + 'px');
$("#" + parentId).after(materialItem); $("#" + parentId).after(materialItem);
}; };
// 实现卡片删除 // 实现卡片删除
@ -671,7 +671,7 @@
// 获取祖父节点 // 获取祖父节点
var reparent = parent.parentNode; var reparent = parent.parentNode;
var height = parseInt(($("#stepForm").css('height')).split("px")[0]); var height = parseInt(($("#stepForm").css('height')).split("px")[0]);
$("#stepForm").css("height", height - 623 + 'px'); $("#stepForm").css("height", height - 558 + 'px');
params = remove(params, parentId); params = remove(params, parentId);
reparent.removeChild(parent); reparent.removeChild(parent);
}; };

8
target/classes/templates/pages/warehouse/depository_add.html

@ -40,7 +40,7 @@
<label class="layui-form-label">部门</label> <label class="layui-form-label">部门</label>
<div class="layui-input-block"> <div class="layui-input-block">
<select name="adminorg" id="adminorg"></select> <select name="adminorg" id="adminorg" lay-verify="required"></select>
</div> </div>
</div> </div>
@ -55,7 +55,7 @@
<label class="layui-form-label">地址:</label> <label class="layui-form-label">地址:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="text" placeholder="请填写仓库地址" class="layui-input" <input type="text" placeholder="请填写仓库地址" class="layui-input"
name="address" lay-verify="required"/> name="address" />
</div> </div>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
@ -69,14 +69,14 @@
<label class="layui-form-label">最大存储量:</label> <label class="layui-form-label">最大存储量:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input name="maxNumber" placeholder="请填写最大存储量..." <input name="maxNumber" placeholder="请填写最大存储量..."
class="layui-input" value="500"></input> class="layui-input" value="5000"/>
</div> </div>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">最小存储量:</label> <label class="layui-form-label">最小存储量:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input name="minNumber" placeholder="请填写最小存储量..." <input name="minNumber" placeholder="请填写最小存储量..."
class="layui-input" value="0"></input> class="layui-input" value="0"/>
</div> </div>
</div> </div>

6
target/classes/templates/pages/warehouse/warehouse_view.html

@ -43,7 +43,7 @@
<div class="layui-form-item" style="display: inline-block"> <div class="layui-form-item" style="display: inline-block">
<label class="layui-form-label">部门</label> <label class="layui-form-label">部门</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<select name="adminorg" id="adminorg"> <select name="adminorg" id="adminorg" lay-verify="required">
<option value="">请选择部门</option> <option value="">请选择部门</option>
<option th:each="post,iterStar:${postList}" th:text="${post?.getName()}" th:value="${post?.getId()}" th:selected="${record.getAdminorg().equals(post.getId().toString())}"></option> <option th:each="post,iterStar:${postList}" th:text="${post?.getName()}" th:value="${post?.getId()}" th:selected="${record.getAdminorg().equals(post.getId().toString())}"></option>
</select> </select>
@ -52,13 +52,13 @@
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">仓库地址</label> <label class="layui-form-label">仓库地址</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="text" th:value="${record.getAddress()}" name="address" required lay-verify="required" autocomplete="off" class="layui-input"> <input type="text" th:value="${record.getAddress()}" name="address" autocomplete="off" class="layui-input">
</div> </div>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">仓库介绍</label> <label class="layui-form-label">仓库介绍</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="text" th:value="${record.getIntroduce()}" name="introduce" required lay-verify="required" autocomplete="off" class="layui-input"> <input type="text" th:value="${record.getIntroduce()}" name="introduce" autocomplete="off" class="layui-input">
</div> </div>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">

Loading…
Cancel
Save