|
|
@ -3,6 +3,55 @@ |
|
|
Layout = "~/Views/Shared/_Index.cshtml"; |
|
|
Layout = "~/Views/Shared/_Index.cshtml"; |
|
|
} |
|
|
} |
|
|
<link href="~/Content/js/select2/select2.min.css" rel="stylesheet" /> |
|
|
<link href="~/Content/js/select2/select2.min.css" rel="stylesheet" /> |
|
|
|
|
|
<!-- 高优先级自定义样式:强制生效 --> |
|
|
|
|
|
<style> |
|
|
|
|
|
html body #form1 #SupplierName.select2-container--default .select2-selection--single { |
|
|
|
|
|
background-color: #ffffff !important; |
|
|
|
|
|
color: #333333 !important; |
|
|
|
|
|
border: 1px solid #ced4da !important; |
|
|
|
|
|
height: 34px !important; |
|
|
|
|
|
line-height: 34px !important; |
|
|
|
|
|
border-radius: 4px !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
html body #form1 #SupplierName.select2-container--default .select2-selection--single .select2-selection__arrow { |
|
|
|
|
|
height: 32px !important; |
|
|
|
|
|
right: 10px !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
html body #form1 #SupplierName.select2-container--default .select2-selection--single .select2-selection__arrow b { |
|
|
|
|
|
border-color: #333 transparent transparent transparent !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
html body #form1 #SupplierName.select2-container--default .select2-dropdown { |
|
|
|
|
|
background-color: #ffffff !important; |
|
|
|
|
|
border: 1px solid #ced4da !important; |
|
|
|
|
|
border-radius: 4px !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
html body #form1 #SupplierName.select2-container--default .select2-results__option { |
|
|
|
|
|
color: #333333 !important; |
|
|
|
|
|
background-color: #ffffff !important; |
|
|
|
|
|
padding: 6px 12px !important; |
|
|
|
|
|
margin: 0 !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
html body #form1 #SupplierName.select2-container--default .select2-results__option--highlighted { |
|
|
|
|
|
background-color: #e9ecef !important; |
|
|
|
|
|
color: #333333 !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
html body #form1 #SupplierName.select2-container--default .select2-results__option[aria-selected=true] { |
|
|
|
|
|
background-color: #f8f9fa !important; |
|
|
|
|
|
color: #333 !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
html body #form1 #SupplierName.select2-container--default.select2-container--disabled .select2-selection--single { |
|
|
|
|
|
background-color: #ffffff !important; |
|
|
|
|
|
color: #6c757d !important; |
|
|
|
|
|
border-color: #ced4da !important; |
|
|
|
|
|
} |
|
|
|
|
|
</style> |
|
|
<script src="~/Content/js/select2/select2.min.js"></script> |
|
|
<script src="~/Content/js/select2/select2.min.js"></script> |
|
|
<script> |
|
|
<script> |
|
|
var list = ""; |
|
|
var list = ""; |
|
|
@ -36,8 +85,8 @@ |
|
|
$("#SupplierCode").attr("disabled", "disabled"); |
|
|
$("#SupplierCode").attr("disabled", "disabled"); |
|
|
$("#sel_WorkPoint").val([WorkPoints]).trigger("change"); |
|
|
$("#sel_WorkPoint").val([WorkPoints]).trigger("change"); |
|
|
$("#sel_WorkPoint").attr("disabled", "disabled"); |
|
|
$("#sel_WorkPoint").attr("disabled", "disabled"); |
|
|
|
|
|
// 移除:供应商名称下拉框disabled设置 |
|
|
$("#SupplierName").val([SupplierCode]).trigger("change"); |
|
|
$("#SupplierName").val([SupplierCode]).trigger("change"); |
|
|
$("#SupplierName").attr("disabled", "disabled"); |
|
|
|
|
|
$("#Tax").val(TaxValue); |
|
|
$("#Tax").val(TaxValue); |
|
|
$("#Tax").attr("disabled", "disabled"); |
|
|
$("#Tax").attr("disabled", "disabled"); |
|
|
$("#refresh").click(); |
|
|
$("#refresh").click(); |
|
|
@ -58,12 +107,11 @@ |
|
|
$("#DocNo").val(data.DocNo); |
|
|
$("#DocNo").val(data.DocNo); |
|
|
$("#SupplierCode").val([data.VenCode]); |
|
|
$("#SupplierCode").val([data.VenCode]); |
|
|
$("#SupplierCode").attr("disabled", "disabled"); |
|
|
$("#SupplierCode").attr("disabled", "disabled"); |
|
|
|
|
|
// 移除:供应商名称下拉框disabled设置 |
|
|
$("#SupplierName").val([data.VenCode]).trigger("change"); |
|
|
$("#SupplierName").val([data.VenCode]).trigger("change"); |
|
|
$("#SupplierName").attr("disabled", "disabled"); |
|
|
|
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
$("#SupplierCode").removeAttr("disabled"); |
|
|
$("#SupplierCode").removeAttr("disabled"); |
|
|
$("#SupplierName").removeAttr("disabled"); |
|
|
|
|
|
} |
|
|
} |
|
|
$("#refresh").click(); |
|
|
$("#refresh").click(); |
|
|
} |
|
|
} |
|
|
@ -72,9 +120,9 @@ |
|
|
} |
|
|
} |
|
|
gridList(); |
|
|
gridList(); |
|
|
var RoleEnCode = '@NFine.Code.OperatorProvider.Provider.GetCurrent().RoleEnCode' |
|
|
var RoleEnCode = '@NFine.Code.OperatorProvider.Provider.GetCurrent().RoleEnCode' |
|
|
|
|
|
// 移除:非admin角色的disabled初始化逻辑 |
|
|
if (RoleEnCode != 'admin') { |
|
|
if (RoleEnCode != 'admin') { |
|
|
debugger; |
|
|
debugger; |
|
|
$("#SupplierName").attr("disabled", "disabled"); |
|
|
|
|
|
$("#sel_WorkPoint").change(function () { |
|
|
$("#sel_WorkPoint").change(function () { |
|
|
debugger; |
|
|
debugger; |
|
|
var Tax = $("#Tax").val(); |
|
|
var Tax = $("#Tax").val(); |
|
|
@ -89,8 +137,6 @@ |
|
|
$("#SupplierCode").val([data.VenCode]); |
|
|
$("#SupplierCode").val([data.VenCode]); |
|
|
$("#SupplierCode").attr("disabled", "disabled"); |
|
|
$("#SupplierCode").attr("disabled", "disabled"); |
|
|
Vendor = data.VenCode; |
|
|
Vendor = data.VenCode; |
|
|
//$("#sel_VenCode").val([data.VenCode]).trigger("change"); |
|
|
|
|
|
//$("#sel_VenCode").attr("disabled", "disabled"); |
|
|
|
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
$.modalAlert(data.msg); |
|
|
$.modalAlert(data.msg); |
|
|
@ -106,13 +152,8 @@ |
|
|
success: function (data) { |
|
|
success: function (data) { |
|
|
if (data.DocNo != '') { |
|
|
if (data.DocNo != '') { |
|
|
$("#DocNo").val(data.DocNo); |
|
|
$("#DocNo").val(data.DocNo); |
|
|
|
|
|
|
|
|
|
|
|
// 移除:供应商名称下拉框disabled设置 |
|
|
$("#SupplierName").val([Vendor]).trigger("change"); |
|
|
$("#SupplierName").val([Vendor]).trigger("change"); |
|
|
$("#SupplierName").attr("disabled", "disabled"); |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
|
|
|
|
|
|
$("#SupplierName").removeAttr("disabled"); |
|
|
|
|
|
} |
|
|
} |
|
|
$("#refresh").click(); |
|
|
$("#refresh").click(); |
|
|
} |
|
|
} |
|
|
@ -136,7 +177,7 @@ |
|
|
$("SupplierCode").val(VenCode); |
|
|
$("SupplierCode").val(VenCode); |
|
|
$("#DocNo").attr("disabled", "disabled"); |
|
|
$("#DocNo").attr("disabled", "disabled"); |
|
|
$("#SupplierCode").attr("disabled", "disabled"); |
|
|
$("#SupplierCode").attr("disabled", "disabled"); |
|
|
$("#SupplierName").attr("disabled", "disabled"); |
|
|
|
|
|
|
|
|
// 移除:供应商名称下拉框disabled设置 |
|
|
$("#refresh").click(); |
|
|
$("#refresh").click(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
@ -199,7 +240,6 @@ |
|
|
colModel: [ |
|
|
colModel: [ |
|
|
{ label: "主键", name: "ID", hidden: true, key: true }, |
|
|
{ label: "主键", name: "ID", hidden: true, key: true }, |
|
|
{ label: '对账单号', name: 'DocNo', width: 120, align: 'left' }, |
|
|
{ label: '对账单号', name: 'DocNo', width: 120, align: 'left' }, |
|
|
//{ label: '对账单行', name: 'DocLineNo', width: 60, align: 'left' }, |
|
|
|
|
|
{ label: '采购订单号', name: 'POCode', width: 120, align: 'left' }, |
|
|
{ label: '采购订单号', name: 'POCode', width: 120, align: 'left' }, |
|
|
{ label: '采购订单行号', name: 'PORow', width: 60, align: 'left' }, |
|
|
{ label: '采购订单行号', name: 'PORow', width: 60, align: 'left' }, |
|
|
{ label: "物料代码", name: "InvCode", width: 80, align: 'left' }, |
|
|
{ label: "物料代码", name: "InvCode", width: 80, align: 'left' }, |
|
|
@ -222,8 +262,8 @@ |
|
|
var iOriMoney_total = $(this).getCol('iOriMoney', false, 'sum'); |
|
|
var iOriMoney_total = $(this).getCol('iOriMoney', false, 'sum'); |
|
|
var iOriTaxPrice_total = $(this).getCol('iOriTaxPrice', false, 'sum'); |
|
|
var iOriTaxPrice_total = $(this).getCol('iOriTaxPrice', false, 'sum'); |
|
|
$(this).footerData('set', { |
|
|
$(this).footerData('set', { |
|
|
"Qty": Qty_total,//声明需要汇总的列并写自定义函数endMoney_total |
|
|
|
|
|
"ioriSum": Number(ioriSum_total).toFixed(2),//声明需要汇总的列并写自定义函数endMoney_total |
|
|
|
|
|
|
|
|
"Qty": Qty_total, |
|
|
|
|
|
"ioriSum": Number(ioriSum_total).toFixed(2), |
|
|
"iOriMoney": Number(iOriMoney_total).toFixed(2), |
|
|
"iOriMoney": Number(iOriMoney_total).toFixed(2), |
|
|
"iOriTaxPrice": Number(iOriTaxPrice_total).toFixed(2), |
|
|
"iOriTaxPrice": Number(iOriTaxPrice_total).toFixed(2), |
|
|
}); |
|
|
}); |
|
|
|