|
@@ -136,23 +136,33 @@
|
|
<el-table-column prop="goodsFactory" label="厂家" show-overflow-tooltip />
|
|
<el-table-column prop="goodsFactory" label="厂家" show-overflow-tooltip />
|
|
<el-table-column prop="goodsUnit" label="单位" show-overflow-tooltip />
|
|
<el-table-column prop="goodsUnit" label="单位" show-overflow-tooltip />
|
|
<el-table-column prop="goodsQuantity" label="数量" show-overflow-tooltip />
|
|
<el-table-column prop="goodsQuantity" label="数量" show-overflow-tooltip />
|
|
- <el-table-column prop="referencePrice" label="参考价格" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column prop="referencePrice" width="180" label="参考价格" show-overflow-tooltip>
|
|
<template slot="header" slot-scope="scope">
|
|
<template slot="header" slot-scope="scope">
|
|
<el-tooltip class="item" effect="dark" content="网价" placement="top">
|
|
<el-tooltip class="item" effect="dark" content="网价" placement="top">
|
|
<span class="table-tip-icon">!</span>
|
|
<span class="table-tip-icon">!</span>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
<span>参考价格</span>
|
|
<span>参考价格</span>
|
|
</template>
|
|
</template>
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>{{ formatMoney(scope.row.referencePrice, 4) }}</div>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="floatingPrice" label="浮动价格" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column prop="floatingPrice" width="180" label="浮动价格" show-overflow-tooltip>
|
|
<template slot="header" slot-scope="scope">
|
|
<template slot="header" slot-scope="scope">
|
|
<el-tooltip class="item" effect="dark" content="合约中约定的上下浮动差价" placement="top">
|
|
<el-tooltip class="item" effect="dark" content="合约中约定的上下浮动差价" placement="top">
|
|
<span class="table-tip-icon">!</span>
|
|
<span class="table-tip-icon">!</span>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
<span>浮动价格</span>
|
|
<span>浮动价格</span>
|
|
</template>
|
|
</template>
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>{{ formatMoney(scope.row.floatingPrice, 4) }}</div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="salesPrice" width="180" label="销售单价(元)" show-overflow-tooltip>
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>{{ formatMoney(scope.row.salesPrice, 4) }}</div>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="salesPrice" label="销售单价(元)" show-overflow-tooltip />
|
|
|
|
<el-table-column prop="acceptanceDate" label="验收日期" show-overflow-tooltip />
|
|
<el-table-column prop="acceptanceDate" label="验收日期" show-overflow-tooltip />
|
|
<el-table-column prop="" label="操作">
|
|
<el-table-column prop="" label="操作">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -218,6 +228,8 @@
|
|
<script>
|
|
<script>
|
|
import { exportFile, exportUrl } from '@/utils/index'
|
|
import { exportFile, exportUrl } from '@/utils/index'
|
|
import { getDetails, getOperaterOfCore, getCompletedProjectList, getCompletedProjectDetail, getSteelBillNumber, getGoodsBySaleNumber, acceptanceAddInfo, download, importGoodsTemplate, acceptanceUpdateInfo, previewUpFile } from '@/api/myTrade/acceptanceManagement/index'
|
|
import { getDetails, getOperaterOfCore, getCompletedProjectList, getCompletedProjectDetail, getSteelBillNumber, getGoodsBySaleNumber, acceptanceAddInfo, download, importGoodsTemplate, acceptanceUpdateInfo, previewUpFile } from '@/api/myTrade/acceptanceManagement/index'
|
|
|
|
+import { formatMoney } from '@/utils'
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
name: 'AcceptanceFormAdd',
|
|
name: 'AcceptanceFormAdd',
|
|
components: {
|
|
components: {
|
|
@@ -367,6 +379,13 @@ export default {
|
|
originFileIds: []
|
|
originFileIds: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ formatMoney() {
|
|
|
|
+ return (val, reserveNum) => {
|
|
|
|
+ return formatMoney(val, reserveNum)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ },
|
|
watch: {
|
|
watch: {
|
|
goodsInfoList: {
|
|
goodsInfoList: {
|
|
handler(newV) {
|
|
handler(newV) {
|
|
@@ -592,7 +611,7 @@ export default {
|
|
if (res.data.length) {
|
|
if (res.data.length) {
|
|
this.goodsInfoList = []
|
|
this.goodsInfoList = []
|
|
res.data.map(item => {
|
|
res.data.map(item => {
|
|
- item.salesPrice = parseFloat(item.referencePrice + item.floatingPrice).toFixed(2)
|
|
|
|
|
|
+ item.salesPrice = parseFloat(item.referencePrice + item.floatingPrice).toFixed(4)
|
|
item.acceptanceDate = item.acceptanceDate.split(' ')[0]
|
|
item.acceptanceDate = item.acceptanceDate.split(' ')[0]
|
|
this.goodsInfoList.push(item)
|
|
this.goodsInfoList.push(item)
|
|
})
|
|
})
|