80 lines
2.7 KiB
Plaintext
80 lines
2.7 KiB
Plaintext
@model HHWMS.Web.LocationListVM
|
|
@inject IStringLocalizer<Program> Localizer;
|
|
|
|
<wt:searchpanel vm="@Model" reset-btn="true">
|
|
<wt:row items-per-row="ItemsPerRowEnum.Three">
|
|
<wt:combobox field="Searcher.LocationZoneId" items="Searcher.AllLocationZones" empty-text="@Localizer["Sys.All"]" />
|
|
<wt:textbox field="Searcher.Code" />
|
|
<wt:textbox field="Searcher.ContainerCode" />
|
|
<wt:combobox field="Searcher.Type" empty-text="@Localizer["Sys.All"]" />
|
|
<wt:combobox field="Searcher.Status" empty-text="@Localizer["Sys.All"]" />
|
|
<wt:textbox field="Searcher.RoadWay" />
|
|
<wt:combobox field="Searcher.IsStop" empty-text="@Localizer["Sys.All"]" />
|
|
<wt:combobox field="Searcher.RowFlag" empty-text="@Localizer["Sys.All"]" />
|
|
</wt:row>
|
|
</wt:searchpanel>
|
|
<wt:grid vm="@Model" url="/configs/Location/Search"/>
|
|
|
|
<script>
|
|
let template = {
|
|
"panels": [
|
|
{
|
|
"index": 0,
|
|
"height": 20,
|
|
"width": 30,
|
|
"paperHeader": 43.5,
|
|
"paperFooter": 56.69291338582678,
|
|
"printElements": [
|
|
{
|
|
"options": {
|
|
"left": 0,
|
|
"top": 2,
|
|
"height": 38,
|
|
"width": 84,
|
|
"field": "code",
|
|
"textType": "qrcode",
|
|
"barcodeMode": "CODE128A",
|
|
"hideTitle": true
|
|
},
|
|
"printElementType": {
|
|
"type": "text"
|
|
}
|
|
},
|
|
{
|
|
"options": {
|
|
"left": 0,
|
|
"top": 40,
|
|
"height": 10,
|
|
"width": 84,
|
|
"field": "code",
|
|
"textAlign": "center",
|
|
"hideTitle": true
|
|
},
|
|
"printElementType": {
|
|
"type": "text"
|
|
}
|
|
}
|
|
],
|
|
"paperNumberLeft": 55.5,
|
|
"paperNumberTop": 34.5,
|
|
"paperNumberDisabled": true
|
|
}
|
|
]
|
|
};
|
|
|
|
let printData = [];
|
|
|
|
function print(ids, 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>
|