浏览代码

协议平仓

huangbin 4 年之前
父节点
当前提交
85a9a03300

+ 4 - 3
src/views/order/commodity_contract/components/commodity_contract_summary/components/commodity_contract_summary_deal_closed/index.vue

@@ -151,6 +151,7 @@ import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo
 import { validateAction } from '@/common/setup/form';
 import { FormState, BargainList } from './interface';
 import { handleForm, usePrice, useCheckd } from './setup';
+import { handleSubcriteQuote } from '@/common/setup/table/tableQuote';
 
 export default defineComponent({
     name: ModalEnum.commodity_contract_summary_settlement,
@@ -171,6 +172,7 @@ export default defineComponent({
         const { rules, formState, formRef } = handleForm();
         // 选中逻辑
         const { checked, selected, checkGroupChange, checkboxChange } = useCheckd();
+
         // 表格列表数据
         const { loading, tableList, queryTable } = queryTableList<BargainList>();
         const param: QueryTradeHolderDetailReq = {
@@ -195,10 +197,9 @@ export default defineComponent({
 
         function submit() {
             validateAction<FormState>(formRef, formState).then((res) => {
-                const item = tableList.value[0];
                 const param: TradeHoldTransferApplyReq = {
-                    TradeID: Long.fromString(item.tradeid),
-                    BuyorSell: item.buyorsell,
+                    TradeID: Long.fromString(selected.value!.tradeid),
+                    BuyorSell: selected.value!.buyorsell,
                     TransferPrice: res.price,
                     ApplySrc: 2,
                     ApplicantID: geLoginID_number()!,

+ 1 - 1
src/views/order/commodity_contract/components/commodity_contract_summary/index.vue

@@ -15,7 +15,7 @@
       <!-- 额外的展开行 -->
       <template v-if="btnList.length"
                 #expandedRowRender="{ record }">
-        <BtnList :btnList="handleBtnList(record, btnList)"
+        <BtnList :btnList="handleBtnList(record,btnList)"
                  :record="record"
                  class="btn-list-sticky"
                  @click="openComponent" />