|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <!-- 现货仓单 挂单 -->
|
|
|
+ <!-- 现货仓单 议价 -->
|
|
|
<section>
|
|
|
<a-table :columns="columns"
|
|
|
class="srcollYTable expandLeftTable"
|
|
|
@@ -14,7 +14,7 @@
|
|
|
:data-source="tableList">
|
|
|
<!-- 额外的展开行 -->
|
|
|
<template #expandedRowRender="{ record }">
|
|
|
- <BtnList :btnList="btnList"
|
|
|
+ <BtnList :btnList="handleBtnLsit(record)"
|
|
|
:record="record"
|
|
|
class="btn-list-sticky"
|
|
|
@click="openComponent" />
|
|
|
@@ -106,7 +106,11 @@ export default defineComponent({
|
|
|
openComponent, // 控制异步组件
|
|
|
btnList, // 表格按钮
|
|
|
} = handleComposeOrderTable<QueryWrTradeBargainApplyQsp>(param);
|
|
|
-
|
|
|
+ function handleBtnLsit(record: QueryWrTradeBargainApplyQsp) {
|
|
|
+ // applystatus: number;//申请状态(议价状态) - 1:待确认 2:已确认 3:已拒绝 4:已撤销 5:系统撤销 6:处理失败 7:确认中
|
|
|
+ const arr = [2, 3];
|
|
|
+ return arr.includes(record.applystatus) ? btnList : [];
|
|
|
+ }
|
|
|
return {
|
|
|
contextMenu,
|
|
|
openContext,
|
|
|
@@ -126,6 +130,7 @@ export default defineComponent({
|
|
|
expandIcon,
|
|
|
formatTime,
|
|
|
getBarmaginApplyStatus,
|
|
|
+ handleBtnLsit,
|
|
|
};
|
|
|
},
|
|
|
});
|