chenrui 2 лет назад
Родитель
Сommit
bef65ce20e

+ 6 - 1
src/views/purchasingManagement/bulkWarehousingOrder/detailModal.vue

@@ -44,6 +44,11 @@
         :columns="columns"
         :data="loadData"
         bordered>
+        <!-- 产品名称 -->
+        <template slot="productName" slot-scope="text, record">
+          {{ record.productName }}
+          <a-tag color="red" v-if="record.giftFlag==1">赠品</a-tag>
+        </template>
       </s-table>
     </a-card>
     <div class="btn-cont">
@@ -97,7 +102,7 @@ export default {
       const arr = [
         { title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
         { title: '产品编码', dataIndex: 'productCode', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '产品名称', dataIndex: 'productName', width: '40%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '产品名称', scopedSlots: { customRender: 'productName' }, width: '40%', align: 'center', ellipsis: true },
         { title: '单位', dataIndex: 'unit', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '入库数量', dataIndex: 'productQty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         // { title: '入库单价', dataIndex: 'productCost',width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },

+ 3 - 4
src/views/purchasingManagement/bulkWarehousingOrder/importGuideModal.vue

@@ -15,10 +15,9 @@
             <span>1</span>准备导入
           </div>
           <ul>
-            <li>1) 导入的Excel文件中必须包含名为“产品编码”、“数量”的列,且名称必须相同</li>
-            <li>2) 除了“产品编码”、“数量”、“成本价”两列,其他列可自定义,不影响数据导入</li>
-            <li>3) “成本价”为空或输入的价格与系统设置相同时,允许导入</li>
-            <li>4) 如果导入的产品已经存在,则不会导入该行</li>
+            <li>1) 导入的Excel文件中必须包含名为“产品编码”、“数量”的列,且名称必须与系统相同</li>
+            <li>2) 除了“产品编码”、“数量”、“成本价”三列,其他列可自定义,不影响数据导入</li>
+            <li>3) “成本价”为0或输入的价格与系统相同时,允许导入,成本价为0按赠品处理</li>
           </ul>
           <a-button type="link" icon="download" style="padding: 0 0 0 23px;" :loading="exportLoading" @click="handleExport">下载导入模板</a-button>
         </div>