diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index 337d6dba0..6c6b30820 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -1315,6 +1315,7 @@ export default { 退回成功: 'Returned successfully', 是否确认分摊金额: 'Do you want to confirm the allocation amount?', 创建开票申请: 'Create an invoice request?', + 详情:'Detail' }, diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 9d2137ead..597143fcf 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -1316,6 +1316,7 @@ export default { 退回成功: '退回成功', 是否确认分摊金额: '是否确认分摊金额?', 创建开票申请: '创建开票申请', + 详情:'详情' }, } diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue index 736bc1df7..8a2af08a1 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue @@ -9,6 +9,7 @@ :rules="rules" label-width="120px" label-position="left" + :disabled="detailStatus" >
@@ -172,7 +173,9 @@
{ ] } } -defineExpose({ open }) // 提供 open 方法,用于打开弹窗 +const detailStatus = ref(false) // 是否是详情模式 +const setDetailStatus = (status)=>{ + if(status){ + dialogTitle.value = t('ts.详情') + } + detailStatus.value= status +} +defineExpose({ open,setDetailStatus }) // 提供 open 方法,用于打开弹窗 /** 提交表单 */ const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调 diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue b/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue index a1bc0768c..86b35c4e9 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue @@ -26,7 +26,15 @@ - + + + + + @@ -68,7 +76,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as RuleApi from '@/api/wms/rule' import AddForm from './AddForm.vue' import dayjs from 'dayjs' - +// 采购策略 defineOptions({ name: 'SupplieDeliveryStrategy' }) const queryFormRef = ref() // 搜索的表单 @@ -110,8 +118,14 @@ const resetQuery = () => { const formRef = ref() const openForm = (type: string, strategyCode: string, id: number) => { formRef.value.open(type, strategyCode, id) -} + formRef.value.setDetailStatus(false) +} + /** 详情操作 */ +const openDetail = (row : any, titleName : any, titleValue : any) => { + openForm('update', queryParams.strategyCode, row.id) + formRef.value.setDetailStatus(true) +} /** 删除按钮操作 */ const handleDelete = async (id: number) => { try {