Commit 657f9775 by qinjianhui

fix: 入库数量修改

parent 02841a8e
......@@ -277,7 +277,6 @@ import {
getStockingOrderDetailByIdApi,
rejectedStockingOrderApi,
} from '@/api/supplier/stockingOrder'
import ImageView from '@/components/ImageView.vue'
import { BigNumber } from 'bignumber.js'
const calcRowTotalPrice = (row: StockingOrderProduct): string => {
......@@ -375,8 +374,15 @@ const tableColumns = [
label: 'SKU图片',
prop: 'skuImage',
width: 180,
align: 'center',
render: (item: StockingOrderProduct) => (
<ImageView src={item.warehouseSkuImage} width="50px" height="50px" />
<el-image
preview-teleported
src={item.warehouseSkuImage}
preview-src-list={[item.warehouseSkuImage]}
z-index={9999}
style="width: 60px;height: 60px;text-align: center;"
/>
),
},
{ label: '商品名称', prop: 'warehouseSkuName', minWidth: 150 },
......@@ -414,7 +420,13 @@ const searchTableColumns = computed(() => {
width: 120,
align: 'center',
render: (item: StockingOrderProduct) => (
<ImageView src={item.warehouseSkuImage} width="50px" height="50px" />
<el-image
preview-teleported
src={item.warehouseSkuImage}
preview-src-list={[item.warehouseSkuImage]}
z-index={9999}
style="width: 60px;height: 60px;text-align: center;"
/>
),
},
{ label: '商品名称', prop: 'warehouseSkuName', minWidth: 150 },
......
......@@ -125,7 +125,6 @@ import {
getStockingOrderDetailByIdApi,
supplierDispatchApi,
} from '@/api/supplier/stockingOrder'
import ImageView from '@/components/ImageView.vue'
import TableView from '@/components/TableView.vue'
import { BigNumber } from 'bignumber.js'
......@@ -156,7 +155,13 @@ const tableColumns = computed(() => [
width: 100,
align: 'center',
render: (item: StockingOrderProduct) => (
<ImageView src={item.warehouseSkuImage} width="50px" height="50px" />
<el-image
preview-teleported
src={item.warehouseSkuImage}
preview-src-list={[item.warehouseSkuImage]}
z-index={9999}
style="width: 60px;height: 60px;text-align: center;"
/>
),
},
{
......
......@@ -110,7 +110,6 @@
import { ref } from 'vue'
import type { FormInstance, FormRules } from 'element-plus'
import { ElMessage } from 'element-plus'
import ImageView from '@/components/ImageView.vue'
import { getUserListApi, LocationInfoGetAll } from '@/api/common'
import { loactionData } from '@/api/warehouse'
import {
......@@ -152,7 +151,13 @@ const tableColumns = ref([
width: 90,
align: 'center',
render: (row: StockingApplyOrderDetailList) => (
<ImageView src={row.warehouseSkuImage} width="50px" height="50px" />
<el-image
preview-teleported
src={row.warehouseSkuImage}
preview-src-list={[row.warehouseSkuImage]}
z-index={9999}
style="width: 60px;height: 60px;text-align: center;"
/>
),
},
{
......@@ -270,16 +275,20 @@ const loadDetailList = async (id: number) => {
}
}
locationList.value = locationRes.data || []
if (locationList.value.length > 0) {
res.data.detailsList.forEach((item) => {
res.data.detailsList.forEach((item) => {
if (!item.buyStored) {
item.buyStored = item.shipmentQuantity
}
if (locationList.value.length > 0) {
const location = locationList.value.find(
(location) => location.warehouseSku === item.warehouseSku,
)
if (location) {
item.locationId = location.locationId
}
})
}
}
})
} catch (e) {
console.error(e)
}
......
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