所有erp单据视图
This commit is contained in:
1 parent
f327041e9a
commit
e2dead6c3f
13 files changed
+864
-77
No files matched your search
@@ -17,11 +17,8 @@ namespace HHWMS.Web.Controllers;
|
|||||||
[ActionDescription("生产工单领料")]
|
[ActionDescription("生产工单领料")]
|
||||||
public class XWMSMFMController : BaseController
|
public class XWMSMFMController : BaseController
|
||||||
{
|
{
|
||||||
private readonly IUnitWork _unitWork;
|
public XWMSMFMController()
|
||||||
|
|
||||||
public XWMSMFMController(IUnitWork unitWork)
|
|
||||||
{
|
{
|
||||||
_unitWork = unitWork;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Search
|
#region Search
|
||||||
@@ -85,6 +82,7 @@ public class XWMSMFMController : BaseController
|
|||||||
RETEXTCOE_0 = x.Field<decimal>("RETEXTCOE_0"),
|
RETEXTCOE_0 = x.Field<decimal>("RETEXTCOE_0"),
|
||||||
RETQTY_0 = x.Field<decimal>("RETQTY_0"),
|
RETQTY_0 = x.Field<decimal>("RETQTY_0"),
|
||||||
USEQTY_0 = x.Field<decimal>("USEQTY_0"),
|
USEQTY_0 = x.Field<decimal>("USEQTY_0"),
|
||||||
|
THISQTYSTU = "",
|
||||||
WMD_USEQTY_0 = x.Field<decimal>("WMD_USEQTY_0"),
|
WMD_USEQTY_0 = x.Field<decimal>("WMD_USEQTY_0"),
|
||||||
}
|
}
|
||||||
).ToList();
|
).ToList();
|
||||||
@@ -92,4 +90,45 @@ public class XWMSMFMController : BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endregion Search
|
#endregion Search
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
[FixConnection(CsName = "hangyong")]
|
||||||
|
public ActionResult Create(List<XWMSMFM> data)
|
||||||
|
{
|
||||||
|
var _unitwork = new UnitWork(Wtm);
|
||||||
|
|
||||||
|
var shipment = new ShipmentHeader2();
|
||||||
|
shipment.Code = _unitwork.GetSerialNumber("SCC");
|
||||||
|
shipment.Type = "SCC";
|
||||||
|
shipment.FirstStatus = 0;
|
||||||
|
shipment.UserDef1 = data.FirstOrDefault().MFGFCY_0;
|
||||||
|
|
||||||
|
_unitwork.Add(shipment);
|
||||||
|
|
||||||
|
var detailList = new List<ShipmentDetail2>();
|
||||||
|
foreach (var item in data)
|
||||||
|
{
|
||||||
|
var detail = new ShipmentDetail2();
|
||||||
|
detail.ZoneCode = "L";
|
||||||
|
detail.ShipmentId = shipment.ID;
|
||||||
|
detail.ShipmentCode = shipment.Code;
|
||||||
|
detail.SourceCode = item.MFGNUM_0;
|
||||||
|
detail.SourceLine = item.MFGLIN_0.ToString();
|
||||||
|
detail.MaterialCode = item.ITMREF_0;
|
||||||
|
detail.MaterialName = item.ITMDES1_0;
|
||||||
|
detail.Lot = item.ITMDES2_0;
|
||||||
|
detail.Qty = item.THISQTYSTU;
|
||||||
|
detail.Unit = item.BOMSEQ_0.ToString();
|
||||||
|
//detail.PurchasQty = item.THISQTYUOM;
|
||||||
|
//detail.PurchasUnits = item.UOM_0;
|
||||||
|
//detail.InventoryStatus = item.STA_0;
|
||||||
|
//detail.Batch = _unitwork.GetSerialNumber("HYB", 5).Remove(3, 2);
|
||||||
|
detail.Status = 0;
|
||||||
|
detail.CreateTime = DateTime.Now;
|
||||||
|
detailList.Add(detail);
|
||||||
|
}
|
||||||
|
_unitwork.BatchAdd(detailList.ToArray());
|
||||||
|
|
||||||
|
return JsonMore(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -17,11 +17,8 @@ namespace HHWMS.Web.Controllers;
|
|||||||
[ActionDescription("采购退货")]
|
[ActionDescription("采购退货")]
|
||||||
public class XWMSPTHController : BaseController
|
public class XWMSPTHController : BaseController
|
||||||
{
|
{
|
||||||
private readonly IUnitWork _unitWork;
|
public XWMSPTHController()
|
||||||
|
|
||||||
public XWMSPTHController(IUnitWork unitWork)
|
|
||||||
{
|
{
|
||||||
_unitWork = unitWork;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Search
|
#region Search
|
||||||
@@ -93,4 +90,48 @@ public class XWMSPTHController : BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endregion Search
|
#endregion Search
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
[FixConnection(CsName = "hangyong")]
|
||||||
|
public ActionResult Create(List<XWMSPTH> data)
|
||||||
|
{
|
||||||
|
var _unitwork = new UnitWork(Wtm);
|
||||||
|
|
||||||
|
var shipment = new ShipmentHeader2();
|
||||||
|
shipment.Code = _unitwork.GetSerialNumber("CGT");
|
||||||
|
shipment.SourceCode = data.FirstOrDefault().POHNUM_0;
|
||||||
|
shipment.ShipTo = data.FirstOrDefault().BPSNUM_0;
|
||||||
|
shipment.Type = "CGT";
|
||||||
|
shipment.FirstStatus = 0;
|
||||||
|
shipment.AppointmentTime = data.FirstOrDefault().RCPDAT_0;
|
||||||
|
shipment.UserDef1 = data.FirstOrDefault().PRHFCY_0;
|
||||||
|
|
||||||
|
_unitwork.Add(shipment);
|
||||||
|
|
||||||
|
var detailList = new List<ShipmentDetail2>();
|
||||||
|
foreach (var item in data)
|
||||||
|
{
|
||||||
|
var detail = new ShipmentDetail2();
|
||||||
|
detail.ZoneCode = "L";
|
||||||
|
detail.ShipmentId = shipment.ID;
|
||||||
|
detail.ShipmentCode = shipment.Code;
|
||||||
|
detail.SourceCode = item.PTHNUM_0;
|
||||||
|
detail.SourceLine = item.PTDLIN_0.ToString();
|
||||||
|
detail.MaterialCode = item.ITMREF_0;
|
||||||
|
detail.MaterialName = item.ITMDES1_0;
|
||||||
|
detail.Lot = item.ITMDES2_0;
|
||||||
|
detail.Qty = item.THISQTYSTU;
|
||||||
|
detail.Unit = item.STU_0;
|
||||||
|
detail.PurchasQty = item.THISQTYUOM;
|
||||||
|
detail.PurchasUnits = item.UOM_0;
|
||||||
|
detail.InventoryStatus = item.STA_0;
|
||||||
|
detail.Batch = _unitwork.GetSerialNumber("HYB", 5).Remove(3, 2);
|
||||||
|
detail.Status = 0;
|
||||||
|
detail.CreateTime = DateTime.Now;
|
||||||
|
detailList.Add(detail);
|
||||||
|
}
|
||||||
|
_unitwork.BatchAdd(detailList.ToArray());
|
||||||
|
|
||||||
|
return JsonMore(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -17,11 +17,9 @@ namespace HHWMS.Web.Controllers;
|
|||||||
[ActionDescription("销售订单列表")]
|
[ActionDescription("销售订单列表")]
|
||||||
public class XWMSSOHController : BaseController
|
public class XWMSSOHController : BaseController
|
||||||
{
|
{
|
||||||
private readonly IUnitWork _unitWork;
|
|
||||||
|
|
||||||
public XWMSSOHController(IUnitWork unitWork)
|
public XWMSSOHController()
|
||||||
{
|
{
|
||||||
_unitWork = unitWork;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Search
|
#region Search
|
||||||
@@ -71,6 +69,7 @@ public class XWMSSOHController : BaseController
|
|||||||
YITMDES4_0 = x.Field<string>("YITMDES4_0"),
|
YITMDES4_0 = x.Field<string>("YITMDES4_0"),
|
||||||
QTY_0 = x.Field<decimal>("QTY_0"),
|
QTY_0 = x.Field<decimal>("QTY_0"),
|
||||||
NODLQTY_0 = x.Field<decimal>("NODLQTY_0"),
|
NODLQTY_0 = x.Field<decimal>("NODLQTY_0"),
|
||||||
|
THISQTYSTU = "",
|
||||||
STU_0 = x.Field<string>("STU_0"),
|
STU_0 = x.Field<string>("STU_0"),
|
||||||
BPAADD_0 = x.Field<string>("BPAADD_0")
|
BPAADD_0 = x.Field<string>("BPAADD_0")
|
||||||
}
|
}
|
||||||
@@ -79,4 +78,48 @@ public class XWMSSOHController : BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endregion Search
|
#endregion Search
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
[FixConnection(CsName = "hangyong")]
|
||||||
|
public ActionResult Create(List<XWMSSOH> data)
|
||||||
|
{
|
||||||
|
var _unitwork = new UnitWork(Wtm);
|
||||||
|
|
||||||
|
var shipment = new ShipmentHeader2();
|
||||||
|
shipment.Code = _unitwork.GetSerialNumber("XSC");
|
||||||
|
shipment.Type = "XSC";
|
||||||
|
shipment.ShipTo = data.FirstOrDefault().BPCORD_0;
|
||||||
|
shipment.FirstStatus = 0;
|
||||||
|
shipment.AppointmentTime = data.FirstOrDefault().ORDDAT_0;
|
||||||
|
shipment.UserDef1 = $"{data.FirstOrDefault().SALFCY_0} {data.FirstOrDefault().BPAADD_0}";
|
||||||
|
|
||||||
|
|
||||||
|
_unitwork.Add(shipment);
|
||||||
|
|
||||||
|
var detailList = new List<ShipmentDetail2>();
|
||||||
|
foreach (var item in data)
|
||||||
|
{
|
||||||
|
var detail = new ShipmentDetail2();
|
||||||
|
detail.ZoneCode = "L";
|
||||||
|
detail.ShipmentId = shipment.ID;
|
||||||
|
detail.ShipmentCode = shipment.Code;
|
||||||
|
detail.SourceCode = item.SOHNUM_0;
|
||||||
|
detail.SourceLine = item.SOPLIN_0.ToString();
|
||||||
|
detail.MaterialCode = item.ITMREF_0;
|
||||||
|
detail.MaterialName = item.ITMDES1_0;
|
||||||
|
detail.Lot = item.ITMDES2_0;
|
||||||
|
detail.Qty = item.THISQTYSTU;
|
||||||
|
detail.Unit = item.STU_0;
|
||||||
|
//detail.PurchasQty = item.THISQTYUOM;
|
||||||
|
//detail.PurchasUnits = item.UOM_0;
|
||||||
|
//detail.InventoryStatus = item.STA_0;
|
||||||
|
//detail.Batch = _unitwork.GetSerialNumber("HYB", 5).Remove(3, 2);
|
||||||
|
detail.Status = 0;
|
||||||
|
detail.CreateTime = DateTime.Now;
|
||||||
|
detailList.Add(detail);
|
||||||
|
}
|
||||||
|
_unitwork.BatchAdd(detailList.ToArray());
|
||||||
|
|
||||||
|
return JsonMore(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -63,6 +63,8 @@
|
|||||||
<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)" height="650" stripe border
|
<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)" height="650" stripe border
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
size="small"
|
size="small"
|
||||||
|
ref="tableData"
|
||||||
|
v-loading="loading"
|
||||||
@@cell-mouse-enter="handleCellEnter"
|
@@cell-mouse-enter="handleCellEnter"
|
||||||
@@cell-mouse-leave="handleCellLeave"
|
@@cell-mouse-leave="handleCellLeave"
|
||||||
@@selection-change="handleSelectionChange">
|
@@selection-change="handleSelectionChange">
|
||||||
@@ -74,13 +76,19 @@
|
|||||||
<el-table-column label="工单行号" align="center" prop="MFGLIN_0"></el-table-column>
|
<el-table-column label="工单行号" align="center" prop="MFGLIN_0"></el-table-column>
|
||||||
<el-table-column label="产成品" width="180" align="center" prop="MFIITMREF_0"></el-table-column>
|
<el-table-column label="产成品" width="180" align="center" prop="MFIITMREF_0"></el-table-column>
|
||||||
<el-table-column label="产成品名称" width="150" align="center" prop="MFIITMDES1_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="产成品名称" width="150" align="center" prop="MFIITMDES1_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="产成品代号" width="150" align="center" prop="MFIITMDES2_0"></el-table-column>
|
<el-table-column label="产成品代号" width="150" align="center" prop="MFIITMDES2_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="产品" width="150" align="center" prop="ITMREF_0"></el-table-column>
|
<el-table-column label="产品" width="150" align="center" prop="ITMREF_0"></el-table-column>
|
||||||
<el-table-column label="产品名称" width="100" align="center" prop="ITMDES1_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="产品名称" width="100" align="center" prop="ITMDES1_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="产品代号" width="100" align="center" prop="ITMDES2_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="产品代号" width="100" align="center" prop="ITMDES2_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="产品材料" width="150" align="center" prop="ITMDES3_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="产品材料" width="150" align="center" prop="ITMDES3_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="需求数量" width="100" align="center" prop="RETQTY_0"></el-table-column>
|
<el-table-column label="需求数量" width="100" align="center" prop="RETQTY_0"></el-table-column>
|
||||||
<el-table-column label="已消耗数量" width="100" align="center" prop="USEQTY_0"></el-table-column>
|
<el-table-column label="已消耗数量" width="100" align="center" prop="USEQTY_0"></el-table-column>
|
||||||
|
<el-table-column label="出库量" width="100" align="center" prop="THISQTYSTU">
|
||||||
|
<div class="item" slot-scope="scope">
|
||||||
|
<el-input class="item__input" v-model="scope.row.THISQTYSTU" placeholder="请输入内容"></el-input>
|
||||||
|
<div class="item__txt">{{scope.row.THISQTYSTU}}</div>
|
||||||
|
</div>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="工单物料比例数量" width="100" align="center" prop="RETEXTCOE_0"></el-table-column>
|
<el-table-column label="工单物料比例数量" width="100" align="center" prop="RETEXTCOE_0"></el-table-column>
|
||||||
<el-table-column label="项目号" width="150" align="center" prop="PJT_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="项目号" width="150" align="center" prop="PJT_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="项目名称" width="180" align="center" prop="OPPEXTNUM_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="项目名称" width="180" align="center" prop="OPPEXTNUM_0" show-overflow-tooltip></el-table-column>
|
||||||
@@ -113,7 +121,7 @@
|
|||||||
materialcode: '',
|
materialcode: '',
|
||||||
gdbill: '',
|
gdbill: '',
|
||||||
gdline:'',
|
gdline:'',
|
||||||
ms:''
|
ms:'1'
|
||||||
},
|
},
|
||||||
//1:正常扣料,2:倒扣料,3:不管理
|
//1:正常扣料,2:倒扣料,3:不管理
|
||||||
msList: [{
|
msList: [{
|
||||||
@@ -127,19 +135,20 @@
|
|||||||
label: '不管理'
|
label: '不管理'
|
||||||
}],
|
}],
|
||||||
addressList: [{
|
addressList: [{
|
||||||
value: 'QCT',
|
value: 'QDB',
|
||||||
label: 'QCT'
|
label: 'QDB'
|
||||||
}, {
|
}, {
|
||||||
value: 'SBD',
|
value: 'SBD',
|
||||||
label: 'SBD'
|
label: 'SBD'
|
||||||
}],
|
}],
|
||||||
|
loading: false,
|
||||||
tableData: [],
|
tableData: [],
|
||||||
currentPage: 1, // 当前页码
|
currentPage: 1, // 当前页码
|
||||||
total: 20, // 总条数
|
total: 20, // 总条数
|
||||||
pageSize: 20, // 每页的数据条数
|
pageSize: 20, // 每页的数据条数
|
||||||
multipleSelection: [],
|
multipleSelection: [],
|
||||||
// 需要编辑的属性
|
// 需要编辑的属性
|
||||||
editProp: ['POHFCY_0']
|
editProp: ['THISQTYSTU']
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
@@ -180,6 +189,13 @@
|
|||||||
cell.querySelector('.item__input').style.display = 'none'
|
cell.querySelector('.item__input').style.display = 'none'
|
||||||
cell.querySelector('.item__txt').style.display = 'block'
|
cell.querySelector('.item__txt').style.display = 'block'
|
||||||
}
|
}
|
||||||
|
if (property == "THISQTYSTU") {
|
||||||
|
// 库存单位除以系数
|
||||||
|
row.THISQTYSTU = row.THISQTYSTU * row.RETEXTCOE_0
|
||||||
|
if (row.THISQTYSTU > row.RETQTY_0 - row.USEQTY_0) {
|
||||||
|
row.THISQTYSTU = row.THISQTYSTU;
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//每页条数改变时触发 选择一页显示多少行
|
//每页条数改变时触发 选择一页显示多少行
|
||||||
handleSizeChange(val) {
|
handleSizeChange(val) {
|
||||||
@@ -195,6 +211,7 @@
|
|||||||
},
|
},
|
||||||
search() {
|
search() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
_this.loading = true;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
@@ -208,34 +225,62 @@
|
|||||||
},
|
},
|
||||||
url: "/xwms/XWMSMFM/Search",
|
url: "/xwms/XWMSMFM/Search",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
app.tableData = json.Data;
|
_this.tableData = json.Data;
|
||||||
|
_this.loading = false;
|
||||||
},
|
},
|
||||||
error: function (json) {
|
error: function (json) {
|
||||||
alert("加载失败");
|
_this.$message.error("加载失败");
|
||||||
|
_this.loading = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
create() {
|
create() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
$.ajax({
|
_this.$confirm('注意:您确认要对此单据进行创建采购退货吗?', '提示', {
|
||||||
type: "post",
|
confirmButtonText: '确定',
|
||||||
dataType: "json",
|
cancelButtonText: '取消',
|
||||||
data: {
|
type: 'warning'
|
||||||
data: _this.multipleSelection
|
}).then(() => {
|
||||||
},
|
//加校验
|
||||||
url: "/xwms/XWMSMFM/Create",
|
if (_this.multipleSelection.length == 0) {
|
||||||
success: function (json) {
|
_this.$message.error("至少选择一张单据!");
|
||||||
if (json.Code == 200) {
|
return;
|
||||||
_this.$message({
|
|
||||||
message: "创建成功!"
|
|
||||||
});
|
|
||||||
_this.$refs.multipleTable.clearSelection();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error: function (json) {
|
|
||||||
alert("加载失败");
|
|
||||||
}
|
}
|
||||||
|
if (_this.verify(_this.multipleSelection)) {
|
||||||
|
_this.$message.error("请选择同一张单据!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$.ajax({
|
||||||
|
type: "post",
|
||||||
|
dataType: "json",
|
||||||
|
data: {
|
||||||
|
data: _this.multipleSelection
|
||||||
|
},
|
||||||
|
url: "/xwms/XWMSMFM/Create",
|
||||||
|
success: function (json) {
|
||||||
|
if (json.Code == 200) {
|
||||||
|
_this.$message("创建成功!");
|
||||||
|
_this.$refs.tableData.clearSelection();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
_this.$message.error("创建失败!" + json.Msg);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (json) {
|
||||||
|
_this.$message.error("创建失败!");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}).catch(() => {
|
||||||
|
this.$message({
|
||||||
|
type: 'info',
|
||||||
|
message: '已取消!'
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
verify(array) {
|
||||||
|
const tmp = new Set();
|
||||||
|
array.forEach(x => tmp.add(x.MFGNUM_0));
|
||||||
|
return tmp.size > 1 ? true : false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -395,6 +395,7 @@
|
|||||||
},
|
},
|
||||||
error: function (json) {
|
error: function (json) {
|
||||||
_this.$message.error("加载失败");
|
_this.$message.error("加载失败");
|
||||||
|
_this.loading = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -56,6 +56,8 @@
|
|||||||
<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)" height="650" stripe border
|
<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)" height="650" stripe border
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
size="small"
|
size="small"
|
||||||
|
ref="tableData"
|
||||||
|
v-loading="loading"
|
||||||
@@cell-mouse-enter="handleCellEnter"
|
@@cell-mouse-enter="handleCellEnter"
|
||||||
@@cell-mouse-leave="handleCellLeave"
|
@@cell-mouse-leave="handleCellLeave"
|
||||||
@@selection-change="handleSelectionChange">
|
@@selection-change="handleSelectionChange">
|
||||||
@@ -86,7 +88,12 @@
|
|||||||
<el-table-column label="库存单位" width="100" align="center" prop="STU_0"></el-table-column>
|
<el-table-column label="库存单位" width="100" align="center" prop="STU_0"></el-table-column>
|
||||||
<el-table-column label="已退货库存数量" align="center" prop="RTNQTYSTU_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="已退货库存数量" align="center" prop="RTNQTYSTU_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="收货单存货/采购数量系统" align="center" prop="UOMSTUCOE_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="收货单存货/采购数量系统" align="center" prop="UOMSTUCOE_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="本次退货量(库存单位)" width="100" align="center" prop="THISQTYSTU"></el-table-column>
|
<el-table-column label="本次退货量(库存单位)" width="100" align="center" prop="THISQTYSTU">
|
||||||
|
<div class="item" slot-scope="scope">
|
||||||
|
<el-input class="item__input" v-model="scope.row.THISQTYSTU" placeholder="请输入内容"></el-input>
|
||||||
|
<div class="item__txt">{{scope.row.THISQTYSTU}}</div>
|
||||||
|
</div>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="退货量(采购单位)" width="100" align="center" prop="THISQTYUOM"></el-table-column>
|
<el-table-column label="退货量(采购单位)" width="100" align="center" prop="THISQTYUOM"></el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-pagination align='center'
|
<el-pagination align='center'
|
||||||
@@ -119,13 +126,14 @@
|
|||||||
value: 'SBD',
|
value: 'SBD',
|
||||||
label: 'SBD'
|
label: 'SBD'
|
||||||
}],
|
}],
|
||||||
|
loading: false,
|
||||||
tableData: [],
|
tableData: [],
|
||||||
currentPage: 1, // 当前页码
|
currentPage: 1, // 当前页码
|
||||||
total: 20, // 总条数
|
total: 20, // 总条数
|
||||||
pageSize: 20, // 每页的数据条数
|
pageSize: 20, // 每页的数据条数
|
||||||
multipleSelection: [],
|
multipleSelection: [],
|
||||||
// 需要编辑的属性
|
// 需要编辑的属性
|
||||||
editProp: ['POHFCY_0']
|
editProp: ['THISQTYSTU']
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
@@ -166,6 +174,16 @@
|
|||||||
cell.querySelector('.item__input').style.display = 'none'
|
cell.querySelector('.item__input').style.display = 'none'
|
||||||
cell.querySelector('.item__txt').style.display = 'block'
|
cell.querySelector('.item__txt').style.display = 'block'
|
||||||
}
|
}
|
||||||
|
if (property == "THISQTYSTU") {
|
||||||
|
// 库存单位除以系数
|
||||||
|
if (row.THISQTYSTU > row.QTYSTU_0) {
|
||||||
|
row.THISQTYSTU = row.QTYSTU_0;
|
||||||
|
this.$message.error("不能超出单据数量");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
row.THISQTYUOM = row.THISQTYSTU / row.UOMSTUCOE_0;
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//每页条数改变时触发 选择一页显示多少行
|
//每页条数改变时触发 选择一页显示多少行
|
||||||
handleSizeChange(val) {
|
handleSizeChange(val) {
|
||||||
@@ -181,6 +199,7 @@
|
|||||||
},
|
},
|
||||||
search() {
|
search() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
_this.loading = true;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
@@ -193,34 +212,62 @@
|
|||||||
},
|
},
|
||||||
url: "/xwms/XWMSPTH/Search",
|
url: "/xwms/XWMSPTH/Search",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
app.tableData = json.Data;
|
_this.tableData = json.Data;
|
||||||
|
_this.loading = false;
|
||||||
},
|
},
|
||||||
error: function (json) {
|
error: function (json) {
|
||||||
alert("加载失败");
|
_this.$message.error("加载失败");
|
||||||
|
_this.loading = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
create() {
|
create() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
$.ajax({
|
_this.$confirm('注意:您确认要对此单据进行创建采购退货吗?', '提示', {
|
||||||
type: "post",
|
confirmButtonText: '确定',
|
||||||
dataType: "json",
|
cancelButtonText: '取消',
|
||||||
data: {
|
type: 'warning'
|
||||||
data: _this.multipleSelection
|
}).then(() => {
|
||||||
},
|
//加校验
|
||||||
url: "/xwms/XWMSPTH/Create",
|
if (_this.multipleSelection.length == 0) {
|
||||||
success: function (json) {
|
_this.$message.error("至少选择一张单据!");
|
||||||
if (json.Code == 200) {
|
return;
|
||||||
_this.$message({
|
|
||||||
message: "创建成功!"
|
|
||||||
});
|
|
||||||
_this.$refs.multipleTable.clearSelection();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error: function (json) {
|
|
||||||
alert("加载失败");
|
|
||||||
}
|
}
|
||||||
|
if (_this.verify(_this.multipleSelection)) {
|
||||||
|
_this.$message.error("请选择同一张单据!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$.ajax({
|
||||||
|
type: "post",
|
||||||
|
dataType: "json",
|
||||||
|
data: {
|
||||||
|
data: _this.multipleSelection
|
||||||
|
},
|
||||||
|
url: "/xwms/XWMSPTH/Create",
|
||||||
|
success: function (json) {
|
||||||
|
if (json.Code == 200) {
|
||||||
|
_this.$message("创建成功!");
|
||||||
|
_this.$refs.tableData.clearSelection();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
_this.$message.error("创建失败!" + json.Msg);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (json) {
|
||||||
|
_this.$message.error("创建失败!");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}).catch(() => {
|
||||||
|
this.$message({
|
||||||
|
type: 'info',
|
||||||
|
message: '已取消!'
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
verify(array) {
|
||||||
|
const tmp = new Set();
|
||||||
|
array.forEach(x => tmp.add(x.PTHNUM_0));
|
||||||
|
return tmp.size > 1 ? true : false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -53,6 +53,8 @@
|
|||||||
<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)" height="650" stripe border
|
<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)" height="650" stripe border
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
size="small"
|
size="small"
|
||||||
|
ref="tableData"
|
||||||
|
v-loading="loading"
|
||||||
@@cell-mouse-enter="handleCellEnter"
|
@@cell-mouse-enter="handleCellEnter"
|
||||||
@@cell-mouse-leave="handleCellLeave"
|
@@cell-mouse-leave="handleCellLeave"
|
||||||
@@selection-change="handleSelectionChange">
|
@@selection-change="handleSelectionChange">
|
||||||
@@ -71,7 +73,12 @@
|
|||||||
<el-table-column label="材料" width="150" align="center" prop="ITMDES3_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="材料" width="150" align="center" prop="ITMDES3_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="数量" width="100" align="center" prop="QTY_0"></el-table-column>
|
<el-table-column label="数量" width="100" align="center" prop="QTY_0"></el-table-column>
|
||||||
<el-table-column label="未发数量" width="100" align="center" prop="NODLQTY_0"></el-table-column>
|
<el-table-column label="未发数量" width="100" align="center" prop="NODLQTY_0"></el-table-column>
|
||||||
<el-table-column label="本次发货量" width="100" align="center" prop="THISQTY"></el-table-column>
|
<el-table-column label="本次发货量" width="100" align="center" prop="THISQTYSTU">
|
||||||
|
<div class="item" slot-scope="scope">
|
||||||
|
<el-input class="item__input" v-model="scope.row.THISQTYSTU" placeholder="请输入内容"></el-input>
|
||||||
|
<div class="item__txt">{{scope.row.THISQTYSTU}}</div>
|
||||||
|
</div>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="库存单位" width="150" align="center" prop="STU_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="库存单位" width="150" align="center" prop="STU_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="备注" width="150" align="center" prop="YITMDES4_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="备注" width="150" align="center" prop="YITMDES4_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="发货地址" width="100" align="center" prop="BPAADD_0"></el-table-column>
|
<el-table-column label="发货地址" width="100" align="center" prop="BPAADD_0"></el-table-column>
|
||||||
@@ -106,13 +113,14 @@
|
|||||||
value: 'SBD',
|
value: 'SBD',
|
||||||
label: 'SBD'
|
label: 'SBD'
|
||||||
}],
|
}],
|
||||||
|
loading: false,
|
||||||
tableData: [],
|
tableData: [],
|
||||||
currentPage: 1, // 当前页码
|
currentPage: 1, // 当前页码
|
||||||
total: 20, // 总条数
|
total: 20, // 总条数
|
||||||
pageSize: 20, // 每页的数据条数
|
pageSize: 20, // 每页的数据条数
|
||||||
multipleSelection: [],
|
multipleSelection: [],
|
||||||
// 需要编辑的属性
|
// 需要编辑的属性
|
||||||
editProp: ['POHFCY_0']
|
editProp: ['THISQTYSTU']
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
@@ -153,6 +161,12 @@
|
|||||||
cell.querySelector('.item__input').style.display = 'none'
|
cell.querySelector('.item__input').style.display = 'none'
|
||||||
cell.querySelector('.item__txt').style.display = 'block'
|
cell.querySelector('.item__txt').style.display = 'block'
|
||||||
}
|
}
|
||||||
|
if (property == "THISQTYSTU") {
|
||||||
|
// 库存单位除以系数
|
||||||
|
if (row.THISQTYSTU > row.NODLQTY_0) {
|
||||||
|
row.THISQTYSTU = row.NODLQTY_0;
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//每页条数改变时触发 选择一页显示多少行
|
//每页条数改变时触发 选择一页显示多少行
|
||||||
handleSizeChange(val) {
|
handleSizeChange(val) {
|
||||||
@@ -168,6 +182,7 @@
|
|||||||
},
|
},
|
||||||
search() {
|
search() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
_this.loading = true;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
@@ -179,34 +194,62 @@
|
|||||||
},
|
},
|
||||||
url: "/xwms/XWMSSOH/Search",
|
url: "/xwms/XWMSSOH/Search",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
app.tableData = json.Data;
|
_this.tableData = json.Data;
|
||||||
|
_this.loading = false;
|
||||||
},
|
},
|
||||||
error: function (json) {
|
error: function (json) {
|
||||||
alert("加载失败");
|
_this.$message.error("加载失败");
|
||||||
|
_this.loading = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
create() {
|
create() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
$.ajax({
|
_this.$confirm('注意:您确认要对此单据进行创建领料出库单吗?', '提示', {
|
||||||
type: "post",
|
confirmButtonText: '确定',
|
||||||
dataType: "json",
|
cancelButtonText: '取消',
|
||||||
data: {
|
type: 'warning'
|
||||||
data: _this.multipleSelection
|
}).then(() => {
|
||||||
},
|
//加校验
|
||||||
url: "/xwms/XWMSSOH/Create",
|
if (_this.multipleSelection.length == 0) {
|
||||||
success: function (json) {
|
_this.$message.error("至少选择一张单据!");
|
||||||
if (json.Code == 200) {
|
return;
|
||||||
_this.$message({
|
|
||||||
message: "创建成功!"
|
|
||||||
});
|
|
||||||
_this.$refs.multipleTable.clearSelection();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error: function (json) {
|
|
||||||
alert("加载失败");
|
|
||||||
}
|
}
|
||||||
|
if (_this.verify(_this.multipleSelection)) {
|
||||||
|
_this.$message.error("请选择同一张单据!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$.ajax({
|
||||||
|
type: "post",
|
||||||
|
dataType: "json",
|
||||||
|
data: {
|
||||||
|
data: _this.multipleSelection
|
||||||
|
},
|
||||||
|
url: "/xwms/XWMSSOH/Create",
|
||||||
|
success: function (json) {
|
||||||
|
if (json.Code == 200) {
|
||||||
|
_this.$message("创建成功!");
|
||||||
|
_this.$refs.tableData.clearSelection();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
_this.$message.error("创建失败!" + json.Msg);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (json) {
|
||||||
|
_this.$message.error("创建失败!");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}).catch(() => {
|
||||||
|
this.$message({
|
||||||
|
type: 'info',
|
||||||
|
message: '已取消!'
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
verify(array) {
|
||||||
|
const tmp = new Set();
|
||||||
|
array.forEach(x => tmp.add(x.SOHNUM_0));
|
||||||
|
return tmp.size > 1 ? true : false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -57,6 +57,9 @@ namespace HHWMS.Web
|
|||||||
|
|
||||||
public DbSet<ReceiptHeader2> ReceiptHeader2s { get; set; }
|
public DbSet<ReceiptHeader2> ReceiptHeader2s { get; set; }
|
||||||
public DbSet<ReceiptDetail2> ReceiptDetail2s { get; set; }
|
public DbSet<ReceiptDetail2> ReceiptDetail2s { get; set; }
|
||||||
|
|
||||||
|
public DbSet<ShipmentHeader2> ShipmentHeader2s { get; set; }
|
||||||
|
public DbSet<ShipmentDetail2> ShipmentDetail2s { get; set; }
|
||||||
public override async Task<bool> DataInit(object allModules, bool IsSpa)
|
public override async Task<bool> DataInit(object allModules, bool IsSpa)
|
||||||
{
|
{
|
||||||
var state = await base.DataInit(allModules, IsSpa);
|
var state = await base.DataInit(allModules, IsSpa);
|
||||||
|
|||||||
@@ -0,0 +1,234 @@
|
|||||||
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using WalkingTec.Mvvm.Core;
|
||||||
|
|
||||||
|
namespace HHWMS.Web.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 出库明细表
|
||||||
|
/// </summary>
|
||||||
|
[Table("shipment_detail")]
|
||||||
|
public partial class ShipmentDetail2 : BasePoco
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
|
public new int ID { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 库区
|
||||||
|
/// </summary>
|
||||||
|
[Column("zoneCode")]
|
||||||
|
public string ZoneCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 货主id
|
||||||
|
/// </summary>
|
||||||
|
[Column("companyId")]
|
||||||
|
public int? CompanyId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 货主编码
|
||||||
|
/// </summary>
|
||||||
|
[Column("companyCode")]
|
||||||
|
public string CompanyCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 上游系统单号
|
||||||
|
/// </summary>
|
||||||
|
[Column("sourceCode")]
|
||||||
|
public string SourceCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 供应商编码
|
||||||
|
/// </summary>
|
||||||
|
[Column("supplierCode")]
|
||||||
|
public string SupplierCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 供应商名称
|
||||||
|
/// </summary>
|
||||||
|
[Column("supplierName")]
|
||||||
|
public string SupplierName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 订单号
|
||||||
|
/// </summary>
|
||||||
|
[Column("cPoCode")]
|
||||||
|
public string CPoCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 工作令号
|
||||||
|
/// </summary>
|
||||||
|
[Column("moCode")]
|
||||||
|
public string MoCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 上游系统行号
|
||||||
|
/// </summary>
|
||||||
|
[Column("sourceLine")]
|
||||||
|
public string SourceLine { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 出库单id
|
||||||
|
/// </summary>
|
||||||
|
[Column("shipmentId")]
|
||||||
|
public int? ShipmentId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 出库单编码
|
||||||
|
/// </summary>
|
||||||
|
[Column("shipmentCode")]
|
||||||
|
public string ShipmentCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 物料Id
|
||||||
|
/// </summary>
|
||||||
|
[Column("materialId")]
|
||||||
|
public int? MaterialId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 物料编码
|
||||||
|
/// </summary>
|
||||||
|
[Column("materialCode")]
|
||||||
|
public string MaterialCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 物料名称
|
||||||
|
/// </summary>
|
||||||
|
[Column("materialName")]
|
||||||
|
public string MaterialName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 批次
|
||||||
|
/// </summary>
|
||||||
|
[Column("batch")]
|
||||||
|
public string Batch { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 批号----规格
|
||||||
|
/// </summary>
|
||||||
|
[Column("lot")]
|
||||||
|
public string Lot { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// SN
|
||||||
|
/// </summary>
|
||||||
|
[Column("sn")]
|
||||||
|
public string Sn { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 项目号
|
||||||
|
/// </summary>
|
||||||
|
[Column("project")]
|
||||||
|
public string Project { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 生产日期
|
||||||
|
/// </summary>
|
||||||
|
[Column("manufactureDate")]
|
||||||
|
public System.DateTime? ManufactureDate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 失效日期
|
||||||
|
/// </summary>
|
||||||
|
[Column("expirationDate")]
|
||||||
|
public System.DateTime? ExpirationDate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 入库日期
|
||||||
|
/// </summary>
|
||||||
|
[Column("agingDate")]
|
||||||
|
public System.DateTime? AgingDate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 库存状态
|
||||||
|
/// </summary>
|
||||||
|
[Column("inventoryStatus")]
|
||||||
|
public string InventoryStatus { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 发货数量
|
||||||
|
/// </summary>
|
||||||
|
[Column("qty")]
|
||||||
|
public decimal? Qty { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 已出数量
|
||||||
|
/// </summary>
|
||||||
|
[Column("qtyCompleted")]
|
||||||
|
public decimal? QtyCompleted { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 单位
|
||||||
|
/// </summary>
|
||||||
|
[Column("unit")]
|
||||||
|
public string Unit { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 物料单价
|
||||||
|
/// </summary>
|
||||||
|
[Column("price")]
|
||||||
|
public decimal? Price { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 状态
|
||||||
|
/// </summary>
|
||||||
|
[Column("status")]
|
||||||
|
public int? Status { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[Column("deleted")]
|
||||||
|
public bool? Deleted { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[Column("autoId")]
|
||||||
|
public int? AutoId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 自定义字段1---宽度
|
||||||
|
/// </summary>
|
||||||
|
[Column("userDef1")]
|
||||||
|
public string UserDef1 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 自定义字段2----片厚
|
||||||
|
/// </summary>
|
||||||
|
[Column("userDef2")]
|
||||||
|
public string UserDef2 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 自定义字段3
|
||||||
|
/// </summary>
|
||||||
|
[Column("userDef3")]
|
||||||
|
public string UserDef3 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 已分配数量
|
||||||
|
/// </summary>
|
||||||
|
[Column("qtyDivided")]
|
||||||
|
public decimal? QtyDivided { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 需求地点
|
||||||
|
/// </summary>
|
||||||
|
[Column("requireAddr")]
|
||||||
|
public string RequireAddr { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 采购数量
|
||||||
|
/// </summary>
|
||||||
|
[Column("purchasQty")]
|
||||||
|
public decimal? PurchasQty { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 采购单位
|
||||||
|
/// </summary>
|
||||||
|
[Column("purchasUnits")]
|
||||||
|
public string PurchasUnits { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,156 @@
|
|||||||
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using WalkingTec.Mvvm.Core;
|
||||||
|
|
||||||
|
namespace HHWMS.Web.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 出库单主表
|
||||||
|
/// </summary>
|
||||||
|
[Table("shipment_header")]
|
||||||
|
public class ShipmentHeader2 : BasePoco
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
|
public new int ID { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 出库单号
|
||||||
|
/// </summary>
|
||||||
|
[Column("code")]
|
||||||
|
public string Code { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 货主id
|
||||||
|
/// </summary>
|
||||||
|
[Column("companyId")]
|
||||||
|
public int? CompanyId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 货主code
|
||||||
|
/// </summary>
|
||||||
|
[Column("companyCode")]
|
||||||
|
public string CompanyCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 上游系统单号
|
||||||
|
/// </summary>
|
||||||
|
[Column("sourceCode")]
|
||||||
|
public string SourceCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 上游平台
|
||||||
|
/// </summary>
|
||||||
|
[Column("sourcePlatform")]
|
||||||
|
public string SourcePlatform { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 出库单类型
|
||||||
|
/// </summary>
|
||||||
|
[Column("type")]
|
||||||
|
public string Type { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 客户编码
|
||||||
|
/// </summary>
|
||||||
|
[Column("shipTo")]
|
||||||
|
public string ShipTo { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 优先级
|
||||||
|
/// </summary>
|
||||||
|
[Column("priority")]
|
||||||
|
public int? Priority { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 发货站台
|
||||||
|
/// </summary>
|
||||||
|
[Column("station")]
|
||||||
|
public string Station { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 总数量
|
||||||
|
/// </summary>
|
||||||
|
[Column("totalQty")]
|
||||||
|
public decimal? TotalQty { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 总行数
|
||||||
|
/// </summary>
|
||||||
|
[Column("totalLines")]
|
||||||
|
public int? TotalLines { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 备注
|
||||||
|
/// </summary>
|
||||||
|
[Column("remark")]
|
||||||
|
public string Remark { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 上传备注
|
||||||
|
/// </summary>
|
||||||
|
[Column("uploadremark")]
|
||||||
|
public string Uploadremark { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 上传时间
|
||||||
|
/// </summary>
|
||||||
|
[Column("uploadTime")]
|
||||||
|
public System.DateTime? UploadTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 发货预约时间
|
||||||
|
/// </summary>
|
||||||
|
[Column("appointmentTime")]
|
||||||
|
public System.DateTime? AppointmentTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 单据头状态
|
||||||
|
/// </summary>
|
||||||
|
[Column("firstStatus")]
|
||||||
|
public int? FirstStatus { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 单据尾状态
|
||||||
|
/// </summary>
|
||||||
|
[Column("lastStatus")]
|
||||||
|
public int? LastStatus { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// upload状态
|
||||||
|
/// </summary>
|
||||||
|
[Column("uploadStatus")]
|
||||||
|
public int? UploadStatus { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[Column("enable")]
|
||||||
|
public bool? Enable { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
[Column("deleted")]
|
||||||
|
public bool? Deleted { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 自定义字段1---分解状态
|
||||||
|
/// </summary>
|
||||||
|
[Column("userDef1")]
|
||||||
|
public string UserDef1 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 自定义字段2---领料仓库
|
||||||
|
/// </summary>
|
||||||
|
[Column("userDef2")]
|
||||||
|
public string UserDef2 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 自定义字段3
|
||||||
|
/// </summary>
|
||||||
|
[Column("userDef3")]
|
||||||
|
public string UserDef3 { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.Text;
|
||||||
|
using WalkingTec.Mvvm.Core;
|
||||||
|
|
||||||
|
namespace HHWMS.Web.Models
|
||||||
|
{
|
||||||
|
public class XWMSMFM : TopBasePoco
|
||||||
|
{
|
||||||
|
public string MFGFCY_0 { get; set; }
|
||||||
|
public string MFGNUM_0 { get; set; }
|
||||||
|
public int MFGLIN_0 { get; set; }
|
||||||
|
public string PJT_0 { get; set; }
|
||||||
|
public string OPPEXTNUM_0 { get; set; }
|
||||||
|
public string MFIITMREF_0 { get; set; }
|
||||||
|
public string MFIITMDES1_0 { get; set; }
|
||||||
|
public string MFIITMDES2_0 { get; set; }
|
||||||
|
public decimal EXTQTY_0 { get; set; }
|
||||||
|
public int BOMSEQ_0 { get; set; }
|
||||||
|
public string ITMREF_0 { get; set; }
|
||||||
|
public string ITMDES1_0 { get; set; }
|
||||||
|
public string ITMDES2_0 { get; set; }
|
||||||
|
public string ITMDES3_0 { get; set; }
|
||||||
|
public string YITMDES4_0 { get; set; }
|
||||||
|
public int STOCOD_0 { get; set; }
|
||||||
|
public decimal RETEXTCOE_0 { get; set; }
|
||||||
|
public decimal RETQTY_0 { get; set; }
|
||||||
|
public decimal USEQTY_0 { get; set; }
|
||||||
|
public decimal WMD_USEQTY_0 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 本次收量(采购单位)
|
||||||
|
/// </summary>
|
||||||
|
public decimal THISQTYUOM { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 本次收量(库存单位)
|
||||||
|
/// </summary>
|
||||||
|
public decimal THISQTYSTU { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.Text;
|
||||||
|
using WalkingTec.Mvvm.Core;
|
||||||
|
|
||||||
|
namespace HHWMS.Web.Models
|
||||||
|
{
|
||||||
|
public class XWMSPTH : TopBasePoco
|
||||||
|
{
|
||||||
|
public string PRHFCY_0 { get; set; }
|
||||||
|
public DateTime RCPDAT_0 { get; set; }
|
||||||
|
public string BPSNUM_0 { get; set; }
|
||||||
|
public string BPSNAM_0 { get; set; }
|
||||||
|
public string PTHNUM_0 { get; set; }
|
||||||
|
public int PTDLIN_0 { get; set; }
|
||||||
|
public string PJT_0 { get; set; }
|
||||||
|
public string OPPEXTNUM_0 { get; set; }
|
||||||
|
public string ITMREF_0 { get; set; }
|
||||||
|
public string POHITMDES1_0 { get; set; }
|
||||||
|
public string ITMDES1_0 { get; set; }
|
||||||
|
public string ITMDES2_0 { get; set; }
|
||||||
|
public string ITMDES3_0 { get; set; }
|
||||||
|
public string YITMDES4_0 { get; set; }
|
||||||
|
public string POHNUM_0 { get; set; }
|
||||||
|
public int POPLIN_0 { get; set; }
|
||||||
|
public decimal POHQTYSTU_0 { get; set; }
|
||||||
|
public decimal POHQTYUOM_0 { get; set; }
|
||||||
|
public decimal QTYUOM_0 { get; set; }
|
||||||
|
public string UOM_0 { get; set; }
|
||||||
|
public decimal QTYSTU_0 { get; set; }
|
||||||
|
public string STU_0 { get; set; }
|
||||||
|
public decimal RTNQTYSTU_0 { get; set; }
|
||||||
|
public decimal UOMSTUCOE_0 { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 默认质量状态
|
||||||
|
/// </summary>
|
||||||
|
public string STA_0 { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 本次收量(采购单位)
|
||||||
|
/// </summary>
|
||||||
|
public decimal THISQTYUOM { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 本次收量(库存单位)
|
||||||
|
/// </summary>
|
||||||
|
public decimal THISQTYSTU { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.Text;
|
||||||
|
using WalkingTec.Mvvm.Core;
|
||||||
|
|
||||||
|
namespace HHWMS.Web.Models
|
||||||
|
{
|
||||||
|
public class XWMSSOH : TopBasePoco
|
||||||
|
{
|
||||||
|
public string SALFCY_0 { get; set; }
|
||||||
|
public DateTime ORDDAT_0 { get; set; }
|
||||||
|
public string BPCORD_0 { get; set; }
|
||||||
|
public string BPCNAM_0 { get; set; }
|
||||||
|
public string SOHNUM_0 { get; set; }
|
||||||
|
public int SOPLIN_0 { get; set; }
|
||||||
|
public string ITMREF_0 { get; set; }
|
||||||
|
public string ITMDES1_0 { get; set; }
|
||||||
|
public string ITMDES2_0 { get; set; }
|
||||||
|
public string ITMDES3_0 { get; set; }
|
||||||
|
public string YITMDES4_0 { get; set; }
|
||||||
|
public decimal QTY_0 { get; set; }
|
||||||
|
public decimal NODLQTY_0 { get; set; }
|
||||||
|
public string STU_0 { get; set; }
|
||||||
|
public string BPAADD_0 { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 本次收量(采购单位)
|
||||||
|
/// </summary>
|
||||||
|
public decimal THISQTYUOM { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 本次收量(库存单位)
|
||||||
|
/// </summary>
|
||||||
|
public decimal THISQTYSTU { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user