瀏覽代碼

JLHWEB: 1、床垫清单-开放录入类型编辑

JohnnyChan 1 天之前
父節點
當前提交
128e5dfe15
共有 1 個文件被更改,包括 44 次插入12 次删除
  1. 44 12
      JLHWEB/src/views/erpapi/mattressInterface/hooks/index.tsx

+ 44 - 12
JLHWEB/src/views/erpapi/mattressInterface/hooks/index.tsx

@@ -559,6 +559,20 @@ export const useHooks = (t?: any) => {
     {
       field: "yw_auditingdate",
       title: "业务审核时间"
+      // table: "u_mattress_interface",
+      // enum: [
+      //   { label: "业务审核时间", value: 0 },
+      //   { label: "产品补充审核时间", value: 1 },
+      //   { label: "清单补充审核时间", value: 2 }
+      // ],
+      // search: {
+      //   el: "select",
+      //   key: "arg_datetype",
+      //   props: {
+      //     filterable: true,
+      //     defaultFirstOption: true
+      //   }
+      // }
     },
     {
       field: "js1_auditingrep",
@@ -567,6 +581,14 @@ export const useHooks = (t?: any) => {
     {
       field: "js1_auditingdate",
       title: "产品补充审核时间"
+      // table: "u_mattress_interface",
+      // search: {
+      //   el: "date-picker",
+      //   key: "arg_firstdate",
+      //   props: {
+      //     type: "date"
+      //   }
+      // }
     },
     {
       field: "js2_auditingrep",
@@ -575,6 +597,14 @@ export const useHooks = (t?: any) => {
     {
       field: "js2_auditingdate",
       title: "清单补充审核时间"
+      // table: "u_mattress_interface",
+      // search: {
+      //   el: "date-picker",
+      //   key: "arg_enddate",
+      //   props: {
+      //     type: "date"
+      //   }
+      // }
     },
     {
       field: "creatmtrl_auditingrep",
@@ -1293,7 +1323,7 @@ export const useHooks = (t?: any) => {
       editColRender: (scope: any) => {
         // console.log("formulakind editColRender scope :>> ", scope);
         return (
-          <el-select v-model={scope.row.wrkgrpid} filterable onChange={val => rModelSetWrkgrp1(val, scope.row)}>
+          <el-select v-model={scope.row.wrkgrpid} filterable clearable onChange={val => rModelSetWrkgrp1(val, scope.row)}>
             {{
               default: () => {
                 let rs = [];
@@ -1339,7 +1369,7 @@ export const useHooks = (t?: any) => {
       editColRender: (scope: any) => {
         // console.log("formulakind editColRender scope :>> ", scope);
         return (
-          <el-select v-model={scope.row.wrkgrpid2} filterable onChange={val => rModelSetWrkgrp2(val, scope.row)}>
+          <el-select v-model={scope.row.wrkgrpid2} filterable clearable onChange={val => rModelSetWrkgrp2(val, scope.row)}>
             {{
               default: () => {
                 let rs = [];
@@ -1681,19 +1711,19 @@ export const useHooks = (t?: any) => {
     editConfig: {
       trigger: "click",
       mode: "cell",
-      enabled: false,
+      enabled: false
       // afterEditMethod: ({ row, rowIndex, column, columnIndex }) => {
       //   console.log("afterEditMethod :>> ", row);
       // }
-      beforeEditMethod: ({ row, rowIndex, column, columnIndex }) => {
-        console.log("state.editType == 1 :>> ", state.editType, column.field);
-        if (state.editType == 1) {
-          if (["bj_inputtype"].includes(column.field)) {
-            return false;
-          }
-        }
-        return true;
-      }
+      // beforeEditMethod: ({ row, rowIndex, column, columnIndex }) => {
+      //   console.log("state.editType == 1 :>> ", state.editType, column.field);
+      //   if (state.editType == 1) {
+      //     if (["bj_inputtype"].includes(column.field)) {
+      //       return false;
+      //     }
+      //   }
+      //   return true;
+      // }
     },
     showOverflow: false,
     // exportConfig: {
@@ -2340,6 +2370,8 @@ export const useHooks = (t?: any) => {
     return state[name]; // 获取ref的值
   };
 
+  const wf_fine_erp_pz = () => {};
+
   return {
     ...toRefs(state),
     columns,