From 976aa1a04fff81af4939affa80d3357013157353 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 28 七月 2022 16:51:17 +0800
Subject: [PATCH] 文书管理
---
zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml | 64 +++++++++++++++++++------------
1 files changed, 39 insertions(+), 25 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
index 17af108..3786ce5 100644
--- a/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
@@ -1092,8 +1092,8 @@
var id = '@Model.Id';
var order_type = '@Model.OrderType';
- var order_type1 = $("#order_type1").val();
- var order_type2 = $("#order_type2").val();
+ var order_type1 = '@Html.Raw(Model.OrderType1)';/*$("#order_type1").val();*/
+ var order_type2 = '@Html.Raw(Model.OrderType2)';/*$("#order_type2").val();*/
var bUpload = false;
var bAdd = false; // 鏂板鎿嶄綔
@@ -1241,7 +1241,7 @@
return;
}
-
+
} else if ($("#OrderType1").val() == "浠f嫙璐ㄧ枒鍑�") {
if ($.trim($("#GysName").val()) == '') {
toastr.warning("璐ㄧ枒渚涘簲鍟嗕笉鑳戒负绌�");
@@ -1280,11 +1280,11 @@
toastr.warning("閲囪喘鏂囦欢鑾峰彇鏃ユ湡涓嶈兘涓虹┖");
return;
}
-
-
-
-
- }
+
+
+
+
+ }
@@ -1345,7 +1345,7 @@
});
$("#Price").change(function () {
-
+
var OrderNum = $("#OrderNum").val();
var Price = $("#Price").val();
var Money = $("#Money");
@@ -1524,6 +1524,7 @@
$("#OrderType2").change(function () {
+
var OrderType = $("#OrderType").val();
var OrderType1 = $("#OrderType1").val();
var OrderType2 = $("#OrderType2").val();
@@ -1552,7 +1553,7 @@
- if (id != null && id != '') {
+ if (order_type != null && order_type != '') {
$.ajax({
type: "GET",
@@ -1593,7 +1594,6 @@
parent.layer.msg('澶辫触', { icon: 5 });
}
});
-
@@ -1640,9 +1640,11 @@
+ if (id == null || id == '') {
+ $("#OrderType2").trigger("change");
+ }
-
-
+
},
error: function () {
@@ -1651,10 +1653,22 @@
}
});
+
+ if (order_type == '03' || order_type == '08') {
+ $("#xiangmuxinxi").show();
+ } else {
+ $("#xiangmuxinxi").hide();
+ }
+
+ if (order_type == '08') {
+ $("#jichujine").show();
+ } else {
+ $("#jichujine").hide();
+ }
}
-
+
$(document).ready(function () {
@@ -1711,17 +1725,17 @@
} 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();
- });
+ $("#TsrId").chosen();
+
+ });
$("#Khdw").change(function () {
@@ -1734,13 +1748,13 @@
global: false,
data: "",
success: function (data) {
-
-
+
+
$("#Shr").val(data.ShrName);
$("#ShrAddress").val(data.ShrAddress);
$("#ShrTel").val(data.ShrTel);
- $("#GysName").val(data.Name);
+ $("#GysName").val(data.Name);
$("#GysAddress").val(data.Address);
$("#GysContacts").val(data.FName);
$("#GysPhone").val(data.FTel);
@@ -1750,7 +1764,7 @@
$("#TsrPostcode").val(data.Postal);
$("#TsrCorporation").val(data.FName);
$("#TsrPhone").val(data.FTel);
-
+
},
error: function () {
@@ -1928,7 +1942,7 @@
<input class="form-control" label="鐩稿叧渚涘簲鍟哷+ sss + `" name="Gongytingshang" labtype="txt" addvisible="true" maxlength="300" editvisible="true" reg="" ismust="true" type="text" value="">
</div>
-
+
</div>
@@ -1977,7 +1991,7 @@
global: false,
data: "",
success: function (data) {
-
+
//$('#zhiyishixiang').html(data.GysId);
//$("select").chosen();
$("#TsrName").val(data.GysName);
@@ -1993,7 +2007,7 @@
$("#tousuLianxidianhua").val(data.complaintShouquandaibiaoDTOs[0].Lianxidianhua);
$("#tousuDizhi").val(data.complaintShouquandaibiaoDTOs[0].Dizhi);
$("#tousuYoubian").val(data.complaintShouquandaibiaoDTOs[0].Youbian);
-
+
}
}
--
Gitblit v1.9.1