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", "jsonlint": "1.6.3",
"jszip": "3.2.1", "jszip": "3.2.1",
"lockr": "^0.8.5", "lockr": "^0.8.5",
"lodash": "^4.17.21",
"moment": "^2.29.1", "moment": "^2.29.1",
"normalize.css": "^7.0.0", "normalize.css": "^7.0.0",
"nprogress": "0.2.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 type="text" @click="dialogAccounDateVisible = false"
>取消</el-button >取消</el-button
> >
<!-- <el-button @click="resetForm('formCount')">重置</el-button> --> <!--v-loading="formLoading" <el-button @click="resetForm('formCount')">重置</el-button> -->
<el-button v-loading="formLoading" type="primary" @click="saveDate" <el-button type="primary" @click="saveDate"
>确认</el-button >确认</el-button
> >
</div> </div>
@ -378,6 +378,7 @@ import moment from "moment";
import Lockr from "lockr"; import Lockr from "lockr";
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 _ from "lodash";
export default { export default {
name: "WMSOutputSumReport", name: "WMSOutputSumReport",
@ -462,6 +463,7 @@ export default {
MaxResultCount: 15, MaxResultCount: 15,
version: "", version: "",
state: 4, state: 4,
isDisable: false,
accountDate: undefined, accountDate: undefined,
type: undefined, type: undefined,
//materialGroup: undefined, //materialGroup: undefined,
@ -734,6 +736,7 @@ export default {
this.dataValue = ""; this.dataValue = "";
this.formTitle = "同步MWS至SAP"; this.formTitle = "同步MWS至SAP";
this.isEdit = false; this.isEdit = false;
this.isDisable = false;
this.form = {}; this.form = {};
this.dialogAccounDateVisible = true; this.dialogAccounDateVisible = true;
this.resultData = {}; this.resultData = {};
@ -784,10 +787,8 @@ export default {
}); });
}, },
//SAP //SAP
saveDate() { saveDate: _.debounce(
this.$refs.formCount.validate((valid) => { function () {
if (valid) {
this.formLoading = true;
this.resultData.errSize == 0; // this.resultData.errSize == 0; //
if (this.dataValue === "") { if (this.dataValue === "") {
this.$message.error("必需选择过账日期!"); this.$message.error("必需选择过账日期!");
@ -822,16 +823,74 @@ export default {
this.resultData.errSize = 1; //0 this.resultData.errSize = 1; //0
this.resultData.successMessage = "同步SAP失败!"; this.resultData.successMessage = "同步SAP失败!";
} }
this.formLoading = false;
this.dialogAccounDateVisible = false; this.dialogAccounDateVisible = false;
}) })
.catch(() => { .catch(() => {
this.formLoading = false;
this.dialogAccounDateVisible = 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() { async handleDownload() {
this.listLoading = true; this.listLoading = true;
@ -1023,8 +1082,8 @@ export default {
this.$refs[refName].resetFields(); this.$refs[refName].resetFields();
} }
this.searchContent = ""; this.searchContent = "";
this.searchContentSaleCode=""; this.searchContentSaleCode = "";
this.searchContentMaterialCode=""; this.searchContentMaterialCode = "";
this.getmaterialGroupValue = ""; this.getmaterialGroupValue = "";
this.selectType = ""; this.selectType = "";
this.listQuery.type = undefined; this.listQuery.type = undefined;

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

@ -10,7 +10,9 @@
></JobSelectVerson> ></JobSelectVerson>
<el-button <el-button
v-if="this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3" v-if="
this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3
"
class="filter-item" class="filter-item"
type="success" type="success"
icon="el-icon-check" icon="el-icon-check"
@ -28,6 +30,9 @@
>确认出库单</el-button >确认出库单</el-button
> >
<el-button <el-button
v-if="
this.selectJobVersionValue == 2 || this.selectJobVersionValue == 3
"
class="filter-item" class="filter-item"
size="mini" size="mini"
type="warning" type="warning"
@ -36,6 +41,16 @@
>取消出库(支持批量) >取消出库(支持批量)
</el-button> </el-button>
<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" class="filter-item"
size="mini" size="mini"
type="danger" type="danger"
@ -43,6 +58,15 @@
@click="handleDelete()" @click="handleDelete()"
>出库单删除 >出库单删除
</el-button> </el-button>
<el-button
v-else
disabled
class="filter-item"
size="mini"
type="danger"
icon="el-icon-download"
>出库单删除
</el-button>
<el-input <el-input
v-model="searchContent" v-model="searchContent"
clearable clearable
@ -170,6 +194,7 @@ 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"; import moment from "moment";
import _ from "lodash";
export default { export default {
name: "sendUnsettledDiffReport", name: "sendUnsettledDiffReport",
@ -452,7 +477,8 @@ export default {
}); });
}, },
// //
saveBills(row) { saveBills: _.debounce(
function (row) {
this.listOutPutQuery.guids = []; this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version; this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId; this.listOutPutQuery.billNum = this.customerInfo.parentId;
@ -473,12 +499,6 @@ export default {
); );
let date = new Date(); let date = new Date();
let currentMonth = moment(date).format("YYYY-MM"); let currentMonth = moment(date).format("YYYY-MM");
// console.log(
// ":" +
// JSON.stringify(getAccountMonth) +
// ":" +
// JSON.stringify(currentMonth)
// );
if (getAccountMonth < currentMonth) { if (getAccountMonth < currentMonth) {
myalert = "过账日期小于当前月份"; myalert = "过账日期小于当前月份";
this.$confirm("是否确认" + myalert + "?", "提示", { this.$confirm("是否确认" + myalert + "?", "提示", {
@ -547,6 +567,12 @@ export default {
return; return;
} }
}, },
1000,
{
leading: true, //
trailing: false, //,
}
),
// saveBills(row) { // saveBills(row) {
// this.listOutPutQuery.guids = []; // this.listOutPutQuery.guids = [];
// this.listOutPutQuery.version = this.customerInfo.version; // this.listOutPutQuery.version = this.customerInfo.version;
@ -557,13 +583,25 @@ export default {
// type: "warning", // type: "warning",
// }); // });
// return; // 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)); // 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 // this.$axios
// .posts( // .posts(
// "/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Pass", // "/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Pass",
@ -585,10 +623,49 @@ export default {
// .catch(() => { // .catch(() => {
// this.formLoading = false; // 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 == "") { if (this.accountDatelist.accountDate == "") {
this.$message({ this.$message({
message: "请选择日期!", message: "请选择日期!",
@ -701,6 +778,12 @@ export default {
return; return;
} }
}, },
1000,
{
leading: true, //
trailing: false, //,
}
),
// CancelBills(row) { // CancelBills(row) {
// if (this.accountDatelist.accountDate == "") { // if (this.accountDatelist.accountDate == "") {
// this.$message({ // this.$message({
@ -725,7 +808,61 @@ 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.$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 // this.$axios
// .posts( // .posts(
// "/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Cancel", // "/api/settleaccount/wmskanbanoutput/WmsKanbanOutPut-Cancel",
@ -751,6 +888,14 @@ export default {
// message: "", // 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-option>
</el-select> --> </el-select> -->
<el-button <el-button
v-if="this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3" v-if="
this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3
"
class="filter-item" class="filter-item"
type="success" type="success"
icon="el-icon-check" icon="el-icon-check"
@ -40,6 +42,9 @@
>确认出库单</el-button >确认出库单</el-button
> >
<el-button <el-button
v-if="
this.selectJobVersionValue == 2 || this.selectJobVersionValue == 3
"
class="filter-item" class="filter-item"
size="mini" size="mini"
type="warning" type="warning"
@ -48,6 +53,16 @@
>取消出库(支持批量) >取消出库(支持批量)
</el-button> </el-button>
<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" class="filter-item"
size="mini" size="mini"
type="danger" type="danger"
@ -55,6 +70,15 @@
@click="handleDelete()" @click="handleDelete()"
>整单删除 >整单删除
</el-button> </el-button>
<el-button
v-else
disabled
class="filter-item"
size="mini"
type="danger"
icon="el-icon-download"
>整单删除
</el-button>
<el-input <el-input
v-model="searchContent" v-model="searchContent"
clearable clearable
@ -224,6 +248,7 @@ 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"; import moment from "moment";
import _ from "lodash";
export default { export default {
name: "sendUnsettledDiffReport", name: "sendUnsettledDiffReport",
@ -554,7 +579,8 @@ export default {
this.formTitle = "创建出库单"; this.formTitle = "创建出库单";
}, },
// //
saveBills(row) { saveBills: _.debounce(
function (row) {
this.resultData.errSize == 0; // this.resultData.errSize == 0; //
this.listOutPutQuery.guids = []; this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version; this.listOutPutQuery.version = this.customerInfo.version;
@ -671,62 +697,15 @@ export default {
return; return;
} }
}, },
1000,
// saveBills(row) { {
// this.resultData.errSize == 0; // leading: true, //
// this.listOutPutQuery.guids = []; trailing: false, //,
// 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: _.debounce(
function (row) {
if (this.accountDatelist.accountDate == "") { if (this.accountDatelist.accountDate == "") {
this.$message({ this.$message({
message: "请选择日期!", message: "请选择日期!",
@ -834,57 +813,12 @@ export default {
return; return;
} }
}, },
// CancelBills(row) { 1000,
// if (this.accountDatelist.accountDate == "") { {
// this.$message({ leading: true, //
// message: "", trailing: false, //,
// 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) {

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

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

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

@ -17,7 +17,9 @@
@value-change="JobVersionValue" @value-change="JobVersionValue"
></JobSelectVerson> ></JobSelectVerson>
<el-button <el-button
v-if="this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3" v-if="
this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3
"
class="filter-item" class="filter-item"
type="success" type="success"
icon="el-icon-check" icon="el-icon-check"
@ -35,6 +37,9 @@
>确认出库单</el-button >确认出库单</el-button
> >
<el-button <el-button
v-if="
this.selectJobVersionValue == 2 || this.selectJobVersionValue == 3
"
class="filter-item" class="filter-item"
size="mini" size="mini"
type="warning" type="warning"
@ -43,6 +48,16 @@
>取消出库(支持批量) >取消出库(支持批量)
</el-button> </el-button>
<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" class="filter-item"
size="mini" size="mini"
type="danger" type="danger"
@ -50,6 +65,15 @@
@click="handleDelete()" @click="handleDelete()"
>出库单删除 >出库单删除
</el-button> </el-button>
<el-button
v-else
disabled
class="filter-item"
size="mini"
type="danger"
icon="el-icon-download"
>出库单删除
</el-button>
<el-input <el-input
v-model="searchContent" v-model="searchContent"
clearable clearable
@ -177,6 +201,7 @@ 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"; import moment from "moment";
import _ from "lodash";
export default { export default {
name: "sendUnsettledDiffReport", name: "sendUnsettledDiffReport",
@ -430,7 +455,8 @@ export default {
this.formTitle = "创建出库单"; this.formTitle = "创建出库单";
}, },
// //
saveBills(row) { saveBills: _.debounce(
function (row) {
this.listOutPutQuery.guids = []; this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version; this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId; this.listOutPutQuery.billNum = this.customerInfo.parentId;
@ -443,7 +469,9 @@ 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)
);
let myalert = ""; let myalert = "";
var getAccountMonth = moment(this.accountDatelist.accountDate).format( var getAccountMonth = moment(this.accountDatelist.accountDate).format(
@ -521,48 +549,12 @@ export default {
return; return;
} }
}, },
// saveBills(row) { 1000,
// this.listOutPutQuery.guids = []; {
// this.listOutPutQuery.version = this.customerInfo.version; leading: true, //
// this.listOutPutQuery.billNum = this.customerInfo.parentId; trailing: false, //,
// 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;
// });
// }
// }, // },
// //
@ -596,7 +588,8 @@ export default {
}, },
// //
CancelBills(row) { CancelBills: _.debounce(
function (row) {
if (this.accountDatelist.accountDate == "") { if (this.accountDatelist.accountDate == "") {
this.$message({ this.$message({
message: "请选择日期!", message: "请选择日期!",
@ -710,58 +703,12 @@ export default {
return; return;
} }
}, },
// CancelBills(row) { 1000,
// if (this.accountDatelist.accountDate == "") { {
// this.$message({ leading: true, //
// message: "", trailing: false, //,
// 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) {
var params = []; var params = [];

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

@ -17,7 +17,9 @@
>确认出库单</el-button >确认出库单</el-button
> --> > -->
<el-button <el-button
v-if="this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3" v-if="
this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3
"
class="filter-item" class="filter-item"
type="success" type="success"
icon="el-icon-check" icon="el-icon-check"
@ -35,6 +37,9 @@
>确认出库单</el-button >确认出库单</el-button
> >
<el-button <el-button
v-if="
this.selectJobVersionValue == 2 || this.selectJobVersionValue == 3
"
class="filter-item" class="filter-item"
size="mini" size="mini"
type="warning" type="warning"
@ -43,6 +48,16 @@
>取消出库(支持批量) >取消出库(支持批量)
</el-button> </el-button>
<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" class="filter-item"
size="mini" size="mini"
type="danger" type="danger"
@ -50,6 +65,15 @@
@click="handleDelete()" @click="handleDelete()"
>出库单删除 >出库单删除
</el-button> </el-button>
<el-button
v-else
disabled
class="filter-item"
size="mini"
type="danger"
icon="el-icon-download"
>出库单删除
</el-button>
<el-input <el-input
v-model="searchContent" v-model="searchContent"
clearable clearable
@ -161,9 +185,7 @@
<el-button type="text" @click="dialogFormVisible = false" <el-button type="text" @click="dialogFormVisible = false"
>取消</el-button >取消</el-button
> >
<el-button v-loading="formLoading" type="primary" @click="save()" <el-button type="primary" @click="save()">确认</el-button>
>确认</el-button
>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -177,6 +199,7 @@ 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"; import moment from "moment";
import _ from "lodash";
export default { export default {
name: "sendUnsettledDiffReport", name: "sendUnsettledDiffReport",
@ -410,7 +433,8 @@ export default {
}, },
// //
CancelBills(row) { CancelBills: _.debounce(
function (row) {
if (this.accountDatelist.accountDate == "") { if (this.accountDatelist.accountDate == "") {
this.$message({ this.$message({
message: "请选择日期!", message: "请选择日期!",
@ -524,6 +548,13 @@ export default {
return; return;
} }
}, },
1000,
{
leading: true, //
trailing: false, //,
}
),
// CancelBills(row) { // CancelBills(row) {
// if (this.accountDatelist.accountDate == "") { // if (this.accountDatelist.accountDate == "") {
// this.$message({ // this.$message({
@ -584,8 +615,9 @@ export default {
} }
this.formTitle = "创建出库单"; this.formTitle = "创建出库单";
}, },
// //()
saveBills(row) { saveBills: _.debounce(
function (row) {
this.listOutPutQuery.guids = []; this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version; this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId; this.listOutPutQuery.billNum = this.customerInfo.parentId;
@ -599,7 +631,9 @@ 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)
);
let myalert = ""; let myalert = "";
var getAccountMonth = moment(this.accountDatelist.accountDate).format( var getAccountMonth = moment(this.accountDatelist.accountDate).format(
@ -631,10 +665,10 @@ export default {
this.accountDatelist.accountDate = ""; this.accountDatelist.accountDate = "";
this.dialogFormVisible = false; this.dialogFormVisible = false;
this.getList(); this.getList();
this.formLoading = false; //this.formLoading = false;
}) })
.catch(() => { .catch(() => {
this.formLoading = false; //this.formLoading = false;
}); });
}) })
.catch(() => { .catch(() => {
@ -642,7 +676,7 @@ export default {
type: "info", type: "info",
message: "已取消操作", message: "已取消操作",
}); });
this.formLoading = false; //this.formLoading = false;
}); });
} else if (getAccountMonth === currentMonth) { } else if (getAccountMonth === currentMonth) {
this.$axios this.$axios
@ -661,20 +695,28 @@ export default {
this.accountDatelist.accountDate = ""; this.accountDatelist.accountDate = "";
this.dialogFormVisible = false; this.dialogFormVisible = false;
this.getList(); this.getList();
this.formLoading = false; //this.formLoading = false;
}) })
.catch(() => { .catch(() => {
this.formLoading = false; // this.formLoading = false;
}); });
} else { } else {
this.$message({ this.$message({
type: "warning", type: "warning",
message: "选择的过账日期不能大于当前月份!", message: "选择的过账日期不能大于当前月份!",
}); });
this.formLoading = false; //this.formLoading = false;
return; return;
} }
}, },
1000,
{
leading: true, //
trailing: false, //,
}
),
//
// saveBills(row) { // saveBills(row) {
// this.listOutPutQuery.guids = []; // this.listOutPutQuery.guids = [];
// this.listOutPutQuery.version = this.customerInfo.version; // this.listOutPutQuery.version = this.customerInfo.version;
@ -686,15 +728,55 @@ export default {
// }); // });
// //this.getList(); // //this.getList();
// return; // 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)
// );
// 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",
@ -716,8 +798,16 @@ export default {
// .catch(() => { // .catch(() => {
// this.formLoading = false; // this.formLoading = false;
// }); // });
// } else {
// this.$message({
// type: "warning",
// message: "",
// });
// this.formLoading = false;
// return;
// } // }
// }, // },
// //
handleCreateBills_old(row) { handleCreateBills_old(row) {
if (this.multipleSelection.length == 0) { if (this.multipleSelection.length == 0) {
@ -947,10 +1037,9 @@ export default {
this.list = response.items; this.list = response.items;
//alert(JSON.stringify(response.Items)) //alert(JSON.stringify(response.Items))
this.totalCount = response.totalCount; this.totalCount = response.totalCount;
setTimeout(() => {
// //
this.listLoading = false; this.listLoading = false;
}, 500);
}) })
.catch(() => { .catch(() => {
this.listLoading = false; this.listLoading = false;

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

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

143
vue/src/views/ux/vw/dataInput/OnetimeSale/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">
@ -10,7 +10,9 @@
></JobSelectVerson> ></JobSelectVerson>
<el-button <el-button
v-if="this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3" v-if="
this.selectJobVersionValue == 0 || this.selectJobVersionValue == 3
"
class="filter-item" class="filter-item"
type="success" type="success"
icon="el-icon-check" icon="el-icon-check"
@ -28,6 +30,9 @@
>确认出库单</el-button >确认出库单</el-button
> >
<el-button <el-button
v-if="
this.selectJobVersionValue == 2 || this.selectJobVersionValue == 3
"
class="filter-item" class="filter-item"
size="mini" size="mini"
type="warning" type="warning"
@ -36,6 +41,16 @@
>取消出库(支持批量) >取消出库(支持批量)
</el-button> </el-button>
<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" class="filter-item"
size="mini" size="mini"
type="danger" type="danger"
@ -43,6 +58,15 @@
@click="handleDelete()" @click="handleDelete()"
>删除出库单 >删除出库单
</el-button> </el-button>
<el-button
v-else
disabled
class="filter-item"
size="mini"
type="danger"
icon="el-icon-download"
>删除出库单
</el-button>
<el-input <el-input
v-model="searchContent" v-model="searchContent"
clearable clearable
@ -194,6 +218,7 @@ 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"; import moment from "moment";
import _ from "lodash";
export default { export default {
name: "sendUnsettledDiffReport", name: "sendUnsettledDiffReport",
@ -533,7 +558,8 @@ export default {
this.formTitle = "创建出库单"; this.formTitle = "创建出库单";
}, },
// //
saveBills(row) { saveBills: _.debounce(
function (row) {
this.listOutPutQuery.guids = []; this.listOutPutQuery.guids = [];
this.listOutPutQuery.version = this.customerInfo.version; this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId; this.listOutPutQuery.billNum = this.customerInfo.parentId;
@ -624,52 +650,15 @@ export default {
return; return;
} }
}, },
// saveBills(row) { 1000,
// this.listOutPutQuery.guids = []; {
// this.listOutPutQuery.version = this.customerInfo.version; leading: true, //
// this.listOutPutQuery.billNum = this.customerInfo.parentId; trailing: false, //,
// 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: _.debounce(
function (row) {
if (this.accountDatelist.accountDate == "") { if (this.accountDatelist.accountDate == "") {
this.$message({ this.$message({
message: "请选择日期!", message: "请选择日期!",
@ -783,58 +772,12 @@ export default {
return; return;
} }
}, },
// CancelBills(row) { 1000,
// if (this.accountDatelist.accountDate == "") { {
// this.$message({ leading: true, //
// message: "", trailing: false, //,
// 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) {
var params = []; var params = [];

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

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

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

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

Loading…
Cancel
Save