yuan
8 天以前 c21ff2a3055fa16881a2ee31c25b156ca425a286
fix: 修复报工台账删除无效,前后端传参不一致
已修改2个文件
12 ■■■■ 文件已修改
src/api/productionManagement/productionReporting.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionReporting/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/productionManagement/productionReporting.js
@@ -41,3 +41,10 @@
    data: query,
  });
}
// 生产报工-删除
export function productionReportDeletePath(query) {
  return request({
    url: "/productionProductMain" + `/${query.id}`,
    method: "delete",
  });
}
src/views/productionManagement/productionReporting/index.vue
@@ -158,7 +158,7 @@
  import {
    productionReportUpdate,
    workListPageById,
    productionReportDelete,
    productionReportDelete, productionReportDeletePath,
  } from "@/api/productionManagement/productionReporting.js";
  import { productionProductMainListPage } from "@/api/productionManagement/productionProductMain.js";
  import { userListNoPageByTenantId } from "@/api/system/user.js";
@@ -310,7 +310,8 @@
      cancelButtonText: "取消",
      type: "warning",
    }).then(() => {
      productionReportDelete({ id: row.id }).then(res => {
      productionReportDeletePath({ id: row.id }).then(res => {
        if (res.code === 200) {
          proxy.$modal.msgSuccess("删除成功");
          getList();