页面数量合计;
出库移库,默认状态 调整条码打印
This commit is contained in:
1 parent
cec65caa32
commit
67227db833
12 files changed
+112
-326
No files matched your search
@@ -53,7 +53,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-select v-model="form.address2" :popper-append-to-body="false" placeholder="移入地点">
|
||||
<el-select v-model="form.address2" :popper-append-to-body="false" placeholder="移入仓库">
|
||||
<el-option v-for="item in address2List"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
@@ -83,10 +83,11 @@
|
||||
</el-form>
|
||||
|
||||
<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)"
|
||||
height="600" stripe border
|
||||
max-height="600" stripe border
|
||||
style="width: 100%"
|
||||
ref="tableData"
|
||||
v-loading="loading"
|
||||
show-summary
|
||||
@@cell-mouse-enter="handleCellEnter"
|
||||
@@cell-mouse-leave="handleCellLeave"
|
||||
@@selection-change="handleSelectionChange">
|
||||
@@ -99,18 +100,20 @@
|
||||
<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="MaterialName" show-overflow-tooltip></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="Lot" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="供应商名称" width="150" align="center" prop="SupplierName" show-overflow-tooltip></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">
|
||||
<el-table-column label="状态" width="150" align="center" prop="Status" v-if="false"></el-table-column>
|
||||
<el-table-column label="单位" width="150" align="center" prop="Unit" v-if="false"></el-table-column>
|
||||
<el-table-column label="出库数量" width="250" align="center" prop="ThisQty">
|
||||
<div class="item" slot-scope="scope">
|
||||
<el-input class="item__input" v-model="scope.row.ThisQty" placeholder="请输入内容"></el-input>
|
||||
<div class="item__txt">{{scope.row.ThisQty}}</div>
|
||||
</div>
|
||||
</el-table-column>
|
||||
<el-table-column label="移入状态" width="100" align="center" prop="UserDef2">
|
||||
<el-table-column label="移入状态" width="150" align="center" prop="UserDef2">
|
||||
<div class="item" slot-scope="scope">
|
||||
<el-select class="item__input" :popper-append-to-body="false" v-model="scope.row.UserDef2" placeholder="请选择">
|
||||
<el-option v-for="item in options"
|
||||
@@ -141,7 +144,7 @@
|
||||
@@size-change="handleSizeChange"
|
||||
@@current-change="handleCurrentChange"
|
||||
:current-page="currentPage"
|
||||
:page-sizes="[1,5,10,20]"
|
||||
:page-sizes="[20,50,100,1000]"
|
||||
:page-size="pageSize"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="tableData.length">
|
||||
@@ -168,8 +171,8 @@
|
||||
label: 'HYB'
|
||||
}],
|
||||
address2List: [{
|
||||
value: 'HYB',
|
||||
label: 'HYB'
|
||||
value: '',
|
||||
label: '=请选择='
|
||||
}],
|
||||
options: [{
|
||||
value: '',
|
||||
@@ -194,13 +197,13 @@
|
||||
}],
|
||||
wareList: [{
|
||||
value: '',
|
||||
label: '=请选择='
|
||||
label: '=请选择移入仓库='
|
||||
}],
|
||||
loading: false,
|
||||
tableData: [],
|
||||
currentPage: 1, // 当前页码
|
||||
total: 20, // 总条数
|
||||
pageSize: 20, // 每页的数据条数
|
||||
pageSize: 50, // 每页的数据条数
|
||||
// 需要编辑的属性
|
||||
editProp: ['ThisQty', 'UserDef2', 'UserDef3'],
|
||||
multipleSelection: []
|
||||
@@ -216,8 +219,8 @@
|
||||
data: {},
|
||||
url: "/xwms/ShipmentHeader2/SearchWare",
|
||||
success: function (json) {
|
||||
app.wareList.push(...json.Data)
|
||||
console.log(app.wareList);
|
||||
app.wareList.push(...json.Data);
|
||||
app.address2List = app.wareList;
|
||||
},
|
||||
error: function (json) {
|
||||
alert("加载失败");
|
||||
@@ -263,6 +266,10 @@
|
||||
this.currentPage = val;
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
var _this = this;
|
||||
val.forEach(function (item) {
|
||||
item.UserDef3 = _this.form.address2;
|
||||
});
|
||||
this.multipleSelection = val;
|
||||
},
|
||||
search() {
|
||||
@@ -313,7 +320,7 @@
|
||||
_this.$refs.tableData.clearSelection();
|
||||
}
|
||||
else {
|
||||
layer.alert("创建失败!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
layer.alert("创建失败!!"+json.Msg, { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
}
|
||||
},
|
||||
error: function (json) {
|
||||
|
||||
Reference in new issue
Block a user