浏览代码

库存导入对接

lilei 3 年之前
父节点
当前提交
b680cf018c

+ 2 - 2
src/api/stockImport.js

@@ -30,7 +30,7 @@ export const stockImportFinish = (params) => {
 //  散件导入  错误导出
 export const stockImportExportError = (params) => {
   return axios({
-    url: '/stockImport/exportForSpareParts',
+    url: '/stockImportDetail/exportForSpareParts',
     data: params,
     method: 'post',
     responseType: 'blob'
@@ -39,7 +39,7 @@ export const stockImportExportError = (params) => {
 //  库存导入  错误导出
 export const stockImportKCExportError = (params) => {
   return axios({
-    url: '/stockImport/exportForStock',
+    url: '/stockImportDetail/exportForStock',
     data: params,
     method: 'post',
     responseType: 'blob'

+ 1 - 1
src/views/bulkManagement/bulkImport/list.vue

@@ -114,7 +114,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/ShangHuProductImports.xlsx'
     }
   },
   methods: {

+ 7 - 14
src/views/inventoryManagement/inventoryImport/list.vue

@@ -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

+ 46 - 20
src/views/productManagement/newProduct/detailModal.vue

@@ -1,28 +1,39 @@
 <template>
   <a-modal
     centered
-    class="productInfoDetail-modal"
+    class="newProductDetail-modal"
     :footer="null"
     :maskClosable="false"
     title="产品详情"
     v-model="isShow"
     @cancle="isShow=false"
-    :width="800">
+    width="80%">
     <!-- 产品详情 -->
-    <div>
-      <a-descriptions bordered :column="2" size="small">
-        <a-descriptions-item label="产品名称:">{{ detailsData&&detailsData.name || '--' }}</a-descriptions-item>
-        <a-descriptions-item label="产品编码:">{{ detailsData&&detailsData.code || '--' }}</a-descriptions-item>
-        <a-descriptions-item label="原厂编码:">{{ detailsData&&detailsData.origCode || '--' }}</a-descriptions-item>
-        <a-descriptions-item label="基本单位:">{{ detailsData&&detailsData.unit || '--' }}</a-descriptions-item>
-        <a-descriptions-item label="产品品牌:">{{ detailsData&&detailsData.productBrandName || '--' }}</a-descriptions-item>
-        <a-descriptions-item label="产品分类:">{{ productTypeName || '--' }}</a-descriptions-item>
-        <a-descriptions-item label="经销批发价:">{{ detailsData&&(detailsData.specialPrice || detailsData.specialPrice==0) ? detailsData.specialPrice : '--' }}</a-descriptions-item>
-        <a-descriptions-item label="终端价:">{{ detailsData&&(detailsData.terminalPrice || detailsData.terminalPrice==0) ? detailsData.terminalPrice : '--' }}</a-descriptions-item>
-        <a-descriptions-item label="车主价:">{{ detailsData&&(detailsData.carOwnersPrice || detailsData.carOwnersPrice==0) ? detailsData.carOwnersPrice : '--' }}</a-descriptions-item>
-      </a-descriptions>
-      <div class="btn-cont"><a-button id="product-management-detail-modal-back" @click="isShow = false">返回列表</a-button></div>
+    <div class="productHead">
+      <div class="productImg">
+
+      </div>
+      <div>
+        <h4>{{ detailsData&&detailsData.name || '--' }}</h4>
+        <a-descriptions bordered :column="2" size="small">
+          <a-descriptions-item label="产品品牌:">{{ detailsData&&detailsData.productBrandName || '--' }}</a-descriptions-item>
+          <a-descriptions-item label="产品编码:">{{ detailsData&&detailsData.code || '--' }}</a-descriptions-item>
+          <a-descriptions-item label="原厂编码:">{{ detailsData&&detailsData.origCode || '--' }}</a-descriptions-item>
+          <a-descriptions-item label="商品尺寸:">{{ detailsData&&detailsData.name || '--' }}</a-descriptions-item>
+          <a-descriptions-item label="重量:">{{ detailsData&&detailsData.unit || '--' }}</a-descriptions-item>
+          <a-descriptions-item label="计量单位:">{{ detailsData&&detailsData.unit || '--' }}</a-descriptions-item>
+          <a-descriptions-item label="其它编号:">{{ detailsData&&(detailsData.specialPrice || detailsData.specialPrice==0) ? detailsData.specialPrice : '--' }}</a-descriptions-item>
+          <a-descriptions-item label="适用车型:">{{ productTypeName || '--' }}</a-descriptions-item>
+        </a-descriptions>
+      </div>
+    </div>
+    <div class="productDetail">
+      <h4>产品介绍</h4>
+      <div class="productDesc">
+        阿斯顿发链接撒旦发了就阿斯大幅拉四大佛教萨拉丁撒地方就拉萨撒萨德勒撒旦发了撒打发士大夫了士大夫了撒打发
+      </div>
     </div>
+    <div class="btn-cont"><a-button id="product-management-detail-modal-back" @click="isShow = false">返回列表</a-button></div>
   </a-modal>
 </template>
 
@@ -42,9 +53,9 @@ export default {
   },
   computed: {
     productTypeName () {
-      const productTypeName1 = this.detailsData&&this.detailsData.productTypeName1 ? this.detailsData.productTypeName1 : ''
-      const productTypeName2 = this.detailsData&&this.detailsData.productTypeName2 ? ' > ' + this.detailsData.productTypeName2 : ''
-      const productTypeName3 = this.detailsData&&this.detailsData.productTypeName3 ? ' > ' + this.detailsData.productTypeName3 : ''
+      const productTypeName1 = this.detailsData && this.detailsData.productTypeName1 ? this.detailsData.productTypeName1 : ''
+      const productTypeName2 = this.detailsData && this.detailsData.productTypeName2 ? ' > ' + this.detailsData.productTypeName2 : ''
+      const productTypeName3 = this.detailsData && this.detailsData.productTypeName3 ? ' > ' + this.detailsData.productTypeName3 : ''
       return productTypeName1 + productTypeName2 + productTypeName3
     }
   },
@@ -87,9 +98,24 @@ export default {
 </script>
 
 <style lang="less">
-  .productInfoDetail-modal{
+  .newProductDetail-modal{
     .ant-modal-body {
-      padding: 40px 40px 24px;
+      padding: 15px;
+      h4{
+        font-size: 18px;
+      }
+      .productDetail{
+        border: 1px solid #eee;
+        margin-top: 10px;
+        h4{
+          font-size: 14px;
+          padding: 5px 10px;
+          background-color: #dcf1ff;
+        }
+        .productDesc{
+          padding: 15px;
+        }
+      }
     }
     .ant-descriptions-item-label.ant-descriptions-item-colon{
       width: 120px;

+ 2 - 2
src/views/productManagement/newProduct/list.vue

@@ -58,13 +58,13 @@
             <a-col :md="6" :sm="24" style="margin-bottom: 10px;">
               <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="productInfoList-refresh">查询</a-button>
               <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="productInfoList-reset">重置</a-button>
-              <!-- <a-button
+              <a-button
                 style="margin: 0 0 18px 8px"
                 type="danger"
                 @click="handleExport"
                 :disabled="disabled"
                 :loading="exportLoading"
-                id="inventoryQueryList-export">导出</a-button> -->
+                id="newProduct-export">导出</a-button>
               <a @click="advanced=!advanced" style="margin-left: 5px">
                 {{ advanced ? '收起' : '展开' }}
                 <a-icon :type="advanced ? 'up' : 'down'"/>