Commit 4a346f8b by qinjianhui

Merge branch 'dev' into 'master'

fix: 补货成功高亮当前行

See merge request !39
parents 5024f9b7 823b5c34
...@@ -464,6 +464,7 @@ ...@@ -464,6 +464,7 @@
:paginated-data="tableData" :paginated-data="tableData"
:cell-style="onCellStyle" :cell-style="onCellStyle"
:cell-class-name="onCellClassName" :cell-class-name="onCellClassName"
:row-style="getRowStyle"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<template #goods="{ row }"> <template #goods="{ row }">
...@@ -647,7 +648,10 @@ ...@@ -647,7 +648,10 @@
class="goods-item-info-item" class="goods-item-info-item"
> >
<span class="goods-item-info-item-label">补胚数量:</span> <span class="goods-item-info-item-label">补胚数量:</span>
<span class="goods-item-info-item-value" :title="item.replenishmentSumNum"> <span
class="goods-item-info-item-value"
:title="item.replenishmentSumNum"
>
{{ item.replenishmentSumNum || 0 }} {{ item.replenishmentSumNum || 0 }}
</span> </span>
<el-button <el-button
...@@ -2723,6 +2727,9 @@ const stockOutCheck = async () => { ...@@ -2723,6 +2727,9 @@ const stockOutCheck = async () => {
loading.close() loading.close()
} }
} }
// 添加表格ref
const tableRef = ref()
//转至待创建物流 //转至待创建物流
const toBePicking = async () => { const toBePicking = async () => {
if (selection.value.length === 0) { if (selection.value.length === 0) {
...@@ -2990,17 +2997,15 @@ const onFastRefresh = () => { ...@@ -2990,17 +2997,15 @@ const onFastRefresh = () => {
search() search()
} }
// // 修改行样式方法 // // 修改行样式方法
// const getRowStyle = ({ row }: { row: PodUsOrderListData }) => { const getRowStyle = ({ row }: { row: PodUsOrderListData }) => {
// if (stockOutSuccessIds.value.includes(row.id)) { if (stockOutSuccessIds.value.includes(row.id)) {
// return { return {
// backgroundColor: '#f0f9eb', backgroundColor: '#f0f9eb',
// color: '#67c23a', color: '#67c23a',
// } }
// } }
// return {} return {}
// } }
// 添加表格ref
const tableRef = ref()
const warehouseList = ref<WarehouseListData[]>([]) const warehouseList = ref<WarehouseListData[]>([])
const loadWarehouseList = async () => { const loadWarehouseList = async () => {
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment