Skip to content

The open source simple and complete warehouse management system is derived from our many years of experience in implementing erp projects. We stripped the original commercial system wms function and opened it up for free, hoping to help the majority of small and medium-sized enterprises. At present, the system supports cross-platform。

feat(收货管理): 分拣时没填到期时间无法保存

fxysy569a6875f62d
diff --git a/frontend/src/view/wms/stockAsn/add-sorting.vue b/frontend/src/view/wms/stockAsn/add-sorting.vue
index fe2c122..18d06c1 100644
--- a/frontend/src/view/wms/stockAsn/add-sorting.vue
+++ b/frontend/src/view/wms/stockAsn/add-sorting.vue
@@ -70,6 +70,7 @@ import { hookComponent } from '@/components/system/index'
import { IsInteger, StringLength } from '@/utils/dataVerification/formRule'
import { errorColor } from '@/constant/style'
import tooltipBtn from '@/components/tooltip-btn.vue'
+import { removeObjectNull } from '@/utils/common'
const formRef = ref()
const emit = defineEmits(['sure'])
@@ -136,25 +137,29 @@ const method = reactive({
const reqData: any = []
for (const item of data.SNList) {
- reqData.push({
+ let sureItem = {
asn_id: data.form.asn_id,
expiry_date: data.form.expiry_date,
series_number: item.snNum,
sorted_qty: 1,
is_auto_num: data.is_auto_num
- })
+ }
+ sureItem = removeObjectNull(sureItem)
+ reqData.push(sureItem)
}
// If there is still remaining after removing the SN code, add details without the SN code
if (data.SNList.length !== data.form.sorted_qty) {
const margin = data.form.sorted_qty - data.SNList.length
- reqData.push({
+ let sureItem = {
asn_id: data.form.asn_id,
expiry_date: data.form.expiry_date,
series_number: '',
sorted_qty: margin,
is_auto_num: data.is_auto_num
- })
+ }
+ sureItem = removeObjectNull(sureItem)
+ reqData.push(sureItem)
}
emit('sure', reqData)