Commit 4bfeb551 by qinjianhui

fix: 等待补货查询修改

parent 5ef49b88
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
> >
<ElFormItem label="库存SKU"> <ElFormItem label="库存SKU">
<ElInput <ElInput
v-model="filterForm.stockSku" v-model="filterForm.warehouseSku"
placeholder="库存SKU" placeholder="库存SKU"
clearable clearable
style="width: 150px" style="width: 150px"
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</ElFormItem> </ElFormItem>
<ElFormItem label="款号"> <ElFormItem label="款号">
<ElInput <ElInput
v-model="filterForm.styleNo" v-model="filterForm.productNo"
placeholder="款号" placeholder="款号"
clearable clearable
style="width: 150px" style="width: 150px"
...@@ -68,8 +68,8 @@ import TableView from '@/components/TableView.vue' ...@@ -68,8 +68,8 @@ import TableView from '@/components/TableView.vue'
import usePageList from '@/utils/hooks/usePageList' import usePageList from '@/utils/hooks/usePageList'
const filterForm = reactive({ const filterForm = reactive({
stockSku: '', warehouseSku: '',
styleNo: '', productNo: '',
}) })
const { const {
...@@ -86,8 +86,8 @@ const { ...@@ -86,8 +86,8 @@ const {
query: async (current, size) => { query: async (current, size) => {
const res = await getRestockListApi( const res = await getRestockListApi(
{ {
stockSku: filterForm.stockSku || undefined, warehouseSku: filterForm.warehouseSku || undefined,
styleNo: filterForm.styleNo || undefined, productNo: filterForm.productNo || undefined,
}, },
current, current,
size, size,
...@@ -123,7 +123,7 @@ const columns = [ ...@@ -123,7 +123,7 @@ const columns = [
minWidth: 140, minWidth: 140,
showOverflowTooltip: true, showOverflowTooltip: true,
}, },
{ prop: 'supplierProductNo', label: '款号', width: 130 }, { prop: 'productNo', label: '款号', width: 130, align: 'center' },
{ {
prop: 'warehouseSku', prop: 'warehouseSku',
label: '库存SKU', label: '库存SKU',
...@@ -138,9 +138,7 @@ const columns = [ ...@@ -138,9 +138,7 @@ const columns = [
render: (row: RestockData) => { render: (row: RestockData) => {
const v = row.usableInventory ?? 0 const v = row.usableInventory ?? 0
return ( return (
<span style="color: #f56c6c; font-weight: bold"> <span style="color: #f56c6c; font-weight: bold">{Math.abs(v)}</span>
{Math.abs(v)}
</span>
) )
}, },
}, },
...@@ -177,8 +175,8 @@ const handleSearch = () => { ...@@ -177,8 +175,8 @@ const handleSearch = () => {
} }
const handleReset = () => { const handleReset = () => {
filterForm.stockSku = '' filterForm.warehouseSku = ''
filterForm.styleNo = '' filterForm.productNo = ''
refresh() refresh()
} }
...@@ -193,7 +191,11 @@ const handleRestockCheck = async (row: RestockData) => { ...@@ -193,7 +191,11 @@ const handleRestockCheck = async (row: RestockData) => {
return return
} }
try { try {
const res = await restockCheckApi(row.id, row.warehouseSku ?? '', row.warehouseId) const res = await restockCheckApi(
row.id,
row.warehouseSku ?? '',
row.warehouseId,
)
if (res.code !== 200) return if (res.code !== 200) return
ElMessage.success('补货校验成功') ElMessage.success('补货校验成功')
refresh() refresh()
......
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