From c60a7d7b29faba465969555e2a9c69acb8510f90 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 25 二月 2022 09:11:41 +0800
Subject: [PATCH] 如果客户资料中有“*”的内容,生产文书时自动填上,质疑单位默认填写客户名称,可修改

---
 zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml | 1230 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 1,157 insertions(+), 73 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
index fcb893f..f2b483f 100644
--- a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
@@ -12,9 +12,37 @@
 
     string ShouliStatus = ViewData["ShouliStatus"] as string; //鍙楃悊鍚庝笉鍏佽缂栬緫
 
+    //List<SysCodeDtl> YouHuiList = ViewData["YouHuiList"] as List<SysCodeDtl>; //浼樻儬鍒楄〃
+
+    TChallengeletterDTO challengeletterDTO = ViewData["challengeletterDTO"] as TChallengeletterDTO; //璐ㄧ枒鍑�
+
+    List<TChallengeItemDTO> challengeItemDTOs = challengeletterDTO.challengeItemDTOs;
+
+    List<TComplaintShouquandaibiaoDTO> challengecomplaintShouquandaibiaoDTOs = challengeletterDTO.complaintShouquandaibiaoDTOs;
+
+    TComplaintletterDTO complaintletterDTO = ViewData["complaintletterDTO"] as TComplaintletterDTO; //鎶曡瘔涔�
+
+    List<TComplaintItemDTO> complaintItemDTOs = complaintletterDTO.complaintItemDTOs;
+
+    List<TComplaintRespondentDTO> complaintRespondentDTOs = complaintletterDTO.complaintRespondentDTOs;
+
+    List<TComplaintShouquandaibiaoDTO> complaintShouquandaibiaoDTOs = complaintletterDTO.complaintShouquandaibiaoDTOs;
+
+    List<TComplaintGongyingshangDTO> complaintGongyingshangDTOs = complaintletterDTO.complaintGongyingshangDTOs;
+
+    List<SysCodeDtl> request_info = ViewData["request_info"] as List<SysCodeDtl>; //璐ㄧ枒璇锋眰
+
+    List<SysCodeDtl> question = ViewData["question"] as List<SysCodeDtl>; //璐ㄧ枒浜嬮」
+
+    List<SysCodeDtl> law = ViewData["law"] as List<SysCodeDtl>; //娉曞緥渚濇嵁
+
+    List<SysCodeDtl> shifou = ViewData["shifou"] as List<SysCodeDtl>; //鏄惁
+
+    List<TChallengeletterDTO> ChallengeletterChosen = ViewData["ChallengeletterChosen"] as List<TChallengeletterDTO>;
+
 }
 @{
-            Layout = null;
+    Layout = null;
 }
 
 <!DOCTYPE html>
@@ -103,7 +131,7 @@
                             <div class="row">
                                 <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">
@@ -117,17 +145,17 @@
                                             <option value="" hassubinfo="true">璇烽�夋嫨</option>
                                             @foreach (var item in customer)
                                             {
-                                                @if (!item.Id.Equals(Model.Khdw))
+                                            @if (!item.Id.Equals(Model.Khdw))
                                                 {
-                                                    <option value="@item.Id" hassubinfo="true">
-                                                        @item.Name
-                                                    </option>
+                                            <option value="@item.Id" hassubinfo="true">
+                                                @item.Name
+                                            </option>
                                                 }
                                                 else
                                                 {
-                                                    <option value="@item.Id" hassubinfo="true" selected="selected">
-                                                        @item.Name
-                                                    </option>
+                                            <option value="@item.Id" hassubinfo="true" selected="selected">
+                                                @item.Name
+                                            </option>
                                                 }
 
                                             }
@@ -148,17 +176,17 @@
                                             <option value="" hassubinfo="true">璇烽�夋嫨</option>
                                             @foreach (var item in OrderType)
                                             {
-                                                @if (!item.CodeSn.Equals(Model.OrderType))
+                                            @if (!item.CodeSn.Equals(Model.OrderType))
                                                 {
-                                                    <option value="@item.CodeSn" hassubinfo="true">
-                                                        @item.Comments
-                                                    </option>
+                                            <option value="@item.CodeSn" hassubinfo="true">
+                                                @item.Comments
+                                            </option>
                                                 }
                                                 else
                                                 {
-                                                    <option value="@item.CodeSn" hassubinfo="true" selected="selected">
-                                                        @item.Comments
-                                                    </option>
+                                            <option value="@item.CodeSn" hassubinfo="true" selected="selected">
+                                                @item.Comments
+                                            </option>
                                                 }
 
                                             }
@@ -179,8 +207,8 @@
 
                                     </div>
 
-                                    <label class="text-right col-sm-1 col-md-1 control-label">璁㈠崟绫诲瀷2</label>
-                                    <div class="col-sm-2 col-md-2">
+                                    <label class="text-right col-sm-1 col-md-1 control-label" id="dingdanleixing2">璁㈠崟绫诲瀷2</label>
+                                    <div class="col-sm-2 col-md-2" id="dingdanleixing3">
                                         <select id="OrderType2" class="form-control" name="OrderType2" data-placeholder="閫夋嫨 搴忓垪 ...">
                                             <option value="" hassubinfo="true">璇烽�夋嫨</option>
                                         </select>
@@ -189,30 +217,30 @@
                                     </div>
 
                                     @*<label class="text-right col-sm-1 col-md-1 control-label">椤圭洰<i class="red">*</i></label>
-        <div class="col-sm-2 col-md-2">
-            <select id="OrderPro" class="form-control" name="OrderPro" data-placeholder="閫夋嫨 搴忓垪 ...">
-                <option value="" hassubinfo="true">璇烽�夋嫨</option>
-                @foreach (var item in project)
-                {
-                    @if (!item.Id.Equals(Model.OrderPro))
+            <div class="col-sm-2 col-md-2">
+                <select id="OrderPro" class="form-control" name="OrderPro" data-placeholder="閫夋嫨 搴忓垪 ...">
+                    <option value="" hassubinfo="true">璇烽�夋嫨</option>
+                    @foreach (var item in project)
                     {
-                        <option value="@item.Id" hassubinfo="true">
-                            @item.Name
-                        </option>
+                        @if (!item.Id.Equals(Model.OrderPro))
+                        {
+                            <option value="@item.Id" hassubinfo="true">
+                                @item.Name
+                            </option>
+                        }
+                        else
+                        {
+                            <option value="@item.Id" hassubinfo="true" selected="selected">
+                                @item.Name
+                            </option>
+                        }
+
                     }
-                    else
-                    {
-                        <option value="@item.Id" hassubinfo="true" selected="selected">
-                            @item.Name
-                        </option>
                     }
 
-                }
-                }
+                </select>
 
-            </select>
-
-        </div>*@
+            </div>*@
 
 
 
@@ -226,50 +254,629 @@
 
                                     <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">
-                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="OrderNum" id="OrderNum" labtype="txt" addvisible="true"    editvisible="true" reg="" ismust="true" type="number" value="@Model.OrderNum" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')" >
+                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="OrderNum" id="OrderNum" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.OrderNum" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')">
 
                                     </div>
 
                                     <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">
-                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="Price" id="Price" labtype="txt" addvisible="true"  editvisible="true" reg="" ismust="true" type="number" value="@Model.Price" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
+                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="Price" id="Price" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Price"  oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
 
                                     </div>
 
                                     <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">
-                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="Money" id="Money" labtype="txt" addvisible="true"   editvisible="true" reg="" ismust="true" type="number" value="@Model.Money" oninput="if(value.length>8)value=value.slice(0,18)" readonly="readonly">
+                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="Money" id="Money" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Money" oninput="if(value.length>8)value=value.slice(0,18)" readonly="readonly">
 
                                     </div>
 
 
                                 </div>
-
-                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                <div id="putong">
+                                    <div class="clearfix layer-area" style="padding-bottom:15px;">
 
 
 
 
-                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鏀惰揣浜�</label>
-                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
-                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="Shr" id="Shr" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Shr">
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鏀惰揣浜�</label>
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <input class="form-control" label="鏀惰揣浜�" name="Shr" id="Shr" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Shr">
+
+                                        </div>
+
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鏀惰揣鍦板潃</label>
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <input class="form-control" label="鏀惰揣鍦板潃" name="ShrAddress" id="ShrAddress" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.ShrAddress">
+
+                                        </div>
+
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽</label>
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <input class="form-control" label="鑱旂郴鐢佃瘽" name="ShrTel" id="ShrTel" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.ShrTel">
+
+                                        </div>
+
 
                                     </div>
-
-                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鏀惰揣鍦板潃</label>
-                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
-                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="ShrAddress" id="ShrAddress" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.ShrAddress">
-
-                                    </div>
-
-                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽</label>
-                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
-                                        <input class="form-control" label="瀹㈡埛鍚嶇О" name="ShrTel" id="ShrTel" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.ShrTel">
-
-                                    </div>
-
 
                                 </div>
+
+                                <div id="zhiyi">
+                                    <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">
+                                            <input class="form-control" label="璐ㄧ枒渚涘簲鍟�" name="GysName" id="GysName" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@challengeletterDTO.GysName">
+
+                                        </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">
+                                            <input class="form-control" label="鍦板潃" name="GysAddress" id="GysAddress" labtype="txt" addvisible="true" maxlength="100" editvisible="true" reg="" ismust="true" type="text" value="@challengeletterDTO.GysAddress">
+
+                                        </div>
+
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">閭紪</label>
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <input class="form-control" label="閭紪" name="GysPostcode" id="GysPostcode" labtype="txt" addvisible="true" maxlength="10" editvisible="true" reg="" ismust="true" type="text" value="@challengeletterDTO.GysPostcode">
+
+                                        </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">
+                                            <input class="form-control" label="鑱旂郴浜�" name="GysContacts" id="GysContacts" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@challengeletterDTO.GysContacts">
+
+                                        </div>
+
+                                        <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">
+                                            <input class="form-control" label="鑱旂郴鐢佃瘽" name="GysPhone" id="GysPhone" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@challengeletterDTO.GysPhone">
+
+                                        </div>
+
+
+                                    </div>
+                                    <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <button type="button" class="addBtn" onclick="addzhiyishouquan(this)" data-type="1">鎺堟潈浠h〃</button>
+                                        </div>
+                                    </div>
+                                    <div id="zhiyishouquan">
+                                        @for (int i = 0; i < challengecomplaintShouquandaibiaoDTOs.Count; i++)
+                                        {
+                                            <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鎺堟潈浠h〃</label>
+                                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                    <input class="form-control" label="鎺堟潈浠h〃" id="zhiyiShouquandaibiao" name="zhiyiShouquandaibiao" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Shouquandaibiao">
+
+                                                </div>
+
+                                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽</label>
+                                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                    <input class="form-control" label="鑱旂郴鐢佃瘽" id="zhiyiLianxidianhua" name="zhiyiLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Lianxidianhua">
+
+                                                </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">鍦板潃</label>
+                                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                    <input class="form-control" label="鍦板潃" id="zhiyiDizhi" name="zhiyiDizhi" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Dizhi">
+
+                                                </div>
+
+                                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">閭紪</label>
+                                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                    <input class="form-control" label="閭紪" id="zhiyiYoubian" name="zhiyiYoubian" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Youbian">
+
+                                                </div>
+
+
+                                            </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">
+                                            <input class="form-control" label="椤圭洰鍚嶇О" name="zhiyiXmName" id="zhiyiXmName" labtype="txt" addvisible="true" maxlength="100" editvisible="true" reg="" ismust="true" type="text" value="@challengeletterDTO.XmName">
+
+                                        </div>
+
+                                        <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">
+                                            <input class="form-control" label="椤圭洰缂栧彿" name="zhiyiXmCode" id="zhiyiXmCode" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@challengeletterDTO.XmCode">
+
+                                        </div>
+
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍖呭彿</label>
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <input class="form-control" label="鍖呭彿" name="zhiyiXmPackage" id="zhiyiXmPackage" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@challengeletterDTO.XmPackage">
+
+                                        </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">
+                                            <input class="form-control" label="閲囪喘浜哄悕绉�" name="zhiyiPurchaserName" id="zhiyiPurchaserName" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@challengeletterDTO.PurchaserName">
+
+                                        </div>
+
+                                        <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">
+                                            <input class="form-control" label="閲囪喘鏂囦欢鑾峰彇鏃ユ湡" name="zhiyiDocumentsDate" id="zhiyiDocumentsDate" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@challengeletterDTO.DocumentsDateName" readonly="readonly">
+
+                                        </div>
+
+
+
+                                    </div>
+
+                                </div>
+
+
+                                <div id="tousu">
+                                    <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">
+                                            <input class="form-control" label="鎶曡瘔浜�" name="TsrName" id="TsrName" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.TsrName">
+
+                                        </div>
+
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">璐ㄧ枒鍑�</label>
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <select id="TsrId" class="form-control" name="TsrId" data-placeholder="閫夋嫨 搴忓垪 ..." onchange="TsrIdchangge();">
+                                                <option value="" hassubinfo="true">璇烽�夋嫨</option>
+                                                @foreach (var item in ChallengeletterChosen)
+                                                {
+                                                    @if (!item.Id.Equals(complaintletterDTO.TsrId))
+                                                    {
+                                                        <option value="@item.Id" hassubinfo="true">
+                                                            @item.OrderId
+                                                        </option>
+                                                    }
+                                                    else
+                                                    {
+                                                        <option value="@item.Id" hassubinfo="true" selected="selected">
+                                                            @item.OrderId
+                                                        </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">
+                                            <input class="form-control" label="鍦板潃" name="TsrAddress" id="TsrAddress" labtype="txt" addvisible="true" maxlength="100" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.TsrAddress">
+
+                                        </div>
+
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">閭紪</label>
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <input class="form-control" label="閭紪" name="TsrPostcode" id="TsrPostcode" labtype="txt" addvisible="true" maxlength="10" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.TsrPostcode">
+
+                                        </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">娉曞畾浠h〃浜�<i class="red">*</i></label>
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <input class="form-control" label="娉曞畾浠h〃浜�" name="TsrCorporation" id="TsrCorporation" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.TsrCorporation">
+
+                                        </div>
+
+                                        <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">
+                                            <input class="form-control" label="鑱旂郴鐢佃瘽" name="TsrPhone" id="TsrPhone" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.TsrPhone">
+
+                                        </div>
+
+
+                                    </div>
+                                    <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <button type="button" class="addBtn" onclick="addtousushouquan(this)" data-type="1">鎺堟潈浠h〃</button>
+                                        </div>
+                                    </div>
+                                    <div id="tousushouquan">
+                                        @for (int i = 0; i < complaintShouquandaibiaoDTOs.Count; i++)
+                                        {
+                                            <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鎺堟潈浠h〃</label>
+                                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                    <input class="form-control" label="鎺堟潈浠h〃" id="tousuShouquandaibiao" name="tousuShouquandaibiao" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@complaintShouquandaibiaoDTOs[i].Shouquandaibiao">
+
+                                                </div>
+
+                                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽</label>
+                                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                    <input class="form-control" label="鑱旂郴鐢佃瘽" id="tousuLianxidianhua" name="tousuLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@complaintShouquandaibiaoDTOs[i].Lianxidianhua">
+
+                                                </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">鍦板潃</label>
+                                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                    <input class="form-control" label="鍦板潃" id="tousuDizhi" name="tousuDizhi" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@complaintShouquandaibiaoDTOs[i].Dizhi">
+
+                                                </div>
+
+                                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">閭紪</label>
+                                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                    <input class="form-control" label="閭紪" id="tousuYoubian" name="tousuYoubian" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@complaintShouquandaibiaoDTOs[i].Youbian">
+
+                                                </div>
+
+
+                                            </div>
+                                        }
+                                    </div>
+
+
+                                    <div id="beitousuren">
+                                        @for (int i = 0; i < complaintRespondentDTOs.Count; i++)
+                                        {
+                                            @if (complaintRespondentDTOs.Count==1)
+                                            {
+                                                <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">
+                                                        <input class="form-control" label="琚姇璇変汉" name="tousuRespondent" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@complaintRespondentDTOs[i].Respondent">
+
+                                                    </div>
+
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <button type="button" class="addBtn" onclick="addbeitousuren(this)" data-type="1">琚姇璇変汉</button>
+                                                    </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">
+                                                        <input class="form-control" label="鍦板潃" name="tousuAddress" labtype="txt" addvisible="true" maxlength="100" editvisible="true" reg="" ismust="true" type="text" value="@complaintRespondentDTOs[i].Address">
+
+                                                    </div>
+
+                                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">閭紪</label>
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <input class="form-control" label="閭紪" name="tousuPostcode" labtype="txt" addvisible="true" maxlength="10" editvisible="true" reg="" ismust="true" type="text" value="@complaintRespondentDTOs[i].Postcode">
+
+                                                    </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">
+                                                        <input class="form-control" label="鑱旂郴浜�" name="tousuContacts" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@complaintRespondentDTOs[i].Contacts">
+
+                                                    </div>
+
+                                                    <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">
+                                                        <input class="form-control" label="鑱旂郴鐢佃瘽" name="tousuPhone" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@complaintRespondentDTOs[i].Phone">
+
+                                                    </div>
+
+
+                                                </div>
+                                            }
+                                            else
+                                            {
+
+                                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">琚姇璇変汉@(i+1)</label>
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <input class="form-control" label="琚姇璇変汉@(i+1)" name="tousuRespondent" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@complaintRespondentDTOs[i].Respondent">
+
+                                                    </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+1)</label>
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <input class="form-control" label="鍦板潃@(i+1)" name="tousuAddress" labtype="txt" addvisible="true" maxlength="100" editvisible="true" reg="" ismust="true" type="text" value="@complaintRespondentDTOs[i].Address">
+
+                                                    </div>
+
+                                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">閭紪@(i+1)</label>
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <input class="form-control" label="閭紪@(i+1)" name="tousuPostcode" labtype="txt" addvisible="true" maxlength="10" editvisible="true" reg="" ismust="true" type="text" value="@complaintRespondentDTOs[i].Postcode">
+
+                                                    </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+1)</label>
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <input class="form-control" label="鑱旂郴浜篅(i+1)" name="tousuContacts" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@complaintRespondentDTOs[i].Contacts">
+
+                                                    </div>
+
+                                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽@(i+1)</label>
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <input class="form-control" label="鑱旂郴鐢佃瘽@(i+1)" name="tousuPhone" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@complaintRespondentDTOs[i].Phone">
+
+                                                    </div>
+
+
+                                                </div>
+                                            }
+
+                                        }
+                                    </div>
+
+
+                                    <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <button type="button" class="addBtn" onclick="addxiangguangongyingshang(this)" data-type="1">鐩稿叧渚涘簲鍟�</button>
+                                        </div>
+                                    </div>
+
+
+                                    <div id="xiangguangongyingshang">
+                                        @for (int i = 0; i < complaintGongyingshangDTOs.Count; i++)
+                                        {
+                                            @if (complaintGongyingshangDTOs.Count == 1)
+                                            {
+                                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鐩稿叧渚涘簲鍟�</label>
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <input class="form-control" label="鐩稿叧渚涘簲鍟�" name="Gongytingshang" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@complaintGongyingshangDTOs[i].Gongytingshang">
+
+                                                    </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">鍦板潃</label>
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <input class="form-control" label="鍦板潃" name="gongyingshangDizhi" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@complaintGongyingshangDTOs[i].Dizhi">
+
+                                                    </div>
+
+                                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">閭紪</label>
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <input class="form-control" label="閭紪" name="gongyingshangYoubian" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@complaintGongyingshangDTOs[i].Youbian">
+
+                                                    </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">鑱旂郴浜�</label>
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <input class="form-control" label="鑱旂郴浜�" name="gongyingshangLianxiren" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@complaintGongyingshangDTOs[i].Lianxiren">
+
+                                                    </div>
+
+                                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽</label>
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <input class="form-control" label="鑱旂郴鐢佃瘽" name="gongyingshangLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@complaintGongyingshangDTOs[i].Lianxidianhua">
+
+                                                    </div>
+
+
+                                                </div>
+                                            }
+                                            else
+                                            {
+                                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鐩稿叧渚涘簲鍟咢(i+1)</label>
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <input class="form-control" label="鐩稿叧渚涘簲鍟咢(i+1)" name="Gongytingshang" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@complaintGongyingshangDTOs[i].Gongytingshang">
+
+                                                    </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+1)</label>
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <input class="form-control" label="鍦板潃@(i+1)" name="gongyingshangDizhi" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@complaintGongyingshangDTOs[i].Dizhi">
+
+                                                    </div>
+
+                                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">閭紪@(i+1)</label>
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <input class="form-control" label="閭紪@(i+1)" name="gongyingshangYoubian" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@complaintGongyingshangDTOs[i].Youbian">
+
+                                                    </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+1)</label>
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <input class="form-control" label="鑱旂郴浜篅(i+1)" name="gongyingshangLianxiren" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@complaintGongyingshangDTOs[i].Lianxiren">
+
+                                                    </div>
+
+                                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽@(i+1)</label>
+                                                    <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                        <input class="form-control" label="鑱旂郴鐢佃瘽@(i+1)" name="gongyingshangLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@complaintGongyingshangDTOs[i].Lianxidianhua">
+
+                                                    </div>
+
+
+                                                </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">
+                                            <input class="form-control" label="椤圭洰鍚嶇О" name="tousuXmName" id="tousuXmName" labtype="txt" addvisible="true" maxlength="100" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.XmName">
+
+                                        </div>
+
+                                        <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">
+                                            <input class="form-control" label="椤圭洰缂栧彿" name="tousuXmCode" id="tousuXmCode" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.XmCode">
+
+                                        </div>
+
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍖呭彿</label>
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <input class="form-control" label="鍖呭彿" name="tousuXmPackage" id="tousuXmPackage" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.XmPackage">
+
+                                        </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">
+                                            <input class="form-control" label="閲囪喘浜哄悕绉�" name="tousuPurchaserName" id="tousuPurchaserName" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.PurchaserName">
+
+                                        </div>
+
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">浠g悊鏈烘瀯鍚嶇О<i class="red">*</i></label>
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <input class="form-control" label="浠g悊鏈烘瀯鍚嶇О" name="tousuAgency" id="tousuAgency" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.Agency">
+
+                                        </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="tousuIsNotice" class="form-control" name="tousuIsNotice" data-placeholder="閫夋嫨 搴忓垪 ...">
+                                                <option value="" hassubinfo="true">璇烽�夋嫨</option>
+                                                @foreach (var item in shifou)
+                                                {
+                                                    @if (!item.CodeSn.Equals(complaintletterDTO.IsNotice))
+                                                    {
+                                                        <option value="@item.CodeSn" hassubinfo="true">
+                                                            @item.Comments
+                                                        </option>
+                                                    }
+                                                    else
+                                                    {
+                                                        <option value="@item.CodeSn" hassubinfo="true" selected="selected">
+                                                            @item.Comments
+                                                        </option>
+                                                    }
+
+                                                }
+
+
+                                            </select>
+                                        </div>
+
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍏憡鏈熼檺</label>
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <input class="form-control" label="鍏憡鏈熼檺" name="tousuNoticeDate" id="tousuNoticeDate" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.NoticeDateName" readonly="readonly">
+
+                                        </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="tousuIsResultnotice" class="form-control" name="tousuIsResultnotice" data-placeholder="閫夋嫨 搴忓垪 ...">
+                                                <option value="" hassubinfo="true">璇烽�夋嫨</option>
+                                                @foreach (var item in shifou)
+                                                {
+                                                    @if (!item.CodeSn.Equals(complaintletterDTO.IsResultnotice))
+                                                    {
+                                                        <option value="@item.CodeSn" hassubinfo="true">
+                                                            @item.Comments
+                                                        </option>
+                                                    }
+                                                    else
+                                                    {
+                                                        <option value="@item.CodeSn" hassubinfo="true" selected="selected">
+                                                            @item.Comments
+                                                        </option>
+                                                    }
+
+                                                }
+
+
+                                            </select>
+                                        </div>
+
+                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍏憡鏈熼檺</label>
+                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                            <input class="form-control" label="鍏憡鏈熼檺" name="tousuResultnoticeDate" id="tousuResultnoticeDate" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@complaintletterDTO.ResultnoticeDateName" readonly="readonly">
+
+                                        </div>
+
+
+
+                                    </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">澶囨敞</label>
@@ -279,7 +886,15 @@
 
                                 </div>
 
+                                <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                    <div class="col-sm-1 col-md-1">
 
+                                    </div>
+                                    <div class="col-sm-8 col-md-8" style="color:red;">
+                                        绯荤粺鑷姩鏍规嵁8澶╁唴鐢宠鐨勪紭鎯犻」鐩绠椾紭鎯犻噾棰�
+                                    </div>
+
+                                </div>
 
 
                             </div>
@@ -303,7 +918,7 @@
 
     </form>
     <script type="text/javascript">
-        var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95;
+        var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 +600;
         $("#div_content").height(hh);
 
         toastr.options = {
@@ -321,8 +936,9 @@
             "showMethod": "fadeIn",
             "hideMethod": "fadeOut"
         };
-
-
+        laydate({ elem: "#zhiyiDocumentsDate", format: 'YYYY-MM-DD', istime: true, event: "focus" });
+        laydate({ elem: "#tousuResultnoticeDate", format: 'YYYY-MM-DD', istime: true, event: "focus" });
+        laydate({ elem: "#tousuNoticeDate", format: 'YYYY-MM-DD', istime: true, event: "focus" });
 
 
         $(document).ready(function () {
@@ -475,6 +1091,118 @@
             }
 
 
+            if ($("#OrderType1").val() == "浠f嫙鎶曡瘔涔�") {
+                if ($.trim($("#TsrName").val()) == '') {
+                    toastr.warning("鎶曡瘔浜轰笉鑳戒负绌�");
+                    return;
+                }
+                if ($.trim($("#TsrAddress").val()) == '') {
+                    toastr.warning("鎶曡瘔浜哄湴鍧�涓嶈兘涓虹┖");
+                    return;
+                }
+                //if ($.trim($("#TsrPostcode").val()) == '') {
+                //    toastr.warning("鎶曡瘔浜洪偖缂栦笉鑳戒负绌�");
+                //    return;
+                //}
+                if ($.trim($("#TsrCorporation").val()) == '') {
+                    toastr.warning("鎶曡瘔浜烘硶瀹氫唬琛ㄤ汉涓嶈兘涓虹┖");
+                    return;
+                }
+                if ($.trim($("#TsrPhone").val()) == '') {
+                    toastr.warning("鎶曡瘔浜鸿仈绯荤數璇濅笉鑳戒负绌�");
+                    return;
+                }
+
+
+                if ($.trim($("#tousuXmName").val()) == '') {
+                    toastr.warning("椤圭洰鍚嶇О涓嶈兘涓虹┖");
+                    return;
+                }
+                if ($.trim($("#tousuXmName").val()) == '') {
+                    toastr.warning("椤圭洰缂栧彿涓嶈兘涓虹┖");
+                    return;
+                }
+                if ($.trim($("#tousuPurchaserName").val()) == '') {
+                    toastr.warning("閲囪喘浜哄悕绉颁笉鑳戒负绌�");
+                    return;
+                }
+                if ($.trim($("#tousuAgency").val()) == '') {
+                    toastr.warning("浠g悊鏈烘瀯鍚嶇О涓嶈兘涓虹┖");
+                    return;
+                }
+                if ($.trim($("#tousuIsNotice").val()) == '') {
+                    toastr.warning("閲囪喘鏂囦欢鍏憡涓嶈兘涓虹┖");
+                    return;
+                }
+                if ($.trim($("#tousuIsResultnotice").val()) == '') {
+                    toastr.warning("閲囪喘缁撴灉鍏憡涓嶈兘涓虹┖");
+                    return;
+                }
+
+
+                if ($.trim(document.getElementsByName("tousuRespondent")[0].value) == '') {
+                    toastr.warning("琚姇璇変汉涓嶈兘涓虹┖");
+                    return;
+                }
+                if ($.trim(document.getElementsByName("tousuAddress")[0].value) == '') {
+                    toastr.warning("琚姇璇変汉鍦板潃涓嶈兘涓虹┖");
+                    return;
+                }
+                if ($.trim(document.getElementsByName("tousuContacts")[0].value) == '') {
+                    toastr.warning("琚姇璇変汉鑱旂郴浜轰笉鑳戒负绌�");
+                    return;
+                }
+                if ($.trim(document.getElementsByName("tousuPhone")[0].value) == '') {
+                    toastr.warning("琚姇璇変汉鑱旂郴鐢佃瘽涓嶈兘涓虹┖");
+                    return;
+                }
+
+                
+            } else if ($("#OrderType1").val() == "浠f嫙璐ㄧ枒鍑�") {
+                if ($.trim($("#GysName").val()) == '') {
+                    toastr.warning("璐ㄧ枒渚涘簲鍟嗕笉鑳戒负绌�");
+                    return;
+                }
+                if ($.trim($("#GysAddress").val()) == '') {
+                    toastr.warning("璐ㄧ枒渚涘簲鍟嗗湴鍧�涓嶈兘涓虹┖");
+                    return;
+                }
+                //if ($.trim($("#GysPostcode").val()) == '') {
+                //    toastr.warning("璐ㄧ枒渚涘簲鍟嗛偖缂栦笉鑳戒负绌�");
+                //    return;
+                //}
+                if ($.trim($("#GysContacts").val()) == '') {
+                    toastr.warning("璐ㄧ枒渚涘簲鍟嗚仈绯讳汉涓嶈兘涓虹┖");
+                    return;
+                }
+                if ($.trim($("#GysPhone").val()) == '') {
+                    toastr.warning("璐ㄧ枒渚涘簲鍟嗚仈绯荤數璇濅笉鑳戒负绌�");
+                    return;
+                }
+
+                if ($.trim($("#zhiyiXmName").val()) == '') {
+                    toastr.warning("椤圭洰鍚嶇О涓嶈兘涓虹┖");
+                    return;
+                }
+                if ($.trim($("#zhiyiXmCode").val()) == '') {
+                    toastr.warning("椤圭洰缂栧彿涓嶈兘涓虹┖");
+                    return;
+                }
+                if ($.trim($("#zhiyiPurchaserName").val()) == '') {
+                    toastr.warning("閲囪喘浜哄悕绉颁笉鑳戒负绌�");
+                    return;
+                }
+                if ($.trim($("#zhiyiDocumentsDate").val()) == '') {
+                    toastr.warning("閲囪喘鏂囦欢鑾峰彇鏃ユ湡涓嶈兘涓虹┖");
+                    return;
+                }
+                
+                
+                
+                
+            } 
+
+
 
 
             //var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" }
@@ -552,6 +1280,11 @@
 
         $("#OrderType").change(function () {
             var sheng = $("#OrderType").val();
+            if (sheng == '08' || sheng == '11' || sheng == '10') {
+                $('#Price').removeAttr("readonly");//鍘婚櫎input鍏冪礌鐨剅eadonly灞炴��
+            } else {
+                $('#Price').attr("readonly", "readonly")//灏唅nput鍏冪礌璁剧疆涓簉eadonly
+            }
             $.ajax({
                 type: "GET",
                 url: "/CooperOrder/getOrderType?OrderType=" + sheng,
@@ -564,9 +1297,9 @@
                     var city = $("#OrderType1");
                     city.find('option').remove();
                     $("#OrderType2").find('option').remove();
-                   
+
                         $("#Price").val("");
-                   
+
                     var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>';
                     city.append(aaa);
                     if (data.length > 0) {
@@ -591,6 +1324,9 @@
                     parent.layer.msg('澶辫触', { icon: 5 });
                 }
             });
+            $("#putong").show();
+            $("#zhiyi").hide();
+            $("#tousu").hide();
         });
 
 
@@ -607,11 +1343,11 @@
                 success: function (data) {
                     var city = $("#OrderType2");
                     city.find('option').remove();
-                   
-                        $("#Price").val("");
-                   
 
-                    if (OrderType != "02" || sheng == "鐢佃瘽鍜ㄨ" || sheng == "褰撻潰鍜ㄨ" || sheng == "浠f嫙璐ㄧ枒绛斿" || sheng == "浠f嫙鎶曡瘔澶勭悊鍐冲畾" || sheng == "绔炰簤瀵规墜鍜岃瘎瀹′笓瀹舵煡璇�" || sheng == "鏀块噰璐�") {
+                        $("#Price").val("");
+
+
+                    if (OrderType != "02" || sheng == "鐢佃瘽鍜ㄨ" || sheng == "褰撻潰鍜ㄨ" || sheng == "浠f嫙璐ㄧ枒绛斿" || sheng == "浠f嫙鎶曡瘔澶勭悊鍐冲畾" || sheng == "绔炰簤瀵规墜鍜岃瘎瀹′笓瀹跺弬鍔犳斂搴滈噰璐暟鎹俊鎭煡璇�" || sheng == "鏀块噰璐�") {
                         if (OrderType == "01") {
                             $("#Price").val(data.Danjia);
                         } else if (OrderType == "05") {
@@ -621,6 +1357,10 @@
                         }
 
                         $("#Price").trigger("change");
+
+
+                        $("#dingdanleixing2").hide();
+                        $("#dingdanleixing3").hide();
 
                     } else {
                         var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>';
@@ -638,10 +1378,23 @@
 
                             }
                         }
-
+                        $("#dingdanleixing2").show();
+                        $("#dingdanleixing3").show();
                     }
 
-
+                    if ($("#OrderType1").val() == "浠f嫙鎶曡瘔涔�") {
+                        $("#putong").hide();
+                        $("#zhiyi").hide();
+                        $("#tousu").show();
+                    } else if ($("#OrderType1").val() == "浠f嫙璐ㄧ枒鍑�") {
+                        $("#putong").hide();
+                        $("#zhiyi").show();
+                        $("#tousu").hide();
+                    } else {
+                        $("#putong").show();
+                        $("#zhiyi").hide();
+                        $("#tousu").hide();
+                    }
 
 
 
@@ -699,7 +1452,7 @@
                     var city = $("#OrderType1");
 
 
-                
+
                     var aaa = '';
                     city.append(aaa);
 
@@ -728,7 +1481,7 @@
             });
 
 
-            
+
 
             $.ajax({
                 type: "GET",
@@ -739,8 +1492,9 @@
                 data: "",
                 success: function (data) {
                     var city = $("#OrderType2");
-                    if (order_type != "02" || order_type1 == "鐢佃瘽鍜ㄨ" || order_type1 == "褰撻潰鍜ㄨ" || order_type1 == "浠f嫙璐ㄧ枒绛斿" || order_type1 == "浠f嫙鎶曡瘔澶勭悊鍐冲畾" || order_type1 == "绔炰簤瀵规墜鍜岃瘎瀹′笓瀹舵煡璇�" || order_type1 == "鏀块噰璐�") {
-
+                    if (order_type != "02" || order_type1 == "鐢佃瘽鍜ㄨ" || order_type1 == "褰撻潰鍜ㄨ" || order_type1 == "浠f嫙璐ㄧ枒绛斿" || order_type1 == "浠f嫙鎶曡瘔澶勭悊鍐冲畾" || order_type1 == "绔炰簤瀵规墜鍜岃瘎瀹′笓瀹跺弬鍔犳斂搴滈噰璐暟鎹俊鎭煡璇�" || order_type1 == "鏀块噰璐�") {
+                        $("#dingdanleixing2").hide();
+                        $("#dingdanleixing3").hide();
 
                     } else {
                         var aaa = '';
@@ -758,6 +1512,8 @@
 
                             }
                         }
+                        $("#dingdanleixing2").show();
+                        $("#dingdanleixing3").show();
 
                     }
 
@@ -777,6 +1533,91 @@
         }
 
 
+        
+
+        $(document).ready(function () {
+
+            if ($("#OrderType").val() == "02") {
+                if ($("#OrderType1").val() == "浠f嫙鎶曡瘔涔�") {
+                    $("#putong").hide();
+                    $("#zhiyi").hide();
+                    $("#tousu").show();
+                } else if ($("#OrderType1").val() == "浠f嫙璐ㄧ枒鍑�") {
+                    $("#putong").hide();
+                    $("#zhiyi").show();
+                    $("#tousu").hide();
+                } else {
+                    $("#putong").show();
+                    $("#zhiyi").hide();
+                    $("#tousu").hide();
+                }
+            } else {
+                $("#putong").show();
+                $("#zhiyi").hide();
+                $("#tousu").hide();
+            }
+
+            if ($("#zhiyiShouquandaibiao").val() != "") {
+                $("#zhiyishouquan").show();
+            } else {
+                $("#zhiyishouquan").hide();
+            }
+
+            if ($("#tousuShouquandaibiao").val() != "") {
+                $("#tousushouquan").show();
+            } else {
+                $("#tousushouquan").hide();
+            }
+           
+            var sheng = $("#OrderType").val();
+            if (sheng == '08' || sheng == '11' || sheng == '10') {
+                $('#Price').removeAttr("readonly");//鍘婚櫎input鍏冪礌鐨剅eadonly灞炴��
+            } else {
+                $('#Price').attr("readonly", "readonly")//灏唅nput鍏冪礌璁剧疆涓簉eadonly
+            }
+            
+            $("#TsrId").chosen();  
+
+        }); 
+
+
+        $("#Khdw").change(function () {
+            var Khdw = $("#Khdw").val();
+
+            $.ajax({
+                type: "GET",
+                url: "/CooperatecustomCustomer/GetCustomer?id=" + Khdw,
+                dataType: "json",
+                global: false,
+                data: "",
+                success: function (data) {
+                    
+                   
+                    $("#Shr").val(data.ShrName);
+                    $("#ShrAddress").val(data.ShrAddress);
+                    $("#ShrTel").val(data.ShrTel);
+
+                    $("#GysName").val(data.Name);  
+                    $("#GysAddress").val(data.Address);
+                    $("#GysContacts").val(data.FName);
+                    $("#GysPhone").val(data.FTel);
+                    $("#GysPostcode").val(data.Postal);
+                    $("#TsrName").val(data.Name);
+                    $("#TsrAddress").val(data.Address);
+                    $("#TsrPostcode").val(data.Postal);
+                    $("#TsrCorporation").val(data.FName);
+                    $("#TsrPhone").val(data.FTel);
+                   
+                },
+                error: function () {
+
+
+                    parent.layer.msg('澶辫触', { icon: 5 });
+                }
+            });
+        });
+
+
         function _pageAutoClose() {
             parent.window._reloadPageData();
             var index = parent.layer.getFrameIndex(window.name);
@@ -785,6 +1626,249 @@
             parent.layer.close(index);
             return false;
         }
+
+
+        function addzhiyishouquan(obj) {
+            $("#zhiyishouquan").show();
+            //var sss = document.getElementsByName("zhiyiShouquandaibiao").length;
+
+            //    $('#zhiyishouquan').append(` <div class="clearfix layer-area" style="padding-bottom:15px;">
+            //                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鎺堟潈浠h〃`+ sss +`</label>
+            //                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+            //                                    <input class="form-control" label="鎺堟潈浠h〃`+ sss +`" name="zhiyiShouquandaibiao" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="">
+
+            //                                </div>
+
+            //                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽`+ sss +`</label>
+            //                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+            //                                    <input class="form-control" label="鑱旂郴鐢佃瘽`+ sss +`" name="zhiyiLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="">
+
+            //                                </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">鍦板潃`+ sss +`</label>
+            //                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+            //                                    <input class="form-control" label="鍦板潃`+ sss +`" name="zhiyiDizhi" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value=" ">
+
+            //                                </div>
+
+            //                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">閭紪`+ sss +`</label>
+            //                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+            //                                    <input class="form-control" label="閭紪`+ sss +`" name="zhiyiYoubian" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value=" ">
+
+            //                                </div>
+
+
+            //                            </div>`);
+
+        }
+
+
+        function addtousushouquan(obj) {
+            $("#tousushouquan").show();   
+            //var sss = document.getElementsByName("tousuShouquandaibiao").length;
+
+            //$('#tousushouquan').append(` <div class="clearfix layer-area" style="padding-bottom:15px;">
+            //                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鎺堟潈浠h〃`+ sss + `</label>
+            //                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+            //                                    <input class="form-control" label="鎺堟潈浠h〃`+ sss + `" name="tousuShouquandaibiao" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="">
+
+            //                                </div>
+
+            //                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽`+ sss + `</label>
+            //                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+            //                                    <input class="form-control" label="鑱旂郴鐢佃瘽`+ sss + `" name="tousuLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="">
+
+            //                                </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">鍦板潃`+ sss + `</label>
+            //                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+            //                                    <input class="form-control" label="鍦板潃`+ sss + `" name="tousuDizhi" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value=" ">
+
+            //                                </div>
+
+            //                                <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">閭紪`+ sss + `</label>
+            //                                <div class="col-sm-2 col-md-2" grouptype="Vdata">
+            //                                    <input class="form-control" label="閭紪`+ sss + `" name="tousuYoubian" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value=" ">
+
+            //                                </div>
+
+
+            //                            </div>`);
+
+        }
+
+
+        function addbeitousuren(obj) {
+            var sss = document.getElementsByName("tousuRespondent").length + 1;
+            if (document.getElementsByName("tousuRespondent").length == 1) {
+                var ssss = $('#beitousuren').html();
+                ssss = ssss.replaceAll("琚姇璇変汉", "琚姇璇変汉1");
+                ssss = ssss.replaceAll("鍦板潃", "鍦板潃1");
+                ssss = ssss.replaceAll("閭紪", "閭紪1");
+                ssss = ssss.replaceAll("鑱旂郴浜�", "鑱旂郴浜�1");
+                ssss = ssss.replaceAll("鑱旂郴鐢佃瘽", "鑱旂郴鐢佃瘽1");
+                $('#beitousuren').html(ssss);
+            }
+
+            $('#beitousuren').append(` <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">琚姇璇変汉`+ sss + `</label>
+                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                <input class="form-control" label="琚姇璇変汉`+ sss + `" name="tousuRespondent" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="">
+
+                                            </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">鍦板潃`+ sss + `</label>
+                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                <input class="form-control" label="鍦板潃`+ sss + `" name="tousuAddress" labtype="txt" addvisible="true" maxlength="100" editvisible="true" reg="" ismust="true" type="text" value="">
+
+                                            </div>
+
+                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">閭紪`+ sss + `</label>
+                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                <input class="form-control" label="閭紪`+ sss + `" name="tousuPostcode" labtype="txt" addvisible="true" maxlength="10" editvisible="true" reg="" ismust="true" type="text" value="">
+
+                                            </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">鑱旂郴浜篳+ sss + `</label>
+                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                <input class="form-control" label="鑱旂郴浜篳+ sss + `" name="tousuContacts" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="">
+
+                                            </div>
+
+                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽`+ sss + `</label>
+                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                <input class="form-control" label="鑱旂郴鐢佃瘽`+ sss + `" name="tousuPhone" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="">
+
+                                            </div>
+
+
+                                        </div>`);
+
+        }
+
+        function addxiangguangongyingshang(obj) {
+            var sss = "";
+
+            if (document.getElementsByName("Gongytingshang").length > 0) {
+                sss = (document.getElementsByName("Gongytingshang").length+1);
+            }
+            if (document.getElementsByName("Gongytingshang").length == 1) {
+                var ssss = $('#xiangguangongyingshang').html();
+                ssss = ssss.replaceAll("鐩稿叧渚涘簲鍟�", "鐩稿叧渚涘簲鍟�1");
+                ssss = ssss.replaceAll("鍦板潃", "鍦板潃1");
+                ssss = ssss.replaceAll("閭紪", "閭紪1");
+                ssss = ssss.replaceAll("鑱旂郴浜�", "鑱旂郴浜�1");
+                ssss = ssss.replaceAll("鑱旂郴鐢佃瘽", "鑱旂郴鐢佃瘽1");
+                $('#xiangguangongyingshang').html(ssss);
+            }
+
+            $('#xiangguangongyingshang').append(` <div class="clearfix layer-area" style="padding-bottom:15px;">
+                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鐩稿叧渚涘簲鍟哷+ sss + `</label>
+                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                <input class="form-control" label="鐩稿叧渚涘簲鍟哷+ sss + `" name="Gongytingshang" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="">
+
+                                            </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">鍦板潃`+ sss + `</label>
+                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                <input class="form-control" label="鍦板潃`+ sss + `" name="gongyingshangDizhi" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="">
+
+                                            </div>
+
+                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">閭紪`+ sss + `</label>
+                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                <input class="form-control" label="閭紪`+ sss + `" name="gongyingshangYoubian" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="">
+
+                                            </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">鑱旂郴浜篳+ sss + `</label>
+                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                <input class="form-control" label="鑱旂郴浜篳+ sss + `" name="gongyingshangLianxiren" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="">
+
+                                            </div>
+
+                                            <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽`+ sss + `</label>
+                                            <div class="col-sm-2 col-md-2" grouptype="Vdata">
+                                                <input class="form-control" label="鑱旂郴鐢佃瘽`+ sss + `" name="gongyingshangLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="">
+
+                                            </div>
+
+
+                                        </div>`);
+
+        }
+
+
+
+        function TsrIdchangge() {
+            var sss = $('#TsrId').val();
+            $.ajax({
+                type: "GET",
+                url: "/CooperOrder/getZhiyihan?id=" + sss,
+                dataType: "json",
+                global: false,
+                data: "",
+                success: function (data) {
+                  
+                    //$('#zhiyishixiang').html(data.GysId);
+                    //$("select").chosen();
+                    $("#TsrName").val(data.GysName);
+                    $("#TsrAddress").val(data.GysAddress);
+                    $("#TsrPostcode").val(data.GysPostcode);
+                    $("#TsrCorporation").val(data.GysContacts);
+                    $("#TsrPhone").val(data.GysPhone);
+
+                    if (data.complaintShouquandaibiaoDTOs.length > 0) {
+                        if (data.complaintShouquandaibiaoDTOs[0].Shouquandaibiao != null && data.complaintShouquandaibiaoDTOs[0].Shouquandaibiao != "null" && data.complaintShouquandaibiaoDTOs[0].Shouquandaibiao != "") {
+                            $("#tousushouquan").show();
+                            $("#tousuShouquandaibiao").val(data.complaintShouquandaibiaoDTOs[0].Shouquandaibiao);
+                            $("#tousuLianxidianhua").val(data.complaintShouquandaibiaoDTOs[0].Lianxidianhua);
+                            $("#tousuDizhi").val(data.complaintShouquandaibiaoDTOs[0].Dizhi);
+                            $("#tousuYoubian").val(data.complaintShouquandaibiaoDTOs[0].Youbian);
+                             
+                        }
+                    }
+
+                    $("#tousuXmName").val(data.XmName);
+                    $("#tousuXmCode").val(data.XmCode);
+                    $("#tousuXmPackage").val(data.XmPackage);
+                    $("#tousuPurchaserName").val(data.PurchaserName);
+
+
+                },
+                error: function () {
+
+
+                    parent.layer.msg('鏌ヨ澶辫触', { icon: 5 });
+                }
+            });
+        }
+
     </script>
 </body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1