Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c0c2ae8bb | ||
|
|
8f8b558b46 | ||
|
|
43146db587 | ||
|
|
c1bc3d927f | ||
|
|
1aa74f29a2 | ||
|
|
7506dff5a9 | ||
|
|
7f5b5bc521 | ||
|
|
99bf79a30d | ||
|
|
2aa869f1d2 | ||
|
|
9d6c5639b5 |
No files matched your search
@@ -0,0 +1,93 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using HHWMS.Web.Models;
|
||||||
|
using ICSharpCode.SharpZipLib.Core;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using WalkingTec.Mvvm.Core;
|
||||||
|
using WalkingTec.Mvvm.Core.Extensions;
|
||||||
|
using WalkingTec.Mvvm.Mvc;
|
||||||
|
|
||||||
|
namespace HHWMS.Web.Controllers
|
||||||
|
{
|
||||||
|
[Area("configs")]
|
||||||
|
[ActionDescription("无单打印")]
|
||||||
|
public partial class Print2Controller : BaseController
|
||||||
|
{
|
||||||
|
private readonly IUnitWork _unitwork;
|
||||||
|
|
||||||
|
public Print2Controller(IUnitWork unitwork)
|
||||||
|
{
|
||||||
|
_unitwork = unitwork;
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Search
|
||||||
|
|
||||||
|
[ActionDescription("Sys.Search")]
|
||||||
|
public ActionResult Index()
|
||||||
|
{
|
||||||
|
var vm = Wtm.CreateVM<ReceiptDetail2VM>();
|
||||||
|
return PartialView(vm);
|
||||||
|
}
|
||||||
|
#endregion Search
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
[ActionDescription("Sys.Create")]
|
||||||
|
[FixConnection(CsName = "hangyong")]
|
||||||
|
public ActionResult Create(ReceiptDetail2VM vm)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(vm.Entity.MaterialCode))
|
||||||
|
{
|
||||||
|
return FFResult().Alert("物料必选!");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (string.IsNullOrEmpty(vm.Entity.Batch))
|
||||||
|
{
|
||||||
|
return FFResult().Alert("批次信息不能为空!");
|
||||||
|
}
|
||||||
|
var warehouseId = Wtm.LoginUserInfo.Groups.FirstOrDefault().GroupCode;
|
||||||
|
var dc = Wtm.CreateDC(cskey: "hangyong");
|
||||||
|
Wtm.DC = dc;
|
||||||
|
if (!ModelState.IsValid)
|
||||||
|
{
|
||||||
|
return PartialView(vm);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var _unit = new UnitWork(Wtm);
|
||||||
|
var header = new ReceiptHeader2
|
||||||
|
{
|
||||||
|
WarehouseId = int.Parse(warehouseId),
|
||||||
|
Code = _unitwork.GetSerialNumber("SDR"),
|
||||||
|
Type = "SDR",
|
||||||
|
FirstStatus = 0,
|
||||||
|
LastStatus = 0,
|
||||||
|
TotalLines = 1,
|
||||||
|
TotalQty = 0,
|
||||||
|
};
|
||||||
|
_unit.Add(header);
|
||||||
|
|
||||||
|
vm.Entity.WarehouseId = header.WarehouseId;
|
||||||
|
vm.Entity.ReceiptId = header.ID;
|
||||||
|
vm.Entity.ReceiptCode = header?.Code;
|
||||||
|
vm.Entity.Status = 0;
|
||||||
|
var mater = dc.Set<Material2>()
|
||||||
|
.FirstOrDefault(x => x.ID == int.Parse(vm.Entity.MaterialCode));
|
||||||
|
vm.Entity.MaterialCode = mater?.Code;
|
||||||
|
vm.Entity.Lot = mater?.Specification;
|
||||||
|
vm.Entity.Unit = mater?.MasterUnit;
|
||||||
|
vm.DoAdd();
|
||||||
|
if (!ModelState.IsValid)
|
||||||
|
{
|
||||||
|
vm.DoReInit();
|
||||||
|
return PartialView(vm);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return FFResult().Message("Ok!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using HHWMS.Web.Models;
|
||||||
|
using ICSharpCode.SharpZipLib.Core;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using WalkingTec.Mvvm.Core;
|
||||||
|
using WalkingTec.Mvvm.Core.Extensions;
|
||||||
|
using WalkingTec.Mvvm.Mvc;
|
||||||
|
|
||||||
|
namespace HHWMS.Web.Controllers
|
||||||
|
{
|
||||||
|
[Area("configs")]
|
||||||
|
[ActionDescription("卷料库打码")]
|
||||||
|
public partial class Print4Controller : BaseController
|
||||||
|
{
|
||||||
|
private readonly IUnitWork _unitwork;
|
||||||
|
|
||||||
|
public Print4Controller(IUnitWork unitwork)
|
||||||
|
{
|
||||||
|
_unitwork = unitwork;
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Search
|
||||||
|
|
||||||
|
[ActionDescription("Sys.Search")]
|
||||||
|
public ActionResult Index()
|
||||||
|
{
|
||||||
|
var vm = Wtm.CreateVM<ContainerListVM>();
|
||||||
|
return PartialView(vm);
|
||||||
|
}
|
||||||
|
#endregion Search
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -32,19 +32,20 @@ namespace HHWMS.Web
|
|||||||
protected override IEnumerable<IGridColumn<Material_View>> InitGridHeader()
|
protected override IEnumerable<IGridColumn<Material_View>> InitGridHeader()
|
||||||
{
|
{
|
||||||
return new List<GridColumn<Material_View>>{
|
return new List<GridColumn<Material_View>>{
|
||||||
this.MakeGridHeader(x => x.UniqueCode).SetHide(),
|
this.MakeGridHeader(x => x.UniqueCode),
|
||||||
this.MakeGridHeader(x => x.QRCode),
|
|
||||||
this.MakeGridHeader(x => x.SourceCode).SetHide(),
|
|
||||||
this.MakeGridHeader(x => x.MaterialCode),
|
|
||||||
this.MakeGridHeader(x => x.MaterialType),
|
this.MakeGridHeader(x => x.MaterialType),
|
||||||
this.MakeGridHeader(x => x.MaterialName),
|
|
||||||
this.MakeGridHeader(x => x.MaterialSpec),
|
this.MakeGridHeader(x => x.MaterialSpec),
|
||||||
this.MakeGridHeader(x => x.MaterialUnit).SetWidth(80),
|
this.MakeGridHeader(x => x.Batch),
|
||||||
this.MakeGridHeader(x => x.Batch).SetWidth(150),
|
this.MakeGridHeader(x => x.Qty),
|
||||||
|
this.MakeGridHeader(x => x.CreateTime),
|
||||||
|
this.MakeGridHeader(x => x.QRCode).SetHide(),
|
||||||
|
this.MakeGridHeader(x => x.SourceCode).SetHide(),
|
||||||
|
this.MakeGridHeader(x => x.MaterialCode).SetHide(),
|
||||||
|
this.MakeGridHeader(x => x.MaterialName).SetHide(),
|
||||||
|
this.MakeGridHeader(x => x.MaterialUnit).SetHide(),
|
||||||
this.MakeGridHeader(x => x.Lot).SetHide(),
|
this.MakeGridHeader(x => x.Lot).SetHide(),
|
||||||
this.MakeGridHeader(x => x.CompanyCode).SetHide(),
|
this.MakeGridHeader(x => x.CompanyCode).SetHide(),
|
||||||
this.MakeGridHeader(x => x.SupplierCode),
|
this.MakeGridHeader(x => x.SupplierCode).SetHide(),
|
||||||
this.MakeGridHeader(x => x.Qty),
|
|
||||||
this.MakeGridHeaderAction(width: 200)
|
this.MakeGridHeaderAction(width: 200)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -71,6 +72,7 @@ namespace HHWMS.Web
|
|||||||
CompanyCode = x.CompanyCode,
|
CompanyCode = x.CompanyCode,
|
||||||
SupplierCode = x.SupplierCode,
|
SupplierCode = x.SupplierCode,
|
||||||
Qty = x.Qty,
|
Qty = x.Qty,
|
||||||
|
CreateTime = x.CreateTime
|
||||||
})
|
})
|
||||||
.OrderBy(x => x.ID);
|
.OrderBy(x => x.ID);
|
||||||
return query;
|
return query;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@@ -12,7 +12,7 @@ namespace HHWMS.Web
|
|||||||
{
|
{
|
||||||
public partial class MaterialSearcher : BaseSearcher
|
public partial class MaterialSearcher : BaseSearcher
|
||||||
{
|
{
|
||||||
[Display(Name = "Inventory.UniqueCode")]
|
[Display(Name = "Inventory4.UniqueCode")]
|
||||||
public String UniqueCode { get; set; }
|
public String UniqueCode { get; set; }
|
||||||
[Display(Name = "Inventory.QRCode")]
|
[Display(Name = "Inventory.QRCode")]
|
||||||
public String QRCode { get; set; }
|
public String QRCode { get; set; }
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<wt:searchpanel vm="@Model" reset-btn="true">
|
<wt:searchpanel vm="@Model" reset-btn="true">
|
||||||
<wt:row items-per-row="ItemsPerRowEnum.Three">
|
<wt:row items-per-row="ItemsPerRowEnum.Three">
|
||||||
<wt:textbox field="Searcher.UniqueCode" />
|
<wt:textbox field="Searcher.UniqueCode" />
|
||||||
<wt:textbox field="Searcher.QRCode" />
|
@* <wt:textbox field="Searcher.QRCode" />
|
||||||
<wt:textbox field="Searcher.MaterialCode" />
|
<wt:textbox field="Searcher.MaterialCode" /> *@
|
||||||
</wt:row>
|
</wt:row>
|
||||||
</wt:searchpanel>
|
</wt:searchpanel>
|
||||||
<wt:grid vm="@Model" url="/configs/Material/Search"/>
|
<wt:grid vm="@Model" url="/configs/Material/Search"/>
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
@model HHWMS.Web.ReceiptDetail2VM
|
||||||
|
@inject IStringLocalizer<Program> Localizer;
|
||||||
|
|
||||||
|
<wt:form vm="@Model">
|
||||||
|
<wt:row items-per-row="ItemsPerRowEnum.One">
|
||||||
|
<wt:row id="selector">
|
||||||
|
<wt:selector field="Entity.MaterialCode" list-vm="MaterialList"
|
||||||
|
text-bind="MaterialList.EntityList[0].Code"
|
||||||
|
submit-func="test">
|
||||||
|
<wt:searchpanel vm="MaterialList" expanded="true">
|
||||||
|
<wt:row items-per-row=" ItemsPerRowEnum.Two">
|
||||||
|
<wt:textbox field="MaterialList.Searcher.Code" />
|
||||||
|
<wt:textbox field="MaterialList.Searcher.Name" />
|
||||||
|
<wt:textbox field="MaterialList.Searcher.Specification" />
|
||||||
|
</wt:row>
|
||||||
|
</wt:searchpanel>
|
||||||
|
</wt:selector>
|
||||||
|
</wt:row>
|
||||||
|
<wt:textbox field="Entity.MaterialName"/>
|
||||||
|
<wt:textbox field="Entity.Batch" />
|
||||||
|
<wt:textbox field="Entity.Qty" />
|
||||||
|
<wt:combobox field="Entity.InventoryStatus" items="InventoryStatus" />
|
||||||
|
</wt:row>
|
||||||
|
<wt:hidden field="Entity.ReceiptId" />
|
||||||
|
<wt:row align="AlignEnum.Right">
|
||||||
|
@* <wt:submitbutton submit-url="/configs/Print2/Create" /> *@
|
||||||
|
<wt:button click="print()" text="打印" />
|
||||||
|
@* <wt:closebutton /> *@
|
||||||
|
</wt:row>
|
||||||
|
</wt:form>
|
||||||
|
<script>
|
||||||
|
var value = {};
|
||||||
|
let template = { "panels": [{ "index": 0, "height": 50, "width": 80, "paperHeader": 43.5, "paperFooter": 141.73228346456693, "printElements": [{ "options": { "left": 3, "top": 3, "height": 40, "width": 220, "field": "lot", "textAlign": "center", "textContentVerticalAlign": "middle", "fontFamily": "Microsoft YaHei", "fontSize": 8, "fontWeight": "bold" }, "printElementType": { "type": "text" } }, { "options": { "left": 3, "top": 3, "height": 130, "width": 220, "borderWidth": "1.5", "borderStyle": "solid" }, "printElementType": { "type": "rect" } }, { "options": { "left": 3, "top": 42, "height": 9, "width": 219 }, "printElementType": { "type": "hline" } }, { "options": { "left": 135, "top": 42, "height": 90, "width": 9 }, "printElementType": { "type": "vline" } }, { "options": { "left": 3, "top": 43.5, "height": 28.5, "width": 132, "field": "code", "testData": "1324123412341234123", "textAlign": "center", "textContentVerticalAlign": "middle", "fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold" }, "printElementType": { "type": "text" } }, { "options": { "left": 138, "top": 46.5, "height": 79.5, "width": 81, "textType": "qrcode", "field": "qrcode", "testData": "1234123413234132" }, "printElementType": { "type": "text" } }, { "options": { "left": 3, "top": 72, "height": 30, "width": 132, "field": "qty", "testData": "5555", "textAlign": "center", "textContentVerticalAlign": "middle", "fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold" }, "printElementType": { "type": "text" } }, { "options": { "left": 3, "top": 72, "height": 9, "width": 132 }, "printElementType": { "type": "hline" } }, { "options": { "left": 3, "top": 102, "height": 9, "width": 132 }, "printElementType": { "type": "hline" } }, { "options": { "left": 4.5, "top": 102, "height": 28.5, "width": 132, "field": "batch", "testData": "HYB2202030003", "textAlign": "center", "textContentVerticalAlign": "middle", "fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold" }, "printElementType": { "type": "text" } }], "paperNumberLeft": 196.5, "paperNumberTop": 118.5, "paperNumberDisabled": true }] };
|
||||||
|
|
||||||
|
let printData = [];
|
||||||
|
|
||||||
|
function test(val) {
|
||||||
|
$('#ReceiptDetail2VM_Entity_MaterialName').val(val[0].Name);
|
||||||
|
value = val[0];
|
||||||
|
console.log(value);
|
||||||
|
ReceiptDetail2VM_Entity_InventoryStatus.setValue([val[0].ClassA]);
|
||||||
|
}
|
||||||
|
function print(){
|
||||||
|
var batch = $('#ReceiptDetail2VM_Entity_Batch').val();
|
||||||
|
var qty = $('#ReceiptDetail2VM_Entity_Qty').val();
|
||||||
|
console.log(value.Code)
|
||||||
|
if (value.Code == undefined) {
|
||||||
|
layer.alert("物料必选");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (batch == "") {
|
||||||
|
layer.alert("批次必填");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (qty == "") {
|
||||||
|
layer.alert("数量必填");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
printData.push({
|
||||||
|
lot: value.Name + '|' + value.Specification,
|
||||||
|
code: value.Code,
|
||||||
|
batch: batch,
|
||||||
|
qty: qty,
|
||||||
|
qrcode: 'MT.' + value.Code + '@@@@LT.' + batch + '@@@@QT.' + qty
|
||||||
|
})
|
||||||
|
|
||||||
|
hiprint.init();
|
||||||
|
var hiprintTemplate = new hiprint.PrintTemplate({
|
||||||
|
template: template
|
||||||
|
});
|
||||||
|
hiprintTemplate.print(printData);
|
||||||
|
printData = [];
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,455 @@
|
|||||||
|
<div id="print4">
|
||||||
|
|
||||||
|
<el-form ref="form" :inline="true" :model="form" size="mini" label-width="100px">
|
||||||
|
<el-switch v-model="tk"
|
||||||
|
active-text="退库"
|
||||||
|
inactive-text="新入库">
|
||||||
|
</el-switch>
|
||||||
|
<el-divider></el-divider>
|
||||||
|
<el-row v-show="!tk">
|
||||||
|
<el-form-item label="仓库">
|
||||||
|
<el-select v-model="form.ck" :popper-append-to-body="false" placeholder="仓库">
|
||||||
|
<el-option v-for="item in ckList"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-button type="primary" size="small" @@click="createjh">生成卷号</el-button>
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="厂家">
|
||||||
|
<el-input v-model="form.cj" placeholder="厂家" @@keyup.enter.native="splitCJ()">
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="规格">
|
||||||
|
<el-input v-model="form.lot" @@keyup.enter.native="splitLot()"
|
||||||
|
placeholder="规格">
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="重量">
|
||||||
|
<el-input v-model="form.qty" @@keyup.enter.native="splitQty()"
|
||||||
|
placeholder="重量">
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="米数">
|
||||||
|
<el-input v-model="form.len" @@keyup.enter.native="splitLen()"
|
||||||
|
placeholder="米数">
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="铁损">
|
||||||
|
<el-input v-model="form.sn" @@keyup.enter.native="splitSn()"
|
||||||
|
placeholder="铁损">
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="片厚">
|
||||||
|
<el-input v-model="form.ph" @@keyup.enter.native="splitPh()"
|
||||||
|
placeholder="片厚">
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row v-show="tk">
|
||||||
|
<el-form-item label="卷号">
|
||||||
|
<el-input v-model="form.jh" @@keyup.enter.native="scanJH()"
|
||||||
|
placeholder="卷号">
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
<el-col :span="4">
|
||||||
|
<el-button type="primary" @@click="create">创建入库单</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="4">
|
||||||
|
<el-button type="success" @@click="print">打印</el-button>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-table :data="tableData"
|
||||||
|
max-height="600" stripe border
|
||||||
|
style="width: 100%"
|
||||||
|
ref="tableData">
|
||||||
|
<el-table-column type="index"
|
||||||
|
width="50">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="仓库" width="150" align="center" prop="Ware"></el-table-column>
|
||||||
|
<el-table-column label="厂家" width="150" align="center" prop="CJ"></el-table-column>
|
||||||
|
<el-table-column label="日期" width="150" align="center" prop="RQ"></el-table-column>
|
||||||
|
<el-table-column label="卷号" width="150" align="center" prop="JH"></el-table-column>
|
||||||
|
|
||||||
|
<el-table-column label="规格" width="150" align="center" prop="Lot">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-input size="small" v-model="scope.row.Lot"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="重量" width="150" align="center" prop="Qty">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-input size="small" v-model="scope.row.Qty"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="米数" width="150" align="center" prop="Len">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-input size="small" v-model="scope.row.Len"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="铁损" width="150" align="center" prop="Sn">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-input size="small" v-model="scope.row.Sn"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="片厚" width="150" align="center" prop="PH">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-input size="small" v-model="scope.row.PH"></el-input>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var app = new Vue({
|
||||||
|
el: "#print4",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
form: {
|
||||||
|
ck: '1',
|
||||||
|
cj: '',
|
||||||
|
lot: '',
|
||||||
|
qty: '',
|
||||||
|
len: '',
|
||||||
|
jh: '',
|
||||||
|
sn: '',
|
||||||
|
ph: ''
|
||||||
|
},
|
||||||
|
tk:false,
|
||||||
|
ckList: [
|
||||||
|
{
|
||||||
|
value: '1',
|
||||||
|
label: '立库'
|
||||||
|
}, {
|
||||||
|
value: '2',
|
||||||
|
label: '地面库'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
tableData: [],
|
||||||
|
lotList: [],
|
||||||
|
printData: [],
|
||||||
|
gendCode: '',
|
||||||
|
clear: false,
|
||||||
|
template: { "panels": [{ "index": 0, "height": 50, "width": 80, "paperHeader": 49.5, "paperFooter": 141.73228346456693, "printElements": [{ "options": { "left": 9, "top": 4.5, "height": 133.5, "width": 201 }, "printElementType": { "type": "rect" } }, { "options": { "left": 18, "top": 6, "height": 20, "width": 182, "title": "厂家", "field": "cj", "textContentVerticalAlign": "middle", "fontFamily": "Microsoft YaHei" }, "printElementType": { "type": "text" } }, { "options": { "left": 120, "top": 25.5, "height": 20, "width": 80, "title": "规格", "textContentVerticalAlign": "middle", "field": "lot", "fontFamily": "Microsoft YaHei" }, "printElementType": { "type": "text" } }, { "options": { "left": 18, "top": 25.5, "height": 20, "width": 80, "title": "仓库", "textContentVerticalAlign": "middle", "field": "ck", "fontFamily": "Microsoft YaHei" }, "printElementType": { "type": "text" } }, { "options": { "left": 120, "top": 46.5, "height": 20, "width": 80, "title": "铁损", "textContentVerticalAlign": "middle", "field": "sn", "fontFamily": "Microsoft YaHei" }, "printElementType": { "type": "text" } }, { "options": { "left": 18, "top": 46.5, "height": 20, "width": 80, "title": "米数", "textContentVerticalAlign": "middle", "field": "len", "fontFamily": "Microsoft YaHei" }, "printElementType": { "type": "text" } }, { "options": { "left": 120, "top": 66, "height": 20, "width": 80, "title": "重量", "textContentVerticalAlign": "middle", "field": "qty", "fontFamily": "Microsoft YaHei" }, "printElementType": { "type": "text" } }, { "options": { "left": 18, "top": 66, "height": 20, "width": 80, "title": "日期", "textContentVerticalAlign": "middle", "field": "rq", "fontFamily": "Microsoft YaHei" }, "printElementType": { "type": "text" } }, { "options": { "left": 18, "top": 85.5, "height": 20, "width": 80, "title": "卷号", "textContentVerticalAlign": "middle", "field": "jh", "fontFamily": "Microsoft YaHei" }, "printElementType": { "type": "text" } }, { "options": { "left": 120, "top": 85.5, "height": 50, "width": 50, "textType": "qrcode", "field": "qrcode" }, "printElementType": { "type": "text" } }, { "options": { "left": 18, "top": 105, "height": 20, "width": 80, "title": "片厚", "field": "PH", "fontFamily": "Microsoft YaHei", "textContentVerticalAlign": "middle" }, "printElementType": { "type": "text" } }], "paperNumberLeft": 196.5, "paperNumberTop": 118.5, "paperNumberDisabled": true }] }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted: function () {
|
||||||
|
// var t = window.localStorage.getItem("lot");
|
||||||
|
// if (t == undefined) {
|
||||||
|
// window.localStorage.setItem("lot", JSON.stringify(this.lotList));
|
||||||
|
// }
|
||||||
|
// this.lotList = JSON.parse(window.localStorage.getItem("lot"));
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
createjh() {
|
||||||
|
var _this = this;
|
||||||
|
_this.$prompt('请输入生成数量', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消'
|
||||||
|
}).then(({ value }) => {
|
||||||
|
$.ajax({
|
||||||
|
type: "post",
|
||||||
|
dataType: "json",
|
||||||
|
data: { data: value },
|
||||||
|
url: "/xwms/ReceiptHeader2/Createjh",
|
||||||
|
success: function (json) {
|
||||||
|
if (json.Code != 200) {
|
||||||
|
_this.$message({
|
||||||
|
message: "生成失败!" + json.Msg,
|
||||||
|
type: "warning",
|
||||||
|
duration: "10000",
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
_this.form.jh = json.Data;
|
||||||
|
_this.splitJH();
|
||||||
|
_this.$message({
|
||||||
|
message: "创建成功!"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (json) {
|
||||||
|
_this.$message({
|
||||||
|
message: "创建失败!",
|
||||||
|
type: "error",
|
||||||
|
duration: "10000",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}).catch(() => {
|
||||||
|
this.$message({
|
||||||
|
type: 'info',
|
||||||
|
message: '取消输入'
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 拆解卷号
|
||||||
|
splitJH() {
|
||||||
|
var _this = this;
|
||||||
|
|
||||||
|
if (this.form.jh != "") {
|
||||||
|
var list = this.form.jh.trim().split(/\s+/);
|
||||||
|
var num = list.length;
|
||||||
|
if (num > 0) {
|
||||||
|
if (this.tableData.length > 0) {
|
||||||
|
this.tableData = [];
|
||||||
|
}
|
||||||
|
while (num > 0) {
|
||||||
|
if (list[list.length - num] != "") {
|
||||||
|
this.tableData.push(JSON.parse(JSON.stringify({
|
||||||
|
"Ware": this.ckList.filter(function (item) {
|
||||||
|
return item.value == _this.form.ck;
|
||||||
|
})[0].label,
|
||||||
|
"CJ": this.form.cj,
|
||||||
|
"JH": list[list.length - num],
|
||||||
|
"Qty": "",
|
||||||
|
"Len": "",
|
||||||
|
"Lot": "",
|
||||||
|
"Sn": "",
|
||||||
|
"PH": "",
|
||||||
|
"RQ": new Date().toLocaleDateString()
|
||||||
|
})));
|
||||||
|
}
|
||||||
|
num--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 拆解重量
|
||||||
|
splitQty() {
|
||||||
|
var _this = this;
|
||||||
|
if (this.form.qty != "") {
|
||||||
|
var list = this.form.qty.trim().split(/\s+/);
|
||||||
|
if (list.length == this.tableData.length) {
|
||||||
|
var nn = list.length - 1;
|
||||||
|
while (nn >= 0) {
|
||||||
|
_this.tableData[nn].Qty = list[nn];
|
||||||
|
nn--;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
layer.alert("数量与表行不一致!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 拆解米数
|
||||||
|
splitLen() {
|
||||||
|
var _this = this;
|
||||||
|
_this.tableData.forEach(function (item) {
|
||||||
|
item.Len = _this.form.len;
|
||||||
|
})
|
||||||
|
// if (this.form.len != "") {
|
||||||
|
// var list = this.form.len.trim().split(/\s+/);
|
||||||
|
// if (list.length == this.tableData.length) {
|
||||||
|
// var nn = list.length - 1;
|
||||||
|
// while (nn >= 0) {
|
||||||
|
// _this.tableData[nn].Len = list[nn];
|
||||||
|
// nn--;
|
||||||
|
// }
|
||||||
|
// } else {
|
||||||
|
// layer.alert("数量与表行不一致!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
},
|
||||||
|
// 拆解规格
|
||||||
|
splitLot() {
|
||||||
|
var _this = this;
|
||||||
|
if (this.form.lot != "") {
|
||||||
|
var list = this.form.lot.trim().split(/\s+/);
|
||||||
|
if (list.length == this.tableData.length) {
|
||||||
|
var nn = list.length - 1;
|
||||||
|
while (nn >= 0) {
|
||||||
|
_this.tableData[nn].Lot = list[nn];
|
||||||
|
nn--;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
layer.alert("数量与表行不一致!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 拆解铁损
|
||||||
|
splitSn() {
|
||||||
|
var _this = this;
|
||||||
|
_this.tableData.forEach(function (item) {
|
||||||
|
item.Sn = _this.form.sn;
|
||||||
|
})
|
||||||
|
// if (this.form.sn != "") {
|
||||||
|
// var list = this.form.sn.trim().split(/\s+/);
|
||||||
|
// if (list.length == this.tableData.length) {
|
||||||
|
// var nn = list.length - 1;
|
||||||
|
// while (nn >= 0) {
|
||||||
|
// _this.tableData[nn].Sn = list[nn];
|
||||||
|
// nn--;
|
||||||
|
// }
|
||||||
|
// } else {
|
||||||
|
// layer.alert("数量与表行不一致!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
},
|
||||||
|
// 拆解片厚
|
||||||
|
splitPh() {
|
||||||
|
var _this = this;
|
||||||
|
_this.tableData.forEach(function (item) {
|
||||||
|
item.PH = _this.form.ph;
|
||||||
|
})
|
||||||
|
// if (this.form.ph != "") {
|
||||||
|
// var list = this.form.ph.trim().split(/\s+/);
|
||||||
|
// if (list.length == this.tableData.length) {
|
||||||
|
// var nn = list.length - 1;
|
||||||
|
// while (nn >= 0) {
|
||||||
|
// _this.tableData[nn].PH = list[nn];
|
||||||
|
// nn--;
|
||||||
|
// }
|
||||||
|
// } else {
|
||||||
|
// layer.alert("数量与表行不一致!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
},
|
||||||
|
splitCJ() {
|
||||||
|
var _this = this;
|
||||||
|
_this.tableData.forEach(function (item) {
|
||||||
|
item.CJ = _this.form.cj;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
create() {
|
||||||
|
var _this = this;
|
||||||
|
if (_this.tableData.length == 0) {
|
||||||
|
_this.$message({
|
||||||
|
message: "当前无数据!!",
|
||||||
|
type: "warning",
|
||||||
|
duration: "500",
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 调用后台方法,判断是否在物料表内
|
||||||
|
$.ajax({
|
||||||
|
type: "post",
|
||||||
|
dataType: "json",
|
||||||
|
data: { data: _this.tableData },
|
||||||
|
url: "/xwms/ReceiptHeader2/CreateDetail4",
|
||||||
|
success: function (json) {
|
||||||
|
if (json.Code != 200) {
|
||||||
|
_this.$message({
|
||||||
|
message: "创建失败!" + json.Msg,
|
||||||
|
type: "warning",
|
||||||
|
duration: "10000",
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
_this.$message({
|
||||||
|
message: "创建成功!"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (json) {
|
||||||
|
_this.$message({
|
||||||
|
message: "创建失败!",
|
||||||
|
type: "error",
|
||||||
|
duration: "10000",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
scanJH() {
|
||||||
|
var _this = this;
|
||||||
|
if (_this.form.jh == "") {
|
||||||
|
_this.$message({
|
||||||
|
message: "当前无数据!!",
|
||||||
|
type: "warning",
|
||||||
|
duration: "500",
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 调用后台方法,判断是否在物料表内
|
||||||
|
$.ajax({
|
||||||
|
type: "post",
|
||||||
|
dataType: "json",
|
||||||
|
data: { data: _this.form.jh },
|
||||||
|
url: "/xwms/ReceiptHeader2/ScanJh",
|
||||||
|
success: function (json) {
|
||||||
|
if (json.Code != 200) {
|
||||||
|
_this.$message({
|
||||||
|
message: "扫码失败!" + json.Msg,
|
||||||
|
type: "warning",
|
||||||
|
duration: "10000",
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
_this.form.jh = "";
|
||||||
|
// UniqueCode = item.JH,
|
||||||
|
// MaterialSpec = item.Lot,
|
||||||
|
// MaterialType = item.Sn,
|
||||||
|
// Qty = item.Qty,
|
||||||
|
// Batch = item.PH,
|
||||||
|
// CreateTime = DateTime.Now,
|
||||||
|
let isExit = 0;
|
||||||
|
_this.tableData.forEach(function (item) {
|
||||||
|
if (item.JH == json.Data.UniqueCode) {
|
||||||
|
_this.$message({
|
||||||
|
message: "扫码失败!重复扫码",
|
||||||
|
type: "warning",
|
||||||
|
duration: "10000",
|
||||||
|
});
|
||||||
|
isExit = 1;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (isExit == 0) {
|
||||||
|
_this.tableData.push({
|
||||||
|
"Ware": "立库",
|
||||||
|
"CJ":json.Data.SourceCode,
|
||||||
|
"Len":json.Data.Lot,
|
||||||
|
"JH": json.Data.UniqueCode,
|
||||||
|
"Lot": json.Data.MaterialSpec,
|
||||||
|
"Sn": json.Data.MaterialType,
|
||||||
|
"Qty": json.Data.Qty,
|
||||||
|
"PH": json.Data.Batch,
|
||||||
|
"RQ": json.Data.CreateTime.substring(0, 10)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (json) {
|
||||||
|
_this.$message({
|
||||||
|
message: "扫码失败!",
|
||||||
|
type: "error",
|
||||||
|
duration: "10000",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
print() {
|
||||||
|
var _this = this;
|
||||||
|
_this.printData = [];
|
||||||
|
_this.tableData.forEach(function (item) {
|
||||||
|
_this.printData.push({
|
||||||
|
ck: item.Ware,
|
||||||
|
cj: item.CJ,
|
||||||
|
lot: item.Lot,
|
||||||
|
rq: item.RQ,
|
||||||
|
qty: item.Qty,
|
||||||
|
len: item.Len,
|
||||||
|
jh: item.JH,
|
||||||
|
sn: item.Sn,
|
||||||
|
qrcode: item.JH,
|
||||||
|
PH: item.PH
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
hiprint.init();
|
||||||
|
var hiprintTemplate = new hiprint.PrintTemplate({
|
||||||
|
template: this.template
|
||||||
|
})
|
||||||
|
hiprintTemplate.print(this.printData);
|
||||||
|
},
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
@@ -5,6 +5,9 @@ using WalkingTec.Mvvm.Core;
|
|||||||
using WalkingTec.Mvvm.Mvc;
|
using WalkingTec.Mvvm.Mvc;
|
||||||
using WalkingTec.Mvvm.Core.Extensions;
|
using WalkingTec.Mvvm.Core.Extensions;
|
||||||
using HHWMS.Web;
|
using HHWMS.Web;
|
||||||
|
using HHWMS.Web.Models;
|
||||||
|
using WalkingTec.Mvvm.Mvc.Admin.ViewModels.DataPrivilegeVMs;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
namespace HHWMS.Web.Controllers
|
namespace HHWMS.Web.Controllers
|
||||||
{
|
{
|
||||||
@@ -227,5 +230,22 @@ namespace HHWMS.Web.Controllers
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
public ActionResult GetMaterial(string code)
|
||||||
|
{
|
||||||
|
var dc2 = Wtm.CreateDC(cskey: "hangyong");
|
||||||
|
var query = dc2.Set<Material2>()
|
||||||
|
.CheckContain(code, x => x.Code)
|
||||||
|
.Select(x => new Material2_View
|
||||||
|
{
|
||||||
|
Code = x.Code,
|
||||||
|
Type = x.Type,
|
||||||
|
Name = x.Name,
|
||||||
|
Specification = x.Specification,
|
||||||
|
MasterUnit = x.MasterUnit
|
||||||
|
})
|
||||||
|
.OrderBy(x => x.ID);
|
||||||
|
return JsonMore(query);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -77,6 +77,11 @@ namespace HHWMS.Web.Controllers
|
|||||||
[FixConnection(CsName = "hangyong")]
|
[FixConnection(CsName = "hangyong")]
|
||||||
public ActionResult Create(ReceiptDetail2VM vm)
|
public ActionResult Create(ReceiptDetail2VM vm)
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrEmpty(vm.Entity.MaterialCode))
|
||||||
|
{
|
||||||
|
return FFResult().Alert("物料必选!");
|
||||||
|
}
|
||||||
|
|
||||||
var dc = Wtm.CreateDC(cskey: "hangyong");
|
var dc = Wtm.CreateDC(cskey: "hangyong");
|
||||||
Wtm.DC = dc;
|
Wtm.DC = dc;
|
||||||
if (!ModelState.IsValid)
|
if (!ModelState.IsValid)
|
||||||
@@ -96,6 +101,7 @@ namespace HHWMS.Web.Controllers
|
|||||||
var mater = dc.Set<Material2>()
|
var mater = dc.Set<Material2>()
|
||||||
.FirstOrDefault(x => x.ID == int.Parse(vm.Entity.MaterialCode));
|
.FirstOrDefault(x => x.ID == int.Parse(vm.Entity.MaterialCode));
|
||||||
vm.Entity.MaterialCode = mater?.Code;
|
vm.Entity.MaterialCode = mater?.Code;
|
||||||
|
vm.Entity.Lot = mater?.Specification;
|
||||||
vm.Entity.Unit = mater?.MasterUnit;
|
vm.Entity.Unit = mater?.MasterUnit;
|
||||||
vm.Entity.Batch = vm.Entity.Batch = _unitwork.GetSerialNumber("HYB", 5).Remove(3, 2);
|
vm.Entity.Batch = vm.Entity.Batch = _unitwork.GetSerialNumber("HYB", 5).Remove(3, 2);
|
||||||
vm.DoAdd();
|
vm.DoAdd();
|
||||||
@@ -299,8 +305,7 @@ namespace HHWMS.Web.Controllers
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var receipt = _unit.FindSingle<ReceiptDetail2>(x =>
|
var receipt = _unit.FindSingle<ReceiptDetail2>(x =>
|
||||||
x.MaterialCode == data.FirstOrDefault().MaterialCode
|
x.ID == data.FirstOrDefault().ID);
|
||||||
&& x.Batch == data.FirstOrDefault().Batch);
|
|
||||||
if (receipt != null)
|
if (receipt != null)
|
||||||
{
|
{
|
||||||
receipt.Qty = data.FirstOrDefault().Qty;
|
receipt.Qty = data.FirstOrDefault().Qty;
|
||||||
@@ -317,6 +322,7 @@ namespace HHWMS.Web.Controllers
|
|||||||
detail.SourceLine = receipt.SourceLine;
|
detail.SourceLine = receipt.SourceLine;
|
||||||
detail.MaterialCode = receipt.MaterialCode;
|
detail.MaterialCode = receipt.MaterialCode;
|
||||||
detail.MaterialName = receipt.MaterialName;
|
detail.MaterialName = receipt.MaterialName;
|
||||||
|
detail.Coefficient = receipt.Coefficient;
|
||||||
detail.Lot = receipt.Lot;
|
detail.Lot = receipt.Lot;
|
||||||
detail.SupplierCode = receipt.SupplierCode;
|
detail.SupplierCode = receipt.SupplierCode;
|
||||||
detail.SupplierName = receipt.SupplierName;
|
detail.SupplierName = receipt.SupplierName;
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ using HHWMS.Web.xwms.ViewModels.ReceiptHeader2VMs;
|
|||||||
using HHWMS.Web.Models;
|
using HHWMS.Web.Models;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using NPOI.SS.Formula;
|
||||||
|
|
||||||
namespace HHWMS.Web.Controllers
|
namespace HHWMS.Web.Controllers
|
||||||
{
|
{
|
||||||
@@ -94,7 +95,72 @@ namespace HHWMS.Web.Controllers
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return FFResult().CloseDialog().RefreshGrid(index:0);
|
return FFResult().CloseDialog().RefreshPage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[ActionDescription("Sys.Create2")]
|
||||||
|
public ActionResult Create2()
|
||||||
|
{
|
||||||
|
var vm = Wtm.CreateVM<ReceiptDetail2VM>();
|
||||||
|
return PartialView(vm);
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
[ActionDescription("Sys.Create2")]
|
||||||
|
[FixConnection(CsName = "hangyong")]
|
||||||
|
public ActionResult Create2(ReceiptDetail2VM vm)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(vm.Entity.MaterialCode))
|
||||||
|
{
|
||||||
|
return FFResult().Alert("物料必选!");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (string.IsNullOrEmpty(vm.Entity.Batch))
|
||||||
|
{
|
||||||
|
return FFResult().Alert("批次信息不能为空!");
|
||||||
|
}
|
||||||
|
var warehouseId = Wtm.LoginUserInfo.Groups.FirstOrDefault().GroupCode;
|
||||||
|
var dc = Wtm.CreateDC(cskey: "hangyong");
|
||||||
|
Wtm.DC = dc;
|
||||||
|
if (!ModelState.IsValid)
|
||||||
|
{
|
||||||
|
return PartialView(vm);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var _unit = new UnitWork(Wtm);
|
||||||
|
var header = new ReceiptHeader2
|
||||||
|
{
|
||||||
|
WarehouseId = int.Parse(warehouseId),
|
||||||
|
Code = _unitwork.GetSerialNumber("SDR"),
|
||||||
|
Type = "SDR",
|
||||||
|
FirstStatus = 0,
|
||||||
|
LastStatus = 0,
|
||||||
|
TotalLines = 1,
|
||||||
|
TotalQty = 0,
|
||||||
|
};
|
||||||
|
_unit.Add(header);
|
||||||
|
|
||||||
|
vm.Entity.WarehouseId = header.WarehouseId;
|
||||||
|
vm.Entity.ReceiptId = header.ID;
|
||||||
|
vm.Entity.ReceiptCode = header?.Code;
|
||||||
|
vm.Entity.Status = 0;
|
||||||
|
var mater = dc.Set<Material2>()
|
||||||
|
.FirstOrDefault(x => x.ID == int.Parse(vm.Entity.MaterialCode));
|
||||||
|
vm.Entity.MaterialCode = mater?.Code;
|
||||||
|
vm.Entity.Lot = mater?.Specification;
|
||||||
|
vm.Entity.Unit = mater?.MasterUnit;
|
||||||
|
vm.DoAdd();
|
||||||
|
if (!ModelState.IsValid)
|
||||||
|
{
|
||||||
|
vm.DoReInit();
|
||||||
|
return PartialView(vm);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return FFResult().CloseDialog().RefreshPage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -254,13 +320,12 @@ namespace HHWMS.Web.Controllers
|
|||||||
{
|
{
|
||||||
var warehouseId = Wtm.LoginUserInfo.Groups.FirstOrDefault().GroupCode;
|
var warehouseId = Wtm.LoginUserInfo.Groups.FirstOrDefault().GroupCode;
|
||||||
var dc = Wtm.CreateDC(cskey: "hangyong");
|
var dc = Wtm.CreateDC(cskey: "hangyong");
|
||||||
|
Wtm.DC = dc;
|
||||||
|
var _unit = new UnitWork(Wtm);
|
||||||
using (var tran = dc.BeginTransaction())
|
using (var tran = dc.BeginTransaction())
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Wtm.DC = dc;
|
|
||||||
var _unit = new UnitWork(Wtm);
|
|
||||||
var receipt = new ReceiptHeader2();
|
var receipt = new ReceiptHeader2();
|
||||||
receipt.WarehouseId = int.Parse(warehouseId);
|
receipt.WarehouseId = int.Parse(warehouseId);
|
||||||
receipt.Code = _unitwork.GetSerialNumber("10");
|
receipt.Code = _unitwork.GetSerialNumber("10");
|
||||||
@@ -303,5 +368,124 @@ namespace HHWMS.Web.Controllers
|
|||||||
}
|
}
|
||||||
return JsonMore(null);
|
return JsonMore(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
[ActionDescription("Sys.Create4")]
|
||||||
|
[FixConnection(CsName = "hangyong")]
|
||||||
|
public ActionResult CreateDetail4(List<receipt4> data)
|
||||||
|
{
|
||||||
|
var warehouseId = Wtm.LoginUserInfo.Groups.FirstOrDefault().GroupCode;
|
||||||
|
var dc = Wtm.CreateDC(cskey: "hangyong");
|
||||||
|
Wtm.DC = dc;
|
||||||
|
var _unit = new UnitWork(Wtm);
|
||||||
|
using (var tran = dc.BeginTransaction())
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var receipt = new ReceiptHeader2();
|
||||||
|
receipt.WarehouseId = int.Parse(warehouseId);
|
||||||
|
receipt.Code = _unitwork.GetSerialNumber("410");
|
||||||
|
receipt.Type = "10";
|
||||||
|
receipt.FirstStatus = 0;
|
||||||
|
receipt.LastStatus = 0;
|
||||||
|
|
||||||
|
_unit.Add(receipt);
|
||||||
|
|
||||||
|
var detailList = new List<ReceiptDetail2>();
|
||||||
|
var matList = new List<Material>();
|
||||||
|
foreach(var item in data)
|
||||||
|
{
|
||||||
|
var detail = new ReceiptDetail2();
|
||||||
|
detail.WarehouseId = receipt.WarehouseId;
|
||||||
|
detail.ReceiptId = receipt.ID;
|
||||||
|
detail.ReceiptCode = receipt.Code;
|
||||||
|
detail.MaterialCode = item.JH;
|
||||||
|
detail.MaterialName = item.JH;
|
||||||
|
detail.Lot = item.Lot;
|
||||||
|
detail.Sn = item.Sn;
|
||||||
|
detail.Qty = item.Qty;
|
||||||
|
detail.Project = item.JH;
|
||||||
|
detail.InventoryStatus = "1";
|
||||||
|
detail.UserDef1 = item.Lot;
|
||||||
|
detail.UserDef2 = item.PH;
|
||||||
|
detail.Status = 0;
|
||||||
|
detail.CreateTime = DateTime.Now;
|
||||||
|
detailList.Add(detail);
|
||||||
|
|
||||||
|
matList.Add(new Material
|
||||||
|
{
|
||||||
|
UniqueCode = item.JH,
|
||||||
|
MaterialSpec = item.Lot,
|
||||||
|
MaterialType = item.Sn,
|
||||||
|
Qty = item.Qty,
|
||||||
|
Batch = item.PH,
|
||||||
|
Lot = item.Len,
|
||||||
|
SourceCode = item.CJ,
|
||||||
|
CreateTime = DateTime.Now,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
_unitwork.BatchAdd(matList.ToArray());
|
||||||
|
_unit.BatchAdd(detailList.ToArray());
|
||||||
|
|
||||||
|
receipt.TotalLines = detailList.Count();
|
||||||
|
receipt.TotalQty = detailList.Sum(x => x.Qty);
|
||||||
|
_unit.Update(receipt);
|
||||||
|
|
||||||
|
tran.Commit();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
tran.Rollback();
|
||||||
|
return JsonMore(null, 500, ex.Message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return JsonMore(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
[ActionDescription("Sys.Createjh")]
|
||||||
|
[FixConnection(CsName = "hangyong")]
|
||||||
|
public ActionResult Createjh(int data)
|
||||||
|
{
|
||||||
|
var dc = Wtm.CreateDC(cskey: "hangyong");
|
||||||
|
Wtm.DC = dc;
|
||||||
|
var str = "";
|
||||||
|
while(data > 0)
|
||||||
|
{
|
||||||
|
var jh = _unitwork.GetSerialNumber("JH");
|
||||||
|
str += jh + " ";
|
||||||
|
data--;
|
||||||
|
}
|
||||||
|
return JsonMore(str);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Public]
|
||||||
|
[HttpPost]
|
||||||
|
[ActionDescription("Sys.ScanJh")]
|
||||||
|
public ActionResult ScanJh(string data) {
|
||||||
|
var material = _unitwork.FindSingle<Material>(x => x.UniqueCode == data);
|
||||||
|
if(material == null)
|
||||||
|
{
|
||||||
|
return JsonMore(null,500,$"卷号{data}未找到!");
|
||||||
|
}
|
||||||
|
return JsonMore(material);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class receipt4
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 卷号
|
||||||
|
/// </summary>
|
||||||
|
public string JH { get; set; }
|
||||||
|
public decimal Qty { get; set; }
|
||||||
|
public string Len { get; set; }
|
||||||
|
public string Lot { get; set; }
|
||||||
|
public string Sn { get; set;}
|
||||||
|
public string CJ { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 片厚
|
||||||
|
/// </summary>
|
||||||
|
public string PH { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -75,8 +75,8 @@ public class XWMSPOHController : BaseController
|
|||||||
UOM_0 = x.Field<string>("UOM_0"),
|
UOM_0 = x.Field<string>("UOM_0"),
|
||||||
QTYSTU_0 = x.Field<decimal>("QTYSTU_0"),
|
QTYSTU_0 = x.Field<decimal>("QTYSTU_0"),
|
||||||
STU_0 = x.Field<string>("STU_0"),
|
STU_0 = x.Field<string>("STU_0"),
|
||||||
THISQTYUOM = x.Field<decimal>("QTYUOM_0"),
|
THISQTYUOM = x.Field<decimal>("NRCPQTYPUU_0"),
|
||||||
THISQTYSTU = x.Field<decimal>("QTYSTU_0"),
|
THISQTYSTU = x.Field<decimal>("NRCPQTYSTU_0"),
|
||||||
NRCPQTYPUU_0 = x.Field<decimal>("NRCPQTYPUU_0"),
|
NRCPQTYPUU_0 = x.Field<decimal>("NRCPQTYPUU_0"),
|
||||||
NRCPQTYSTU_0 = x.Field<decimal>("NRCPQTYSTU_0"),
|
NRCPQTYSTU_0 = x.Field<decimal>("NRCPQTYSTU_0"),
|
||||||
UOMSTUCOE_0 = x.Field<decimal>("UOMSTUCOE_0"),
|
UOMSTUCOE_0 = x.Field<decimal>("UOMSTUCOE_0"),
|
||||||
@@ -131,7 +131,7 @@ public class XWMSPOHController : BaseController
|
|||||||
detail.Unit = item.STU_0;
|
detail.Unit = item.STU_0;
|
||||||
detail.PurchasQty = item.THISQTYUOM;
|
detail.PurchasQty = item.THISQTYUOM;
|
||||||
detail.PurchasUnits = item.UOM_0;
|
detail.PurchasUnits = item.UOM_0;
|
||||||
detail.Coefficient = item.UOMSTUCOE_0;
|
detail.Coefficient = Math.Round(item.THISQTYSTU/item.THISQTYUOM,9);
|
||||||
detail.InventoryStatus = item.STA_0;
|
detail.InventoryStatus = item.STA_0;
|
||||||
detail.Batch = _unitwork.GetSerialNumber("HYB", 5).Remove(3, 2);
|
detail.Batch = _unitwork.GetSerialNumber("HYB", 5).Remove(3, 2);
|
||||||
detail.Status = 0;
|
detail.Status = 0;
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ namespace HHWMS.Web
|
|||||||
this.MakeGridHeader(x => x.Type),
|
this.MakeGridHeader(x => x.Type),
|
||||||
this.MakeGridHeader(x => x.Name).SetWidth(150),
|
this.MakeGridHeader(x => x.Name).SetWidth(150),
|
||||||
this.MakeGridHeader(x => x.MasterUnit),
|
this.MakeGridHeader(x => x.MasterUnit),
|
||||||
|
this.MakeGridHeader(x => x.Specification),
|
||||||
this.MakeGridHeader(x => x.ClassA),
|
this.MakeGridHeader(x => x.ClassA),
|
||||||
this.MakeGridHeaderAction(width: 200)
|
this.MakeGridHeaderAction(width: 200)
|
||||||
};
|
};
|
||||||
@@ -45,6 +46,7 @@ namespace HHWMS.Web
|
|||||||
{
|
{
|
||||||
var dc2 = Wtm.CreateDC(cskey: "hangyong");
|
var dc2 = Wtm.CreateDC(cskey: "hangyong");
|
||||||
var query = dc2.Set<Material2>()
|
var query = dc2.Set<Material2>()
|
||||||
|
.Where(x => x.WarehouseId == 6)
|
||||||
.CheckContain(Searcher.Code, x => x.Code)
|
.CheckContain(Searcher.Code, x => x.Code)
|
||||||
.CheckContain(Searcher.Name, x => x.Name)
|
.CheckContain(Searcher.Name, x => x.Name)
|
||||||
.CheckContain(Searcher.Type, x => x.Type)
|
.CheckContain(Searcher.Type, x => x.Type)
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ namespace HHWMS.Web
|
|||||||
public String ClassA { get; set; }
|
public String ClassA { get; set; }
|
||||||
public String ClassB { get; set; }
|
public String ClassB { get; set; }
|
||||||
public String ClassC { get; set; }
|
public String ClassC { get; set; }
|
||||||
|
[Display(Name = "Inventory.MaterialSpec")]
|
||||||
public String Specification { get; set; }
|
public String Specification { get; set; }
|
||||||
public String Brand { get; set; }
|
public String Brand { get; set; }
|
||||||
public String Size { get; set; }
|
public String Size { get; set; }
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ namespace HHWMS.Web.xwms.ViewModels.ReceiptHeader2VMs
|
|||||||
this.MakeStandardAction("ReceiptHeader2", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "xwms", dialogWidth: 800),
|
this.MakeStandardAction("ReceiptHeader2", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "xwms", dialogWidth: 800),
|
||||||
this.MakeStandardAction("ReceiptHeader2", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "xwms", dialogWidth: 800),
|
this.MakeStandardAction("ReceiptHeader2", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "xwms", dialogWidth: 800),
|
||||||
this.MakeStandardAction("ReceiptHeader2", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "xwms"),
|
this.MakeStandardAction("ReceiptHeader2", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "xwms"),
|
||||||
|
this.MakeAction("ReceiptHeader2","Create2",Localizer["Sys.SDRCreate"],Localizer["Sys.SDRCreate"],GridActionParameterTypesEnum.NoId,"xwms")
|
||||||
|
,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,7 +113,7 @@ namespace HHWMS.Web.xwms.ViewModels.ReceiptHeader2VMs
|
|||||||
UserDef3 = x.UserDef3,
|
UserDef3 = x.UserDef3,
|
||||||
Station = x.Station,
|
Station = x.Station,
|
||||||
})
|
})
|
||||||
.OrderBy(x => x.ID);
|
.OrderByDescending(x => x.ID);
|
||||||
return query;
|
return query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<wt:selector field="Entity.MaterialCode" list-vm="MaterialList"
|
<wt:selector field="Entity.MaterialCode" list-vm="MaterialList"
|
||||||
text-bind="MaterialList.EntityList[0].Code"
|
text-bind="MaterialList.EntityList[0].Code"
|
||||||
submit-func="test">
|
submit-func="test">
|
||||||
<wt:searchpanel vm="MaterialList">
|
<wt:searchpanel vm="MaterialList" expanded="true">
|
||||||
<wt:row items-per-row=" ItemsPerRowEnum.Two">
|
<wt:row items-per-row=" ItemsPerRowEnum.Two">
|
||||||
<wt:textbox field="MaterialList.Searcher.Code" />
|
<wt:textbox field="MaterialList.Searcher.Code" />
|
||||||
<wt:textbox field="MaterialList.Searcher.Name" />
|
<wt:textbox field="MaterialList.Searcher.Name" />
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<el-button type="primary" @@click="print">打印</el-button>
|
<el-button type="primary" @@click="print">打印</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @@click="chaiBill">拆分</el-button>
|
<el-button type="primary" @@click="chaiBill" :disabled="disabledChaiButton">拆分</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
@@ -26,7 +26,8 @@
|
|||||||
<el-table-column type="index"
|
<el-table-column type="index"
|
||||||
width="50">
|
width="50">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="物料编码" width="150" align="center" prop="MaterialCode"></el-table-column>
|
<el-table-column label="ID" width="150" align="center" prop="Id" v-if="false"></el-table-column>
|
||||||
|
<el-table-column label="卷号" width="150" align="center" prop="MaterialCode"></el-table-column>
|
||||||
<el-table-column label="物料名称" width="150" align="center" prop="MaterialName"></el-table-column>
|
<el-table-column label="物料名称" width="150" align="center" prop="MaterialName"></el-table-column>
|
||||||
<el-table-column label="规格" width="150" align="center" prop="Lot"></el-table-column>
|
<el-table-column label="规格" width="150" align="center" prop="Lot"></el-table-column>
|
||||||
<el-table-column label="批次" width="150" align="center" prop="Batch"></el-table-column>
|
<el-table-column label="批次" width="150" align="center" prop="Batch"></el-table-column>
|
||||||
@@ -49,7 +50,8 @@
|
|||||||
qty:'',
|
qty:'',
|
||||||
loading: false,
|
loading: false,
|
||||||
tableData: [],
|
tableData: [],
|
||||||
sumQty:0
|
sumQty:0,
|
||||||
|
disabledChaiButton:false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
@@ -111,6 +113,7 @@
|
|||||||
},
|
},
|
||||||
chaiBill() {
|
chaiBill() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
var loadIndex = layer.load(0);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
@@ -119,13 +122,16 @@
|
|||||||
},
|
},
|
||||||
url: "/xwms/ReceiptDetail2/ChaiDetail",
|
url: "/xwms/ReceiptDetail2/ChaiDetail",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
|
layer.close(loadIndex);
|
||||||
if (json.Code == 200) {
|
if (json.Code == 200) {
|
||||||
layer.msg("拆分数据成功");
|
layer.msg("拆分数据成功");
|
||||||
|
_this.disabledChaiButton = true;
|
||||||
} else {
|
} else {
|
||||||
layer.alert(json.Msg, { icon: 5, shadeClose: true, title: "错误信息" });
|
layer.alert(json.Msg, { icon: 5, shadeClose: true, title: "错误信息" });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function (json) {
|
error: function (json) {
|
||||||
|
layer.close(loadIndex);
|
||||||
layer.alert("失败", { icon: 5, shadeClose: true, title: "错误信息" });
|
layer.alert("失败", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
@model HHWMS.Web.ReceiptDetail2VM
|
||||||
|
@inject IStringLocalizer<Program> Localizer;
|
||||||
|
|
||||||
|
<wt:form vm="@Model">
|
||||||
|
<wt:row items-per-row="ItemsPerRowEnum.One">
|
||||||
|
<wt:row id="selector">
|
||||||
|
<wt:selector field="Entity.MaterialCode" list-vm="MaterialList"
|
||||||
|
text-bind="MaterialList.EntityList[0].Code"
|
||||||
|
submit-func="test">
|
||||||
|
<wt:searchpanel vm="MaterialList" expanded="true">
|
||||||
|
<wt:row items-per-row=" ItemsPerRowEnum.Two">
|
||||||
|
<wt:textbox field="MaterialList.Searcher.Code" />
|
||||||
|
<wt:textbox field="MaterialList.Searcher.Name" />
|
||||||
|
<wt:textbox field="MaterialList.Searcher.Type" />
|
||||||
|
</wt:row>
|
||||||
|
</wt:searchpanel>
|
||||||
|
</wt:selector>
|
||||||
|
</wt:row>
|
||||||
|
<wt:textbox field="Entity.MaterialName"/>
|
||||||
|
<wt:textbox field="Entity.Batch" />
|
||||||
|
<wt:textbox field="Entity.Qty" />
|
||||||
|
<wt:combobox field="Entity.InventoryStatus" items="InventoryStatus" />
|
||||||
|
</wt:row>
|
||||||
|
<wt:hidden field="Entity.ReceiptId" />
|
||||||
|
<wt:row align="AlignEnum.Right">
|
||||||
|
<wt:submitbutton />
|
||||||
|
<wt:closebutton />
|
||||||
|
</wt:row>
|
||||||
|
</wt:form>
|
||||||
|
<script>
|
||||||
|
function test(val) {
|
||||||
|
$('#ReceiptDetail2VM_Entity_MaterialName').val(val[0].Name);
|
||||||
|
ReceiptDetail2VM_Entity_InventoryStatus.setValue([val[0].ClassA]);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
<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>
|
||||||
<el-table-column label="名称序列" width="150" align="center" prop="BOMSEQ_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="名称序列" width="150" align="center" prop="BOMSEQ_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="计划数量" width="150" align="center" prop="EXTQTY_0"></el-table-column>
|
<el-table-column label="计划数量" width="150" align="center" prop="EXTQTY_0"></el-table-column>
|
||||||
<el-table-column label="产品备注" width="100" align="center" prop="YITMDES4_0"></el-table-column>
|
<el-table-column label="产品备注" width="100" align="center" prop="YITMDES4_0" show-overflow-tooltip></el-table-column>
|
||||||
@* <el-table-column label="WMS添加" width="200" align="center" prop="WMD_USEQTY_0"></el-table-column> *@
|
@* <el-table-column label="WMS添加" width="200" align="center" prop="WMD_USEQTY_0"></el-table-column> *@
|
||||||
<el-table-column label="存货追踪模式" width="100" align="center" prop="STOCOD_0"></el-table-column>
|
<el-table-column label="存货追踪模式" width="100" align="center" prop="STOCOD_0"></el-table-column>
|
||||||
|
|
||||||
|
|||||||
@@ -201,6 +201,7 @@
|
|||||||
size="small"
|
size="small"
|
||||||
ref="tableData"
|
ref="tableData"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
|
:header-cell-style="headerStyleEvent"
|
||||||
:highlight-current-row="true"
|
:highlight-current-row="true"
|
||||||
@@row-click="handleClickTableRow"
|
@@row-click="handleClickTableRow"
|
||||||
@@cell-mouse-enter="handleCellEnter"
|
@@cell-mouse-enter="handleCellEnter"
|
||||||
@@ -216,18 +217,23 @@
|
|||||||
<el-table-column label="订单日期" width="100" align="center" prop="ORDDAT_0"></el-table-column>
|
<el-table-column label="订单日期" width="100" align="center" prop="ORDDAT_0"></el-table-column>
|
||||||
@* <el-table-column label="供应商" align="center" prop="BPSNUM_0"></el-table-column> *@
|
@* <el-table-column label="供应商" align="center" prop="BPSNUM_0"></el-table-column> *@
|
||||||
<el-table-column label="供应商名称" width="150" align="center" prop="BPRNAM_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="供应商名称" width="150" align="center" prop="BPRNAM_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="订单号" width="180" align="center" prop="POHNUM_0"></el-table-column>
|
<el-table-column label="订单号" width="150" align="center" prop="POHNUM_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="行号" width="100" align="center" prop="POPLIN_0"></el-table-column>
|
<el-table-column label="行号" width="80" align="center" prop="POPLIN_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" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="名称" width="150" align="center" prop="ITMDES1_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="名称" width="150" align="center" prop="ITMDES1_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="代号" width="150" align="center" prop="ITMDES2_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="代号" width="150" align="center" prop="ITMDES2_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="未收库存数量" width="100" align="center" prop="NRCPQTYSTU_0"></el-table-column>
|
<el-table-column label="本次收量(库存单位)" width="100" align="center" prop="THISQTYSTU">
|
||||||
<el-table-column label="本次收量(库存单位)" width="200" align="center" prop="THISQTYSTU">
|
|
||||||
<div class="item" slot-scope="scope">
|
<div class="item" slot-scope="scope">
|
||||||
<el-input class="item__input" v-model="scope.row.THISQTYSTU" placeholder="请输入内容"></el-input>
|
<el-input class="item__input" v-model="scope.row.THISQTYSTU" placeholder="请输入内容"></el-input>
|
||||||
<div class="item__txt">{{scope.row.THISQTYSTU}}</div>
|
<div class="item__txt">{{scope.row.THISQTYSTU}}</div>
|
||||||
</div>
|
</div>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="本次收量(采购单位kg)" width="100" align="center" prop="THISQTYUOM">
|
||||||
|
<div class="item" slot-scope="scope">
|
||||||
|
<el-input class="item__input" v-model="scope.row.THISQTYUOM" placeholder="请输入内容"></el-input>
|
||||||
|
<div class="item__txt">{{scope.row.THISQTYUOM}}</div>
|
||||||
|
</div>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="库存状态" width="100" align="center" prop="STA_0">
|
<el-table-column label="库存状态" width="100" align="center" prop="STA_0">
|
||||||
<div class="item" slot-scope="scope">
|
<div class="item" slot-scope="scope">
|
||||||
<el-select class="item__input" v-model="scope.row.STA_0" placeholder="请选择">
|
<el-select class="item__input" v-model="scope.row.STA_0" placeholder="请选择">
|
||||||
@@ -240,20 +246,15 @@
|
|||||||
<div class="item__txt">{{foodLabel(scope.row.STA_0)}}</div>
|
<div class="item__txt">{{foodLabel(scope.row.STA_0)}}</div>
|
||||||
</div>
|
</div>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="未收采购数量" width="100" align="center" prop="NRCPQTYPUU_0"></el-table-column>
|
<el-table-column label="未收库存数量" width="100" align="center" prop="NRCPQTYSTU_0"></el-table-column>
|
||||||
<el-table-column label="本次收量(采购单位)" width="200" align="center" prop="THISQTYUOM">
|
<el-table-column label="未收采购数量" width="100" align="center" prop="NRCPQTYPUU_0"></el-table-column
|
||||||
<div class="item" slot-scope="scope">
|
|
||||||
<el-input class="item__input" v-model="scope.row.THISQTYUOM" placeholder="请输入内容"></el-input>
|
|
||||||
<div class="item__txt">{{scope.row.THISQTYUOM}}</div>
|
|
||||||
</div>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="数量(采购)" width="100" align="center" prop="QTYUOM_0"></el-table-column>
|
<el-table-column label="数量(采购)" width="100" align="center" prop="QTYUOM_0"></el-table-column>
|
||||||
<el-table-column label="采购单位" width="100" align="center" prop="UOM_0"></el-table-column>
|
<el-table-column label="采购单位" width="100" align="center" prop="UOM_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="采购说明" width="150" align="center" prop="POHITMDES1_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="采购说明" width="150" align="center" prop="POHITMDES1_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="数量" width="100" align="center" prop="QTYSTU_0"></el-table-column>
|
<el-table-column label="数量" width="100" align="center" prop="QTYSTU_0"></el-table-column>
|
||||||
<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" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="计量单位/存货单位系数" width="100" align="center" prop="UOMSTUCOE_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="计量单位/存货单位系数" width="100" align="center" prop="UOMSTUCOE_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="项目号" width="150" align="center" prop="PJT_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="PJTNAM_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="项目名称" width="150" align="center" prop="PJTNAM_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="材料" align="center" prop="ITMDES3_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="材料" align="center" prop="ITMDES3_0" show-overflow-tooltip></el-table-column>
|
||||||
<el-table-column label="备注" align="center" prop="YITMDES4_0" show-overflow-tooltip></el-table-column>
|
<el-table-column label="备注" align="center" prop="YITMDES4_0" show-overflow-tooltip></el-table-column>
|
||||||
@@ -303,13 +304,13 @@
|
|||||||
total: 20, // 总条数
|
total: 20, // 总条数
|
||||||
pageSize: 20, // 每页的数据条数
|
pageSize: 20, // 每页的数据条数
|
||||||
// 需要编辑的属性
|
// 需要编辑的属性
|
||||||
editProp: ['THISQTYSTU', 'STA_0'],
|
editProp: ['THISQTYSTU', 'STA_0', 'THISQTYUOM'],
|
||||||
multipleSelection: []
|
multipleSelection: []
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
var t = localStorage.getItem("WareHouseId");
|
// var t = localStorage.getItem("WareHouseId");
|
||||||
console.log(t);
|
// console.log(t);
|
||||||
// 获取所有单据编码
|
// 获取所有单据编码
|
||||||
// $.ajax({
|
// $.ajax({
|
||||||
// type: "post",
|
// type: "post",
|
||||||
@@ -332,6 +333,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
headerStyleEvent({ row, column, rowIndex, columnIndex }) {
|
||||||
|
if (columnIndex == 9
|
||||||
|
|| columnIndex == 10
|
||||||
|
|| columnIndex == 11) {
|
||||||
|
return 'background-color:#FFFF99'
|
||||||
|
}
|
||||||
|
},
|
||||||
/** 鼠标移入cell */
|
/** 鼠标移入cell */
|
||||||
handleCellEnter(row, column, cell, event) {
|
handleCellEnter(row, column, cell, event) {
|
||||||
const property = column.property
|
const property = column.property
|
||||||
@@ -347,14 +355,14 @@
|
|||||||
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 (property == "THISQTYSTU") {
|
||||||
// 库存单位除以系数
|
// // 库存单位除以系数
|
||||||
row.THISQTYUOM = row.THISQTYSTU / row.UOMSTUCOE_0;
|
// row.THISQTYUOM = row.THISQTYSTU / row.UOMSTUCOE_0;
|
||||||
}
|
// }
|
||||||
if (property == "THISQTYUOM") {
|
// if (property == "THISQTYUOM") {
|
||||||
// 采购单位 乘 系数
|
// // 采购单位 乘 系数
|
||||||
row.THISQTYSTU = row.THISQTYUOM * row.UOMSTUCOE_0;
|
// row.THISQTYSTU = row.THISQTYUOM * row.UOMSTUCOE_0;
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
//每页条数改变时触发 选择一页显示多少行
|
//每页条数改变时触发 选择一页显示多少行
|
||||||
handleSizeChange(val) {
|
handleSizeChange(val) {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace HHWMS.Web.Models
|
|||||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
public new int ID { get; set; }
|
public new int ID { get; set; }
|
||||||
|
|
||||||
[Display(Name = "Inventory.UniqueCode", Description = "唯一码")]
|
[Display(Name = "Inventory4.UniqueCode", Description = "唯一码")]
|
||||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||||
public string UniqueCode { get; set; }
|
public string UniqueCode { get; set; }
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ namespace HHWMS.Web.Models
|
|||||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||||
public string MaterialCode { get; set; }
|
public string MaterialCode { get; set; }
|
||||||
|
|
||||||
[Display(Name = "Inventory.MaterialType", Description = "物料类型")]
|
[Display(Name = "Inventory4.MaterialType", Description = "物料类型")]
|
||||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||||
public string MaterialType { get; set; }
|
public string MaterialType { get; set; }
|
||||||
|
|
||||||
@@ -37,14 +37,14 @@ namespace HHWMS.Web.Models
|
|||||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||||
public string MaterialName { get; set; }
|
public string MaterialName { get; set; }
|
||||||
|
|
||||||
[Display(Name = "Inventory.MaterialSpec", Description = "物料规格")]
|
[Display(Name = "Inventory4.MaterialSpec", Description = "物料规格")]
|
||||||
public string MaterialSpec { get; set; }
|
public string MaterialSpec { get; set; }
|
||||||
|
|
||||||
[Display(Name = "Inventory.MaterialUnit", Description = "单位")]
|
[Display(Name = "Inventory.MaterialUnit", Description = "单位")]
|
||||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||||
public string MaterialUnit { get; set; }
|
public string MaterialUnit { get; set; }
|
||||||
|
|
||||||
[Display(Name = "Inventory.Batch", Description = "批次")]
|
[Display(Name = "Inventory4.Batch", Description = "批次")]
|
||||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||||
public string Batch { get; set; }
|
public string Batch { get; set; }
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ namespace HHWMS.Web.Models
|
|||||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||||
public string SupplierCode { get; set; }
|
public string SupplierCode { get; set; }
|
||||||
|
|
||||||
[Display(Name = "Inventory.Qty", Description = "数量")]
|
[Display(Name = "Inventory4.Qty", Description = "数量")]
|
||||||
[Column(TypeName = "decimal(12,4)")]
|
[Column(TypeName = "decimal(12,4)")]
|
||||||
public decimal? Qty { get; set; }
|
public decimal? Qty { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ namespace HHWMS.Web.Models
|
|||||||
/// 规格
|
/// 规格
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("specification")]
|
[Column("specification")]
|
||||||
|
[Display(Name = "ReceiptDetail2.Lot")]
|
||||||
public string Specification { get; set; }
|
public string Specification { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 品牌
|
/// 品牌
|
||||||
|
|||||||
@@ -48,18 +48,21 @@ namespace HHWMS.Web.Models
|
|||||||
/// 上游系统单号
|
/// 上游系统单号
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("sourceCode")]
|
[Column("sourceCode")]
|
||||||
|
[Display(Name = "ReceiptDetail2.SourceCode")]
|
||||||
public string SourceCode { get; set; }
|
public string SourceCode { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 供应商编码
|
/// 供应商编码
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("supplierCode")]
|
[Column("supplierCode")]
|
||||||
|
[Display(Name = "ReceiptDetail2.SupplierCode")]
|
||||||
public string SupplierCode { get; set; }
|
public string SupplierCode { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 供应商名称
|
/// 供应商名称
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("supplierName")]
|
[Column("supplierName")]
|
||||||
|
[Display(Name = "ReceiptDetail2.SupplierName")]
|
||||||
public string SupplierName { get; set; }
|
public string SupplierName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -78,6 +81,7 @@ namespace HHWMS.Web.Models
|
|||||||
/// 上游系统行号
|
/// 上游系统行号
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("sourceLine")]
|
[Column("sourceLine")]
|
||||||
|
[Display(Name = "ReceiptDetail2.SourceLine")]
|
||||||
public string SourceLine { get; set; }
|
public string SourceLine { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -89,7 +93,8 @@ namespace HHWMS.Web.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 出库单编码
|
/// 出库单编码
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("shipmentCode")]
|
[Column("shipmentCode")]
|
||||||
|
[Display(Name = "Inventory.ShipCode")]
|
||||||
public string ShipmentCode { get; set; }
|
public string ShipmentCode { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -102,24 +107,28 @@ namespace HHWMS.Web.Models
|
|||||||
/// 物料编码
|
/// 物料编码
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("materialCode")]
|
[Column("materialCode")]
|
||||||
|
[Display(Name = "ReceiptDetail2.MaterialCode")]
|
||||||
public string MaterialCode { get; set; }
|
public string MaterialCode { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 物料名称
|
/// 物料名称
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("materialName")]
|
[Column("materialName")]
|
||||||
|
[Display(Name = "ReceiptDetail2.MaterialName")]
|
||||||
public string MaterialName { get; set; }
|
public string MaterialName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 批次
|
/// 批次
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("batch")]
|
[Column("batch")]
|
||||||
|
[Display(Name = "ReceiptDetail2.Batch")]
|
||||||
public string Batch { get; set; }
|
public string Batch { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 批号----规格
|
/// 批号----规格
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("lot")]
|
[Column("lot")]
|
||||||
|
[Display(Name = "ReceiptDetail2.Lot")]
|
||||||
public string Lot { get; set; }
|
public string Lot { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -156,12 +165,14 @@ namespace HHWMS.Web.Models
|
|||||||
/// 库存状态
|
/// 库存状态
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("inventoryStatus")]
|
[Column("inventoryStatus")]
|
||||||
|
[Display(Name = "ReceiptDetail2.InventoryStatus")]
|
||||||
public string InventoryStatus { get; set; }
|
public string InventoryStatus { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 发货数量
|
/// 发货数量
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("qty")]
|
[Column("qty")]
|
||||||
|
[Display(Name = "ReceiptDetail2.Qty")]
|
||||||
public decimal? Qty { get; set; }
|
public decimal? Qty { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -174,18 +185,21 @@ namespace HHWMS.Web.Models
|
|||||||
/// 单位
|
/// 单位
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("unit")]
|
[Column("unit")]
|
||||||
|
[Display(Name = "ReceiptDetail2.Unit")]
|
||||||
public string Unit { get; set; }
|
public string Unit { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 物料单价
|
/// 物料单价
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("price")]
|
[Column("price")]
|
||||||
|
[Display(Name = "Bill.Price")]
|
||||||
public decimal? Price { get; set; }
|
public decimal? Price { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 状态
|
/// 状态
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("status")]
|
[Column("status")]
|
||||||
|
[Display(Name = "ReceiptDetail2.Status")]
|
||||||
public int? Status { get; set; }
|
public int? Status { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ namespace HHWMS.Web.Models
|
|||||||
/// 出库单号
|
/// 出库单号
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("code")]
|
[Column("code")]
|
||||||
|
[Display(Name = "Inventory.ShipCode")]
|
||||||
public string Code { get; set; }
|
public string Code { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -48,6 +49,7 @@ namespace HHWMS.Web.Models
|
|||||||
/// 上游系统单号
|
/// 上游系统单号
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("sourceCode")]
|
[Column("sourceCode")]
|
||||||
|
[Display(Name = "ReceiptDetail2.SourceCode")]
|
||||||
public string SourceCode { get; set; }
|
public string SourceCode { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -60,12 +62,14 @@ namespace HHWMS.Web.Models
|
|||||||
/// 出库单类型
|
/// 出库单类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("type")]
|
[Column("type")]
|
||||||
|
[Display(Name = "ReceiptHeader2.Type")]
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 客户编码
|
/// 客户编码
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("shipTo")]
|
[Column("shipTo")]
|
||||||
|
[Display(Name = "ReceiptDetail2.SupplierCode")]
|
||||||
public string ShipTo { get; set; }
|
public string ShipTo { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -84,12 +88,14 @@ namespace HHWMS.Web.Models
|
|||||||
/// 总数量
|
/// 总数量
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("totalQty")]
|
[Column("totalQty")]
|
||||||
|
[Display(Name = "ReceiptHeader2.TotalQty")]
|
||||||
public decimal? TotalQty { get; set; }
|
public decimal? TotalQty { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 总行数
|
/// 总行数
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("totalLines")]
|
[Column("totalLines")]
|
||||||
|
[Display(Name = "ReceiptHeader2.TotalLines")]
|
||||||
public int? TotalLines { get; set; }
|
public int? TotalLines { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -108,6 +114,7 @@ namespace HHWMS.Web.Models
|
|||||||
/// 上传时间
|
/// 上传时间
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("uploadTime")]
|
[Column("uploadTime")]
|
||||||
|
[Display(Name = "ReceiptHeader2.UploadTime")]
|
||||||
public System.DateTime? UploadTime { get; set; }
|
public System.DateTime? UploadTime { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -120,18 +127,21 @@ namespace HHWMS.Web.Models
|
|||||||
/// 单据头状态
|
/// 单据头状态
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("firstStatus")]
|
[Column("firstStatus")]
|
||||||
|
[Display(Name = "ReceiptHeader2.FirstStatus")]
|
||||||
public int? FirstStatus { get; set; }
|
public int? FirstStatus { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 单据尾状态
|
/// 单据尾状态
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("lastStatus")]
|
[Column("lastStatus")]
|
||||||
|
[Display(Name = "ReceiptHeader2.LastStatus")]
|
||||||
public int? LastStatus { get; set; }
|
public int? LastStatus { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// upload状态
|
/// upload状态
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("uploadStatus")]
|
[Column("uploadStatus")]
|
||||||
|
[Display(Name = "ReceiptHeader2.UploadStatus")]
|
||||||
public int? UploadStatus { get; set; }
|
public int? UploadStatus { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -168,6 +178,7 @@ namespace HHWMS.Web.Models
|
|||||||
/// 交易组
|
/// 交易组
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("userDef4")]
|
[Column("userDef4")]
|
||||||
|
[Display(Name = "ReceiptHeader2.UserDef5")]
|
||||||
public string UserDef4 { get; set; }
|
public string UserDef4 { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1491,4 +1491,28 @@
|
|||||||
<data name="Sys.CheckInv" xml:space="preserve">
|
<data name="Sys.CheckInv" xml:space="preserve">
|
||||||
<value>ERP对账</value>
|
<value>ERP对账</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Sys.SDRCreate" xml:space="preserve">
|
||||||
|
<value>手动入库</value>
|
||||||
|
</data>
|
||||||
|
<data name="Bill.Price" xml:space="preserve">
|
||||||
|
<value>单价</value>
|
||||||
|
</data>
|
||||||
|
<data name="Material2.ClassA" xml:space="preserve">
|
||||||
|
<value>状态</value>
|
||||||
|
</data>
|
||||||
|
<data name="Inventory4.Qty" xml:space="preserve">
|
||||||
|
<value>重量</value>
|
||||||
|
</data>
|
||||||
|
<data name="Inventory4.Batch" xml:space="preserve">
|
||||||
|
<value>片厚</value>
|
||||||
|
</data>
|
||||||
|
<data name="Inventory4.MaterialType" xml:space="preserve">
|
||||||
|
<value>铁损</value>
|
||||||
|
</data>
|
||||||
|
<data name="Inventory4.MaterialSpec" xml:space="preserve">
|
||||||
|
<value>规格</value>
|
||||||
|
</data>
|
||||||
|
<data name="Inventory4.UniqueCode" xml:space="preserve">
|
||||||
|
<value>卷号</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -12,7 +12,7 @@ namespace HHWMS.Web
|
|||||||
public static OracleConnection conn = null;
|
public static OracleConnection conn = null;
|
||||||
|
|
||||||
//user id=guest;password=guest123; data source=202.101.164.132:15555/SAGEX3;
|
//user id=guest;password=guest123; data source=202.101.164.132:15555/SAGEX3;
|
||||||
public static string connstr = "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=202.101.164.132)(PORT=15555))(CONNECT_DATA=(SERVICE_NAME=SAGEX3)));User Id=guest;Password=guest123";
|
public static string connstr = "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=202.101.164.132)(PORT=15555))(CONNECT_DATA=(SERVICE_NAME=SAGEX3)));User Id=QRE;Password=tiger";
|
||||||
|
|
||||||
public static OracleConnection init()
|
public static OracleConnection init()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user