|
@@ -88,7 +88,8 @@
|
|
|
<a-card :bordered="false" style="margin:10px 0">
|
|
|
<div class="table-operator">
|
|
|
<a-button type="primary" @click="addAdpacking" icon="plus">新增</a-button>
|
|
|
- <a-button type="primary" icon="download" @click="handleExportXls('预装箱单-成衣')">导出</a-button>
|
|
|
+ <a-button type="primary" icon="download" @click="handleExportXls('预装箱单-成衣','0')">报表模版导出</a-button>
|
|
|
+ <a-button type="primary" icon="download" @click="handleExportXls('预装箱单-成衣','1')">成衣模版导出</a-button>
|
|
|
<a-upload productName="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
|
|
<a-button type="primary" icon="import">导入</a-button>
|
|
|
</a-upload>
|
|
@@ -124,7 +125,7 @@
|
|
|
|
|
|
<!-- 操作 默认按钮 未提交未推送-->
|
|
|
<span slot="operationSlot" slot-scope="text, record">
|
|
|
- <a href="javascript:void(0);" @click="itemXls(record)" style="color:green">导出</a>
|
|
|
+ <a href="javascript:void(0);" @click="itemXls(record,'0')" style="color:green">报表模版导出</a>
|
|
|
|
|
|
<a-divider type="vertical" />
|
|
|
|
|
@@ -138,7 +139,13 @@
|
|
|
|
|
|
<a-menu-item>
|
|
|
<a @click="edit(record)">编辑</a>
|
|
|
+
|
|
|
</a-menu-item>
|
|
|
+ <a-menu-item>
|
|
|
+ <a href="javascript:void(0);" @click="itemXls(record,'1')" >成衣模版导出</a>
|
|
|
+ </a-menu-item>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
<!-- <a-menu-item>
|
|
|
<a-popconfirm title="确定提交吗?" ok-text="是" cancel-text="否" @confirm="submit(record)">
|
|
@@ -158,6 +165,9 @@
|
|
|
<a-menu-item>
|
|
|
<a @click="details(record)">详情</a>
|
|
|
</a-menu-item>
|
|
|
+ <a-menu-item>
|
|
|
+ <a href="javascript:void(0);" @click="itemXls(record,'1')" >成衣模版导出</a>
|
|
|
+ </a-menu-item>
|
|
|
</a-menu>
|
|
|
|
|
|
<!-- 已提交 且 推送失败 -->
|
|
@@ -171,6 +181,9 @@
|
|
|
<a href="javascript:void(0);" style="color:green;">重新推送</a>
|
|
|
</a-popconfirm>
|
|
|
</a-menu-item>
|
|
|
+ <a-menu-item>
|
|
|
+ <a href="javascript:void(0);" @click="itemXls(record,'1')" >成衣模版导出</a>
|
|
|
+ </a-menu-item>
|
|
|
</a-menu>
|
|
|
|
|
|
<!-- 已提交 -->
|
|
@@ -184,6 +197,9 @@
|
|
|
<a href="javascript:void(0);" style="color:red;">取消提交</a>
|
|
|
</a-popconfirm>
|
|
|
</a-menu-item> -->
|
|
|
+ <a-menu-item>
|
|
|
+ <a href="javascript:void(0);" @click="itemXls(record,'1')" >成衣模版导出</a>
|
|
|
+ </a-menu-item>
|
|
|
|
|
|
<a-menu-item>
|
|
|
<a-popconfirm title="确定推送吗?" ok-text="是" cancel-text="否" @confirm="push(record)">
|
|
@@ -203,6 +219,9 @@
|
|
|
<a href="javascript:void(0);" style="color:green;">推送</a>
|
|
|
</a-popconfirm>
|
|
|
</a-menu-item>
|
|
|
+ <a-menu-item>
|
|
|
+ <a href="javascript:void(0);" @click="itemXls(record,'1')">成衣模版导出</a>
|
|
|
+ </a-menu-item>
|
|
|
</a-menu>
|
|
|
</a-dropdown>
|
|
|
</span>
|
|
@@ -440,7 +459,7 @@ export default {
|
|
|
title: '操作',
|
|
|
dataIndex: 'operation',
|
|
|
scopedSlots: { customRender: 'operationSlot' },
|
|
|
- width: 120,
|
|
|
+ width: 180,
|
|
|
fixed: 'right',
|
|
|
className: 'replacecolor'
|
|
|
}
|
|
@@ -460,7 +479,11 @@ export default {
|
|
|
// pageSize: 0
|
|
|
},
|
|
|
selectedRowKeys: [], // 勾选航
|
|
|
- dateFormat: 'YYYY-MM-DD'
|
|
|
+ dateFormat: 'YYYY-MM-DD',
|
|
|
+ url: {
|
|
|
+ list: '/sys/user/list',
|
|
|
+ importExcelUrl: '/spapl/syPreAssembledPackingList/importExcel3' // 导入
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -566,8 +589,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 列表导出
|
|
|
- handleExportXls(fileName) {
|
|
|
- downFile('/spapl/syPreAssembledPackingList/exportXls').then(data => {
|
|
|
+ handleExportXls(fileName,sta) {
|
|
|
+ var data = sta
|
|
|
+ downFile('/spapl/syPreAssembledPackingList/exportXls',{status:data}).then(data => {
|
|
|
if (!data) {
|
|
|
this.$message.warning('文件下载失败')
|
|
|
return
|
|
@@ -588,6 +612,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
+
|
|
|
// 删除
|
|
|
handleDelete(record) {
|
|
|
console.log('点击删除项id:', record.id)
|
|
@@ -624,8 +649,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 操作 单条数据导出
|
|
|
- itemXls(record) {
|
|
|
- downFile('/spapl/syPreAssembledPackingList/exportXls',{id:record.id}).then(data => {
|
|
|
+ itemXls(record,sta) {
|
|
|
+ var data = sta
|
|
|
+ downFile('/spapl/syPreAssembledPackingList/exportXls',{id:record.id,status:data}).then(data => {
|
|
|
if (!data) {
|
|
|
this.$message.warning('文件下载失败')
|
|
|
return
|
|
@@ -818,7 +844,8 @@ export default {
|
|
|
computed: {
|
|
|
// 导入
|
|
|
importExcelUrl() {
|
|
|
- // return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
|
|
|
+ return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
|
|
|
+ // this.
|
|
|
},
|
|
|
// 选中项
|
|
|
rowSelection() {
|