问题修改

This commit is contained in:
cwchen 2025-01-17 13:59:09 +08:00
parent 5c4817b72c
commit 8e7b0fce2e
4 changed files with 20 additions and 23 deletions

View File

@ -139,7 +139,7 @@ function initTable() {
unresize: true, unresize: true,
align: "center", align: "center",
templet: function (d) { templet: function (d) {
return '<span style="color:' + color + '"> ● 已派车</span>'; return '<span style="color:#19BE6B"> ● 已派车</span>';
}, },
}, },
{ {
@ -196,23 +196,20 @@ function exportExcel() {
'keyWord': $('#keyWord').val(), 'keyWord': $('#keyWord').val(),
applyType: '1' applyType: '1'
} }
let url = dataUrl + "backstage/carNeedPlan/export"; let url = dataUrl + "backstage/supDispatchCar/expOutPageList";
exportExcelUtil(url, '车辆需求计划', JSON.stringify(params)); exportExcelUtil(url, '到货确认单', JSON.stringify(params));
} }
//审核状态 //审核状态
function setIsUpload(value) { function setIsUpload(value) {
/* if (value.indexOf('') > -1) { if (value > 0) {
return "<span style='color:#19BE6B;margin:0 5px 0 5px;font-size:16px;'>●</span>" + auditStatus + ""; return "<span style='color:#19BE6B;margin:0 5px 0 5px;font-size:16px;'>●</span>已上传";
} else if (value.indexOf('审核驳回') > -1) {
return "<span style='color:#F56C6C;margin:0 5px 0 5px;font-size:16px;'>●</span>" + auditStatus + "";
} else { } else {
return "<span style='color:#FF9900;margin:0 5px 0 5px;font-size:16px;'>●</span>" + auditStatus + "";
} */
return "<span style='color:#FF9900;margin:0 5px 0 5px;font-size:16px;'>●</span>待上传"; return "<span style='color:#FF9900;margin:0 5px 0 5px;font-size:16px;'>●</span>待上传";
} }
}
// 需求计划详情 // 需求计划详情
function viewPlanDetail(obj) { function viewPlanDetail(obj) {

View File

@ -31,15 +31,15 @@ function setDataView() {
// 查询/重置 // 查询/重置
function queryTable(type) { function queryTable(type) {
if (type === 1) { if (type === 1) {
let code = $('#code').val(); let proName = $('#proName').val();
let flag = checkValue(code); let flag = checkValue(proName);
if (flag) { if (flag) {
$('#code').val(''); $('#proName').val('');
return layer.msg('需求计划编号查询包含特殊字符,请重新输入', { icon: 2 }); return layer.msg('工程名称查询包含特殊字符,请重新输入', { icon: 2 });
} }
reloadTable(1); reloadTable(1);
} else if (type === 2) { } else if (type === 2) {
$('#code').val(''); $('#proName').val('');
$('#status').val(''); $('#status').val('');
layui.form.render(); layui.form.render();
reloadTable(1); reloadTable(1);
@ -59,7 +59,7 @@ function reloadTable(pageNum) {
}, },
where: { where: {
encryptedData: JSON.stringify({ encryptedData: JSON.stringify({
'code': $('#code').val(), 'proName': $('#proName').val(),
'status': $('#status').val(), 'status': $('#status').val(),
'bmname': objParam.bmname 'bmname': objParam.bmname
}), }),
@ -80,7 +80,7 @@ function initTable() {
url: dataUrl + "backstage/carStatistics/getSltPageListByBmName", url: dataUrl + "backstage/carStatistics/getSltPageListByBmName",
where: { where: {
encryptedData: JSON.stringify({ encryptedData: JSON.stringify({
'code': $('#code').val(), 'proName': $('#proName').val(),
'status': $('#status').val(), 'status': $('#status').val(),
'bmname': objParam.bmname 'bmname': objParam.bmname
}), }),
@ -202,7 +202,7 @@ function initTable() {
// 导出 // 导出
function exportExcel() { function exportExcel() {
let params = { let params = {
'code': $('#code').val(), 'proName': $('#proName').val(),
'status': $('#status').val(), 'status': $('#status').val(),
'bmname': objParam.bmname 'bmname': objParam.bmname
} }

View File

@ -43,9 +43,9 @@ function loadYearsData() {
// 月份 // 月份
function loadMonthData() { function loadMonthData() {
const list = [{ id: 'month-1', labelName: '1月' }, { id: 'month-2', labelName: '2月' }, { id: 'month-3', labelName: '3月' }, { id: 'month-4', labelName: '4月' }, const list = [{ id: 'month-01', labelName: '1月' }, { id: 'month-02', labelName: '2月' }, { id: 'month-03', labelName: '3月' }, { id: 'month-04', labelName: '4月' },
{ id: 'month-5', labelName: '5月' }, { id: 'month-6', labelName: '6月' }, { id: 'month-7', labelName: '7月' }, { id: 'month-8', labelName: '8月' }, { id: 'month-05', labelName: '5月' }, { id: 'month-06', labelName: '6月' }, { id: 'month-07', labelName: '7月' }, { id: 'month-08', labelName: '8月' },
{ id: 'month-9', labelName: '9月' }, { id: 'month-10', labelName: '10月' }, { id: 'month-11', labelName: '11月' }, { id: 'month-12', labelName: '12月' }]; { id: 'month-09', labelName: '9月' }, { id: 'month-10', labelName: '10月' }, { id: 'month-11', labelName: '11月' }, { id: 'month-12', labelName: '12月' }];
setTagData(list, 'demo4'); setTagData(list, 'demo4');
} }

View File

@ -58,8 +58,8 @@
<div class="layui-form-item"> <div class="layui-form-item">
<div class="layui-inline"> <div class="layui-inline">
<div class="layui-input-inline" style="width: 300px;"> <div class="layui-input-inline" style="width: 300px;">
<input type="text" name="code" id="code" autocomplete="off" class="layui-input" <input type="text" name="proName" id="proName" autocomplete="off" class="layui-input"
lay-affix="clear" placeholder="输入需求计划编号" maxlength="30"> lay-affix="clear" placeholder="输入工程名称" maxlength="30">
</div> </div>
</div> </div>
<div class="layui-inline"> <div class="layui-inline">