This commit is contained in:
霍尔 committed 2023-10-16 20:33:44 +08:00
1 parent c494b7b1ef
commit 523dee5e38
15 files changed
+304 -128

No files matched your search

@@ -9,9 +9,9 @@
@* <wt:textbox field="Entity.CompanyCode" />
<wt:textbox field="Entity.SupplierCode" />
<wt:textbox field="Entity.TotalQty" />
<wt:textbox field="Entity.TotalLines" />
<wt:combobox field="Entity.LastStatus" />
<wt:textbox field="Entity.TotalLines" />*@
<wt:combobox field="Entity.FirstStatus" />
<wt:combobox field="Entity.LastStatus" /> *@
<wt:datetime field="Entity.AppointmentTime" type="DateTime" />
<wt:textbox field="Entity.Remark" />
</wt:row>
@@ -1,7 +1,7 @@
@model HHWMS.Web.ReceiptHeaderListVM
@inject IStringLocalizer<Program> Localizer;
<wt:searchpanel vm="@Model" reset-btn="true" grid-id="header">
<wt:searchpanel vm="@Model" reset-btn="true" grid-id="ReceiptHeader">
<wt:row items-per-row="ItemsPerRowEnum.Three">
@* <wt:textbox field="Searcher.SourceCode" /> *@
<wt:textbox field="Searcher.Code" />
@@ -10,14 +10,14 @@
@* <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.ReceiptDetails" id="detail" url="/receipt/ReceiptDetail/Search2" height="400" />
<wt:grid vm="@Model" id="ReceiptHeader" url="/receipt/ReceiptHeader/Search" limit="7" />
<wt:grid vm="@Model.ReceiptDetails" id="ReceiptDetail" url="/receipt/ReceiptDetail/Search2" height="400" />
<script>
var headerId = 0;
function details(id) {
headerId = id;
layui.table.reload('detail', { where: { "Searcher.ReceiptHeaderId": id } });
layui.table.reload('ReceiptDetail', { where: { "Searcher.ReceiptHeaderId": id } });
}
function CreateDetail() {
@@ -197,17 +197,17 @@
}
},
// 扫描周转箱
scanBox(data) {
scanBox(Box) {
var _this = this;
_this.form.size = '';
_this.form.boxSize = [];
if (data == "L02") {
_this.form.boxSize = [{ label: "8mm", value: "8" }]
_this.form.size = _this.form.boxSize[0].value;
if (Box == "L02") {
_this.form.boxSize = [{ label: "24mm", value: "24" }, { label: "16mm", value: "16" }, { label: "10mm", value: "10" }]
_this.dataIndex = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16];
}
else if (data == "L01") {
_this.form.boxSize = [{ label: "10mm", value: "10" }, { label: "16mm", value: "16" }, { label: "24mm", value: "24" }];
else if (Box == "L01") {
_this.form.boxSize = [{ label: "8mm", value: "8" }];
_this.form.size = _this.form.boxSize[0].value;
_this.dataIndex = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20];
}
else {
@@ -217,12 +217,14 @@
});
return;
}
console.log(Box);
$.ajax({
type: "post",
dataType: "json",
data: { boxCode: data },
data: { boxCode: Box },
url: "/receipt/ReceiptIn/ScanBox",
success: function (json) {
console.log(json);
if (json.Code != 200) {
_this.$message({
message: "扫描失败!" + json.Msg,