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