43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
@model HHWMS.Web.ReceiptHeaderListVM
|
|
@inject IStringLocalizer<Program> Localizer;
|
|
|
|
<wt:searchpanel vm="@Model" reset-btn="true" grid-id="header">
|
|
<wt:row items-per-row="ItemsPerRowEnum.Three">
|
|
<wt:textbox field="Searcher.SourceCode" />
|
|
<wt:textbox field="Searcher.Code" />
|
|
<wt:textbox field="Searcher.BillType" />
|
|
<wt:combobox field="Searcher.FirstStatus" empty-text="@Localizer["Sys.All"]" />
|
|
<wt:combobox field="Searcher.LastStatus" empty-text="@Localizer["Sys.All"]" />
|
|
</wt:row>
|
|
</wt:searchpanel>
|
|
<wt:grid vm="@Model" id="header" url="/receipt/ReceiptHeader/Search" limit="7" />
|
|
<wt:grid vm="@Model.Details" id="detail" url="/receipt/ReceiptDetail/Search2" height="400" />
|
|
|
|
<script>
|
|
var headerId = 0;
|
|
function details(id) {
|
|
headerId = id;
|
|
layui.table.reload('detail', { where: { "Searcher.ReceiptHeaderId": id } });
|
|
}
|
|
|
|
function CreateDetail() {
|
|
if (headerId == 0) {
|
|
layui.layer.alert('请选择一个单据');
|
|
}
|
|
else {
|
|
|
|
ff.OpenDialog('/receipt/ReceiptDetail/Create2/' + headerId, '@Guid.NewGuid()', '添加明细', 600);
|
|
}
|
|
}
|
|
|
|
function CreateDetails() {
|
|
if (headerId == 0) {
|
|
layui.layer.alert('请选择一个单据');
|
|
}
|
|
else {
|
|
|
|
ff.OpenDialog('/receipt/ReceiptDetail/CreateDetails/' + headerId, '@Guid.NewGuid()', '批量添加明细', 600);
|
|
}
|
|
}
|
|
</script>
|