Commit df8a5d97 by linjinhong

Merge branch 'feature_overseas-supply' of…

Merge branch 'feature_overseas-supply' of http://47.122.114.111:9999/qinjianhui/factory_front into feature_overseas-supply
parents b51a1eb2 cd30a2c3
......@@ -274,7 +274,7 @@ const podOrderDetailsColumns = computed(() => [
width: 250,
slot: 'image',
align: 'center',
fixed: 'left',
},
{
label: '生产单号',
......@@ -282,21 +282,23 @@ const podOrderDetailsColumns = computed(() => [
width: 150,
align: 'center',
},
// {
// label: 'base SKU',
// prop: 'baseSku',
// width: 140,
// align: 'center',
// },
{
label: '库存 SKU',
prop: 'thirdSkuCode',
width: 180,
align: 'center',
},
{
label: 'variant SKU',
prop: 'variantSku',
width: 140,
width: 160,
align: 'center',
},
{
label: '商品名称',
prop: 'productName',
minWidth: 100,
},
{
......@@ -304,18 +306,21 @@ const podOrderDetailsColumns = computed(() => [
prop: 'purchaseNumber',
width: 90,
align: 'center',
fixed: 'right',
},
{
label: '拣货数量',
prop: 'count',
width: 90,
align: 'center',
fixed: 'right',
},
{
label: '验证结果',
slot: 'verifyResult',
width: 90,
align: 'center',
fixed: 'right',
},
])
const boxChange = ref<boolean>(false)
......@@ -401,7 +406,13 @@ watch(
(val) => {
if (val && val.productList?.length)
val.productList.forEach((el) => {
if (!el.previewImgs) el.previewImgs = el.imageAry ? JSON.parse(el.imageAry) : [{url: el.variantImage}]
if (!el.previewImgs) {
if (el.productMark === 'custom_normal') {
el.previewImgs = [{ url: el.variantImage || '' }]
} else {
el.previewImgs = el.imageAry ? JSON.parse(el.imageAry) : [{url: el.variantImage}]
}
}
})
},
{ deep: true },
......@@ -410,7 +421,7 @@ watch(
const podBoxIndex = computed(() => orderStore.podBoxIndex)
let renderLock = false
const renderItemBox = (bool: boolean) => {
if (
!podBoxList.value ||
......@@ -426,7 +437,13 @@ const renderItemBox = (bool: boolean) => {
if (!boxItem) boxItem = { data: { productList: [] } }
const { data } = boxItem
data?.productList?.forEach((el) => {
if (!el.previewImgs) el.previewImgs = JSON.parse(el.imageAry)
if (!el.previewImgs) {
if (el.productMark === 'custom_normal') {
el.previewImgs = [{ url: el.variantImage || '' }]
} else {
el.previewImgs = JSON.parse(el.imageAry)
}
}
})
if (!data) {
renderLock = false
......@@ -690,7 +707,13 @@ const initOrderDetailBox = async () => {
boxIndex.value = boxList.find((item) => item.data)?.box || null
podOrderDetailsData.value?.productList?.forEach((el) => {
if (!el.previewImgs) el.previewImgs = el.imageAry ? JSON.parse(el.imageAry) : [{url: el.variantImage}]
if (!el.previewImgs) {
if (el.productMark === 'custom_normal') {
el.previewImgs = [{ url: el.variantImage || '' }]
} else {
el.previewImgs = el.imageAry ? JSON.parse(el.imageAry) : [{url: el.variantImage}]
}
}
})
coverImage.value =
podOrderDetailsData.value?.productList?.[0]?.previewImgs?.[0].url || ''
......
......@@ -5238,7 +5238,7 @@ const handleMark = (mark: string) => {
}
case 'custom_normal':
return {
name: 'OS',
name: 'CB',
color: '#67C23A',
label: '海外供应',
}
......
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