|
|
|
|
@ -80,11 +80,11 @@
|
|
|
|
|
<el-input :model-value="row.packagingSchemeName || '-'" readonly />
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column v-if="isProductStockIn" :label="t('ErpStock.PackagingScheme.palletPackageQuantity')" min-width="120">
|
|
|
|
|
<el-table-column v-if="isProductStockIn" :label="t('ErpStock.PackagingScheme.palletPackageQuantity')" min-width="120">
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<el-input :model-value="row.palletPackageQuantity ?? '-'" readonly />
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column v-if="isProductStockIn" :label="t('ErpStock.Item.packageItemCount')" min-width="120">
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<el-input :model-value="row.packageQuantity ?? '-'" readonly />
|
|
|
|
|
@ -104,6 +104,13 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column v-if="isPurchaseUnitStockIn" :label="t('ErpStock.Item.inventoryUnit')" min-width="80">
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<el-form-item class="mb-0px!">
|
|
|
|
|
<el-input readonly v-model="row.productUnitName" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column v-if="isPurchaseUnitStockIn" :label="t('ErpStock.Item.purchaseUnit')" min-width="100">
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<el-form-item class="mb-0px!">
|
|
|
|
|
@ -118,6 +125,23 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column v-if="isPurchaseUnitStockIn" min-width="120">
|
|
|
|
|
<template #header>
|
|
|
|
|
{{ t('ErpStock.Item.purchaseUnitConvertQuantity') }}
|
|
|
|
|
<el-tooltip effect="dark" placement="top">
|
|
|
|
|
<template #content>
|
|
|
|
|
{{ purchaseUnitConvertTipText }}
|
|
|
|
|
</template>
|
|
|
|
|
<Icon icon="ep:question-filled" class="ml-4px"
|
|
|
|
|
style="vertical-align: middle; color: #909399; cursor: pointer;" />
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</template>
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<el-form-item class="mb-0px!">
|
|
|
|
|
<el-input readonly v-model="row.purchaseUnitConvertQuantity" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column v-if="!isProductStockIn" :label="t('ErpStock.Item.count')" prop="count" min-width="140">
|
|
|
|
|
<template #default="{ row, $index }">
|
|
|
|
|
<el-form-item :prop="`${$index}.count`" :rules="formRules.count" class="mb-0px!">
|
|
|
|
|
@ -504,6 +528,7 @@ const activeCategoryType = computed(() => stockInCategoryTypeMap[props.inType ||
|
|
|
|
|
const isProductMaterialStockIn = computed(() => Boolean(activeCategoryType.value))
|
|
|
|
|
const isProductStockIn = computed(() => activeCategoryType.value === 1)
|
|
|
|
|
const isPurchaseUnitStockIn = computed(() => activeCategoryType.value === 2 || activeCategoryType.value === 3)
|
|
|
|
|
const purchaseUnitConvertTipText = computed(() => t('FactoryModeling.ProductInformation.dialogPurchaseUnitConvertTip'))
|
|
|
|
|
const selectorColumnLabel = computed(() => {
|
|
|
|
|
const rows = formData.value || []
|
|
|
|
|
return rows.length > 0 && rows.every((row) => isRowRelatedTask(row))
|
|
|
|
|
|