完善入库导入

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