lishenao
9 天以前 4d97a259f3069f9b18d87ac3fab710618f2c6087
src/views/inventoryManagement/receiptManagement/index.vue
@@ -190,17 +190,20 @@
  page.current = 1
  getList()
}
const paginationChange = (obj) => {
  page.current = obj.page;
  page.size = obj.limit;
  getList()
}
const getList = () => {
  tableLoading.value = true
  getStockInPage({ ...searchForm.value, ...page }).then(res => {
    tableLoading.value = false
    tableData.value = res.data.records
    ttotal.value = res.data.total
    total.value = res.data.total
    console.log('tableData:', tableData.value)
  }).catch(() => {
    tableLoading.value = false
  })
@@ -242,8 +245,9 @@
  }
  return null; // 没有找到节点,返回null
};
// 表格选择数据
const handleSelectionChange = (selection) => {
// const handleSelectionChange = (selection) => {
// 加载规格型号列表
const loadProductModels = async (productId) => {
@@ -363,7 +367,8 @@
    }
  } else {
    // 编辑时填充表单数据
    form.value = { ...row ,
      form.value = {
        ...row,
      supplierId: row.supplierId,
      productId: row.productId,
      productModelId: row.productModelId,
@@ -463,6 +468,7 @@
    proxy.$modal.msg("已取消")
  })
}
// 获取当前日期并格式化为 YYYY-MM-DD
function getCurrentDate() {
  const today = new Date();
@@ -483,6 +489,7 @@
onMounted(() => {
  getList()
})
}
</script>
<style scoped lang="scss"></style>