|
@@ -867,12 +867,13 @@
|
|
|
<vxe-column field="material2Price" title="主材2单价(元/(吨/方))" width="160" :edit-render="{ name: 'VxeNumberInput' }"></vxe-column>
|
|
|
<vxe-column field="mainMaterialCost" title="主材费/设备报价(含税不含运费不含安装调试费)" width="160">
|
|
|
<template #default="{ row }">
|
|
|
- <span>{{ row.mainMaterialCost = isNaN(((row.material2 && row.material2 !== '无')
|
|
|
- ? ((row.material1Quantity / (row.material1UseRatio / 100) * row.material1Price) + (row.material2Quantity / (row.material2UseRatio / 100) * row.material2Price)).toFixed(0)
|
|
|
- : (row.material1Quantity / (row.material1UseRatio / 100) * row.material1Price).toFixed(0)))
|
|
|
- ? 0
|
|
|
- : ((row.material2 && row.material2 !== '无')
|
|
|
- ? ((row.material1Quantity / (row.material1UseRatio / 100) * row.material1Price) + (row.material2Quantity / (row.material2UseRatio / 100) * row.material2Price)).toFixed(0)
|
|
|
+ <span>
|
|
|
+ {{ row.mainMaterialCost = isNaN(((row.material2 && row.material2 !== '无')
|
|
|
+ ? ((row.material1Quantity / (row.material1UseRatio / 100) * row.material1Price) + (row.material2Quantity / (row.material2UseRatio / 100) * row.material2Price)).toFixed(0)
|
|
|
+ : (row.material1Quantity / (row.material1UseRatio / 100) * row.material1Price).toFixed(0)))
|
|
|
+ ? 0
|
|
|
+ : ((row.material2 && row.material2 !== '无')
|
|
|
+ ? ((row.material1Quantity / (row.material1UseRatio / 100) * row.material1Price) + (row.material2Quantity / (row.material2UseRatio / 100) * row.material2Price)).toFixed(0)
|
|
|
: (row.material1Quantity / (row.material1UseRatio / 100) * row.material1Price).toFixed(0)) }}
|
|
|
</span>
|
|
|
</template>
|
|
@@ -1041,7 +1042,7 @@ import {
|
|
|
getNonSDataPage,
|
|
|
updateNonSData,
|
|
|
updateBatchNonSData,
|
|
|
- deleteEqptDataById
|
|
|
+ deleteEqptDataById,
|
|
|
} from '@/api/assetsCalculateEqptData'
|
|
|
import { getDaysBetween } from '@/utils/date'
|
|
|
import { eqptLifeIfrRefsList } from '@/api/eqptLifeIfrRefs'
|
|
@@ -1427,7 +1428,6 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
this.getEqptLifeIfrRefs()
|
|
|
- // this.getEqptTableFilter(this.eqptPageData)
|
|
|
})
|
|
|
},
|
|
|
// 分页查询进口设备信息
|
|
@@ -1451,7 +1451,6 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
- // this.getEqptTableFilter(this.eqptImpPageData)
|
|
|
})
|
|
|
},
|
|
|
// 分页查询非标设备信息
|
|
@@ -1476,7 +1475,6 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
this.getEqptGnEvpList()
|
|
|
- // this.getEqptTableFilter(this.eqptNonSPageData)
|
|
|
})
|
|
|
},
|
|
|
// 获取测算表基础信息
|
|
@@ -1609,16 +1607,15 @@ export default {
|
|
|
},
|
|
|
// 计算单价
|
|
|
countPrice(row) {
|
|
|
- console.log('in')
|
|
|
if (row.valuationMethod === '物价指数调整法' && row.inquiryBasis) {
|
|
|
if (row.inquiryBasis.includes(':')) {
|
|
|
const parts = row.inquiryBasis.split(':')
|
|
|
if (parts.length > 1) {
|
|
|
let ppi = parts[1].trim()
|
|
|
- row.price = (row.unTaxedUnitPrice * ppi).toFixed(2)
|
|
|
+ row.price = (row.unTaxedUnitPrice * ppi * 1.13).toFixed(2)
|
|
|
}
|
|
|
} else {
|
|
|
- row.price = (row.unTaxedUnitPrice * row.inquiryBasis).toFixed(2)
|
|
|
+ row.price = (row.unTaxedUnitPrice * row.inquiryBasis * 1.13).toFixed(2)
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -1658,7 +1655,6 @@ export default {
|
|
|
message: res.message,
|
|
|
type: 'success',
|
|
|
})
|
|
|
- this.getEqptDataPage()
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
@@ -1985,7 +1981,7 @@ export default {
|
|
|
fileUtil.download('/file/download/assets/declarationForm?tmplCode=DECLARATION_FORM')
|
|
|
},
|
|
|
deleteEqptDataById(eqptId) {
|
|
|
- deleteEqptDataById(eqptId).then(res => {
|
|
|
+ deleteEqptDataById(eqptId).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
ElMessage({
|
|
|
showClose: true,
|
|
@@ -1995,7 +1991,7 @@ export default {
|
|
|
this.getEqptDataPage()
|
|
|
}
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|