li.shaoyi há 2 anos atrás
pai
commit
37d51a7d06

+ 1 - 1
src/packages/mobile/views/goods/detail/components/listing/Index.vue

@@ -28,7 +28,7 @@
                             </div>
                         </template>
                     </Field>
-                    <template v-if="quote?.tradeproperty !== 2">
+                    <template v-if="formData.BuyOrSell === BuyOrSell.Buy || quote?.tradeproperty !== 2">
                         <Field label="预估可订立量">
                             <template #input>
                                 <span>{{ total.enableQty }}</span>

+ 8 - 5
src/packages/pc/views/market/trade/goods/list/listing/index.vue

@@ -44,11 +44,14 @@
                         <el-radio-group size="small" v-model="qtyStep" :validate-event="false" @change="onRadioChange">
                             <el-radio v-for="(value, index) in qtyStepList" :key="index" :label="value" border />
                         </el-radio-group>
-                        <div style="display: flex;flex-direction: column;line-height: normal;font-size: 12px;color: #7a8a94;"
-                            v-if="selectedGoods?.tradeproperty !== 2 && settingStore.getSettingValue('showOrderEnableQty')">
-                            <span>预估可订立量:{{ total.enableQty }}</span>
-                            <span>预扣保证金:{{ total.deposit.toFixed(2) }}</span>
-                        </div>
+                        <template
+                            v-if="(formData.BuyOrSell === BuyOrSell.Buy || selectedGoods?.tradeproperty !== 2) && settingStore.getSettingValue('showOrderEnableQty')">
+                            <div
+                                style="display: flex;flex-direction: column;line-height: normal;font-size: 12px;color: #7a8a94;">
+                                <span>预估可订立量:{{ total.enableQty }}</span>
+                                <span>预扣保证金:{{ total.deposit.toFixed(2) }}</span>
+                            </div>
+                        </template>
                     </div>
                 </el-form-item>
                 <el-form-item class="footer-btnbar">