From 8876889ebc569aa8bcc2540181431121ca605aaf Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 24 十二月 2021 08:44:10 +0800
Subject: [PATCH] 提交
---
zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml | 1022 ++++++++++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 950 insertions(+), 72 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
index 422a85c..500f0e2 100644
--- a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
@@ -12,9 +12,36 @@
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>; //鏄惁
+
+
}
@{
- Layout = null;
+ Layout = null;
}
<!DOCTYPE html>
@@ -103,7 +130,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 +144,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 +175,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 +206,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 +216,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 +253,544 @@
<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 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〃@(i!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="鎺堟潈浠h〃@(i!=0?(i+""):"")" 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">鑱旂郴鐢佃瘽@(i!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="鑱旂郴鐢佃瘽@(i!=0?(i+""):"")" name="zhiyiLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@challengecomplaintShouquandaibiaoDTOs[i].Lianxidianhua">
+
+ </div>
+ @if(i==0){
+ <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 class="clearfix layer-area" style="padding-bottom:15px;">
+ <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍦板潃@(i!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="鍦板潃@(i!=0?(i+""):"")" 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">閭紪@(i!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="閭紪@(i!=0?(i+""):"")" 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>
+ </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 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〃@(i!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="鎺堟潈浠h〃@(i!=0?(i+""):"")" 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">鑱旂郴鐢佃瘽@(i!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="鑱旂郴鐢佃瘽@(i!=0?(i+""):"")" name="tousuLianxidianhua" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@complaintShouquandaibiaoDTOs[i].Lianxidianhua">
+
+ </div>
+ @if(i==0){
+ <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 class="clearfix layer-area" style="padding-bottom:15px;">
+ <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍦板潃@(i!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="鍦板潃@(i!=0?(i+""):"")" 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">閭紪@(i!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="閭紪@(i!=0?(i+""):"")" 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(i==0){
+ <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!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="琚姇璇変汉@(i!=0?(i+""):"")" 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!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="鍦板潃@(i!=0?(i+""):"")" 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!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="閭紪@(i!=0?(i+""):"")" 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!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="鑱旂郴浜篅(i!=0?(i+""):"")" 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!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="鑱旂郴鐢佃瘽@(i!=0?(i+""):"")" name="tousuPhone" labtype="txt" addvisible="true" maxlength="30" editvisible="true" reg="" ismust="true" type="text" value="@complaintRespondentDTOs[i].Phone">
+
+ </div>
+
+
+ </div>
+ }
+
+ }
+ </div>
+
+
+
+
+
+ <div id="xiangguangongyingshang">
+ @for(int i=0;i<complaintGongyingshangDTOs.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">鐩稿叧渚涘簲鍟咢(i!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="鐩稿叧渚涘簲鍟咢(i!=0?(i+""):"")" name="Gongytingshang" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="@complaintGongyingshangDTOs[i].Gongytingshang">
+
+ </div>
+ @if(i==0){
+ <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 class="clearfix layer-area" style="padding-bottom:15px;">
+ <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鍦板潃@(i!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="鍦板潃@(i!=0?(i+""):"")" 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!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="閭紪@(i!=0?(i+""):"")" 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!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="鑱旂郴浜篅(i!=0?(i+""):"")" 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!=0?(i+""):"")</label>
+ <div class="col-sm-2 col-md-2" grouptype="Vdata">
+ <input class="form-control" label="鑱旂郴鐢佃瘽@(i!=0?(i+""):"")" 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 +800,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 +832,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 +850,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 +1005,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 != "" }
@@ -564,9 +1206,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 +1233,9 @@
parent.layer.msg('澶辫触', { icon: 5 });
}
});
+ $("#putong").show();
+ $("#zhiyi").hide();
+ $("#tousu").hide();
});
@@ -607,9 +1252,9 @@
success: function (data) {
var city = $("#OrderType2");
city.find('option').remove();
-
+
$("#Price").val("");
-
+
if (OrderType != "02" || sheng == "鐢佃瘽鍜ㄨ" || sheng == "褰撻潰鍜ㄨ" || sheng == "浠f嫙璐ㄧ枒绛斿" || sheng == "浠f嫙鎶曡瘔澶勭悊鍐冲畾" || sheng == "绔炰簤瀵规墜鍜岃瘎瀹′笓瀹跺弬鍔犳斂搴滈噰璐暟鎹俊鎭煡璇�" || sheng == "鏀块噰璐�") {
if (OrderType == "01") {
@@ -621,6 +1266,10 @@
}
$("#Price").trigger("change");
+
+
+ $("#dingdanleixing2").hide();
+ $("#dingdanleixing3").hide();
} else {
var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>';
@@ -638,10 +1287,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 +1361,7 @@
var city = $("#OrderType1");
-
+
var aaa = '';
city.append(aaa);
@@ -728,7 +1390,7 @@
});
-
+
$.ajax({
type: "GET",
@@ -740,7 +1402,8 @@
success: function (data) {
var city = $("#OrderType2");
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 +1421,8 @@
}
}
+ $("#dingdanleixing2").show();
+ $("#dingdanleixing3").show();
}
@@ -777,13 +1442,40 @@
}
+
+
+ $(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();
+ }
+
+
+
+ });
$("#Khdw").change(function () {
var Khdw = $("#Khdw").val();
-
+
$.ajax({
type: "GET",
url: "/CooperatecustomCustomer/GetCustomer?id=" + Khdw,
@@ -791,10 +1483,23 @@
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);
+ $("#GysPostcode").val("");
+ $("#GysContacts").val(data.FName);
+ $("#GysPhone").val(data.FTel);
+
+ $("#TsrName").val(data.Name);
+ $("#TsrAddress").val(data.ShrName);
+ $("#TsrPostcode").val("");
+ $("#TsrCorporation").val(data.FName);
+ $("#TsrPhone").val(data.FTel);
},
error: function () {
@@ -814,6 +1519,179 @@
parent.layer.close(index);
return false;
}
+
+
+ function addzhiyishouquan(obj) {
+ 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) {
+ 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;
+
+ $('#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 = document.getElementsByName("Gongytingshang").length;
+
+ $('#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>`);
+
+ }
+
</script>
</body>
</html>
\ No newline at end of file
--
Gitblit v1.9.1