From d66cbfe2dec69d08f9905b320851eb11d09567bc Mon Sep 17 00:00:00 2001
From: PC-201906131823\Administrator <zyyao>
Date: 星期三, 10 十一月 2021 16:14:55 +0800
Subject: [PATCH] 提交
---
zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml | 107 ++++++++++++++++++++++++++++++++++++++---------------
1 files changed, 77 insertions(+), 30 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
index fcb893f..87827bd 100644
--- a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
@@ -12,9 +12,11 @@
string ShouliStatus = ViewData["ShouliStatus"] as string; //鍙楃悊鍚庝笉鍏佽缂栬緫
+ //List<SysCodeDtl> YouHuiList = ViewData["YouHuiList"] as List<SysCodeDtl>; //浼樻儬鍒楄〃
+
}
@{
- Layout = null;
+ Layout = null;
}
<!DOCTYPE html>
@@ -103,7 +105,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">
@@ -179,8 +181,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 +191,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,19 +228,19 @@
<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>
@@ -279,7 +281,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>
@@ -611,7 +621,7 @@
$("#Price").val("");
- if (OrderType != "02" || sheng == "鐢佃瘽鍜ㄨ" || sheng == "褰撻潰鍜ㄨ" || sheng == "浠f嫙璐ㄧ枒绛斿" || sheng == "浠f嫙鎶曡瘔澶勭悊鍐冲畾" || sheng == "绔炰簤瀵规墜鍜岃瘎瀹′笓瀹舵煡璇�" || sheng == "鏀块噰璐�") {
+ if (OrderType != "02" || sheng == "鐢佃瘽鍜ㄨ" || sheng == "褰撻潰鍜ㄨ" || sheng == "浠f嫙璐ㄧ枒绛斿" || sheng == "浠f嫙鎶曡瘔澶勭悊鍐冲畾" || sheng == "绔炰簤瀵规墜鍜岃瘎瀹′笓瀹跺弬鍔犳斂搴滈噰璐暟鎹俊鎭煡璇�" || sheng == "鏀块噰璐�") {
if (OrderType == "01") {
$("#Price").val(data.Danjia);
} else if (OrderType == "05") {
@@ -621,6 +631,10 @@
}
$("#Price").trigger("change");
+
+
+ $("#dingdanleixing2").hide();
+ $("#dingdanleixing3").hide();
} else {
var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>';
@@ -638,7 +652,8 @@
}
}
-
+ $("#dingdanleixing2").show();
+ $("#dingdanleixing3").show();
}
@@ -739,8 +754,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 +774,8 @@
}
}
+ $("#dingdanleixing2").show();
+ $("#dingdanleixing3").show();
}
@@ -777,6 +795,35 @@
}
+
+
+
+
+ $("#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);
+
+ },
+ error: function () {
+
+
+ parent.layer.msg('澶辫触', { icon: 5 });
+ }
+ });
+ });
+
+
function _pageAutoClose() {
parent.window._reloadPageData();
var index = parent.layer.getFrameIndex(window.name);
--
Gitblit v1.9.1