付款单申请审核

This commit is contained in:
lSun 2026-01-30 14:08:43 +08:00
parent 97eb522fb8
commit c8028b979f
5 changed files with 310 additions and 708 deletions

View File

@ -201,12 +201,12 @@ function carDetail(list) {
function setZlPrice(item) { function setZlPrice(item) {
let html = ''; let html = '';
if (item.dcUnit === '元/月/台') { if (item.dcUnit === '元/月/台') {
html += '<p>' + item.monthPrice + '' + item.dcUnit + '' + '</p>'; html += '<span>' + item.monthPrice + '' + item.dcUnit + '' + '</span>';
} else { } else {
html += '<p>' + item.dayPrice + '' + item.dcUnit + '' + '</p>'; html += '<span>' + item.dayPrice + '' + item.dcUnit + '' + '</span>';
} }
if (item.isOutSet === 1) { if (item.isOutSet === 1) {
html += '<p>' + (item.jcMoney ? item.jcMoney : 0) + '(进出场费)</p>' html += '<span>' + (item.jcMoney ? item.jcMoney : 0) + '(进出场费)</span>'
} }
return html; return html;
} }
@ -520,11 +520,11 @@ function setOperRecordInfo(list, obj) {
// 2. 部门映射表(替代多 if-else清晰直观 // 2. 部门映射表(替代多 if-else清晰直观
const deptMap = { const deptMap = {
'0': '分包商', '0': '分包商',
'1': '项目部', '1': '现场项目部',
'2': '防线部门', '2': '智联装备云控公司放线队',
'3': '分公司', '3': '项目部所属分公司',
'4': '经营部', '4': '智联装备云控经营部',
'5': '总公司' '5': '智联装备云控公司总经理'
}; };
const dept = deptMap[auditType] || '未知部门'; // 默认值容错 const dept = deptMap[auditType] || '未知部门'; // 默认值容错
@ -532,6 +532,7 @@ function setOperRecordInfo(list, obj) {
const operRules = [ const operRules = [
// 规则:[条件函数, 操作文案],按优先级排序(先匹配先执行) // 规则:[条件函数, 操作文案],按优先级排序(先匹配先执行)
[() => index === 0 && auditType == '0', '发起申请'], [() => index === 0 && auditType == '0', '发起申请'],
[() => auditType === '0' && auditStatus == '0', `发起申请,时间:${times} 原因备注:${remark}`],
[() => auditType === '1' && auditStatus == '1', `审核确认通过,时间:${times} 原因备注:${remark}`], // 原逻辑:无 index 限制 [() => auditType === '1' && auditStatus == '1', `审核确认通过,时间:${times} 原因备注:${remark}`], // 原逻辑:无 index 限制
[() => auditType === '1' && auditStatus == '2', `驳回-给发起人${creator},共间隔:${times} 原因备注:${remark}`], [() => auditType === '1' && auditStatus == '2', `驳回-给发起人${creator},共间隔:${times} 原因备注:${remark}`],
@ -568,7 +569,7 @@ function setOperRecordInfo(list, obj) {
'</div>' + '</div>' +
'<div class="user-oper layout">' + '<div class="user-oper layout">' +
'<div style="width: 100%">' + '<div style="width: 100%">' +
'<span>' + (item.auditReason ? item.auditReason : item.auditUser) + '</span><span>' + dept + '</span>' + '<span>' + dept+ '</span>-<span>' + item.auditUser + '</span>' +
'</div>' + '</div>' +
'<div style="width: 100%">' + '<div style="width: 100%">' +
'<span>' + operData + '</span>' + '<span>' + operData + '</span>' +

View File

@ -121,20 +121,11 @@ function initTable() {
{ {
field: "planNum", field: "planNum",
width: '10%', width: '10%',
title: "车辆数量", title: "计划数量",
unresize: true, unresize: true,
align: "center", align: "center",
sort:true, sort:true,
}, },
{
field: "ygMoney",
width: '14%',
title: "预估金额(元) ",
unresize: true,
align: "center",
sort:true,
},
{ {
field: "money", field: "money",
width: '14%', width: '14%',
@ -199,13 +190,13 @@ function initTable() {
let html = ""; let html = "";
let status = d.status; let status = d.status;
if(status == -1){ if(status == -1){
html += "<a onclick='checkSubmit(" + JSON.stringify(d) + ")'>提交</a><div class='splitLine'>|</div>" html += "<a onclick='checkSubmit(" + JSON.stringify(d) + ")'>提交</a>"
} }
if(status == -1 || status == 2){ if(status == -1 || status == 2){
html += "<a onclick='checkUpdate(" + JSON.stringify(d) + ")'>修改</a><div class='splitLine'>|</div>" html += "<div class='splitLine'>|</div><a onclick='checkUpdate(" + JSON.stringify(d) + ")'>修改</a>"
html += "<div class='splitLine'>|</div><a onclick='checkDelete(" + JSON.stringify(d) + ")'>删除</a>"; html += "<div class='splitLine'>|</div><a onclick='checkDelete(" + JSON.stringify(d) + ")'>删除</a>";
} }
html += "<a onclick='planAuditDetail(" + JSON.stringify(d) + ")'>详情</a>"; html += "<div class='splitLine'>|</div><a onclick='planAuditDetail(" + JSON.stringify(d) + ")'>详情</a>";
if ( status == 1 ) { if ( status == 1 ) {
html += "<div class='splitLine'>|</div><a onclick='checkDetail(" + JSON.stringify(d) + ")'>审核</a>"; html += "<div class='splitLine'>|</div><a onclick='checkDetail(" + JSON.stringify(d) + ")'>审核</a>";
} }
@ -246,18 +237,18 @@ function getCheckStatus(auditType,status) {
} }
let name = '分包商'; let name = '分包商';
if(auditType == 1){ if(auditType == 1){
name = "项目部" name = "现场项目部"
}else if(auditType == 2){ }else if(auditType == 2){
name = "防线部门" name = "智联装备云控公司放线队"
}else if(auditType == 3){ }else if(auditType == 3){
name = "分公司" name = "项目部所属分公司"
}else if(auditType == 4){ }else if(auditType == 4){
name = "经营部" name = "智联装备云控经营部"
}else if(auditType == 5){ }else if(auditType == 5){
name = "总公司" name = "智联装备云控公司总经理"
} }
if (status == 1) { if (status == 1) {
return "<span style='color:#FF9900;margin:0 5px 0 5px;font-size:16px'>●</span>"+ name+"审核"; return "<span style='color:#FF9900;margin:0 5px 0 5px;font-size:16px'>●</span>"+ name+"审核";
} else if (status == 2) { } else if (status == 2) {
return "<span style='color:#19BE6B;margin:0 5px 0 5px;font-size:16px;'>●</span>审核驳回"; return "<span style='color:#19BE6B;margin:0 5px 0 5px;font-size:16px;'>●</span>审核驳回";
} else if (status == -1) { } else if (status == -1) {

File diff suppressed because it is too large Load Diff

View File

@ -106,7 +106,7 @@ function initTable() {
}, },
{ {
field: "expGls", field: "expGls",
width: '30%', width: '20%',
title: "公里数", title: "公里数",
unresize: true, unresize: true,
align: "center", align: "center",
@ -142,6 +142,14 @@ function initTable() {
align: "center", align: "center",
sort:true, sort:true,
}, },
{
field: "ton",
title: "吨位",
width: '10%',
unresize: true,
align: "center",
sort:true,
},
], ],
], ],
limits: [10, 15, 20, 25, 50, 100], limits: [10, 15, 20, 25, 50, 100],
@ -319,4 +327,4 @@ function exportExcel() {
} }
url = dataUrl + "backstage/carContract/exportDetail"; url = dataUrl + "backstage/carContract/exportDetail";
exportExcelUtil(url, title, JSON.stringify(params)); exportExcelUtil(url, title, JSON.stringify(params));
} }

View File

@ -153,7 +153,7 @@
</div> </div>
</body> </body>
<script src="../../../lib/jquery-3.4.1/jquery-3.7.1.min.js" charset="utf-8"></script> <script src="../../../lib/jquery-3.4.1/jquery-3.7.1.min.js" charset="utf-8"></script>
<script src="../../../js/public.js" charset="utf-8"></script> <script src="../../../js/public.js" charset="utf-8"></script>
<script src="../../../lib/layui-v2.9.18/layui/layui.js" charset="utf-8"></script> <script src="../../../lib/layui-v2.9.18/layui/layui.js" charset="utf-8"></script>
<script src="../../../js/car_application_audit/car_audit_update.js" charset="utf-8"></script> <script src="../../../js/car_application_audit/car_audit_update.js" charset="utf-8"></script>
<script src="../../../js/openIframe.js" charset="utf-8"></script> <script src="../../../js/openIframe.js" charset="utf-8"></script>