|
|
@@ -211,7 +211,7 @@ new SearchItem("saleMan", "业务员",showField:"saleManName").SetSearchIcon("qu
|
|
|
new InputViewModel("customerId",hide:true),
|
|
|
new InputViewModel("saleMan",hide:true),
|
|
|
new InputViewModel("saleManId",hide:true),
|
|
|
- new InputViewModel("id",displayName:"流水号"),
|
|
|
+ //new InputViewModel("id",displayName:"流水号"),
|
|
|
new InputViewModel("stockNo",displayName:"客户订单号"),
|
|
|
new InputViewModel("orderStatusId",InputTypes.List, displayName:"订单状态").SetSelectOptions(OrderStatusList),
|
|
|
new InputViewModel("orderDate", displayName:"订单日期").SetNotRequired(),
|
|
|
@@ -465,10 +465,10 @@ new SearchItem("saleMan", "业务员",showField:"saleManName").SetSearchIcon("qu
|
|
|
|
|
|
@section scripts
|
|
|
{
|
|
|
- <script src="~/Content/Plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
|
|
- <script src="~/Content/Plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
|
|
|
- @*<script src="~/Views/OrderInfo/js/OrderMg.js"></script>*@
|
|
|
- <script type="text/javascript">
|
|
|
+ <script src="~/Content/Plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
|
|
+ <script src="~/Content/Plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
|
|
|
+ @*<script src="~/Views/OrderInfo/js/OrderMg.js"></script>*@
|
|
|
+ <script type="text/javascript">
|
|
|
//cId cStockNo cOrderStatusId cCustomerId cStartDate cEndDate
|
|
|
var loToCNYCurrenyRate = [];
|
|
|
|
|
|
@@ -487,17 +487,17 @@ new SearchItem("saleMan", "业务员",showField:"saleManName").SetSearchIcon("qu
|
|
|
var itemTable = $("#tableOrderItem");
|
|
|
$(function() {
|
|
|
@{
|
|
|
- // List<CurrencyExchangeRate> loToCNYCurrenyRate
|
|
|
- foreach (var currency in loToCNYCurrenyRate ?? new List<CurrencyExchangeRate>())
|
|
|
- {
|
|
|
- <text>
|
|
|
+ // List<CurrencyExchangeRate> loToCNYCurrenyRate
|
|
|
+ foreach (var currency in loToCNYCurrenyRate ?? new List<CurrencyExchangeRate>())
|
|
|
+ {
|
|
|
+ <text>
|
|
|
loToCNYCurrenyRate.push({
|
|
|
FromCurrencyId: "@currency.FromCurrencyId",
|
|
|
ExchangeRate: "@currency.ExchangeRate"
|
|
|
});
|
|
|
</text>
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
//show完毕前执行
|
|
|
//$("#orderDate").datetimepicker(datePickerOpt).on('show', function (event) {
|
|
|
// event.preventDefault();
|
|
|
@@ -529,7 +529,7 @@ new SearchItem("saleMan", "业务员",showField:"saleManName").SetSearchIcon("qu
|
|
|
BtnUpdate({ readonly: "standardName,saleManName", disabled: "saleType" });
|
|
|
};
|
|
|
|
|
|
- funs["btnCreate"] = function() {
|
|
|
+ funs["btnCreate1"] = function() {
|
|
|
abp.ajax({
|
|
|
url: window.appUrl + 'OrderHeaders/GetNewOrderNo',
|
|
|
async: true,
|
|
|
@@ -548,6 +548,13 @@ new SearchItem("saleMan", "业务员",showField:"saleManName").SetSearchIcon("qu
|
|
|
});
|
|
|
|
|
|
}
|
|
|
+ funs["btnCreate"] = function () {
|
|
|
+ BtnCreate({
|
|
|
+ readonly: "sendAdress,customerName,saleManName,orderDate ",
|
|
|
+ disabled: "orderStatusId,saleType",
|
|
|
+ data: { orderStatusId: "2", orderDate: GetNowFormatDate() }
|
|
|
+ });
|
|
|
+ }
|
|
|
funs["btnDelete"] = function(url) {
|
|
|
var rows = $("#table").bootstrapTable("getSelections");
|
|
|
if (rows.length === 1) {
|