Explorar o código

commit 解决bug

yu jie %!s(int64=4) %!d(string=hai) anos
pai
achega
c151d97852

+ 1 - 1
src/views/business/exposure/list/futures/index.vue

@@ -78,7 +78,7 @@ export default defineComponent({
             if (code === 'exposure_futures_details') {
                 // 现货明细
                 // 注册表头
-                registerColumnDetail('table_pcweb_exposure_futuresposition', []);
+                registerColumnDetail('table_pcweb_exposure_futuresposition_detail', []);
             } else {
                 console.error(`${lable}没有配置对应的code: ${code},`);
                 return;

+ 23 - 1
src/views/information/spot-contract/components/detail/index.vue

@@ -58,9 +58,29 @@
 
         <!-- 金额-->
         <template #payamount="{ text, record }">
-          <a>{{ record.kxtype === 2 ? record.deductamount : text }}</a>
+          <span>{{ formatValue(record.kxtype === 2 ? record.deductamount : text) }}</span>
         </template>
 
+          <!-- 调整付保证金-->
+          <template #addmargin="{ text, record }">
+              <span>{{ formatValue(record.addmargin === undefined || "" ? record.decmargin : record.addmargin) }}</span>
+          </template>
+
+          <!-- 交收量 -->
+          <template #reckonrealqty="{record }">
+              <span>{{ formatValue(record.reckonrealqty) }}</span>
+          </template>
+
+          <!-- 其他费用 -->
+          <template #reckonotheramount="{record }">
+              <span>{{ formatValue(record.reckonotheramount) }}</span>
+          </template>
+
+          <!-- 申请人 -->
+          <template #applyname="{record }">
+              <span>{{ formatValue(record.applyname) }}</span>
+          </template>
+
         <!-- 款项记录 款项类型为退款  则金额使用deductamount-->
       </a-table>
     </div>
@@ -84,6 +104,7 @@ import { getPlanContractType } from '@/views/business/plan/setup';
 import { InOutTypeName } from '@/views/manage/inventory-review/setup';
 import { kxtypeName } from '@/views/manage/finance-review/setup';
 import { _closeModal } from '@/common/setup/modal/modal';
+import {formatValue} from "@/common/methods";
 
 export default defineComponent({
     name: 'spot-contract-detail',
@@ -200,6 +221,7 @@ export default defineComponent({
             getPlanContractType,
             InOutTypeName,
             kxtypeName,
+            formatValue
         };
     },
 });