diff --git a/.DS_Store b/.DS_Store index 3e708b8b..f0764fdf 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/oms_web/oms_vue/src/api/inventory/delivery.js b/oms_web/oms_vue/src/api/inventory/delivery.js index 34323822..0550cba4 100644 --- a/oms_web/oms_vue/src/api/inventory/delivery.js +++ b/oms_web/oms_vue/src/api/inventory/delivery.js @@ -61,6 +61,14 @@ export function recallApply(id, reason, amountChanged) { }) } +// 按发货记录 id 检查关联财务单据的审批状态(撤回/作废按钮前置校验) +export function checkRecallByDelivery(deliveryId) { + return request({ + url: '/inventory/delivery/vue/recall/check-by-delivery/' + deliveryId, + method: 'get' + }) +} + // 导出采购合同 export function exportDelivery(query) { return request({ diff --git a/oms_web/oms_vue/src/views/finance/payable/index.vue b/oms_web/oms_vue/src/views/finance/payable/index.vue index 22aeeca3..3b167f6c 100644 --- a/oms_web/oms_vue/src/views/finance/payable/index.vue +++ b/oms_web/oms_vue/src/views/finance/payable/index.vue @@ -41,14 +41,14 @@ - - - - - - - - + + + - + @@ -467,6 +467,15 @@ export default { } return {}; }, + /** 金额列负数(红冲单)时加红色样式类 */ + amountCellClassName({ row, column }) { + const amountProps = ['planAmount', 'totalPriceWithTax', 'unpaidPaymentAmount', 'unreceivedTicketAmount']; + const cellValue = row[column.property]; + if (amountProps.includes(column.property) && Number(cellValue) < 0) { + return 'amount-negative'; + } + return ''; + }, /** 时间处理 */ timeProcessing(value) { if (value === null || value === undefined || value === '') return ''; @@ -476,8 +485,13 @@ export default { }; - diff --git a/oms_web/oms_vue/src/views/finance/payment/components/ReceiptDialog.vue b/oms_web/oms_vue/src/views/finance/payment/components/ReceiptDialog.vue index ce4419b1..9ec89bb8 100644 --- a/oms_web/oms_vue/src/views/finance/payment/components/ReceiptDialog.vue +++ b/oms_web/oms_vue/src/views/finance/payment/components/ReceiptDialog.vue @@ -1,112 +1,71 @@ diff --git a/oms_web/oms_vue/src/views/finance/receivable/components/EditForm.vue b/oms_web/oms_vue/src/views/finance/receivable/components/EditForm.vue index 285c32b7..34c67ba9 100644 --- a/oms_web/oms_vue/src/views/finance/receivable/components/EditForm.vue +++ b/oms_web/oms_vue/src/views/finance/receivable/components/EditForm.vue @@ -92,6 +92,27 @@
+ 商品明细 + + + + + + + + + + + + + + + + 销售-收款单 diff --git a/oms_web/oms_vue/src/views/finance/receivable/index.vue b/oms_web/oms_vue/src/views/finance/receivable/index.vue index 0545c042..e3763524 100644 --- a/oms_web/oms_vue/src/views/finance/receivable/index.vue +++ b/oms_web/oms_vue/src/views/finance/receivable/index.vue @@ -33,6 +33,14 @@ @keyup.enter.native="handleQuery" /> + + + - + @@ -204,6 +212,7 @@ export default { projectName: null, receivableBillCode: null, partnerName: null, + inventoryCode: null, productType: null, collectionStatus: null, createTimeStart: null, @@ -329,6 +338,15 @@ export default { this.getList(); // Refresh the list }); }, + /** 金额列负数(红冲单)时加红色样式类 */ + amountCellClassName({ row, column }) { + const amountProps = ['planAmount', 'totalPriceWithTax', 'unreceivedAmount', 'uninvoicedAmount']; + const cellValue = row[column.property]; + if (amountProps.includes(column.property) && Number(cellValue) < 0) { + return 'amount-negative'; + } + return ''; + }, /** 时间处理 */ timeProcessing(value) { if (value === null || value === undefined || value === '') return ''; @@ -338,8 +356,13 @@ export default { }; - diff --git a/oms_web/oms_vue/src/views/finance/receive/components/ApplyPaymentDialog.vue b/oms_web/oms_vue/src/views/finance/receive/components/ApplyPaymentDialog.vue index fc2d3aa0..4aead149 100644 --- a/oms_web/oms_vue/src/views/finance/receive/components/ApplyPaymentDialog.vue +++ b/oms_web/oms_vue/src/views/finance/receive/components/ApplyPaymentDialog.vue @@ -1,9 +1,9 @@