浏览代码

汽配连锁,采购退货,可退数量提示

chenrui 3 年之前
父节点
当前提交
2c29cb63cb
共有 1 个文件被更改,包括 11 次插入2 次删除
  1. 11 2
      src/views/purchasingManagement/purchaseReturn/edit.vue

+ 11 - 2
src/views/purchasingManagement/purchaseReturn/edit.vue

@@ -46,8 +46,17 @@
               :rowKey="(record) => record.id"
               :columns="columns"
               :data="loadData"
-              :scroll="{ x: 1070, y: 300 }"
+              :scroll="{ x: 1080, y: 300 }"
               bordered>
+              <!-- 自定义表头 -->
+              <template slot="refundableQtyTitle">
+                <a-tooltip placement="top">
+                  <template slot="title">
+                    <span>同一个采购单,可多次退货,所以可退数量=采购数量-已退货数量</span>
+                  </template>
+                  可退数量<a-icon type="question-circle" :style="{ marginLeft: '3px' }" />
+                </a-tooltip>
+              </template>
               <!-- 数量 -->
               <template slot="returnQty" slot-scope="text, record">
                 <a-input-number
@@ -161,7 +170,7 @@ export default {
         { title: '产品编码', dataIndex: 'dealerProductEntity.code', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '产品名称', dataIndex: 'dealerProductEntity.name', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '采购总数', dataIndex: 'qty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '可退数量', dataIndex: 'refundableQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { slots: { title: 'refundableQtyTitle' }, dataIndex: 'refundableQty', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '库存数量', dataIndex: 'stock.currentStockQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '退货数量', scopedSlots: { customRender: 'returnQty' }, width: 100, align: 'center' },
         { title: '采购价', dataIndex: 'price', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },