对机具出入库 领料 首页展示 问题进行修改
This commit is contained in:
parent
f647018215
commit
06b3398dd7
|
|
@ -26,7 +26,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<script src="${bonuspath}/static/js/bm/publicJumpIp.js"></script>
|
||||||
<script src="${bonuspath}/static/js/bm/aqList.js?v=1"></script>
|
<script src="${bonuspath}/static/js/bm/aqList.js?v=1"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<script src="${bonuspath}/static/js/bm/publicJumpIp.js"></script>
|
||||||
<script src="${bonuspath}/static/js/bm/aqPlanList.js?v=1"></script>
|
<script src="${bonuspath}/static/js/bm/aqPlanList.js?v=1"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<script src="${bonuspath}/static/js/bm/publicJumpIp.js"></script>
|
||||||
<script src="${bonuspath}/static/js/bm/carList.js?v=1"></script>
|
<script src="${bonuspath}/static/js/bm/carList.js?v=1"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -126,6 +126,8 @@
|
||||||
dataType: 'text', // 将响应类型设置为text而不是json
|
dataType: 'text', // 将响应类型设置为text而不是json
|
||||||
parseData: function(res) {
|
parseData: function(res) {
|
||||||
console.log('开始解析数据');
|
console.log('开始解析数据');
|
||||||
|
console.log(res);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
console.log('收到的原始响应数据:', res);
|
console.log('收到的原始响应数据:', res);
|
||||||
|
|
||||||
|
|
@ -134,6 +136,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
res = JSON.parse(res);
|
||||||
return {
|
return {
|
||||||
"code": 0,
|
"code": 0,
|
||||||
"msg": res.resMsg || '',
|
"msg": res.resMsg || '',
|
||||||
|
|
|
||||||
|
|
@ -640,7 +640,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: bonuspath + apiUrl,
|
url: '${bonuspath}' + apiUrl,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
data: requestData,
|
data: requestData,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@
|
||||||
|
|
||||||
<!-- 分公司筛选 -->
|
<!-- 分公司筛选 -->
|
||||||
<div class="filter-row">
|
<div class="filter-row">
|
||||||
<span class="filter-label">分公司:</span>
|
<span class="filter-label">往来单位:</span>
|
||||||
<div class="filter-options" id="companyFilter">
|
<div class="filter-options" id="companyFilter">
|
||||||
<div class="filter-option active" data-value="all">全部</div>
|
<div class="filter-option active" data-value="all">全部</div>
|
||||||
<!-- 分公司选项将通过JavaScript动态添加 -->
|
<!-- 分公司选项将通过JavaScript动态添加 -->
|
||||||
|
|
@ -212,7 +212,7 @@
|
||||||
// 初始化分公司选项
|
// 初始化分公司选项
|
||||||
function loadCompanyOptions() {
|
function loadCompanyOptions() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '${bonuspath}/backstage/indexHomeDetails/getProjectCompany',
|
url: '${bonuspath}/backstage/indexHomeDetails/getProjectSub',
|
||||||
type: 'post',
|
type: 'post',
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
|
@ -244,21 +244,25 @@
|
||||||
|
|
||||||
// 加载表格数据
|
// 加载表格数据
|
||||||
function loadTableData() {
|
function loadTableData() {
|
||||||
var company = $('#companyFilter .active').data('value');
|
var company = $('#companyFilter .active').text();
|
||||||
|
console.log("===",company)
|
||||||
var year = $('#yearFilter .active').data('value');
|
var year = $('#yearFilter .active').data('value');
|
||||||
var month = $('#monthFilter .active').data('value');
|
var month = $('#monthFilter .active').data('value');
|
||||||
var projectName = $('#projectNameSearch').val().trim();
|
var projectName = $('#projectNameSearch').val().trim();
|
||||||
console.log(company, year, month);
|
console.log(company, year, month);
|
||||||
if(isNaN(company)){
|
if (!company) {
|
||||||
company = '';
|
company = '';
|
||||||
}
|
}
|
||||||
|
if(company=='全部'){
|
||||||
|
company = '';
|
||||||
|
}
|
||||||
|
|
||||||
table.render({
|
table.render({
|
||||||
elem: '#projectTable',
|
elem: '#projectTable',
|
||||||
url: '${bonuspath}/backstage/indexHomeDetails/getProjectDiff',
|
url: '${bonuspath}/backstage/indexHomeDetails/getProjectDiff',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
where: {
|
where: {
|
||||||
companyId: company,
|
subName: company,
|
||||||
year: year,
|
year: year,
|
||||||
month: month,
|
month: month,
|
||||||
projectName: projectName
|
projectName: projectName
|
||||||
|
|
@ -294,7 +298,7 @@
|
||||||
{field: 'firstTime', title: '首次领料日期', width: '11%'},
|
{field: 'firstTime', title: '首次领料日期', width: '11%'},
|
||||||
{field: 'lastTime', title: '最新领料日期', width: '11%'},
|
{field: 'lastTime', title: '最新领料日期', width: '11%'},
|
||||||
{field: 'backTime', title: '最新退料日期', width: '11%'},
|
{field: 'backTime', title: '最新退料日期', width: '11%'},
|
||||||
{field: 'companyName', title: '所属分公司', width: '10%'}
|
{field: 'subName', title: '往来单位', width: '10%'}
|
||||||
]],
|
]],
|
||||||
response: {
|
response: {
|
||||||
statusCode: 200
|
statusCode: 200
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,8 @@
|
||||||
<th style="width:10%" class="center">检验人</th>
|
<th style="width:10%" class="center">检验人</th>
|
||||||
<th style="width:10%" class="center">入库人</th>
|
<th style="width:10%" class="center">入库人</th>
|
||||||
<th style="width:10%" class="center">是否批准</th>
|
<th style="width:10%" class="center">是否批准</th>
|
||||||
|
<th style="width:10%" class="center">批准人</th>
|
||||||
|
<th style="width:10%" class="center">批准时间</th>
|
||||||
<th style="width:10%" class="center">操作</th>
|
<th style="width:10%" class="center">操作</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
|
||||||
|
|
@ -622,6 +622,8 @@ body {
|
||||||
<th style="width:10%">检验人</th>
|
<th style="width:10%">检验人</th>
|
||||||
<th style="width:10%">入库人</th>
|
<th style="width:10%">入库人</th>
|
||||||
<th style="width:10%">审核状态</th>
|
<th style="width:10%">审核状态</th>
|
||||||
|
<th style="width:10%">审核人</th>
|
||||||
|
<th style="width:10%">审核时间</th>
|
||||||
<th style="width:12%">操作</th>
|
<th style="width:12%">操作</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
@ -753,7 +755,8 @@ function getbaseList(init) {
|
||||||
} else {
|
} else {
|
||||||
html += "<td class='center'><span class='status-badge status-approved'>已审核</span></td>";
|
html += "<td class='center'><span class='status-badge status-approved'>已审核</span></td>";
|
||||||
}
|
}
|
||||||
|
html += "<td class='center'>" + (l.auditUser || '-') + "</td>";
|
||||||
|
html += "<td class='center'>" + (l.auditTime || '-') + "</td>";
|
||||||
html += "<td class='center'>";
|
html += "<td class='center'>";
|
||||||
if(l.isExamine != 1 && l.isExamine != '1') {
|
if(l.isExamine != 1 && l.isExamine != '1') {
|
||||||
html += "<a href='#' title='审核' onclick='check(\"" + l.id + "\",\"" + l.checkNum + "\",\"" + l.nums + "\")' class='action-btn btn-approve'>";
|
html += "<a href='#' title='审核' onclick='check(\"" + l.id + "\",\"" + l.checkNum + "\",\"" + l.nums + "\")' class='action-btn btn-approve'>";
|
||||||
|
|
@ -762,6 +765,7 @@ function getbaseList(init) {
|
||||||
html += "<span style='color: var(--success-green); font-size: 18px;' title='已审核'><i class='icon-ok-circle'></i></span>";
|
html += "<span style='color: var(--success-green); font-size: 18px;' title='已审核'><i class='icon-ok-circle'></i></span>";
|
||||||
}
|
}
|
||||||
html += "</td>";
|
html += "</td>";
|
||||||
|
|
||||||
html += "</tr>";
|
html += "</tr>";
|
||||||
}
|
}
|
||||||
$("#baseTable tbody").append(html);
|
$("#baseTable tbody").append(html);
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
//安全工器具 后端请求ip
|
||||||
|
let AQGQJ_IP='http://10.1.0.142:1999';
|
||||||
|
//安全工器具 -跳转页面地址
|
||||||
|
let AQGQJ_HTML_IP='http://10.1.0.142:1999/gz-aqgqj/index.html';
|
||||||
|
|
||||||
|
//车辆 后端请求IP
|
||||||
|
let CAR_IP='http://192.168.0.38:21522';
|
||||||
|
//车辆 跳转页面IP
|
||||||
|
let CAR_HTML_IP='http://192.168.0.38:8848/gz_car_ui/index.html';
|
||||||
|
|
@ -597,7 +597,7 @@
|
||||||
mt.`NAME` as maName,
|
mt.`NAME` as maName,
|
||||||
mt.UNIT as maUnit,
|
mt.UNIT as maUnit,
|
||||||
mt.is_COUNT AS isCount,
|
mt.is_COUNT AS isCount,
|
||||||
CAST(mt.NUM AS SIGNED) AS storageNum
|
mt.NUM as storageNum
|
||||||
FROM
|
FROM
|
||||||
mm_type mt
|
mm_type mt
|
||||||
LEFT JOIN mm_type mt2 on mt.PARENT_ID = mt2.ID
|
LEFT JOIN mm_type mt2 on mt.PARENT_ID = mt2.ID
|
||||||
|
|
@ -640,7 +640,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getInUseWarn" parameterType="com.bonus.index.beans.IndexInuseWarnBean" resultType="com.bonus.index.beans.IndexInuseWarnBean">
|
<select id="getInUseWarn" parameterType="com.bonus.index.beans.IndexInuseWarnBean" resultType="com.bonus.index.beans.IndexInuseWarnBean">
|
||||||
SELECT
|
SELECT
|
||||||
mt2.`NAME` AS maType,
|
mt2.`NAME` AS maType,
|
||||||
mt.`NAME` AS maName,
|
mt.`NAME` AS maName,
|
||||||
mt.UNIT AS maUnit,
|
mt.UNIT AS maUnit,
|
||||||
|
|
@ -712,7 +712,7 @@
|
||||||
<if test="maName != null and maName != ''">
|
<if test="maName != null and maName != ''">
|
||||||
and mt.`NAME` like concat('%', #{maName}, '%')
|
and mt.`NAME` like concat('%', #{maName}, '%')
|
||||||
</if>
|
</if>
|
||||||
order by t1.time desc
|
order by t1.TIME desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getTotalInfo" parameterType="com.bonus.index.beans.IndexTotalWarnBean" resultType="com.bonus.index.beans.IndexTotalWarnBean">
|
<select id="getTotalInfo" parameterType="com.bonus.index.beans.IndexTotalWarnBean" resultType="com.bonus.index.beans.IndexTotalWarnBean">
|
||||||
|
|
@ -907,7 +907,7 @@
|
||||||
SUM( leaseNum ) - SUM( backNum ) diffCount ,
|
SUM( leaseNum ) - SUM( backNum ) diffCount ,
|
||||||
firstTime,
|
firstTime,
|
||||||
lastTime,
|
lastTime,
|
||||||
max(backTime) as backTime
|
max(backTime) as backTime,subName
|
||||||
FROM
|
FROM
|
||||||
(
|
(
|
||||||
SELECT
|
SELECT
|
||||||
|
|
@ -921,11 +921,20 @@
|
||||||
wla.ID AS agreementId ,
|
wla.ID AS agreementId ,
|
||||||
min(wir.time) as firstTime,
|
min(wir.time) as firstTime,
|
||||||
max(wir.time) as lastTime,
|
max(wir.time) as lastTime,
|
||||||
wir.time as backTime
|
wir.time as backTime,real_sub.subName
|
||||||
FROM
|
FROM
|
||||||
wf_task_record wtr
|
wf_task_record wtr
|
||||||
LEFT JOIN wf_agreement_task wat ON wtr.ID = wat.TASK_ID
|
LEFT JOIN wf_agreement_task wat ON wtr.ID = wat.TASK_ID
|
||||||
LEFT JOIN wf_lease_agreement wla ON wat.AGREEMENT_ID = wla.ID
|
LEFT JOIN wf_lease_agreement wla ON wat.AGREEMENT_ID = wla.ID
|
||||||
|
left join(
|
||||||
|
SELECT wla.PROJECT proId ,GROUP_CONCAT( distinct bu.`NAME`) subName
|
||||||
|
FROM wf_task_record wtr
|
||||||
|
LEFT JOIN wf_agreement_task wat ON wtr.ID = wat.TASK_ID
|
||||||
|
LEFT JOIN wf_lease_agreement wla ON wat.AGREEMENT_ID = wla.ID
|
||||||
|
left join bm_unit bu on bu.id =wla.LEASE_COMPANY
|
||||||
|
where bu.`NAME` is not null AND wtr.IS_ACTIVE = 1
|
||||||
|
GROUP BY wla.PROJECT
|
||||||
|
) real_sub on real_sub.proId=wla.PROJECT
|
||||||
LEFT JOIN bm_project bp ON wla.PROJECT = bp.ID
|
LEFT JOIN bm_project bp ON wla.PROJECT = bp.ID
|
||||||
LEFT JOIN bm_company bc on bp.COMPANY_ID = bc.ID
|
LEFT JOIN bm_company bc on bp.COMPANY_ID = bc.ID
|
||||||
LEFT JOIN wf_task_record wte ON wtr.ID = wte.SUP_ID
|
LEFT JOIN wf_task_record wte ON wtr.ID = wte.SUP_ID
|
||||||
|
|
@ -949,28 +958,35 @@
|
||||||
wla.ID AS agreementId ,
|
wla.ID AS agreementId ,
|
||||||
"" as firstTime,
|
"" as firstTime,
|
||||||
"" as lastTime,
|
"" as lastTime,
|
||||||
max(wir.time) as backTime
|
max(wir.time) as backTime,real_sub.subName
|
||||||
FROM
|
FROM
|
||||||
wf_task_record wtr
|
wf_task_record wtr
|
||||||
LEFT JOIN wf_agreement_task wat ON wtr.ID = wat.TASK_ID
|
LEFT JOIN wf_agreement_task wat ON wtr.ID = wat.TASK_ID
|
||||||
LEFT JOIN wf_lease_agreement wla ON wat.AGREEMENT_ID = wla.ID
|
LEFT JOIN wf_lease_agreement wla ON wat.AGREEMENT_ID = wla.ID
|
||||||
|
left join(
|
||||||
|
SELECT wla.PROJECT proId ,GROUP_CONCAT( distinct bu.`NAME`) subName
|
||||||
|
FROM wf_task_record wtr
|
||||||
|
LEFT JOIN wf_agreement_task wat ON wtr.ID = wat.TASK_ID
|
||||||
|
LEFT JOIN wf_lease_agreement wla ON wat.AGREEMENT_ID = wla.ID
|
||||||
|
left join bm_unit bu on bu.id =wla.LEASE_COMPANY
|
||||||
|
where bu.`NAME` is not null AND wtr.IS_ACTIVE = 1
|
||||||
|
GROUP BY wla.PROJECT
|
||||||
|
) real_sub on real_sub.proId= wla.PROJECT
|
||||||
LEFT JOIN bm_project bp ON wla.PROJECT = bp.ID
|
LEFT JOIN bm_project bp ON wla.PROJECT = bp.ID
|
||||||
LEFT JOIN bm_company bc on bp.COMPANY_ID = bc.ID
|
LEFT JOIN bm_company bc on bp.COMPANY_ID = bc.ID
|
||||||
LEFT JOIN wf_return_material_details wrd ON wtr.ID = wrd.TASK_ID
|
LEFT JOIN wf_return_material_details wrd ON wtr.ID = wrd.TASK_ID
|
||||||
LEFT JOIN wf_info_record wir ON wrd.ID = wir.SUP_ID
|
LEFT JOIN wf_info_record wir ON wrd.ID = wir.SUP_ID
|
||||||
WHERE
|
WHERE wtr.IS_ACTIVE = 1 AND wir.TYPE = 4
|
||||||
wir.TYPE = 4
|
|
||||||
AND wtr.IS_ACTIVE = 1
|
|
||||||
<if test="projectId != null and projectId != ''">
|
<if test="projectId != null and projectId != ''">
|
||||||
and wla.PROJECT = #{projectId}
|
and wla.PROJECT = #{projectId}
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
GROUP BY
|
GROUP BY
|
||||||
wla.ID
|
wla.ID
|
||||||
) a
|
) a
|
||||||
<where>
|
<where>
|
||||||
<if test="companyId != null and companyId != ''">
|
<if test="subName != null and subName != ''">
|
||||||
and companyId = #{companyId}
|
AND FIND_IN_SET(subName, #{subName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="projectName != null and projectName != ''">
|
<if test="projectName != null and projectName != ''">
|
||||||
and projectName like concat('%',#{projectName},'%')
|
and projectName like concat('%',#{projectName},'%')
|
||||||
|
|
@ -1085,19 +1101,22 @@
|
||||||
|
|
||||||
|
|
||||||
<select id="getProjectCompany" parameterType="com.bonus.index.beans.IndexProjectBean" resultType="com.bonus.index.beans.IndexProjectBean">
|
<select id="getProjectCompany" parameterType="com.bonus.index.beans.IndexProjectBean" resultType="com.bonus.index.beans.IndexProjectBean">
|
||||||
|
|
||||||
|
|
||||||
SELECT
|
SELECT
|
||||||
bc.ID as companyId,
|
bc.ID as companyId,
|
||||||
bc.`NAME` as companyName
|
bc.`NAME` as companyName
|
||||||
FROM
|
FROM
|
||||||
bm_company bc
|
bm_company bc
|
||||||
WHERE bc.IS_ACTIVE =1
|
WHERE bc.IS_ACTIVE =1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
<!-- 查询 -->
|
||||||
|
<select id="getProjectSub" parameterType="com.bonus.index.beans.IndexProjectBean" resultType="com.bonus.index.beans.IndexProjectBean">
|
||||||
|
SELECT
|
||||||
|
bs.ID as companyId,
|
||||||
|
bs.`NAME` as companyName
|
||||||
|
FROM
|
||||||
|
bm_unit bs
|
||||||
|
WHERE bs.IS_ACTIVE =1
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="getToOutList" parameterType="com.bonus.index.beans.IndexTodoWarnBean" resultType="com.bonus.index.beans.IndexTodoWarnBean">
|
<select id="getToOutList" parameterType="com.bonus.index.beans.IndexTodoWarnBean" resultType="com.bonus.index.beans.IndexTodoWarnBean">
|
||||||
|
|
||||||
|
|
@ -1356,7 +1375,7 @@
|
||||||
cpd.model_id modelId,
|
cpd.model_id modelId,
|
||||||
cpd.need_num needNum,
|
cpd.need_num needNum,
|
||||||
cpd.need_day needDay,
|
cpd.need_day needDay,
|
||||||
cpa.need_time backDate,
|
cpd.back_date backDate,
|
||||||
cpd.remark,
|
cpd.remark,
|
||||||
cmti.type maType,
|
cmti.type maType,
|
||||||
cmti.`NAME` maName,
|
cmti.`NAME` maName,
|
||||||
|
|
@ -1368,7 +1387,6 @@
|
||||||
LEFT JOIN bm_project bp ON cpa.pro_id = bp.ID
|
LEFT JOIN bm_project bp ON cpa.pro_id = bp.ID
|
||||||
LEFT JOIN car_ma_type_info cmti ON cpd.model_id = cmti.id
|
LEFT JOIN car_ma_type_info cmti ON cpd.model_id = cmti.id
|
||||||
WHERE bp.`NAME` IS NOT NULL
|
WHERE bp.`NAME` IS NOT NULL
|
||||||
and cpa.status = 1
|
|
||||||
<if test="projectName != null and projectName != ''">
|
<if test="projectName != null and projectName != ''">
|
||||||
and bp.`NAME` like concat('%', #{projectName}, '%')
|
and bp.`NAME` like concat('%', #{projectName}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
|
|
@ -53,8 +53,10 @@
|
||||||
resultMap="new">
|
resultMap="new">
|
||||||
SELECT wnd.ID AS id,SUM(wir.NUM) AS nums,wnd.IS_APPROVAL AS isApproval,
|
SELECT wnd.ID AS id,SUM(wir.NUM) AS nums,wnd.IS_APPROVAL AS isApproval,
|
||||||
wnd.IS_EXAMINE AS isExamine,mt.`NAME` AS maModel,mtt.`NAME` AS maType,
|
wnd.IS_EXAMINE AS isExamine,mt.`NAME` AS maModel,mtt.`NAME` AS maType,
|
||||||
pu.`NAME` AS checker,puu.`NAME` AS customerRep,wnd.QUALIFIED_NUM AS checkNum
|
pu.`NAME` AS checker,puu.`NAME` AS customerRep,wnd.QUALIFIED_NUM AS checkNum,
|
||||||
|
pus.NAME auditUser ,wnd.AUDIT_TIME auditTime
|
||||||
FROM wf_new_details wnd
|
FROM wf_new_details wnd
|
||||||
|
LEFT JOIN pm_user pus on pus.ID = wnd.AUDIT_USER
|
||||||
LEFT JOIN wf_task_appoint wta ON wta.TASK_ID = wnd.TASK_ID
|
LEFT JOIN wf_task_appoint wta ON wta.TASK_ID = wnd.TASK_ID
|
||||||
LEFT JOIN wf_info_record wir ON wir.SUP_ID = wnd.TASK_ID AND wnd.MODEL_ID = wir.MODEL_ID
|
LEFT JOIN wf_info_record wir ON wir.SUP_ID = wnd.TASK_ID AND wnd.MODEL_ID = wir.MODEL_ID
|
||||||
LEFT JOIN pm_user pu on pu.ID = wnd.CHECKER
|
LEFT JOIN pm_user pu on pu.ID = wnd.CHECKER
|
||||||
|
|
@ -110,7 +112,7 @@
|
||||||
SELECT wnd.ID AS id,SUM(wir.NUM) AS nums,wnd.IS_APPROVAL AS isApproval,
|
SELECT wnd.ID AS id,SUM(wir.NUM) AS nums,wnd.IS_APPROVAL AS isApproval,
|
||||||
wnd.IS_EXAMINE AS isExamine,mt.`NAME` AS maModel,mtt.`NAME` AS maType,
|
wnd.IS_EXAMINE AS isExamine,mt.`NAME` AS maModel,mtt.`NAME` AS maType,
|
||||||
pu.`NAME` AS checker,puu.`NAME` AS customerRep,wnd.QUALIFIED_NUM AS checkNum,
|
pu.`NAME` AS checker,puu.`NAME` AS customerRep,wnd.QUALIFIED_NUM AS checkNum,
|
||||||
wnd.MODEL_ID as maModelId,wnd.TASK_ID as taskId
|
wnd.MODEL_ID as maModelId,wnd.TASK_ID as taskId,audit.time auditTime ,pus.`NAME` auditUser
|
||||||
FROM wf_new_details wnd
|
FROM wf_new_details wnd
|
||||||
LEFT JOIN wf_task_appoint wta ON wta.TASK_ID = wnd.TASK_ID
|
LEFT JOIN wf_task_appoint wta ON wta.TASK_ID = wnd.TASK_ID
|
||||||
LEFT JOIN wf_info_record wir ON wir.SUP_ID = wnd.TASK_ID AND wnd.MODEL_ID = wir.MODEL_ID
|
LEFT JOIN wf_info_record wir ON wir.SUP_ID = wnd.TASK_ID AND wnd.MODEL_ID = wir.MODEL_ID
|
||||||
|
|
@ -119,6 +121,13 @@
|
||||||
LEFT JOIN ma_org_relation mor on mor.TYPE_ID = wnd.MODEL_ID
|
LEFT JOIN ma_org_relation mor on mor.TYPE_ID = wnd.MODEL_ID
|
||||||
LEFT JOIN mm_type mt ON mt.ID = mor.TYPE_ID
|
LEFT JOIN mm_type mt ON mt.ID = mor.TYPE_ID
|
||||||
LEFT JOIN mm_type mtt ON mtt.ID = mt.PARENT_ID
|
LEFT JOIN mm_type mtt ON mtt.ID = mt.PARENT_ID
|
||||||
|
LEFT JOIN(
|
||||||
|
SELECT task, max(time) time ,creator
|
||||||
|
from bm_logs
|
||||||
|
where fun='/backstage/new/isApproval'
|
||||||
|
GROUP BY task
|
||||||
|
)audit on audit.task=wnd.TASK_ID
|
||||||
|
LEFT JOIN pm_user pus on pus.ID = audit.creator
|
||||||
WHERE wir.NUM IS NOT NULL AND wnd.IS_EXAMINE = 1 AND wta.IS_ACTIVE = 1
|
WHERE wir.NUM IS NOT NULL AND wnd.IS_EXAMINE = 1 AND wta.IS_ACTIVE = 1
|
||||||
<if test="param.keyWord != null and param.keyWord != ''">
|
<if test="param.keyWord != null and param.keyWord != ''">
|
||||||
AND(
|
AND(
|
||||||
|
|
@ -209,7 +218,7 @@
|
||||||
|
|
||||||
<update id="isExamine" parameterType="com.bonus.newInput.beans.NewInputBean">
|
<update id="isExamine" parameterType="com.bonus.newInput.beans.NewInputBean">
|
||||||
update wf_new_details set
|
update wf_new_details set
|
||||||
IS_EXAMINE = #{isExamine}
|
IS_EXAMINE = #{isExamine},AUDIT_TIME=#{auditTime},AUDIT_USER=#{auditUser}
|
||||||
where ID = #{id}
|
where ID = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,5 +38,6 @@
|
||||||
OR mv.`NAME` LIKE CONCAT('%',#{param.keyWord},'%')
|
OR mv.`NAME` LIKE CONCAT('%',#{param.keyWord},'%')
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
ORDER BY wir.time desc
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
@ -35,6 +35,20 @@ public class IndexProjectBean {
|
||||||
private String lastTime;
|
private String lastTime;
|
||||||
|
|
||||||
private String backTime;
|
private String backTime;
|
||||||
|
/**
|
||||||
|
* 分公司名称
|
||||||
|
*/
|
||||||
|
private String subName;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public String getSubName() {
|
||||||
|
return subName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSubName(String subName) {
|
||||||
|
this.subName = subName;
|
||||||
|
}
|
||||||
|
|
||||||
public String getKeyword() {
|
public String getKeyword() {
|
||||||
return keyword;
|
return keyword;
|
||||||
|
|
|
||||||
|
|
@ -377,6 +377,25 @@ public class IndexHomeDetailsController extends BaseController<IndexHomeDetailsB
|
||||||
}
|
}
|
||||||
return ar;
|
return ar;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 查询往来单位
|
||||||
|
* @param o
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "getProjectSub", method = RequestMethod.POST)
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxRes getProjectSub(IndexProjectBean o) {
|
||||||
|
AjaxRes ar = getAjaxRes();
|
||||||
|
try {
|
||||||
|
List<IndexProjectBean> list = service.getProjectSub(o);
|
||||||
|
ar.setSucceed(list);
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error(e.toString(), e);
|
||||||
|
ar.setFailMsg(GlobalConst.DATA_FAIL);
|
||||||
|
}
|
||||||
|
return ar;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 差缺工程明细 -- 传入projectId
|
// 差缺工程明细 -- 传入projectId
|
||||||
@RequestMapping(value = "getProjectMaDiff", method = RequestMethod.POST)
|
@RequestMapping(value = "getProjectMaDiff", method = RequestMethod.POST)
|
||||||
|
|
|
||||||
|
|
@ -83,5 +83,11 @@ public interface IndexHomeDetailsDao extends BaseDao<IndexHomeDetailsBean> {
|
||||||
List<IndexHomeCalendarBean> getCalendarNewInput(IndexHomeCalendarBean o);
|
List<IndexHomeCalendarBean> getCalendarNewInput(IndexHomeCalendarBean o);
|
||||||
|
|
||||||
List<IndexHomeCalendarBean> getCalendarPd(IndexHomeCalendarBean o);
|
List<IndexHomeCalendarBean> getCalendarPd(IndexHomeCalendarBean o);
|
||||||
|
/**
|
||||||
|
* 查询往来单位
|
||||||
|
* @param o
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<IndexProjectBean> getProjectSub(IndexProjectBean o);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -74,5 +74,11 @@ public interface IndexHomeDetailsService extends BaseService<IndexHomeDetailsBea
|
||||||
List<IndexHomeCalendarBean> getCalendarNewInput(IndexHomeCalendarBean o);
|
List<IndexHomeCalendarBean> getCalendarNewInput(IndexHomeCalendarBean o);
|
||||||
|
|
||||||
List<IndexHomeCalendarBean> getCalendarPd(IndexHomeCalendarBean o);
|
List<IndexHomeCalendarBean> getCalendarPd(IndexHomeCalendarBean o);
|
||||||
|
/**
|
||||||
|
* 查询往来单位接口
|
||||||
|
* @param o
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<IndexProjectBean> getProjectSub(IndexProjectBean o);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -219,6 +219,12 @@ public class IndexHomeDetailsServiceImp extends BaseServiceImp<IndexHomeDetailsB
|
||||||
return dao.getProjectCompany(o);
|
return dao.getProjectCompany(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<IndexProjectBean> getProjectSub(IndexProjectBean o) {
|
||||||
|
|
||||||
|
return dao.getProjectSub(o);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<IndexTodoWarnBean> getTodoList(IndexTodoWarnBean o) {
|
public List<IndexTodoWarnBean> getTodoList(IndexTodoWarnBean o) {
|
||||||
List<IndexTodoWarnBean> rs = new ArrayList<>();
|
List<IndexTodoWarnBean> rs = new ArrayList<>();
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,28 @@ public class NewInputBean extends InputDetailsBean {
|
||||||
private String maId;
|
private String maId;
|
||||||
private String isExamine;
|
private String isExamine;
|
||||||
|
|
||||||
|
private String auditUser;
|
||||||
|
|
||||||
|
private String auditTime;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public String getAuditUser() {
|
||||||
|
return auditUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAuditUser(String auditUser) {
|
||||||
|
this.auditUser = auditUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAuditTime() {
|
||||||
|
return auditTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAuditTime(String auditTime) {
|
||||||
|
this.auditTime = auditTime;
|
||||||
|
}
|
||||||
|
|
||||||
public String getIsExamine() {
|
public String getIsExamine() {
|
||||||
return isExamine;
|
return isExamine;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -132,6 +132,10 @@ public class NewInputServiceImp extends BaseServiceImp<NewInputBean> implements
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void isExamine(NewInputBean o) {
|
public void isExamine(NewInputBean o) {
|
||||||
|
String userId = UserShiroHelper.getRealCurrentUser().getId() + "";
|
||||||
|
o.setAuditUser(userId);
|
||||||
|
String time = DateTimeHelper.currentDateTime();
|
||||||
|
o.setAuditTime(time);
|
||||||
o.setIsExamine("1");
|
o.setIsExamine("1");
|
||||||
dao.isExamine(o);
|
dao.isExamine(o);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue