页面加序列
回车计数
This commit is contained in:
parent
2453e8405b
commit
a64e3a36f4
@ -5,6 +5,9 @@
|
||||
<el-card class="box-card">
|
||||
<el-table :data="tableData" height="450" border
|
||||
style="width: 100%">
|
||||
<el-table-column type="index"
|
||||
width="50">
|
||||
</el-table-column>
|
||||
<el-table-column label="唯一码" width="220" align="center" prop="UniqueCode"></el-table-column>
|
||||
<el-table-column label="编码" align="center" prop="MaterialCode"></el-table-column>
|
||||
<el-table-column label="规格型号" align="center" prop="MaterialSpec"></el-table-column>
|
||||
@ -29,7 +32,7 @@
|
||||
<el-input v-model="form.batch" placeholder="批次" readonly></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="数量" prop="qty">
|
||||
<el-input v-model.number="form.qty" ref="qty" :placeholder="qtyPlaceholder"></el-input>
|
||||
<el-input v-model.number="form.qty" ref="qty" :placeholder="qtyPlaceholder" @@change="count"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item style="float:right">
|
||||
<el-button type="primary" @@click="onSubmit">确定</el-button>
|
||||
@ -41,7 +44,7 @@
|
||||
<script>
|
||||
var str = "";
|
||||
@{
|
||||
<text>str = @Model.Entity.ID; </text>
|
||||
<text>str = @Model.Entity.ID; </text>
|
||||
}
|
||||
|
||||
var app = new Vue({
|
||||
@ -70,7 +73,7 @@ var app = new Vue({
|
||||
app.tableData = json.Data;
|
||||
},
|
||||
error: function (json) {
|
||||
alert("加载失败");
|
||||
alyer.alert("加载失败");
|
||||
}
|
||||
});
|
||||
this.$nextTick(() => {
|
||||
@ -78,6 +81,9 @@ var app = new Vue({
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
count() {
|
||||
this.onSubmit();
|
||||
},
|
||||
// 绑定
|
||||
onSubmit() {
|
||||
var _this = this;
|
||||
@ -92,9 +98,7 @@ var app = new Vue({
|
||||
url: "/receipt/ReceiptHeader/CountCommit",
|
||||
success: function (json) {
|
||||
if (json.Code == 200) {
|
||||
_this.$message({
|
||||
message: "点数成功!",
|
||||
});
|
||||
layer.msg("点数成功!")
|
||||
var isExit = _this.tableData.findIndex(function (value) {
|
||||
return value.UniqueCode == _this.form.uniqueCode;
|
||||
});
|
||||
@ -103,19 +107,11 @@ var app = new Vue({
|
||||
_this.qtyPlaceholder = "数量";
|
||||
_this.$refs.uniqueCode.focus();
|
||||
} else {
|
||||
_this.$message({
|
||||
message: "失败!",
|
||||
type: "warning",
|
||||
duration: "10000",
|
||||
});
|
||||
layer.alert("失败!" + json.Msg);
|
||||
}
|
||||
},
|
||||
error: function (json) {
|
||||
_this.$message({
|
||||
message: "失败!",
|
||||
type: "error",
|
||||
duration: "10000",
|
||||
});
|
||||
layer.alert("失败!");
|
||||
},
|
||||
});
|
||||
},
|
||||
@ -137,10 +133,7 @@ var app = new Vue({
|
||||
_this.$refs.qty.focus();
|
||||
}
|
||||
else {
|
||||
this.$message({
|
||||
message: '唯一码' + data + '在此入库单据中不存在!',
|
||||
type: 'warning'
|
||||
});
|
||||
layer.alert( '唯一码' + data + '在此入库单据中不存在!')
|
||||
this.$refs['form'].resetFields();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
<wt:display field="Entity.AppointmentTime" />
|
||||
@* <wt:display field="Entity.Remark" /> *@
|
||||
</wt:row>
|
||||
<wt:grid vm="@Model.Details" height="300" hidden-checkbox="true" hidden-grid-index="true" use-local-data="true" hidden-panel="true" />
|
||||
<wt:grid vm="@Model.Details" height="300" hidden-checkbox="true" use-local-data="true" hidden-panel="true" />
|
||||
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:closebutton />
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
@model HHWMS.Web.ReceiptHeaderHistoryVM
|
||||
@model HHWMS.Web.ReceiptHeaderHistoryVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
@ -9,7 +9,7 @@
|
||||
<wt:display field="Entity.AppointmentTime" />
|
||||
<wt:display field="Entity.Remark" />
|
||||
</wt:row>
|
||||
<wt:grid vm="@Model.Details" height="300" hidden-checkbox="true" hidden-grid-index="true" use-local-data="true" hidden-panel="true" />
|
||||
<wt:grid vm="@Model.Details" height="300" hidden-checkbox="true" use-local-data="true" hidden-panel="true" />
|
||||
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:closebutton />
|
||||
|
||||
@ -44,6 +44,9 @@
|
||||
ref="tableData"
|
||||
height="450" border
|
||||
style="width: 100%">
|
||||
<el-table-column type="index"
|
||||
width="50">
|
||||
</el-table-column>
|
||||
<el-table-column fixed="left"
|
||||
label="操作"
|
||||
width="120"
|
||||
|
||||
@ -45,6 +45,9 @@
|
||||
<el-table :data="bindingData"
|
||||
ref="tableData"
|
||||
stripe max-height="450" border style="width: 100%">
|
||||
<el-table-column type="index"
|
||||
width="50">
|
||||
</el-table-column>
|
||||
<el-table-column fixed="left" label="操作" width="120" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button @@click.native.prevent="deleteRow(scope.$index, bindingData)"
|
||||
|
||||
@ -90,7 +90,6 @@ public class ShipOutController : BaseController
|
||||
public ActionResult Pick(string uniqueCode, decimal qty,string station)
|
||||
{
|
||||
var shipment = _unitWork.Find<ShipmentDetail>(x => x.UniqueCode.Equals(uniqueCode))
|
||||
.Include(x => x.ShipmentHeader)
|
||||
.FirstOrDefault();
|
||||
using (var tran = Wtm.DC.Database.BeginTransaction())
|
||||
{
|
||||
@ -100,15 +99,15 @@ public class ShipOutController : BaseController
|
||||
{
|
||||
return JsonMore(null, 500, "未找到该出库单!");
|
||||
}
|
||||
shipment.Status = ShipStatusEnum.拣货完成;
|
||||
shipment.UpdateTime = DateTime.Now;
|
||||
shipment.UpdateBy = Wtm.LoginUserInfo.ITCode;
|
||||
_unitWork.Update(shipment);
|
||||
|
||||
var header = _unitWork.Find<ShipmentHeader>(x => x.ID.Equals(shipment.ShipmentHeaderId))
|
||||
.Include(x => x.ShipmentDetails)
|
||||
.FirstOrDefault();
|
||||
|
||||
var detail = header.ShipmentDetails.First(x => x.ID == shipment.ID);
|
||||
detail.Status = ShipStatusEnum.拣货完成;
|
||||
detail.UpdateTime = DateTime.Now;
|
||||
detail.UpdateBy = Wtm.LoginUserInfo?.ITCode??"WMS";
|
||||
|
||||
if (!header.ShipmentDetails.Any(x => x.Status < ShipStatusEnum.拣货完成))
|
||||
{
|
||||
header.FirstStatus = ShipStatusEnum.拣货完成;
|
||||
@ -118,7 +117,7 @@ public class ShipOutController : BaseController
|
||||
header.FirstStatus = ShipStatusEnum.拣货中;
|
||||
}
|
||||
header.UpdateTime = DateTime.Now;
|
||||
header.UpdateBy = Wtm.LoginUserInfo.ITCode;
|
||||
header.UpdateBy = Wtm.LoginUserInfo?.ITCode??"WMS";
|
||||
_unitWork.Update(header);
|
||||
|
||||
var inv = _unitWork.FindSingle<Inventory>(x => x.UniqueCode.Equals(uniqueCode) && x.LocationCode == station);
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
<wt:display field="Entity.LastStatus" />
|
||||
<wt:display field="Entity.Remark" /> *@
|
||||
</wt:row>
|
||||
<wt:grid vm="@Model.Details" height="300" hidden-checkbox="true" hidden-grid-index="true" use-local-data="true" hidden-panel="true" />
|
||||
<wt:grid vm="@Model.Details" height="300" hidden-checkbox="true" use-local-data="true" hidden-panel="true" />
|
||||
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:closebutton />
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
@model HHWMS.Web.ShipmentHeaderHistoryVM
|
||||
@model HHWMS.Web.ShipmentHeaderHistoryVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
@ -6,7 +6,7 @@
|
||||
<wt:display field="Entity.Code" />
|
||||
<wt:display field="Entity.BillType" />
|
||||
</wt:row>
|
||||
<wt:grid vm="@Model.Details" height="300" hidden-checkbox="true" hidden-grid-index="true" use-local-data="true" hidden-panel="true" />
|
||||
<wt:grid vm="@Model.Details" height="300" hidden-checkbox="true" use-local-data="true" hidden-panel="true" />
|
||||
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:closebutton />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user