From f2fa318161407b936f70aa3b918dd38f24ea9a88 Mon Sep 17 00:00:00 2001
From: yzh <snbbt@21cn.com>
Date: 星期一, 13 六月 2022 07:08:28 +0800
Subject: [PATCH] 数据字典表相关功能 系统账号管理优化 订单管理 API账号管理 客户信息管理

---
 web/web/GwOrderAudit.aspx |  127 ++++++++++++++++++++++++++++++++----------
 1 files changed, 96 insertions(+), 31 deletions(-)

diff --git a/web/web/GwOrderAudit.aspx b/web/web/GwOrderAudit.aspx
index 9f54f76..959674b 100644
--- a/web/web/GwOrderAudit.aspx
+++ b/web/web/GwOrderAudit.aspx
@@ -9,14 +9,14 @@
 
         function loadPageList() {
             var clientId = $("#ClientId").val();
-            var clientName = $("#ClientName").val();
+            var compay = $("#Compay").val();
             var spId = $("#SpId").val();
             var startDate = $("#StartTime").val();
             var endDate = $("#EndTime").val();
             $.ajax({
                 url: "GwOrder.ashx",
                 type: "POST",
-                data: { action: "listAudit", clientId: clientId, clientName: clientName, spId: spId, startDate: startDate, endDate: endDate, flag: 0, pageIndex: pagination.getPageIndex(), pageSize: pagination.getPageSize() },
+                data: { action: "listAudit", clientId: clientId, compay: compay, spId: spId, startDate: startDate, endDate: endDate, flag: 0, pageIndex: pagination.getPageIndex(), pageSize: pagination.getPageSize() },
                 success: function (result) {
                     if (result.OK) {
                         $("#orderTable tbody").html(result.Message.Table);
@@ -32,6 +32,31 @@
 
         $(".input-daterange").datepicker({ keyboardNavigation: !1, forceParse: !1, autoclose: !0 });
 
+        //鐘舵�佽浆鎹㈠悕绉�
+        function statusToName(status) {
+            if (status == "") {
+                return "";
+            }
+            else if (status == 0) {
+                return "寰呭鏍�";
+            }
+            else if (status == 1) {
+                return "瀹℃牳涓�";
+            }
+            else if (status == 2) {
+                return "瀹℃牳閫氳繃";
+            }
+            else if (status == 3) {
+                return "瀹℃牳涓嶉�氳繃";
+            }
+            else if (status == 4) {
+                return "鍙栨秷";
+            }
+            else {
+                return status;
+            }
+        }
+
         //鏌ョ湅鏄庣粏
         $(document).on("click", ".action-modal-detail", function () {
             var orderId = $(this).data("orderid");
@@ -43,8 +68,12 @@
                 //$("#orderDialog #action").val("detail");
                 $("#orderDialog #orderId").val(r.Message.OrderId).attr("readonly", "readonly");
                 $("#orderDialog #spId").val(r.Message.SpId).attr("readonly", "readonly");
-                $("#orderDialog #clientId").val(r.Message.ClientId).attr("disabled", "disabled");
-                $("#orderDialog #productId").val(r.Message.ProductId).attr("disabled", "disabled");
+                //$("#orderDialog #clientId").val(r.Message.ClientId).attr("disabled", "disabled");
+                $("#orderDialog #clientId").val(r.Message.ClientId);
+                $("#orderDialog #clientCompany").val(r.Message.Company).attr("readonly", "readonly");  //杞崲鍚嶇О
+                //$("#orderDialog #productId").val(r.Message.ProductId).attr("disabled", "disabled");
+                $("#orderDialog #productId").val(r.Message.ProductId);
+                $("#orderDialog #productName").val(r.Message.ProductName).attr("readonly", "readonly");  //杞崲鍚嶇О
                 //$("#orderDialog #comboId").val(r.Message.ComboId);
                 $("#orderDialog #basicNum").val(r.Message.BasicNum, 0).attr("readonly", "readonly");
                 $("#orderDialog #givingNum").val(r.Message.GivingNum, 0).attr("readonly", "readonly");
@@ -55,11 +84,15 @@
                 $("#orderDialog #beforeBalanceNum").val(r.Message.BeforeBalanceNum, 0).attr("readonly", "readonly");
                 $("#orderDialog #creator").val(r.Message.Creator).attr("readonly", "readonly");
                 $("#orderDialog #createTime").val(r.Message.CreateTime).attr("readonly", "readonly");
-                $("#orderDialog #status").val(r.Message.Status).attr("disabled", "disabled");
+                //$("#orderDialog #status").val(r.Message.Status).attr("disabled", "disabled");
+                $("#orderDialog #status").val(r.Message.Status);
+                $("#orderDialog #statusName").val(statusToName(r.Message.Status)).attr("disabled", "disabled");  //杞崲鍚嶇О
                 $("#orderDialog #remark").val(r.Message.Remark).attr("disabled", "disabled");
 
 
                 $("#orderDialog #auditInfo-1").css("display", "none");
+
+                $(".auditInfo-color").css("color", "");
 
                 $("#orderDialog #auditPass").css("display", "none");
                 $("#orderDialog #auditNoPass").css("display", "none");
@@ -79,8 +112,12 @@
                 //$("#orderDialog #action").val("detail");
                 $("#orderDialog #orderId").val(r.Message.OrderId).attr("readonly", "readonly");
                 $("#orderDialog #spId").val(r.Message.SpId).attr("readonly", "readonly");
-                $("#orderDialog #clientId").val(r.Message.ClientId).attr("disabled", "disabled");
-                $("#orderDialog #productId").val(r.Message.ProductId).attr("disabled", "disabled");
+                //$("#orderDialog #clientId").val(r.Message.ClientId).attr("disabled", "disabled");
+                $("#orderDialog #clientId").val(r.Message.ClientId);
+                $("#orderDialog #clientCompany").val(r.Message.Company).attr("disabled", "disabled");  //杞崲鍚嶇О
+                //$("#orderDialog #productId").val(r.Message.ProductId).attr("disabled", "disabled");
+                $("#orderDialog #productId").val(r.Message.ProductId);
+                $("#orderDialog #productName").val(r.Message.ProductName).attr("disabled", "disabled");  //杞崲鍚嶇О
                 //$("#orderDialog #comboId").val(r.Message.ComboId);
                 $("#orderDialog #basicNum").val(r.Message.BasicNum, 0).attr("readonly", false);
                 $("#orderDialog #givingNum").val(r.Message.GivingNum, 0).attr("readonly", false);
@@ -91,11 +128,15 @@
                 $("#orderDialog #beforeBalanceNum").val(r.Message.BeforeBalanceNum, 0).attr("readonly", "readonly");
                 $("#orderDialog #creator").val(r.Message.Creator).attr("readonly", "readonly");
                 $("#orderDialog #createTime").val(r.Message.CreateTime).attr("readonly", "readonly");
-                $("#orderDialog #status").val(r.Message.Status).attr("disabled", "disabled");
+                //$("#orderDialog #status").val(r.Message.Status).attr("disabled", "disabled");
+                $("#orderDialog #status").val(r.Message.Status);
+                $("#orderDialog #statusName").val(statusToName(r.Message.Status)).attr("disabled", "disabled");  //杞崲鍚嶇О
                 $("#orderDialog #remark").val(r.Message.Remark).attr("disabled", "disabled");
 
                 $("#orderDialog #auditReason").val(r.Message.AuditReason);
                 $("#orderDialog #auditInfo-1").css("display", "");
+                
+                $(".auditInfo-color").css("color", "red");  //鍙~椤�
 
                 $("#orderDialog #auditPass").css("display", "");
                 $("#orderDialog #auditNoPass").css("display", "");
@@ -142,7 +183,7 @@
             var payAmount = $("#payAmount").val();            
             var price = $("#price").val();
             var auditReason = $("#auditReason").val();
-            mytek.confirm("鏄惁纭畾瀹℃牳閫氳繃璇ヤ俊鎭紵", "鏁版嵁鏇存柊鍚庡皢鏃犳硶鎭㈠锛岃璋ㄦ厧鎿嶄綔锛�", function (b) {
+            mytek.confirm("鏄惁纭畾銆愬鏍搁�氳繃銆戣淇℃伅锛�", "鏁版嵁鏇存柊鍚庡皢鏃犳硶鎭㈠锛岃璋ㄦ厧鎿嶄綔锛�", function (b) {
                 if (b) {
                     $.post("gwOrder.ashx", { "action": "audit", status: 1, spId: spId, orderId: orderId, basicNum: basicNum, givingNum: givingNum, payAmount: payAmount, price: price, auditReason: auditReason }, function (result) {
                         mytek.alert(result.Message, result.OK, function () {
@@ -163,7 +204,7 @@
             var payAmount = $("#payAmount").val();
             var price = $("#price").val();
             var auditReason = $("#auditReason").val();
-            mytek.confirm("鏄惁纭畾瀹℃牳涓嶉�氳繃璇ヤ俊鎭紵", "鏁版嵁鏇存柊鍚庡皢鏃犳硶鎭㈠锛岃璋ㄦ厧鎿嶄綔锛�", function (b) {
+            mytek.confirm("鏄惁纭畾銆愬鏍镐笉閫氳繃銆戣淇℃伅锛�", "鏁版嵁鏇存柊鍚庡皢鏃犳硶鎭㈠锛岃璋ㄦ厧鎿嶄綔锛�", function (b) {
                 if (b) {
                     $.post("gwOrder.ashx", { "action": "audit", status: 0, spId: spId, orderId: orderId, basicNum: basicNum, givingNum: givingNum, payAmount: payAmount, price: price, auditReason: auditReason }, function (result) {
                         mytek.alert(result.Message, result.OK, function () {
@@ -199,19 +240,19 @@
         <div class="m-b">
             <div class="form-group">
                 <div class="input-group m-b">
-                    <span class="input-group-addon">浠g悊鍟嗗鎴疯处鎴�</span>
+                    <span class="input-group-addon">瀹㈡埛璐﹀彿</span>
                     <input type="text" name="ClientId" id="ClientId" class="form-control col-md-2" />
                 </div>
             </div>
             <div class="form-group">
                 <div class="input-group m-b">
-                    <span class="input-group-addon">浠g悊鍟嗗鎴峰悕绉�</span>
-                    <input type="text" name="ClientName" id="ClientName" class="form-control col-md-2" />
+                    <span class="input-group-addon">鍏徃鍚嶇О</span>
+                    <input type="text" name="Compay" id="Compay" class="form-control col-md-2" />
                 </div>
             </div>
             <div class="form-group">
                 <div class="input-group m-b">
-                    <span class="input-group-addon">SP璐﹀彿</span>
+                    <span class="input-group-addon">鐭俊璐﹀彿</span>
                     <input type="text" name="SpId" id="SpId" class="form-control col-md-2" />
                 </div>
             </div>
@@ -228,7 +269,7 @@
                 </div>
             </div>
             <div class="form-group">
-                <div class="input-group">
+                <div class="input-group  m-b">
                     <input type="button" value="鏌ヨ" class="btn btn-primary action-btn-GwOrderQuery" />
                 </div>
             </div>
@@ -236,24 +277,28 @@
         <table class="table table-striped table-bordered table-hover" id="orderTable">
             <thead>
                 <tr class="header">
+                    <!--
                     <th>璁㈠崟ID
                     </th>
-                    <th>璐﹀彿ID
+                    -->
+                    <th>鐭俊璐﹀彿
                     </th>
-                    <th>瀹㈡埛ID
+                    <th>瀹㈡埛璐﹀彿
                     </th>
-                    <th>浜у搧ID
+                    <th>鍏徃鍚嶇О
+                    </th>
+                    <th>浜у搧鍚嶇О
                     </th>
                     <%--<th>濂楅ID
                     </th>
                          --%>
-                    <th>璁㈠崟鍩烘湰鏉℃暟
+                    <th>璁㈠崟鍩烘湰鏉℃暟锛堟潯锛�
                     </th>
-                    <th>璁㈠崟璧犻�佹潯鏁�
+                    <th>璁㈠崟璧犻�佹潯鏁帮紙鏉★級
                     </th>
                     <th>鍗曚环锛堝厓/鏉★級
                     </th>
-                    <th>璁㈠崟鎬绘潯鏁�
+                    <th>璁㈠崟鎬绘潯鏁帮紙鏉★級
                     </th>
                     <th>璁㈠崟鎬婚噾棰濓紙鍏冿級
                     </th>
@@ -261,13 +306,15 @@
                     </th>
                     <th>鍏呭�煎墠璐﹀彿浣欓锛堟潯锛�
                     </th>
+                    <th>瀹℃牳浜�(澶氱骇鎸夆��,鈥濆垎闅�)
+                    </th>
                     <th>鍒涘缓浜�
                     </th>
                     <th>鍒涘缓鏃堕棿
                     </th>
                     <th>鐘舵��
                     </th>
-                    <th class="text-right">鎿嶄綔
+                    <th class="text-center">鎿嶄綔
                     </th>
                 </tr>
             </thead>
@@ -301,27 +348,41 @@
                         </div>
                         <div class="form-group">
                             <label class="col-sm-2 control-label">
-                                璐﹀彿ID</label>
+                                鐭俊璐﹀彿</label>
                             <div class="col-sm-4 ">
                                 <input type="text" class="form-control" name="spId" id="spId" value="" />
                             </div>
                         </div>
                         <div class="form-group">
                             <label class="col-sm-2 control-label">
-                                瀹㈡埛ID</label>
+                                瀹㈡埛璐﹀彿</label>
                             <div class="col-sm-4 ">
+                                <!--
                                 <select name="clientId" id="clientId" class="form-control">
-                                    <%=GetClientOptions("0")%>
+                                    <!%=GetClientOptions("0")%>
                                 </select>
+                                -->
+                                <input type="text" class="form-control" name="clientId" id="clientId" value="" readonly="readonly" />
                             </div>
                         </div>
                         <div class="form-group">
                             <label class="col-sm-2 control-label">
-                                浜у搧ID</label>
+                                鍏徃鍚嶇О</label>
                             <div class="col-sm-4 ">
+                                <input type="text" class="form-control" name="clientCompany" id="clientCompany" value="" readonly="readonly" />
+                            </div>
+                        </div>
+                        <div class="form-group">
+                            <label class="col-sm-2 control-label">
+                                浜у搧鍚嶇О</label>
+                            <div class="col-sm-4 ">
+                                <!--
                                 <select name="productId" id="productId" class="form-control">
-                                    <%=GetProductOptions("0")%>
+                                    <!%=GetProductOptions("0")%>
                                 </select>
+                                -->
+                                <input type="text" class="form-control" name="productName" id="productName" value="" readonly="readonly" />
+                                <input type="hidden" class="form-control" name="productId" id="productId" value="" />
                             </div>
                         </div>
                         <%--
@@ -334,7 +395,7 @@
                         </div>
                              --%>
                         <div class="form-group">
-                            <label class="col-sm-2 control-label">
+                            <label class="col-sm-2 control-label auditInfo-color">
                                 璁㈠崟鍩烘湰鏉℃暟</label>
                             <div class="col-sm-4">
                                 <div class="input-group">
@@ -345,7 +406,7 @@
                             </div>
                         </div>
                         <div class="form-group">
-                            <label class="col-sm-2 control-label">
+                            <label class="col-sm-2 control-label auditInfo-color">
                                 璁㈠崟璧犻�佹潯鏁�</label>
                             <div class="col-sm-4">
                                 <div class="input-group">
@@ -389,7 +450,7 @@
                             </div>
                         </div>
                         <div class="form-group">
-                            <label class="col-sm-2 control-label">
+                            <label class="col-sm-2 control-label auditInfo-color">
                                 鍏呭�奸噾棰�</label>
                             <div class="col-sm-4">
                                 <div class="input-group">
@@ -428,6 +489,7 @@
                             <label class="col-sm-2 control-label">
                                 鐘舵��</label>
                             <div class="col-sm-4 ">
+                                <!--
                                 <select name="status" id="status" class="form-control">
                                     <option value=""></option>
                                     <option value="0">寰呭鏍�</option>
@@ -436,6 +498,9 @@
                                     <option value="3">瀹℃牳涓嶉�氳繃</option>
                                     <option value="4">鍙栨秷</option>
                                 </select>
+                                -->
+                                <input type="text" class="form-control" name="statusName" id="statusName" value="" />
+                                <input type="hidden" class="form-control" name="status" id="status" value="" />
                             </div>
                         </div>
                         <div class="form-group">
@@ -446,7 +511,7 @@
                             </div>
                         </div>
                         <div class="form-group" id="auditInfo-1">
-                            <label class="col-sm-2 control-label">
+                            <label class="col-sm-2 control-label auditInfo-color">
                                 涓嶉�氳繃鍘熷洜</label>
                             <div class="col-sm-10 input-group m-b">
                                 <input type="text" class="form-control" name="auditReason" id="auditReason" value="" />

--
Gitblit v1.9.1