5 小时以前 53e9b23a40186efd149fd5c5350b5eced1f69920
src/views/wls/productsales/modules/line-list.vue
@@ -5,7 +5,7 @@
import type { MesWmProductSalesDetailApi } from '#/api/mes/wm/productsales/detail';
import type { MesWmProductSalesLineApi } from '#/api/mes/wm/productsales/line';
import { computed, reactive } from 'vue';
import { computed, reactive, watch } from 'vue';
import { useVbenModal } from '@vben/common-ui';
@@ -28,6 +28,7 @@
  formType: FormType;
  noticeId?: number;
  salesId: number;
  refreshKey?: number;
}>();
const isEditable = computed(() =>
@@ -57,6 +58,15 @@
  gridApi.query();
}
watch(
  () => props.refreshKey,
  (refreshKey, previousRefreshKey) => {
    if (refreshKey !== undefined && refreshKey !== previousRefreshKey) {
      handleRefresh();
    }
  },
);
/** 添加物料 */
function handleCreate() {
  lineFormModalApi