Przeglądaj źródła

JLHWEB: 1、修复工组字段错误;

JohnnyChan 1 tydzień temu
rodzic
commit
ab52fc0f14

+ 1 - 0
JLHWEB/src/api/interface/index.ts

@@ -1306,6 +1306,7 @@ export namespace Mattress {
     mattress: any;
     interfaceList: any[];
     qdList: any[];
+    ErrMsg?: string;
   }
   export interface ReqSaveMattressInterface {
     mattress: any;

+ 2 - 2
JLHWEB/src/views/erpapi/mattressInterface/detail.vue

@@ -936,8 +936,8 @@ onMounted(async () => {
   if (result.workgroupList) {
     workgrpEnum.value = result.workgroupList.map(item => {
       return {
-        label: item.wrkgrpname,
-        value: item.wrkgrpid,
+        label: item.wrkGrpName,
+        value: item.wrkGrpid,
         code: item.wrkgrpcode
       };
     });

+ 9 - 2
JLHWEB/src/views/erpapi/mattressInterface/hooks/index.tsx

@@ -1305,7 +1305,7 @@ export const useHooks = (t?: any) => {
       render: scope => {
         let item = state.workgrpEnum.find(t => t.value == scope.row.wrkgrpid);
         if (item) {
-          return item.label + " - " + item.code;
+          return item.code + " - " + item.label;
         } else {
           return "";
         }
@@ -1351,7 +1351,7 @@ export const useHooks = (t?: any) => {
       render: scope => {
         let item = state.workgrpEnum2.find(t => t.value == scope.row.wrkgrpid2);
         if (item) {
-          return item.label + " - " + item.code;
+          return item.code + " - " + item.label;
         } else {
           return "";
         }
@@ -1797,6 +1797,13 @@ export const useHooks = (t?: any) => {
    */
   const RetriveMattressInterface = async (mattressid: number) => {
     let res = await GetMattressInterfaceList({ mattressid, isEdit: Number(state.orderStatus != "") });
+    if (res.ErrMsg) {
+      ElNotification({
+        title: "温馨提示",
+        message: res.ErrMsg,
+        type: "error"
+      });
+    }
     state.mainData = [res.mattress];
     state.mattressYWList = res.interfaceList;
     state.mattressQDList = res.qdList;

+ 1 - 0
JLHWEB/src/views/erpapi/mattressInterface/index.vue

@@ -117,6 +117,7 @@ const tableProps = {
     parentField: "parentid"
   },
   checkboxConfig: {
+    showHeader: true,
     checkStrictly: true
   },
   exportConfig: {