其他出
This commit is contained in:
1 parent
f15b26fcc5
commit
e9f154bd06
46 files changed
+3178
No files matched your search
@@ -0,0 +1,12 @@
|
||||
@model HHWMS.Web.ShipmentHeader2BatchVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:quote>@Localizer["Sys.BatchDeleteConfirm"]</wt:quote>
|
||||
<wt:hidden field="Ids" />
|
||||
<wt:grid vm="ListVM" use-local-data="true" height="300" hidden-checkbox="true" hidden-panel="true"/>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton theme=" ButtonThemeEnum.Warm" text="@Localizer["Sys.Delete"]"/>
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,14 @@
|
||||
@model HHWMS.Web.ShipmentHeader2BatchVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<div style="margin-bottom:10px">@Localizer["Sys.BatchEditConfirm"] </div>
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
</wt:row>
|
||||
<wt:hidden field="Ids" />
|
||||
<wt:grid vm="ListVM" use-local-data="true" height="300" hidden-checkbox="true" hidden-panel="true"/>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,37 @@
|
||||
@model HHWMS.Web.ShipmentHeader2VM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:textbox field="Entity.WarehouseId" />
|
||||
<wt:textbox field="Entity.WarehouseCode" />
|
||||
<wt:textbox field="Entity.Code" />
|
||||
<wt:textbox field="Entity.CompanyId" />
|
||||
<wt:textbox field="Entity.CompanyCode" />
|
||||
<wt:textbox field="Entity.SourceCode" />
|
||||
<wt:textbox field="Entity.SourcePlatform" />
|
||||
<wt:textbox field="Entity.Type" />
|
||||
<wt:textbox field="Entity.ShipTo" />
|
||||
<wt:textbox field="Entity.Priority" />
|
||||
<wt:textbox field="Entity.Station" />
|
||||
<wt:textbox field="Entity.TotalQty" />
|
||||
<wt:textbox field="Entity.TotalLines" />
|
||||
<wt:textbox field="Entity.Remark" />
|
||||
<wt:textbox field="Entity.Uploadremark" />
|
||||
<wt:datetime field="Entity.UploadTime" />
|
||||
<wt:datetime field="Entity.AppointmentTime" />
|
||||
<wt:textbox field="Entity.FirstStatus" />
|
||||
<wt:textbox field="Entity.LastStatus" />
|
||||
<wt:textbox field="Entity.UploadStatus" />
|
||||
<wt:combobox field="Entity.Enable" />
|
||||
<wt:combobox field="Entity.Deleted" />
|
||||
<wt:textbox field="Entity.UserDef1" />
|
||||
<wt:textbox field="Entity.UserDef2" />
|
||||
<wt:textbox field="Entity.UserDef3" />
|
||||
<wt:textbox field="Entity.UserDef4" />
|
||||
</wt:row>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,50 @@
|
||||
@model HHWMS.Web.Inventory2ListVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:searchpanel vm="@Model" reset-btn="true">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Three">
|
||||
<wt:textbox field="Searcher.WarehouseId" />
|
||||
<wt:textbox field="Searcher.WarehouseCode" />
|
||||
<wt:textbox field="Searcher.ZoneCode" />
|
||||
<wt:textbox field="Searcher.LocationId" />
|
||||
<wt:textbox field="Searcher.LocationCode" />
|
||||
<wt:textbox field="Searcher.ContainerCode" />
|
||||
<wt:textbox field="Searcher.Roadway" />
|
||||
<wt:textbox field="Searcher.SourceCode" />
|
||||
<wt:textbox field="Searcher.SourceLine" />
|
||||
<wt:textbox field="Searcher.CompanyId" />
|
||||
<wt:textbox field="Searcher.CompanyCode" />
|
||||
<wt:textbox field="Searcher.MaterialId" />
|
||||
<wt:textbox field="Searcher.MaterialCode" />
|
||||
<wt:textbox field="Searcher.MaterialName" />
|
||||
<wt:textbox field="Searcher.ReceiptId" />
|
||||
<wt:textbox field="Searcher.ReceiptCode" />
|
||||
<wt:textbox field="Searcher.ReceiptDetailId" />
|
||||
<wt:textbox field="Searcher.Batch" />
|
||||
<wt:textbox field="Searcher.Lot" />
|
||||
<wt:textbox field="Searcher.Sn" />
|
||||
<wt:textbox field="Searcher.Project" />
|
||||
<wt:datetime field="Searcher.ManufactureDate" range="true" />
|
||||
<wt:datetime field="Searcher.ExpirationDate" range="true" />
|
||||
<wt:textbox field="Searcher.Status" />
|
||||
<wt:textbox field="Searcher.ContainerStatus" />
|
||||
<wt:textbox field="Searcher.Qty" />
|
||||
<wt:textbox field="Searcher.Frozen" />
|
||||
<wt:textbox field="Searcher.TaskQty" />
|
||||
<wt:textbox field="Searcher.CostPrice" />
|
||||
<wt:textbox field="Searcher.ListPrice" />
|
||||
<wt:textbox field="Searcher.NetPrice" />
|
||||
<wt:textbox field="Searcher.UserDef1" />
|
||||
<wt:textbox field="Searcher.UserDef2" />
|
||||
<wt:textbox field="Searcher.UserDef3" />
|
||||
<wt:combobox field="Searcher.Deleted" empty-text="@Localizer["Sys.All"]" />
|
||||
<wt:textbox field="Searcher.TaskStatus" />
|
||||
<wt:textbox field="Searcher.SupplierName" />
|
||||
<wt:textbox field="Searcher.SupplierCode" />
|
||||
<wt:textbox field="Searcher.QrCode" />
|
||||
<wt:textbox field="Searcher.TaskNo" />
|
||||
<wt:textbox field="Searcher.Unit" />
|
||||
<wt:textbox field="Searcher.MaterialQty" />
|
||||
</wt:row>
|
||||
</wt:searchpanel>
|
||||
<wt:grid vm="@Model" url="/xwms/Inventory2/Search"/>
|
||||
@@ -0,0 +1,334 @@
|
||||
|
||||
<style lang='scss'>
|
||||
.item{
|
||||
.item__input{
|
||||
display: none;
|
||||
width: 80px;
|
||||
/* 调整elementUI中样式 如果不需要调整请忽略 */
|
||||
.el-input__inner{
|
||||
height: 35px!important;
|
||||
}
|
||||
/* 调整elementUI中样式 如果不需要调整请忽略 */
|
||||
.el-input__suffix{
|
||||
i{
|
||||
font-size: 12px !important;
|
||||
line-height: 26px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
.item__txt{
|
||||
box-sizing: border-box;
|
||||
line-height: 24px;
|
||||
padding: 0 9px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<el-row id="CreateOut">
|
||||
<el-form :inline="true" :model="form">
|
||||
<el-form-item>
|
||||
<el-select v-model="form.address" :popper-append-to-body="false" placeholder="地点">
|
||||
<el-option v-for="item in addressList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-select v-model="form.tran" :popper-append-to-body="false" placeholder="交易组">
|
||||
<el-option v-for="item in tranList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-select v-model="form.type" :popper-append-to-body="false" placeholder="任务类型">
|
||||
<el-option v-for="item in typeList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-plus" @@click="create">创建单据</el-button>
|
||||
</el-form-item>
|
||||
<el-divider></el-divider>
|
||||
<el-form-item>
|
||||
<el-input v-model="form.MaterialCode" placeholder="物料编码"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input v-model="form.MaterialName" placeholder="物料名称"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input v-model="form.Batch" placeholder="批次"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input v-model="form.Lot" placeholder="规格"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button icon="el-icon-search" @@click="search" circle></el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)"
|
||||
height="600" stripe border
|
||||
style="width: 100%"
|
||||
ref="tableData"
|
||||
v-loading="loading"
|
||||
@@cell-mouse-enter="handleCellEnter"
|
||||
@@cell-mouse-leave="handleCellLeave"
|
||||
@@selection-change="handleSelectionChange">
|
||||
<el-table-column type="index"
|
||||
width="50">
|
||||
</el-table-column>
|
||||
<el-table-column type="selection"
|
||||
width="55">
|
||||
</el-table-column>
|
||||
<el-table-column label="库位" width="150" align="center" prop="LocationCode"></el-table-column>
|
||||
<el-table-column label="容器" width="150" align="center" prop="ContainerCode"></el-table-column>
|
||||
<el-table-column label="物料编码" width="150" align="center" prop="MaterialCode" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="物料名称" width="180" align="center" prop="MaterialName"></el-table-column>
|
||||
<el-table-column label="批次" width="150" align="center" prop="Batch"></el-table-column>
|
||||
<el-table-column label="规格" width="200" align="center" prop="Lot"></el-table-column>
|
||||
<el-table-column label="供应商名称" width="200" align="center" prop="SupplierName"></el-table-column>
|
||||
<el-table-column label="数量" width="150" align="center" prop="Qty" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="出库数量" width="200" align="center" prop="ThisQty">
|
||||
<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.ThisQty}}</div>
|
||||
</div>
|
||||
</el-table-column>
|
||||
@*<el-table-column label="库存状态" width="100" align="center" prop="UserDef1">
|
||||
<div class="item" slot-scope="scope">
|
||||
<el-select class="item__input" v-model="scope.row.UserDef1" placeholder="请选择">
|
||||
<el-option v-for="item in options"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
<div class="item__txt">{{foodLabel(scope.row.UserDef1)}}</div>
|
||||
</div>
|
||||
</el-table-column>
|
||||
*@
|
||||
</el-table>
|
||||
|
||||
<el-pagination align='center'
|
||||
@@size-change="handleSizeChange"
|
||||
@@current-change="handleCurrentChange"
|
||||
:current-page="currentPage"
|
||||
:page-sizes="[1,5,10,20]"
|
||||
:page-size="pageSize"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="tableData.length">
|
||||
</el-pagination>
|
||||
</el-row>
|
||||
|
||||
<script>
|
||||
var app = new Vue({
|
||||
el: "#CreateOut",
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
address: 'HYB',
|
||||
tran:'',
|
||||
type: 'QTC',
|
||||
MaterialCode: '',
|
||||
MaterialName: '',
|
||||
Batch:'',
|
||||
Lot:'',
|
||||
},
|
||||
addressList: [{
|
||||
value: 'HYB',
|
||||
label: 'HYB'
|
||||
}],
|
||||
options: [{
|
||||
value: 'A',
|
||||
label: 'A'
|
||||
}, {
|
||||
value: 'Q',
|
||||
label: 'Q'
|
||||
}, {
|
||||
value: 'R',
|
||||
label: 'R'
|
||||
}],
|
||||
tranList: [{
|
||||
value: 'BS02',
|
||||
label: '盘亏'
|
||||
}, {
|
||||
value: 'BS03',
|
||||
label: '存货调整出'
|
||||
}, {
|
||||
value: 'BS04',
|
||||
label: '制造部门存货出'
|
||||
}, {
|
||||
value: 'BS05',
|
||||
label: '售后部门出'
|
||||
}, {
|
||||
value: 'BS06',
|
||||
label: '营业部门存货出'
|
||||
}, {
|
||||
value: 'BS07',
|
||||
label: '研发存货出'
|
||||
}, {
|
||||
value: 'BS08',
|
||||
label: '维修材料出'
|
||||
}],
|
||||
typeList: [{
|
||||
value: 'QTC',
|
||||
label: '其他出库'
|
||||
}],
|
||||
loading: false,
|
||||
tableData: [],
|
||||
currentPage: 1, // 当前页码
|
||||
total: 20, // 总条数
|
||||
pageSize: 20, // 每页的数据条数
|
||||
// 需要编辑的属性
|
||||
editProp: ['ThisQty', 'UserDef1'],
|
||||
multipleSelection: []
|
||||
};
|
||||
},
|
||||
mounted: function () {
|
||||
// var t = localStorage.getItem("WareHouseId");
|
||||
// console.log(t);
|
||||
// 获取所有单据编码
|
||||
// $.ajax({
|
||||
// type: "post",
|
||||
// dataType: "json",
|
||||
// data: {},
|
||||
// url: "/xwms/XWMSPOH/Search",
|
||||
// success: function (json) {
|
||||
// app.tableData = json.Data;
|
||||
// },
|
||||
// error: function (json) {
|
||||
// alert("加载失败");
|
||||
// }
|
||||
// });
|
||||
},
|
||||
computed: {
|
||||
foodLabel() {
|
||||
return (val) => {
|
||||
return this.options.find(o => o.value === val).label
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/** 鼠标移入cell */
|
||||
handleCellEnter(row, column, cell, event) {
|
||||
const property = column.property
|
||||
if (this.editProp.includes(property)) {
|
||||
cell.querySelector('.item__input').style.display = 'block'
|
||||
cell.querySelector('.item__txt').style.display = 'none'
|
||||
}
|
||||
},
|
||||
/** 鼠标移出cell */
|
||||
handleCellLeave(row, column, cell, event) {
|
||||
const property = column.property
|
||||
if (this.editProp.includes(property)) {
|
||||
cell.querySelector('.item__input').style.display = 'none'
|
||||
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;
|
||||
}
|
||||
}
|
||||
if (property == "THISQTYUOM") {
|
||||
// 采购单位 乘 系数
|
||||
if (row.THISQTYUOM > row.QTYUOM_0) {
|
||||
row.THISQTYUOM = row.QTYUOM_0;
|
||||
this.$message.error("不能超出单据数量");
|
||||
}
|
||||
else {
|
||||
row.THISQTYSTU = row.THISQTYUOM * row.UOMSTUCOE_0;
|
||||
}
|
||||
}
|
||||
},
|
||||
//每页条数改变时触发 选择一页显示多少行
|
||||
handleSizeChange(val) {
|
||||
this.currentPage = 1;
|
||||
this.pageSize = val;
|
||||
},
|
||||
//当前页改变时触发 跳转其他页
|
||||
handleCurrentChange(val) {
|
||||
this.currentPage = val;
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
this.multipleSelection = val;
|
||||
},
|
||||
search() {
|
||||
var _this = this;
|
||||
_this.loading = true;
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
data: {
|
||||
materialCode: _this.form.MaterialCode,
|
||||
materialName: _this.form.MaterialName,
|
||||
batch: _this.form.Batch,
|
||||
lot: _this.form.Lot
|
||||
},
|
||||
url: "/xwms/ShipmentHeader2/SearchInv",
|
||||
success: function (json) {
|
||||
_this.tableData = json.Data;
|
||||
_this.loading = false;
|
||||
},
|
||||
error: function (json) {
|
||||
_this.$message.error("加载失败");
|
||||
_this.loading = false;
|
||||
}
|
||||
});
|
||||
},
|
||||
create() {
|
||||
var _this = this;
|
||||
layer.confirm('确定创建出库单据?', {
|
||||
btn: ['确定', '取消']
|
||||
}, function () {
|
||||
//加校验
|
||||
if (_this.multipleSelection.length == 0) {
|
||||
layer.alert("至少选择一条数据!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
return;
|
||||
}
|
||||
if (_this.form.tran == "") {
|
||||
layer.alert("交易组必选!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
data: {
|
||||
tran: _this.form.tran,
|
||||
data: _this.multipleSelection
|
||||
},
|
||||
url: "/xwms/ShipmentHeader2/CreateOutBill",
|
||||
success: function (json) {
|
||||
if (json.Code == 200) {
|
||||
layer.msg("创建成功", { icon: 6, shade: 0.4, time: 1500 });
|
||||
_this.$refs.tableData.clearSelection();
|
||||
}
|
||||
else {
|
||||
layer.alert("创建失败!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
}
|
||||
},
|
||||
error: function (json) {
|
||||
layer.alert("创建失败!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
verify(array) {
|
||||
const tmp = new Set();
|
||||
array.forEach(x => tmp.add(x.POHNUM_0));
|
||||
return tmp.size > 1 ? true : false;
|
||||
}
|
||||
},
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,39 @@
|
||||
@model HHWMS.Web.ShipmentHeader2VM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:quote>@Localizer["Sys.DeleteConfirm"]</wt:quote>
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:display field="Entity.WarehouseId" />
|
||||
<wt:display field="Entity.WarehouseCode" />
|
||||
<wt:display field="Entity.Code" />
|
||||
<wt:display field="Entity.CompanyId" />
|
||||
<wt:display field="Entity.CompanyCode" />
|
||||
<wt:display field="Entity.SourceCode" />
|
||||
<wt:display field="Entity.SourcePlatform" />
|
||||
<wt:display field="Entity.Type" />
|
||||
<wt:display field="Entity.ShipTo" />
|
||||
<wt:display field="Entity.Priority" />
|
||||
<wt:display field="Entity.Station" />
|
||||
<wt:display field="Entity.TotalQty" />
|
||||
<wt:display field="Entity.TotalLines" />
|
||||
<wt:display field="Entity.Remark" />
|
||||
<wt:display field="Entity.Uploadremark" />
|
||||
<wt:display field="Entity.UploadTime" />
|
||||
<wt:display field="Entity.AppointmentTime" />
|
||||
<wt:display field="Entity.FirstStatus" />
|
||||
<wt:display field="Entity.LastStatus" />
|
||||
<wt:display field="Entity.UploadStatus" />
|
||||
<wt:display field="Entity.Enable" />
|
||||
<wt:display field="Entity.Deleted" />
|
||||
<wt:display field="Entity.UserDef1" />
|
||||
<wt:display field="Entity.UserDef2" />
|
||||
<wt:display field="Entity.UserDef3" />
|
||||
<wt:display field="Entity.UserDef4" />
|
||||
</wt:row>
|
||||
<wt:hidden field="Entity.ID" />
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton theme=" ButtonThemeEnum.Warm" text="@Localizer["Sys.Delete"]"/>
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,36 @@
|
||||
@model HHWMS.Web.ShipmentHeader2VM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:display field="Entity.WarehouseId" />
|
||||
<wt:display field="Entity.WarehouseCode" />
|
||||
<wt:display field="Entity.Code" />
|
||||
<wt:display field="Entity.CompanyId" />
|
||||
<wt:display field="Entity.CompanyCode" />
|
||||
<wt:display field="Entity.SourceCode" />
|
||||
<wt:display field="Entity.SourcePlatform" />
|
||||
<wt:display field="Entity.Type" />
|
||||
<wt:display field="Entity.ShipTo" />
|
||||
<wt:display field="Entity.Priority" />
|
||||
<wt:display field="Entity.Station" />
|
||||
<wt:display field="Entity.TotalQty" />
|
||||
<wt:display field="Entity.TotalLines" />
|
||||
<wt:display field="Entity.Remark" />
|
||||
<wt:display field="Entity.Uploadremark" />
|
||||
<wt:display field="Entity.UploadTime" />
|
||||
<wt:display field="Entity.AppointmentTime" />
|
||||
<wt:display field="Entity.FirstStatus" />
|
||||
<wt:display field="Entity.LastStatus" />
|
||||
<wt:display field="Entity.UploadStatus" />
|
||||
<wt:display field="Entity.Enable" />
|
||||
<wt:display field="Entity.Deleted" />
|
||||
<wt:display field="Entity.UserDef1" />
|
||||
<wt:display field="Entity.UserDef2" />
|
||||
<wt:display field="Entity.UserDef3" />
|
||||
<wt:display field="Entity.UserDef4" />
|
||||
</wt:row>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,38 @@
|
||||
@model HHWMS.Web.ShipmentHeader2VM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:textbox field="Entity.WarehouseId" />
|
||||
<wt:textbox field="Entity.WarehouseCode" />
|
||||
<wt:textbox field="Entity.Code" />
|
||||
<wt:textbox field="Entity.CompanyId" />
|
||||
<wt:textbox field="Entity.CompanyCode" />
|
||||
<wt:textbox field="Entity.SourceCode" />
|
||||
<wt:textbox field="Entity.SourcePlatform" />
|
||||
<wt:textbox field="Entity.Type" />
|
||||
<wt:textbox field="Entity.ShipTo" />
|
||||
<wt:textbox field="Entity.Priority" />
|
||||
<wt:textbox field="Entity.Station" />
|
||||
<wt:textbox field="Entity.TotalQty" />
|
||||
<wt:textbox field="Entity.TotalLines" />
|
||||
<wt:textbox field="Entity.Remark" />
|
||||
<wt:textbox field="Entity.Uploadremark" />
|
||||
<wt:datetime field="Entity.UploadTime" />
|
||||
<wt:datetime field="Entity.AppointmentTime" />
|
||||
<wt:textbox field="Entity.FirstStatus" />
|
||||
<wt:textbox field="Entity.LastStatus" />
|
||||
<wt:textbox field="Entity.UploadStatus" />
|
||||
<wt:combobox field="Entity.Enable" />
|
||||
<wt:combobox field="Entity.Deleted" />
|
||||
<wt:textbox field="Entity.UserDef1" />
|
||||
<wt:textbox field="Entity.UserDef2" />
|
||||
<wt:textbox field="Entity.UserDef3" />
|
||||
<wt:textbox field="Entity.UserDef4" />
|
||||
</wt:row>
|
||||
<wt:hidden field="Entity.ID" />
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,14 @@
|
||||
@model HHWMS.Web.ShipmentHeader2ImportVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:downloadTemplateButton vm="@Model" />
|
||||
</wt:row>
|
||||
<wt:upload field="UploadFileId" label-text="@Model.Localizer["Sys.UploadTemplate"]" upload-type="ExcelFile" />
|
||||
<wt:grid vm="ErrorListVM" use-local-data="true" hidden-checkbox="true" hidden-grid-index="true" hidden-panel="true" height="300"/>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,31 @@
|
||||
@model HHWMS.Web.ShipmentHeader2ListVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:searchpanel vm="@Model" reset-btn="true">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Three" grid-id="ShipmentHeader2">
|
||||
<wt:textbox field="Searcher.Code" />
|
||||
<wt:textbox field="Searcher.SourceCode" />
|
||||
<wt:textbox field="Searcher.Type" />
|
||||
<wt:textbox field="Searcher.ShipTo" />
|
||||
</wt:row>
|
||||
</wt:searchpanel>
|
||||
<wt:grid vm="@Model" id="ShipmentHeader2" url="/xwms/ShipmentHeader2/Search" limit="6" />
|
||||
<wt:grid vm="@Model.ShipmentDetails" id="ShipmentDetail2" url="/xwms/ShipmentDetail2/Search2" height="400"
|
||||
hidden-checkbox need-show-filter="false" need-show-print="false" />
|
||||
<script>
|
||||
var headerId = 0;
|
||||
function details(id) {
|
||||
headerId = id;
|
||||
layui.table.reload('ShipmentDetail2', { where: { "Searcher.ShipmentId": id } });
|
||||
}
|
||||
|
||||
function CreateDetail() {
|
||||
if (headerId == 0) {
|
||||
layui.layer.alert('请选择一个单据');
|
||||
}
|
||||
else {
|
||||
|
||||
ff.OpenDialog('/xwms/ShipmentDetail2/Create/' + headerId, '@Guid.NewGuid()', '添加明细', 600);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in new issue
Block a user