|
|
@@ -1,11 +1,12 @@
|
|
|
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/View.master" AutoEventWireup="true" CodeFile="Order_Log.aspx.cs" Inherits="EOrder_Order_Log" %>
|
|
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
|
|
|
- <script type ="text/javascript" src="../js/address.js"></script>
|
|
|
+ <script type="text/javascript" src="../js/address.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
var logData = null;
|
|
|
var logDataTotal = null;
|
|
|
var curLog = 0;
|
|
|
+ var ctid = '';
|
|
|
//function downloadBillClick(tid) {
|
|
|
|
|
|
//}
|
|
|
@@ -15,55 +16,30 @@
|
|
|
//}
|
|
|
|
|
|
function onClickChangeLog() {
|
|
|
- if (curLog == 0) {
|
|
|
- if (logDataTotal != null && logDataTotal.length > 0) {
|
|
|
- $("#idLogContent").html("");
|
|
|
- curLog = 1;
|
|
|
- var ahtml = "";
|
|
|
- $("#tipTxt").html("(当前为原始单号查找的所有日志)");
|
|
|
- for (var item of logDataTotal) {
|
|
|
- if (item.PostCode == "Supplier") {
|
|
|
- ahtml += ("<div style=\"font-size:16px;color:#3C3C3C; margin-top:15px;line-height:25px; display:flex;flex-direction:column; \"> <div> <span style='color:darkblue;font-size:16px;'>❥" + formatCommonDate(item.OperateTime) + "</span>-<span style='color:green;'>" + item.UserTb + "-" + item.tid + "</span></div><div style='margin-left:12px;'>" + item.Con + "</div></div>")
|
|
|
-
|
|
|
- }
|
|
|
- else
|
|
|
- ahtml += ("<div style=\"font-size:16px;color:#3C3C3C; margin-top:15px;line-height:25px; display:flex;flex-direction:column; \"> <div> <span style='color:darkblue;font-size:16px;'>❥" + formatCommonDate(item.OperateTime) + "</span>-<span style='color:green;'>" + item.UserName + "-" + item.tid + "</span></div><div style='margin-left:12px;'>" + item.Con + "</div></div>")
|
|
|
- }
|
|
|
- $("#idLogContent").html(ahtml);
|
|
|
- }
|
|
|
- }
|
|
|
- else {
|
|
|
- if (logData != null && logData.length > 0) {
|
|
|
- curLog = 0;
|
|
|
- $("#idLogContent").html("");
|
|
|
- $("#tipTxt").html("(当前为本单的日志)");
|
|
|
- var ahtml = "";
|
|
|
- for (var item of logData) {
|
|
|
- if (item.PostCode == "Supplier") {
|
|
|
- ahtml += ("<div style=\"font-size:16px;color:#3C3C3C; margin-top:15px;line-height:25px; display:flex;flex-direction:column; \"> <div> <span style='color:darkblue;font-size:16px;'>❥" + formatCommonDate(item.OperateTime) + "</span>-<span style='color:green;'>" + item.UserTb + "</span></div><div style='margin-left:12px;'>" + item.Con + "</div></div>")
|
|
|
- }
|
|
|
- else
|
|
|
- ahtml += ("<div style=\"font-size:16px;color:#3C3C3C; margin-top:15px;line-height:25px; display:flex;flex-direction:column; \"> <div> <span style='color:darkblue;font-size:16px;'>❥" + formatCommonDate(item.OperateTime) + "</span>-<span style='color:green;'>" + item.UserName + "</span></div><div style='margin-left:12px;'>" + item.Con + "</div></div>")
|
|
|
- }
|
|
|
- $("#idLogContent").html(ahtml);
|
|
|
+ let inCtid = mini.get("inCtid").getValue()
|
|
|
+ postAjax("getOrderLogInfo", { ctid: inCtid }, function (data) {
|
|
|
+ var ahtml = "";
|
|
|
+ for (var item of data.data) {
|
|
|
+ ahtml += ("<div style=\"font-size:16px;color:#3C3C3C; margin-top:15px;line-height:25px; display:flex;flex-direction:column; \"> <div> <span style='color:darkblue;font-size:16px;'>❥" + formatCommonDate(item.OperateTime) + "</span>-<span style='color:green;'>" + item.UserName + "</span></div><div style='margin-left:12px;'>" + item.Con + "</div></div>")
|
|
|
}
|
|
|
- }
|
|
|
+ $("#idLogContent").empty().html(ahtml);
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
$(function () {
|
|
|
- console.log("xxxxx", logData);
|
|
|
if (logData != null && logData.length > 0) {
|
|
|
curLog = 0;
|
|
|
var ahtml = "";
|
|
|
for (var item of logData) {
|
|
|
- ahtml += ("<div style=\"font-size:16px;color:#3C3C3C; margin-top:15px;line-height:25px; display:flex;flex-direction:column; \"> <div> <span style='color:darkblue;font-size:16px;'>❥" + formatCommonDate(item.OperateTime) + "</span>-<span style='color:green;'>" + item.UserName + "</span></div><div style='margin-left:12px;'>" + item.Con + "</div></div>")
|
|
|
+ ahtml += ("<div style=\"font-size:16px;color:#3C3C3C; margin-top:15px;line-height:25px; display:flex;flex-direction:column; \"> <div> <span style='color:darkblue;font-size:16px;'>❥" + formatCommonDate(item.OperateTime) + "</span>-<span style='color:green;'>" + item.UserName + "</span></div><div style='margin-left:12px;'>" + item.Con + "</div></div>")
|
|
|
}
|
|
|
$("#idLogContent").html(ahtml);
|
|
|
+ mini.get("inCtid").setValue(ctid)
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
});
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
</script>
|
|
|
<style type="text/css">
|
|
|
@@ -121,18 +97,20 @@
|
|
|
.word_shou {
|
|
|
background-color: saddlebrown;
|
|
|
}
|
|
|
+
|
|
|
.word_green {
|
|
|
background-color: forestgreen;
|
|
|
}
|
|
|
- .state_word{
|
|
|
- width:50px;
|
|
|
- display:flex;
|
|
|
- flex-direction:row;
|
|
|
- padding:3px 6px 3px 6px;
|
|
|
- text-align:center;
|
|
|
- font-weight:bold;
|
|
|
- color:white;
|
|
|
- background-color:forestgreen;
|
|
|
+
|
|
|
+ .state_word {
|
|
|
+ width: 50px;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ padding: 3px 6px 3px 6px;
|
|
|
+ text-align: center;
|
|
|
+ font-weight: bold;
|
|
|
+ color: white;
|
|
|
+ background-color: forestgreen;
|
|
|
}
|
|
|
|
|
|
.mini-grid-cell-nowrap {
|
|
|
@@ -150,7 +128,7 @@
|
|
|
</asp:Content>
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="btn" runat="Server">
|
|
|
<div style="display: flex; flex-direction: row">
|
|
|
- <a class="mini-button" onclick="onClickChangeLog">切换</a><div id="tipTxt" style="font-size:20px;color:orangered;margin-left:5px;line-height:25px;">(当前为本单的日志)</div>
|
|
|
+ <input id="inCtid" class="mini-textbox inp" /><a class="mini-button" onclick="onClickChangeLog">查询</a><div id="tipTxt" style="font-size: 20px; color: orangered; margin-left: 5px; line-height: 25px;">(当前为本单的日志)</div>
|
|
|
</div>
|
|
|
|
|
|
<div style="width: 600px; height: 600px; overflow: auto; float: left; margin-left: 3px;" id="idLogContent">
|