终版备货单 添加重新创建 调整 备货单需求页面显示

This commit is contained in:
浅念
2025-12-25 13:54:10 +08:00
parent 9b2776e533
commit a11d090273
4 changed files with 250 additions and 168 deletions
@@ -1,7 +1,7 @@
<template>
<div class="stocking-show-page">
<div class="boxshadow">
<div v-if="flow_type == 'stock_orders'">
<div v-if="flow_type == 'stock_orders' || flow_type == 'stock_orders_nullify'">
<OrderDetailContent :orderData="orderDialog.orderData" />
</div>
<div v-if="flow_type == 'purchase_orders'">
@@ -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') {
+2 -1
View File
@@ -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 () => {
+20
View File
@@ -86,6 +86,19 @@
>
<i class="iconfont-sys">&#xe641;</i> 提交
</el-link>
<el-link
v-if="
scope.row.approval_status == 3 &&
hasAuth('final_stock@add_final') &&
(scope.row.appro_status ? scope.row.appro_status.status == 'rejected' : false)
"
type="primary"
underline="never"
style="margin-right: 8px"
@click="handleCreateRepair(scope.row)"
>
<i class="iconfont-sys">&#xe6bf;</i> 重新创建
</el-link>
<el-link
type="primary"
underline="never"
@@ -404,6 +417,13 @@
orderDialog.visible = true
}
}
const handleCreateRepair = (row: any) => {
router.push({
path: '/crmpc/stocking/final_add',
query: { id: row.id, object_id: row.object_id } // 可带客户名等参数
})
// TODO: 跳转创建维修保单
}
</script>
<style scoped lang="scss">