Browse Source

1、修复核价选配项清单无法删除问题

MY 1 month ago
parent
commit
b00bf2e6a0

+ 3 - 1
JLHWEB/src/views/baseinfo/configure/hooks/index.tsx

@@ -311,6 +311,7 @@ export const useHooks = (t?: any) => {
   ];
   ];
 
 
   const columns_bottom: ColumnProps<any>[] = [
   const columns_bottom: ColumnProps<any>[] = [
+    { type: "checkbox", width: 40, fixed: "left" },
     {
     {
       field: "mtrlname",
       field: "mtrlname",
       title: "物料名称",
       title: "物料名称",
@@ -601,7 +602,8 @@ export const useHooks = (t?: any) => {
     const delArr = checkDate.map((item: any) => {
     const delArr = checkDate.map((item: any) => {
       if (type === 0) return { contfigtypeid: parseInt(item.contfigtypeid) };
       if (type === 0) return { contfigtypeid: parseInt(item.contfigtypeid) };
       if (type === 1) return { typeid: parseInt(item.typeid), pzid: parseInt(item.pzid) };
       if (type === 1) return { typeid: parseInt(item.typeid), pzid: parseInt(item.pzid) };
-      return { pzid: parseInt(item.pzid), printid: parseInt(item.printid) };
+      if (type === 2) return { pzid: parseInt(item.pzid), printid: parseInt(item.printid) };
+      return { pzid: parseInt(item.pzid), printid: parseInt(item.printid), pid: parseInt(item.pid) };
     });
     });
     ElMessageBox.confirm("是否确定要删除吗?", "询问", {
     ElMessageBox.confirm("是否确定要删除吗?", "询问", {
       confirmButtonText: "是",
       confirmButtonText: "是",

+ 1 - 1
JLHWEB/src/views/baseinfo/configure/index.vue

@@ -96,7 +96,7 @@
                   <template #tableHeader>
                   <template #tableHeader>
                     <el-button-group>
                     <el-button-group>
                       <el-button @click="handleOpenNewBottomTable">{{ $t("common.add") }}</el-button>
                       <el-button @click="handleOpenNewBottomTable">{{ $t("common.add") }}</el-button>
-                      <el-button @click="fDelete(2)">{{ $t("common.delText") }}</el-button>
+                      <el-button @click="fDelete(3)">{{ $t("common.delText") }}</el-button>
                     </el-button-group>
                     </el-button-group>
                   </template>
                   </template>
                 </LjVxeTable>
                 </LjVxeTable>