Commit 630e04a0 by qinjianhui

Merge branch 'dev' into release

parents c2c211d8 eae67fd0
......@@ -943,7 +943,7 @@
</span>
<span v-if="status === 'WAIT_SHIPMENT'" class="item">
<ElButton type="warning" @click="showPrintSku"
>打印库存sku标签</ElButton
>打印库存sku标签</ElButton
>
</span>
</ElFormItem>
......@@ -3120,13 +3120,15 @@ const changeExceptionOrder = async () => {
}
const showPrintSku = async () => {
if(!selection.value.length) {
if (!selection.value.length) {
return ElMessage.warning('请选择数据')
}
await printWarehouseSkuDialogRef.value?.open(1,selection.value.map((item) => item.id).join(','))
await printWarehouseSkuDialogRef.value?.open(
1,
selection.value.map((item) => item.id).join(','),
)
}
const handleExceptionConfirm = async () => {
try {
await exceptionFormRef.value.validate()
......@@ -3173,7 +3175,10 @@ const printNormal = async () => {
}
selection.value.forEach((s) => {
const f =
s.productList && s.productList.find((p) => p.productMark === 'normal')
s.productList &&
s.productList.find(
(p) => p.productMark === 'normal' || p.productMark === 'custom_normal',
)
if (f) arr.push(s.id)
})
if (!arr.length) {
......
......@@ -1059,7 +1059,7 @@ const {
})
const setCostPrice = (item: InterProductList) => {
if (!item.costPrice) {
if (item.costPrice !== 0 && !item.costPrice) {
ElMessage.warning('商品成本价为空,请完善商品成本价')
return
}
......
......@@ -1063,7 +1063,7 @@ const {
})
const setCostPrice = (item: InterProductList) => {
if (!item.costPrice) {
if (item.costPrice !== 0 && !item.costPrice) {
ElMessage.warning('商品成本价为空,请完善商品成本价')
return
}
......
......@@ -1216,7 +1216,7 @@ const {
})
const setCostPrice = (item: InterProductList) => {
if (!item.costPrice) {
if (item.costPrice !== 0 && !item.costPrice) {
ElMessage.warning('商品成本价为空,请完善商品成本价')
return
}
......
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