库存商品字段调整;入库格局商品性质填写数量;入库时商品搜索后页码重置为1
This commit is contained in:
1 parent
bf54733b34
commit
0d824b0b24
4 files changed
+74
-39
No files matched your search
@@ -114,6 +114,11 @@
|
||||
<span v-else>{{ row.erpSpuId && erpSpuSimpleAll.find((item: any) => item.id === row.erpSpuId)?.productName }}</span>
|
||||
</template>
|
||||
</vxe-column>
|
||||
<vxe-column field="productNature" title="商品性质">
|
||||
<template #default="{ row }">
|
||||
{{ supermarket_nature.find((item: any) => item.value == row.productNature)?.label || "" }}
|
||||
</template>
|
||||
</vxe-column>
|
||||
<vxe-column field="selectedUnitObj" title="包装单位" :edit-render="{}">
|
||||
<template #edit="{ row, $rowIndex }">
|
||||
<el-select
|
||||
@@ -139,7 +144,14 @@
|
||||
</vxe-column>
|
||||
<vxe-column field="quantity" title="数量" :edit-render="{ autoFocus: 'input', placeholder: '请输入' }">
|
||||
<template #edit="{ row, $rowIndex }">
|
||||
<el-input v-model.number="row.quantity" @change="reComputeTotalAmount(row, $rowIndex)" />
|
||||
<el-input-number
|
||||
v-if="row.productNature == '1'"
|
||||
v-model="row.quantity"
|
||||
:min="0"
|
||||
:precision="0"
|
||||
@change="reComputeTotalAmount(row, $rowIndex)"
|
||||
/>
|
||||
<el-input-number v-else v-model="row.quantity" :min="0" :precision="2" @change="reComputeTotalAmount(row, $rowIndex)" />
|
||||
</template>
|
||||
</vxe-column>
|
||||
<vxe-column field="purchasePrice" title="原进价">
|
||||
@@ -223,8 +235,10 @@ import { formatDate } from "/@/utils/formatTime"
|
||||
import { displayPrice, storePrice } from "/@/utils/formatMoney"
|
||||
import { tablePrint } from "../../supermarketUtils"
|
||||
import { useSmProcessFormAction } from "/@/hooks/smProcessFormAction"
|
||||
import { useDict } from "/@/hooks/dict"
|
||||
|
||||
const SelectDialog = defineAsyncComponent(() => import("/@/views/supermarketerp/components/select-dialog.vue"))
|
||||
const { supermarket_nature } = useDict("supermarket_nature")
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -383,7 +397,7 @@ const removeRow = () => {
|
||||
const selectRecords = $table.getCheckboxRecords()
|
||||
if (selectRecords.length > 0) {
|
||||
vxeTableData.value = vxeTableData.value.filter((item: any) => !selectRecords.some((row) => row.erpSpuId === item.erpSpuId))
|
||||
updateFootEvent()
|
||||
updateFootCount(vxeTableData.value)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user