spring
2025-11-29 057c13502ecedf49d85d47ab23f3492859f16653
src/pages/production/detail/twistDetail.vue
@@ -53,11 +53,13 @@
  amount: undefined,
  unAmount: undefined,
});
const detailData = ref<any>({});
const getDetailData = async (id: string) => {
  const { data } = await TwistApi.getTwistDetailById({
    id: id,
  });
  detailData.value = data;
  cardData.deviceModel = data.deviceModel;
  cardData.model = data.model;
  cardData.systemNo = data.systemNo;
@@ -84,7 +86,18 @@
};
// 处理报工点击
const handleReportClick = () => {
const handleReportClick = async () => {
  // 先请求验证变更接口
  try {
    const { code } = await TwistApi.verifyChanges({ projectId: detailData.value.projectId });
    if (code !== 200) {
      return;
    }
  } catch (error) {
    console.error("验证变更失败:", error);
    return;
  }
  const prepareId = getPrepareId();
  console.log("绞线表格报工检查 - prepareId值:", prepareId);