mirror of
https://github.com/yudaocode/yudao-ui-admin-vue3.git
synced 2026-04-19 13:38:39 +00:00
fix:更新按钮文本为“添加销售产品”并修复支付信息展示逻辑
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 提交支付 */
|
/** 提交支付 */
|
||||||
|
|||||||
Reference in New Issue
Block a user