Browse Source

前端-所有大众和红旗的出库单加上导出功能

branch_ccpg_220107
44673626 3 years ago
parent
commit
0dba32c7d9
  1. 32
      vue/src/router/modules/vw_menu.js
  2. 2
      vue/src/views/ux/billManage/KanbanUnSettled/index.vue
  3. 210
      vue/src/views/ux/billManage/kanbanOutOrder/detail.vue
  4. 24
      vue/src/views/ux/billManage/kanbanWithOutOrder/detail.vue
  5. 109
      vue/src/views/ux/billManage/sparepartOutOrder/detail.vue
  6. 208
      vue/src/views/ux/billManage/sparepartOutOrder90/detail.vue
  7. 30
      vue/src/views/ux/billManage/vwOutOrder/detail.vue
  8. 4
      vue/src/views/ux/billManage/vwOutOrder/index.vue
  9. 108
      vue/src/views/ux/vw/dataInput/hq_f_outorder/detail.vue
  10. 295
      vue/src/views/ux/vw/dataInput/hq_f_outorder_chickout/detail.vue
  11. 112
      vue/src/views/ux/vw/dataInput/hq_h_checkout/detail.vue
  12. 283
      vue/src/views/ux/vw/dataInput/hq_h_outorder/detail.vue
  13. 104
      vue/src/views/ux/vw/dataInput/hq_kb_output/detail.vue
  14. 328
      vue/src/views/ux/vw/dataInput/hq_m_checkout/detail.vue
  15. 218
      vue/src/views/ux/vw/dataInput/hq_m_outorder/detail.vue
  16. 110
      vue/src/views/ux/vw/dataInput/hq_y_outorder/detail.vue

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

@ -167,16 +167,16 @@ const vwMenudataRouter = {
icon: '看板' icon: '看板'
} }
}, },
// { {
// path: '/kbunsettle', path: '/kbunsettle',
// component: () => import('@/views/ux/billManage/KanbanUnSettled'), component: () => import('@/views/ux/billManage/KanbanUnSettled'),
// name: 'KanbanUnSettled',//命名路由 name: 'KanbanUnSettled',//命名路由
// meta: { meta: {
// title: '看板未结输出', title: '看板未结输出',
// roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色) roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色)
// icon: '看板' icon: '看板'
// } }
// }, },
// { // {
// path: '/kbwithoutcode', // path: '/kbwithoutcode',
// component: () => import('@/views/ux/billManage/kanBanWithOutCode'), // component: () => import('@/views/ux/billManage/kanBanWithOutCode'),
@ -204,7 +204,17 @@ const vwMenudataRouter = {
meta: { meta: {
title: '备件数据调整输出', title: '备件数据调整输出',
roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色) roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色)
icon: '供货' icon: '工厂'
}
},
{
path: '/WmsOutputSum',
component: () => import('@/views/ux/billManage/WmsOutputSumExport'),
name: 'WmsOutputSumExport',//命名路由
meta: {
title: 'WMS统计汇总报表',
roles: ['SettleAccount.Reports'],//控制页面角色(可以设置多个角色)
icon: '零件'
} }
} }
] ]

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

@ -893,7 +893,7 @@ export default {
"大众看板未结明细-导出条件:" + JSON.stringify(this.listExportQuery) "大众看板未结明细-导出条件:" + JSON.stringify(this.listExportQuery)
); );
this.$axios this.$axios
.posts( .gets(
"/api/settleaccount/ReportMakeService/KanbanUnSettledExport", "/api/settleaccount/ReportMakeService/KanbanUnSettledExport",
this.listExportQuery this.listExportQuery
) )

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

@ -2,14 +2,6 @@
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
<!-- <el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>导出全部
</el-button> -->
<JobSelectVerson <JobSelectVerson
:options="JobVersionList" :options="JobVersionList"
style="width: 150px; margin-left: -10px" style="width: 150px; margin-left: -10px"
@ -56,6 +48,14 @@
@click="handleFilter" @click="handleFilter"
>搜索 >搜索
</el-button> </el-button>
<el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>全部导出
</el-button>
<!--表格头组件filter查询--> <!--表格头组件filter查询-->
<c-r-m-table-head <c-r-m-table-head
ref="crmTableHead" ref="crmTableHead"
@ -145,9 +145,7 @@
<el-button <el-button
v-loading="formLoading" v-loading="formLoading"
type="primary" type="primary"
@click="handleCreateBills()" @click="handleCreateBills()"
>确认</el-button >确认</el-button
> >
</div> </div>
@ -183,7 +181,7 @@ export default {
erpMaterialCode: [ erpMaterialCode: [
{ required: true, message: "必须输入!", trigger: "blur" }, { required: true, message: "必须输入!", trigger: "blur" },
], ],
accountDate: [ accountDate: [
{ required: true, message: "日期必须输入!", trigger: "blur" }, { required: true, message: "日期必须输入!", trigger: "blur" },
], ],
}, },
@ -229,7 +227,7 @@ export default {
billNum: "", billNum: "",
}, },
listOutPutQuery: { listOutPutQuery: {
accountDate:"", accountDate: "",
version: "", version: "",
guids: "", guids: "",
billNum: "", billNum: "",
@ -237,8 +235,8 @@ export default {
listDeleteQuery: { listDeleteQuery: {
billNum: "", billNum: "",
}, },
accountDatelist:{ accountDatelist: {
accountDate:"" accountDate: "",
}, },
page: 1, page: 1,
JobversionValue: "", JobversionValue: "",
@ -305,6 +303,54 @@ export default {
}, },
}, },
methods: { methods: {
//
handleDownload(command) {
this.listLoading = true;
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"大众备件出库单导出:" + JSON.stringify(this.listOutPutQuery)
);
this.$axios
.posts(
"/api/settleaccount/wmskanbanoutput/Export",
this.listOutPutQuery
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
// //
JobVersionValue(params) { JobVersionValue(params) {
// //
@ -378,18 +424,18 @@ export default {
}, },
print() { print() {
this.dialogFormVisible = true; this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) { if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields(); this.$refs["accountDatelist"].resetFields();
} }
}, },
// //
handleCreateBills(row) { handleCreateBills(row) {
this.dialogFormVisible = true; this.dialogFormVisible = true;
this.listLoading = true; this.listLoading = true;
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;
if (this.accountDatelist.accountDate == "") { if (this.accountDatelist.accountDate == "") {
this.$message({ this.$message({
message: "请选择日期!", message: "请选择日期!",
type: "warning", type: "warning",
@ -399,8 +445,8 @@ export default {
//this.getList(); //this.getList();
} else { } else {
if (this.accountDatelist != "") { if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
} }
//this.listOutPutQuery.accountDate = this.accountDatelist; //this.listOutPutQuery.accountDate = this.accountDatelist;
console.log( console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
@ -430,48 +476,51 @@ export default {
} }
}, },
// //
handleDelete(row){ handleDelete(row) {
var params = []; var params = [];
let myalert = ""; //使 let myalert = ""; //使
if (row) { if (row) {
// //
params.push(row.id); params.push(row.id);
myalert = row.name; myalert = row.name;
} else { } else {
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let id = element.id; let id = element.id;
params.push(id); params.push(id);
}); });
myalert = "选中项"; myalert = "选中项";
} }
this.listDeleteQuery.billNum = this.listQuery.billNum ; this.listDeleteQuery.billNum = this.listQuery.billNum;
console.log("单据号:" + JSON.stringify(this.listDeleteQuery)); console.log("单据号:" + JSON.stringify(this.listDeleteQuery));
this.$confirm("是否删除" + myalert + "?", "提示", { this.$confirm("是否删除" + myalert + "?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
this.$axios this.$axios
.posts("/api/settleaccount/wmskanbanoutput/WmsOutPutDelete", this.listDeleteQuery) .posts(
.then((response) => { "/api/settleaccount/wmskanbanoutput/WmsOutPutDelete",
const index = this.list.indexOf(row); this.listDeleteQuery
this.$notify({ )
title: "成功", .then((response) => {
message: "删除成功", const index = this.list.indexOf(row);
type: "success", this.$notify({
duration: 2000, title: "成功",
}); message: "删除成功",
this.getList(); type: "success",
duration: 2000,
}); });
}) this.getList();
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
}); });
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
}); });
});
}, },
/** 刷新列表 */ /** 刷新列表 */
handleHandle(data) { handleHandle(data) {
@ -497,48 +546,7 @@ export default {
this.showExcelImport = false; this.showExcelImport = false;
this.getList(); this.getList();
}, },
async handleDownload() {
//await this.getDownBoms();
this.listLoading = true;
this.$axios
.gets(
"/api/settleaccount/bt-kb-not-consign/export/" +
this.customerInfo.parentId
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
getList(data) { getList(data) {
this.listLoading = true; this.listLoading = true;
if (data != undefined) { if (data != undefined) {

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

@ -60,6 +60,14 @@
icon="el-icon-search" icon="el-icon-search"
@click="handleFilter" @click="handleFilter"
>搜索 >搜索
</el-button>
<el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>全部导出
</el-button> </el-button>
<!--表格头组件filter查询--> <!--表格头组件filter查询-->
<c-r-m-table-head <c-r-m-table-head
@ -648,13 +656,19 @@ export default {
this.showExcelImport = false; this.showExcelImport = false;
this.getList(); this.getList();
}, },
async handleDownload() { //
//await this.getDownBoms(); handleDownload(command) {
this.listLoading = true; this.listLoading = true;
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"大众无条码看板出库单-导出:" + JSON.stringify(this.listOutPutQuery)
);
this.$axios this.$axios
.gets( .posts(
"/api/settleaccount/bt-kb-not-consign/export/" + "/api/settleaccount/wmskanbanoutputextend/Export",
this.customerInfo.parentId this.listOutPutQuery
) )
.then((res) => { .then((res) => {
let fileNameOfProject = res; let fileNameOfProject = res;

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

@ -57,6 +57,14 @@
@click="handleFilter" @click="handleFilter"
>搜索 >搜索
</el-button> </el-button>
<el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>全部导出
</el-button>
<!--表格头组件filter查询--> <!--表格头组件filter查询-->
<c-r-m-table-head <c-r-m-table-head
ref="crmTableHead" ref="crmTableHead"
@ -320,11 +328,11 @@ export default {
}); });
// tempsTabs.push({ label: "", prop: "wmsBillNum", width: 100 }); // tempsTabs.push({ label: "", prop: "wmsBillNum", width: 100 });
// tempsTabs.push({ tempsTabs.push({
// label: "", label: "采购订单号",
// prop: "orderBillNum", prop: "orderBillNum",
// width: 150, width: 150,
// }); });
tempsTabs.push({ tempsTabs.push({
label: "Sap编码", label: "Sap编码",
prop: "materialCode", prop: "materialCode",
@ -343,6 +351,54 @@ export default {
}, },
}, },
methods: { methods: {
//
handleDownload(command) {
this.listLoading = true;
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"大众备件出库单导出:" + JSON.stringify(this.listOutPutQuery)
);
this.$axios
.posts(
"/api/settleaccount/wmsSharePartoutput/Export",
this.listOutPutQuery
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
// //
handleEdit(index, row) { handleEdit(index, row) {
console.log(index, row); console.log(index, row);
@ -589,48 +645,7 @@ export default {
this.showExcelImport = false; this.showExcelImport = false;
this.getList(); this.getList();
}, },
async handleDownload() {
//await this.getDownBoms();
this.listLoading = true;
this.$axios
.gets(
"/api/settleaccount/bt-kb-not-consign/export/" +
this.customerInfo.parentId
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
getList(data) { getList(data) {
this.listLoading = true; this.listLoading = true;
if (data != undefined) { if (data != undefined) {

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

@ -56,6 +56,14 @@
@click="handleFilter" @click="handleFilter"
>搜索 >搜索
</el-button> </el-button>
<el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>全部导出
</el-button>
<!--表格头组件filter查询--> <!--表格头组件filter查询-->
<c-r-m-table-head <c-r-m-table-head
ref="crmTableHead" ref="crmTableHead"
@ -119,7 +127,7 @@
:title="formTitle" :title="formTitle"
width="700px" width="700px"
> >
<el-form <el-form
ref="accountDatelist" ref="accountDatelist"
:inline="true" :inline="true"
:model="accountDatelist" :model="accountDatelist"
@ -145,9 +153,7 @@
<el-button <el-button
v-loading="formLoading" v-loading="formLoading"
type="primary" type="primary"
@click="handleCreateBills()" @click="handleCreateBills()"
>确认</el-button >确认</el-button
> >
</div> </div>
@ -183,7 +189,7 @@ export default {
erpMaterialCode: [ erpMaterialCode: [
{ required: true, message: "必须输入!", trigger: "blur" }, { required: true, message: "必须输入!", trigger: "blur" },
], ],
accountDate: [ accountDate: [
{ required: true, message: "日期必须输入!", trigger: "blur" }, { required: true, message: "日期必须输入!", trigger: "blur" },
], ],
}, },
@ -232,7 +238,7 @@ export default {
version: "", version: "",
guids: "", guids: "",
billNum: "", billNum: "",
accountDate:"" accountDate: "",
}, },
listDeleteQuery: { listDeleteQuery: {
billNum: "", billNum: "",
@ -247,9 +253,9 @@ export default {
showExcelImport: false, showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230, tableHeight: document.documentElement.clientHeight - 230,
isEdit: false, isEdit: false,
accountDatelist:{ accountDatelist: {
accountDate:"" accountDate: "",
} },
}; };
}, },
mounted() { mounted() {
@ -303,6 +309,54 @@ export default {
}, },
}, },
methods: { methods: {
//
handleDownload(command) {
this.listLoading = true;
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"大众备件调整数据出库单导出:" + JSON.stringify(this.listOutPutQuery)
);
this.$axios
.posts(
"/api/settleaccount/wmsSharePart90output/Export",
this.listOutPutQuery
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
// //
JobVersionValue(params) { JobVersionValue(params) {
// //
@ -374,20 +428,20 @@ export default {
}); });
}); });
}, },
print() { print() {
this.dialogFormVisible = true; this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) { if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields(); this.$refs["accountDatelist"].resetFields();
} }
}, },
// //
handleCreateBills(row) { handleCreateBills(row) {
this.dialogFormVisible = true; this.dialogFormVisible = true;
this.listLoading = true; this.listLoading = true;
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;
if (this.accountDatelist.accountDate == "") { if (this.accountDatelist.accountDate == "") {
this.$message({ this.$message({
message: "请选择日期!", message: "请选择日期!",
type: "warning", type: "warning",
@ -397,8 +451,8 @@ export default {
//this.getList(); //this.getList();
} else { } else {
if (this.accountDatelist != "") { if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
} }
//this.listOutPutQuery.accountDate = this.accountDatelist; //this.listOutPutQuery.accountDate = this.accountDatelist;
console.log( console.log(
"全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) "全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
@ -428,48 +482,51 @@ export default {
} }
}, },
// //
handleDelete(row){ handleDelete(row) {
var params = []; var params = [];
let myalert = ""; //使 let myalert = ""; //使
if (row) { if (row) {
// //
params.push(row.id); params.push(row.id);
myalert = row.name; myalert = row.name;
} else { } else {
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let id = element.id; let id = element.id;
params.push(id); params.push(id);
}); });
myalert = "选中项"; myalert = "选中项";
} }
this.listDeleteQuery.billNum = this.listQuery.billNum ; this.listDeleteQuery.billNum = this.listQuery.billNum;
console.log("单据号:" + JSON.stringify(this.listDeleteQuery)); console.log("单据号:" + JSON.stringify(this.listDeleteQuery));
this.$confirm("是否删除" + myalert + "?", "提示", { this.$confirm("是否删除" + myalert + "?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
this.$axios this.$axios
.posts("/api/settleaccount/wmsSharePart90output/WmsOutPutDelete", this.listDeleteQuery) .posts(
.then((response) => { "/api/settleaccount/wmsSharePart90output/WmsOutPutDelete",
const index = this.list.indexOf(row); this.listDeleteQuery
this.$notify({ )
title: "成功", .then((response) => {
message: "删除成功", const index = this.list.indexOf(row);
type: "success", this.$notify({
duration: 2000, title: "成功",
}); message: "删除成功",
this.getList(); type: "success",
duration: 2000,
}); });
}) this.getList();
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
}); });
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
}); });
});
}, },
/** 刷新列表 */ /** 刷新列表 */
handleHandle(data) { handleHandle(data) {
@ -495,48 +552,7 @@ export default {
this.showExcelImport = false; this.showExcelImport = false;
this.getList(); this.getList();
}, },
async handleDownload() {
//await this.getDownBoms();
this.listLoading = true;
this.$axios
.gets(
"/api/settleaccount/bt-kb-not-consign/export/" +
this.customerInfo.parentId
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
getList(data) { getList(data) {
this.listLoading = true; this.listLoading = true;
if (data != undefined) { if (data != undefined) {

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

@ -2,14 +2,6 @@
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
<!-- <el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>导出全部
</el-button> -->
<JobSelectVerson <JobSelectVerson
:options="JobVersionList" :options="JobVersionList"
style="width: 150px; margin-left: -10px" style="width: 150px; margin-left: -10px"
@ -56,6 +48,14 @@
@click="handleFilter" @click="handleFilter"
>搜索 >搜索
</el-button> </el-button>
<el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>全部导出
</el-button>
<!--表格头组件filter查询--> <!--表格头组件filter查询-->
<c-r-m-table-head <c-r-m-table-head
ref="crmTableHead" ref="crmTableHead"
@ -592,14 +592,15 @@ export default {
this.showExcelImport = false; this.showExcelImport = false;
this.getList(); this.getList();
}, },
async handleDownload() { //
//await this.getDownBoms(); handleDownload(command) {
this.listLoading = true; this.listLoading = true;
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log("大众准时化出库单导出:" + JSON.stringify(this.listOutPutQuery));
this.$axios this.$axios
.gets( .posts("/api/settleaccount/wmsjitoutput/Export", this.listOutPutQuery)
"/api/settleaccount/bt-kb-not-consign/export/" +
this.customerInfo.parentId
)
.then((res) => { .then((res) => {
let fileNameOfProject = res; let fileNameOfProject = res;
this.$axios this.$axios
@ -634,6 +635,7 @@ export default {
}); });
}); });
}, },
getList(data) { getList(data) {
this.listLoading = true; this.listLoading = true;
if (data != undefined) { if (data != undefined) {

4
vue/src/views/ux/billManage/vwOutOrder/index.vue

@ -322,11 +322,11 @@ export default {
// //
handleDrawerOpen(param) { handleDrawerOpen(param) {
this.drawer = true; this.drawer = true;
var parentId = param.billNum; // var billnum = param.billNum; //
var version = param.version; // var version = param.version; //
this.customerInfos = [ this.customerInfos = [
{ {
ParentId: parentId, ParentId: billnum,
Version: version, Version: version,
}, },
]; ];

108
vue/src/views/ux/vw/dataInput/hq_f_outorder/detail.vue

@ -2,14 +2,7 @@
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
<!-- <el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>导出全部
</el-button> -->
<JobSelectVerson <JobSelectVerson
:options="JobVersionList" :options="JobVersionList"
style="width: 150px; margin-left: -10px" style="width: 150px; margin-left: -10px"
@ -55,6 +48,14 @@
icon="el-icon-search" icon="el-icon-search"
@click="handleFilter" @click="handleFilter"
>搜索 >搜索
</el-button>
<el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>全部导出
</el-button> </el-button>
<!--表格头组件filter查询--> <!--表格头组件filter查询-->
<c-r-m-table-head <c-r-m-table-head
@ -312,6 +313,54 @@ export default {
}, },
}, },
methods: { methods: {
//
handleDownload(command) {
this.listLoading = true;
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"红旗F平台出库单导出:" + JSON.stringify(this.listOutPutQuery)
);
this.$axios
.posts(
"/api/settleaccount/WMSHQFKanbanoutput/Export",
this.listOutPutQuery
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
// //
JobVersionValue(params) { JobVersionValue(params) {
// //
@ -505,48 +554,7 @@ export default {
this.showExcelImport = false; this.showExcelImport = false;
this.getList(); this.getList();
}, },
async handleDownload() {
//await this.getDownBoms();
this.listLoading = true;
this.$axios
.gets(
"/api/settleaccount/bt-kb-not-consign/export/" +
this.customerInfo.parentId
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
getList(data) { getList(data) {
this.listLoading = true; this.listLoading = true;
if (data != undefined) { if (data != undefined) {

295
vue/src/views/ux/vw/dataInput/hq_f_outorder_chickout/detail.vue

@ -2,14 +2,6 @@
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
<!-- <el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>导出全部
</el-button> -->
<JobSelectVerson <JobSelectVerson
:options="JobVersionList" :options="JobVersionList"
style="width: 150px; margin-left: -10px" style="width: 150px; margin-left: -10px"
@ -57,6 +49,14 @@
@click="handleFilter" @click="handleFilter"
>搜索 >搜索
</el-button> </el-button>
<el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>全部导出
</el-button>
<!--表格头组件filter查询--> <!--表格头组件filter查询-->
<c-r-m-table-head <c-r-m-table-head
ref="crmTableHead" ref="crmTableHead"
@ -102,7 +102,7 @@
{{ scope.column.label }} {{ scope.column.label }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="outPutQty" prop="outPutQty"
label="出库数量" label="出库数量"
v-model="outPutQtylist.outPutQty" v-model="outPutQtylist.outPutQty"
@ -123,15 +123,16 @@
width="100" width="100"
> >
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center">
<template slot-scope="list"> <template slot-scope="list">
<el-button <el-button
type="primary" type="primary"
v-if="list.$index=1" v-if="(list.$index = 1)"
@click="handle(list.row)" @click="handle(list.row)"
>确定</el-button> >确定</el-button
</template> >
</el-table-column> </template>
</el-table-column>
</el-table> </el-table>
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -262,9 +263,9 @@ export default {
version: "", version: "",
guids: "", guids: "",
billNum: "", billNum: "",
accountDate:"", accountDate: "",
branchId:"", branchId: "",
outPutQty:"", outPutQty: "",
}, },
listDeleteQuery: { listDeleteQuery: {
billNum: "", billNum: "",
@ -282,7 +283,7 @@ export default {
accountDatelist: { accountDatelist: {
accountDate: "", accountDate: "",
}, },
outPutQtylist: { outPutQtylist: {
outPutQty: "", outPutQty: "",
taskId: "", taskId: "",
}, },
@ -348,49 +349,94 @@ export default {
}, },
}, },
methods: { methods: {
// //
handleEdit(index, row) { handleDownload(command) {
console.log(index, row); this.listLoading = true;
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
}, console.log(
handle(row){ "红旗F备件出库单导出:" + JSON.stringify(this.listOutPutQuery)
this.multipleSelection.forEach((element) => { );
let outPutQty=element.outPutQty; this.$axios
.posts(
"/api/settleaccount/wmsHQFSharePartoutput/Export",
this.listOutPutQuery
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
}); });
},
//
handleEdit(index, row) {
console.log(index, row);
},
handle(row) {
this.multipleSelection.forEach((element) => {
let outPutQty = element.outPutQty;
});
if (row.outPutQty > row.stockQty) { if (row.outPutQty > row.stockQty) {
this.$message({ this.$message({
message: "出库数量大于寄售库存,不允许出库!", message: "出库数量大于寄售库存,不允许出库!",
type: "warning", type: "warning",
}); });
} else { } else {
if (row.branchId != "") { if (row.branchId != "") {
this.listOutPutQuery.branchId = row.branchId; this.listOutPutQuery.branchId = row.branchId;
} }
if (row.outPutQty != "") { if (row.outPutQty != "") {
this.listOutPutQuery.outPutQty = row.outPutQty; this.listOutPutQuery.outPutQty = row.outPutQty;
} }
console.log( console.log("结算数量按钮:" + JSON.stringify(this.listOutPutQuery));
"结算数量按钮:" + JSON.stringify(this.listOutPutQuery) //"taskId": "3fa85f64-5717-4562-b3fc-2c963f66afa6","outPutQty": 0
); this.$axios
//"taskId": "3fa85f64-5717-4562-b3fc-2c963f66afa6","outPutQty": 0 .posts(
this.$axios "/api/settleaccount/wmsHQFSharePartoutput/WmsSharePartOutPutModify",
.posts( this.listOutPutQuery
"/api/settleaccount/wmsHQFSharePartoutput/WmsSharePartOutPutModify", )
this.listOutPutQuery .then((response) => {
) const index = this.list.indexOf(row);
.then((response) => { this.$notify({
const index = this.list.indexOf(row); title: "成功",
this.$notify({ message: "操作成功",
title: "成功", type: "success",
message: "操作成功", duration: 2000,
type: "success", });
duration: 2000, this.getList();
}); })
this.getList(); .catch(() => {
}) this.listLoading = false;
.catch(() => { });
this.listLoading = false;
});
} }
}, },
// //
@ -466,11 +512,11 @@ export default {
}, },
print() { print() {
this.dialogFormVisible = true; this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) { if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields(); this.$refs["accountDatelist"].resetFields();
} }
}, },
handleCreateBillsEnd(row) { handleCreateBillsEnd(row) {
this.dialogFormVisible = false; this.dialogFormVisible = false;
this.getList(); this.getList();
}, },
@ -490,35 +536,35 @@ export default {
return; return;
//this.getList(); //this.getList();
} else { } else {
if (this.accountDatelist != "") { if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
} }
//this.listOutPutQuery.accountDate = this.accountDatelist; //this.listOutPutQuery.accountDate = this.accountDatelist;
console.log( console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
); );
this.$axios this.$axios
.posts( .posts(
"/api/settleaccount/wmsHQFSharePartoutput/WmsSharePartOutPut-Pass", "/api/settleaccount/wmsHQFSharePartoutput/WmsSharePartOutPut-Pass",
this.listOutPutQuery this.listOutPutQuery
) )
.then((response) => { .then((response) => {
const index = this.list.indexOf(row); const index = this.list.indexOf(row);
this.$notify({ this.$notify({
title: "成功", title: "成功",
message: "生成成功", message: "生成成功",
type: "success", type: "success",
duration: 2000, duration: 2000,
}); });
this.accountDatelist.accountDate = ""; this.accountDatelist.accountDate = "";
this.dialogFormVisible = false; this.dialogFormVisible = false;
this.getList(); this.getList();
this.listLoading = false; this.listLoading = false;
}) })
.catch(() => { .catch(() => {
this.listLoading = false; this.listLoading = false;
}); });
} }
}, },
// //
@ -540,32 +586,30 @@ export default {
// if (this.listDeleteQuery != "") { // if (this.listDeleteQuery != "") {
// this.listQuery.billNum = this.listDeleteQuery.billNum; // this.listQuery.billNum = this.listDeleteQuery.billNum;
// } // }
this.listDeleteQuery.billNum = this.listQuery.billNum ; this.listDeleteQuery.billNum = this.listQuery.billNum;
console.log("单据号:" + JSON.stringify(this.listDeleteQuery)); console.log("单据号:" + JSON.stringify(this.listDeleteQuery));
this.$confirm("是否删除" + myalert + "?", "提示", { this.$confirm("是否删除" + myalert + "?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) }).then(() => {
.then(() => { this.$axios
this.$axios .posts(
.posts( "/api/settleaccount/wmsHQFSharePartoutput/WmsOutPutDelete",
"/api/settleaccount/wmsHQFSharePartoutput/WmsOutPutDelete", this.listDeleteQuery
this.listDeleteQuery )
)
.then((response) => { .then((response) => {
const index = this.list.indexOf(row); const index = this.list.indexOf(row);
this.$notify({ this.$notify({
title: "成功", title: "成功",
message: "删除成功", message: "删除成功",
type: "success", type: "success",
duration: 2000, duration: 2000,
});
this.getList();
}); });
this.getList();
}); });
});
}, },
/** 刷新列表 */ /** 刷新列表 */
handleHandle(data) { handleHandle(data) {
@ -591,48 +635,7 @@ export default {
this.showExcelImport = false; this.showExcelImport = false;
this.getList(); this.getList();
}, },
async handleDownload() {
//await this.getDownBoms();
this.listLoading = true;
this.$axios
.gets(
"/api/settleaccount/bt-kb-not-consign/export/" +
this.customerInfo.parentId
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
getList(data) { getList(data) {
this.listLoading = true; this.listLoading = true;
if (data != undefined) { if (data != undefined) {

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

@ -2,14 +2,7 @@
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
<!-- <el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>导出全部
</el-button> -->
<JobSelectVerson <JobSelectVerson
:options="JobVersionList" :options="JobVersionList"
style="width: 150px; margin-left: -10px" style="width: 150px; margin-left: -10px"
@ -55,6 +48,14 @@
icon="el-icon-search" icon="el-icon-search"
@click="handleFilter" @click="handleFilter"
>搜索 >搜索
</el-button>
<el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>全部导出
</el-button> </el-button>
<!--表格头组件filter查询--> <!--表格头组件filter查询-->
<c-r-m-table-head <c-r-m-table-head
@ -357,6 +358,54 @@ export default {
}, },
}, },
methods: { methods: {
//
handleDownload(command) {
this.listLoading = true;
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"红旗H平台备件-出库单导出:" + JSON.stringify(this.listOutPutQuery)
);
this.$axios
.posts(
"/api/settleaccount/WmsHQHSharePartoutput/Export",
this.listOutPutQuery
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
// //
handleEdit(index, row) { handleEdit(index, row) {
console.log(index, row); console.log(index, row);
@ -382,7 +431,7 @@ export default {
}); });
} else { } else {
if (row.branchId != "") { if (row.branchId != "") {
this.listOutPutQuery.branchId = row.id;//ID this.listOutPutQuery.branchId = row.id; //ID
} }
if (row.outPutQty != "") { if (row.outPutQty != "") {
this.listOutPutQuery.outPutQty = row.outPutQty; this.listOutPutQuery.outPutQty = row.outPutQty;
@ -456,7 +505,7 @@ export default {
let min = date.getMinutes(); let min = date.getMinutes();
date.setMinutes(min + 1); //1 date.setMinutes(min + 1); //1
let nowDate = moment(date).format("HH:mm:ss"); let nowDate = moment(date).format("HH:mm:ss");
this.listOutPutQuery.accountDate = date; this.listOutPutQuery.accountDate = date;
console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery)); console.log("取消出库条件:" + JSON.stringify(this.listOutPutQuery));
@ -620,48 +669,7 @@ export default {
this.showExcelImport = false; this.showExcelImport = false;
this.getList(); this.getList();
}, },
async handleDownload() {
//await this.getDownBoms();
this.listLoading = true;
this.$axios
.gets(
"/api/settleaccount/bt-kb-not-consign/export/" +
this.customerInfo.parentId
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
getList(data) { getList(data) {
this.listLoading = true; this.listLoading = true;
if (data != undefined) { if (data != undefined) {

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

@ -2,14 +2,6 @@
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
<!-- <el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>导出全部
</el-button> -->
<JobSelectVerson <JobSelectVerson
:options="JobVersionList" :options="JobVersionList"
style="width: 150px; margin-left: -10px" style="width: 150px; margin-left: -10px"
@ -56,6 +48,14 @@
@click="handleFilter" @click="handleFilter"
>搜索 >搜索
</el-button> </el-button>
<el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>全部导出
</el-button>
<!--表格头组件filter查询--> <!--表格头组件filter查询-->
<c-r-m-table-head <c-r-m-table-head
ref="crmTableHead" ref="crmTableHead"
@ -232,7 +232,7 @@ export default {
billNum: "", billNum: "",
accountDate: "", accountDate: "",
}, },
listDeleteQuery: { listDeleteQuery: {
billNum: "", billNum: "",
}, },
page: 1, page: 1,
@ -314,6 +314,54 @@ export default {
}, },
}, },
methods: { methods: {
//
handleDownload(command) {
this.listLoading = true;
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"红旗H平台出库单导出:" + JSON.stringify(this.listOutPutQuery)
);
this.$axios
.posts(
"/api/settleaccount/WmsHQHKanbanoutput/Export",
this.listOutPutQuery
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
// //
JobVersionValue(params) { JobVersionValue(params) {
// //
@ -387,28 +435,27 @@ export default {
}, },
print() { print() {
this.dialogFormVisible = true; this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) { if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields(); this.$refs["accountDatelist"].resetFields();
} }
// this.$axios // this.$axios
// .posts( // .posts(
// "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass", // "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass",
// this.listOutPutQuery // this.listOutPutQuery
// ) // )
// .then((response) => { // .then((response) => {
// const index = this.list.indexOf(row); // const index = this.list.indexOf(row);
// this.$notify({ // this.$notify({
// title: "", // title: "",
// message: "", // message: "",
// type: "success", // type: "success",
// duration: 2000, // duration: 2000,
// }); // });
// this.getList(); // this.getList();
// this.listLoading = false; // this.listLoading = false;
// }) // })
}, },
handleCreateBillsEnd(row) handleCreateBillsEnd(row) {
{
this.dialogFormVisible = false; this.dialogFormVisible = false;
this.getList(); this.getList();
}, },
@ -419,7 +466,7 @@ export default {
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;
if (this.accountDatelist.accountDate == "") { if (this.accountDatelist.accountDate == "") {
this.$message({ this.$message({
message: "请选择日期!", message: "请选择日期!",
type: "warning", type: "warning",
@ -427,82 +474,85 @@ export default {
this.getList(); this.getList();
return; return;
//this.getList(); //this.getList();
}else { } else {
if (this.accountDatelist != "") { if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
} }
//this.listOutPutQuery.accountDate = this.accountDatelist; //this.listOutPutQuery.accountDate = this.accountDatelist;
console.log( console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
); );
this.$axios this.$axios
.posts( .posts(
"/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass", "/api/settleaccount/WmsHQHKanbanoutput/WmsHQHKanbanOutPut-Pass",
this.listOutPutQuery this.listOutPutQuery
) )
.then((response) => { .then((response) => {
const index = this.list.indexOf(row); const index = this.list.indexOf(row);
this.$notify({ this.$notify({
title: "成功", title: "成功",
message: "生成成功", message: "生成成功",
type: "success", type: "success",
duration: 2000, duration: 2000,
});
this.accountDatelist.accountDate = "";
this.dialogFormVisible = false;
this.getList();
this.listLoading = false;
this.dialogFormVisible = false;
})
.catch(() => {
this.listLoading = false;
}); });
this.accountDatelist.accountDate = "";
this.dialogFormVisible = false;
this.getList();
this.listLoading = false;
this.dialogFormVisible = false;
})
.catch(() => {
this.listLoading = false;
});
} }
}, },
// //
handleDelete(row){ handleDelete(row) {
var params = []; var params = [];
let myalert = ""; //使 let myalert = ""; //使
if (row) { if (row) {
// //
params.push(row.id); params.push(row.id);
myalert = row.name; myalert = row.name;
} else { } else {
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let id = element.id; let id = element.id;
params.push(id); params.push(id);
}); });
myalert = "选中项"; myalert = "选中项";
} }
this.listDeleteQuery.billNum = this.listQuery.billNum ; this.listDeleteQuery.billNum = this.listQuery.billNum;
console.log("单据号:" + JSON.stringify(this.listDeleteQuery)); console.log("单据号:" + JSON.stringify(this.listDeleteQuery));
this.$confirm("是否删除" + myalert + "?", "提示", { this.$confirm("是否删除" + myalert + "?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
this.$axios this.$axios
.posts("/api/settleaccount/WmsHQHKanbanoutput/WmsOutPutDelete", this.listDeleteQuery) .posts(
.then((response) => { "/api/settleaccount/WmsHQHKanbanoutput/WmsOutPutDelete",
const index = this.list.indexOf(row); this.listDeleteQuery
this.$notify({ )
title: "成功", .then((response) => {
message: "删除成功", const index = this.list.indexOf(row);
type: "success", this.$notify({
duration: 2000, title: "成功",
}); message: "删除成功",
this.getList(); type: "success",
duration: 2000,
}); });
}) this.getList();
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
}); });
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
}); });
});
}, },
/** 刷新列表 */ /** 刷新列表 */
handleHandle(data) { handleHandle(data) {
@ -528,48 +578,7 @@ export default {
this.showExcelImport = false; this.showExcelImport = false;
this.getList(); this.getList();
}, },
async handleDownload() {
//await this.getDownBoms();
this.listLoading = true;
this.$axios
.gets(
"/api/settleaccount/bt-kb-not-consign/export/" +
this.customerInfo.parentId
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
getList(data) { getList(data) {
this.listLoading = true; this.listLoading = true;
if (data != undefined) { if (data != undefined) {

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

@ -2,14 +2,6 @@
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
<!-- <el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>导出全部
</el-button> -->
<JobSelectVerson <JobSelectVerson
:options="JobVersionList" :options="JobVersionList"
style="width: 150px; margin-left: -10px" style="width: 150px; margin-left: -10px"
@ -57,6 +49,14 @@
@click="handleFilter" @click="handleFilter"
>搜索 >搜索
</el-button> --> </el-button> -->
<el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>全部导出
</el-button>
<!--表格头组件filter查询--> <!--表格头组件filter查询-->
<c-r-m-table-head <c-r-m-table-head
ref="crmTableHead" ref="crmTableHead"
@ -337,6 +337,51 @@ export default {
}, },
}, },
methods: { methods: {
//
handleDownload(command) {
this.listLoading = true;
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"大众备件出库单导出:" + JSON.stringify(this.listOutPutQuery)
);
this.$axios
.posts("/api/settleaccount/WmsHQKBOutput/Export", this.listOutPutQuery)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
// //
handleEdit(index, row) { handleEdit(index, row) {
console.log(index, row); console.log(index, row);
@ -582,48 +627,7 @@ export default {
this.showExcelImport = false; this.showExcelImport = false;
this.getList(); this.getList();
}, },
async handleDownload() {
//await this.getDownBoms();
this.listLoading = true;
this.$axios
.gets(
"/api/settleaccount/bt-kb-not-consign/export/" +
this.customerInfo.parentId
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
getList(data) { getList(data) {
this.listLoading = true; this.listLoading = true;
if (data != undefined) { if (data != undefined) {

328
vue/src/views/ux/vw/dataInput/hq_m_checkout/detail.vue

@ -2,14 +2,6 @@
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
<!-- <el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>导出全部
</el-button> -->
<JobSelectVerson <JobSelectVerson
:options="JobVersionList" :options="JobVersionList"
style="width: 150px; margin-left: -10px" style="width: 150px; margin-left: -10px"
@ -56,6 +48,14 @@
@click="handleFilter" @click="handleFilter"
>搜索 >搜索
</el-button> </el-button>
<el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>全部导出
</el-button>
<!--表格头组件filter查询--> <!--表格头组件filter查询-->
<c-r-m-table-head <c-r-m-table-head
ref="crmTableHead" ref="crmTableHead"
@ -101,29 +101,32 @@
{{ scope.column.label }} {{ scope.column.label }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="OutPutQty" label="出库数量" width="100">
prop="OutPutQty" <template slot-scope="list">
label="出库数量" <el-input
width="100"> size="small"
<template slot-scope="list"> v-model="list.row.outPutQty"
<el-input size="small" v-model="list.row.outPutQty" @change="handleEdit(list.$index, list.row)"></el-input> @change="handleEdit(list.$index, list.row)"
</template> ></el-input>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="state" prop="state"
:formatter="fieldFormatter" :formatter="fieldFormatter"
label="状态" label="状态"
width="100"> width="100"
>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center">
<template slot-scope="list"> <template slot-scope="list">
<el-button <el-button
type="primary" type="primary"
v-if="list.$index=1" v-if="(list.$index = 1)"
@click="handle(list.row)" @click="handle(list.row)"
>确定</el-button> >确定</el-button
</template> >
</el-table-column> </template>
</el-table-column>
</el-table> </el-table>
<div class="table-footer"> <div class="table-footer">
<!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"--> <!-- 分页控件 style="margin-top: -25px;margin-bottom:-25px;float:right;"-->
@ -142,7 +145,7 @@
:title="formTitle" :title="formTitle"
width="700px" width="700px"
> >
<el-form <el-form
ref="accountDatelist" ref="accountDatelist"
:inline="true" :inline="true"
:model="accountDatelist" :model="accountDatelist"
@ -168,9 +171,7 @@
<el-button <el-button
v-loading="formLoading" v-loading="formLoading"
type="primary" type="primary"
@click="handleCreateBills()" @click="handleCreateBills()"
>确认</el-button >确认</el-button
> >
</div> </div>
@ -206,7 +207,7 @@ export default {
erpMaterialCode: [ erpMaterialCode: [
{ required: true, message: "必须输入!", trigger: "blur" }, { required: true, message: "必须输入!", trigger: "blur" },
], ],
accountDate: [ accountDate: [
{ required: true, message: "日期必须输入!", trigger: "blur" }, { required: true, message: "日期必须输入!", trigger: "blur" },
], ],
}, },
@ -255,11 +256,11 @@ export default {
version: "", version: "",
guids: "", guids: "",
billNum: "", billNum: "",
accountDate:"", accountDate: "",
branchId:"", branchId: "",
outPutQty:"", outPutQty: "",
}, },
listDeleteQuery: { listDeleteQuery: {
billNum: "", billNum: "",
}, },
page: 1, page: 1,
@ -268,14 +269,14 @@ export default {
dialogFormVisible: false, dialogFormVisible: false,
multipleSelection: [], multipleSelection: [],
formTitle: "", formTitle: "",
stockQty: "", stockQty: "",
drawer: false, drawer: false,
showExcelImport: false, showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230, tableHeight: document.documentElement.clientHeight - 230,
isEdit: false, isEdit: false,
accountDatelist:{ accountDatelist: {
accountDate:"" accountDate: "",
} },
}; };
}, },
mounted() { mounted() {
@ -338,48 +339,95 @@ export default {
}, },
}, },
methods: { methods: {
handleEdit(index, row) { //
console.log(index, row); handleDownload(command) {
this.listLoading = true;
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"红旗M备件出库单导出:" + JSON.stringify(this.listOutPutQuery)
);
this.$axios
.posts(
"/api/settleaccount/WmsHQMSharePartoutput/Export",
this.listOutPutQuery
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
handleEdit(index, row) {
console.log(index, row);
}, },
handle(row){ handle(row) {
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let outPutQty=element.outPutQty; let outPutQty = element.outPutQty;
}); });
if (row.outPutQty > row.stockQty) { if (row.outPutQty > row.stockQty) {
this.$message({ this.$message({
message: "出库数量大于寄售库存,不允许出库!", message: "出库数量大于寄售库存,不允许出库!",
type: "warning", type: "warning",
}); });
} else { } else {
if (row.branchId != "") { if (row.branchId != "") {
this.listOutPutQuery.branchId = row.branchId; this.listOutPutQuery.branchId = row.branchId;
} }
if (row.outPutQty != "") { if (row.outPutQty != "") {
this.listOutPutQuery.outPutQty = row.outPutQty; this.listOutPutQuery.outPutQty = row.outPutQty;
} }
console.log( console.log(
"111111结算数量按钮:" + JSON.stringify(this.listOutPutQuery) "111111结算数量按钮:" + JSON.stringify(this.listOutPutQuery)
); );
//"taskId": "3fa85f64-5717-4562-b3fc-2c963f66afa6","outPutQty": 0 //"taskId": "3fa85f64-5717-4562-b3fc-2c963f66afa6","outPutQty": 0
this.$axios this.$axios
.posts( .posts(
"/api/settleaccount/WmsHQMSharePartoutput/WmsSharePartOutPutModify", "/api/settleaccount/WmsHQMSharePartoutput/WmsSharePartOutPutModify",
this.listOutPutQuery this.listOutPutQuery
) )
.then((response) => { .then((response) => {
const index = this.list.indexOf(row); const index = this.list.indexOf(row);
this.$notify({ this.$notify({
title: "成功", title: "成功",
message: "操作成功", message: "操作成功",
type: "success", type: "success",
duration: 2000, duration: 2000,
}); });
this.getList(); this.getList();
}) })
.catch(() => { .catch(() => {
this.listLoading = false; this.listLoading = false;
}); });
} }
}, },
// //
@ -453,24 +501,24 @@ export default {
}); });
}); });
}, },
print() { print() {
this.dialogFormVisible = true; this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) { if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields(); this.$refs["accountDatelist"].resetFields();
} }
}, },
handleCreateBillsEnd(row) { handleCreateBillsEnd(row) {
this.dialogFormVisible = false; this.dialogFormVisible = false;
this.getList(); this.getList();
}, },
// //
handleCreateBills(row) { handleCreateBills(row) {
this.dialogFormVisible = true; this.dialogFormVisible = true;
this.listLoading = true; this.listLoading = true;
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;
if (this.accountDatelist.accountDate == "") { if (this.accountDatelist.accountDate == "") {
this.$message({ this.$message({
message: "请选择日期!", message: "请选择日期!",
type: "warning", type: "warning",
@ -478,10 +526,10 @@ export default {
this.getList(); this.getList();
return; return;
//this.getList(); //this.getList();
}else{ } else {
if (this.accountDatelist != "") { if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
} }
//this.listOutPutQuery.accountDate = this.accountDatelist; //this.listOutPutQuery.accountDate = this.accountDatelist;
console.log( console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
@ -512,48 +560,51 @@ export default {
} }
}, },
// //
handleDelete(row){ handleDelete(row) {
var params = []; var params = [];
let myalert = ""; //使 let myalert = ""; //使
if (row) { if (row) {
// //
params.push(row.id); params.push(row.id);
myalert = row.name; myalert = row.name;
} else { } else {
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let id = element.id; let id = element.id;
params.push(id); params.push(id);
}); });
myalert = "选中项"; myalert = "选中项";
} }
this.listDeleteQuery.billNum = this.listQuery.billNum ; this.listDeleteQuery.billNum = this.listQuery.billNum;
console.log("单据号:" + JSON.stringify(this.listDeleteQuery)); console.log("单据号:" + JSON.stringify(this.listDeleteQuery));
this.$confirm("是否删除" + myalert + "?", "提示", { this.$confirm("是否删除" + myalert + "?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
this.$axios this.$axios
.posts("/api/settleaccount/WmsHQMSharePartoutput/WmsOutPutDelete", this.listDeleteQuery) .posts(
.then((response) => { "/api/settleaccount/WmsHQMSharePartoutput/WmsOutPutDelete",
const index = this.list.indexOf(row); this.listDeleteQuery
this.$notify({ )
title: "成功", .then((response) => {
message: "删除成功", const index = this.list.indexOf(row);
type: "success", this.$notify({
duration: 2000, title: "成功",
}); message: "删除成功",
this.getList(); type: "success",
duration: 2000,
}); });
}) this.getList();
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
}); });
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
}); });
});
}, },
/** 刷新列表 */ /** 刷新列表 */
handleHandle(data) { handleHandle(data) {
@ -579,48 +630,7 @@ export default {
this.showExcelImport = false; this.showExcelImport = false;
this.getList(); this.getList();
}, },
async handleDownload() {
//await this.getDownBoms();
this.listLoading = true;
this.$axios
.gets(
"/api/settleaccount/bt-kb-not-consign/export/" +
this.customerInfo.parentId
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
getList(data) { getList(data) {
this.listLoading = true; this.listLoading = true;
if (data != undefined) { if (data != undefined) {

218
vue/src/views/ux/vw/dataInput/hq_m_outorder/detail.vue

@ -2,14 +2,6 @@
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
<!-- <el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>导出全部
</el-button> -->
<JobSelectVerson <JobSelectVerson
:options="JobVersionList" :options="JobVersionList"
style="width: 150px; margin-left: -10px" style="width: 150px; margin-left: -10px"
@ -56,6 +48,14 @@
@click="handleFilter" @click="handleFilter"
>搜索 >搜索
</el-button> </el-button>
<el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>全部导出
</el-button>
<!--表格头组件filter查询--> <!--表格头组件filter查询-->
<c-r-m-table-head <c-r-m-table-head
ref="crmTableHead" ref="crmTableHead"
@ -119,7 +119,7 @@
:title="formTitle" :title="formTitle"
width="700px" width="700px"
> >
<el-form <el-form
ref="accountDatelist" ref="accountDatelist"
:inline="true" :inline="true"
:model="accountDatelist" :model="accountDatelist"
@ -145,9 +145,7 @@
<el-button <el-button
v-loading="formLoading" v-loading="formLoading"
type="primary" type="primary"
@click="handleCreateBills()" @click="handleCreateBills()"
>确认</el-button >确认</el-button
> >
</div> </div>
@ -183,7 +181,7 @@ export default {
erpMaterialCode: [ erpMaterialCode: [
{ required: true, message: "必须输入!", trigger: "blur" }, { required: true, message: "必须输入!", trigger: "blur" },
], ],
accountDate: [ accountDate: [
{ required: true, message: "日期必须输入!", trigger: "blur" }, { required: true, message: "日期必须输入!", trigger: "blur" },
], ],
}, },
@ -232,9 +230,9 @@ export default {
version: "", version: "",
guids: "", guids: "",
billNum: "", billNum: "",
accountDate:"" accountDate: "",
}, },
listDeleteQuery: { listDeleteQuery: {
billNum: "", billNum: "",
}, },
page: 1, page: 1,
@ -247,9 +245,9 @@ export default {
showExcelImport: false, showExcelImport: false,
tableHeight: document.documentElement.clientHeight - 230, tableHeight: document.documentElement.clientHeight - 230,
isEdit: false, isEdit: false,
accountDatelist:{ accountDatelist: {
accountDate:"" accountDate: "",
} },
}; };
}, },
mounted() { mounted() {
@ -311,6 +309,54 @@ export default {
}, },
}, },
methods: { methods: {
//
handleDownload(command) {
this.listLoading = true;
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"红旗M平台出库单导出:" + JSON.stringify(this.listOutPutQuery)
);
this.$axios
.posts(
"/api/settleaccount/WMSHQMKanbanoutput/Export",
this.listOutPutQuery
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
// //
JobVersionValue(params) { JobVersionValue(params) {
// //
@ -384,7 +430,7 @@ export default {
}, },
print() { print() {
this.dialogFormVisible = true; this.dialogFormVisible = true;
if (this.$refs["accountDatelist"] !== undefined) { if (this.$refs["accountDatelist"] !== undefined) {
this.$refs["accountDatelist"].resetFields(); this.$refs["accountDatelist"].resetFields();
} }
}, },
@ -395,11 +441,11 @@ export default {
// //
handleCreateBills(row) { handleCreateBills(row) {
this.dialogFormVisible = true; this.dialogFormVisible = true;
this.listLoading = true; this.listLoading = true;
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;
if (this.accountDatelist.accountDate == "") { if (this.accountDatelist.accountDate == "") {
this.$message({ this.$message({
message: "请选择日期!", message: "请选择日期!",
type: "warning", type: "warning",
@ -409,8 +455,8 @@ export default {
//this.getList(); //this.getList();
} else { } else {
if (this.accountDatelist != "") { if (this.accountDatelist != "") {
this.listOutPutQuery.accountDate = this.accountDatelist.accountDate; this.listOutPutQuery.accountDate = this.accountDatelist.accountDate;
} }
//this.listOutPutQuery.accountDate = this.accountDatelist; //this.listOutPutQuery.accountDate = this.accountDatelist;
console.log( console.log(
"未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery) "未选择时全部确认出库条件:" + JSON.stringify(this.listOutPutQuery)
@ -440,49 +486,52 @@ export default {
}); });
} }
}, },
// //
handleDelete(row){ handleDelete(row) {
var params = []; var params = [];
let myalert = ""; //使 let myalert = ""; //使
if (row) { if (row) {
// //
params.push(row.id); params.push(row.id);
myalert = row.name; myalert = row.name;
} else { } else {
// //
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
let id = element.id; let id = element.id;
params.push(id); params.push(id);
}); });
myalert = "选中项"; myalert = "选中项";
} }
this.listDeleteQuery.billNum = this.listQuery.billNum ; this.listDeleteQuery.billNum = this.listQuery.billNum;
console.log("单据号:" + JSON.stringify(this.listDeleteQuery)); console.log("单据号:" + JSON.stringify(this.listDeleteQuery));
this.$confirm("是否删除" + myalert + "?", "提示", { this.$confirm("是否删除" + myalert + "?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
this.$axios this.$axios
.posts("/api/settleaccount/WMSHQMKanbanoutput/WmsOutPutDelete", this.listDeleteQuery) .posts(
.then((response) => { "/api/settleaccount/WMSHQMKanbanoutput/WmsOutPutDelete",
const index = this.list.indexOf(row); this.listDeleteQuery
this.$notify({ )
title: "成功", .then((response) => {
message: "删除成功", const index = this.list.indexOf(row);
type: "success", this.$notify({
duration: 2000, title: "成功",
}); message: "删除成功",
this.getList(); type: "success",
duration: 2000,
}); });
}) this.getList();
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
}); });
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
}); });
});
}, },
/** 刷新列表 */ /** 刷新列表 */
handleHandle(data) { handleHandle(data) {
@ -508,48 +557,7 @@ export default {
this.showExcelImport = false; this.showExcelImport = false;
this.getList(); this.getList();
}, },
async handleDownload() {
//await this.getDownBoms();
this.listLoading = true;
this.$axios
.gets(
"/api/settleaccount/bt-kb-not-consign/export/" +
this.customerInfo.parentId
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
getList(data) { getList(data) {
this.listLoading = true; this.listLoading = true;
if (data != undefined) { if (data != undefined) {

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

@ -2,14 +2,6 @@
<template> <template>
<div class="cr-body-content"> <div class="cr-body-content">
<flexbox class="content-header"> <flexbox class="content-header">
<!-- <el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>导出全部
</el-button> -->
<JobSelectVerson <JobSelectVerson
:options="JobVersionList" :options="JobVersionList"
style="width: 150px; margin-left: -10px" style="width: 150px; margin-left: -10px"
@ -57,6 +49,14 @@
@click="handleFilter" @click="handleFilter"
>搜索 >搜索
</el-button> </el-button>
<el-button
class="filter-item"
size="mini"
type="info"
icon="el-icon-download"
@click="handleDownload()"
>全部导出
</el-button>
<!--表格头组件filter查询--> <!--表格头组件filter查询-->
<c-r-m-table-head <c-r-m-table-head
ref="crmTableHead" ref="crmTableHead"
@ -186,7 +186,6 @@ 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";
export default { export default {
name: "sendUnsettledDiffReport", name: "sendUnsettledDiffReport",
components: { Pagination, CRMTableHead, CRMTableHead, JobSelectVerson }, components: { Pagination, CRMTableHead, CRMTableHead, JobSelectVerson },
@ -320,7 +319,7 @@ export default {
width: 110, width: 110,
}); });
tempsTabs.push({ label: "SAP编码", prop: "materialCode", width: 150 }); tempsTabs.push({ label: "SAP编码", prop: "materialCode", width: 150 });
tempsTabs.push({ tempsTabs.push({
label: "物料组", label: "物料组",
prop: "materialGroup", prop: "materialGroup",
@ -338,6 +337,54 @@ export default {
}, },
}, },
methods: { methods: {
//
handleDownload(command) {
this.listLoading = true;
this.listOutPutQuery.version = this.customerInfo.version;
this.listOutPutQuery.billNum = this.customerInfo.parentId;
console.log(
"一汽轿车出库单导出:" + JSON.stringify(this.listOutPutQuery)
);
this.$axios
.posts(
"/api/settleaccount/WmsHQCaroutput/Export",
this.listOutPutQuery
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
// //
handleEdit(index, row) { handleEdit(index, row) {
console.log(index, row); console.log(index, row);
@ -583,48 +630,7 @@ export default {
this.showExcelImport = false; this.showExcelImport = false;
this.getList(); this.getList();
}, },
async handleDownload() {
//await this.getDownBoms();
this.listLoading = true;
this.$axios
.gets(
"/api/settleaccount/bt-kb-not-consign/export/" +
this.customerInfo.parentId
)
.then((res) => {
let fileNameOfProject = res;
this.$axios
.BolbGets(
"/api/settleaccount/getblobfile/download/" + fileNameOfProject
)
.then((response) => {
if (fileNameOfProject.indexOf("_") != -1) {
let downName =
fileNameOfProject.slice(
0,
fileNameOfProject.lastIndexOf("_")
) +
fileNameOfProject.slice(fileNameOfProject.lastIndexOf("."));
downloadFile(response, downName);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
} else {
downloadFile(response, fileNameOfProject);
this.$notify({
title: "成功",
message: "数据-导出成功!",
type: "success",
duration: 2000,
});
}
this.listLoading = false;
});
});
},
getList(data) { getList(data) {
this.listLoading = true; this.listLoading = true;
if (data != undefined) { if (data != undefined) {

Loading…
Cancel
Save