|
@@ -83,6 +83,7 @@
|
|
<a-alert type="info" style="margin-bottom:10px">
|
|
<a-alert type="info" style="margin-bottom:10px">
|
|
<div class="ftext" slot="message">
|
|
<div class="ftext" slot="message">
|
|
产品总数量:<strong>{{ (totalData && (totalData.purchaseQty || totalData.purchaseQty==0)) ? totalData.purchaseQty : '--' }}</strong>;
|
|
产品总数量:<strong>{{ (totalData && (totalData.purchaseQty || totalData.purchaseQty==0)) ? totalData.purchaseQty : '--' }}</strong>;
|
|
|
|
+ 退货总金额:<strong>{{ (totalData && (totalData.productTotalPrice || totalData.productTotalPrice==0)) ? toThousands(totalData.productTotalPrice) : '--' }}</strong>;
|
|
<div v-if="$hasPermissions('M_ShowAllCost')" style="display: inline-block;">
|
|
<div v-if="$hasPermissions('M_ShowAllCost')" style="display: inline-block;">
|
|
退货总成本:<strong>{{ (totalData && (totalData.purchaseTotalCost || totalData.purchaseTotalCost==0)) ? toThousands(totalData.purchaseTotalCost) : '--' }}</strong>;
|
|
退货总成本:<strong>{{ (totalData && (totalData.purchaseTotalCost || totalData.purchaseTotalCost==0)) ? toThousands(totalData.purchaseTotalCost) : '--' }}</strong>;
|
|
</div>
|
|
</div>
|
|
@@ -103,9 +104,9 @@
|
|
@mouseleave="(record, index) => openPopid = ''"
|
|
@mouseleave="(record, index) => openPopid = ''"
|
|
bordered>
|
|
bordered>
|
|
<template slot="cost" slot-scope="text, record">
|
|
<template slot="cost" slot-scope="text, record">
|
|
- <a-popover placement="top" :visible="openPopid == record.no">
|
|
|
|
|
|
+ <a-popover placement="top" :visible="openPopid == record.no && !!record.stockOutDetailList">
|
|
<template slot="content">
|
|
<template slot="content">
|
|
- <a-table bordered :columns="costColumns" :pagination="false" :data-source="record.tableData"></a-table>
|
|
|
|
|
|
+ <a-table bordered :columns="costColumns" :pagination="false" :data-source="record.stockOutDetailList"></a-table>
|
|
</template>
|
|
</template>
|
|
{{ toThousands(text) }}
|
|
{{ toThousands(text) }}
|
|
</a-popover>
|
|
</a-popover>
|
|
@@ -189,9 +190,9 @@ export default {
|
|
costColumns(){
|
|
costColumns(){
|
|
const _this = this
|
|
const _this = this
|
|
return [
|
|
return [
|
|
- { title: '批次号', dataIndex: 'sparePartsReturnNo', width: '150px', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '成本单价', dataIndex: 'productTotalPrice', width: '100px', align: 'center', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
- { title: '数量', dataIndex: 'purchaseQty', width: '100px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
|
|
|
|
+ { title: '批次号', dataIndex: 'stockBatchNo', width: '150px', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ // { title: '成本单价', dataIndex: 'putCost', width: '100px', align: 'center', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
|
+ { title: '数量', dataIndex: 'outQty', width: '100px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
]
|
|
]
|
|
},
|
|
},
|
|
columns () {
|
|
columns () {
|