-
产品信息:{{ currentBindOrderProductName || '-' }}({{ bindOrderQuery.productCode || '-' }})
-
锁单总量:{{ currentBindOrderTotal || 0 }}
+
+
+
+
产品信息
+
{{ currentBindOrderProductName || '-' }}({{ bindOrderQuery.productCode || '-' }})
+
+
+
锁单总量
+
{{ currentBindOrderTotal || 0 }}
+
-
+
@@ -322,7 +358,11 @@
-
+
+
+ {{ scope.row.bindNum || 0 }}
+
+
+
@@ -781,4 +824,94 @@ export default {
margin-bottom: 12px;
font-weight: 600;
}
+
+.inventory-inner-summary {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-bottom: 12px;
+ padding: 12px;
+ border: 1px solid #e5e7eb;
+ border-radius: 6px;
+ background: #f8fafc;
+}
+
+.inventory-inner-summary__label {
+ margin-bottom: 4px;
+ color: #64748b;
+ font-size: 12px;
+ line-height: 16px;
+}
+
+.inventory-inner-summary__value {
+ color: #1f2937;
+ font-size: 13px;
+ font-weight: 600;
+ line-height: 18px;
+}
+
+.inventory-inner-summary__total {
+ min-width: 100px;
+ text-align: right;
+}
+
+.inventory-inner-summary__total .inventory-num {
+ font-size: 18px;
+ line-height: 22px;
+}
+
+.inventory-inner-table {
+ border: 1px solid #e5e7eb;
+ border-radius: 6px;
+ overflow: hidden;
+}
+
+.inventory-inner-table ::v-deep .el-table__header th {
+ padding: 8px 0;
+ background: #f8fafc;
+}
+
+.inventory-inner-table ::v-deep .el-table__header th .cell {
+ color: #64748b;
+ font-size: 12px;
+ font-weight: 600;
+}
+
+.inventory-inner-table ::v-deep .el-table__body td {
+ padding: 9px 0;
+}
+
+.inventory-inner-table ::v-deep .el-table__body td .cell {
+ font-size: 12px;
+ line-height: 18px;
+}
+
+.inventory-dialog-footer {
+ margin-top: 16px;
+ text-align: right;
+}
+
+.inventory-num {
+ font-weight: 600;
+}
+
+.inventory-num--stock {
+ color: #1d4ed8;
+}
+
+.inventory-num--purchase {
+ color: #d97706;
+}
+
+.inventory-num--bind {
+ color: #4338ca;
+}
+
+.inventory-num--usable {
+ color: #00856f;
+}
+
+.inventory-num--empty {
+ color: #cbd5e1;
+}
diff --git a/ruoyi-sip/src/main/resources/mapper/system/ProductInfoMapper.xml b/ruoyi-sip/src/main/resources/mapper/system/ProductInfoMapper.xml
index 20780a9f..aa263111 100644
--- a/ruoyi-sip/src/main/resources/mapper/system/ProductInfoMapper.xml
+++ b/ruoyi-sip/src/main/resources/mapper/system/ProductInfoMapper.xml
@@ -139,7 +139,7 @@
t2.outer_num,
t2.purchase_num,
t2.bind_num,
- ifnull(t2.inventory_num,0) + ifnull(t2.purchase_num,0) as usable_num
+ ifnull(t2.inventory_num,0) + ifnull(t2.purchase_num,0) - (ifnull(t2.bind_num,0) - ifnull(t2.outer_num,0)) as usable_num
FROM product_info t1
LEFT JOIN (
SELECT product_code, warehouse_id,