Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

hella_online_20241017
陈薪名 4 months ago
parent
commit
5624b8df3b
  1. 1
      src/views/wms/inventoryjobManage/containermanage/containerMainRequest/index.vue
  2. 10
      src/views/wms/inventoryjobManage/containermanage/containerRecordMain/containerRecordMain.data.ts
  3. 22
      src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue
  4. 1
      src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue
  5. 2
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts

1
src/views/wms/inventoryjobManage/containermanage/containerMainRequest/index.vue

@ -176,6 +176,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
newRow['uom'] = item['uom']
newRow['fromLocationCode'] = item['locationCode']
newRow['fromInventoryStatus'] = item['inventoryStatus']
newRow['toQty'] = item['qty']
tableData.value.push(newRow)
})
}else if(formField == 'toLocationCode'){

10
src/views/wms/inventoryjobManage/containermanage/containerRecordMain/containerRecordMain.data.ts

@ -233,11 +233,11 @@ export const ContainerRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'containerNumber',
sort: 'custom'
},
// {
// label: '来源库位代码',
// field: 'fromLocationCode',
// sort: 'custom',
// },
{
label: '来源库位代码',
field: 'fromLocationCode',
sort: 'custom',
},
{
label: '目标库位代码',
field: 'toLocationCode',

22
src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue

@ -12,7 +12,7 @@
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="ContainerRecordMain.allSchemas"
:detailAllSchemas="ContainerRecordDetail.allSchemas"
:detailAllSchemas="ContainerRecordDetailAllSchemas"
/>
<!-- 列表 -->
@ -67,7 +67,9 @@
<script setup lang="ts">
import download from '@/utils/download'
import { ContainerRecordMain,ContainerRecordMainRules,ContainerRecordDetail,ContainerRecordDetailRules } from './containerRecordMain.data'
import { ContainerRecordMain, ContainerRecordMainRules, ContainerRecordDetail, ContainerRecordDetailRules } from './containerRecordMain.data'
console.log(3444,ContainerRecordDetail)
import * as ContainerRecordMainApi from '@/api/wms/containerRecordMain'
import * as ContainerRecordDetailApi from '@/api/wms/containerRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
@ -76,6 +78,7 @@ import Detail from '@/components/Detail/src/Detail.vue'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import { json } from 'stream/consumers'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'ContainerRecordMain' })
const message = useMessage() //
@ -85,7 +88,10 @@ const routeName = ref()
routeName.value = route.name
const businessType = ref()
const importFileName = ref()
const tableColumns = ref([...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetail.allSchemas.tableMainColumns])
const tableColumns = ref([...ContainerRecordMain.allSchemas.tableColumns, ...ContainerRecordDetail.allSchemas.tableMainColumns])
// const ContainerRecordDetailTableColumns = ref(JSON.parse(JSON.stringify(ContainerRecordDetail.allSchemas.tableMainColumns)))
const ContainerRecordDetailAllSchemas = ref(JSON.parse(JSON.stringify(ContainerRecordDetail.allSchemas)))
console.log(2233,ContainerRecordDetail.allSchemas.tableMainColumns)
const searchType = ref()
const { tableObject, tableMethods } = useTable({
getListApi: ContainerRecordDetailApi.getContainerRecordDetailPage //
@ -135,6 +141,16 @@ else if ( routeName.value == 'ScrapContainerManageRecord') {
businessType.value = 'ContainerManage'
importFileName.value = '器具管理记录'
}
if ( routeName.value == 'InitialContainerManageRecord') {
const array = ContainerRecordDetail.allSchemas.tableMainColumns.filter(item=>item.field != "fromLocationCode")
ContainerRecordDetailAllSchemas.value.tableMainColumns = array
tableColumns.value = [...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetailAllSchemas.value.tableMainColumns]
}
else {
ContainerRecordDetail.allSchemas.tableMainColumns =JSON.parse(JSON.stringify(ContainerRecordDetail.allSchemas.tableMainColumns))
tableColumns.value = [...ContainerRecordMain.allSchemas.tableColumns,...ContainerRecordDetail.allSchemas.tableMainColumns]
}
//

1
src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue

@ -158,6 +158,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
newRow['fromLocationCode'] = item['locationCode']
newRow['fromInventoryStatus'] = item['inventoryStatus']
newRow['toInventoryStatus'] = 'SCRAP'
newRow['toQty'] = item['qty']
tableData.value.push(newRow)
})
}else if(formField == 'toLocationCode'){

2
src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts

@ -629,7 +629,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
hiddenInMain:true,
sortTableDefault:8,
form: {
component: 'InputNumber',
componentProps: {

Loading…
Cancel
Save