diff --git a/src/main/resources/static/assets/mobile/img/condolence/condolence-empty.png b/src/main/resources/static/assets/mobile/img/condolence/condolence-empty.png new file mode 100644 index 00000000..0dd32328 Binary files /dev/null and b/src/main/resources/static/assets/mobile/img/condolence/condolence-empty.png differ diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/apply/index.html b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/apply/index.html index bded6b5a..58734c00 100644 --- a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/apply/index.html +++ b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/apply/index.html @@ -3,9 +3,140 @@ layout("/layouts/platform_h5.html"){ #-->
@@ -14,10 +145,12 @@ layout("/layouts/platform_h5.html"){ placeholder> - + - +
+

基本信息

+ - + +
- - - - - - +
+

附件材料

+
+ {{ '附件说明:' + chooseType.uploadFileDesc }} +
+ + + + + +
- - - - - +
+

签字确认

+ + + + + +
-
+
保存申请 提交申请 提交申请 diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/branchUnionApproval/index.html b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/branchUnionApproval/index.html index b65d14ba..475fa217 100644 --- a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/branchUnionApproval/index.html +++ b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/branchUnionApproval/index.html @@ -2,35 +2,87 @@ layout("/layouts/platform_h5.html"){ #--> - +
+
+
- + + - - - - +
+
+ + +
- +
-
{{formData.taskName}}
- - - -
- 同意 - 不同意 - 退回 +
+

+ 审批意见* +

+ + + +
+
+ 退回 + 不同意 + 同意
+ +
diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/common/info.css b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/common/info.css new file mode 100644 index 00000000..3094eded --- /dev/null +++ b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/common/info.css @@ -0,0 +1,176 @@ +.condolence-full-popup { + --color-primary: #1989fa; + width: 100%; + height: 100%; + overflow: hidden; + background: #f3f7fc; +} + +.condolence-full-popup__page { + display: flex; + height: 100%; + padding-top: 46px; + overflow: hidden; + box-sizing: border-box; + flex-direction: column; +} + +.condolence-full-popup__page > .van-nav-bar { + z-index: 20; + background: #fff; +} + +.condolence-full-popup__page > .van-nav-bar .van-icon, +.condolence-full-popup__page > .van-nav-bar .van-nav-bar__text { + color: #1989fa; +} + +.condolence-full-popup__scroll { + min-height: 0; + overflow-y: auto; + flex: 1; + -webkit-overflow-scrolling: touch; +} + +.condolence-info-main { + padding: 12px 15px calc(18px + env(safe-area-inset-bottom)); +} + +.condolence-info-card { + margin-bottom: 11px; + overflow: hidden; + border: 1px solid #e9eff7; + border-radius: 10px; + background: #fff; + box-shadow: 0 3px 11px rgba(51, 87, 126, .08); +} + +.condolence-info-card__title { + position: relative; + margin: 0; + padding: 12px 14px 8px 21px; + color: #354255; + font-size: 15px; + font-weight: 600; + line-height: 22px; +} + +.condolence-info-card__title::before { + position: absolute; + top: 15px; + bottom: 11px; + left: 12px; + width: 2px; + border-radius: 2px; + background: #1989fa; + content: ""; +} + +/* 审核意见复用详情 Card 标题,并与提案 delegation 审核输入区保持一致。 */ +.condolence-audit-card__required { + margin-left: 4px; + color: #ee0a24; + font-size: 14px; +} + +.condolence-info-card .van-field.condolence-audit-field { + width: calc(100% - 28px); + margin: 0 14px 14px; + padding: 12px; + box-sizing: border-box; + border: 1px solid #c9d5e5; + border-radius: 10px; + background: #f7f9fd; +} + +.condolence-info-card .van-field.condolence-audit-field .van-field__control { + min-height: 150px; + color: #253247; + line-height: 22px; +} + +.condolence-info-card .van-field.condolence-audit-field .van-field__control::placeholder { + color: #9aa7b8; +} + +.condolence-info-card .van-field.condolence-audit-field .van-field__word-limit { + color: #718096; +} + +.condolence-info-card .van-field.condolence-audit-field::after { + display: none; +} + +.condolence-popup-actions { + display: flex; + padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); + justify-content: space-between; + column-gap: 10px; + background: transparent; +} + +.condolence-popup-actions .van-button { + border-radius: 14px; +} + +.condolence-popup-actions .condolence-action-primary { + border-color: #1989fa; + background: #1989fa; +} + +.condolence-popup-actions .condolence-action-danger { + border-color: #ff4d4f; + background: #ff4d4f; +} + +.condolence-info-card .van-cell-group { + margin: 0; + background: transparent; +} + +.condolence-info-card .van-cell { + min-height: 44px; + padding: 10px 14px; + background: transparent; +} + +.condolence-info-card .van-cell:not(:last-child)::after { + right: 14px; + left: 14px; + border-color: #eef2f7; +} + +.condolence-info-card .van-cell__title { + width: 102px; + color: #596779; + font-size: 12px; + line-height: 24px; + flex: 0 0 102px; +} + +.condolence-info-card .van-cell__value { + min-width: 0; + color: #4f5d70; + font-size: 12px; + line-height: 24px; + text-align: left; + overflow-wrap: anywhere; +} + +.condolence-info-long-cell { + display: block; +} + +.condolence-info-long-cell .van-cell__title { + width: auto; + max-width: 100%; +} + +.condolence-info-long-cell .van-cell__value { + margin-top: 7px; +} + +.condolence-signature-image { + display: block; + max-width: 100%; +} diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/common/info.js b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/common/info.js index 532f959d..36c8e1ad 100644 --- a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/common/info.js +++ b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/common/info.js @@ -1,104 +1,174 @@ const condolenceInfo = { - template: - /*language=HTML*/ - ` - -
- - {{ 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.remark || '暂无' }} - - - - - - - 暂无签字 - - - + template: /*language=HTML*/ ` + +
+ +
+
+
+

基本信息

+ + {{ 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.remark || '暂无' }} + + + + + + + 暂无签字 + + +
+ +
+

{{ task.displayName || '办理记录' }}

+ + + {{ task.ext.initiatorName || '--' }}({{ task.ext.initiatorAccount || '--' }}) + + {{ task.finishTime || '--' }} + + + + + + + {{ task.taskFormData && task.taskFormData.userName || '--' }}({{ task.taskFormData && task.taskFormData.loginName || '--' }}) + + {{ task.finishTime || '--' }} + + + + +
+
+
+
+ + +
- - - `, +
+
+ `, 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"){ #--> - + +
+
+
- + +
+
+ + +
- + +
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"){ #--> - +
+
+
- + + - - - - +
+
+ + +
- +
-
{{formData.taskName}}
- - - -
- 同意 - 不同意 - 退回 +
+

+ 审批意见* +

+ + + +
+
+ 退回 + 不同意 + 同意
+ +