Files
WMS/HHWMS.Web/Areas/Configs/Views/Container/Index.cshtml
T
zhougf b4632cfc33 力阔现场出入库流程
agv任务下发
修改部分实体类错误和页面字段等
layout 添加条码库
添加容器逻辑修改
2024-04-21 22:03:15 +08:00

34 lines
1.5 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":80,"paperHeader":43.5,"paperFooter":170.07874015748033,"printElements":[{"options":{"left":13.5,"top":22.5,"height":100.5,"width":198,"title":"12345678","field":"code","testData":"12345678","textType":"barcode","barcodeMode":"CODE128A","fontFamily":"Microsoft YaHei","fontSize":20.25,"textAlign":"center","lineHeight":30},"printElementType":{"type":"text"}}],"paperNumberLeft":196,"paperNumberTop":148,"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>