|
|
@ -9,7 +9,9 @@ |
|
|
|
@value-change="JobVersionValue" |
|
|
|
></JobSelectVerson> |
|
|
|
<el-button |
|
|
|
v-if="this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3" |
|
|
|
v-if=" |
|
|
|
this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3 |
|
|
|
" |
|
|
|
class="filter-item" |
|
|
|
type="success" |
|
|
|
icon="el-icon-check" |
|
|
@ -27,6 +29,9 @@ |
|
|
|
>确认出库单</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
v-if=" |
|
|
|
this.selectJobVersionValue == 2 || this.selectJobVersionValue == 3 |
|
|
|
" |
|
|
|
class="filter-item" |
|
|
|
size="mini" |
|
|
|
type="warning" |
|
|
@ -35,6 +40,16 @@ |
|
|
|
>取消出库(支持批量) |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
v-else |
|
|
|
disabled |
|
|
|
class="filter-item" |
|
|
|
size="mini" |
|
|
|
type="warning" |
|
|
|
icon="el-icon-download" |
|
|
|
>取消出库(支持批量) |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
v-if="this.selectJobVersionValue == 0" |
|
|
|
class="filter-item" |
|
|
|
size="mini" |
|
|
|
type="danger" |
|
|
@ -42,6 +57,15 @@ |
|
|
|
@click="handleDelete()" |
|
|
|
>出库单删除 |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
v-else |
|
|
|
disabled |
|
|
|
class="filter-item" |
|
|
|
size="mini" |
|
|
|
type="danger" |
|
|
|
icon="el-icon-download" |
|
|
|
>出库单删除 |
|
|
|
</el-button> |
|
|
|
<el-input |
|
|
|
v-model="searchContent" |
|
|
|
clearable |
|
|
@ -153,9 +177,7 @@ |
|
|
|
<el-button type="text" @click="dialogFormVisible = false" |
|
|
|
>取消</el-button |
|
|
|
> |
|
|
|
<el-button v-loading="formLoading" type="primary" @click="save()" |
|
|
|
>确认</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" @click="save()">确认</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
@ -169,6 +191,7 @@ import CRMTableHead from "../../../components/CRMTableHead"; |
|
|
|
import { downloadFile } from "@/utils/crmindex.js"; |
|
|
|
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue"; |
|
|
|
import moment from "moment"; |
|
|
|
import _ from "lodash"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "sendUnsettledDiffReport", |
|
|
@ -245,7 +268,7 @@ export default { |
|
|
|
billNum: "", |
|
|
|
}, |
|
|
|
listOutPutQuery: { |
|
|
|
Filters: [ |
|
|
|
Filters: [ |
|
|
|
{ |
|
|
|
logic: 0, |
|
|
|
column: "state", |
|
|
@ -372,7 +395,7 @@ export default { |
|
|
|
logic: 0, |
|
|
|
column: column, |
|
|
|
action: 0, |
|
|
|
value:this.selectJobVersionValue, |
|
|
|
value: this.selectJobVersionValue, |
|
|
|
}; |
|
|
|
this.listOutPutQuery.Filters.push(filter); |
|
|
|
|
|
|
@ -475,228 +498,128 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//取消出库单 |
|
|
|
CancelBills(row) { |
|
|
|
if (this.accountDatelist.accountDate == "") { |
|
|
|
this.$message({ |
|
|
|
message: "请选择日期!", |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
var params = []; |
|
|
|
if (row) { |
|
|
|
//单行 |
|
|
|
params.push(row.id); |
|
|
|
} else { |
|
|
|
//多选 |
|
|
|
this.multipleSelection.forEach((element) => { |
|
|
|
let id = element.id; |
|
|
|
params.push(id); |
|
|
|
}); |
|
|
|
} |
|
|
|
this.listOutPutQuery.version = this.customerInfo.version; |
|
|
|
this.listOutPutQuery.guids = params; |
|
|
|
this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
|
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
|
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); |
|
|
|
CancelBills: _.debounce( |
|
|
|
function (row) { |
|
|
|
if (this.accountDatelist.accountDate == "") { |
|
|
|
this.$message({ |
|
|
|
message: "请选择日期!", |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
var params = []; |
|
|
|
if (row) { |
|
|
|
//单行 |
|
|
|
params.push(row.id); |
|
|
|
} else { |
|
|
|
//多选 |
|
|
|
this.multipleSelection.forEach((element) => { |
|
|
|
let id = element.id; |
|
|
|
params.push(id); |
|
|
|
}); |
|
|
|
} |
|
|
|
this.listOutPutQuery.version = this.customerInfo.version; |
|
|
|
this.listOutPutQuery.guids = params; |
|
|
|
this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
|
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
|
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); |
|
|
|
|
|
|
|
let myalert = ""; |
|
|
|
var getAccountMonth = moment(this.accountDatelist.accountDate).format( |
|
|
|
"YYYY-MM" |
|
|
|
); //选择的日期 |
|
|
|
let date = new Date(); |
|
|
|
let currentMonth = moment(date).format("YYYY-MM"); //当前月 |
|
|
|
console.log( |
|
|
|
"过账日期:" + |
|
|
|
JSON.stringify(getAccountMonth) + |
|
|
|
"当前日期:" + |
|
|
|
JSON.stringify(currentMonth) |
|
|
|
); |
|
|
|
if (getAccountMonth < currentMonth) { |
|
|
|
myalert = "过账日期小于当前月份"; |
|
|
|
let myalert = ""; |
|
|
|
var getAccountMonth = moment(this.accountDatelist.accountDate).format( |
|
|
|
"YYYY-MM" |
|
|
|
); //选择的日期 |
|
|
|
let date = new Date(); |
|
|
|
let currentMonth = moment(date).format("YYYY-MM"); //当前月 |
|
|
|
console.log( |
|
|
|
"过账日期:" + |
|
|
|
JSON.stringify(getAccountMonth) + |
|
|
|
"当前日期:" + |
|
|
|
JSON.stringify(currentMonth) |
|
|
|
); |
|
|
|
if (getAccountMonth < currentMonth) { |
|
|
|
myalert = "过账日期小于当前月份"; |
|
|
|
|
|
|
|
this.$confirm("是否确认" + myalert + "?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Cancel", |
|
|
|
this.listOutPutQuery |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
const index = this.list.indexOf(row); |
|
|
|
this.$notify({ |
|
|
|
title: "成功", |
|
|
|
message: "操作成功", |
|
|
|
type: "success", |
|
|
|
duration: 2000, |
|
|
|
}); |
|
|
|
this.accountDatelist.accountDate = ""; |
|
|
|
this.dialogFormVisible = false; |
|
|
|
this.getList(); |
|
|
|
this.formLoading = false; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.formLoading = false; |
|
|
|
this.$message({ |
|
|
|
type: "info", |
|
|
|
message: "调用服务出错!", |
|
|
|
this.$confirm("是否确认" + myalert + "?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Cancel", |
|
|
|
this.listOutPutQuery |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
const index = this.list.indexOf(row); |
|
|
|
this.$notify({ |
|
|
|
title: "成功", |
|
|
|
message: "操作成功", |
|
|
|
type: "success", |
|
|
|
duration: 2000, |
|
|
|
}); |
|
|
|
this.accountDatelist.accountDate = ""; |
|
|
|
this.dialogFormVisible = false; |
|
|
|
this.getList(); |
|
|
|
this.formLoading = false; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.formLoading = false; |
|
|
|
this.$message({ |
|
|
|
type: "info", |
|
|
|
message: "调用服务出错!", |
|
|
|
}); |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$message({ |
|
|
|
type: "info", |
|
|
|
message: "已取消操作", |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$message({ |
|
|
|
type: "info", |
|
|
|
message: "已取消操作", |
|
|
|
this.formLoading = false; |
|
|
|
}); |
|
|
|
this.formLoading = false; |
|
|
|
}); |
|
|
|
} else if (getAccountMonth === currentMonth) { |
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Cancel", |
|
|
|
this.listOutPutQuery |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
const index = this.list.indexOf(row); |
|
|
|
this.$notify({ |
|
|
|
title: "成功", |
|
|
|
message: "操作成功", |
|
|
|
type: "success", |
|
|
|
duration: 2000, |
|
|
|
}); |
|
|
|
this.accountDatelist.accountDate = ""; |
|
|
|
this.dialogFormVisible = false; |
|
|
|
this.getList(); |
|
|
|
this.formLoading = false; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.formLoading = false; |
|
|
|
this.$message({ |
|
|
|
type: "info", |
|
|
|
message: "调用服务出错!", |
|
|
|
} else if (getAccountMonth === currentMonth) { |
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Cancel", |
|
|
|
this.listOutPutQuery |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
const index = this.list.indexOf(row); |
|
|
|
this.$notify({ |
|
|
|
title: "成功", |
|
|
|
message: "操作成功", |
|
|
|
type: "success", |
|
|
|
duration: 2000, |
|
|
|
}); |
|
|
|
this.accountDatelist.accountDate = ""; |
|
|
|
this.dialogFormVisible = false; |
|
|
|
this.getList(); |
|
|
|
this.formLoading = false; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.formLoading = false; |
|
|
|
this.$message({ |
|
|
|
type: "info", |
|
|
|
message: "调用服务出错!", |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
type: "warning", |
|
|
|
message: "选择的过账日期不能大于当前月份!", |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
type: "warning", |
|
|
|
message: "选择的过账日期不能大于当前月份!", |
|
|
|
}); |
|
|
|
this.formLoading = false; |
|
|
|
return; |
|
|
|
this.formLoading = false; |
|
|
|
return; |
|
|
|
} |
|
|
|
}, |
|
|
|
1000, |
|
|
|
{ |
|
|
|
leading: true, //在延迟开始前立即调用事件 |
|
|
|
trailing: false, //在延时结束后不调用,保证事件只被触发一次 |
|
|
|
} |
|
|
|
}, |
|
|
|
// CancelBills(row) { |
|
|
|
// if (this.accountDatelist.accountDate == "") { |
|
|
|
// this.$message({ |
|
|
|
// message: "请选择日期!", |
|
|
|
// type: "warning", |
|
|
|
// }); |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// var params = []; |
|
|
|
// if (row) { |
|
|
|
// //单行 |
|
|
|
// params.push(row.id); |
|
|
|
// } else { |
|
|
|
// //多选 |
|
|
|
// this.multipleSelection.forEach((element) => { |
|
|
|
// let id = element.id; |
|
|
|
// params.push(id); |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// this.listOutPutQuery.version = this.customerInfo.version; |
|
|
|
// this.listOutPutQuery.guids = params; |
|
|
|
// this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
|
// this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
|
// console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); |
|
|
|
), |
|
|
|
|
|
|
|
// this.$axios |
|
|
|
// .posts( |
|
|
|
// "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Cancel", |
|
|
|
// this.listOutPutQuery |
|
|
|
// ) |
|
|
|
// .then((response) => { |
|
|
|
// const index = this.list.indexOf(row); |
|
|
|
// this.$notify({ |
|
|
|
// title: "成功", |
|
|
|
// message: "操作成功", |
|
|
|
// type: "success", |
|
|
|
// duration: 2000, |
|
|
|
// }); |
|
|
|
// this.accountDatelist.accountDate = ""; |
|
|
|
// this.dialogFormVisible = false; |
|
|
|
// this.getList(); |
|
|
|
// this.formLoading = false; |
|
|
|
// }) |
|
|
|
// .catch(() => { |
|
|
|
// this.formLoading = false; |
|
|
|
// this.$message({ |
|
|
|
// type: "info", |
|
|
|
// message: "调用服务出错!", |
|
|
|
// }); |
|
|
|
// }); |
|
|
|
// }, |
|
|
|
//取消出库单 |
|
|
|
// handleCancelBills(row) { |
|
|
|
// if (this.multipleSelection.length == 0) { |
|
|
|
// this.$message({ |
|
|
|
// message: "至少选择一行!", |
|
|
|
// type: "warning", |
|
|
|
// }); |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// var params = []; |
|
|
|
// let myalert = ""; //声明变量,其变量必须在此声明后使用 |
|
|
|
// if (row) { |
|
|
|
// //单行 |
|
|
|
// params.push(row.id); |
|
|
|
// myalert = row.name; |
|
|
|
// } else { |
|
|
|
// //多选 |
|
|
|
// this.multipleSelection.forEach((element) => { |
|
|
|
// let id = element.id; |
|
|
|
// params.push(id); |
|
|
|
// }); |
|
|
|
// myalert = "选中项"; |
|
|
|
// } |
|
|
|
// this.listOutPutQuery.version = this.customerInfo.version; |
|
|
|
// this.listOutPutQuery.guids = params; |
|
|
|
// this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
|
// console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); |
|
|
|
|
|
|
|
// this.$confirm("是否确认取消出库" + myalert + "?", "提示", { |
|
|
|
// confirmButtonText: "确定", |
|
|
|
// cancelButtonText: "取消", |
|
|
|
// type: "warning", |
|
|
|
// }) |
|
|
|
// .then(() => { |
|
|
|
// this.$axios |
|
|
|
// .posts( |
|
|
|
// "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Cancel", |
|
|
|
// this.listOutPutQuery |
|
|
|
// ) |
|
|
|
// .then((response) => { |
|
|
|
// const index = this.list.indexOf(row); |
|
|
|
// this.$notify({ |
|
|
|
// title: "成功", |
|
|
|
// message: "操作成功", |
|
|
|
// type: "success", |
|
|
|
// duration: 2000, |
|
|
|
// }); |
|
|
|
// this.getList(); |
|
|
|
// }); |
|
|
|
// }) |
|
|
|
// .catch(() => { |
|
|
|
// this.$message({ |
|
|
|
// type: "info", |
|
|
|
// message: "已取消操作", |
|
|
|
// }); |
|
|
|
// }); |
|
|
|
// }, |
|
|
|
//确认出库单 |
|
|
|
handleCreateBills() { |
|
|
|
this.dialogFormVisible = true; |
|
|
@ -710,99 +633,107 @@ export default { |
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
//出库单 |
|
|
|
saveBills(row) { |
|
|
|
this.listOutPutQuery.guids = []; |
|
|
|
this.listOutPutQuery.version = this.customerInfo.version; |
|
|
|
this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
|
if (this.accountDatelist.accountDate == "") { |
|
|
|
this.$message({ |
|
|
|
message: "请选择日期!", |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
|
saveBills: _.debounce( |
|
|
|
function (row) { |
|
|
|
this.listOutPutQuery.guids = []; |
|
|
|
this.listOutPutQuery.version = this.customerInfo.version; |
|
|
|
this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
|
if (this.accountDatelist.accountDate == "") { |
|
|
|
this.$message({ |
|
|
|
message: "请选择日期!", |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
|
|
|
|
|
console.log( |
|
|
|
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) |
|
|
|
); |
|
|
|
console.log( |
|
|
|
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) |
|
|
|
); |
|
|
|
|
|
|
|
let myalert = ""; |
|
|
|
var getAccountMonth = moment(this.accountDatelist.accountDate).format( |
|
|
|
"YYYY-MM" |
|
|
|
); |
|
|
|
let date = new Date(); |
|
|
|
let currentMonth = moment(date).format("YYYY-MM"); |
|
|
|
if (getAccountMonth < currentMonth) { |
|
|
|
myalert = "过账日期小于当前月份"; |
|
|
|
this.$confirm("是否确认" + myalert + "?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass", |
|
|
|
this.listOutPutQuery |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
const index = this.list.indexOf(row); |
|
|
|
this.$notify({ |
|
|
|
title: "成功", |
|
|
|
message: "生成成功", |
|
|
|
type: "success", |
|
|
|
duration: 2000, |
|
|
|
let myalert = ""; |
|
|
|
var getAccountMonth = moment(this.accountDatelist.accountDate).format( |
|
|
|
"YYYY-MM" |
|
|
|
); |
|
|
|
let date = new Date(); |
|
|
|
let currentMonth = moment(date).format("YYYY-MM"); |
|
|
|
if (getAccountMonth < currentMonth) { |
|
|
|
myalert = "过账日期小于当前月份"; |
|
|
|
this.$confirm("是否确认" + myalert + "?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass", |
|
|
|
this.listOutPutQuery |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
const index = this.list.indexOf(row); |
|
|
|
this.$notify({ |
|
|
|
title: "成功", |
|
|
|
message: "生成成功", |
|
|
|
type: "success", |
|
|
|
duration: 2000, |
|
|
|
}); |
|
|
|
this.accountDatelist.accountDate = ""; |
|
|
|
this.dialogFormVisible = false; |
|
|
|
this.getList(); |
|
|
|
this.formLoading = false; |
|
|
|
this.dialogFormVisible = false; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.formLoading = false; |
|
|
|
}); |
|
|
|
this.accountDatelist.accountDate = ""; |
|
|
|
this.dialogFormVisible = false; |
|
|
|
this.getList(); |
|
|
|
this.formLoading = false; |
|
|
|
this.dialogFormVisible = false; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.formLoading = false; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$message({ |
|
|
|
type: "info", |
|
|
|
message: "已取消操作", |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$message({ |
|
|
|
type: "info", |
|
|
|
message: "已取消操作", |
|
|
|
this.formLoading = false; |
|
|
|
}); |
|
|
|
this.formLoading = false; |
|
|
|
}); |
|
|
|
} else if (getAccountMonth === currentMonth) { |
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass", |
|
|
|
this.listOutPutQuery |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
const index = this.list.indexOf(row); |
|
|
|
this.$notify({ |
|
|
|
title: "成功", |
|
|
|
message: "生成成功", |
|
|
|
type: "success", |
|
|
|
duration: 2000, |
|
|
|
} else if (getAccountMonth === currentMonth) { |
|
|
|
this.$axios |
|
|
|
.posts( |
|
|
|
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass", |
|
|
|
this.listOutPutQuery |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
const index = this.list.indexOf(row); |
|
|
|
this.$notify({ |
|
|
|
title: "成功", |
|
|
|
message: "生成成功", |
|
|
|
type: "success", |
|
|
|
duration: 2000, |
|
|
|
}); |
|
|
|
this.accountDatelist.accountDate = ""; |
|
|
|
this.dialogFormVisible = false; |
|
|
|
this.getList(); |
|
|
|
this.formLoading = false; |
|
|
|
this.dialogFormVisible = false; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.formLoading = false; |
|
|
|
}); |
|
|
|
this.accountDatelist.accountDate = ""; |
|
|
|
this.dialogFormVisible = false; |
|
|
|
this.getList(); |
|
|
|
this.formLoading = false; |
|
|
|
this.dialogFormVisible = false; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.formLoading = false; |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
type: "warning", |
|
|
|
message: "选择的过账日期不能大于当前月份!", |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
type: "warning", |
|
|
|
message: "选择的过账日期不能大于当前月份!", |
|
|
|
}); |
|
|
|
this.formLoading = false; |
|
|
|
return; |
|
|
|
this.formLoading = false; |
|
|
|
return; |
|
|
|
} |
|
|
|
}, |
|
|
|
1000, |
|
|
|
{ |
|
|
|
leading: true, //在延迟开始前立即调用事件 |
|
|
|
trailing: false, //在延时结束后不调用,保证事件只被触发一次 |
|
|
|
} |
|
|
|
}, |
|
|
|
), |
|
|
|
|
|
|
|
// saveBills(row) { |
|
|
|
// this.listOutPutQuery.guids = []; |
|
|
|
// this.listOutPutQuery.version = this.customerInfo.version; |
|
|
@ -812,18 +743,59 @@ export default { |
|
|
|
// message: "请选择日期!", |
|
|
|
// type: "warning", |
|
|
|
// }); |
|
|
|
// this.getList(); |
|
|
|
// return; |
|
|
|
// //this.getList(); |
|
|
|
// } else { |
|
|
|
// if (this.accountDatelist != "") { |
|
|
|
// this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
|
// } |
|
|
|
// //this.listOutPutQuery.accountDate = this.accountDatelist; |
|
|
|
// console.log( |
|
|
|
// "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) |
|
|
|
// ); |
|
|
|
// } |
|
|
|
// this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
|
|
|
|
|
// console.log( |
|
|
|
// "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) |
|
|
|
// ); |
|
|
|
|
|
|
|
// let myalert = ""; |
|
|
|
// var getAccountMonth = moment(this.accountDatelist.accountDate).format( |
|
|
|
// "YYYY-MM" |
|
|
|
// ); |
|
|
|
// let date = new Date(); |
|
|
|
// let currentMonth = moment(date).format("YYYY-MM"); |
|
|
|
// if (getAccountMonth < currentMonth) { |
|
|
|
// myalert = "过账日期小于当前月份"; |
|
|
|
// this.$confirm("是否确认" + myalert + "?", "提示", { |
|
|
|
// confirmButtonText: "确定", |
|
|
|
// cancelButtonText: "取消", |
|
|
|
// type: "warning", |
|
|
|
// }) |
|
|
|
// .then(() => { |
|
|
|
// this.$axios |
|
|
|
// .posts( |
|
|
|
// "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass", |
|
|
|
// this.listOutPutQuery |
|
|
|
// ) |
|
|
|
// .then((response) => { |
|
|
|
// const index = this.list.indexOf(row); |
|
|
|
// this.$notify({ |
|
|
|
// title: "成功", |
|
|
|
// message: "生成成功", |
|
|
|
// type: "success", |
|
|
|
// duration: 2000, |
|
|
|
// }); |
|
|
|
// this.accountDatelist.accountDate = ""; |
|
|
|
// this.dialogFormVisible = false; |
|
|
|
// this.getList(); |
|
|
|
// this.formLoading = false; |
|
|
|
// this.dialogFormVisible = false; |
|
|
|
// }) |
|
|
|
// .catch(() => { |
|
|
|
// this.formLoading = false; |
|
|
|
// }); |
|
|
|
// }) |
|
|
|
// .catch(() => { |
|
|
|
// this.$message({ |
|
|
|
// type: "info", |
|
|
|
// message: "已取消操作", |
|
|
|
// }); |
|
|
|
// this.formLoading = false; |
|
|
|
// }); |
|
|
|
// } else if (getAccountMonth === currentMonth) { |
|
|
|
// this.$axios |
|
|
|
// .posts( |
|
|
|
// "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass", |
|
|
@ -846,8 +818,16 @@ export default { |
|
|
|
// .catch(() => { |
|
|
|
// this.formLoading = false; |
|
|
|
// }); |
|
|
|
// } else { |
|
|
|
// this.$message({ |
|
|
|
// type: "warning", |
|
|
|
// message: "选择的过账日期不能大于当前月份!", |
|
|
|
// }); |
|
|
|
// this.formLoading = false; |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// }, |
|
|
|
|
|
|
|
//删除出库单 |
|
|
|
handleDelete(row) { |
|
|
|
var params = []; |
|
|
|