|
@@ -98,7 +98,7 @@ export default {
|
|
customRender: function (text, record) {
|
|
customRender: function (text, record) {
|
|
let str
|
|
let str
|
|
if (record.beginDetail) {
|
|
if (record.beginDetail) {
|
|
- if (text || text == 0) {
|
|
|
|
|
|
+ if (text) {
|
|
str = '¥' + text
|
|
str = '¥' + text
|
|
} else {
|
|
} else {
|
|
str = '--'
|
|
str = '--'
|
|
@@ -128,7 +128,7 @@ export default {
|
|
customRender: function (text, record) {
|
|
customRender: function (text, record) {
|
|
let str
|
|
let str
|
|
if (record.putDetail) {
|
|
if (record.putDetail) {
|
|
- if (text || text == 0) {
|
|
|
|
|
|
+ if (text) {
|
|
str = '¥' + text
|
|
str = '¥' + text
|
|
} else {
|
|
} else {
|
|
str = '--'
|
|
str = '--'
|
|
@@ -158,7 +158,7 @@ export default {
|
|
customRender: function (text, record) {
|
|
customRender: function (text, record) {
|
|
let str
|
|
let str
|
|
if (record.outDetail) {
|
|
if (record.outDetail) {
|
|
- if (text || text == 0) {
|
|
|
|
|
|
+ if (text) {
|
|
str = '¥' + text
|
|
str = '¥' + text
|
|
} else {
|
|
} else {
|
|
str = '--'
|
|
str = '--'
|
|
@@ -188,7 +188,7 @@ export default {
|
|
customRender: function (text, record) {
|
|
customRender: function (text, record) {
|
|
let str
|
|
let str
|
|
if (record.endDetail) {
|
|
if (record.endDetail) {
|
|
- if (text || text == 0) {
|
|
|
|
|
|
+ if (text) {
|
|
str = '¥' + text
|
|
str = '¥' + text
|
|
} else {
|
|
} else {
|
|
str = '--'
|
|
str = '--'
|
|
@@ -219,7 +219,7 @@ export default {
|
|
}
|
|
}
|
|
// 组装数据
|
|
// 组装数据
|
|
data = [
|
|
data = [
|
|
- { no: 1, beginDetail: '期初余额', beginAmount: res.data.beginAmount, putDetail: '采购入库', putAmount: res.data.putPurchaseAmount, outDetail: '采购退货', outAmount: res.data.outPurchaseReturnAmount, endDetail: null, endAmount: null },
|
|
|
|
|
|
+ { no: 1, beginDetail: '期初金额', beginAmount: res.data.beginAmount, putDetail: '采购入库', putAmount: res.data.putPurchaseAmount, outDetail: '采购退货', outAmount: res.data.outPurchaseReturnAmount, endDetail: null, endAmount: null },
|
|
{ no: 2, beginDetail: null, beginAmount: null, putDetail: '散件入库', putAmount: res.data.putSparePartsAmount, outDetail: '散件退货', outAmount: res.data.outSparePartsReturnAmount, endDetail: null, endAmount: null },
|
|
{ no: 2, beginDetail: null, beginAmount: null, putDetail: '散件入库', putAmount: res.data.putSparePartsAmount, outDetail: '散件退货', outAmount: res.data.outSparePartsReturnAmount, endDetail: null, endAmount: null },
|
|
{ no: 3, beginDetail: null, beginAmount: null, putDetail: '销售退货', putAmount: res.data.putSalesReturnAmount, outDetail: '销售', outAmount: res.data.outSalesAmount, endDetail: null, endAmount: null },
|
|
{ no: 3, beginDetail: null, beginAmount: null, putDetail: '销售退货', putAmount: res.data.putSalesReturnAmount, outDetail: '销售', outAmount: res.data.outSalesAmount, endDetail: null, endAmount: null },
|
|
{ no: 4, beginDetail: null, beginAmount: null, putDetail: '仓库调入', putAmount: res.data.putWarehouseCallInAmount, outDetail: '仓库调出', outAmount: res.data.outWarehouseCallOutAmount, endDetail: null, endAmount: null },
|
|
{ no: 4, beginDetail: null, beginAmount: null, putDetail: '仓库调入', putAmount: res.data.putWarehouseCallInAmount, outDetail: '仓库调出', outAmount: res.data.outWarehouseCallOutAmount, endDetail: null, endAmount: null },
|