Browse Source

YT-775SCP采购策略无法查看

intex_online20241111
yufei_wang 3 weeks ago
parent
commit
d208f36c7b
  1. 1
      src/locales/en-US.ts
  2. 1
      src/locales/zh-CN.ts
  3. 14
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue
  4. 20
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue

1
src/locales/en-US.ts

@ -1315,6 +1315,7 @@ export default {
退: 'Returned successfully', 退: 'Returned successfully',
: 'Do you want to confirm the allocation amount?', : 'Do you want to confirm the allocation amount?',
: 'Create an invoice request?', : 'Create an invoice request?',
:'Detail'
}, },

1
src/locales/zh-CN.ts

@ -1316,6 +1316,7 @@ export default {
退: '退回成功', 退: '退回成功',
: '是否确认分摊金额?', : '是否确认分摊金额?',
: '创建开票申请', : '创建开票申请',
:'详情'
}, },
} }

14
src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue

@ -9,6 +9,7 @@
:rules="rules" :rules="rules"
label-width="120px" label-width="120px"
label-position="left" label-position="left"
:disabled="detailStatus"
> >
<!-- 规则 --> <!-- 规则 -->
<div class="item"> <div class="item">
@ -172,7 +173,9 @@
</div> </div>
<template #footer> <template #footer>
<!-- 按钮--> <!-- 按钮-->
<TableHead :HeadButttondata="Butttondata" @buttonBaseClick="buttonBaseClick" /> <TableHead v-if="detailStatus" :HeadButttondata="[ defaultButtons.formCloseBtn(null) ]" @buttonBaseClick="buttonBaseClick" />
<TableHead v-else :HeadButttondata="Butttondata" @buttonBaseClick="buttonBaseClick" />
</template> </template>
</Dialog> </Dialog>
<SearchTable <SearchTable
@ -363,7 +366,14 @@ const open = async (type: string, strategyCode: string, id?: number) => {
] ]
} }
} }
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 const emit = defineEmits(['success']) // success

20
src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue

@ -26,7 +26,15 @@
<!-- 列表 --> <!-- 列表 -->
<ContentWrap> <ContentWrap>
<el-table v-clientTable v-loading="loading" :data="list" :default-sort="{ prop: 'priority', order: 'null' }"> <el-table v-clientTable v-loading="loading" :data="list" :default-sort="{ prop: 'priority', order: 'null' }">
<el-table-column align="center" :label="t('ts.策略代码')" prop="strategyCode" show-overflow-tooltip width="150px" /> <el-table-column align="center" :label="t('ts.策略代码')" prop="strategyCode" show-overflow-tooltip width="150px">
<template #default="{row}">
<el-button type="primary" link @click="openDetail(row, '策略代码', row.strategyCode)">
<span>{{ row.strategyCode }}</span>
</el-button>
</template>
</el-table-column>
<el-table-column align="center" :label="t('ts.策略名称')" prop="name" show-overflow-tooltip width="150px" /> <el-table-column align="center" :label="t('ts.策略名称')" prop="name" show-overflow-tooltip width="150px" />
<el-table-column align="center" :label="t('ts.策略描述')" prop="description" show-overflow-tooltip width="150px" /> <el-table-column align="center" :label="t('ts.策略描述')" prop="description" show-overflow-tooltip width="150px" />
<el-table-column align="center" :label="t('ts.优先级')" prop="priority" sortable width="120"/> <el-table-column align="center" :label="t('ts.优先级')" prop="priority" sortable width="120"/>
@ -68,7 +76,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as RuleApi from '@/api/wms/rule' import * as RuleApi from '@/api/wms/rule'
import AddForm from './AddForm.vue' import AddForm from './AddForm.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
//
defineOptions({ name: 'SupplieDeliveryStrategy' }) defineOptions({ name: 'SupplieDeliveryStrategy' })
const queryFormRef = ref() // const queryFormRef = ref() //
@ -110,8 +118,14 @@ const resetQuery = () => {
const formRef = ref() const formRef = ref()
const openForm = (type: string, strategyCode: string, id: number) => { const openForm = (type: string, strategyCode: string, id: number) => {
formRef.value.open(type, strategyCode, id) 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) => { const handleDelete = async (id: number) => {
try { try {

Loading…
Cancel
Save