From 6e2b929cf381e2320ba6e7dec56c0371124d2b51 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期六, 27 八月 2022 15:03:00 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/zhengcaioa/Views/AdmAsk/CustomerWithdrawal.cshtml |  142 +++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 135 insertions(+), 7 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/AdmAsk/CustomerWithdrawal.cshtml b/zhengcaioa/zhengcaioa/Views/AdmAsk/CustomerWithdrawal.cshtml
index 9729509..6473db7 100644
--- a/zhengcaioa/zhengcaioa/Views/AdmAsk/CustomerWithdrawal.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/AdmAsk/CustomerWithdrawal.cshtml
@@ -11,8 +11,11 @@
 
     List<WfHistoryDTO> lishiyijian = ViewData["lishiyijian"] as List<WfHistoryDTO>; //瀹℃壒杩涘害
 
+    List<FiSubjectDTO> FiSubject = ViewData["FiSubject"] as List<FiSubjectDTO>; //绉戠洰
 
- 
+
+    List<SysCodeDtl> accounttype = ViewData["accounttype"] as List<SysCodeDtl>; //璐︽埛绫诲瀷
+
 }
 
 <!DOCTYPE html>
@@ -90,13 +93,13 @@
                                 <div class="clearfix layer-area" style="padding-bottom:15px;">
                                     <label class="text-right col-sm-1 col-md-1 control-label">浼氬憳鍚嶇О<i class="red">*</i></label>
                                     <div class="col-sm-6 col-md-6">
-                                        <input type="text" class="form-control" value="@Model.HuiyuanName" name="HuiyuanName" id="HuiyuanName" maxlength="500">
+                                        <input type="text" class="form-control" value="@Model.HuiyuanName" name="HuiyuanName" id="HuiyuanName" maxlength="100">
                                     </div>
                                 </div>
                                 <div class="clearfix layer-area" style="padding-bottom:15px;">
                                     <label class="text-right col-sm-1 col-md-1 control-label">浼氬憳鐢佃瘽</label>
                                     <div class="col-sm-2 col-md-2">
-                                        <input type="text" class="form-control" value="@Model.HuiyuanPhone" name="HuiyuanPhone" id="HuiyuanPhone" maxlength="500">
+                                        <input type="text" class="form-control" value="@Model.HuiyuanPhone" name="HuiyuanPhone" id="HuiyuanPhone" maxlength="50">
                                         <input type="hidden" id="HuiyuanId" name="HuiyuanId" value="@Model.HuiyuanId" />
                                         <input type="hidden" id="OrderNo" name="OrderNo" value="@Model.OrderNo" />
                                     </div>
@@ -108,7 +111,78 @@
                                         <input class="form-control" id="Jine" name="Jine" type="text" value="@Model.JineName" oninput="if(value.length>10)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
                                     </div>
                                 </div>
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                    <label class="text-right col-sm-1 col-md-1 control-label">閾惰璐︽埛</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input type="text" class="form-control" value="@Model.BankAcount" name="BankAcount" id="BankAcount" maxlength="50">
+                                    </div>
+                                </div>
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                    <label class="text-right col-sm-1 col-md-1 control-label">閾惰鍚嶇О</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input type="text" class="form-control" value="@Model.BankName" name="BankName" id="BankName" maxlength="50">
+                                    </div>
+                                </div>
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                    <label class="text-right col-sm-1 col-md-1 control-label">鏀舵浜哄鍚�</label>
+                                    <div class="col-sm-2 col-md-2">
+                                        <input type="text" class="form-control" value="@Model.Username" name="Username" id="Username" maxlength="50">
+                                    </div>
+                                </div>
 
+                                @if (dangqianbuzhou == "璐㈠姟瀹℃壒")
+                                {
+                                    <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                        <label class="text-right col-sm-1 col-md-1 control-label">璐︽埛绫诲瀷 </label>
+                                        <div class="col-sm-2 col-md-2">
+                                            <select id="Accounttype" class="form-control" name="Accounttype" data-placeholder="閫夋嫨 搴忓垪 ..." style="font-weight:normal;">
+                                                @foreach (var item in accounttype)
+                                                {
+                                                    
+                                                        <option value="@item.CodeSn" hassubinfo="true" >
+                                                            @item.Comments
+                                                        </option>
+                                                   
+                                                }
+
+                                            </select>
+                                           
+                                        </div>
+                                    </div>
+                                    <div class="clearfix layer-area" style="padding-bottom:15px;">
+
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">璐︽埛鍚嶇О<i class="red">*</i></label>
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <select id="AccountId" class="form-control" name="AccountId" data-placeholder="閫夋嫨 搴忓垪 ...">
+                                                <option value="" hassubinfo="true">璇烽�夋嫨</option>
+
+
+                                            </select>
+
+                                        </div>
+                                    </div>
+                                    <div class="clearfix layer-area" style="padding-bottom:15px;">
+
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">绉戠洰鍚嶇О<i class="red">*</i></label>
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <select id="SubjectId" class="form-control" name="SubjectId" data-placeholder="閫夋嫨 搴忓垪 ...">
+                                                <option value="" hassubinfo="true">璇烽�夋嫨</option>
+                                                @foreach (var item in FiSubject)
+                                                {
+                                                     
+                                                        <option value="@item.Id" hassubinfo="true" >
+                                                            @item.Subjectname
+                                                        </option>
+                                                    
+                                               
+                                                }
+
+                                            </select>
+
+                                        </div>
+
+                                    </div>
+                                }
 
 
                                 <div class="clearfix layer-area" style="padding-bottom:15px;" id="shenpiyijian">
@@ -145,6 +219,8 @@
                                         </table>
                                     </div>
                                 </div>
+
+
                                 <div class="clearfix layer-area" style="padding-bottom:60px;">
 
                                 </div>
@@ -229,6 +305,10 @@
                      $('#shenpiyijian').hide();
                  }
 
+                 $("#Accounttype").attr('disabled', false);
+                 $("#AccountId").attr('disabled', false);
+                 $("#SubjectId").attr('disabled', false);
+
             } else {
 
 
@@ -237,7 +317,7 @@
                  if ("@sifoudangqian" == "A") {
                      $('#tongyi').hide();
                      $('#jujue').hide();
-                    
+
 
                      $(".ldate").each(function (el) {
                          laydate({
@@ -253,7 +333,7 @@
                                  // console.log("234234234234324");
                                  // end.min = datas; //寮�濮嬫棩閫夊ソ鍚庯紝閲嶇疆缁撴潫鏃ョ殑鏈�灏忔棩鏈�
                                  // end.start = datas //灏嗙粨鏉熸棩鐨勫垵濮嬪�艰瀹氫负寮�濮嬫棩
-                                 checktime();
+                                 //checktime();
                              }
                          });
 
@@ -282,13 +362,28 @@
                 toastr.warning("浼氬憳鍚嶇О涓嶈兘涓虹┖");
                 return;
             }
-             
+
             if ($.trim($("#Jine").val()) == '') {
                 toastr.warning("鎻愮幇閲戦涓嶈兘涓虹┖");
                 return;
             }
 
-            
+            if ("@Html.Raw(dangqianbuzhou)" == "璐㈠姟瀹℃壒") {
+                if ($.trim($("#Accounttype").val()) == '') {
+                    toastr.warning("璐︽埛绫诲瀷涓嶈兘涓虹┖");
+                    return;
+                }
+                if ($.trim($("#AccountId").val()) == '') {
+                    toastr.warning("璐︽埛鍚嶇О涓嶈兘涓虹┖");
+                    return;
+                }
+                if ($.trim($("#SubjectId").val()) == '') {
+                    toastr.warning("绉戠洰鍚嶇О涓嶈兘涓虹┖");
+                    return;
+                }
+            }
+
+
 
             $("#Tongguojujue").val(tongyi);
 
@@ -339,6 +434,39 @@
             }
 
         }
+
+        $("#Accounttype").change(function () {
+
+            var Accounttype = $("#Accounttype").val();
+            $.ajax({
+                type: "GET",
+                url: "/FiAccountIncome/getAccount?Accounttype=" + Accounttype,
+                dataType: "json",
+                global: false,
+                data: "",
+                success: function (data) {
+
+                    var city = $("#AccountId");
+                    city.find('option').remove();
+                    var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>';
+                    city.append(aaa);
+                    if (data.length > 0) {
+                        for (var i = 0; i < data.length; i++) {
+
+                            var o = '<option value="' + data[i].Id + '" hassubinfo="true">' + data[i].Accountname + '</option>';
+                            city.append(o);
+                        }
+                    }
+                },
+                error: function () {
+
+
+                    parent.layer.msg('澶辫触', { icon: 5 });
+                }
+            });
+        });
+
+        $("#Accounttype").trigger("change");
     </script>
 </body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1