-
- {{ viewData.applyUserName }}
- {{ viewData.applyLoginName }}
- {{ viewData.applyUnitName }}
- {{ viewData.applyUnionName }}
- {{ viewData.helpUserName }}
-
- {{ viewData.certifierUserName }}
- {{ viewData.typeName }}
- {{ viewData.money }}
- {{ viewData.occurTime }}
- {{ viewData.bankCardNumber }}
- {{ viewData.bankUserName }}
-
- {{ viewData.bankOfDeposit || '暂无' }}
-
-
- {{ viewData.hospitalizationTime }}
- {{ viewData.leaveHospitalTime }}
- {{ viewData.thisYearHospitalizationNum }}
-
-
- {{ viewData.remark || '暂无' }}
-
-
-
-
-
-
- 暂无签字
-
-
-
-
- {{ task.ext.initiatorName }}({{task.ext.initiatorAccount}})
-
- {{ task.finishTime }}
-
-
-
-
-
- {{ task.taskFormData.userName }}({{task.taskFormData.loginName}})
-
- {{ task.finishTime }}
-
-
-
-
-
-
-
-
+ template: /*language=HTML*/ `
+
+ `,
dicts: ["PROCESS_TASK_SUBMIT_TYPE"],
+ props: {
+ pageKey: {
+ type: String,
+ required: true
+ }
+ },
data() {
return {
- visible:false,
+ visible: false,
+ popupTitle: "慰问详情",
viewData: {},
doneTasks: [],
row: null,
+ historyLayerUnsubscribe: null
}
},
methods: {
- onOpen(row) {
- this.row = row
- this.visible = true
+ // 浏览器历史变化时,只同步当前慰问详情弹框的显示状态。
+ syncHistoryLayerStack(stack) {
+ this.$set(this, "visible", stack.includes("condolence-detail"))
+ },
+
+ /**
+ * 打开慰问详情或审核弹框。
+ * row 传列表当前行,title 传顶部导航标题;无返回值。
+ */
+ onOpen(row, title = "慰问详情") {
+ this.$set(this, "row", row)
+ this.$set(this, "popupTitle", title)
+ this.$set(this, "viewData", {})
+ this.$set(this, "doneTasks", [])
this.getInfo()
this.getDoneTasks()
+ if (window.h5HistoryLayerManager && window.h5HistoryLayerManager.open("condolence-detail")) return
+ this.$set(this, "visible", true)
},
- onClose(){
- this.visible = false
+
+ // 顶部返回按钮与业务主动关闭统一回退弹框对应的浏览器历史。
+ onClose(afterClose = null) {
+ if (window.h5HistoryLayerManager && window.h5HistoryLayerManager.close("condolence-detail", afterClose)) return
+ this.$set(this, "visible", false)
+ if (typeof afterClose === "function") afterClose()
},
+
getInfo() {
- this.$axios.post("/platform/condolence/mine/info", { id: this.row.id }).then((res) => {
+ this.$axios.post("/platform/condolence/mine/info", {id: this.row.id}).then((res) => {
if (res.code === 0) {
- this.viewData = res.data
+ this.$set(this, "viewData", res.data || {})
}
})
},
+
getDoneTasks() {
this.$axios.post("/flow/common/doneTasks", {bizId: this.row.id}).then((res) => {
if (res.code === 0) {
- this.doneTasks = res.data
+ this.$set(this, "doneTasks", res.data || [])
}
})
- },
+ }
},
- style: /*language=CSS*/ `
-
- `
+ created() {
+ if (!window.h5HistoryLayerManager) return
+ window.h5HistoryLayerManager.ensureRegistered(this.pageKey)
+ this.$set(this, "historyLayerUnsubscribe", window.h5HistoryLayerManager.subscribe((stack) => {
+ this.syncHistoryLayerStack(stack)
+ }))
+ },
+ beforeDestroy() {
+ if (typeof this.historyLayerUnsubscribe === "function") this.historyLayerUnsubscribe()
+ if (window.h5HistoryLayerManager && window.h5HistoryLayerManager.pageKey === this.pageKey) {
+ window.h5HistoryLayerManager.unregister(this.pageKey)
+ }
+ }
}
diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/mine/index.html b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/mine/index.html
index 49aec50e..a96d6172 100644
--- a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/mine/index.html
+++ b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/mine/index.html
@@ -2,30 +2,293 @@
layout("/layouts/platform_h5.html"){
#-->
-
+
+
+
+
-
+
+
+
+
+
+
{{row.helpUserName}}
{{row.helpLoginName}}
@@ -37,28 +300,37 @@ layout("/layouts/platform_h5.html"){
-
+
查看
-
+
编辑
-
+
撤回
-
+
删除
+
+
+

+
暂无慰问申请记录
+
当前筛选条件下暂时没有慰问申请
+
+
+
-
+
+
diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolUnionApproval/index.html b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolUnionApproval/index.html
index 788a9b33..4a0ebfac 100644
--- a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolUnionApproval/index.html
+++ b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolUnionApproval/index.html
@@ -2,35 +2,87 @@
layout("/layouts/platform_h5.html"){
#-->
-
+
+
+
-
+
+
- {this.pageForm.approval = val==='1';this.doSearch();}">
-
-
-
+
+
+
+
+
{{row.helpUserName}}
{{row.helpLoginName}}
@@ -42,42 +94,65 @@ layout("/layouts/platform_h5.html"){
-
+
查看
-
+
审核
-
+
撤回
+
+
+

+
暂无慰问审核记录
+
当前筛选条件下暂时没有慰问申请
+
+
+
-
+
-
{{formData.taskName}}
-
-
-
-
- 同意
- 不同意
- 退回
+
+
+
+