+
@@ -263,7 +263,7 @@
id: approval_id,
flow_type: flow_type
})
- if (flow_type == 'stock_orders') {
+ if (flow_type == 'stock_orders' || flow_type == 'stock_orders_nullify') {
const orderData: OrderData = res
orderDialog.orderData = orderData
} else if (flow_type == 'purchase_orders') {
diff --git a/src/views/crmpc/stocking/final_add.vue b/src/views/crmpc/stocking/final_add.vue
index 7c0e7ac..c9663b8 100644
--- a/src/views/crmpc/stocking/final_add.vue
+++ b/src/views/crmpc/stocking/final_add.vue
@@ -1071,6 +1071,7 @@
const route = useRoute()
const stocking_id = route.query.id
+ const object_id = route.query.object_id
const { getUserInfo } = useUserStore()
// 表单引用
const baseFormRef = ref()
@@ -1185,7 +1186,7 @@
handleVehicleSizeChange,
handleVehicleCurrentChange,
chooseVehicle
- } = useStockingForm(true, stocking_id as string) // isFinal = true, stocking_id
+ } = useStockingForm(true, (object_id as string) ? (object_id as string) : (stocking_id as string)) // isFinal = true, stocking_id
// 获取详情数据
const getdetilfn = async () => {
diff --git a/src/views/crmpc/stocking/final_list.vue b/src/views/crmpc/stocking/final_list.vue
index f67b3ce..416f5dd 100644
--- a/src/views/crmpc/stocking/final_list.vue
+++ b/src/views/crmpc/stocking/final_list.vue
@@ -86,6 +86,19 @@
>
提交
+
+ 重新创建
+
{
+ router.push({
+ path: '/crmpc/stocking/final_add',
+ query: { id: row.id, object_id: row.object_id } // 可带客户名等参数
+ })
+ // TODO: 跳转创建维修保单
+ }