huangbin 4 年之前
父節點
當前提交
9f56da826f

+ 8 - 3
src/views/order/pre_sale_warehouse_receipt/components/pre_sale_warehouse_receipt_bargain/index.vue

@@ -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,
         };
     },
 });

+ 7 - 2
src/views/order/spot_warran/components/spot_warrant_bargain/index.vue

@@ -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" />
@@ -107,7 +107,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,
@@ -127,6 +131,7 @@ export default defineComponent({
             expandIcon,
             formatTime,
             getBarmaginApplyStatus,
+            handleBtnLsit,
         };
     },
 });