|
|
@ -17,7 +17,9 @@ |
|
|
|
>确认出库单</el-button |
|
|
|
> --> |
|
|
|
<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" |
|
|
@ -35,6 +37,9 @@ |
|
|
|
>确认出库单</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
v-if=" |
|
|
|
this.selectJobVersionValue == 2 || this.selectJobVersionValue == 3 |
|
|
|
" |
|
|
|
class="filter-item" |
|
|
|
size="mini" |
|
|
|
type="warning" |
|
|
@ -43,6 +48,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" |
|
|
@ -50,6 +65,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 |
|
|
@ -161,9 +185,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> |
|
|
@ -177,6 +199,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", |
|
|
@ -410,7 +433,8 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//取消出库单 |
|
|
|
CancelBills(row) { |
|
|
|
CancelBills: _.debounce( |
|
|
|
function (row) { |
|
|
|
if (this.accountDatelist.accountDate == "") { |
|
|
|
this.$message({ |
|
|
|
message: "请选择日期!", |
|
|
@ -524,6 +548,13 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
}, |
|
|
|
1000, |
|
|
|
{ |
|
|
|
leading: true, //在延迟开始前立即调用事件 |
|
|
|
trailing: false, //在延时结束后不调用,保证事件只被触发一次 |
|
|
|
} |
|
|
|
), |
|
|
|
|
|
|
|
// CancelBills(row) { |
|
|
|
// if (this.accountDatelist.accountDate == "") { |
|
|
|
// this.$message({ |
|
|
@ -584,8 +615,9 @@ export default { |
|
|
|
} |
|
|
|
this.formTitle = "创建出库单"; |
|
|
|
}, |
|
|
|
//出库单 |
|
|
|
saveBills(row) { |
|
|
|
//出库单(加上防抖功能) |
|
|
|
saveBills: _.debounce( |
|
|
|
function (row) { |
|
|
|
this.listOutPutQuery.guids = []; |
|
|
|
this.listOutPutQuery.version = this.customerInfo.version; |
|
|
|
this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
@ -599,7 +631,9 @@ export default { |
|
|
|
} |
|
|
|
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( |
|
|
@ -631,10 +665,10 @@ export default { |
|
|
|
this.accountDatelist.accountDate = ""; |
|
|
|
this.dialogFormVisible = false; |
|
|
|
this.getList(); |
|
|
|
this.formLoading = false; |
|
|
|
//this.formLoading = false; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.formLoading = false; |
|
|
|
//this.formLoading = false; |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
@ -642,7 +676,7 @@ export default { |
|
|
|
type: "info", |
|
|
|
message: "已取消操作", |
|
|
|
}); |
|
|
|
this.formLoading = false; |
|
|
|
//this.formLoading = false; |
|
|
|
}); |
|
|
|
} else if (getAccountMonth === currentMonth) { |
|
|
|
this.$axios |
|
|
@ -661,20 +695,28 @@ export default { |
|
|
|
this.accountDatelist.accountDate = ""; |
|
|
|
this.dialogFormVisible = false; |
|
|
|
this.getList(); |
|
|
|
this.formLoading = false; |
|
|
|
//this.formLoading = false; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.formLoading = false; |
|
|
|
// this.formLoading = false; |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
type: "warning", |
|
|
|
message: "选择的过账日期不能大于当前月份!", |
|
|
|
}); |
|
|
|
this.formLoading = false; |
|
|
|
//this.formLoading = false; |
|
|
|
return; |
|
|
|
} |
|
|
|
}, |
|
|
|
1000, |
|
|
|
{ |
|
|
|
leading: true, //在延迟开始前立即调用事件 |
|
|
|
trailing: false, //在延时结束后不调用,保证事件只被触发一次 |
|
|
|
} |
|
|
|
), |
|
|
|
|
|
|
|
//出库单 |
|
|
|
// saveBills(row) { |
|
|
|
// this.listOutPutQuery.guids = []; |
|
|
|
// this.listOutPutQuery.version = this.customerInfo.version; |
|
|
@ -686,15 +728,55 @@ export default { |
|
|
|
// }); |
|
|
|
// //this.getList(); |
|
|
|
// return; |
|
|
|
// } 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/wmsjitoutput/WmsJitOutPut-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; |
|
|
|
// }) |
|
|
|
// .catch(() => { |
|
|
|
// this.formLoading = false; |
|
|
|
// }); |
|
|
|
// }) |
|
|
|
// .catch(() => { |
|
|
|
// this.$message({ |
|
|
|
// type: "info", |
|
|
|
// message: "已取消操作", |
|
|
|
// }); |
|
|
|
// this.formLoading = false; |
|
|
|
// }); |
|
|
|
// } else if (getAccountMonth === currentMonth) { |
|
|
|
// this.$axios |
|
|
|
// .posts( |
|
|
|
// "/api/settleaccount/wmsjitoutput/WmsJitOutPut-Pass", |
|
|
@ -716,8 +798,16 @@ export default { |
|
|
|
// .catch(() => { |
|
|
|
// this.formLoading = false; |
|
|
|
// }); |
|
|
|
// } else { |
|
|
|
// this.$message({ |
|
|
|
// type: "warning", |
|
|
|
// message: "选择的过账日期不能大于当前月份!", |
|
|
|
// }); |
|
|
|
// this.formLoading = false; |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// }, |
|
|
|
|
|
|
|
//出库单 |
|
|
|
handleCreateBills_old(row) { |
|
|
|
if (this.multipleSelection.length == 0) { |
|
|
@ -947,10 +1037,9 @@ export default { |
|
|
|
this.list = response.items; |
|
|
|
//alert(JSON.stringify(response.Items)) |
|
|
|
this.totalCount = response.totalCount; |
|
|
|
setTimeout(() => { |
|
|
|
|
|
|
|
//大数据量加载时 |
|
|
|
this.listLoading = false; |
|
|
|
}, 500); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.listLoading = false; |
|
|
|