Commit 76bc07ee by 张立顺

Merge branch 'SAAS+v5.5.4' into 'develop'

上线合并

See merge request !534
2 parents 253c79b2 8b53fee7
...@@ -3,6 +3,14 @@ export function getCurrentSixMonth(n = 5) { ...@@ -3,6 +3,14 @@ export function getCurrentSixMonth(n = 5) {
return [new Date(new Date().setMonth(new Date().getMonth() - n)), new Date()] return [new Date(new Date().setMonth(new Date().getMonth() - n)), new Date()]
} }
export function formatThousand(val) {
if (val === null || val === undefined || val === "") return "-"
const str = String(val)
const parts = str.split(".")
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",")
return parts.join(".")
}
// 新值,旧值,整数部分位数,小数部分位数,最小值,最大值,规则 // 新值,旧值,整数部分位数,小数部分位数,最小值,最大值,规则
export function limitPrice( export function limitPrice(
newValue, newValue,
......
...@@ -38,6 +38,8 @@ import { tradeTypeList } from "@/common/constant/vehicle" ...@@ -38,6 +38,8 @@ import { tradeTypeList } from "@/common/constant/vehicle"
import dayjs from "dayjs" import dayjs from "dayjs"
import addDialog from "./addDialog.vue" import addDialog from "./addDialog.vue"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin" import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
import { formatThousand } from "@/common/format"
export default { export default {
name: 'ManageReceiptDailog', name: 'ManageReceiptDailog',
mixins: [reportTrackPageMixin], mixins: [reportTrackPageMixin],
...@@ -111,9 +113,7 @@ export default { ...@@ -111,9 +113,7 @@ export default {
label: '金额', label: '金额',
prop: 'tradeAmount', prop: 'tradeAmount',
width: 110, width: 110,
// formatter: (cellValue) => { formatter: (row) => formatThousand(row.tradeAmount)
// return cellValue.upgradeGoodsName || '-'
// }
}, { }, {
label: '收款类型', label: '收款类型',
prop: 'tradeType', prop: 'tradeType',
......
...@@ -39,6 +39,8 @@ import { tradeTypeList } from "@/common/constant/vehicle" ...@@ -39,6 +39,8 @@ import { tradeTypeList } from "@/common/constant/vehicle"
import dayjs from "dayjs" import dayjs from "dayjs"
import addDialog from "./addDialog.vue" import addDialog from "./addDialog.vue"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin" import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
import { formatThousand } from "@/common/format"
export default { export default {
name: 'PaymentDialog', name: 'PaymentDialog',
mixins: [reportTrackPageMixin], mixins: [reportTrackPageMixin],
...@@ -112,9 +114,7 @@ export default { ...@@ -112,9 +114,7 @@ export default {
label: '金额', label: '金额',
prop: 'tradeAmount', prop: 'tradeAmount',
width: 110, width: 110,
// formatter: (cellValue) => { formatter: (row) => formatThousand(row.tradeAmount)
// return cellValue.upgradeGoodsName || '-'
// }
}, { }, {
label: '付款类型', label: '付款类型',
prop: 'tradeType', prop: 'tradeType',
......
...@@ -39,6 +39,8 @@ import { tradeTypeList } from "@/common/constant/vehicle" ...@@ -39,6 +39,8 @@ import { tradeTypeList } from "@/common/constant/vehicle"
import dayjs from "dayjs" import dayjs from "dayjs"
import addDialog from "./addDialog.vue" import addDialog from "./addDialog.vue"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin" import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
import { formatThousand } from "@/common/format"
export default { export default {
name: 'TrafficFeeDialog', name: 'TrafficFeeDialog',
mixins: [reportTrackPageMixin], mixins: [reportTrackPageMixin],
...@@ -129,25 +131,19 @@ export default { ...@@ -129,25 +131,19 @@ export default {
label: '收款金额', label: '收款金额',
prop: 'receiveAmount', prop: 'receiveAmount',
// width: 140, // width: 140,
// formatter: (cellValue) => { formatter: (row) => formatThousand(row.receiveAmount)
// return cellValue?.thirdPartyCode || '-'
// }
}, },
{ {
label: '流量费', label: '流量费',
prop: 'trafficFee', prop: 'trafficFee',
// width: 140, // width: 140,
// formatter: (cellValue) => { formatter: (row) => formatThousand(row.trafficFee)
// return cellValue?.thirdPartyCode || '-'
// }
}, },
{ {
label: '我司收益', label: '我司收益',
prop: 'ourRevenue', prop: 'ourRevenue',
// width: 140, // width: 140,
// formatter: (cellValue) => { formatter: (row) => formatThousand(row.ourRevenue)
// return cellValue?.thirdPartyCode || '-'
// }
}, },
{ {
label: '可抵收益月份', label: '可抵收益月份',
......
...@@ -98,7 +98,6 @@ export default { ...@@ -98,7 +98,6 @@ export default {
} }
], ],
deductibleMonth: [ deductibleMonth: [
{ required: true, message: "请选择可抵收益日期", trigger: "change" },
{ validator: (rule, value, callback) => this.validateDeductibleMonth(rule, value, callback), trigger: "change" } { validator: (rule, value, callback) => this.validateDeductibleMonth(rule, value, callback), trigger: "change" }
] ]
}, },
......
...@@ -49,6 +49,8 @@ import { advancePaymentShopDetailPage } from "@api/prepaymentManage" ...@@ -49,6 +49,8 @@ import { advancePaymentShopDetailPage } from "@api/prepaymentManage"
import { mapActions, mapState } from "vuex" import { mapActions, mapState } from "vuex"
import dayjs from "dayjs" import dayjs from "dayjs"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin" import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
import { formatThousand } from "@/common/format"
export default { export default {
name: "usedCarPaymentManage", name: "usedCarPaymentManage",
mixins: [reportTrackPageMixin], mixins: [reportTrackPageMixin],
...@@ -78,42 +80,50 @@ export default { ...@@ -78,42 +80,50 @@ export default {
{ {
label: "广联付款", label: "广联付款",
prop: "payAmount", prop: "payAmount",
minWidth: 110 minWidth: 110,
formatter: (row) => formatThousand(row.payAmount)
}, },
{ {
label: "广联收款", label: "广联收款",
prop: "receiveAmount", prop: "receiveAmount",
minWidth: 110, minWidth: 110,
formatter: (row) => formatThousand(row.receiveAmount)
}, },
{ {
label: "应抵流量费", label: "应抵流量费",
prop: "trafficFee", prop: "trafficFee",
minWidth: 110, minWidth: 110,
formatter: (row) => formatThousand(row.trafficFee)
}, },
{ {
label: "我司收益", label: "我司收益",
prop: "ourRevenue", prop: "ourRevenue",
minWidth: 110, minWidth: 110,
formatter: (row) => formatThousand(row.ourRevenue)
}, },
{ {
label: "可抵扣我司收益", label: "可抵扣我司收益",
prop: "deductibleOurRevenue", prop: "deductibleOurRevenue",
minWidth: 110, minWidth: 110,
formatter: (row) => formatThousand(row.deductibleOurRevenue)
}, },
{ {
label: "应抵流量预付余额", label: "应抵流量预付余额",
prop: "trafficFeeBalance", prop: "trafficFeeBalance",
minWidth: 90, minWidth: 90,
formatter: (row) => formatThousand(row.trafficFeeBalance)
}, },
{ {
label: "可抵收益预付余额", label: "可抵收益预付余额",
prop: "deductibleRevenueBalance", prop: "deductibleRevenueBalance",
minWidth: 90, minWidth: 90,
formatter: (row) => formatThousand(row.deductibleRevenueBalance)
}, },
{ {
label: "日均流量费", label: "日均流量费",
prop: "dayAvgTrafficFee", prop: "dayAvgTrafficFee",
minWidth: 90, minWidth: 90,
formatter: (row) => formatThousand(row.dayAvgTrafficFee)
}, },
{ {
label: "备注", label: "备注",
......
...@@ -59,6 +59,7 @@ import reportTrackPageMixin from "@/mixins/reportTrackPageMixin" ...@@ -59,6 +59,7 @@ import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
import ManageReceiptDialog from './components/ManageReceiptDialog/ManageReceiptDailog.vue' import ManageReceiptDialog from './components/ManageReceiptDialog/ManageReceiptDailog.vue'
import TrafficFeeDialog from './components/TrafficFeeDialog/TrafficFeeDialog.vue' import TrafficFeeDialog from './components/TrafficFeeDialog/TrafficFeeDialog.vue'
import PaymentDialog from './components/PaymentDialog/PaymentDialog.vue' import PaymentDialog from './components/PaymentDialog/PaymentDialog.vue'
import { formatThousand } from "@/common/format"
export default { export default {
name: "prepaymentManage", name: "prepaymentManage",
...@@ -86,8 +87,8 @@ export default { ...@@ -86,8 +87,8 @@ export default {
}, },
searchSelectObj: { searchSelectObj: {
divisionOrPayDate: { divisionOrPayDate: {
attr: 'daterange', attr: 'monthrange',
value: [dayjs(), dayjs()] value: [dayjs('2025-05'), dayjs().subtract(1, 'month')]
} }
}, },
showFormData: [ showFormData: [
...@@ -161,62 +162,69 @@ export default { ...@@ -161,62 +162,69 @@ export default {
label: "期初余额", label: "期初余额",
prop: "startBalance", prop: "startBalance",
minWidth: '90px', minWidth: '90px',
formatter: (row) => formatThousand(row.startBalance)
}, },
{ {
label: "本期收款(嘀加收款)", label: "本期收款(嘀加收款)",
children: [ children: [
{ label: '银盛收款', prop: 'yseReceiveAmount', minWidth: '110px' }, { label: '银盛收款', prop: 'yseReceiveAmount', minWidth: '110px', formatter: (row) => formatThousand(row.yseReceiveAmount) },
{ {
label: '银行转账(对公)', label: '银行转账(对公)',
prop: 'bankTransferReceiveAmount', prop: 'bankTransferReceiveAmount',
minWidth: '120px', minWidth: '120px',
// formatter: row => row.listShowSpecificationData || '-' formatter: (row) => formatThousand(row.bankTransferReceiveAmount)
} }
] ]
}, },
{ {
label: "本期付款", label: "本期付款",
children: [ children: [
{ label: '银行承兑', prop: 'bankAcceptancePayAmount', minWidth: '100px' }, { label: '银行承兑', prop: 'bankAcceptancePayAmount', minWidth: '100px', formatter: (row) => formatThousand(row.bankAcceptancePayAmount) },
{ {
label: '银行转账', label: '银行转账',
prop: 'bankTransferPayAmount', prop: 'bankTransferPayAmount',
minWidth: '100px' minWidth: '100px',
formatter: (row) => formatThousand(row.bankTransferPayAmount)
} }
] ]
}, },
{ {
label: "资金占用", label: "期末余额",
prop: "endBalance", prop: "endBalance",
minWidth: '90px', minWidth: '90px',
formatter: (row) => formatThousand(row.endBalance)
}, },
{ {
label: "预付期初余额", label: "预付期初余额",
children: [ children: [
{ label: '应抵预付余额', prop: 'startShouldDeductPrepaidBalance', minWidth: '110px' }, { label: '应抵预付余额', prop: 'startShouldDeductPrepaidBalance', minWidth: '110px', formatter: (row) => formatThousand(row.startShouldDeductPrepaidBalance) },
{ {
label: '可抵预付余额', label: '可抵预付余额',
prop: 'startCanDeductPrepaidBalance', prop: 'startCanDeductPrepaidBalance',
minWidth: '110px' minWidth: '110px',
formatter: (row) => formatThousand(row.startCanDeductPrepaidBalance)
} }
] ]
}, { }, {
label: "累计应抵流量费", label: "累计应抵流量费",
prop: "trafficFee", prop: "trafficFee",
minWidth: '90px', minWidth: '90px',
formatter: (row) => formatThousand(row.trafficFee)
}, { }, {
label: "累计可抵收益", label: "累计可抵收益",
prop: "deductibleOurRevenue", prop: "deductibleOurRevenue",
minWidth: '90px', minWidth: '90px',
formatter: (row) => formatThousand(row.deductibleOurRevenue)
}, },
{ {
label: "预付期末余额", label: "预付期末余额",
children: [ children: [
{ label: '应付预付余额', prop: 'endShouldDeductPrepaidBalance', minWidth: '110px' }, { label: '应抵预付余额', prop: 'endShouldDeductPrepaidBalance', minWidth: '110px', formatter: (row) => formatThousand(row.endShouldDeductPrepaidBalance) },
{ {
label: '可抵预付余额', label: '可抵预付余额',
prop: 'endCanDeductPrepaidBalance', prop: 'endCanDeductPrepaidBalance',
minWidth: '110px' minWidth: '110px',
formatter: (row) => formatThousand(row.endCanDeductPrepaidBalance)
} }
] ]
} }
...@@ -247,7 +255,7 @@ export default { ...@@ -247,7 +255,7 @@ export default {
// dayjs().format("YYYY-MM-DD"), // dayjs().format("YYYY-MM-DD"),
// dayjs().format("YYYY-MM-DD") // dayjs().format("YYYY-MM-DD")
// ] // ]
this.searchSelectObj.divisionOrPayDate.value = [dayjs(), dayjs()] this.searchSelectObj.divisionOrPayDate.value = [dayjs('2025-05'), dayjs().subtract(1, 'month')]
}, },
mounted() { mounted() {
......
...@@ -44,11 +44,10 @@ ...@@ -44,11 +44,10 @@
</template> </template>
<script> <script>
import { deepClone } from "@/common/util"
import { advancePaymentShopDetailPage } from "@api/prepaymentManage" import { advancePaymentShopDetailPage } from "@api/prepaymentManage"
import { mapActions, mapState } from "vuex" import { mapActions, mapState } from "vuex"
import dayjs from "dayjs"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin" import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
import { formatThousand } from "@/common/format"
export default { export default {
name: "usedCarPaymentManage", name: "usedCarPaymentManage",
mixins: [reportTrackPageMixin], mixins: [reportTrackPageMixin],
...@@ -78,42 +77,50 @@ export default { ...@@ -78,42 +77,50 @@ export default {
{ {
label: "广联付款", label: "广联付款",
prop: "payAmount", prop: "payAmount",
minWidth: 110 minWidth: 110,
formatter: (row) => formatThousand(row.payAmount)
}, },
{ {
label: "广联收款", label: "广联收款",
prop: "receiveAmount", prop: "receiveAmount",
minWidth: 110, minWidth: 110,
formatter: (row) => formatThousand(row.receiveAmount)
}, },
{ {
label: "应抵流量费", label: "应抵流量费",
prop: "trafficFee", prop: "trafficFee",
minWidth: 110, minWidth: 110,
formatter: (row) => formatThousand(row.trafficFee)
}, },
{ {
label: "我司收益", label: "我司收益",
prop: "ourRevenue", prop: "ourRevenue",
minWidth: 110, minWidth: 110,
formatter: (row) => formatThousand(row.ourRevenue)
}, },
{ {
label: "可抵扣我司收益", label: "可抵扣我司收益",
prop: "deductibleOurRevenue", prop: "deductibleOurRevenue",
minWidth: 110, minWidth: 110,
formatter: (row) => formatThousand(row.deductibleOurRevenue)
}, },
{ {
label: "应抵流量预付余额", label: "应抵流量预付余额",
prop: "trafficFeeBalance", prop: "trafficFeeBalance",
minWidth: 90, minWidth: 90,
formatter: (row) => formatThousand(row.trafficFeeBalance)
}, },
{ {
label: "可抵收益预付余额", label: "可抵收益预付余额",
prop: "deductibleRevenueBalance", prop: "deductibleRevenueBalance",
minWidth: 90, minWidth: 90,
formatter: (row) => formatThousand(row.deductibleRevenueBalance)
}, },
{ {
label: "日均流量费", label: "日均流量费",
prop: "dayAvgTrafficFee", prop: "dayAvgTrafficFee",
minWidth: 90, minWidth: 90,
formatter: (row) => formatThousand(row.dayAvgTrafficFee)
}, },
{ {
label: "备注", label: "备注",
......
...@@ -39,6 +39,7 @@ import { onlinestatementAccountPage } from "@api/prepaymentManage" ...@@ -39,6 +39,7 @@ import { onlinestatementAccountPage } from "@api/prepaymentManage"
import { mapActions, mapState } from "vuex" import { mapActions, mapState } from "vuex"
import dayjs from "dayjs" import dayjs from "dayjs"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin" import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
import { formatThousand } from "@/common/format"
// import ManageReceiptDialog from './components/ManageReceiptDialog/ManageReceiptDailog.vue' // import ManageReceiptDialog from './components/ManageReceiptDialog/ManageReceiptDailog.vue'
// import TrafficFeeDialog from './components/TrafficFeeDialog/TrafficFeeDialog.vue' // import TrafficFeeDialog from './components/TrafficFeeDialog/TrafficFeeDialog.vue'
// import PaymentDialog from './components/PaymentDialog/PaymentDialog.vue' // import PaymentDialog from './components/PaymentDialog/PaymentDialog.vue'
...@@ -122,25 +123,29 @@ export default { ...@@ -122,25 +123,29 @@ export default {
label: "期初余额", label: "期初余额",
prop: "dayStartBalance", prop: "dayStartBalance",
minWidth: '90px', minWidth: '90px',
formatter: (row) => formatThousand(row.dayStartBalance)
}, },
{ {
label: "收款", label: "收款",
prop: "receiveAmount", prop: "receiveAmount",
minWidth: '90px' minWidth: '90px',
formatter: (row) => formatThousand(row.receiveAmount)
}, },
{ {
label: "分账", label: "分账",
children: [ children: [
{ label: '门店', prop: 'shopDivisionMoney', minWidth: '110px' }, { label: '门店', prop: 'shopDivisionMoney', minWidth: '110px', formatter: (row) => formatThousand(row.shopDivisionMoney) },
{ {
label: '服务商', label: '服务商',
prop: 'fwsDivisionMoney', prop: 'fwsDivisionMoney',
minWidth: '110px' minWidth: '110px',
formatter: (row) => formatThousand(row.fwsDivisionMoney)
}, },
{ {
label: '我司', label: '我司',
prop: 'glDivisionMoney', prop: 'glDivisionMoney',
minWidth: '110px' minWidth: '110px',
formatter: (row) => formatThousand(row.glDivisionMoney)
}, },
] ]
}, },
...@@ -149,16 +154,19 @@ export default { ...@@ -149,16 +154,19 @@ export default {
label: "手续费", label: "手续费",
prop: "serviceCharge", prop: "serviceCharge",
minWidth: '90px', minWidth: '90px',
formatter: (row) => formatThousand(row.serviceCharge)
}, },
{ {
label: "期末余额", label: "期末余额",
prop: "dayEndBalance", prop: "dayEndBalance",
minWidth: '90px', minWidth: '90px',
formatter: (row) => formatThousand(row.dayEndBalance)
}, },
{ {
label: "待补录订单", label: "待补录订单",
prop: "waitInputMoney", prop: "waitInputMoney",
minWidth: '90px' minWidth: '90px',
formatter: (row) => formatThousand(row.waitInputMoney)
} }
] ]
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!