Browse Source

关于结算系统过账日期的规则:1.当前月份不需提示 2.过去月份需要提示 3.未来月份限制写死,不可以选

branch_ccpg_220107
44673626 3 years ago
parent
commit
1b1ee58208
  1. 20
      vue/src/router/modules/vw_menu.js
  2. 275
      vue/src/views/ux/billManage/kanbanOutOrder/detail.vue
  3. 298
      vue/src/views/ux/billManage/kanbanWithOutOrder/detail.vue
  4. 207
      vue/src/views/ux/billManage/sparepartOutOrder/detail.vue
  5. 278
      vue/src/views/ux/billManage/sparepartOutOrder90/detail.vue
  6. 275
      vue/src/views/ux/billManage/vwOutOrder/detail.vue
  7. 271
      vue/src/views/ux/billManage/wmsCusomerKanban/detail.vue
  8. 2
      vue/src/views/ux/billManage/wmsCusomerKanban/index.vue
  9. 280
      vue/src/views/ux/vw/dataInput/OnetimeSale/detail.vue
  10. 277
      vue/src/views/ux/vw/dataInput/hq_h_checkout/detail.vue
  11. 284
      vue/src/views/ux/vw/dataInput/hq_h_outorder/detail.vue
  12. 272
      vue/src/views/ux/vw/dataInput/hq_kb_output/detail.vue
  13. 2
      vue/src/views/ux/vw/dataInput/hq_kb_output/index.vue
  14. 280
      vue/src/views/ux/vw/dataInput/hq_y_outorder/detail.vue
  15. 4
      vue/static/config.js

20
vue/src/router/modules/vw_menu.js

@ -217,16 +217,16 @@ const vwMenudataRouter = {
icon: '供货' icon: '供货'
} }
}, },
{ // {
path: '/vwsparepart90', // path: '/vwsparepart90',
component: () => import('@/views/ux/billManage/sparePart90'), // component: () => import('@/views/ux/billManage/sparePart90'),
name: 'SparePart90Report',//命名路由 // name: 'SparePart90Report',//命名路由
meta: { // meta: {
title: '大众备件调整输出', // title: '大众备件调整输出',
roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色) // roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色)
icon: '工厂' // icon: '工厂'
} // }
} // }
// { // {
// path: '/bom-diffPrice', // path: '/bom-diffPrice',
// component: () => import('@/views/ux/billManage/BomDiffPrice'), // component: () => import('@/views/ux/billManage/BomDiffPrice'),

275
vue/src/views/ux/billManage/kanbanOutOrder/detail.vue

@ -131,6 +131,7 @@
<el-date-picker <el-date-picker
v-model="accountDatelist.accountDate" v-model="accountDatelist.accountDate"
type="date" type="date"
:picker-options="pickerOptions"
clearable clearable
placeholder="选择日期" placeholder="选择日期"
> >
@ -157,6 +158,7 @@ import permission from "@/directive/permission/index.js";
import CRMTableHead from "../../components/CRMTableHead"; import CRMTableHead from "../../components/CRMTableHead";
import { downloadFile } from "@/utils/crmindex.js"; import { downloadFile } from "@/utils/crmindex.js";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue"; import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
import moment from "moment";
export default { export default {
name: "sendUnsettledDiffReport", name: "sendUnsettledDiffReport",
@ -173,6 +175,15 @@ export default {
data() { data() {
return { return {
crmType: "kanbanOutOrder", crmType: "kanbanOutOrder",
pickerOptions: {
//
disabledDate(time) {
let date = new Date();
let currentdate = moment(date).format("YYYY-MM");
var timedate = moment(time).format("YYYY-MM");
return currentdate < timedate;
},
},
rules: { rules: {
// //
erpMaterialCode: [ erpMaterialCode: [
@ -422,13 +433,61 @@ export default {
type: "warning", type: "warning",
}); });
return; return;
} else { }
if (this.accountDatelist != "") { this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
} console.log("确认出库条件:" + JSON.stringify(this.listOutPutQuery));
//this.listOutPutQuery.accountDate = this.accountDatelist;
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 = "过账日期小于当前月份";
this.$confirm("是否确认" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts(
"/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-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 this.$axios
.posts( .posts(
"/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Pass", "/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Pass",
@ -450,8 +509,55 @@ export default {
.catch(() => { .catch(() => {
this.formLoading = false; this.formLoading = false;
}); });
} else {
this.$message({
type: "warning",
message: "选择的过账日期不能大于当前月份!",
});
this.formLoading = false;
return;
} }
}, },
// 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;
// } else {
// if (this.accountDatelist != "") {
// this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
// }
// //this.listOutPutQuery.accountDate = this.accountDatelist;
// console.log("" + JSON.stringify(this.listOutPutQuery));
// this.$axios
// .posts(
// "/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-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;
// });
// }
// },
// //
CancelBills(row) { CancelBills(row) {
if (this.accountDatelist.accountDate == "") { if (this.accountDatelist.accountDate == "") {
@ -477,33 +583,146 @@ export default {
this.listOutPutQuery.billNum = this.customerInfo.parentId; this.listOutPutQuery.billNum = this.customerInfo.parentId;
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; 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"); //
console.log(
"过账日期:" +
JSON.stringify(getAccountMonth) +
"当前日期:" +
JSON.stringify(currentMonth)
);
if (getAccountMonth < currentMonth) {
myalert = "过账日期小于当前月份";
this.$axios this.$confirm("是否确认" + myalert + "?", "提示", {
.posts( confirmButtonText: "确定",
"/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Cancel", cancelButtonText: "取消",
this.listOutPutQuery type: "warning",
)
.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(() => { .then(() => {
this.formLoading = false; this.$axios
this.$message({ .posts(
type: "info", "/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Cancel",
message: "调用服务出错!", 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: "已取消操作",
});
this.formLoading = false;
});
} else if (getAccountMonth === currentMonth) {
this.$axios
.posts(
"/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-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: "选择的过账日期不能大于当前月份!",
}); });
this.formLoading = false;
return;
}
}, },
// 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/wmskanbanoutput/WmsKanbanOutPut-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: "",
// });
// });
// },
// //
handleDelete(row) { handleDelete(row) {

298
vue/src/views/ux/billManage/kanbanWithOutOrder/detail.vue

@ -185,6 +185,7 @@
<el-form-item label="日期" prop="accountDate"> <el-form-item label="日期" prop="accountDate">
<el-date-picker <el-date-picker
v-model="accountDatelist.accountDate" v-model="accountDatelist.accountDate"
:picker-options="pickerOptions"
type="date" type="date"
clearable clearable
placeholder="选择日期" placeholder="选择日期"
@ -212,6 +213,7 @@ import permission from "@/directive/permission/index.js";
import CRMTableHead from "../../components/CRMTableHead"; import CRMTableHead from "../../components/CRMTableHead";
import { downloadFile } from "@/utils/crmindex.js"; import { downloadFile } from "@/utils/crmindex.js";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue"; import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
import moment from "moment";
export default { export default {
name: "sendUnsettledDiffReport", name: "sendUnsettledDiffReport",
@ -228,6 +230,15 @@ export default {
data() { data() {
return { return {
crmType: "sparepartOutOrder", crmType: "sparepartOutOrder",
pickerOptions: {
//
disabledDate(time) {
let date = new Date();
let currentdate = moment(date).format("YYYY-MM");
var timedate = moment(time).format("YYYY-MM");
return currentdate < timedate;
},
},
rules: { rules: {
// //
erpMaterialCode: [ erpMaterialCode: [
@ -467,7 +478,7 @@ export default {
}, },
save(row) { save(row) {
this.formLoading=true; this.formLoading = true;
if (this.formTitle == "撤销出库") { if (this.formTitle == "撤销出库") {
this.CancelBills(row); this.CancelBills(row);
} else if (this.formTitle == "创建出库单") { } else if (this.formTitle == "创建出库单") {
@ -525,14 +536,72 @@ export default {
type: "warning", type: "warning",
}); });
return; return;
} else { }
if (this.accountDatelist != "") { this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
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");
// 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/wmskanbanoutputextend/WmsKanbanOutPut-Pass",
this.listOutPutQuery
)
.then((res) => {
const index = this.list.indexOf(row);
if (res === "Success") {
this.$notify({
title: "成功",
message: "确认成功!",
type: "success",
duration: 2000,
});
this.accountDatelist.accountDate = "";
this.resultData.errSize = 0;
this.dialogFormVisible = false;
this.resultData.successMessage = "出库成功!";
this.getList();
} else {
this.dialogFormVisible = false;
this.resultData.errTemplate = res; //
this.resultData.errSize = 1; //0
this.resultData.successMessage = "有错误检验信息!";
//alert(JSON.stringify(this.resultData));
}
this.formLoading = false;
})
.catch(() => {
this.formLoading = false;
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
this.formLoading = false;
});
} else if (getAccountMonth === currentMonth) {
this.$axios this.$axios
.posts( .posts(
"/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Pass", "/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Pass",
@ -564,8 +633,69 @@ export default {
.catch(() => { .catch(() => {
this.formLoading = false; this.formLoading = false;
}); });
} else {
this.$message({
type: "warning",
message: "选择的过账日期不能大于当前月份!",
});
this.formLoading = false;
return;
} }
}, },
// saveBills(row) {
// this.resultData.errSize == 0; //
// 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;
// } else {
// if (this.accountDatelist != "") {
// this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
// }
// console.log(
// "-" + JSON.stringify(this.listOutPutQuery)
// );
// this.$axios
// .posts(
// "/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Pass",
// this.listOutPutQuery
// )
// .then((res) => {
// const index = this.list.indexOf(row);
// if (res === "Success") {
// this.$notify({
// title: "",
// message: "!",
// type: "success",
// duration: 2000,
// });
// this.accountDatelist.accountDate = "";
// this.resultData.errSize = 0;
// this.dialogFormVisible = false;
// this.resultData.successMessage = "";
// this.getList();
// } else {
// this.dialogFormVisible = false;
// this.resultData.errTemplate = res; //
// this.resultData.errSize = 1; //0
// this.resultData.successMessage = "";
// //alert(JSON.stringify(this.resultData));
// }
// this.formLoading = false;
// })
// .catch(() => {
// this.formLoading = false;
// });
// }
// },
// //
CancelBills(row) { CancelBills(row) {
if (this.accountDatelist.accountDate == "") { if (this.accountDatelist.accountDate == "") {
@ -592,32 +722,140 @@ export default {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
this.$axios let myalert = "";
.posts( var getAccountMonth = moment(this.accountDatelist.accountDate).format(
"/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Cancel", "YYYY-MM"
this.listOutPutQuery ); //
) let date = new Date();
.then((response) => { let currentMonth = moment(date).format("YYYY-MM"); //
const index = this.list.indexOf(row); if (getAccountMonth < currentMonth) {
this.$notify({ myalert = "过账日期小于当前月份";
title: "成功",
message: "操作成功", this.$confirm("是否确认" + myalert + "?", "提示", {
type: "success", confirmButtonText: "确定",
duration: 2000, cancelButtonText: "取消",
}); type: "warning",
this.accountDatelist.accountDate = "";
this.dialogFormVisible = false;
this.getList();
this.formLoading = false;
}) })
.catch(() => { .then(() => {
this.formLoading = false; this.$axios
this.$message({ .posts(
type: "info", "/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-Cancel",
message: "调用服务出错!", 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: "已取消操作",
});
this.formLoading = false;
});
} else if (getAccountMonth === currentMonth) {
this.$axios
.posts(
"/api/settleaccount/wmskanbanoutputextend/WmsKanbanOutPut-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: "选择的过账日期不能大于当前月份!",
}); });
this.formLoading = false;
return;
}
}, },
// 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/wmskanbanoutputextend/WmsKanbanOutPut-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: "",
// });
// });
// },
// //
handleDelete(row) { handleDelete(row) {

207
vue/src/views/ux/billManage/sparepartOutOrder/detail.vue

@ -163,6 +163,7 @@
<el-form-item label="日期" prop="accountDate"> <el-form-item label="日期" prop="accountDate">
<el-date-picker <el-date-picker
v-model="accountDatelist.accountDate" v-model="accountDatelist.accountDate"
:picker-options="pickerOptions"
type="date" type="date"
clearable clearable
placeholder="选择日期" placeholder="选择日期"
@ -207,6 +208,15 @@ export default {
data() { data() {
return { return {
crmType: "sparepartOutOrder", crmType: "sparepartOutOrder",
pickerOptions: {
//
disabledDate(time) {
let date = new Date();
let currentdate = moment(date).format("YYYY-MM");
var timedate = moment(time).format("YYYY-MM");
return currentdate < timedate;
},
},
rules: { rules: {
// //
erpMaterialCode: [ erpMaterialCode: [
@ -493,42 +503,37 @@ export default {
message: "请选择日期!", message: "请选择日期!",
type: "warning", type: "warning",
}); });
this.formLoading = false;
return; return;
//this.getList(); }
} else { this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
let myalert = ""; console.log(
var getAccountMonth = moment(this.accountDatelist.accountDate).format( "全部确认出库条件:" +
"YYYY-MM" JSON.stringify(this.listOutPutQuery) +
); "选择日期:" +
let date = new Date(); JSON.stringify(this.accountDatelist.accountDate)
let currentMonth = moment(date).format("YYYY-MM"); );
console.log( let myalert = "";
"过账日期:" + var getAccountMonth = moment(this.accountDatelist.accountDate).format(
JSON.stringify(getAccountMonth) + "YYYY-MM"
"当前日期:" + );
JSON.stringify(currentMonth) let date = new Date();
); let currentMonth = moment(date).format("YYYY-MM");
if (getAccountMonth <= currentMonth) { // console.log(
myalert = "过账日期小于或等于当前月份"; // ":" +
} else { // JSON.stringify(getAccountMonth) +
this.$message({ // ":" +
type: "warning", // JSON.stringify(currentMonth)
message: "选择的过账日期不能大于当前月份!", // );
}); if (getAccountMonth < currentMonth) {
this.formLoading = false; myalert = "过账日期小于当前月份";
return;
}
this.$confirm("是否确认" + myalert + "?", "提示", { this.$confirm("是否确认" + myalert + "?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; //this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log(
"全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
);
this.$axios this.$axios
.posts( .posts(
@ -557,8 +562,37 @@ export default {
type: "info", type: "info",
message: "已取消操作", message: "已取消操作",
}); });
this.formLoading = false; this.formLoading = false;
}); });
} else if (getAccountMonth === currentMonth) {
this.$axios
.posts(
"/api/settleaccount/wmsSharePartoutput/WmsSharePartOutPut-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;
});
} else {
this.$message({
type: "warning",
message: "选择的过账日期不能大于当前月份!",
});
this.formLoading = false;
return;
} }
}, },
// //
@ -597,6 +631,7 @@ export default {
message: "请选择日期!", message: "请选择日期!",
type: "warning", type: "warning",
}); });
this.formLoading = false;
return; return;
} }
var params = []; var params = [];
@ -616,31 +651,99 @@ export default {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
this.$axios let myalert = "";
.posts( var getAccountMonth = moment(this.accountDatelist.accountDate).format(
"/api/settleaccount/wmsSharePartoutput/WmsSharePartOutPut-Cancel", "YYYY-MM"
this.listOutPutQuery ); //
) let date = new Date();
.then((response) => { let currentMonth = moment(date).format("YYYY-MM"); //
const index = this.list.indexOf(row); console.log(
this.$notify({ "过账日期:" +
title: "成功", JSON.stringify(getAccountMonth) +
message: "操作成功", "当前日期:" +
type: "success", JSON.stringify(currentMonth)
duration: 2000, );
}); if (getAccountMonth < currentMonth) {
this.accountDatelist.accountDate = ""; myalert = "过账日期小于当前月份";
this.dialogFormVisible = false;
this.getList(); this.$confirm("是否确认" + myalert + "?", "提示", {
this.formLoading = false; confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}) })
.catch(() => { .then(() => {
this.formLoading = false; //this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
this.$message({ console.log(
type: "info", "取消出库条件:" + JSON.stringify(this.listOutPutQuery)
message: "调用服务出错!", );
this.$axios
.posts(
"/api/settleaccount/wmsSharePartoutput/WmsSharePartOutPut-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: "已取消操作",
});
this.formLoading = false;
}); });
} else if (getAccountMonth === currentMonth) {
this.$axios
.posts(
"/api/settleaccount/wmsSharePartoutput/WmsSharePartOutPut-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: "选择的过账日期不能大于当前月份!",
}); });
this.formLoading = false;
return;
}
}, },
// //

278
vue/src/views/ux/billManage/sparepartOutOrder90/detail.vue

@ -139,6 +139,7 @@
<el-date-picker <el-date-picker
v-model="accountDatelist.accountDate" v-model="accountDatelist.accountDate"
type="date" type="date"
:picker-options="pickerOptions"
clearable clearable
placeholder="选择日期" placeholder="选择日期"
> >
@ -165,6 +166,7 @@ import permission from "@/directive/permission/index.js";
import CRMTableHead from "../../components/CRMTableHead"; import CRMTableHead from "../../components/CRMTableHead";
import { downloadFile } from "@/utils/crmindex.js"; import { downloadFile } from "@/utils/crmindex.js";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue"; import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
import moment from "moment";
export default { export default {
name: "sendUnsettledDiffReport", name: "sendUnsettledDiffReport",
@ -181,6 +183,15 @@ export default {
data() { data() {
return { return {
crmType: "sparepartOutOrder", crmType: "sparepartOutOrder",
pickerOptions: {
//
disabledDate(time) {
let date = new Date();
let currentdate = moment(date).format("YYYY-MM");
var timedate = moment(time).format("YYYY-MM");
return currentdate < timedate;
},
},
rules: { rules: {
// //
erpMaterialCode: [ erpMaterialCode: [
@ -400,16 +411,57 @@ export default {
type: "warning", type: "warning",
}); });
return; return;
//this.getList(); }
} else { this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; console.log("全部确认出库条件:" + JSON.stringify(this.listOutPutQuery));
}
//this.listOutPutQuery.accountDate = this.accountDatelist;
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/wmsSharePart90output/WmsSharePartOutPut-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;
this.$axios this.$axios
.posts( .posts(
"/api/settleaccount/wmsSharePart90output/WmsSharePartOutPut-Pass", "/api/settleaccount/wmsSharePart90output/WmsSharePartOutPut-Pass",
@ -431,8 +483,58 @@ export default {
.catch(() => { .catch(() => {
this.formLoading = false; this.formLoading = false;
}); });
} else {
this.$message({
type: "warning",
message: "选择的过账日期不能大于当前月份!",
});
this.formLoading = false;
return;
} }
}, },
// 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.getList();
// } else {
// if (this.accountDatelist != "") {
// this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
// }
// //this.listOutPutQuery.accountDate = this.accountDatelist;
// console.log(
// "" + JSON.stringify(this.listOutPutQuery)
// );
// this.$axios
// .posts(
// "/api/settleaccount/wmsSharePart90output/WmsSharePartOutPut-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;
// });
// }
// },
// //
HandleOutPutCancel() { HandleOutPutCancel() {
@ -490,32 +592,146 @@ export default {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
this.$axios let myalert = "";
.posts( var getAccountMonth = moment(this.accountDatelist.accountDate).format(
"/api/settleaccount/wmsSharePart90output/WmsSharePartOutPut-Cancel", "YYYY-MM"
this.listOutPutQuery ); //
) let date = new Date();
.then((response) => { let currentMonth = moment(date).format("YYYY-MM"); //
const index = this.list.indexOf(row);
this.$notify({ if (getAccountMonth < currentMonth) {
title: "成功", myalert = "过账日期小于当前月份";
message: "操作成功",
type: "success", this.$confirm("是否确认" + myalert + "?", "提示", {
duration: 2000, confirmButtonText: "确定",
}); cancelButtonText: "取消",
this.accountDatelist.accountDate = ""; type: "warning",
this.dialogFormVisible = false;
this.getList();
this.formLoading = false;
}) })
.catch(() => { .then(() => {
this.formLoading = false; //this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
this.$message({ console.log(
type: "info", "取消出库条件:" + JSON.stringify(this.listOutPutQuery)
message: "调用服务出错!", );
this.$axios
.posts(
"/api/settleaccount/wmsSharePart90output/WmsSharePartOutPut-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: "已取消操作",
});
this.formLoading = false;
}); });
} else if (getAccountMonth === currentMonth) {
this.$axios
.posts(
"/api/settleaccount/wmsSharePart90output/WmsSharePartOutPut-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: "选择的过账日期不能大于当前月份!",
}); });
this.formLoading = false;
return;
}
}, },
// 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/wmsSharePart90output/WmsSharePartOutPut-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: "",
// });
// });
// },
// //
handleDelete(row) { handleDelete(row) {

275
vue/src/views/ux/billManage/vwOutOrder/detail.vue

@ -131,6 +131,7 @@
<el-date-picker <el-date-picker
v-model="accountDatelist.accountDate" v-model="accountDatelist.accountDate"
type="date" type="date"
:picker-options="pickerOptions"
clearable clearable
placeholder="选择日期" placeholder="选择日期"
> >
@ -157,6 +158,7 @@ import permission from "@/directive/permission/index.js";
import CRMTableHead from "../../components/CRMTableHead"; import CRMTableHead from "../../components/CRMTableHead";
import { downloadFile } from "@/utils/crmindex.js"; import { downloadFile } from "@/utils/crmindex.js";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue"; import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
import moment from "moment";
export default { export default {
name: "sendUnsettledDiffReport", name: "sendUnsettledDiffReport",
@ -173,6 +175,15 @@ export default {
data() { data() {
return { return {
crmType: "vwOutOrder", crmType: "vwOutOrder",
pickerOptions: {
//
disabledDate(time) {
let date = new Date();
let currentdate = moment(date).format("YYYY-MM");
var timedate = moment(time).format("YYYY-MM");
return currentdate < timedate;
},
},
rules: { rules: {
// //
erpMaterialCode: [ erpMaterialCode: [
@ -389,32 +400,146 @@ export default {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
this.$axios let myalert = "";
.posts( var getAccountMonth = moment(this.accountDatelist.accountDate).format(
"/api/settleaccount/wmsjitoutput/WmsJitOutPut-Cancel", "YYYY-MM"
this.listOutPutQuery ); //
) let date = new Date();
.then((response) => { let currentMonth = moment(date).format("YYYY-MM"); //
const index = this.list.indexOf(row); console.log(
this.$notify({ "过账日期:" +
title: "成功", JSON.stringify(getAccountMonth) +
message: "操作成功", "当前日期:" +
type: "success", JSON.stringify(currentMonth)
duration: 2000, );
}); if (getAccountMonth < currentMonth) {
this.accountDatelist.accountDate = ""; myalert = "过账日期小于当前月份";
this.dialogFormVisible = false;
this.getList(); this.$confirm("是否确认" + myalert + "?", "提示", {
this.formLoading = false; confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}) })
.catch(() => { .then(() => {
this.formLoading = false; this.$axios
this.$message({ .posts(
type: "info", "/api/settleaccount/wmsjitoutput/WmsJitOutPut-Cancel",
message: "调用服务出错!", 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: "已取消操作",
});
this.formLoading = false;
});
} else if (getAccountMonth === currentMonth) {
this.$axios
.posts(
"/api/settleaccount/wmsjitoutput/WmsJitOutPut-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: "选择的过账日期不能大于当前月份!",
}); });
this.formLoading = false;
return;
}
}, },
// 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/wmsjitoutput/WmsJitOutPut-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: "",
// });
// });
// },
// //
handleCreateBills() { handleCreateBills() {
@ -436,15 +561,55 @@ export default {
}); });
//this.getList(); //this.getList();
return; return;
} else { }
if (this.accountDatelist != "") { this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
}
//this.listOutPutQuery.accountDate = this.accountDatelist;
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/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 this.$axios
.posts( .posts(
"/api/settleaccount/wmsjitoutput/WmsJitOutPut-Pass", "/api/settleaccount/wmsjitoutput/WmsJitOutPut-Pass",
@ -466,8 +631,58 @@ export default {
.catch(() => { .catch(() => {
this.formLoading = false; this.formLoading = false;
}); });
} else {
this.$message({
type: "warning",
message: "选择的过账日期不能大于当前月份!",
});
this.formLoading = false;
return;
} }
}, },
// 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",
// });
// //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.$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;
// });
// }
// },
// //
handleCreateBills_old(row) { handleCreateBills_old(row) {
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {

271
vue/src/views/ux/billManage/wmsCusomerKanban/detail.vue

@ -1,4 +1,4 @@
<!--大众看板出库单--> <!--自定义发货出库单-->
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
@ -131,6 +131,7 @@
<el-date-picker <el-date-picker
v-model="accountDatelist.accountDate" v-model="accountDatelist.accountDate"
type="date" type="date"
:picker-options="pickerOptions"
clearable clearable
placeholder="选择日期" placeholder="选择日期"
> >
@ -157,6 +158,7 @@ import permission from "@/directive/permission/index.js";
import CRMTableHead from "../../components/CRMTableHead"; import CRMTableHead from "../../components/CRMTableHead";
import { downloadFile } from "@/utils/crmindex.js"; import { downloadFile } from "@/utils/crmindex.js";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue"; import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
import moment from "moment";
export default { export default {
name: "sendUnsettledDiffReport", name: "sendUnsettledDiffReport",
@ -173,6 +175,15 @@ export default {
data() { data() {
return { return {
crmType: "kanbanOutOrder", crmType: "kanbanOutOrder",
pickerOptions: {
//
disabledDate(time) {
let date = new Date();
let currentdate = moment(date).format("YYYY-MM");
var timedate = moment(time).format("YYYY-MM");
return currentdate < timedate;
},
},
rules: { rules: {
// //
erpMaterialCode: [ erpMaterialCode: [
@ -434,13 +445,54 @@ export default {
type: "warning", type: "warning",
}); });
return; return;
} else { }
if (this.accountDatelist != "") { this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; console.log("确认出库条件:" + JSON.stringify(this.listOutPutQuery));
}
//this.listOutPutQuery.accountDate = this.accountDatelist;
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/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-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 this.$axios
.posts( .posts(
"/api/settleaccount/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-Pass", "/api/settleaccount/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-Pass",
@ -462,8 +514,55 @@ export default {
.catch(() => { .catch(() => {
this.formLoading = false; this.formLoading = false;
}); });
} else {
this.$message({
type: "warning",
message: "选择的过账日期不能大于当前月份!",
});
this.formLoading = false;
return;
} }
}, },
// 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;
// } else {
// if (this.accountDatelist != "") {
// this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
// }
// //this.listOutPutQuery.accountDate = this.accountDatelist;
// console.log("" + JSON.stringify(this.listOutPutQuery));
// this.$axios
// .posts(
// "/api/settleaccount/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-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;
// });
// }
// },
// //
CancelBills(row) { CancelBills(row) {
if (this.accountDatelist.accountDate == "") { if (this.accountDatelist.accountDate == "") {
@ -490,32 +589,146 @@ export default {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
this.$axios let myalert = "";
.posts( var getAccountMonth = moment(this.accountDatelist.accountDate).format(
"/api/settleaccount/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-Cancel", "YYYY-MM"
this.listOutPutQuery ); //
) let date = new Date();
.then((response) => { let currentMonth = moment(date).format("YYYY-MM"); //
const index = this.list.indexOf(row); console.log(
this.$notify({ "过账日期:" +
title: "成功", JSON.stringify(getAccountMonth) +
message: "操作成功", "当前日期:" +
type: "success", JSON.stringify(currentMonth)
duration: 2000, );
}); if (getAccountMonth < currentMonth) {
this.accountDatelist.accountDate = ""; myalert = "过账日期小于当前月份";
this.dialogFormVisible = false;
this.getList(); this.$confirm("是否确认" + myalert + "?", "提示", {
this.formLoading = false; confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}) })
.catch(() => { .then(() => {
this.formLoading = false; this.$axios
this.$message({ .posts(
type: "info", "/api/settleaccount/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-Cancel",
message: "调用服务出错!", 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: "已取消操作",
});
this.formLoading = false;
});
} else if (getAccountMonth === currentMonth) {
this.$axios
.posts(
"/api/settleaccount/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-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: "选择的过账日期不能大于当前月份!",
}); });
this.formLoading = false;
return;
}
}, },
// 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/WMSCusomerKanbanoutput/WmsCustomerKanbanOutPut-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: "",
// });
// });
// },
// //
handleDelete(row) { handleDelete(row) {

2
vue/src/views/ux/billManage/wmsCusomerKanban/index.vue

@ -1,4 +1,4 @@
<!--大众通用代码出库单--> <!--自定义发货出库单-->
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">

280
vue/src/views/ux/vw/dataInput/OnetimeSale/detail.vue

@ -156,6 +156,7 @@
<el-date-picker <el-date-picker
v-model="accountDatelist.accountDate" v-model="accountDatelist.accountDate"
type="date" type="date"
:picker-options="pickerOptions"
clearable clearable
placeholder="选择日期" placeholder="选择日期"
> >
@ -182,6 +183,7 @@ import permission from "@/directive/permission/index.js";
import CRMTableHead from "../../../components/CRMTableHead"; import CRMTableHead from "../../../components/CRMTableHead";
import { downloadFile } from "@/utils/crmindex.js"; import { downloadFile } from "@/utils/crmindex.js";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue"; import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
import moment from "moment";
export default { export default {
name: "sendUnsettledDiffReport", name: "sendUnsettledDiffReport",
@ -198,6 +200,15 @@ export default {
data() { data() {
return { return {
crmType: "sparepartOutOrder", crmType: "sparepartOutOrder",
pickerOptions: {
//
disabledDate(time) {
let date = new Date();
let currentdate = moment(date).format("YYYY-MM");
var timedate = moment(time).format("YYYY-MM");
return currentdate < timedate;
},
},
rules: { rules: {
// //
erpMaterialCode: [ erpMaterialCode: [
@ -501,18 +512,58 @@ export default {
message: "请选择日期!", message: "请选择日期!",
type: "warning", type: "warning",
}); });
this.getList();
return; return;
//this.getList(); }
} else { this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
}
//this.listOutPutQuery.accountDate = this.accountDatelist;
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/WmsOneTimeSaleOutput/WmsKanbanOutPut-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 this.$axios
.posts( .posts(
"/api/settleaccount/WmsOneTimeSaleOutput/WmsKanbanOutPut-Pass", "/api/settleaccount/WmsOneTimeSaleOutput/WmsKanbanOutPut-Pass",
@ -534,8 +585,59 @@ export default {
.catch(() => { .catch(() => {
this.formLoading = false; this.formLoading = false;
}); });
} else {
this.$message({
type: "warning",
message: "选择的过账日期不能大于当前月份!",
});
this.formLoading = false;
return;
} }
}, },
// 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",
// });
// 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.$axios
// .posts(
// "/api/settleaccount/WmsOneTimeSaleOutput/WmsKanbanOutPut-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;
// });
// }
// },
// //
CancelBills(row) { CancelBills(row) {
if (this.accountDatelist.accountDate == "") { if (this.accountDatelist.accountDate == "") {
@ -562,32 +664,146 @@ export default {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
this.$axios let myalert = "";
.posts( var getAccountMonth = moment(this.accountDatelist.accountDate).format(
"/api/settleaccount/WmsOneTimeSaleOutput/WmsKanbanOutPut-Cancel", "YYYY-MM"
this.listOutPutQuery ); //
) let date = new Date();
.then((response) => { let currentMonth = moment(date).format("YYYY-MM"); //
const index = this.list.indexOf(row); console.log(
this.$notify({ "过账日期:" +
title: "成功", JSON.stringify(getAccountMonth) +
message: "操作成功", "当前日期:" +
type: "success", JSON.stringify(currentMonth)
duration: 2000, );
}); if (getAccountMonth < currentMonth) {
this.accountDatelist.accountDate = ""; myalert = "过账日期小于当前月份";
this.dialogFormVisible = false;
this.getList(); this.$confirm("是否确认" + myalert + "?", "提示", {
this.formLoading = false; confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}) })
.catch(() => { .then(() => {
this.formLoading = false; this.$axios
this.$message({ .posts(
type: "info", "/api/settleaccount/WmsOneTimeSaleOutput/WmsKanbanOutPut-Cancel",
message: "调用服务出错!", 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: "已取消操作",
});
this.formLoading = false;
}); });
} else if (getAccountMonth === currentMonth) {
this.$axios
.posts(
"/api/settleaccount/WmsOneTimeSaleOutput/WmsKanbanOutPut-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: "选择的过账日期不能大于当前月份!",
}); });
this.formLoading = false;
return;
}
}, },
// 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/WmsOneTimeSaleOutput/WmsKanbanOutPut-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: "",
// });
// });
// },
// //
handleDelete(row) { handleDelete(row) {

277
vue/src/views/ux/vw/dataInput/hq_h_checkout/detail.vue

@ -1,4 +1,4 @@
<!--红旗H平台出库单-明细数据--> <!--红旗备件出库单-->
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
@ -164,6 +164,7 @@
<el-date-picker <el-date-picker
v-model="accountDatelist.accountDate" v-model="accountDatelist.accountDate"
type="date" type="date"
:picker-options="pickerOptions"
clearable clearable
placeholder="选择日期" placeholder="选择日期"
> >
@ -207,6 +208,15 @@ export default {
data() { data() {
return { return {
crmType: "hq-h-OutOrder", crmType: "hq-h-OutOrder",
pickerOptions: {
//
disabledDate(time) {
let date = new Date();
let currentdate = moment(date).format("YYYY-MM");
var timedate = moment(time).format("YYYY-MM");
return currentdate < timedate;
},
},
rules: { rules: {
// //
erpMaterialCode: [ erpMaterialCode: [
@ -539,32 +549,147 @@ export default {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
this.$axios let myalert = "";
.posts( var getAccountMonth = moment(this.accountDatelist.accountDate).format(
"/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartOutPut-Cancel", "YYYY-MM"
this.listOutPutQuery ); //
) let date = new Date();
.then((response) => { let currentMonth = moment(date).format("YYYY-MM"); //
const index = this.list.indexOf(row); console.log(
this.$notify({ "过账日期:" +
title: "成功", JSON.stringify(getAccountMonth) +
message: "操作成功", "当前日期:" +
type: "success", JSON.stringify(currentMonth)
duration: 2000, );
}); if (getAccountMonth < currentMonth) {
this.accountDatelist.accountDate = ""; myalert = "过账日期小于当前月份";
this.dialogFormVisible = false;
this.getList(); this.$confirm("是否确认" + myalert + "?", "提示", {
this.formLoading = false; confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}) })
.catch(() => { .then(() => {
this.formLoading = false; this.$axios
this.$message({ .posts(
type: "info", "/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartOutPut-Cancel",
message: "调用服务出错!", 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: "已取消操作",
});
this.formLoading = false;
}); });
} else if (getAccountMonth === currentMonth) {
this.$axios
.posts(
"/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartOutPut-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: "选择的过账日期不能大于当前月份!",
}); });
this.formLoading = false;
return;
}
}, },
// 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/WmsHQHSharePartoutput/WmsSharePartOutPut-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) { // handleCancelBills(row) {
// if (this.multipleSelection.length == 0) { // if (this.multipleSelection.length == 0) {
@ -654,16 +779,56 @@ export default {
message: "请选择日期!", message: "请选择日期!",
type: "warning", type: "warning",
}); });
this.getList();
return; return;
//this.getList(); }
} else { this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
}
//this.listOutPutQuery.accountDate = this.accountDatelist;
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/WmsHQHSharePartoutput/WmsSharePartOutPut-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 this.$axios
.posts( .posts(
"/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartOutPut-Pass", "/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartOutPut-Pass",
@ -685,8 +850,58 @@ export default {
.catch(() => { .catch(() => {
this.formLoading = false; this.formLoading = false;
}); });
} else {
this.$message({
type: "warning",
message: "选择的过账日期不能大于当前月份!",
});
this.formLoading = false;
return;
} }
}, },
// saveBills(row) {
// this.listOutPutQuery.guids = [];
// this.listOutPutQuery.version = this.customerInfo.version;
// this.listOutPutQuery.billNum = this.customerInfo.parentId;
// //debugger
// if (this.accountDatelist.accountDate == "") {
// this.$message({
// 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.$axios
// .posts(
// "/api/settleaccount/WmsHQHSharePartoutput/WmsSharePartOutPut-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;
// });
// }
// },
// //
handleDelete(row) { handleDelete(row) {

284
vue/src/views/ux/vw/dataInput/hq_h_outorder/detail.vue

@ -1,4 +1,4 @@
<!--红旗H平台出库单-明细数据--> <!--红旗批量出库单-->
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
@ -131,6 +131,7 @@
<el-date-picker <el-date-picker
v-model="accountDatelist.accountDate" v-model="accountDatelist.accountDate"
type="date" type="date"
:picker-options="pickerOptions"
clearable clearable
placeholder="选择日期" placeholder="选择日期"
> >
@ -157,6 +158,7 @@ import permission from "@/directive/permission/index.js";
import CRMTableHead from "../../../components/CRMTableHead"; import CRMTableHead from "../../../components/CRMTableHead";
import { downloadFile } from "@/utils/crmindex.js"; import { downloadFile } from "@/utils/crmindex.js";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue"; import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
import moment from "moment";
export default { export default {
name: "sendUnsettledDiffReport", name: "sendUnsettledDiffReport",
@ -173,6 +175,15 @@ export default {
data() { data() {
return { return {
crmType: "hq-h-OutOrder", crmType: "hq-h-OutOrder",
pickerOptions: {
//
disabledDate(time) {
let date = new Date();
let currentdate = moment(date).format("YYYY-MM");
var timedate = moment(time).format("YYYY-MM");
return currentdate < timedate;
},
},
rules: { rules: {
// //
erpMaterialCode: [ erpMaterialCode: [
@ -442,32 +453,146 @@ export default {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
this.$axios let myalert = "";
.posts( var getAccountMonth = moment(this.accountDatelist.accountDate).format(
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Cancel", "YYYY-MM"
this.listOutPutQuery ); //
) let date = new Date();
.then((response) => { let currentMonth = moment(date).format("YYYY-MM"); //
const index = this.list.indexOf(row); console.log(
this.$notify({ "过账日期:" +
title: "成功", JSON.stringify(getAccountMonth) +
message: "操作成功", "当前日期:" +
type: "success", JSON.stringify(currentMonth)
duration: 2000, );
}); if (getAccountMonth < currentMonth) {
this.accountDatelist.accountDate = ""; myalert = "过账日期小于当前月份";
this.dialogFormVisible = false;
this.getList(); this.$confirm("是否确认" + myalert + "?", "提示", {
this.formLoading = false; confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}) })
.catch(() => { .then(() => {
this.formLoading = false; this.$axios
this.$message({ .posts(
type: "info", "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Cancel",
message: "调用服务出错!", 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: "已取消操作",
});
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 {
this.$message({
type: "warning",
message: "选择的过账日期不能大于当前月份!",
}); });
this.formLoading = false;
return;
}
}, },
// 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) { // handleCancelBills(row) {
// if (this.multipleSelection.length == 0) { // if (this.multipleSelection.length == 0) {
@ -547,18 +672,59 @@ export default {
message: "请选择日期!", message: "请选择日期!",
type: "warning", type: "warning",
}); });
this.getList();
return; return;
//this.getList(); }
} else { this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
}
//this.listOutPutQuery.accountDate = this.accountDatelist;
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,
});
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 this.$axios
.posts( .posts(
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass", "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass",
@ -581,8 +747,60 @@ export default {
.catch(() => { .catch(() => {
this.formLoading = false; this.formLoading = false;
}); });
} else {
this.$message({
type: "warning",
message: "选择的过账日期不能大于当前月份!",
});
this.formLoading = false;
return;
} }
}, },
// 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",
// });
// 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.$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;
// });
// }
// },
// //
handleDelete(row) { handleDelete(row) {
var params = []; var params = [];

272
vue/src/views/ux/vw/dataInput/hq_kb_output/detail.vue

@ -1,4 +1,4 @@
<!---明细数据--> <!---红旗一轿手工出库单-->
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
@ -156,6 +156,7 @@
<el-date-picker <el-date-picker
v-model="accountDatelist.accountDate" v-model="accountDatelist.accountDate"
type="date" type="date"
:picker-options="pickerOptions"
clearable clearable
placeholder="选择日期" placeholder="选择日期"
> >
@ -182,6 +183,7 @@ import permission from "@/directive/permission/index.js";
import CRMTableHead from "../../../components/CRMTableHead"; import CRMTableHead from "../../../components/CRMTableHead";
import { downloadFile } from "@/utils/crmindex.js"; import { downloadFile } from "@/utils/crmindex.js";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue"; import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
import moment from "moment";
export default { export default {
name: "HQkboutput", name: "HQkboutput",
@ -198,6 +200,15 @@ export default {
data() { data() {
return { return {
crmType: "hqkboutput", crmType: "hqkboutput",
pickerOptions: {
//
disabledDate(time) {
let date = new Date();
let currentdate = moment(date).format("YYYY-MM");
var timedate = moment(time).format("YYYY-MM");
return currentdate < timedate;
},
},
rules: { rules: {
// //
erpMaterialCode: [ erpMaterialCode: [
@ -521,32 +532,146 @@ export default {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
this.$axios let myalert = "";
.posts( var getAccountMonth = moment(this.accountDatelist.accountDate).format(
"/api/settleaccount/WmsHQKBOutput/WmsKanbanOutPut-Cancel", "YYYY-MM"
this.listOutPutQuery ); //
) let date = new Date();
.then((response) => { let currentMonth = moment(date).format("YYYY-MM"); //
const index = this.list.indexOf(row); console.log(
this.$notify({ "过账日期:" +
title: "成功", JSON.stringify(getAccountMonth) +
message: "操作成功", "当前日期:" +
type: "success", JSON.stringify(currentMonth)
duration: 2000, );
}); if (getAccountMonth < currentMonth) {
this.accountDatelist.accountDate = ""; myalert = "过账日期小于当前月份";
this.dialogFormVisible = false;
this.getList(); this.$confirm("是否确认" + myalert + "?", "提示", {
this.formLoading = false; confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}) })
.catch(() => { .then(() => {
this.formLoading = false; this.$axios
this.$message({ .posts(
type: "info", "/api/settleaccount/WmsHQKBOutput/WmsKanbanOutPut-Cancel",
message: "调用服务出错!", 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: "已取消操作",
});
this.formLoading = false;
});
} else if (getAccountMonth === currentMonth) {
this.$axios
.posts(
"/api/settleaccount/WmsHQKBOutput/WmsKanbanOutPut-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: "选择的过账日期不能大于当前月份!",
}); });
this.formLoading = false;
return;
}
}, },
// 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/WmsHQKBOutput/WmsKanbanOutPut-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: "",
// });
// });
// },
// //
saveBills(row) { saveBills(row) {
this.listOutPutQuery.guids = []; this.listOutPutQuery.guids = [];
@ -558,13 +683,55 @@ export default {
type: "warning", type: "warning",
}); });
return; return;
} else { }
if (this.accountDatelist != "") { this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
}
//this.listOutPutQuery.accountDate = this.accountDatelist;
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/WmsHQKBOutput/WmsKanbanOutPut-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 this.$axios
.posts( .posts(
"/api/settleaccount/WmsHQKBOutput/WmsKanbanOutPut-Pass", "/api/settleaccount/WmsHQKBOutput/WmsKanbanOutPut-Pass",
@ -586,8 +753,55 @@ export default {
.catch(() => { .catch(() => {
this.formLoading = false; this.formLoading = false;
}); });
} else {
this.$message({
type: "warning",
message: "选择的过账日期不能大于当前月份!",
});
this.formLoading = false;
return;
} }
}, },
// 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;
// } else {
// if (this.accountDatelist != "") {
// this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
// }
// //this.listOutPutQuery.accountDate = this.accountDatelist;
// console.log("" + JSON.stringify(this.listOutPutQuery));
// this.$axios
// .posts(
// "/api/settleaccount/WmsHQKBOutput/WmsKanbanOutPut-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;
// });
// }
// },
// //
handleDelete(row) { handleDelete(row) {
var params = []; var params = [];

2
vue/src/views/ux/vw/dataInput/hq_kb_output/index.vue

@ -1,4 +1,4 @@
<!--大众看板无单号出库单--> <!--红旗一轿手工出库单-->
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">

280
vue/src/views/ux/vw/dataInput/hq_y_outorder/detail.vue

@ -157,6 +157,7 @@
<el-date-picker <el-date-picker
v-model="accountDatelist.accountDate" v-model="accountDatelist.accountDate"
type="date" type="date"
:picker-options="pickerOptions"
clearable clearable
placeholder="选择日期" placeholder="选择日期"
> >
@ -183,6 +184,7 @@ import permission from "@/directive/permission/index.js";
import CRMTableHead from "../../../components/CRMTableHead"; import CRMTableHead from "../../../components/CRMTableHead";
import { downloadFile } from "@/utils/crmindex.js"; import { downloadFile } from "@/utils/crmindex.js";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue"; import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
import moment from "moment";
export default { export default {
name: "sendUnsettledDiffReport", name: "sendUnsettledDiffReport",
@ -199,6 +201,15 @@ export default {
data() { data() {
return { return {
crmType: "sparepartOutOrder", crmType: "sparepartOutOrder",
pickerOptions: {
//
disabledDate(time) {
let date = new Date();
let currentdate = moment(date).format("YYYY-MM");
var timedate = moment(time).format("YYYY-MM");
return currentdate < timedate;
},
},
rules: { rules: {
// //
erpMaterialCode: [ erpMaterialCode: [
@ -481,32 +492,146 @@ export default {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
this.$axios let myalert = "";
.posts( var getAccountMonth = moment(this.accountDatelist.accountDate).format(
"/api/settleaccount/WmsHQCaroutput/WmsSharePartOutPut-Cancel", "YYYY-MM"
this.listOutPutQuery ); //
) let date = new Date();
.then((response) => { let currentMonth = moment(date).format("YYYY-MM"); //
const index = this.list.indexOf(row); console.log(
this.$notify({ "过账日期:" +
title: "成功", JSON.stringify(getAccountMonth) +
message: "操作成功", "当前日期:" +
type: "success", JSON.stringify(currentMonth)
duration: 2000, );
}); if (getAccountMonth < currentMonth) {
this.accountDatelist.accountDate = ""; myalert = "过账日期小于当前月份";
this.dialogFormVisible = false;
this.getList(); this.$confirm("是否确认" + myalert + "?", "提示", {
this.formLoading = false; confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}) })
.catch(() => { .then(() => {
this.formLoading = false; this.$axios
this.$message({ .posts(
type: "info", "/api/settleaccount/WmsHQCaroutput/WmsSharePartOutPut-Cancel",
message: "调用服务出错!", 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: "已取消操作",
});
this.formLoading = false;
});
} else if (getAccountMonth === currentMonth) {
this.$axios
.posts(
"/api/settleaccount/WmsHQCaroutput/WmsSharePartOutPut-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: "选择的过账日期不能大于当前月份!",
}); });
this.formLoading = false;
return;
}
}, },
// 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/WmsHQCaroutput/WmsSharePartOutPut-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) { // handleCancelBills(row) {
// if (this.multipleSelection.length == 0) { // if (this.multipleSelection.length == 0) {
@ -612,18 +737,58 @@ export default {
message: "请选择日期!", message: "请选择日期!",
type: "warning", type: "warning",
}); });
this.getList();
return; return;
//this.getList(); }
} else { this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; console.log(
} "一汽轿车-全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
//this.listOutPutQuery.accountDate = this.accountDatelist; );
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/WmsHQCaroutput/WmsSharePartOutPut-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 this.$axios
.posts( .posts(
"/api/settleaccount/WmsHQCaroutput/WmsSharePartOutPut-Pass", "/api/settleaccount/WmsHQCaroutput/WmsSharePartOutPut-Pass",
@ -645,8 +810,59 @@ export default {
.catch(() => { .catch(() => {
this.formLoading = false; this.formLoading = false;
}); });
} else {
this.$message({
type: "warning",
message: "选择的过账日期不能大于当前月份!",
});
this.formLoading = false;
return;
} }
}, },
// 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",
// });
// 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.$axios
// .posts(
// "/api/settleaccount/WmsHQCaroutput/WmsSharePartOutPut-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;
// });
// }
// },
// //
handleDelete(row) { handleDelete(row) {
var params = []; var params = [];

4
vue/static/config.js

@ -37,8 +37,8 @@ if (process.env.NODE_ENV === 'development') {
configJSON = { configJSON = {
base: { base: {
//ip: 'http://192.168.0.67', ip: 'http://192.168.0.67',
ip: 'http://192.168.0.140', //ip: 'http://192.168.0.140',
//ip: 'http://149.223.116.5', //ip: 'http://149.223.116.5',
//ip: 'http://124.220.28.250', //ip: 'http://124.220.28.250',
//ip: 'http://10.123.148.162', //ip: 'http://10.123.148.162',

Loading…
Cancel
Save