|
|
@@ -260,29 +260,33 @@
|
|
|
trigger: 'change'
|
|
|
}"
|
|
|
>
|
|
|
- <el-input
|
|
|
+ <!-- <el-input
|
|
|
v-model="scope.row.singlePrice"
|
|
|
placeholder="请输入"
|
|
|
@input="changeCount(scope.row, scope.$index)"
|
|
|
>
|
|
|
<template slot="append">元</template>
|
|
|
- </el-input>
|
|
|
- <!-- <el-popover placement="right" width="600" trigger="click">
|
|
|
- <el-table >
|
|
|
+ </el-input> -->
|
|
|
+ <el-popover
|
|
|
+ placement="right"
|
|
|
+ width="600"
|
|
|
+ trigger="click"
|
|
|
+ @show="getPurchaseSinglePrice(scope.row)"
|
|
|
+ >
|
|
|
+ <el-table :data="purchaseSinglePriceData">
|
|
|
<el-table-column
|
|
|
width="300"
|
|
|
- property="date"
|
|
|
+ property="supplierName"
|
|
|
label="供应商"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
- width="150"
|
|
|
- property="name"
|
|
|
- label="最近采购价格"
|
|
|
+ width="160"
|
|
|
+ property="purchaseDate"
|
|
|
+ label=" 采购日期"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
- width="150"
|
|
|
- property="address"
|
|
|
- label="历史采购价格"
|
|
|
+ property="singlePrice"
|
|
|
+ label="采购价格"
|
|
|
></el-table-column>
|
|
|
</el-table>
|
|
|
<el-input
|
|
|
@@ -293,7 +297,7 @@
|
|
|
>
|
|
|
<template slot="append">元</template>
|
|
|
</el-input>
|
|
|
- </el-popover> -->
|
|
|
+ </el-popover>
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
<template v-slot:goodsPriceType="{ row, $index }">
|
|
|
@@ -564,7 +568,7 @@
|
|
|
import { levelList } from '@/enum/dict.js';
|
|
|
import { getGoodsPriceByCondition } from '@/api/goodsManage/index';
|
|
|
import { changeCount, getAllPrice } from '@/BIZComponents/setProduct.js';
|
|
|
-
|
|
|
+ import { queryHistoricalUnitPrice } from '@/api/purchasingManage/purchaseOrder';
|
|
|
const dayjs = require('dayjs');
|
|
|
|
|
|
export default {
|
|
|
@@ -615,6 +619,7 @@
|
|
|
};
|
|
|
return {
|
|
|
levelList,
|
|
|
+ purchaseSinglePriceData: [],
|
|
|
cacheKeyUrl: 'eos-purchasingManage-purchaseOrder-inventoryTable',
|
|
|
pricingWayList,
|
|
|
discountTotalPrice: 0.0,
|
|
|
@@ -1001,6 +1006,12 @@
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ async getPurchaseSinglePrice(row) {
|
|
|
+ this.purchaseSinglePriceData = [];
|
|
|
+ this.purchaseSinglePriceData = await queryHistoricalUnitPrice(
|
|
|
+ row.productId
|
|
|
+ );
|
|
|
+ },
|
|
|
downloadFile(file) {
|
|
|
getFile({ objectName: file.storePath }, file.name);
|
|
|
},
|