From 3a5e49666af1da441633b0a9bae4c3c2b18974b3 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期二, 14 四月 2026 16:05:41 +0800
Subject: [PATCH] 质押合同添加业务经理绑定,H5相关逻辑完善
---
fzzy-igdss-web/src/main/resources/templates/wx/warn-detail.html | 224 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 224 insertions(+), 0 deletions(-)
diff --git a/fzzy-igdss-web/src/main/resources/templates/wx/warn-detail.html b/fzzy-igdss-web/src/main/resources/templates/wx/warn-detail.html
new file mode 100644
index 0000000..6fc3a57
--- /dev/null
+++ b/fzzy-igdss-web/src/main/resources/templates/wx/warn-detail.html
@@ -0,0 +1,224 @@
+<!DOCTYPE html>
+<html lang="zh-cn" xmlns:th=http://www.thymeleaf.org>
+<head>
+ <meta charset="utf-8">
+ <title>璀﹀憡璇︾粏</title>
+ <meta name="viewport"
+ content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
+ <link rel="stylesheet" th:href="@{/ajax/libs/mui/css/mui.min.css}">
+ <style>
+ .mui-content {
+ margin: 0 5px;
+ }
+
+ .mui-table-view {
+ position: unset;
+ margin-top: 10px;
+ border-radius: 6px;
+ }
+
+ .mui-table-view-chevron .mui-table-view-cell {
+ padding-right: 10px;
+ }
+
+ .mui-table-view-cell {
+ padding: 10px 10px;
+ }
+
+ .mui-table-view-cell p {
+ font-size: 17px;
+ }
+
+ .mui-ellipsis {
+ margin-top: 5px;
+ margin-bottom: 10px;
+ font-size: 18px;
+ }
+
+ .first {
+ font-size: 15px;
+ float: right;
+ }
+
+ .sec {
+ border-radius: 6px;
+ margin-top: 10px;
+ margin-bottom: 10px;
+ list-style: none;
+ background: #FFFFFF;
+ }
+
+ .four {
+ padding: 7px 10px;
+ }
+
+ .sec-2 {
+ margin-top: 10px;
+ margin-bottom: 10px;
+ font-size: 18px;
+ }
+
+ input[type=color], input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], select, textarea {
+ border-radius: 4px;
+ padding: 10px 10px;
+ margin-bottom: unset;
+ background-color: #eee;
+ border: 1px solid #eee;
+ }
+
+ .title {
+ text-align: center;
+ background: #8bd2f5;
+ border-radius: 6px 6px 0 0;
+ font-size: 15px;
+ }
+
+ .mui-btn {
+ font-size: 22px;
+ padding: 6px 20px;
+ border-radius: 6px;
+ }
+
+ .mui-button-row {
+ margin-bottom: 10px;
+ }
+
+ .head {
+ margin-top: 44px;
+ }
+ </style>
+</head>
+<body>
+<div id="head">
+ <header class="mui-bar mui-bar-nav">
+ <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
+ <h1 class="mui-title">璀﹀憡璇︾粏</h1>
+ </header>
+</div>
+<div id="content" class="mui-content head">
+ <div>
+ <ul class="mui-table-view mui-table-view-chevron">
+ <div class="title">璀﹀憡淇℃伅</div>
+ <li id="handle1" class="mui-table-view-cell">
+ <!-- <h4 class="mui-ellipsis">楂樻俯璀﹀憡<span class="first">鏈鐞�</span></h4>-->
+ <!-- <h5 class="mui-ellipsis">娓╂箍搴�#1</h5>-->
+ <!-- <h5 class="mui-ellipsis">2020-10-10 10:10:10</h5>-->
+ <!-- <p >鎮ㄥソ锛屼綘鐨勮澶囨俯婀垮害#1浜�2020-10-10 10:10:10瑙﹀彂楂樻俯鍛婅锛岃鍙婃椂澶勭悊锛�</p>-->
+ </li>
+ </ul>
+ </div>
+ <div class="sec">
+ <div class="title">澶勭悊淇℃伅</div>
+ <div id="handle2" class="four">
+ <!-- <h5 class="sec-2">寮犱笁</h5>-->
+ <!-- <h5 class="sec-2">2020-10-10 10:10:10</h5>-->
+ <!-- <textarea id="textarea" rows="5" placeholder="澶勭悊璇存槑"></textarea>-->
+ </div>
+ </div>
+ <div class="mui-button-row">
+ <button id="btn1" type="button" class="mui-btn mui-btn-primary" onclick="toHandle()">澶勭悊</button>
+ <button type="button" class="mui-btn mui-btn-danger" onclick="toPage()">杩斿洖</button>
+ </div>
+
+</div>
+<script th:src="@{/js/jquery.min.js}"></script>
+<script th:src="@{/wx/wx-common.js}"></script>
+<script th:src="@{/ajax/libs/mui/js/mui.js}"></script>
+<script th:inline="javascript">
+ var warnId = [[${id}]]; //璁惧id
+ var companyId = [[${companyId}]]; //缁勭粐缂栫爜
+ var deptList = [[${deptList}]];
+ var userName = [[${userName}]]; //褰撳墠鎿嶄綔浜鸿处鍙�
+ var loginType = [[${loginType}]]; //鐧诲綍鏂瑰紡
+ var deptListMap = {};
+ $(function () {
+ //鎵�鏈夊簱鍖�
+ if (deptList) {
+ for (var i = 0; i < deptList.length; i++) {
+ deptListMap[deptList[i].id] = deptList[i];
+ }
+ }
+ mui.init();
+ try {
+ getDeviceList();
+ } catch (e) {
+ mui.alert(e, '鎻愮ず', ["纭畾"], function () {
+ }, "div");
+ }
+ // getDeviceList()
+ });
+
+ //鑾峰彇鐢ㄦ埛璁惧淇℃伅
+ function getDeviceList() {
+ var data = {
+ "id": warnId,
+ };
+ wxCommon.postJson("../wx/getSnapReplyInfoById", data, function (result) {
+ if (result.code == "0000") {
+ initData(result.data);
+ } else {
+ $("#listData").html('');
+ mui.alert(result.msg, '鎻愮ず', ["纭畾"], function () {
+ }, "div");
+ }
+ });
+ }
+
+ //鍒濆鍖栭〉闈㈡暟鎹�
+ function initData(data) {
+ var deptName = deptListMap[data.deptId] ? deptListMap[data.deptId].kqmc : data.deptId;
+
+ var html1 = '';
+ var html2 = '';
+ html1 += '<h4 class="mui-ellipsis">' +deptName;
+ html1 += '<h5 class="mui-ellipsis">' + data.createTime + '</h5>';
+ html1 += '<p>' + data.content + '</p>';
+
+ //鏈鐞�
+ if(data.isHandle && data.isHandle == "N"){
+ html2 += '<input id="days" type="number" min="1" step="1" placeholder="鏈潵姝e父澶╂暟" style="width: 100%; margin-top: 10px;margin-bottom: 10px" oninput="this.value = this.value.replace(/\\D|^0/g, \'\')" />';
+ html2 += '<textarea id="remark" rows="5" placeholder="澶勭悊璇存槑"></textarea>';
+ }else{
+ html2 += '<p>' + '鏈潵姝e父澶╂暟锛�'+ data.days + '</p>';
+ html2 += '<p>' + '澶勭悊璇存槑锛�'+ data.remark + '</p>';
+
+ }
+ $("#handle1").html(html1);
+ $("#handle2").html(html2);
+ }
+
+ //璀﹀憡澶勭悊鎻愪氦
+ function toHandle() {
+ var remarkDetail = $("#remark").val();
+ var days = $("#days").val();
+
+
+ var data = {
+ "id": warnId,
+ "userName": userName,
+ "remark": remarkDetail,
+ "days": days
+ };
+ wxCommon.postJson("../wx/handleSnapReply", data, function (result) {
+ if (result.code == "0000") {
+ mui.toast("澶勭悊鎴愬姛锛�");
+ toPage();
+ } else {
+ mui.alert(result.msg, '鎻愮ず', ["纭畾"], function () {
+ }, "div");
+ }
+ });
+ }
+
+ //杩斿洖璀︽姤鍒楄〃
+ function toPage() {
+ location.reload();
+ // 杩斿洖涓婁竴椤�
+ // 寰俊 H5 鐜锛氫娇鐢� localStorage 鏍囪
+ localStorage.setItem('needRefresh', 'true');
+ mui.back();
+ }
+
+</script>
+</body>
+</html>
--
Gitblit v1.9.3