Handy_Cao vor 1 Jahr
Ursprung
Commit
0fe70f1505

+ 1 - 1
src/packages/mobile/views/order/position/components/goods/list/Index.vue

@@ -105,7 +105,7 @@ const showDelivery = (row: Model.TradePositionRsp) => {
         // 是否供应商
         const isProvider = goodsList.value.some((e) => e.goodsid === row.goodsid && e.provideruserid === userInfo.userid)
 
-        return isProvider || row.buyorsell === BuyOrSell.Buy || market?.isdeliverysellercanapply === 1
+        return !isProvider && (row.buyorsell === BuyOrSell.Buy || market?.isdeliverysellercanapply === 1)
     }
     return false
 }

+ 1 - 1
src/packages/pc/views/footer/goods/position/index.vue

@@ -80,7 +80,7 @@ const handleOperateButtons = (row: Model.TradePositionRsp) => {
     // 是否供应商
     const isProvider = goodsList.value.some((e) => e.goodsid === row.goodsid && e.provideruserid === userInfo.userid)
 
-    if (isProvider || row.buyorsell === BuyOrSell.Buy || market?.isdeliverysellercanapply === 1) {
+    if (!isProvider && (row.buyorsell === BuyOrSell.Buy || market?.isdeliverysellercanapply === 1)) {
         buttons.push('bottom_goods_position_delivery50')
     }
     return buttons

+ 4 - 0
src/types/model/order.d.ts

@@ -989,6 +989,10 @@ declare namespace Model {
         positionplrate: number
         /// 期初持仓数量
         positionqty: number
+        // 发售方资金账户ID(49)\供货商资金账户ID(50)
+        provideraccountid: number
+        // 发售方用户ID(49)\供货商(50)
+        provideruserid: number
         /// 成交量小数位
         qtydecimalplace: number
         /// 参考商品代码