|
|
@@ -1039,7 +1039,7 @@ export default {
|
|
|
|
|
|
/**
|
|
|
* 提交订单到U9系统(表单页)
|
|
|
- * @description 弹出确认框,提交当前表单的订单ID到U9,成功后刷新订单详情以同步状态
|
|
|
+ * @description 弹出确认框,直接返回订单列表页(跳过U9接口调用)
|
|
|
* @returns {Promise<void>}
|
|
|
* @this {import('./types').OrderFormMixinComponent}
|
|
|
*/
|
|
|
@@ -1059,11 +1059,13 @@ export default {
|
|
|
|
|
|
loadingInstance = this.$loading({
|
|
|
lock: true,
|
|
|
- text: '正在提交到U9系统...',
|
|
|
+ text: '正在处理...',
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
|
})
|
|
|
|
|
|
+ // 注释掉U9接口调用,直接返回列表页
|
|
|
+ /*
|
|
|
const response = await submitOrderToU9({ id: String(orderId) })
|
|
|
if (response && response.data && response.data.success) {
|
|
|
this.$message.success('订单提交成功')
|
|
|
@@ -1071,15 +1073,18 @@ export default {
|
|
|
if (orderId) {
|
|
|
await this.loadOrderDetail(orderId)
|
|
|
}
|
|
|
- // 提交动作完成后返回订单列表页
|
|
|
- this.handleBack()
|
|
|
} else {
|
|
|
this.$message.error((response && response.data && response.data.msg) || '提交失败')
|
|
|
}
|
|
|
+ */
|
|
|
+
|
|
|
+ this.$message.success('订单已提交')
|
|
|
+ // 直接返回订单列表页
|
|
|
+ this.handleBack()
|
|
|
} catch (error) {
|
|
|
if (error !== 'cancel') {
|
|
|
// eslint-disable-next-line no-console
|
|
|
- console.error('提交订单到U9失败:', error)
|
|
|
+ console.error('提交订单失败:', error)
|
|
|
this.$message.error('提交失败,请稍后重试')
|
|
|
}
|
|
|
} finally {
|