-
-
-
-
- {{ scope.row.供应商名称 }}
-
-
-
-
- {{ scope.row.请款时间.split(' ')[0] }}
-
-
-
-
- {{ scope.row.姓名 }}
-
-
-
-
- {{ scope.row.请款金额 }}
-
-
-
-
- 通过
- 不通过
-
-
-
-
-
+
-
-
+
+
+
+ {{ scope.row.供应商名称 }}
+
+
+
+
+ {{ scope.row.请款时间.split(' ')[0] }}
+
+
+
+
+ {{ scope.row.姓名 }}
+
+
+
+
+ {{ scope.row.请款金额 }}
+
+
+
+
+ 通过
+ 不通过
+
+
+
+
+
+
+
+
+
{{ scope.row.采购合同编号 ? scope.row.采购合同编号 : scope.row.离线合同编号 }}
-
+
{{ parseFloat(scope.row.合同总金额).toFixed(2) }}
-
+
{{ parseFloat(scope.row.到货金额).toFixed(2) }}
-
+
{{ parseFloat(scope.row.已付金额).toFixed(2) }}
-
+
{{ parseFloat(scope.row.请款金额).toFixed(2) }}
-
-
-
-
-
-
-
+
- {{ scope.row.物料名称 ? scope.row.物料名称 : scope.row.零件名称 }}
+ {{ parseFloat(scope.row.到票金额).toFixed(2) }}
-
+
- {{ scope.row.物料规格 ? scope.row.物料规格 : scope.row.规格 }}
-
-
-
-
- {{ scope.row.物料型号 ? scope.row.物料型号 : scope.row.零件图号 }}
-
-
-
-
- {{ scope.row.数量 }}
-
-
-
-
- {{ scope.row.合同类型 === 1 ? scope.row.已到货数量 : scope.row.到货数量 }}
-
-
-
-
- {{ (parseFloat(scope.row.单价||0) * parseInt(scope.row.数量||0)).toFixed(2) }}
-
-
-
-
- {{ parseFloat(scope.row.单价||0).toFixed(2) }}
-
-
-
-
- {{ scope.row.合同类型 === 1 ? scope.row.交货期.split(' ')[0] === '1900-01-01' ? '-' : scope.row.交货期.split(' ')[0] : scope.row.交货期要求 }}
-
-
-
-
- {{ scope.row.备注 }}
+ {{ parseFloat(scope.row.尚欠金额).toFixed(2) }}
+
+
+
+
+
+ {{ scope.row.物料名称 ? scope.row.物料名称 : scope.row.零件名称 }}
+
+
+
+
+ {{ scope.row.物料规格 ? scope.row.物料规格 : scope.row.规格 }}
+
+
+
+
+ {{ scope.row.物料型号 ? scope.row.物料型号 : scope.row.零件图号 }}
+
+
+
+
+ {{ scope.row.外购件机床 || scope.row.基本件机床 }}
+
+
+
+
+ {{ scope.row.数量 }}
+
+
+
+
+ {{ scope.row.合同类型 === 1 ? scope.row.已到货数量 : scope.row.到货数量 }}
+
+
+
+
+ {{ parseFloat(scope.row.到货金额).toFixed(2) }}
+
+
+
+
+ {{ (parseFloat(scope.row.单价||0) * parseInt(scope.row.数量||0)).toFixed(2) }}
+
+
+
+
+ {{ parseFloat(scope.row.单价||0).toFixed(2) }}
+
+
+
+
+ {{ scope.row.合同类型 === 1 ? scope.row.交货期.split(' ')[0] === '1900-01-01' ? '-' : scope.row.交货期.split(' ')[0] : scope.row.交货期要求 }}
+
+
+
+
+ {{ scope.row.备注 }}
+
+
+
+
+
@@ -169,7 +191,7 @@ export default {
columns.forEach((column, index) => {
if (index === 0) {
sums[index] = '合计'
- } else if (index === 3) {
+ } else if (index === 4) {
const values = data.map(item => Number(parseFloat(item['数量'])))
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {
@@ -184,7 +206,7 @@ export default {
} else {
sums[index] = '0'
}
- } else if (index === 4) {
+ } else if (index === 5) {
for (let i = 0; i < data.length; i++) {
if (!data[i].到货数量) {
data[i].到货数量 = 0
@@ -207,7 +229,30 @@ export default {
} else {
sums[index] = '0'
}
- } else if (index === 5) {
+ } else if (index === 6) {
+ for (let i = 0; i < data.length; i++) {
+ if (!data[i].到货数量) {
+ data[i].到货数量 = 0
+ }
+ if (!data[i].已到货数量) {
+ data[i].已到货数量 = 0
+ }
+ }
+ const values = data.map(item => Number(parseInt(item['到货数量'])) * Number(parseInt(item['单价'])))
+ if (!values.every(value => isNaN(value))) {
+ sums[index] = values.reduce((prev, curr) => {
+ const value = Number(curr)
+ if (!isNaN(value)) {
+ return prev + curr
+ } else {
+ return prev
+ }
+ }, 0)
+ sums[index] = Number(sums[index]).toFixed(2) + ' 元'
+ } else {
+ sums[index] = '0.00'
+ }
+ } else if (index === 7) {
for (let i = 0; i < data.length; i++) {
if (!data[i].到货数量) {
data[i].到货数量 = 0
@@ -241,7 +286,7 @@ export default {
if (index === 0) {
sums[index] = '总价'
return
- } else if (index === 1 || index === 2 || index === 3 || index === 4) {
+ } else {
const values = data.map(item => Number(item[column.property]))
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {
diff --git a/src/views/PurchasingCenter/FundApproval2/index.vue b/src/views/PurchasingCenter/FundApproval2/index.vue
index 5efefdef..735cbb05 100644
--- a/src/views/PurchasingCenter/FundApproval2/index.vue
+++ b/src/views/PurchasingCenter/FundApproval2/index.vue
@@ -1,63 +1,69 @@