前端优化
This commit is contained in:
parent
c7463d7605
commit
138f679b71
|
|
@ -175,7 +175,7 @@ function initTable() {
|
|||
let html = "";
|
||||
html += "<a onclick='planAuditDetail(" + JSON.stringify(d) + ")'>详情</a>";
|
||||
let content = getCheckStatus(d.statusType, d.status);
|
||||
if (!(content.indexOf('驳回') > -1 || content.indexOf('通过') > -1)) {
|
||||
if ((!(content.indexOf('驳回') > -1 || content.indexOf('通过') > -1)) && d.hasAuditBtn) {
|
||||
html += "<div class='splitLine'>|</div><a onclick='checkDetail(" + JSON.stringify(d) + ")'>审核</a>";
|
||||
}
|
||||
return html;
|
||||
|
|
|
|||
|
|
@ -270,19 +270,13 @@ function setOperRecordInfo(list, obj) {
|
|||
operData = '发起申请';
|
||||
} else if (item.auditType === '1') {
|
||||
operData = '重新提交申请';
|
||||
} else if (item.auditType === '2' && item.auditStatus === '2') {
|
||||
} else if (item.auditStatus === '2' && !item.completed) {
|
||||
operData = '审核确认通过,共间隔:' + item.hours + '小时' + minutes + '分钟 原因备注:' + remark + '';
|
||||
} else if (item.auditType === '2' && item.auditStatus === '3') {
|
||||
operData = '驳回-给发起人' + creator + ',共间隔:' + item.hours + '小时' + minutes + '分钟 原因备注:' + remark + '';
|
||||
} else if (item.auditType === '3' && item.auditStatus === '2') {
|
||||
operData = '审核确认通过,共间隔:' + item.hours + '小时' + minutes + '分钟 原因备注:' + remark + '';
|
||||
} else if (item.auditType === '3' && item.auditStatus === '3') {
|
||||
operData = '驳回-给发起人' + creator + ',共间隔:' + item.hours + '小时' + minutes + '分钟 原因备注:' + remark + '';
|
||||
} else if (item.auditType === '4' && item.auditStatus === '2') {
|
||||
} else if (item.auditStatus === '2' && item.completed) {
|
||||
operData = '完结-审核确认通过,共耗时:' + item.hours + '小时' + minutes + '分钟 原因备注:' + remark + '';
|
||||
} else if (item.auditType === '4' && item.auditStatus === '3') {
|
||||
} else if (item.auditStatus === '3') {
|
||||
operData = '驳回-给发起人' + creator + ',共间隔:' + item.hours + '小时' + minutes + '分钟 原因备注:' + remark + '';
|
||||
}
|
||||
}
|
||||
html += '<div class="layui-timeline-item">' +
|
||||
'<i class="layui-icon layui-timeline-axis"></i>' +
|
||||
'<div class="layui-timeline-content layui-text">' +
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ function submitApply(data) {
|
|||
} else if (objParam.checkType === '2') { // 需求计划审核
|
||||
url = dataUrl + 'backstage/planAudit/planAudit';
|
||||
data.field.applyId = idParam;
|
||||
data.field.statusType = objParam.statusType;
|
||||
}
|
||||
let params = {
|
||||
encryptedData: JSON.stringify(data.field)
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@
|
|||
<p>操作记录</p>
|
||||
</div>
|
||||
<div class="layui-timeline">
|
||||
<div class="layui-timeline-item">
|
||||
<!-- <div class="layui-timeline-item">
|
||||
<i class="layui-icon layui-timeline-axis"></i>
|
||||
<div class="layui-timeline-content layui-text">
|
||||
<h3 class="layui-timeline-title">8月18日</h3>
|
||||
|
|
@ -125,7 +125,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>发货</title>
|
||||
<title>需求计划申请修改</title>
|
||||
<link rel="stylesheet" href="../../../lib/layui-v2.9.18/layui/css/layui.css" media="all">
|
||||
<link rel="stylesheet" href="../../../css/font.css" media="all">
|
||||
<link rel="stylesheet" href="../../../css/data_form.css" media="all">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>发货</title>
|
||||
<title>需求计划申请</title>
|
||||
<link rel="stylesheet" href="../../../lib/layui-v2.9.18/layui/css/layui.css" media="all">
|
||||
<link rel="stylesheet" href="../../../css/font.css" media="all">
|
||||
<link rel="stylesheet" href="../../../css/data_form.css" media="all">
|
||||
|
|
|
|||
Loading…
Reference in New Issue