Browse Source

所有出库单加上防抖功能,确认出库和取消出库

branch_ccpg_220107
44673626 3 years ago
parent
commit
d44b97319d
  1. 1
      vue/package.json
  2. 83
      vue/src/views/ux/billManage/WMSOutputSumReport/index.vue
  3. 171
      vue/src/views/ux/billManage/kanbanOutOrder/detail.vue
  4. 150
      vue/src/views/ux/billManage/kanbanWithOutOrder/detail.vue
  5. 46
      vue/src/views/ux/billManage/sparepartOutOrder/detail.vue
  6. 143
      vue/src/views/ux/billManage/sparepartOutOrder90/detail.vue
  7. 135
      vue/src/views/ux/billManage/vwOutOrder/detail.vue
  8. 137
      vue/src/views/ux/billManage/wmsCusomerKanban/detail.vue
  9. 143
      vue/src/views/ux/vw/dataInput/OnetimeSale/detail.vue
  10. 220
      vue/src/views/ux/vw/dataInput/hq_h_outorder/detail.vue
  11. 136
      vue/src/views/ux/vw/dataInput/hq_kb_output/detail.vue

1
vue/package.json

@ -61,6 +61,7 @@
"jsonlint": "1.6.3",
"jszip": "3.2.1",
"lockr": "^0.8.5",
"lodash": "^4.17.21",
"moment": "^2.29.1",
"normalize.css": "^7.0.0",
"nprogress": "0.2.0",

83
vue/src/views/ux/billManage/WMSOutputSumReport/index.vue

@ -360,8 +360,8 @@
<el-button type="text" @click="dialogAccounDateVisible = false"
>取消</el-button
>
<!-- <el-button @click="resetForm('formCount')">重置</el-button> -->
<el-button v-loading="formLoading" type="primary" @click="saveDate"
<!--v-loading="formLoading" <el-button @click="resetForm('formCount')">重置</el-button> -->
<el-button type="primary" @click="saveDate"
>确认</el-button
>
</div>
@ -378,6 +378,7 @@ import moment from "moment";
import Lockr from "lockr";
import { downloadFile } from "@/utils/crmindex.js";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
import _ from "lodash";
export default {
name: "WMSOutputSumReport",
@ -462,6 +463,7 @@ export default {
MaxResultCount: 15,
version: "",
state: 4,
isDisable: false,
accountDate: undefined,
type: undefined,
//materialGroup: undefined,
@ -734,6 +736,7 @@ export default {
this.dataValue = "";
this.formTitle = "同步MWS至SAP";
this.isEdit = false;
this.isDisable = false;
this.form = {};
this.dialogAccounDateVisible = true;
this.resultData = {};
@ -784,10 +787,8 @@ export default {
});
},
//SAP
saveDate() {
this.$refs.formCount.validate((valid) => {
if (valid) {
this.formLoading = true;
saveDate: _.debounce(
function () {
this.resultData.errSize == 0; //
if (this.dataValue === "") {
this.$message.error("必需选择过账日期!");
@ -822,16 +823,74 @@ export default {
this.resultData.errSize = 1; //0
this.resultData.successMessage = "同步SAP失败!";
}
this.formLoading = false;
this.dialogAccounDateVisible = false;
})
.catch(() => {
this.formLoading = false;
this.dialogAccounDateVisible = false;
});
}
});
},
2000,
{
leading: true, //
trailing: false, //,
}
),
// saveDate() {
// this.$refs.formCount.validate((valid) => {
// if (valid) {
// //this.formLoading = true;
// this.isDisable = true;
// this.resultData.errSize == 0; //
// if (this.dataValue === "") {
// this.$message.error("");
// this.formLoading = false;
// return;
// }
// if (this.JobversionValue != "") {
// this.listQuery.version = this.JobversionValue;
// }
// this.listQuery.accountDate = this.dataValue;
// //this.listQuery.type = this.selectType; //
// console.log("SAP" + JSON.stringify(this.listQuery));
// this.$axios
// .posts(
// "/api/settleaccount/WMSOutputSumReport/SyncSap",
// this.listQuery
// )
// .then((res) => {
// if (res === "Success") {
// this.$notify({
// title: "",
// message: "SAP!",
// type: "success",
// duration: 2000,
// });
// this.resultData.errSize = 0;
// this.resultData.successMessage = "SAP";
// this.getList();
// } else {
// this.resultData.errTemplate = res; //
// this.resultData.errSize = 1; //0
// this.resultData.successMessage = "SAP";
// }
// setTimeout(() => {
// //
// //this.formLoading = false;
// this.isDisable = false;
// }, 2000);
// this.dialogAccounDateVisible = false;
// })
// .catch(() => {
// // this.formLoading = false;
// this.dialogAccounDateVisible = false;
// });
// }
// });
// },
//
async handleDownload() {
this.listLoading = true;
@ -1023,8 +1082,8 @@ export default {
this.$refs[refName].resetFields();
}
this.searchContent = "";
this.searchContentSaleCode="";
this.searchContentMaterialCode="";
this.searchContentSaleCode = "";
this.searchContentMaterialCode = "";
this.getmaterialGroupValue = "";
this.selectType = "";
this.listQuery.type = undefined;

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

@ -10,7 +10,9 @@
></JobSelectVerson>
<el-button
v-if="this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3"
v-if="
this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3
"
class="filter-item"
type="success"
icon="el-icon-check"
@ -28,6 +30,9 @@
>确认出库单</el-button
>
<el-button
v-if="
this.selectJobVersionValue == 2 || this.selectJobVersionValue == 3
"
class="filter-item"
size="mini"
type="warning"
@ -36,6 +41,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"
@ -43,6 +58,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
@ -170,6 +194,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",
@ -452,7 +477,8 @@ export default {
});
},
//
saveBills(row) {
saveBills: _.debounce(
function (row) {
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
@ -473,12 +499,6 @@ export default {
);
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 + "?", "提示", {
@ -547,6 +567,12 @@ export default {
return;
}
},
1000,
{
leading: true, //
trailing: false, //,
}
),
// saveBills(row) {
// this.listOutPutQuery.guids = [];
// this.listOutPutQuery.version = this.customerInfo.version;
@ -557,13 +583,25 @@ export default {
// type: "warning",
// });
// return;
// } else {
// if (this.accountDatelist != "") {
// this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
// }
// //this.listOutPutQuery.accountDate = this.accountDatelist;
// 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/wmskanbanoutput/WmsKanbanOutPut-Pass",
@ -585,10 +623,49 @@ export default {
// .catch(() => {
// this.formLoading = false;
// });
// })
// .catch(() => {
// this.$message({
// type: "info",
// message: "",
// });
// this.formLoading = false;
// });
// } else if (getAccountMonth === currentMonth) {
// 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;
// });
// } else {
// this.$message({
// type: "warning",
// message: "",
// });
// this.formLoading = false;
// return;
// }
// },
//
CancelBills(row) {
CancelBills: _.debounce(
function (row) {
if (this.accountDatelist.accountDate == "") {
this.$message({
message: "请选择日期!",
@ -701,6 +778,12 @@ export default {
return;
}
},
1000,
{
leading: true, //
trailing: false, //,
}
),
// CancelBills(row) {
// if (this.accountDatelist.accountDate == "") {
// this.$message({
@ -725,7 +808,61 @@ export default {
// this.listOutPutQuery.billNum = this.customerInfo.parentId;
// this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
// console.log("" + JSON.stringify(this.listOutPutQuery));
// let myalert = "";
// var getAccountMonth = moment(this.accountDatelist.accountDate).format(
// "YYYY-MM"
// ); //
// let date = new Date();
// let currentMonth = moment(date).format("YYYY-MM"); //
// console.log(
// ":" +
// JSON.stringify(getAccountMonth) +
// ":" +
// JSON.stringify(currentMonth)
// );
// if (getAccountMonth < currentMonth) {
// myalert = "";
// this.$confirm("" + myalert + "?", "", {
// confirmButtonText: "",
// cancelButtonText: "",
// type: "warning",
// })
// .then(() => {
// 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: "",
// });
// });
// })
// .catch(() => {
// this.$message({
// type: "info",
// message: "",
// });
// this.formLoading = false;
// });
// } else if (getAccountMonth === currentMonth) {
// this.$axios
// .posts(
// "/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Cancel",
@ -751,6 +888,14 @@ export default {
// message: "",
// });
// });
// } else {
// this.$message({
// type: "warning",
// message: "",
// });
// this.formLoading = false;
// return;
// }
// },
//

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

@ -22,7 +22,9 @@
></el-option>
</el-select> -->
<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"
@ -40,6 +42,9 @@
>确认出库单</el-button
>
<el-button
v-if="
this.selectJobVersionValue == 2 || this.selectJobVersionValue == 3
"
class="filter-item"
size="mini"
type="warning"
@ -48,6 +53,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"
@ -55,6 +70,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
@ -224,6 +248,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",
@ -554,7 +579,8 @@ export default {
this.formTitle = "创建出库单";
},
//
saveBills(row) {
saveBills: _.debounce(
function (row) {
this.resultData.errSize == 0; //
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
@ -671,62 +697,15 @@ export default {
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;
// });
// }
// },
1000,
{
leading: true, //
trailing: false, //,
}
),
//
CancelBills(row) {
CancelBills: _.debounce(
function (row) {
if (this.accountDatelist.accountDate == "") {
this.$message({
message: "请选择日期!",
@ -834,57 +813,12 @@ export default {
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: "",
// });
// });
// },
1000,
{
leading: true, //
trailing: false, //,
}
),
//
handleDelete(row) {

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

@ -18,7 +18,9 @@
></JobSelectVerson>
<el-button
v-if="this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3"
v-if="
this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3
"
class="filter-item"
type="success"
icon="el-icon-check"
@ -36,6 +38,9 @@
>确认出库单</el-button
>
<el-button
v-if="
this.selectJobVersionValue == 2 || this.selectJobVersionValue == 3
"
class="filter-item"
size="mini"
type="warning"
@ -44,6 +49,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"
@ -51,6 +66,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
@ -202,6 +226,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",
@ -522,7 +547,8 @@ export default {
},
//
saveBills(row) {
saveBills: _.debounce(
function (row) {
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
@ -623,6 +649,12 @@ export default {
return;
}
},
1000,
{
leading: true, //
trailing: false, //,
}
),
//
HandleOutPutCancel() {
if (this.multipleSelection.length == 0) {
@ -653,7 +685,8 @@ export default {
});
},
//
CancelBills(row) {
CancelBills: _.debounce(
function (row) {
if (this.accountDatelist.accountDate == "") {
this.$message({
message: "请选择日期!",
@ -773,7 +806,12 @@ export default {
return;
}
},
1000,
{
leading: true, //
trailing: false, //,
}
),
//
handleDelete(row) {
var params = [];

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

@ -17,7 +17,9 @@
@value-change="JobVersionValue"
></JobSelectVerson>
<el-button
v-if="this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3"
v-if="
this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3
"
class="filter-item"
type="success"
icon="el-icon-check"
@ -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
@ -177,6 +201,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",
@ -430,7 +455,8 @@ 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;
@ -443,7 +469,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(
@ -521,48 +549,12 @@ export default {
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;
// });
// }
1000,
{
leading: true, //
trailing: false, //,
}
),
// },
//
@ -596,7 +588,8 @@ export default {
},
//
CancelBills(row) {
CancelBills: _.debounce(
function (row) {
if (this.accountDatelist.accountDate == "") {
this.$message({
message: "请选择日期!",
@ -710,58 +703,12 @@ export default {
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: "",
// });
// });
// },
1000,
{
leading: true, //
trailing: false, //,
}
),
//
handleDelete(row) {
var params = [];

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

@ -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;

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

@ -9,7 +9,9 @@
@value-change="JobVersionValue"
></JobSelectVerson>
<el-button
v-if="this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3"
v-if="
this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3
"
class="filter-item"
type="success"
icon="el-icon-check"
@ -27,6 +29,9 @@
>确认出库单</el-button
>
<el-button
v-if="
this.selectJobVersionValue == 2 || this.selectJobVersionValue == 3
"
class="filter-item"
size="mini"
type="warning"
@ -35,6 +40,16 @@
>取消出库(支持批量)
</el-button>
<el-button
v-else
disabled
class="filter-item"
size="mini"
type="warning"
icon="el-icon-download"
>取消出库(支持批量)
</el-button>
<el-button
v-if="this.selectJobVersionValue == 0"
class="filter-item"
size="mini"
type="danger"
@ -42,6 +57,15 @@
@click="handleDelete()"
>删除出库单
</el-button>
<el-button
v-else
disabled
class="filter-item"
size="mini"
type="danger"
icon="el-icon-download"
>删除出库单
</el-button>
<el-input
v-model="searchContent"
clearable
@ -169,6 +193,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",
@ -463,7 +488,8 @@ export default {
});
},
//
saveBills(row) {
saveBills: _.debounce(
function (row) {
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
@ -551,48 +577,15 @@ export default {
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;
// });
// }
// },
1000,
{
leading: true, //
trailing: false, //,
}
),
//
CancelBills(row) {
CancelBills: _.debounce(
function (row) {
if (this.accountDatelist.accountDate == "") {
this.$message({
message: "请选择日期!",
@ -706,58 +699,12 @@ export default {
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: "",
// });
// });
// },
1000,
{
leading: true, //
trailing: false, //,
}
),
//
handleDelete(row) {
var params = [];

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

@ -1,4 +1,4 @@
<!---明细数据-->
<!---一次性寄售销售结算-->
<template>
<div class="cr-body-content">
<flexbox class="content-header">
@ -10,7 +10,9 @@
></JobSelectVerson>
<el-button
v-if="this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3"
v-if="
this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3
"
class="filter-item"
type="success"
icon="el-icon-check"
@ -28,6 +30,9 @@
>确认出库单</el-button
>
<el-button
v-if="
this.selectJobVersionValue == 2 || this.selectJobVersionValue == 3
"
class="filter-item"
size="mini"
type="warning"
@ -36,6 +41,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"
@ -43,6 +58,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
@ -194,6 +218,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",
@ -533,7 +558,8 @@ 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;
@ -624,52 +650,15 @@ export default {
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;
// });
// }
// },
1000,
{
leading: true, //
trailing: false, //,
}
),
//
CancelBills(row) {
CancelBills: _.debounce(
function (row) {
if (this.accountDatelist.accountDate == "") {
this.$message({
message: "请选择日期!",
@ -783,58 +772,12 @@ export default {
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: "",
// });
// });
// },
1000,
{
leading: true, //
trailing: false, //,
}
),
//
handleDelete(row) {
var params = [];

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

@ -9,7 +9,9 @@
@value-change="JobVersionValue"
></JobSelectVerson>
<el-button
v-if="this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3"
v-if="
this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3
"
class="filter-item"
type="success"
icon="el-icon-check"
@ -27,6 +29,9 @@
>确认出库单</el-button
>
<el-button
v-if="
this.selectJobVersionValue == 2 || this.selectJobVersionValue == 3
"
class="filter-item"
size="mini"
type="warning"
@ -35,6 +40,16 @@
>取消出库(支持批量)
</el-button>
<el-button
v-else
disabled
class="filter-item"
size="mini"
type="warning"
icon="el-icon-download"
>取消出库(支持批量)
</el-button>
<el-button
v-if="this.selectJobVersionValue == 0"
class="filter-item"
size="mini"
type="danger"
@ -42,6 +57,15 @@
@click="handleDelete()"
>出库单删除
</el-button>
<el-button
v-else
disabled
class="filter-item"
size="mini"
type="danger"
icon="el-icon-download"
>出库单删除
</el-button>
<el-input
v-model="searchContent"
clearable
@ -153,9 +177,7 @@
<el-button type="text" @click="dialogFormVisible = false"
>取消</el-button
>
<el-button v-loading="formLoading" type="primary" @click="save()"
>确认</el-button
>
<el-button type="primary" @click="save()">确认</el-button>
</div>
</el-dialog>
</div>
@ -169,6 +191,7 @@ import CRMTableHead from "../../../components/CRMTableHead";
import { downloadFile } from "@/utils/crmindex.js";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
import moment from "moment";
import _ from "lodash";
export default {
name: "sendUnsettledDiffReport",
@ -372,7 +395,7 @@ export default {
logic: 0,
column: column,
action: 0,
value:this.selectJobVersionValue,
value: this.selectJobVersionValue,
};
this.listOutPutQuery.Filters.push(filter);
@ -475,7 +498,8 @@ export default {
},
//
CancelBills(row) {
CancelBills: _.debounce(
function (row) {
if (this.accountDatelist.accountDate == "") {
this.$message({
message: "请选择日期!",
@ -589,114 +613,13 @@ export default {
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) {
// if (this.multipleSelection.length == 0) {
// this.$message({
// message: "",
// type: "warning",
// });
// return;
// }
// var params = [];
// let myalert = ""; //使
// if (row) {
// //
// params.push(row.id);
// myalert = row.name;
// } else {
// //
// this.multipleSelection.forEach((element) => {
// let id = element.id;
// params.push(id);
// });
// myalert = "";
// }
// this.listOutPutQuery.version = this.customerInfo.version;
// this.listOutPutQuery.guids = params;
// this.listOutPutQuery.billNum = this.customerInfo.parentId;
// console.log("" + JSON.stringify(this.listOutPutQuery));
1000,
{
leading: true, //
trailing: false, //,
}
),
// this.$confirm("" + myalert + "?", "", {
// confirmButtonText: "",
// cancelButtonText: "",
// type: "warning",
// })
// .then(() => {
// this.$axios
// .posts(
// "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Cancel",
// this.listOutPutQuery
// )
// .then((response) => {
// const index = this.list.indexOf(row);
// this.$notify({
// title: "",
// message: "",
// type: "success",
// duration: 2000,
// });
// this.getList();
// });
// })
// .catch(() => {
// this.$message({
// type: "info",
// message: "",
// });
// });
// },
//
handleCreateBills() {
this.dialogFormVisible = true;
@ -710,7 +633,8 @@ export default {
this.getList();
},
//
saveBills(row) {
saveBills: _.debounce(
function (row) {
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
@ -803,6 +727,13 @@ export default {
return;
}
},
1000,
{
leading: true, //
trailing: false, //,
}
),
// saveBills(row) {
// this.listOutPutQuery.guids = [];
// this.listOutPutQuery.version = this.customerInfo.version;
@ -812,18 +743,28 @@ export default {
// message: "",
// type: "warning",
// });
// this.getList();
// return;
// //this.getList();
// } else {
// if (this.accountDatelist != "") {
// this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
// }
// //this.listOutPutQuery.accountDate = this.accountDatelist;
// this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
// console.log(
// "" + JSON.stringify(this.listOutPutQuery)
// );
// let myalert = "";
// var getAccountMonth = moment(this.accountDatelist.accountDate).format(
// "YYYY-MM"
// );
// let date = new Date();
// let currentMonth = moment(date).format("YYYY-MM");
// if (getAccountMonth < currentMonth) {
// myalert = "";
// this.$confirm("" + myalert + "?", "", {
// confirmButtonText: "",
// cancelButtonText: "",
// type: "warning",
// })
// .then(() => {
// this.$axios
// .posts(
// "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass",
@ -846,8 +787,47 @@ export default {
// .catch(() => {
// this.formLoading = false;
// });
// })
// .catch(() => {
// this.$message({
// type: "info",
// message: "",
// });
// this.formLoading = false;
// });
// } else if (getAccountMonth === currentMonth) {
// this.$axios
// .posts(
// "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass",
// 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;
// });
// } else {
// this.$message({
// type: "warning",
// message: "",
// });
// this.formLoading = false;
// return;
// }
// },
//
handleDelete(row) {
var params = [];

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

@ -10,7 +10,9 @@
></JobSelectVerson>
<el-button
v-if="this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3"
v-if="
this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3
"
class="filter-item"
type="success"
icon="el-icon-check"
@ -28,6 +30,9 @@
>确认出库单</el-button
>
<el-button
v-if="
this.selectJobVersionValue == 2 || this.selectJobVersionValue == 3
"
class="filter-item"
size="mini"
type="warning"
@ -36,6 +41,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"
@ -43,6 +58,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
@ -194,6 +218,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: "HQkboutput",
@ -536,7 +561,8 @@ export default {
this.formTitle = "创建出库单";
},
//
CancelBills(row) {
CancelBills: _.debounce(
function (row) {
if (this.accountDatelist.accountDate == "") {
this.$message({
message: "请选择日期!",
@ -650,59 +676,15 @@ export default {
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: "",
// });
// });
// },
1000,
{
leading: true, //
trailing: false, //,
}
),
//
saveBills(row) {
saveBills: _.debounce(
function (row) {
this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
@ -791,46 +773,12 @@ export default {
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;
// });
// }
// },
1000,
{
leading: true, //
trailing: false, //,
}
),
//
handleDelete(row) {
var params = [];

Loading…
Cancel
Save