完善入库导入
parent
c7c8ae9adc
commit
44738fb9fb
|
|
@ -208,7 +208,7 @@
|
||||||
<div class="template-info">
|
<div class="template-info">
|
||||||
<h4>模板说明:</h4>
|
<h4>模板说明:</h4>
|
||||||
<p>适用于<span style="color: red">标准</span>导入,包含INVOICE NO.、BOI、PO&LN NO.、PART
|
<p>适用于<span style="color: red">标准</span>导入,包含INVOICE NO.、BOI、PO&LN NO.、PART
|
||||||
NO.、DESCRIPTION、Q'TY 、C/NO.</p>
|
NO.、DESCRIPTION、Q'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.、BOI、PO&LN NO.、PART
|
<p>适用于<span style="color: red">大物</span>导入,包含INVOICE NO.、BOI、PO&LN NO.、PART
|
||||||
NO.、DESCRIPTION、Q'TY 、C/NO.</p>
|
NO.、DESCRIPTION、Q'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.、BOI、PO&LN NO.、PART
|
<p>适用于<span style="color: red">空运发票箱单</span>导入,包含INV.NO.、A-PROS CASE NO、KMT NO. PO&LN NO.、PART NO.、
|
||||||
NO.、DESCRIPTION、Q'TY 、C/NO.</p>
|
DESCRIPTION、Q'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)
|
||||||
// 只保留当前tab的文件,其它tab清空
|
// 只保留当前tab的文件,其它tab清空
|
||||||
if (this.activeImportTab === 'template1') {
|
if (this.activeImportTab === 'template1') {
|
||||||
this.fileList1 = [file];
|
this.fileList1 = [file];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue