Browse Source

Merge remote-tracking branch 'origin/hella_online_20240803' into hella_online_20240803

linshi20240813
gaojs 3 months ago
parent
commit
37b61d44d9
  1. 20
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue
  2. 8
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/inventorymoveRecordMainNew.data.ts

20
src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue

@ -1,7 +1,7 @@
<template> <template>
<ContentWrap> <ContentWrap>
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<Search :schema="[...InventorymoveRecordMain.allSchemas.searchSchema,...InventorymoveRecordDetail.allSchemas.searchSchema]" @search="setSearchParams" @reset="setSearchParams" /> <Search :schema="[...InventorymoveRecordMainNew.allSchemas.searchSchema,...InventorymoveRecordDetailNew.allSchemas.searchSchema]" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap> </ContentWrap>
<!-- 列表头部 --> <!-- 列表头部 -->
@ -11,8 +11,8 @@
:routeName="routeName" :routeName="routeName"
@updataTableColumns="updataTableColumns" @updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick" @searchFormClick="searchFormClick"
:allSchemas="InventorymoveRecordMain.allSchemas" :allSchemas="InventorymoveRecordMainNew.allSchemas"
:detailAllSchemas="InventorymoveRecordDetail.allSchemas" :detailAllSchemas="InventorymoveRecordDetailNew.allSchemas"
/> />
<!-- 列表 --> <!-- 列表 -->
@ -66,9 +66,9 @@
<Detail <Detail
ref="detailRef" ref="detailRef"
:isBasic="false" :isBasic="false"
:allSchemas="InventorymoveRecordMain.allSchemas" :allSchemas="InventorymoveRecordMainNew.allSchemas"
:detailAllSchemas="InventorymoveRecordDetail.allSchemas" :detailAllSchemas="InventorymoveRecordDetailNew.allSchemas"
:detailAllSchemasRules="InventorymoveRecordDetailRules" :detailAllSchemasRules="InventorymoveRecordDetailNewRules"
:apiPage="InventorymoveRecordDetailApi.getInventorymoveRecordDetailPage" :apiPage="InventorymoveRecordDetailApi.getInventorymoveRecordDetailPage"
/> />
<!-- 标签打印 --> <!-- 标签打印 -->
@ -80,7 +80,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { InventorymoveRecordMain,InventorymoveRecordMainRules,InventorymoveRecordDetail,InventorymoveRecordDetailRules } from './inventorymoveRecordMain.data' import { InventorymoveRecordMainNew,InventorymoveRecordDetailNew,InventorymoveRecordDetailNewRules } from './inventorymoveRecordMainNew.data'
import { InventorymoveRequestMain,InventorymoveRequestMainRules,InventorymoveRequestDetail,InventorymoveRequestDetailRules } from './inventorymoveRecordRequestMain.data' import { InventorymoveRequestMain,InventorymoveRequestMainRules,InventorymoveRequestDetail,InventorymoveRequestDetailRules } from './inventorymoveRecordRequestMain.data'
import { import {
SupplierdeliverRequestPackage SupplierdeliverRequestPackage
@ -96,7 +96,7 @@ import * as InventorymoveRecordDetailApi from '@/api/wms/inventorymoveRecordDeta
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
// //
defineOptions({ name: 'InventorymoveRecordMain' }) defineOptions({ name: 'InventorymoveRecordMainNew' })
const message = useMessage() // const message = useMessage() //
const { t } = useI18n() // const { t } = useI18n() //
@ -105,7 +105,7 @@ const importFileName = ref()
const route = useRoute() // const route = useRoute() //
const routeName = ref() const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref([...InventorymoveRecordMain.allSchemas.tableColumns,...InventorymoveRecordDetail.allSchemas.tableMainColumns]) const tableColumns = ref([...InventorymoveRecordMainNew.allSchemas.tableColumns,...InventorymoveRecordDetailNew.allSchemas.tableMainColumns])
console.log(99 , routeName.value) console.log(99 , routeName.value)
const fromInventoryStatus = ref() const fromInventoryStatus = ref()
@ -278,7 +278,7 @@ const handleExport = async () => {
* tableForm方法 * tableForm方法
*/ */
const tableFormKeys = {} const tableFormKeys = {}
InventorymoveRecordDetail.allSchemas.tableFormColumns.forEach(item => { InventorymoveRecordDetailNew.allSchemas.tableFormColumns.forEach(item => {
tableFormKeys[item.field] = item.default ? item.default : '' tableFormKeys[item.field] = item.default ? item.default : ''
}) })
const tableData = ref([]) const tableData = ref([])

8
src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/inventorymoveRecordMain.data.ts → src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/inventorymoveRecordMainNew.data.ts

@ -4,7 +4,7 @@ import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
*/ */
export const InventorymoveRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ export const InventorymoveRecordMainNew = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '单据号', label: '单据号',
field: 'number', field: 'number',
@ -351,7 +351,7 @@ export const InventorymoveRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
])) ]))
//表单校验 //表单校验
export const InventorymoveRecordMainRules = reactive({ export const InventorymoveRecordMainNewRules = reactive({
requestNumber: [ requestNumber: [
{ required: true, message: '请选择申请单号', trigger: 'change' } { required: true, message: '请选择申请单号', trigger: 'change' }
], ],
@ -408,7 +408,7 @@ export const InventorymoveRecordMainRules = reactive({
/** /**
* @returns {Array} * @returns {Array}
*/ */
export const InventorymoveRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const InventorymoveRecordDetailNew = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '单据号', label: '单据号',
field: 'number', field: 'number',
@ -688,7 +688,7 @@ export const InventorymoveRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
])) ]))
//表单校验 //表单校验
export const InventorymoveRecordDetailRules = reactive({ export const InventorymoveRecordDetailNewRules = reactive({
fromPackingNumber: [ fromPackingNumber: [
{ required: true, message: '请选择从包装号', trigger: 'change' } { required: true, message: '请选择从包装号', trigger: 'change' }
], ],
Loading…
Cancel
Save