|
|
@ -190,6 +190,7 @@ import permission from "@/directive/permission/index.js"; |
|
|
|
import CRMTableHead from "../../components/CRMTableHead"; |
|
|
|
import { downloadFile } from "@/utils/crmindex.js"; |
|
|
|
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue"; |
|
|
|
import moment from "moment"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "sendUnsettledDiffReport", |
|
|
@ -411,7 +412,7 @@ export default { |
|
|
|
logic: 0, |
|
|
|
column: column, |
|
|
|
action: 0, |
|
|
|
value: params.value,realityNumber |
|
|
|
value: params.value, |
|
|
|
}; |
|
|
|
this.selectJobVersionValue = params.value; |
|
|
|
this.listQuery.Filters.push(filter); |
|
|
@ -495,10 +496,36 @@ export default { |
|
|
|
return; |
|
|
|
//this.getList(); |
|
|
|
} else { |
|
|
|
if (this.accountDatelist != "") { |
|
|
|
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
|
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 = "过账日期小于或等于当前月份"; |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
type: "warning", |
|
|
|
message: "选择的过账日期不能大于当前月份!", |
|
|
|
}); |
|
|
|
this.formLoading = false; |
|
|
|
return; |
|
|
|
} |
|
|
|
//this.listOutPutQuery.accountDate = this.accountDatelist; |
|
|
|
|
|
|
|
this.$confirm("是否确认" + myalert + "?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; |
|
|
|
console.log( |
|
|
|
"全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) |
|
|
|
); |
|
|
@ -524,6 +551,14 @@ export default { |
|
|
|
.catch(() => { |
|
|
|
this.formLoading = false; |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$message({ |
|
|
|
type: "info", |
|
|
|
message: "已取消操作", |
|
|
|
}); |
|
|
|
this.formLoading = false; |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
//撤销出库 |
|
|
|