Browse Source

YT-677SCP不可维护基础数据

intex
zhang_li 2 weeks ago
parent
commit
f25a401c24
  1. 50
      src/components/Detail/src/Detail.vue
  2. 29
      src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue
  3. 29
      src/views/wms/basicDataManage/factoryModeling/dock/index.vue
  4. 29
      src/views/wms/basicDataManage/factoryModeling/location/index.vue
  5. 29
      src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue
  6. 29
      src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue
  7. 28
      src/views/wms/basicDataManage/itemManage/itempackage/index.vue
  8. 30
      src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue
  9. 28
      src/views/wms/basicDataManage/supplierManage/supplier/index.vue
  10. 16
      src/views/wms/basicDataManage/supplierManage/supplierCycle/index.vue
  11. 29
      src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

50
src/components/Detail/src/Detail.vue

@ -255,12 +255,32 @@ const props = defineProps({
default: ()=>({
hidden:false,
label: '附件',
prop:'File',
showDownload:false,
showPreview:false,
hiddenDelete:false
})
},
//tab
remarksAlias: {
type: Object,
required: false,
default: ()=>({
hidden:false,
label: '备注',
prop:'Remarks'
})
},
//tab
changeRecordAlias: {
type: Object,
required: false,
default: ()=>({
hidden:false,
label: '变更记录',
prop:'ChangeRecord'
})
},
//
isBasic: {
type: Boolean,
@ -517,25 +537,17 @@ if(props.slotDetailTabList){
}
let otherList = [...filterPermissionAnnexTable(),{
label:props.annexAlias.label,
prop:'Annex'
},{
label:'备注',
prop:'Remarks'
},{
label:'变更记录',
prop:'ChangeRecord'
}]
if(props.annexAlias.hidden){
otherList = [...filterPermissionAnnexTable(),{
label:'备注',
prop:'Remarks'
},{
label:'变更记录',
prop:'ChangeRecord'
}]
let otherList = [...filterPermissionAnnexTable()]
if (!props.annexAlias.hidden) {
otherList.push(props.annexAlias)
}
if (!props.remarksAlias.hidden) {
otherList.push(props.remarksAlias)
}
if (!props.changeRecordAlias.hidden) {
otherList.push(props.changeRecordAlias)
}
tabsList.value = [...tabsList?.value,...otherList]
if (!tabsList.value || tabsList.value && tabsList.value.length == otherList.length) {

29
src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue

@ -53,7 +53,7 @@
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Area.allSchemas" />
<Detail ref="detailRef" :isBasic="true" :allSchemas="Area.allSchemas" :annexAlias="annexAlias" :remarksAlias="remarksAlias"/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/areabasic/import" :importTemplateData="importTemplateData" @success="importSuccess" />
@ -82,6 +82,33 @@ const routeName = ref()
routeName.value = route.name
const tableColumns = ref(Area.allSchemas.tableColumns)
//
const annexAlias =ref({})
const remarksAlias =ref({})
if (routeName.value.includes('SCP')) {
annexAlias.value = {
hidden:true,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:true,
label: '备注',
prop:'Remarks'
}
} else {
annexAlias.value = {
hidden:false,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:false,
label: '备注',
prop:'Remarks'
}
}
//
const updataTableColumns = (val) => {
tableColumns.value = val

29
src/views/wms/basicDataManage/factoryModeling/dock/index.vue

@ -52,7 +52,7 @@
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Dock.allSchemas" />
<Detail ref="detailRef" :isBasic="true" :allSchemas="Dock.allSchemas" :annexAlias="annexAlias" :remarksAlias="remarksAlias"/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/dock/import" :importTemplateData="importTemplateData" @success="importSuccess" />
@ -82,7 +82,32 @@ const route = useRoute() //路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref(Dock.allSchemas.tableColumns)
//
const annexAlias =ref({})
const remarksAlias =ref({})
if (routeName.value.includes('SCP')) {
annexAlias.value = {
hidden:true,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:true,
label: '备注',
prop:'Remarks'
}
} else {
annexAlias.value = {
hidden:false,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:false,
label: '备注',
prop:'Remarks'
}
}
//
const updataTableColumns = (val) => {
tableColumns.value = val

29
src/views/wms/basicDataManage/factoryModeling/location/index.vue

@ -51,7 +51,7 @@
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Location.allSchemas" />
<Detail ref="detailRef" :isBasic="true" :allSchemas="Location.allSchemas" :annexAlias="annexAlias" :remarksAlias="remarksAlias"/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/location/import" :importTemplateData="importTemplateData" @success="importSuccess" />
@ -80,7 +80,32 @@ const route = useRoute() //路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref(Location.allSchemas.tableColumns)
//
const annexAlias =ref({})
const remarksAlias =ref({})
if (routeName.value.includes('SCP')) {
annexAlias.value = {
hidden:true,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:true,
label: '备注',
prop:'Remarks'
}
} else {
annexAlias.value = {
hidden:false,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:false,
label: '备注',
prop:'Remarks'
}
}
//
const updataTableColumns = (val) => {
tableColumns.value = val

29
src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue

@ -51,7 +51,7 @@
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Locationgroup.allSchemas" />
<Detail ref="detailRef" :isBasic="true" :allSchemas="Locationgroup.allSchemas" :annexAlias="annexAlias" :remarksAlias="remarksAlias"/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/locationgroup/import" :importTemplateData="importTemplateData" @success="importSuccess" />
@ -79,7 +79,32 @@ const route = useRoute() //路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref(Locationgroup.allSchemas.tableColumns)
//
const annexAlias =ref({})
const remarksAlias =ref({})
if (routeName.value.includes('SCP')) {
annexAlias.value = {
hidden:true,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:true,
label: '备注',
prop:'Remarks'
}
} else {
annexAlias.value = {
hidden:false,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:false,
label: '备注',
prop:'Remarks'
}
}
//
const updataTableColumns = (val) => {
tableColumns.value = val

29
src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue

@ -50,7 +50,7 @@
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Warehouse.allSchemas" />
<Detail ref="detailRef" :isBasic="true" :allSchemas="Warehouse.allSchemas" :annexAlias="annexAlias" :remarksAlias="remarksAlias"/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/warehouse/import" :importTemplateData="importTemplateData" @success="importSuccess" />
@ -79,6 +79,33 @@ const routeName = ref()
routeName.value = route.name
const tableColumns = ref(Warehouse.allSchemas.tableColumns)
//
const annexAlias =ref({})
const remarksAlias = ref({})
console.log(99,routeName.value)
if (routeName.value.includes('SCP')) {
annexAlias.value = {
hidden:true,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:true,
label: '备注',
prop:'Remarks'
}
} else {
annexAlias.value = {
hidden:false,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:false,
label: '备注',
prop:'Remarks'
}
}
//
const updataTableColumns = (val) => {
tableColumns.value = val

28
src/views/wms/basicDataManage/itemManage/itempackage/index.vue

@ -57,7 +57,7 @@
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Itempackaging.allSchemas" />
<Detail ref="detailRef" :isBasic="true" :allSchemas="Itempackaging.allSchemas" :annexAlias="annexAlias" :remarksAlias="remarksAlias"/>
<!-- 导入 -->
<ImportForm
@ -94,8 +94,32 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref(Itempackaging.allSchemas.tableColumns)
if(routeName.value.includes('SCP')){
//
const annexAlias =ref({})
const remarksAlias =ref({})
if (routeName.value.includes('SCP')){
tableColumns.value = tableColumns.value.filter(item=>item.field!='action')
annexAlias.value = {
hidden:true,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:true,
label: '备注',
prop:'Remarks'
}
} else {
annexAlias.value = {
hidden:false,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:false,
label: '备注',
prop:'Remarks'
}
}
//
const updataTableColumns = (val) => {

30
src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue

@ -51,7 +51,7 @@
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Purchaseprice.allSchemas" />
<Detail ref="detailRef" :isBasic="true" :allSchemas="Purchaseprice.allSchemas" :annexAlias="annexAlias" :remarksAlias="remarksAlias"/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/purchaseprice/import" :importTemplateData="importTemplateData" @success="importSuccess"
@ -80,7 +80,33 @@ const route = useRoute() //路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref(Purchaseprice.allSchemas.tableColumns)
//
const annexAlias =ref({})
const remarksAlias = ref({})
console.log(99,routeName.value )
if (routeName.value.includes('SCP')) {
annexAlias.value = {
hidden:true,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:true,
label: '备注',
prop:'Remarks'
}
} else {
annexAlias.value = {
hidden:false,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:false,
label: '备注',
prop:'Remarks'
}
}
//
const updataTableColumns = (val) => {
tableColumns.value = val

28
src/views/wms/basicDataManage/supplierManage/supplier/index.vue

@ -50,7 +50,7 @@
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Supplier.allSchemas" />
<Detail ref="detailRef" :isBasic="true" :allSchemas="Supplier.allSchemas" :annexAlias="annexAlias" :remarksAlias="remarksAlias"/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/supplier/import" :importTemplateData="importTemplateData" @success="importSuccess" />
@ -79,6 +79,32 @@ const routeName = ref()
routeName.value = route.name
const tableColumns = ref(Supplier.allSchemas.tableColumns)
//
const annexAlias =ref({})
const remarksAlias =ref({})
if (routeName.value.includes('SCP')) {
annexAlias.value = {
hidden:true,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:true,
label: '备注',
prop:'Remarks'
}
} else {
annexAlias.value = {
hidden:false,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:false,
label: '备注',
prop:'Remarks'
}
}
//
const updataTableColumns = (val) => {
tableColumns.value = val

16
src/views/wms/basicDataManage/supplierManage/supplierCycle/index.vue

@ -66,7 +66,7 @@
:isBusiness="false"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="SupplierCycle.allSchemas" />
<Detail ref="detailRef" :isBasic="true" :allSchemas="SupplierCycle.allSchemas" :annexAlias="annexAlias" :remarksAlias="remarksAlias"/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/supplier-cycle/import" :importTemplateData="importTemplateData" @success="importSuccess" />
@ -94,6 +94,20 @@ const routeName = ref()
routeName.value = route.name
const tableColumns = ref(SupplierCycle.allSchemas.tableColumns)
//
const annexAlias =ref({})
const remarksAlias =ref({})
annexAlias.value = {
hidden:true,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:true,
label: '备注',
prop:'Remarks'
}
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {

29
src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

@ -51,7 +51,7 @@
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="Supplieritem.allSchemas" />
<Detail ref="detailRef" :isBasic="true" :allSchemas="Supplieritem.allSchemas" :annexAlias="annexAlias" :remarksAlias="remarksAlias"/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/supplieritem/import" :importTemplateData="importTemplateData" @success="importSuccess" />
@ -82,6 +82,33 @@ const tableColumns = ref(Supplieritem.allSchemas.tableColumns)
// if(routeName.value.includes('SCP')){
// tableColumns.value = tableColumns.value.filter(item=>item.field!='action')
// }
//
const annexAlias =ref({})
const remarksAlias =ref({})
if (routeName.value.includes('SCP')) {
annexAlias.value = {
hidden:true,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:true,
label: '备注',
prop:'Remarks'
}
} else {
annexAlias.value = {
hidden:false,
label: '附件',
prop:'File',
}
remarksAlias.value = {
hidden:false,
label: '备注',
prop:'Remarks'
}
}
//
const updataTableColumns = (val) => {
// if(routeName.value.includes('SCP')){

Loading…
Cancel
Save