完善入库导入

main
huojin\hj 2025-08-01 15:11:40 +08:00
parent c7c8ae9adc
commit 44738fb9fb
1 changed files with 7 additions and 7 deletions

View File

@ -208,7 +208,7 @@
<div class="template-info"> <div class="template-info">
<h4>模板说明</h4> <h4>模板说明</h4>
<p>适用于<span style="color: red">标准</span>导入包含INVOICE NO.BOIPO&LN NO.PART <p>适用于<span style="color: red">标准</span>导入包含INVOICE NO.BOIPO&LN NO.PART
NO.DESCRIPTIONQ'TY C/NO.</p> NO.DESCRIPTIONQ'TY(PCS) C/NO.</p>
<el-button type="primary" size="small" @click="downloadTemplate('template1')"></el-button> <el-button type="primary" size="small" @click="downloadTemplate('template1')"></el-button>
</div> </div>
<el-upload <el-upload
@ -218,7 +218,6 @@
action="#" action="#"
:auto-upload="false" :auto-upload="false"
:file-list="fileList1" :file-list="fileList1"
:before-upload="beforeExcelUpload"
:on-change="handleExcelChange" :on-change="handleExcelChange"
:on-remove="handleExcelRemove" :on-remove="handleExcelRemove"
> >
@ -236,7 +235,7 @@
<div class="template-info"> <div class="template-info">
<h4>模板说明</h4> <h4>模板说明</h4>
<p>适用于<span style="color: red">大物</span>导入包含INVOICE NO.BOIPO&LN NO.PART <p>适用于<span style="color: red">大物</span>导入包含INVOICE NO.BOIPO&LN NO.PART
NO.DESCRIPTIONQ'TY C/NO.</p> NO.DESCRIPTIONQ'TY(PCS) C/NO.</p>
</div> </div>
<el-upload <el-upload
class="upload-demo" class="upload-demo"
@ -262,8 +261,8 @@
<div class="import-content"> <div class="import-content">
<div class="template-info"> <div class="template-info">
<h4>模板说明</h4> <h4>模板说明</h4>
<p>适用于<span style="color: red">空运发票箱单</span>导入包含INVOICE NO.BOIPO&LN NO.PART <p>适用于<span style="color: red">空运发票箱单</span>导入包含INV.NO.A-PROS CASE NOKMT NO. PO&LN NO.PART NO.
NO.DESCRIPTIONQ'TY C/NO.</p> DESCRIPTIONQ'TY C/NO.</p>
</div> </div>
<el-upload <el-upload
class="upload-demo" class="upload-demo"
@ -780,17 +779,18 @@ export default {
const isExcel = /\.(xlsx|xls|csv)$/.test(file.name) const isExcel = /\.(xlsx|xls|csv)$/.test(file.name)
const isLt2M = file.size / 1024 / 1024 < 2 const isLt2M = file.size / 1024 / 1024 < 2
if (!isExcel) { if (!isExcel) {
this.$message.error('只支持.xlsx, .xls, .csv 格式文件') this.crud.notify('只支持.xlsx, .xls, .csv 格式文件', CRUD.NOTIFICATION_TYPE.ERROR);
return false return false
} }
if (!isLt2M) { if (!isLt2M) {
this.$message.error('文件大小不能超过2MB') this.crud.notify('文件大小不能超过2MB', CRUD.NOTIFICATION_TYPE.ERROR);
return false return false
} }
return false return false
}, },
// el-upload // el-upload
handleExcelChange(file, fileList) { handleExcelChange(file, fileList) {
this.beforeExcelUpload(file)
// tabtab // tabtab
if (this.activeImportTab === 'template1') { if (this.activeImportTab === 'template1') {
this.fileList1 = [file]; this.fileList1 = [file];