|
@@ -23,13 +23,13 @@
|
|
</div>
|
|
</div>
|
|
<div class="table">
|
|
<div class="table">
|
|
<dilTable v-bind.sync="options" @selection-change="selectionChange" ref="table">
|
|
<dilTable v-bind.sync="options" @selection-change="selectionChange" ref="table">
|
|
- <!-- <el-table-column fixed="right" label="操作" width="150">
|
|
|
|
|
|
+ <el-table-column fixed="right" label="操作" width="150">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button type="text" size="mini" @click="inboundDetails(scope)">
|
|
|
|
- 详情
|
|
|
|
|
|
+ <el-button type="text" size="mini" @click="deleteInbound(scope)">
|
|
|
|
+ 删除
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
- </el-table-column> -->
|
|
|
|
|
|
+ </el-table-column>
|
|
</dilTable>
|
|
</dilTable>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -47,16 +47,46 @@ export default {
|
|
region: "0",
|
|
region: "0",
|
|
options:{
|
|
options:{
|
|
// first请求数据的地址
|
|
// first请求数据的地址
|
|
- requestUrl: "/api/v1/wms/getWmsInboundResults?apiId=371&warehouseId="+1,
|
|
|
|
|
|
+ requestUrl: "/api/v1/wms/getWmsInboundResults?apiId=450&warehouseId="+1,
|
|
// selectionType: "select",
|
|
// selectionType: "select",
|
|
// mapList: [],
|
|
// mapList: [],
|
|
},
|
|
},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
- // inboundDetails(scope){
|
|
|
|
- // this.$router.push("/inboundDetails/" + scope.row.inboundId)
|
|
|
|
- // },
|
|
|
|
|
|
+ deleteInbound(scope){
|
|
|
|
+ this.$confirm("是否删除", "提示", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ type: "warning",
|
|
|
|
+ center: true,
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ this.axios
|
|
|
|
+ .post("/api/v1/wms/undoInbound?inboundId=" + scope.row.inboundId)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: "success",
|
|
|
|
+ message: "删除成功!",
|
|
|
|
+ });
|
|
|
|
+ this.$router.go(0);
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: "删除失败",
|
|
|
|
+ type: "warning",
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: "info",
|
|
|
|
+ message: "删除操作已取消!",
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ },
|
|
// 获取当前月份的最后一天
|
|
// 获取当前月份的最后一天
|
|
getdaysinmonth(year,month){
|
|
getdaysinmonth(year,month){
|
|
month = parseInt(month,10)+1;
|
|
month = parseInt(month,10)+1;
|
|
@@ -167,7 +197,7 @@ export default {
|
|
if (startTime && endTime) {
|
|
if (startTime && endTime) {
|
|
if (startTime < endTime) {
|
|
if (startTime < endTime) {
|
|
// if(getCookie("orgCode") == "dagangadmin" || getCookie("orgCode") == "zidonghuabu"){
|
|
// if(getCookie("orgCode") == "dagangadmin" || getCookie("orgCode") == "zidonghuabu"){
|
|
- this.options.requestUrl = "/api/v1/wms/getWmsInboundResults?apiId=371&warehouseId="+1+"&startTime=" + startTime + "&endTime=" + endTime + "&i=" +new Date();
|
|
|
|
|
|
+ this.options.requestUrl = "/api/v1/wms/getWmsInboundResults?apiId=350&warehouseId="+1+"&startTime=" + startTime + "&endTime=" + endTime + "&i=" +new Date();
|
|
// }else if(getCookie("orgCode") == "wuliuchuyunzhongxin"){
|
|
// }else if(getCookie("orgCode") == "wuliuchuyunzhongxin"){
|
|
// this.options.requestUrl = "/api/v1/wms/getWmsInboundResults?apiId=371&orderType=13&startTime=" + startTime + "&endTime=" + endTime + "&i=" +new Date();
|
|
// this.options.requestUrl = "/api/v1/wms/getWmsInboundResults?apiId=371&orderType=13&startTime=" + startTime + "&endTime=" + endTime + "&i=" +new Date();
|
|
// }else{
|
|
// }else{
|
|
@@ -239,7 +269,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-}
|
|
|
|
|
|
+
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|