This commit is contained in:
jiang 2025-07-16 16:56:45 +08:00
parent b16ee4540b
commit ba8085e957
2 changed files with 19 additions and 14 deletions

View File

@ -2,6 +2,7 @@ let idParam, objParam;
let details; let details;
let form, layer, table; let form, layer, table;
let isPage = getUrlParam('isPage'); let isPage = getUrlParam('isPage');
let token;
if (isPage) { // 首页跳转 if (isPage) { // 首页跳转
$('#plan-detail-box>div').eq(0).remove(); $('#plan-detail-box>div').eq(0).remove();
$('#plan-detail-box').css({'justify-content': 'end', 'height': '50px'}); $('#plan-detail-box').css({'justify-content': 'end', 'height': '50px'});
@ -24,15 +25,18 @@ function getParamsFromUrl() {
// 页面加载完成后执行 // 页面加载完成后执行
window.addEventListener("DOMContentLoaded", () => { window.addEventListener("DOMContentLoaded", () => {
const params = getParamsFromUrl(); const params = getParamsFromUrl();
console.log(params)
if (!params.token) { if (!params.token) {
return; return;
} }
token = params.token;
sessionStorage.setItem('gz-token', params.token); sessionStorage.setItem('gz-token', params.token);
let url = dataUrl + `backstage/carPlanAudit/getCarAuditById/${params.id}`; let url = dataUrl + `backstage/carPlanAudit/getCarAuditById/${params.id}`;
ajaxRequest(url, "GET", {}, true, function () { ajaxRequest(url, "GET", {}, true, function () {
}, function (result) { }, function (result) {
if (result.code === 200) { if (result.code === 200) {
result.data.checkType =2 params.isFinish === '1' ? result.data.checkType = 0 : result.data.checkType = 2
setParams(JSON.stringify(result.data)); setParams(JSON.stringify(result.data));
} else { } else {
} }
@ -570,6 +574,7 @@ function withdrawData(data) {
// 需求计划申请审核 // 需求计划申请审核
function check() { function check() {
objParam.checkType = '2'; // 需求计划申请审核 objParam.checkType = '2'; // 需求计划申请审核
objParam.token = token;
openIframeByParamObj("check", "审核", "./audit_form.html", "40%", "50%", objParam, 1); openIframeByParamObj("check", "审核", "./audit_form.html", "40%", "50%", objParam, 1);
} }

View File

@ -27,7 +27,7 @@ window.addEventListener("DOMContentLoaded", () => {
ajaxRequest(url, "GET", {}, true, function () { ajaxRequest(url, "GET", {}, true, function () {
}, function (result) { }, function (result) {
if (result.code === 200) { if (result.code === 200) {
result.data.type = 2 params.isFinish === '1' ? result.data.checkType = 0 : result.data.checkType = 2
setParams(JSON.stringify(result.data)); setParams(JSON.stringify(result.data));
} else { } else {
} }