JohnnyChan 1 日 前
コミット
19998e04fd

+ 9 - 7
JLHWEB/src/views/erpapi/mattressInterface/detail.vue

@@ -1071,13 +1071,15 @@ const orderDefaultAction = [
       return "";
     },
     clickFunc: item => {
-      fModelChoseMattress("副规格", { arg_parentid: LjDetailRef.value?._mainData.mattressid }, 2).then((res: any) => {
-        CoverMattressInterfaceList(
-          res.map(t => {
-            return { mattressid: t.mattressid };
-          })
-        );
-      });
+      fModelChoseMattress("副规格", { arg_parentid: LjDetailRef.value?._mainData.mattressid }, 0, t("common.okText")).then(
+        (res: any) => {
+          CoverMattressInterfaceList(
+            res.map(t => {
+              return { mattressid: t.mattressid };
+            })
+          );
+        }
+      );
     }
   }),
   buttonDefault({

+ 3 - 1
JLHWEB/src/views/erpapi/mattressInterface/hooks/index.tsx

@@ -2096,7 +2096,7 @@ export const useHooks = (t?: any) => {
    * @param status 当前订单状态
    * @returns Promise
    */
-  const fModelChoseMattress = (label?: string, params?: any, multipleLimit: number = 1) => {
+  const fModelChoseMattress = (label?: string, params?: any, multipleLimit: number = 1, submitText: string = "") => {
     return new Promise((resolve, reject) => {
       let _params = {
         arg_deptid: state.mainData[0].deptid,
@@ -2120,6 +2120,8 @@ export const useHooks = (t?: any) => {
           console.log("openCustDialog error", error);
         }
       };
+      console.log("fModelChoseMattress submitText :>> ", submitText);
+      submitText && (state.MattressDialogProps.submitText = submitText);
       state.MattressDialogRef.show(_params, label);
     });
   };