Files
WMS/HHWMS.Web/Areas/Configs/Views/Container/Index.cshtml
T

64 lines
2.0 KiB
Plaintext

@model HHWMS.Web.ContainerListVM
@inject IStringLocalizer<Program> Localizer;
<wt:searchpanel vm="@Model" reset-btn="true">
<wt:row items-per-row="ItemsPerRowEnum.Three">
<wt:textbox field="Searcher.Code"/>
<wt:combobox field="Searcher.Type" items="ContainerType"/>
<wt:combobox field="Searcher.IsLock"/>
<wt:combobox field="Searcher.Status" items="ContainerStatus"/>
<wt:textbox field="Searcher.LocationCode"/>
<wt:textbox field="Searcher.Length"/>
<wt:textbox field="Searcher.Width"/>
<wt:textbox field="Searcher.Height"/>
</wt:row>
</wt:searchpanel>
<wt:grid vm="@Model" url="/configs/Container/Search"/>
<script>
let template =
{
"panels": [{
"index": 0,
"height": 60,
"width": 100,
"paperHeader": 43.5,
"paperFooter": 170.07874015748033,
"printElements": [{
"options": {
"left": 18,
"top": 25.5,
"height": 106.5,
"width": 246,
"title": "code",
"testData": "",
"field": "code",
"fontSize": 18,
"textAlign": "center",
"lineHeight": 24,
"textType": "barcode"
}, "printElementType": {"type": "text"}
}],
"paperNumberLeft": 258,
"paperNumberTop": 144,
"paperNumberDisabled": true
}]
};
let printData = [];
function print(ids, datas) {
console.log(datas)
datas.forEach(function (value, index, arr) {
printData.push({code: value.Code})
});
hiprint.init();
var hiprintTemplate = new hiprint.PrintTemplate({
template: template
});
hiprintTemplate.print(printData);
printData = [];
}
</script>