|
@@ -21,10 +21,11 @@
|
|
|
<div class="explain-item">
|
|
|
<div class="explain-tit">导入文件说明</div>
|
|
|
<ul>
|
|
|
- <li>1) 导入的EXCEL文件中必须包含名为"供应商"、"产品品牌"、"产品编码"、"原厂编码"、"产品名称"、"产品一级类别"、"产品二级类别"、"产品三级类别"、"仓库"、"仓位"、"入库数量"、"成本价"、"售价";列顺序可忽略、行顺序可忽略。其中"供应商"、"产品品牌"、"产品编码"、"产品名称"、"仓库"、"仓位"、"入库数量"、"成本价"、"售价"内容不能为空。</li>
|
|
|
- <li>2) 红色底白字为错误项,对应错误原因列显示错误信息,存在错误项时不能导入,请取消修改后重新上传操作。</li>
|
|
|
+ <li>1) 导入的EXCEL文件中必须包含名为"产品编码"、"仓库"、"仓位"、"入库数量"、"成本价";列顺序可忽略、行顺序可忽略。以产品编码,仓库,仓位作为导入的是否有效判断依据。</li>
|
|
|
+ <li>2) 红色底白字为错误项,确认入库会忽略错误项入库。</li>
|
|
|
<li>3) 上传成功显示产品列表后,第一次以后上传的文件名如果和第一次上传的文件名相同,将不再上传,采取第一次上传的文件,如要重新上传数据,请更改文件名称。</li>
|
|
|
- <li>4) 供应商为必填项且不能包含箭牌供应商、产品品牌为必填项且不能包含箭牌品牌、产品名称为必填项。</li>
|
|
|
+ <li>4) 入库数量必须大于0,且为正整数,为了保证数据的正确性,请检查上传文件数据无误后再上传操作。</li>
|
|
|
+ <li>5) 成本价为空或者小于零的将读取成本价,读取成本价后成本仍然小于零的将会被忽略导入,如需要导入成本价为零的,请为该件产品并指定成本价为零。</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -82,18 +83,10 @@ export default {
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: 50, align: 'center' },
|
|
|
{ title: '产品编码', dataIndex: 'productCode', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '原厂编码', dataIndex: 'productOrigCode', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品品牌', dataIndex: 'productBrandName', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '供应商', dataIndex: 'supplierName', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品名称', dataIndex: 'productName', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品一级分类', dataIndex: 'productTypeName1', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品二级分类', dataIndex: 'productTypeName2', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品三级分类', dataIndex: 'productTypeName3', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '仓库', dataIndex: 'warehouseName', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '仓位', dataIndex: 'warehouseLocationName', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '入库数量', dataIndex: 'putQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '成本价', dataIndex: 'cost', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '售价', dataIndex: 'terminalPrice', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '错误原因', dataIndex: 'errorMsg', width: 150, align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
@@ -114,7 +107,7 @@ export default {
|
|
|
savePathType: 'local'
|
|
|
},
|
|
|
uploadData: null,
|
|
|
- filePath: 'http://jg-ocs.oss-cn-beijing.aliyuncs.com/templ/promo/normal_product_templ.xlsx'
|
|
|
+ filePath: 'https://jianguan-images.oss-cn-beijing.aliyuncs.com/template/StockImports.xlsx'
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -132,7 +125,7 @@ export default {
|
|
|
const _this = this
|
|
|
this.$confirm({
|
|
|
title: '提示',
|
|
|
- content: '您是否确认导入产品信息?',
|
|
|
+ content: '您是否确认导入库存?',
|
|
|
centered: true,
|
|
|
onOk () {
|
|
|
_this.spinning = true
|
|
@@ -155,7 +148,7 @@ export default {
|
|
|
const _this = this
|
|
|
this.$confirm({
|
|
|
title: '提示',
|
|
|
- content: '您确认取消导入产品的信息?',
|
|
|
+ content: '您确认取消导入库存?',
|
|
|
centered: true,
|
|
|
onOk () {
|
|
|
_this.spinning = true
|