|
@@ -54,6 +54,9 @@
|
|
|
<a-button type="primary" @click="bitchCancelSubmitList" icon="close">批量取消提交</a-button>
|
|
|
<a-button type="primary" @click="push" icon="export">推送</a-button>
|
|
|
<a-button type="primary" icon="download" @click="handleExportXls('装箱单-面辅料')">装箱单面辅料导出</a-button>
|
|
|
+ <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel" >
|
|
|
+ <a-button type="primary" icon="import">导入-来源出运明细</a-button>
|
|
|
+ </a-upload>
|
|
|
<a-button type="primary" @click="synchronization" icon="reload">同步</a-button>
|
|
|
</div>
|
|
|
|
|
@@ -258,7 +261,7 @@ export default {
|
|
|
// delete: '/sys/user/delete',
|
|
|
// deleteBatch: '/sys/user/deleteBatch',
|
|
|
exportXlsUrl: '/sys/user/exportXls', // 导出
|
|
|
- importExcelUrl: 'sys/user/importExcel', // 导入
|
|
|
+ importExcelUrl: 'splfi/syPackingListFabric/importExcel', // 导入
|
|
|
enclosureUrl:'splfi/syPackingListFabric/upload'//附件导入
|
|
|
}
|
|
|
}
|
|
@@ -563,6 +566,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
+ // 导入
|
|
|
+ importExcelUrl: function() {
|
|
|
+ return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
|
|
|
+ },
|
|
|
+ // 附件上传
|
|
|
enclosureUrl: function() {
|
|
|
return `${window._CONFIG['domianURL']}/${this.url.enclosureUrl}`
|
|
|
},
|