机具库存收藏修改

This commit is contained in:
jiang 2025-07-09 19:01:52 +08:00
parent 6d0deb9dbc
commit de6e56f059
2 changed files with 266 additions and 265 deletions

View File

@ -192,7 +192,7 @@
</th> --%> </th> --%>
<th style="vertical-align:middle;color:red" onclick="topage()" class="center">${ma.number}</th> <th style="vertical-align:middle;color:red" onclick="topage(${ma.id} , '${ma.processName}')" class="center">${ma.number}</th>
<th style="vertical-align:middle;" class="center">${ma.creatorName}</th> <th style="vertical-align:middle;" class="center">${ma.creatorName}</th>
<th style="vertical-align:middle;color:red" class="center"> <th style="vertical-align:middle;color:red" class="center">
<c:choose> <c:choose>
@ -217,7 +217,7 @@
<script type="text/javascript"> <script type="text/javascript">
var uname = localStorage.getItem("uname"); var uname = localStorage.getItem("uname");
var pwd = localStorage.getItem("pwd"); var pwd = localStorage.getItem("pwd");
function topage() { function topage(id,processName) {
$.ajax({ $.ajax({
type: "post", type: "post",
url: "http://127.0.0.1:21522/gz-car/login/userLogin", url: "http://127.0.0.1:21522/gz-car/login/userLogin",
@ -231,8 +231,13 @@
localStorage.setItem("token", data.token); localStorage.setItem("token", data.token);
localStorage.setItem("name", name); localStorage.setItem("name", name);
//window.open("http://192.168.0.14:21625/gz-gqj/index.html") //window.open("http://192.168.0.14:21625/gz-gqj/index.html")
window.open("http://localhost:63343/gz_car_ui/index.html#/page/car_demand_plan/dispatch_car_list.html") if(processName === '派车计划'){
window.open("http://localhost:63343/gz_car_ui/page/car_demand_plan/child/dispatch_car_detail.html?id="+id +"&token="+data.token)
}else if(processName === '用车计划'){
window.open("http://localhost:63343/gz_car_ui/page/car_demand_plan/child/apply_plan_detail.html?id="+id +"&token="+data.token)
}
} else { } else {
alert("没有权限!"); alert("没有权限!");

View File

@ -112,23 +112,19 @@ FROM
LEFT JOIN pm_user pu ON pu.id = cpa.creator LEFT JOIN pm_user pu ON pu.id = cpa.creator
WHERE WHERE
cpa.status = '1' cpa.status = '1'
AND (
<if test="param.operationUserId == null or param.operationUserId == ''">
1 = 1
</if>
<if test="param.operationUserId == '14'"> <if test="param.operationUserId == '14'">
cpa.status_type = '3' AND cpa.status_type = '3'
</if> </if>
<if test="param.operationUserId in ('57','29','55','56','67')"> <if test="param.operationUserId in ('57','29','55','56','67')">
cpa.status_type = '4' AND cpa.status_type = '4'
</if> </if>
<if test="!(param.operationUserId == null <if test="!(param.operationUserId == null
or param.operationUserId == '' or param.operationUserId == ''
or param.operationUserId == '14' or param.operationUserId == '14'
or param.operationUserId in ('57','29','55','56','67'))"> or param.operationUserId in ('57','29','55','56','67'))">
1 = 0 AND 1 = 0
</if> </if>
)
<if test="param.keyWord != null and param.keyWord != ''"> <if test="param.keyWord != null and param.keyWord != ''">
AND pu.NAME LIKE CONCAT('%', #{param.keyWord}, '%') AND pu.NAME LIKE CONCAT('%', #{param.keyWord}, '%')
</if> </if>
@ -138,7 +134,7 @@ UNION ALL
( (
SELECT SELECT
cpo.id AS id, cpa.id AS id,
cpa.code AS number, cpa.code AS number,
'派车计划' AS processName, '派车计划' AS processName,
CASE cpo.type CASE cpo.type
@ -168,7 +164,7 @@ WHERE
or param.operationUserId == '' or param.operationUserId == ''
or param.operationUserId in ('49','50') or param.operationUserId in ('49','50')
or param.operationUserId in ('57','29','55','56','67'))"> or param.operationUserId in ('57','29','55','56','67'))">
1 = 0 AND 1 = 0
</if> </if>
<if test="param.keyWord != null and param.keyWord != ''"> <if test="param.keyWord != null and param.keyWord != ''">
AND pu.NAME LIKE CONCAT('%', #{param.keyWord}, '%') AND pu.NAME LIKE CONCAT('%', #{param.keyWord}, '%')