lilei 4 年 前
コミット
6c6b15c35b

+ 6 - 1
src/views/purchasingManagement/purchaseOrder/warehousing.vue

@@ -26,6 +26,11 @@
         :tableId="item.receivingBillSn"
         :scroll="{ x: 1360 }"
         bordered>
+        <!-- 采购数量 -->
+        <template slot="origqty" slot-scope="text, record, index">
+          <div>{{ text }}</div>
+          <div>原采购数量:{{ record.origqty }}</div>
+        </template>
         <!-- 仓库仓位 -->
         <template slot="warehousePosition" slot-scope="text, record, index">
           <a-cascader
@@ -83,7 +88,7 @@ export default {
         { title: '产品名称', dataIndex: 'dealerProductEntity.name', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '原厂编码', dataIndex: 'dealerProductEntity.origCode', width: 140, align: 'center', customRender: function (text) { return text = ' ' ? '--' : text } },
         { title: '采购单价', dataIndex: 'price', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '采购数量', dataIndex: 'qty', width: 100, align: 'center', customRender: function (text) { return text || 0 } },
+        { title: '采购数量', dataIndex: 'qty', width: 100, align: 'center', scopedSlots: { customRender: 'origqty' } },
         { title: '本次发货数量', dataIndex: 'oosQty', width: 100, align: 'center', customRender: function (text) { return text || 0 } },
         { title: '单位', dataIndex: 'dealerProductEntity.unit', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '采购金额', dataIndex: 'totalAmount', width: 100, align: 'center', customRender: function (text) { return '¥' + (text || 0) }, fixed: 'right' },