fix:更新按钮文本为“添加销售产品”并修复支付信息展示逻辑

This commit is contained in:
YunaiV
2025-10-06 20:45:35 +08:00
parent bdb42bb927
commit 9bc289cb2a
2 changed files with 3 additions and 2 deletions

View File

@ -132,7 +132,7 @@
</el-table>
</el-form>
<el-row justify="center" class="mt-3" v-if="!disabled">
<el-button @click="handleAdd" round>+ 添加采购产品</el-button>
<el-button @click="handleAdd" round>+ 添加销售产品</el-button>
</el-row>
</template>
<script setup lang="ts">

View File

@ -238,7 +238,6 @@ const getDetail = async () => {
return
}
const data = await PayOrderApi.getOrder(id.value, true)
payOrder.value = data
// 1.2 无法查询到支付信息
if (!data) {
message.error('支付订单不存在,请检查!')
@ -255,6 +254,8 @@ const getDetail = async () => {
goReturnUrl('close')
return
}
// 2. 正常展示支付信息
payOrder.value = data
}
/** 提交支付 */