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

pull/826/head
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-table>
</el-form> </el-form>
<el-row justify="center" class="mt-3" v-if="!disabled"> <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> </el-row>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">

View File

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