地质所 沉降监测网建设项目
zmk
2024-05-23 80125173e0051ffdd9914d33586b739e80362e78
javaweb-plus/javaweb-cms/src/main/resources/templates/geo/TubLog/edit.html
@@ -34,7 +34,7 @@
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="outboundDate" th:value="${#dates.format(tubLog.outboundDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <input id="outboundDateId" name="outboundDate" th:value="${#dates.format(tubLog.outboundDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
@@ -43,7 +43,7 @@
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="inboundDate" th:value="${#dates.format(tubLog.inboundDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <input id="inboundDateId" name="inboundDate" th:value="${#dates.format(tubLog.inboundDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
@@ -90,6 +90,12 @@
        });
        function submitHandler() {
            let inboundDateValue = $("#inboundDateId").val();
            let outboundDateValue = $("#outboundDateId").val();
            if ($.common.isEmpty(inboundDateValue) && $.common.isEmpty(outboundDateValue)) {
                $.modal.alertWarning("出入库时间,请选择一条记录");
                return;
            }
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-TubLog-edit').serialize());
            }