Commit c12b0301 authored by Mac's avatar Mac

增加出库的帅选

parent 00f94a0f
...@@ -11,21 +11,39 @@ ...@@ -11,21 +11,39 @@
</div> </div>
<div class="padContent"> <div class="padContent">
<ul v-show="morequery" class="queryul"> <ul v-show="morequery" class="queryul">
<li> <li>
<el-select size="small" v-model="msg.ApplyStatus" @change="msg.pageIndex=1,getList()"> <el-select size="small" v-model="msg.ApplyStatus" @change="msg.pageIndex=1,getList()">
<el-option v-for="item in ApplyStatusList" :key="item.Id" :label="item.Name" :value="item.Id"> <el-option v-for="item in ApplyStatusList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option> </el-option>
</el-select> </el-select>
</li> </li>
<li> <li>
<el-select size="small" v-model="msg.OutStatus" @change="msg.pageIndex=1,getList()"> <el-select size="small" v-model="msg.OutStatus" @change="msg.pageIndex=1,getList()">
<el-option v-for="item in OutStatusList" :key="item.Id" :label="item.Name" :value="item.Id"> <el-option v-for="item in OutStatusList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option> </el-option>
</el-select> </el-select>
</li> </li>
<li>
<el-input
class="w200"
size="small"
v-model="msg.GoodsName"
placeholder="商品名称"
@keyup.enter.native="msg.pageIndex=1,getList()"
></el-input>
</li>
<li>
<el-input
class="w200"
size="small"
v-model="msg.OrderNo"
placeholder="订单号"
@keyup.enter.native="msg.pageIndex=1,getList()"
></el-input>
</li>
</ul> </ul>
<div> <div>
<vxe-table stripe style="margin-top:15px" :loading="loading" :data="tableData"> <vxe-table stripe style="margin-top:15px" :loading="loading" :data="tableData">
...@@ -51,7 +69,7 @@ ...@@ -51,7 +69,7 @@
</template> </template>
</vxe-table-column> </vxe-table-column>
<vxe-table-column field="CreateDateStr" title="申请时间"></vxe-table-column> <vxe-table-column field="CreateDateStr" title="申请时间"></vxe-table-column>
<vxe-table-column field="address" title="操作"> <vxe-table-column field="address" title="操作">
...@@ -139,6 +157,8 @@ ...@@ -139,6 +157,8 @@
SupplierId:0, SupplierId:0,
ApplyStatus: 0, ApplyStatus: 0,
OutStatus: -1, OutStatus: -1,
GoodsName:'',
OrderNo:'',
}, },
Updatemsg: { Updatemsg: {
ID: 0, ID: 0,
...@@ -158,12 +178,12 @@ ...@@ -158,12 +178,12 @@
SeeDetails(item,path){ SeeDetails(item,path){
this.$router.push({ this.$router.push({
path: path, path: path,
query: { query: {
ID:item.ID ID:item.ID
} }
}); });
}, },
getList() { getList() {
this.loading = true; this.loading = true;
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<vxe-table-column field="nowBound" title="正在出库"></vxe-table-column> <vxe-table-column field="nowBound" title="正在出库"></vxe-table-column>
<template v-slot:empty> <template v-slot:empty>
<span> <span>
<p>仓库中暂无商品</p> <p>仓库中暂无商品</p>
</span> </span>
</template> </template>
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
} }
}) })
}, },
// 仓库列表 // 仓库列表
getWareHouse() { getWareHouse() {
this.apiJavaPost("/api/Supplies/GetWareHouseList", { this.apiJavaPost("/api/Supplies/GetWareHouseList", {
Name: '' Name: ''
...@@ -280,8 +280,14 @@ ...@@ -280,8 +280,14 @@
} }
this.sureMsg.ID = this.msg.ID; this.sureMsg.ID = this.msg.ID;
this.sureMsg.WarehouseId = this.msg.WarehouseId; this.sureMsg.WarehouseId = this.msg.WarehouseId;
const loading = this.$loading({
lock: true,
text: '出库中...',
spinner: 'el-icon-loading',
});
this.apiJavaPost("/api/WarehouseOut/SetStockOutInfo", this.sureMsg, this.apiJavaPost("/api/WarehouseOut/SetStockOutInfo", this.sureMsg,
res => { res => {
loading.close();
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.$router.push({ this.$router.push({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment