fix:更新按钮文本为“添加销售产品”并修复支付信息展示逻辑
This commit is contained in:
@ -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">
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
/** 提交支付 */
|
||||
|
||||
Reference in New Issue
Block a user