瀏覽代碼

1、修复床网部门汇率不刷新问题

MY 3 天之前
父節點
當前提交
d592e9d927
共有 2 個文件被更改,包括 19 次插入18 次删除
  1. 1 1
      JLHHJSvr/Helper/BedNetHelper.cs
  2. 18 17
      JLHWEB/src/views/quote/bednetQuote/hooks/index.tsx

+ 1 - 1
JLHHJSvr/Helper/BedNetHelper.cs

@@ -1164,7 +1164,7 @@ namespace JLHHJSvr.Helper
             bednet.profitrate = profitrate;
             bednet.dept_profitrate = dept.profitrate;
 
-            bednet.moneyrate = bednet.moneyrate ?? 1;
+            bednet.moneyrate = dept.moneyrate ?? 1;
             bednet.commission = bednet.commission ?? 1;
             bednet.taxrate = bednet.taxrate ?? 1;
             bednet.other_rate = bednet.other_rate ?? 1;

+ 18 - 17
JLHWEB/src/views/quote/bednetQuote/hooks/index.tsx

@@ -1579,24 +1579,25 @@ export const useHooks = (t?: any, props?: any) => {
     {
       title: "币种",
       field: "moneyrate",
+      render: (scope: any) => {
+        return (
+          <>
+            <div class="flx-justify-between">
+              <span>
+                <>{scope.row.moneyrate > 1 ? `美元` : "人民币"}</>
+              </span>
+              {scope.row.moneyrate > 1 && (
+                <span>
+                  <>{scope.row.moneyrate}</>
+                </span>
+              )}
+            </div>
+          </>
+        );
+      },
       basicinfo: {
-        el: "input",
-        // props: {
-        //   placeholder: ifsaleout_default.moneyrate + ""
-        // },
-        // rules: [{ validator: numCheck, trigger: "blur" }],
-        editable: (scope: any) => {
-          if (ALLOW_EDIT_STATE.includes(scope.status) && Number(scope.searchParam.ifsaleout)) {
-            return true;
-          }
-          return false;
-        },
-        // editvisible: (scope: any) => {
-        //   if (Number(scope.searchParam.ifsaleout)) {
-        //     return true;
-        //   }
-        //   return false;
-        // }
+        el: "select",
+        editable: ALLOW_EDIT_STATE,
         render: (scope: any) => {
           let optionRender = [];
           let _disabled = !ALLOW_EDIT_STATE.includes(scope.status);