验收页面优化(通过且快速审批时无需选择处理人)

This commit is contained in:
王利强
2026-07-28 10:16:06 +08:00
parent 7c3285ed5a
commit 088ff356f2
621 changed files with 1372 additions and 212 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
{"version":3,"file":"processChainLabels.js","sources":["components/hazardDetail/processChainLabels.js"],"sourcesContent":["export const CHAIN_LABELS = {\r\n\tloading: '加载中...',\r\n\tempty: '暂无流程记录',\r\n\tpersonnelSuffix: '人员:',\r\n\thazardCode: '隐患编号',\r\n\thazardTitle: '隐患标题',\r\n\tcheckSource: '检查形式',\r\n\thazardSource: '隐患来源',\r\n\thazardArea: '隐患区域',\r\n\taddress: '位置描述',\r\n\thazardLevel: '隐患等级',\r\n\thazardTag: '隐患标签',\r\n\tdescription: '问题描述',\r\n\thazardAttachments: '隐患附件',\r\n\tlegalBasis: '参考法规',\r\n\tassigneeName: '指定整改责任人',\r\n\tassignDeadline: '指定整改截至日期',\r\n\tassignStatus: '交办状态',\r\n\trectifyStatus: '整改状态',\r\n\trectifyPlan: '整改方案',\r\n\trectifyResult: '整改结果',\r\n\trectifyMeasures: '整改措施',\r\n\tcontrolMeasures: '管控措施',\r\n\trectifierName: '整改责任人',\r\n\tmanagerNames: '管理人员',\r\n\tmemberNames: '整改成员',\r\n\tplanCost: '预计费用',\r\n\tactualCost: '实际费用',\r\n\trectifyAttachments: '整改附件',\r\n\trectifySign: '整改签字',\r\n\tverifyResult: '验收结果',\r\n\tpass: '通过',\r\n\tverifyRemark: '验收备注',\r\n\tverifyAttachments: '验收附件',\r\n\tverifySign: '验收签字',\r\n\twriteoffDeadline: '整改时限',\r\n\tresponsibleDept: '治理责任单位',\r\n\tresponsiblePerson: '主要负责人',\r\n\tmainTreatment: '主要治理内容',\r\n\ttreatmentResult: '治理完成内容',\r\n\tselfVerify: '自行验收情况',\r\n\tapplySign: '申请签字',\r\n\tapprovalOpinion: '审批意见',\r\n\tapprovalComment: '意见说明',\r\n\tsmsReminder: '短信提醒',\r\n\tyes: '是',\r\n\tno: '否',\r\n\tapprovalSign: '审批签字',\r\n\tattachmentFallback: '附件',\r\n\tyuan: '元'\r\n};\r\n\r\nexport const LEVEL_NAME_CLASS_MAP = {\r\n\t一般: 'level-normal',\r\n\t一般隐患: 'level-normal',\r\n\t重大: 'level-major',\r\n\t重大隐患: 'level-major'\r\n};\r\n"],"names":[],"mappings":";AAAY,MAAC,eAAe;AAAA,EAC3B,SAAS;AAAA,EACT,OAAO;AAAA,EACP,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,aAAa;AAAA,EACb,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,aAAa;AAAA,EACb,WAAW;AAAA,EACX,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,eAAe;AAAA,EACf,aAAa;AAAA,EACb,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,aAAa;AAAA,EACb,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,oBAAoB;AAAA,EACpB,aAAa;AAAA,EACb,cAAc;AAAA,EACd,MAAM;AAAA,EACN,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,mBAAmB;AAAA,EACnB,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,KAAK;AAAA,EACL,IAAI;AAAA,EACJ,cAAc;AAAA,EACd,oBAAoB;AAAA,EACpB,MAAM;AACP;AAEY,MAAC,uBAAuB;AAAA,EACnC,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,MAAM;AACP;;;"}
{"version":3,"file":"processChainLabels.js","sources":["components/hazardDetail/processChainLabels.js"],"sourcesContent":["export const CHAIN_LABELS = {\r\n\tloading: '加载中...',\r\n\tempty: '暂无流程记录',\r\n\tpersonnelSuffix: '人员:',\r\n\texecutorPrefix: '执行',\r\n\tstatusSuffix: '状态:',\r\n\thazardCode: '隐患编号',\r\n\thazardTitle: '隐患标题',\r\n\tcheckSource: '检查形式',\r\n\thazardSource: '隐患来源',\r\n\thazardArea: '隐患区域',\r\n\taddress: '位置描述',\r\n\thazardLevel: '隐患等级',\r\n\thazardTag: '隐患标签',\r\n\tdescription: '问题描述',\r\n\thazardAttachments: '隐患附件',\r\n\tlegalBasis: '参考法规',\r\n\tassigneeName: '指定整改责任人',\r\n\tassignDeadline: '指定整改截至日期',\r\n\tassignStatus: '交办状态',\r\n\trectifyStatus: '整改状态',\r\n\trectifyPlan: '整改方案',\r\n\trectifyResult: '整改结果',\r\n\trectifyMeasures: '整改措施',\r\n\tcontrolMeasures: '管控措施',\r\n\trectifierName: '整改责任人',\r\n\tmanagerNames: '管理人员',\r\n\tmemberNames: '整改成员',\r\n\tplanCost: '预计费用',\r\n\tactualCost: '实际费用',\r\n\trectifyAttachments: '整改附件',\r\n\trectifySign: '整改签字',\r\n\tverifyResult: '验收结果',\r\n\tpass: '通过',\r\n\tverifyRemark: '验收备注',\r\n\tverifyAttachments: '验收附件',\r\n\tverifySign: '验收签字',\r\n\twriteoffDeadline: '整改时限',\r\n\tresponsibleDept: '治理责任单位',\r\n\tresponsiblePerson: '主要负责人',\r\n\tmainTreatment: '主要治理内容',\r\n\ttreatmentResult: '治理完成内容',\r\n\tselfVerify: '自行验收情况',\r\n\tapplySign: '申请签字',\r\n\tapprovalOpinion: '审批意见',\r\n\tapprovalComment: '意见说明',\r\n\tsmsReminder: '短信提醒',\r\n\tyes: '是',\r\n\tno: '否',\r\n\tapprovalSign: '审批签字',\r\n\tattachmentFallback: '附件',\r\n\tyuan: '元'\r\n};\r\n\r\nexport const LEVEL_NAME_CLASS_MAP = {\r\n\t一般: 'level-normal',\r\n\t一般隐患: 'level-normal',\r\n\t重大: 'level-major',\r\n\t重大隐患: 'level-major'\r\n};\r\n"],"names":[],"mappings":";AAAY,MAAC,eAAe;AAAA,EAC3B,SAAS;AAAA,EACT,OAAO;AAAA,EACP,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,aAAa;AAAA,EACb,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,aAAa;AAAA,EACb,WAAW;AAAA,EACX,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,eAAe;AAAA,EACf,aAAa;AAAA,EACb,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,aAAa;AAAA,EACb,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,oBAAoB;AAAA,EACpB,aAAa;AAAA,EACb,cAAc;AAAA,EACd,MAAM;AAAA,EACN,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,mBAAmB;AAAA,EACnB,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,KAAK;AAAA,EACL,IAAI;AAAA,EACJ,cAAc;AAAA,EACd,oBAAoB;AAAA,EACpB,MAAM;AACP;AAEY,MAAC,uBAAuB;AAAA,EACnC,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,MAAM;AACP;;;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -7141,7 +7141,7 @@ function isConsoleWritable() {
function initRuntimeSocketService() {
const hosts = "172.30.48.1,192.168.1.144,127.0.0.1";
const port = "8090";
const id = "mp-weixin_4ene97";
const id = "mp-weixin_t1hX9E";
const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => {
} : initOnError();

View File

@@ -116,41 +116,55 @@ const _sfc_main = {
g: common_vendor.unref(stepScrollIntoView),
h: common_vendor.f(common_vendor.unref(historyList), (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.titlePrefix),
b: common_vendor.t(fieldText(item, item.operator)),
c: common_vendor.t(fieldText(item, item.time)),
d: item.type === "add" && item.content.levelName
}, item.type === "add" && item.content.levelName ? {
e: common_vendor.t(item.content.levelName),
f: common_vendor.n(getLevelTagClass(item.content))
a: item.completed
}, item.completed ? {
b: common_vendor.t(item.titlePrefix),
c: common_vendor.t(common_vendor.unref(labels).personnelSuffix),
d: common_vendor.t(fieldText(item, item.operator)),
e: common_vendor.t(fieldText(item, item.time))
} : {
f: common_vendor.t(common_vendor.unref(labels).executorPrefix),
g: common_vendor.t(common_vendor.unref(labels).personnelSuffix),
h: common_vendor.t(fieldText(item, item.currentHandlerName)),
i: common_vendor.t(common_vendor.unref(labels).statusSuffix),
j: common_vendor.t(common_vendor.unref(components_hazardDetail_processChain.PENDING_LABEL))
}, {
k: item.completed && item.type === "add" && item.content.levelName
}, item.completed && item.type === "add" && item.content.levelName ? {
l: common_vendor.t(item.content.levelName),
m: common_vendor.n(getLevelTagClass(item.content))
} : {}, {
g: item.type === "add"
n: item.completed
}, item.completed ? {} : {}, {
o: item.completed
}, item.completed ? common_vendor.e({
p: item.type === "add"
}, item.type === "add" ? common_vendor.e({
h: common_vendor.t(common_vendor.unref(labels).hazardCode),
i: common_vendor.t(fieldText(item, item.content.code)),
j: common_vendor.t(common_vendor.unref(labels).hazardTitle),
k: common_vendor.t(fieldText(item, item.content.title)),
l: common_vendor.t(common_vendor.unref(labels).checkSource),
m: common_vendor.t(fieldText(item, item.content.source)),
n: common_vendor.t(common_vendor.unref(labels).hazardSource),
o: common_vendor.t(fieldText(item, item.content.hazardSourceName)),
p: common_vendor.t(common_vendor.unref(labels).hazardArea),
q: common_vendor.t(fieldText(item, item.content.areaName)),
r: common_vendor.t(common_vendor.unref(labels).address),
s: common_vendor.t(fieldText(item, item.content.address)),
t: common_vendor.t(common_vendor.unref(labels).hazardLevel),
v: common_vendor.t(fieldText(item, item.content.levelName)),
w: common_vendor.n(getLevelTagClass(item.content)),
x: common_vendor.t(common_vendor.unref(labels).hazardTag),
y: common_vendor.t(fieldText(item, item.content.tagName)),
z: common_vendor.t(common_vendor.unref(labels).description),
A: common_vendor.t(fieldText(item, item.content.description)),
B: item.content.attachments && item.content.attachments.length || !item.completed
q: common_vendor.t(common_vendor.unref(labels).hazardCode),
r: common_vendor.t(fieldText(item, item.content.code)),
s: common_vendor.t(common_vendor.unref(labels).hazardTitle),
t: common_vendor.t(fieldText(item, item.content.title)),
v: common_vendor.t(common_vendor.unref(labels).checkSource),
w: common_vendor.t(fieldText(item, item.content.source)),
x: common_vendor.t(common_vendor.unref(labels).hazardSource),
y: common_vendor.t(fieldText(item, item.content.hazardSourceName)),
z: common_vendor.t(common_vendor.unref(labels).hazardArea),
A: common_vendor.t(fieldText(item, item.content.areaName)),
B: common_vendor.t(common_vendor.unref(labels).address),
C: common_vendor.t(fieldText(item, item.content.address)),
D: common_vendor.t(common_vendor.unref(labels).hazardLevel),
E: common_vendor.t(fieldText(item, item.content.levelName)),
F: common_vendor.n(getLevelTagClass(item.content)),
G: common_vendor.t(common_vendor.unref(labels).hazardTag),
H: common_vendor.t(fieldText(item, item.content.tagName)),
I: common_vendor.t(common_vendor.unref(labels).description),
J: common_vendor.t(fieldText(item, item.content.description)),
K: item.content.attachments && item.content.attachments.length || !item.completed
}, item.content.attachments && item.content.attachments.length || !item.completed ? common_vendor.e({
C: common_vendor.t(common_vendor.unref(labels).hazardAttachments),
D: item.content.attachments && item.content.attachments.length
L: common_vendor.t(common_vendor.unref(labels).hazardAttachments),
M: item.content.attachments && item.content.attachments.length
}, item.content.attachments && item.content.attachments.length ? {
E: common_vendor.f(item.content.attachments, (file, idx, i1) => {
N: common_vendor.f(item.content.attachments, (file, idx, i1) => {
return {
a: idx,
b: resolveFileUrl(file.filePath),
@@ -159,44 +173,44 @@ const _sfc_main = {
};
})
} : {
F: common_vendor.t(fieldText(item, ""))
O: common_vendor.t(fieldText(item, ""))
}) : {}, {
G: common_vendor.t(common_vendor.unref(labels).legalBasis),
H: common_vendor.t(fieldText(item, item.content.legalBasis))
P: common_vendor.t(common_vendor.unref(labels).legalBasis),
Q: common_vendor.t(fieldText(item, item.content.legalBasis))
}) : item.type === "assign" ? {
J: common_vendor.t(common_vendor.unref(labels).assigneeName),
K: common_vendor.t(fieldText(item, item.content.assigneeName)),
L: common_vendor.t(common_vendor.unref(labels).assignDeadline),
M: common_vendor.t(fieldText(item, item.content.deadline)),
N: common_vendor.t(common_vendor.unref(labels).assignStatus),
O: common_vendor.t(fieldText(item, item.content.assignStatusName))
S: common_vendor.t(common_vendor.unref(labels).assigneeName),
T: common_vendor.t(fieldText(item, item.content.assigneeName)),
U: common_vendor.t(common_vendor.unref(labels).assignDeadline),
V: common_vendor.t(fieldText(item, item.content.deadline)),
W: common_vendor.t(common_vendor.unref(labels).assignStatus),
X: common_vendor.t(fieldText(item, item.content.assignStatusName))
} : item.type === "rectify" ? common_vendor.e({
Q: common_vendor.t(common_vendor.unref(labels).rectifyStatus),
R: common_vendor.t(fieldText(item, item.content.rectifyStatusName)),
S: common_vendor.t(common_vendor.unref(labels).rectifyPlan),
T: common_vendor.t(fieldText(item, item.content.rectifyPlan)),
U: common_vendor.t(common_vendor.unref(labels).rectifyResult),
V: common_vendor.t(fieldText(item, item.content.rectifyResult)),
W: common_vendor.t(common_vendor.unref(labels).rectifyMeasures),
X: common_vendor.t(fieldText(item, item.content.rectificationMeasures)),
Y: common_vendor.t(common_vendor.unref(labels).controlMeasures),
Z: common_vendor.t(fieldText(item, item.content.controlMeasures)),
aa: common_vendor.t(common_vendor.unref(labels).rectifierName),
ab: common_vendor.t(fieldText(item, item.content.rectifierName)),
ac: common_vendor.t(common_vendor.unref(labels).managerNames),
ad: common_vendor.t(fieldText(item, item.content.managerNames)),
ae: common_vendor.t(common_vendor.unref(labels).memberNames),
af: common_vendor.t(fieldText(item, item.content.memberNames)),
ag: common_vendor.t(common_vendor.unref(labels).planCost),
ah: common_vendor.t(formatCost(item.content.planCost, item.completed)),
ai: common_vendor.t(common_vendor.unref(labels).actualCost),
aj: common_vendor.t(formatCost(item.content.actualCost, item.completed)),
ak: item.content.attachments && item.content.attachments.length || !item.completed
Z: common_vendor.t(common_vendor.unref(labels).rectifyStatus),
aa: common_vendor.t(fieldText(item, item.content.rectifyStatusName)),
ab: common_vendor.t(common_vendor.unref(labels).rectifyPlan),
ac: common_vendor.t(fieldText(item, item.content.rectifyPlan)),
ad: common_vendor.t(common_vendor.unref(labels).rectifyResult),
ae: common_vendor.t(fieldText(item, item.content.rectifyResult)),
af: common_vendor.t(common_vendor.unref(labels).rectifyMeasures),
ag: common_vendor.t(fieldText(item, item.content.rectificationMeasures)),
ah: common_vendor.t(common_vendor.unref(labels).controlMeasures),
ai: common_vendor.t(fieldText(item, item.content.controlMeasures)),
aj: common_vendor.t(common_vendor.unref(labels).rectifierName),
ak: common_vendor.t(fieldText(item, item.content.rectifierName)),
al: common_vendor.t(common_vendor.unref(labels).managerNames),
am: common_vendor.t(fieldText(item, item.content.managerNames)),
an: common_vendor.t(common_vendor.unref(labels).memberNames),
ao: common_vendor.t(fieldText(item, item.content.memberNames)),
ap: common_vendor.t(common_vendor.unref(labels).planCost),
aq: common_vendor.t(formatCost(item.content.planCost, item.completed)),
ar: common_vendor.t(common_vendor.unref(labels).actualCost),
as: common_vendor.t(formatCost(item.content.actualCost, item.completed)),
at: item.content.attachments && item.content.attachments.length || !item.completed
}, item.content.attachments && item.content.attachments.length || !item.completed ? common_vendor.e({
al: common_vendor.t(common_vendor.unref(labels).rectifyAttachments),
am: item.content.attachments && item.content.attachments.length
av: common_vendor.t(common_vendor.unref(labels).rectifyAttachments),
aw: item.content.attachments && item.content.attachments.length
}, item.content.attachments && item.content.attachments.length ? {
an: common_vendor.f(item.content.attachments, (file, idx, i1) => {
ax: common_vendor.f(item.content.attachments, (file, idx, i1) => {
return common_vendor.e({
a: file.fileType === "image" || !file.fileType
}, file.fileType === "image" || !file.fileType ? {
@@ -210,38 +224,38 @@ const _sfc_main = {
});
})
} : {
ao: common_vendor.t(fieldText(item, ""))
ay: common_vendor.t(fieldText(item, ""))
}) : {}, {
ap: item.content.signPath || !item.completed
az: item.content.signPath || !item.completed
}, item.content.signPath || !item.completed ? common_vendor.e({
aq: common_vendor.t(common_vendor.unref(labels).rectifySign),
ar: item.content.signPath
aA: common_vendor.t(common_vendor.unref(labels).rectifySign),
aB: item.content.signPath
}, item.content.signPath ? {
as: resolveFileUrl(item.content.signPath),
at: common_vendor.o(($event) => previewSingle(item.content.signPath), "node-" + index),
av: common_vendor.o((...args) => common_vendor.unref(scheduleMeasureLayout) && common_vendor.unref(scheduleMeasureLayout)(...args), "node-" + index)
aC: resolveFileUrl(item.content.signPath),
aD: common_vendor.o(($event) => previewSingle(item.content.signPath), "node-" + index),
aE: common_vendor.o((...args) => common_vendor.unref(scheduleMeasureLayout) && common_vendor.unref(scheduleMeasureLayout)(...args), "node-" + index)
} : {
aw: common_vendor.t(fieldText(item, ""))
aF: common_vendor.t(fieldText(item, ""))
}) : {}) : item.type === "verify" || item.type === "writeoff_approve" ? common_vendor.e({
ay: common_vendor.t(common_vendor.unref(labels).verifyResult),
az: item.completed && item.content.resultName
aH: common_vendor.t(common_vendor.unref(labels).verifyResult),
aI: item.completed && item.content.resultName
}, item.completed && item.content.resultName ? {
aA: common_vendor.t(item.content.resultName),
aB: common_vendor.n(item.content.resultName === common_vendor.unref(labels).pass ? "result-tag--pass" : "result-tag--fail")
aJ: common_vendor.t(item.content.resultName),
aK: common_vendor.n(item.content.resultName === common_vendor.unref(labels).pass ? "result-tag--pass" : "result-tag--fail")
} : {
aC: common_vendor.t(fieldText(item, item.content.resultName))
aL: common_vendor.t(fieldText(item, item.content.resultName))
}, {
aD: item.content.remark || !item.completed
aM: item.content.remark || !item.completed
}, item.content.remark || !item.completed ? {
aE: common_vendor.t(common_vendor.unref(labels).verifyRemark),
aF: common_vendor.t(fieldText(item, item.content.remark))
aN: common_vendor.t(common_vendor.unref(labels).verifyRemark),
aO: common_vendor.t(fieldText(item, item.content.remark))
} : {}, {
aG: item.content.attachments && item.content.attachments.length || !item.completed
aP: item.content.attachments && item.content.attachments.length || !item.completed
}, item.content.attachments && item.content.attachments.length || !item.completed ? common_vendor.e({
aH: common_vendor.t(common_vendor.unref(labels).verifyAttachments),
aI: item.content.attachments && item.content.attachments.length
aQ: common_vendor.t(common_vendor.unref(labels).verifyAttachments),
aR: item.content.attachments && item.content.attachments.length
}, item.content.attachments && item.content.attachments.length ? {
aJ: common_vendor.f(item.content.attachments, (file, idx, i1) => {
aS: common_vendor.f(item.content.attachments, (file, idx, i1) => {
return common_vendor.e({
a: file.fileType === "image" || !file.fileType
}, file.fileType === "image" || !file.fileType ? {
@@ -255,92 +269,92 @@ const _sfc_main = {
});
})
} : {
aK: common_vendor.t(fieldText(item, ""))
aT: common_vendor.t(fieldText(item, ""))
}) : {}, {
aL: item.content.signPath || !item.completed
aU: item.content.signPath || !item.completed
}, item.content.signPath || !item.completed ? common_vendor.e({
aM: common_vendor.t(common_vendor.unref(labels).verifySign),
aN: item.content.signPath
aV: common_vendor.t(common_vendor.unref(labels).verifySign),
aW: item.content.signPath
}, item.content.signPath ? {
aO: resolveFileUrl(item.content.signPath),
aP: common_vendor.o(($event) => previewSingle(item.content.signPath), "node-" + index),
aQ: common_vendor.o((...args) => common_vendor.unref(scheduleMeasureLayout) && common_vendor.unref(scheduleMeasureLayout)(...args), "node-" + index)
aX: resolveFileUrl(item.content.signPath),
aY: common_vendor.o(($event) => previewSingle(item.content.signPath), "node-" + index),
aZ: common_vendor.o((...args) => common_vendor.unref(scheduleMeasureLayout) && common_vendor.unref(scheduleMeasureLayout)(...args), "node-" + index)
} : {
aR: common_vendor.t(fieldText(item, ""))
ba: common_vendor.t(fieldText(item, ""))
}) : {}) : item.type === "writeoff_apply" ? common_vendor.e({
aT: common_vendor.t(common_vendor.unref(labels).writeoffDeadline),
aU: common_vendor.t(fieldText(item, item.content.rectifyDeadline)),
aV: common_vendor.t(common_vendor.unref(labels).responsibleDept),
aW: common_vendor.t(fieldText(item, item.content.responsibleDeptName)),
aX: common_vendor.t(common_vendor.unref(labels).responsiblePerson),
aY: common_vendor.t(fieldText(item, item.content.responsiblePerson)),
aZ: common_vendor.t(common_vendor.unref(labels).mainTreatment),
ba: common_vendor.t(fieldText(item, item.content.mainTreatmentContent)),
bb: common_vendor.t(common_vendor.unref(labels).treatmentResult),
bc: common_vendor.t(fieldText(item, item.content.treatmentResult)),
bd: common_vendor.t(common_vendor.unref(labels).selfVerify),
be: common_vendor.t(fieldText(item, item.content.selfVerifyContent)),
bf: item.content.signPath || !item.completed
bc: common_vendor.t(common_vendor.unref(labels).writeoffDeadline),
bd: common_vendor.t(fieldText(item, item.content.rectifyDeadline)),
be: common_vendor.t(common_vendor.unref(labels).responsibleDept),
bf: common_vendor.t(fieldText(item, item.content.responsibleDeptName)),
bg: common_vendor.t(common_vendor.unref(labels).responsiblePerson),
bh: common_vendor.t(fieldText(item, item.content.responsiblePerson)),
bi: common_vendor.t(common_vendor.unref(labels).mainTreatment),
bj: common_vendor.t(fieldText(item, item.content.mainTreatmentContent)),
bk: common_vendor.t(common_vendor.unref(labels).treatmentResult),
bl: common_vendor.t(fieldText(item, item.content.treatmentResult)),
bm: common_vendor.t(common_vendor.unref(labels).selfVerify),
bn: common_vendor.t(fieldText(item, item.content.selfVerifyContent)),
bo: item.content.signPath || !item.completed
}, item.content.signPath || !item.completed ? common_vendor.e({
bg: common_vendor.t(common_vendor.unref(labels).applySign),
bh: item.content.signPath
bp: common_vendor.t(common_vendor.unref(labels).applySign),
bq: item.content.signPath
}, item.content.signPath ? {
bi: resolveFileUrl(item.content.signPath),
bj: common_vendor.o(($event) => previewSingle(item.content.signPath), "node-" + index),
bk: common_vendor.o((...args) => common_vendor.unref(scheduleMeasureLayout) && common_vendor.unref(scheduleMeasureLayout)(...args), "node-" + index)
br: resolveFileUrl(item.content.signPath),
bs: common_vendor.o(($event) => previewSingle(item.content.signPath), "node-" + index),
bt: common_vendor.o((...args) => common_vendor.unref(scheduleMeasureLayout) && common_vendor.unref(scheduleMeasureLayout)(...args), "node-" + index)
} : {
bl: common_vendor.t(fieldText(item, ""))
bv: common_vendor.t(fieldText(item, ""))
}) : {}) : item.type === "approval" ? common_vendor.e({
bn: common_vendor.t(common_vendor.unref(labels).approvalOpinion),
bo: item.completed && item.content.approveTypeName
bx: common_vendor.t(common_vendor.unref(labels).approvalOpinion),
by: item.completed && item.content.approveTypeName
}, item.completed && item.content.approveTypeName ? {
bp: common_vendor.t(item.content.approveTypeName),
bq: common_vendor.n(item.content.pass ? "result-tag--pass" : "result-tag--fail")
bz: common_vendor.t(item.content.approveTypeName),
bA: common_vendor.n(item.content.pass ? "result-tag--pass" : "result-tag--fail")
} : {
br: common_vendor.t(fieldText(item, item.content.approveTypeName))
bB: common_vendor.t(fieldText(item, item.content.approveTypeName))
}, {
bs: common_vendor.t(common_vendor.unref(labels).approvalComment),
bt: common_vendor.t(fieldText(item, item.content.comment)),
bv: isPendingText(item, item.content.comment) ? 1 : "",
bw: common_vendor.t(common_vendor.unref(labels).smsReminder),
bx: item.content.sendMsgFlag != null
bC: common_vendor.t(common_vendor.unref(labels).approvalComment),
bD: common_vendor.t(fieldText(item, item.content.comment)),
bE: isPendingText(item, item.content.comment) ? 1 : "",
bF: common_vendor.t(common_vendor.unref(labels).smsReminder),
bG: item.content.sendMsgFlag != null
}, item.content.sendMsgFlag != null ? {
by: common_vendor.t(item.content.sendMsgFlag ? common_vendor.unref(labels).yes : common_vendor.unref(labels).no)
bH: common_vendor.t(item.content.sendMsgFlag ? common_vendor.unref(labels).yes : common_vendor.unref(labels).no)
} : {
bz: common_vendor.t(fieldText(item, ""))
bI: common_vendor.t(fieldText(item, ""))
}, {
bA: item.content.signPath || !item.completed
bJ: item.content.signPath || !item.completed
}, item.content.signPath || !item.completed ? common_vendor.e({
bB: common_vendor.t(common_vendor.unref(labels).approvalSign),
bC: item.content.signPath
bK: common_vendor.t(common_vendor.unref(labels).approvalSign),
bL: item.content.signPath
}, item.content.signPath ? {
bD: resolveFileUrl(item.content.signPath),
bE: common_vendor.o(($event) => previewSingle(item.content.signPath), "node-" + index),
bF: common_vendor.o((...args) => common_vendor.unref(scheduleMeasureLayout) && common_vendor.unref(scheduleMeasureLayout)(...args), "node-" + index)
bM: resolveFileUrl(item.content.signPath),
bN: common_vendor.o(($event) => previewSingle(item.content.signPath), "node-" + index),
bO: common_vendor.o((...args) => common_vendor.unref(scheduleMeasureLayout) && common_vendor.unref(scheduleMeasureLayout)(...args), "node-" + index)
} : {
bG: common_vendor.t(fieldText(item, ""))
bP: common_vendor.t(fieldText(item, ""))
}) : {}) : {}, {
I: item.type === "assign",
P: item.type === "rectify",
ax: item.type === "verify" || item.type === "writeoff_approve",
aS: item.type === "writeoff_apply",
bm: item.type === "approval",
bH: common_vendor.unref(activeIndex) === index ? 1 : "",
bI: "node-" + index,
bJ: "process-node-" + index,
bK: index === common_vendor.unref(historyList).length - 1 ? 1 : ""
R: item.type === "assign",
Y: item.type === "rectify",
aG: item.type === "verify" || item.type === "writeoff_approve",
bb: item.type === "writeoff_apply",
bw: item.type === "approval"
}) : {}, {
bQ: common_vendor.unref(activeIndex) === index ? 1 : "",
bR: "node-" + index,
bS: "process-node-" + index,
bT: index === common_vendor.unref(historyList).length - 1 ? 1 : ""
});
}),
i: common_vendor.t(common_vendor.unref(labels).personnelSuffix),
j: common_vendor.s(scrollAreaStyle.value),
k: common_vendor.unref(contentScrollIntoView),
l: common_vendor.unref(scrollWithAnimation),
m: common_vendor.o((...args) => common_vendor.unref(onContentScroll) && common_vendor.unref(onContentScroll)(...args)),
n: common_vendor.o((...args) => common_vendor.unref(onScrollToLower) && common_vendor.unref(onScrollToLower)(...args)),
o: common_vendor.s(detailBodyStyle.value)
i: common_vendor.s(scrollAreaStyle.value),
j: common_vendor.unref(contentScrollIntoView),
k: common_vendor.unref(scrollWithAnimation),
l: common_vendor.o((...args) => common_vendor.unref(onContentScroll) && common_vendor.unref(onContentScroll)(...args)),
m: common_vendor.o((...args) => common_vendor.unref(onScrollToLower) && common_vendor.unref(onScrollToLower)(...args)),
n: common_vendor.s(detailBodyStyle.value)
}, {
c: common_vendor.unref(historyList).length === 0,
p: common_vendor.gei(_ctx, "")
o: common_vendor.gei(_ctx, "")
});
};
}

File diff suppressed because one or more lines are too long

View File

@@ -165,6 +165,9 @@
color: #999;
line-height: 1.4;
}
.time.status-pending.data-v-020654bc {
color: #e6a23c;
}
.level-badge.data-v-020654bc {
flex-shrink: 0;
padding: 6rpx 16rpx;

View File

@@ -54,6 +54,12 @@ const resolveTaskKey = (node) => {
var _a;
return (node == null ? void 0 : node.taskKey) || ((_a = node == null ? void 0 : node.subProcessApprovalInfo) == null ? void 0 : _a.taskKey) || "";
};
const resolveCurrentHandlerName = (currentHandler) => {
if (!currentHandler || typeof currentHandler !== "object") {
return "";
}
return toDisplayText(currentHandler.handlerNames) || toDisplayText(currentHandler.assigneeName) || "";
};
const toSafeObject = (value) => value && typeof value === "object" ? value : {};
const toDisplayText = (value) => {
if (value == null || value === "")
@@ -291,6 +297,7 @@ const mapProcessNodeToHistoryItem = (node) => {
titlePrefix: "处理",
operator: "",
time: "",
currentHandlerName: "",
content: {},
flowTaskId: "",
completed: true
@@ -307,6 +314,7 @@ const mapProcessNodeToHistoryItem = (node) => {
titlePrefix: resolveTitlePrefix(rawType, displayType, node),
operator: resolveOperator(node, displayType),
time: resolveTime(node, displayType),
currentHandlerName: resolveCurrentHandlerName(node.currentHandler),
content: mapNodeContent(node, displayType),
flowTaskId: node.flowTaskId || "",
completed: isNodeCompleted(node)

View File

@@ -3,6 +3,8 @@ const CHAIN_LABELS = {
loading: "加载中...",
empty: "暂无流程记录",
personnelSuffix: "人员:",
executorPrefix: "执行",
statusSuffix: "状态:",
hazardCode: "隐患编号",
hazardTitle: "隐患标题",
checkSource: "检查形式",

View File

@@ -126,6 +126,13 @@ const _sfc_main = {
var _a;
return ((_a = rectifyData.rectifierName) == null ? void 0 : _a.trim()) || "暂无";
});
const showAssigneeSection = common_vendor.computed(() => {
if (formData.result === 2)
return true;
if (formData.result === 1 && formData.quickApproveRadio === "no")
return true;
return false;
});
const selectedAssigneeIdentityId = common_vendor.ref("");
const selectedAssigneeName = common_vendor.ref("");
const pickerAssigneeIdentityId = common_vendor.ref("");
@@ -170,7 +177,7 @@ const _sfc_main = {
assigneeList.value = [];
}
} catch (error) {
common_vendor.index.__f__("error", "at pages/hiddendanger/acceptance.vue:352", "获取部门人员失败:", error);
common_vendor.index.__f__("error", "at pages/hiddendanger/acceptance.vue:361", "获取部门人员失败:", error);
assigneeList.value = [];
} finally {
assigneeLoading.value = false;
@@ -237,7 +244,7 @@ const _sfc_main = {
nextStepName.value = "";
}
} catch (error) {
common_vendor.index.__f__("error", "at pages/hiddendanger/acceptance.vue:425", "获取下一步流程失败:", error);
common_vendor.index.__f__("error", "at pages/hiddendanger/acceptance.vue:434", "获取下一步流程失败:", error);
nextStepName.value = "";
} finally {
nextStepLoading.value = false;
@@ -496,7 +503,7 @@ const _sfc_main = {
common_vendor.index.showToast({ title: res.msg || "获取整改详情失败", icon: "none" });
}
} catch (error) {
common_vendor.index.__f__("error", "at pages/hiddendanger/acceptance.vue:719", "获取整改详情失败:", error);
common_vendor.index.__f__("error", "at pages/hiddendanger/acceptance.vue:728", "获取整改详情失败:", error);
common_vendor.index.showToast({ title: "获取整改详情失败", icon: "none" });
}
};
@@ -526,7 +533,7 @@ const _sfc_main = {
common_vendor.index.showToast({ title: res.msg || "获取详情失败", icon: "none" });
}
} catch (error) {
common_vendor.index.__f__("error", "at pages/hiddendanger/acceptance.vue:751", "获取隐患详情失败:", error);
common_vendor.index.__f__("error", "at pages/hiddendanger/acceptance.vue:760", "获取隐患详情失败:", error);
common_vendor.index.showToast({ title: "请求失败", icon: "none" });
}
};
@@ -593,7 +600,7 @@ const _sfc_main = {
} catch (err) {
isSubmitting.value = false;
common_vendor.index.hideLoading();
common_vendor.index.__f__("error", "at pages/hiddendanger/acceptance.vue:830", "签名上传失败:", err);
common_vendor.index.__f__("error", "at pages/hiddendanger/acceptance.vue:839", "签名上传失败:", err);
common_vendor.index.showToast({ title: "签名上传失败,请重试", icon: "none" });
}
}
@@ -615,7 +622,7 @@ const _sfc_main = {
params.assigneeIdentityId = selectedAssigneeIdentityId.value;
}
}
common_vendor.index.__f__("log", "at pages/hiddendanger/acceptance.vue:859", "提交验收参数:", params);
common_vendor.index.__f__("log", "at pages/hiddendanger/acceptance.vue:868", "提交验收参数:", params);
try {
const res = await request_api.acceptanceRectification(params);
common_vendor.index.hideLoading();
@@ -636,7 +643,7 @@ const _sfc_main = {
}
} catch (error) {
common_vendor.index.hideLoading();
common_vendor.index.__f__("error", "at pages/hiddendanger/acceptance.vue:881", "验收失败:", error);
common_vendor.index.__f__("error", "at pages/hiddendanger/acceptance.vue:890", "验收失败:", error);
common_vendor.index.showToast({
title: "请求失败",
icon: "none"
@@ -716,7 +723,7 @@ const _sfc_main = {
} catch (err) {
isSubmitting.value = false;
common_vendor.index.hideLoading();
common_vendor.index.__f__("error", "at pages/hiddendanger/acceptance.vue:990", "签名上传失败:", err);
common_vendor.index.__f__("error", "at pages/hiddendanger/acceptance.vue:999", "签名上传失败:", err);
common_vendor.index.showToast({ title: "签名上传失败,请重试", icon: "none" });
}
};
@@ -732,7 +739,7 @@ const _sfc_main = {
const sysInfo = common_vendor.index.getSystemInfoSync();
signatureWidth.value = sysInfo.windowWidth - 40;
} catch (e) {
common_vendor.index.__f__("error", "at pages/hiddendanger/acceptance.vue:1009", "获取系统信息失败:", e);
common_vendor.index.__f__("error", "at pages/hiddendanger/acceptance.vue:1018", "获取系统信息失败:", e);
}
if (options.rectifyId) {
rectifyId.value = options.rectifyId;
@@ -746,7 +753,7 @@ const _sfc_main = {
if (options.taskId) {
taskId.value = options.taskId;
}
common_vendor.index.__f__("log", "at pages/hiddendanger/acceptance.vue:1023", "验收页面参数:", { rectifyId: rectifyId.value, hazardId: hazardId.value, assignId: assignId.value, taskId: taskId.value });
common_vendor.index.__f__("log", "at pages/hiddendanger/acceptance.vue:1032", "验收页面参数:", { rectifyId: rectifyId.value, hazardId: hazardId.value, assignId: assignId.value, taskId: taskId.value });
loadPageData();
restoreDraft();
});
@@ -803,18 +810,20 @@ const _sfc_main = {
D: canvasWidth.value + "px",
E: canvasHeight.value + "px",
F: common_vendor.t(nextStepDisplay.value),
G: formData.result === 2
G: showAssigneeSection.value
}, showAssigneeSection.value ? common_vendor.e({
H: formData.result === 2
}, formData.result === 2 ? {
H: common_vendor.t(rectifierDisplayName.value)
I: common_vendor.t(rectifierDisplayName.value)
} : {
I: common_vendor.t(selectedAssigneeName.value || "请选择下一步处理人"),
J: !selectedAssigneeName.value ? 1 : "",
K: common_vendor.o(openAssigneePopup)
}, {
L: common_vendor.o(cancelAssigneeSelect),
M: assigneeLoading.value
J: common_vendor.t(selectedAssigneeName.value || "请选择下一步处理人"),
K: !selectedAssigneeName.value ? 1 : "",
L: common_vendor.o(openAssigneePopup)
}) : {}, {
M: common_vendor.o(cancelAssigneeSelect),
N: assigneeLoading.value
}, assigneeLoading.value ? {} : assigneeList.value.length === 0 ? {} : {
O: common_vendor.f(assigneeList.value, (user, k0, i0) => {
P: common_vendor.f(assigneeList.value, (user, k0, i0) => {
return common_vendor.e({
a: common_vendor.t(formatAssigneeDisplayName(user)),
b: String(pickerAssigneeIdentityId.value) === String(resolveAssigneeIdentityId(user))
@@ -825,38 +834,38 @@ const _sfc_main = {
});
})
}, {
N: assigneeList.value.length === 0,
P: common_vendor.o(cancelAssigneeSelect),
Q: common_vendor.o(confirmAssigneeSelect),
R: common_vendor.o(cancelAssigneeSelect),
S: common_vendor.p({
O: assigneeList.value.length === 0,
Q: common_vendor.o(cancelAssigneeSelect),
R: common_vendor.o(confirmAssigneeSelect),
S: common_vendor.o(cancelAssigneeSelect),
T: common_vendor.p({
show: showAssigneePopup.value,
mode: "bottom",
round: "20"
}),
T: showCanvas.value
U: showCanvas.value
}, showCanvas.value ? {
U: common_vendor.o(clearSignature)
V: common_vendor.o(clearSignature)
} : {
V: common_vendor.o(reSign)
W: common_vendor.o(reSign)
}, {
W: !showCanvas.value
X: !showCanvas.value
}, !showCanvas.value ? common_vendor.e({
X: signatureUrl.value
}, signatureUrl.value ? {
Y: signatureUrl.value
}, signatureUrl.value ? {
Z: signatureUrl.value
} : {}) : {}, {
Z: showCanvas.value && !showAssigneePopup.value
aa: showCanvas.value && !showAssigneePopup.value
}, showCanvas.value && !showAssigneePopup.value ? {
aa: common_vendor.sr(signatureRef, "39f9b795-3", {
ab: common_vendor.sr(signatureRef, "39f9b795-3", {
"k": "signatureRef"
}),
ab: common_vendor.o((res) => onSignatureConfirm(res.tempFilePath)),
ac: common_vendor.o(onSignatureStart),
ad: common_vendor.o(onSignatureSigning),
ae: common_vendor.o(onSignatureEnd),
af: common_vendor.o(onSignatureClear),
ag: common_vendor.p({
ac: common_vendor.o((res) => onSignatureConfirm(res.tempFilePath)),
ad: common_vendor.o(onSignatureStart),
ae: common_vendor.o(onSignatureSigning),
af: common_vendor.o(onSignatureEnd),
ag: common_vendor.o(onSignatureClear),
ah: common_vendor.p({
width: signatureWidth.value,
height: 160,
backgroundColor: "#f8f8f8",
@@ -865,9 +874,9 @@ const _sfc_main = {
enableHistory: false
})
} : {}, {
ah: common_vendor.o(handleCancel),
ai: common_vendor.o(handleSubmit),
aj: common_vendor.gei(_ctx, "")
ai: common_vendor.o(handleCancel),
aj: common_vendor.o(handleSubmit),
ak: common_vendor.gei(_ctx, "")
});
};
}

File diff suppressed because one or more lines are too long