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. 116
      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. 112
      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. 121
      vue/src/views/ux/vw/dataInput/hq_f_outorder_chickout/detail.vue
  11. 108
      vue/src/views/ux/vw/dataInput/hq_h_checkout/detail.vue
  12. 115
      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. 138
      vue/src/views/ux/vw/dataInput/hq_m_checkout/detail.vue
  15. 120
      vue/src/views/ux/vw/dataInput/hq_m_outorder/detail.vue
  16. 108
      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
) )

116
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>
@ -238,7 +236,7 @@ export default {
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) {
// //
@ -454,7 +500,10 @@ export default {
}) })
.then(() => { .then(() => {
this.$axios this.$axios
.posts("/api/settleaccount/wmskanbanoutput/WmsOutPutDelete", this.listDeleteQuery) .posts(
"/api/settleaccount/wmskanbanoutput/WmsOutPutDelete",
this.listDeleteQuery
)
.then((response) => { .then((response) => {
const index = this.list.indexOf(row); const index = this.list.indexOf(row);
this.$notify({ this.$notify({
@ -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) {

112
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"
@ -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>
@ -232,7 +238,7 @@ export default {
version: "", version: "",
guids: "", guids: "",
billNum: "", billNum: "",
accountDate:"" accountDate: "",
}, },
listDeleteQuery: { listDeleteQuery: {
billNum: "", billNum: "",
@ -248,8 +254,8 @@ export default {
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) {
// //
@ -452,7 +506,10 @@ export default {
}) })
.then(() => { .then(() => {
this.$axios this.$axios
.posts("/api/settleaccount/wmsSharePart90output/WmsOutPutDelete", this.listDeleteQuery) .posts(
"/api/settleaccount/wmsSharePart90output/WmsOutPutDelete",
this.listDeleteQuery
)
.then((response) => { .then((response) => {
const index = this.list.indexOf(row); const index = this.list.indexOf(row);
this.$notify({ this.$notify({
@ -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) {

121
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"
@ -127,9 +127,10 @@
<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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -348,10 +349,57 @@ 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/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) { handleEdit(index, row) {
console.log(index, row); console.log(index, row);
}, },
handle(row) { handle(row) {
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
@ -369,9 +417,7 @@ export default {
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 //"taskId": "3fa85f64-5717-4562-b3fc-2c963f66afa6","outPutQty": 0
this.$axios this.$axios
.posts( .posts(
@ -546,8 +592,7 @@ export default {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) }).then(() => {
.then(() => {
this.$axios this.$axios
.posts( .posts(
"/api/settleaccount/wmsHQFSharePartoutput/WmsOutPutDelete", "/api/settleaccount/wmsHQFSharePartoutput/WmsOutPutDelete",
@ -565,7 +610,6 @@ export default {
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) {

108
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);
@ -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) {

115
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"
@ -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) {
// //
@ -407,8 +455,7 @@ export default {
// this.listLoading = false; // this.listLoading = false;
// }) // })
}, },
handleCreateBillsEnd(row) handleCreateBillsEnd(row) {
{
this.dialogFormVisible = false; this.dialogFormVisible = false;
this.getList(); this.getList();
}, },
@ -485,7 +532,10 @@ export default {
}) })
.then(() => { .then(() => {
this.$axios this.$axios
.posts("/api/settleaccount/WmsHQHKanbanoutput/WmsOutPutDelete", this.listDeleteQuery) .posts(
"/api/settleaccount/WmsHQHKanbanoutput/WmsOutPutDelete",
this.listDeleteQuery
)
.then((response) => { .then((response) => {
const index = this.list.indexOf(row); const index = this.list.indexOf(row);
this.$notify({ this.$notify({
@ -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) {

138
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,27 +101,30 @@
{{ 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"
label="出库数量"
width="100">
<template slot-scope="list"> <template slot-scope="list">
<el-input size="small" v-model="list.row.outPutQty" @change="handleEdit(list.$index, list.row)"></el-input> <el-input
size="small"
v-model="list.row.outPutQty"
@change="handleEdit(list.$index, list.row)"
></el-input>
</template> </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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -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>
@ -274,8 +275,8 @@ export default {
tableHeight: document.documentElement.clientHeight - 230, tableHeight: document.documentElement.clientHeight - 230,
isEdit: false, isEdit: false,
accountDatelist: { accountDatelist: {
accountDate:"" accountDate: "",
} },
}; };
}, },
mounted() { mounted() {
@ -338,9 +339,56 @@ 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/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) { handleEdit(index, row) {
console.log(index, row); console.log(index, row);
}, },
handle(row) { handle(row) {
this.multipleSelection.forEach((element) => { this.multipleSelection.forEach((element) => {
@ -536,7 +584,10 @@ export default {
}) })
.then(() => { .then(() => {
this.$axios this.$axios
.posts("/api/settleaccount/WmsHQMSharePartoutput/WmsOutPutDelete", this.listDeleteQuery) .posts(
"/api/settleaccount/WmsHQMSharePartoutput/WmsOutPutDelete",
this.listDeleteQuery
)
.then((response) => { .then((response) => {
const index = this.list.indexOf(row); const index = this.list.indexOf(row);
this.$notify({ this.$notify({
@ -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) {

120
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"
@ -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>
@ -232,7 +230,7 @@ export default {
version: "", version: "",
guids: "", guids: "",
billNum: "", billNum: "",
accountDate:"" accountDate: "",
}, },
listDeleteQuery: { listDeleteQuery: {
billNum: "", billNum: "",
@ -248,8 +246,8 @@ export default {
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) {
// //
@ -465,7 +511,10 @@ export default {
}) })
.then(() => { .then(() => {
this.$axios this.$axios
.posts("/api/settleaccount/WMSHQMKanbanoutput/WmsOutPutDelete", this.listDeleteQuery) .posts(
"/api/settleaccount/WMSHQMKanbanoutput/WmsOutPutDelete",
this.listDeleteQuery
)
.then((response) => { .then((response) => {
const index = this.list.indexOf(row); const index = this.list.indexOf(row);
this.$notify({ this.$notify({
@ -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) {

108
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 },
@ -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