终版备货单 添加重新创建 调整 备货单需求页面显示
This commit is contained in:
@@ -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') {
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
@@ -86,6 +86,19 @@
|
||||
>
|
||||
<i class="iconfont-sys"></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"></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">
|
||||
|
||||
Reference in New Issue
Block a user