Browse Source

计划外入库字段顺序修改

master
李胜楠 12 months ago
parent
commit
c2c7eb0095
  1. 428
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptJobMain/unplannedreceiptJobMain.data.ts
  2. 38
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/index.vue
  3. 334
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/unplannedreceiptRecordMain.data.ts
  4. 478
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts

428
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptJobMain/unplannedreceiptJobMain.data.ts

@ -6,29 +6,35 @@ import { dateFormatter } from '@/utils/formatTime'
*/ */
export const UnplannedreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([ export const UnplannedreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '申请单号', label: '单号',
field: 'requestNumber', field: 'number',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150,
fixed: 'left'
}, },
isSearch: true, isSearch: true,
}, },
{ {
label: '到仓库代码', label: '状态',
field: 'toWarehouseCode', field: 'status',
dictType: DICT_TYPE.JOB_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到库区代码范围', label: '申请单号',
field: 'toAreaCodes', field: 'requestNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isSearch: true,
}, },
{ {
label: '申请时间', label: '申请时间',
@ -70,18 +76,6 @@ export const UnplannedreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '状态',
field: 'status',
dictType: DICT_TYPE.JOB_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '过期时间', label: '过期时间',
field: 'expiredTime', field: 'expiredTime',
@ -103,28 +97,16 @@ export const UnplannedreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '最后更新时间', label: '到仓库代码',
field: 'updateTime', field: 'toWarehouseCode',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}, },
}, },
{ {
label: '最后更新者', label: '到库区代码范围',
field: 'updater', field: 'toAreaCodes',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -138,92 +120,6 @@ export const UnplannedreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
// width: 150 // width: 150
// }, // },
// }, // },
{
label: '优先级',
field: 'priority',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
}
},
{
label: '优先级增量',
field: 'priorityIncrement',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
}
},
{
label: '部门',
field: 'departmentCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '承接人',
field: 'acceptUserId',
sort: 'custom',
table: {
width: 150
},
},
{
label: '承接时间',
field: 'acceptTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '完成人',
field: 'completeUserId',
sort: 'custom',
table: {
width: 150
},
},
{
label: '完成时间',
field: 'completeTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{ {
label: '从库位类型范围', label: '从库位类型范围',
field: 'fromLocationTypes', field: 'fromLocationTypes',
@ -248,54 +144,46 @@ export const UnplannedreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '单据号', label: '优先级',
field: 'number', field: 'priority',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150, width: 150
fixed: 'left'
}, },
isSearch: true, form: {
component: 'InputNumber',
}
}, },
{ {
label: '业务类型', label: '优先级增量',
field: 'businessType', field: 'priorityIncrement',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '备注', label: '业务类型',
field: 'remark', field: 'businessType',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '创建时间', label: '部门',
field: 'createTime', field: 'departmentCode',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}, },
}, },
{ {
label: '创建者', label: '备注',
field: 'creator', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -491,6 +379,118 @@ export const UnplannedreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '承接时间',
field: 'acceptTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '承接人',
field: 'acceptUserId',
sort: 'custom',
table: {
width: 150
},
},
{
label: '完成时间',
field: 'completeTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '完成人',
field: 'completeUserId',
sort: 'custom',
table: {
width: 150
},
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
},
{
label: '最后更新时间',
field: 'updateTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '最后更新者',
field: 'updater',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -560,130 +560,122 @@ export const UnplannedreceiptJobMainRules = reactive({
*/ */
export const UnplannedreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '包装号', label: '单据号',
field: 'packingNumber', field: 'number',
sort: 'custom',
table: {
width: 150
},
},
{
label: '器具号',
field: 'containerNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '批次', label: '物品代码',
field: 'batch', field: 'itemCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '替代批次', label: '物品名称',
field: 'altBatch', field: 'itemName',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '库存状态', label: '物品描述1',
field: 'inventoryStatus', field: 'itemDesc1',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '原因', label: '物品描述2',
field: 'reason', field: 'itemDesc2',
dictType: DICT_TYPE.UNPLANNED_RECEIPT_REASON,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到库位代码', label: '批次',
field: 'toLocationCode', field: 'batch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '货主代码', label: '包装号',
field: 'ownerCode', field: 'packingNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品代码', label: '器具号',
field: 'itemCode', field: 'containerNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品名称', label: '数量',
field: 'itemName', field: 'qty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '物品描述1', label: '计量单位',
field: 'itemDesc1', field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品描述2', label: '到库位代码',
field: 'itemDesc2', field: 'toLocationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '项目代码', label: '库存状态',
field: 'projectCode', field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '数量', label: '替代批次',
field: 'qty', field: 'altBatch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '计量单位', label: '原因',
field: 'uom', field: 'reason',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.UNPLANNED_RECEIPT_REASON,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
@ -692,24 +684,24 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '单据号', label: '货主代码',
field: 'number', field: 'ownerCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '备注', label: '项目代码',
field: 'remark', field: 'projectCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '创建时间', label: '到货日期',
field: 'createTime', field: 'arriveDate',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -728,16 +720,8 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '创建者', label: '生产日期',
field: 'creator', field: 'produceDate',
sort: 'custom',
table: {
width: 150
},
},
{
label: '到货日期',
field: 'arriveDate',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -756,8 +740,8 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '生产日期', label: '过期日期',
field: 'produceDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -776,8 +760,16 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '过期日期', label: '备注',
field: 'expireDate', field: 'remark',
sort: 'custom',
table: {
width: 150
},
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -795,6 +787,14 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
},
])) ]))
//表单校验 //表单校验

38
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/index.vue

@ -1,7 +1,7 @@
<template> <template>
<ContentWrap> <ContentWrap>
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<Search :schema="TransferreceiptRecordMain.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" /> <Search :schema="UnplannedreceiptRecordMain.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap> </ContentWrap>
<!-- 列表头部 --> <!-- 列表头部 -->
@ -11,7 +11,7 @@
:routeName="routeName" :routeName="routeName"
@updataTableColumns="updataTableColumns" @updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick" @searchFormClick="searchFormClick"
:allSchemas="TransferreceiptRecordMain.allSchemas" :allSchemas="UnplannedreceiptRecordMain.allSchemas"
/> />
<!-- 列表 --> <!-- 列表 -->
@ -42,10 +42,10 @@
<BasicForm <BasicForm
ref="formRef" ref="formRef"
@success="getList" @success="getList"
:rules="TransferreceiptRecordMainRules" :rules="UnplannedreceiptRecordMainRules"
:formAllSchemas="TransferreceiptRecordMain.allSchemas" :formAllSchemas="UnplannedreceiptRecordMain.allSchemas"
:tableAllSchemas="TransferreceiptRecordDetail.allSchemas" :tableAllSchemas="UnplannedreceiptRecordDetail.allSchemas"
:tableFormRules="TransferreceiptRecordDetailRules" :tableFormRules="UnplannedreceiptRecordDetailRules"
:isBusiness="true" :isBusiness="true"
/> />
@ -53,22 +53,22 @@
<Detail <Detail
ref="detailRef" ref="detailRef"
:isBasic="false" :isBasic="false"
:allSchemas="TransferreceiptRecordMain.allSchemas" :allSchemas="UnplannedreceiptRecordMain.allSchemas"
:detailAllSchemas="TransferreceiptRecordDetail.allSchemas" :detailAllSchemas="UnplannedreceiptRecordDetail.allSchemas"
:detailAllSchemasRules="TransferreceiptRecordDetailRules" :detailAllSchemasRules="UnplannedreceiptRecordDetailRules"
:apiPage="TransferreceiptRecordDetailApi.getTransferreceiptRecordDetailPage" :apiPage="UnplannedreceiptRecordDetailApi.getUnplannedreceiptRecordDetailPage"
/> />
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { TransferreceiptRecordMain,TransferreceiptRecordMainRules,TransferreceiptRecordDetail,TransferreceiptRecordDetailRules } from '@/views/wms/inventoryjobManage/transferreceipt/transferreceiptRecordMain/transferreceiptRecordMain.data' import { UnplannedreceiptRecordMain,UnplannedreceiptRecordMainRules,UnplannedreceiptRecordDetail,UnplannedreceiptRecordDetailRules } from '@/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/unplannedreceiptRecordMain.data'
import * as TransferreceiptRecordMainApi from '@/api/wms/transferreceiptRecordMain' import * as UnplannedreceiptRecordMainApi from '@/api/wms/unplannedreceiptRecordMain'
import * as TransferreceiptRecordDetailApi from '@/api/wms/transferreceiptRecordDetail' import * as UnplannedreceiptRecordDetailApi from '@/api/wms/unplannedreceiptRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
// //
defineOptions({ name: 'TransferreceiptRecordMain' }) defineOptions({ name: 'UnplannedreceiptRecordMain' })
const message = useMessage() // const message = useMessage() //
const { t } = useI18n() // const { t } = useI18n() //
@ -76,7 +76,7 @@ const { t } = useI18n() // 国际化
const route = useRoute() // const route = useRoute() //
const routeName = ref() const routeName = ref()
routeName.value = route.name routeName.value = route.name
const tableColumns = ref(TransferreceiptRecordMain.allSchemas.tableColumns) const tableColumns = ref(UnplannedreceiptRecordMain.allSchemas.tableColumns)
// //
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
@ -84,7 +84,7 @@ const updataTableColumns = (val) => {
} }
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: TransferreceiptRecordMainApi.getTransferreceiptRecordMainPage // getListApi: UnplannedreceiptRecordMainApi.getUnplannedreceiptRecordMainPage //
}) })
// //
@ -92,7 +92,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:${baseURL}:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:unplannedreceipt-record-main:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -141,8 +141,8 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await TransferreceiptRecordMainApi.exportTransferreceiptRecordMain(setSearchParams) const data = await UnplannedreceiptRecordMainApi.exportUnplannedreceiptRecordMain(setSearchParams)
download.excel(data, '调拨入库记录主.xlsx') download.excel(data, '计划外入库记录主.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

334
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/unplannedreceiptRecordMain.data.ts

@ -6,17 +6,18 @@ import { dateFormatter } from '@/utils/formatTime'
*/ */
export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '申请单号', label: '单号',
field: 'requestNumber', field: 'number',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150,
fixed: 'left'
}, },
isSearch: true isSearch: true
}, },
{ {
label: '任务单号', label: '申请单号',
field: 'jobNumber', field: 'requestNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -24,51 +25,17 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
isSearch: true isSearch: true
}, },
{ {
label: '到仓库代码', label: '任务单号',
field: 'toWarehouseCode', field: 'jobNumber',
sort: 'custom',
table: {
width: 150
},
},
{
label: '到库位类型范围',
field: 'toLocationTypes',
dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
label: '到库区代码范围',
field: 'toAreaCodes',
sort: 'custom',
table: {
width: 150
},
},
{
label: '出库事务类型',
field: 'outTransactionType',
sort: 'custom',
table: {
width: 150
},
},
{
label: '入库事务类型',
field: 'inTransactionType',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isSearch: true
}, },
{ {
label: '执行时间', label: '申请时间',
field: 'executeTime', field: 'requestTime',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -87,8 +54,8 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
}, },
}, },
{ {
label: '生效日期', label: '截止时间',
field: 'activeDate', field: 'dueTime',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -107,8 +74,8 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
}, },
}, },
{ {
label: '申请时间', label: '执行时间',
field: 'requestTime', field: 'executeTime',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -127,8 +94,8 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
}, },
}, },
{ {
label: '截止时间', label: '生效日期',
field: 'dueTime', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -147,17 +114,17 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
}, },
}, },
{ {
label: '部门', label: '到仓库代码',
field: 'departmentCode', field: 'toWarehouseCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '接口类型', label: '到库位类型范围',
field: 'interfaceType', field: 'toLocationTypes',
dictType: DICT_TYPE.INTERFACE_TYPE, dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
@ -166,14 +133,28 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
}, },
}, },
{ {
label: '单据号', label: '到库区代码范围',
field: 'number', field: 'toAreaCodes',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150, width: 150
fixed: 'left' },
},
{
label: '出库事务类型',
field: 'outTransactionType',
sort: 'custom',
table: {
width: 150
},
},
{
label: '入库事务类型',
field: 'inTransactionType',
sort: 'custom',
table: {
width: 150
}, },
isSearch: true
}, },
{ {
label: '业务类型', label: '业务类型',
@ -184,16 +165,27 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
}, },
}, },
{ {
label: '备注', label: '部门',
field: 'remark', field: 'departmentCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '创建者', label: '接口类型',
field: 'creator', field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
label: '备注',
field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -219,6 +211,14 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
},
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',
@ -302,6 +302,54 @@ export const UnplannedreceiptRecordMainRules = reactive({
* @returns {Array} * @returns {Array}
*/ */
export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 150
},
},
{
label: '物品代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '物品名称',
field: 'itemName',
sort: 'custom',
table: {
width: 150
},
},
{
label: '物品描述1',
field: 'itemDesc1',
sort: 'custom',
table: {
width: 150
},
},
{
label: '物品描述2',
field: 'itemDesc2',
sort: 'custom',
table: {
width: 150
},
},
{
label: '批次',
field: 'batch',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '包装号', label: '包装号',
field: 'packingNumber', field: 'packingNumber',
@ -319,8 +367,52 @@ export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]
}, },
}, },
{ {
label: '批次', label: '数量',
field: 'batch', field: 'qty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
}
},
{
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
label: '单价',
field: 'singlePrice',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
}
},
{
label: '金额',
field: 'amount',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
}
},
{
label: '到库位代码',
field: 'toLocationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -397,22 +489,6 @@ export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]
} }
}, },
}, },
{
label: '货主代码',
field: 'ownerCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '到库位代码',
field: 'toLocationCode',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '到库位组代码', label: '到库位组代码',
field: 'toLocationGroupCode', field: 'toLocationGroupCode',
@ -441,38 +517,27 @@ export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]
}, },
}, },
{ {
label: '单价', label: '货主代码',
field: 'singlePrice', field: 'ownerCode',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
}
},
{
label: '金额',
field: 'amount',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '单据号', label: '项目代码',
field: 'number', field: 'projectCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品代码', label: '接口类型',
field: 'itemCode', field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -522,60 +587,6 @@ export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]
width: 150 width: 150
}, },
}, },
{
label: '物品名称',
field: 'itemName',
sort: 'custom',
table: {
width: 150
},
},
{
label: '物品描述1',
field: 'itemDesc1',
sort: 'custom',
table: {
width: 150
},
},
{
label: '物品描述2',
field: 'itemDesc2',
sort: 'custom',
table: {
width: 150
},
},
{
label: '项目代码',
field: 'projectCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
}
},
{
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',
@ -584,17 +595,6 @@ export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]
// width: 150 // width: 150
// }, // },
// }, // },
{
label: '接口类型',
field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
])) ]))
//表单校验 //表单校验

478
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts

@ -25,38 +25,6 @@ const userDept = userStore.userSelfInfo.dept
* @returns {Array} * @returns {Array}
*/ */
export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '到仓库代码',
field: 'toWarehouseCode',
sort: 'custom',
table: {
width: 150
},
isForm: false,
},
{
label: '到库位类型范围',
field: 'toLocationTypes',
dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom',
table: {
width: 150
},
isForm: false,
},
{
label: '到库区代码范围',
field: 'toAreaCodes',
sort: 'custom',
table: {
width: 150
},
isSearch: true,
isForm: false,
},
{ {
label: '单据号', label: '单据号',
field: 'number', field: 'number',
@ -69,59 +37,22 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
isSearch: true, isSearch: true,
}, },
{ {
label: '业务类型', label: '状态',
field: 'businessType', field: 'status',
dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: { form: {
value: 'UnplannedReceipt', value: '1',
componentProps: { componentProps: {
disabled: true disabled: true
} }
}, }
isForm: false,
},
{
label: '备注',
field: 'remark',
sort: 'custom',
table: {
width: 150
},
isTable: false
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isForm: false
}, },
{ {
label: '申请时间', label: '申请时间',
@ -167,23 +98,18 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
}, },
}, },
{ {
label: '部门', label: '到仓库代码',
field: 'departmentCode', field: 'toWarehouseCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: { isForm: false,
value: userDept.name,
componentProps: {
disabled: true
}
}
}, },
{ {
label: '状态', label: '到库位类型范围',
field: 'status', field: 'toLocationTypes',
dictType: DICT_TYPE.REQUEST_STATUS, dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true, isTable: true,
@ -191,42 +117,46 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
form: { isForm: false,
value: '1',
componentProps: {
disabled: true
}
}
}, },
{ {
label: '最后更新时间', label: '到库区代码范围',
field: 'updateTime', field: 'toAreaCodes',
formatter: dateFormatter, sort: 'custom',
detail: { table: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' width: 150
}, },
isSearch: true,
isForm: false,
},
{
label: '业务类型',
field: 'businessType',
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
}, },
form: { form: {
component: 'DatePicker', value: 'UnplannedReceipt',
componentProps: { componentProps: {
type: 'datetime', disabled: true
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}, },
isForm: false, isForm: false,
}, },
{ {
label: '最后更新者', label: '部门',
field: 'updater', field: 'departmentCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isForm: false, form: {
value: userDept.name,
componentProps: {
disabled: true
}
}
}, },
{ {
label: '自动提交', label: '自动提交',
@ -308,6 +238,76 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
} }
} }
}, },
{
label: '备注',
field: 'remark',
sort: 'custom',
table: {
width: 150
},
isTable: false
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isForm: false
},
{
label: '最后更新时间',
field: 'updateTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false,
},
{
label: '最后更新者',
field: 'updater',
sort: 'custom',
table: {
width: 150
},
isForm: false,
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -355,6 +355,72 @@ export const UnplannedreceiptRequestMainRules = reactive({
* @returns {Array} * @returns {Array}
*/ */
export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
form: {
componentProps: {
disabled: true
}
}
},
{
label: '物品代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
}
},
{
label: '物品名称',
field: 'itemName',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false
},
{
label: '物品描述1',
field: 'itemDesc1',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false
},
{
label: '物品描述2',
field: 'itemDesc2',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false
},
{
label: '批次',
field: 'batch',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
}
},
{ {
label: '包装号', label: '包装号',
field: 'packingNumber', field: 'packingNumber',
@ -394,8 +460,42 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
} }
}, },
{ {
label: '批次', label: '数量',
field: 'batch', field: 'qty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6,
}
},
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6,
},
},
{
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'Select'
}
},
{
label: '到库位代码',
field: 'toLocationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -404,6 +504,21 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
disabled: true disabled: true
} }
}, },
{
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true,
type: 'Select'
}
},
{ {
label: '替代批次', label: '替代批次',
field: 'altBatch', field: 'altBatch',
@ -493,21 +608,6 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
valueFormat: 'x', valueFormat: 'x',
} }
}, },
{
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true,
type: 'Select'
}
},
{ {
label: '到货主代码', label: '到货主代码',
field: 'toOwnerCode', field: 'toOwnerCode',
@ -533,29 +633,14 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
} }
}, },
{ {
label: '到库位代码', label: '项目代码',
field: 'toLocationCode', field: 'projectCode',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
}
},
{
label: '单据号',
field: 'number',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTableForm: false, isTableForm: false,
form: { isForm: false
componentProps: {
disabled: true
}
}
}, },
{ {
label: '备注', label: '备注',
@ -566,16 +651,6 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
}, },
isTable: false, isTable: false,
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -599,93 +674,8 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
isForm: false isForm: false
}, },
{ {
label: '物品代码', label: '创建者',
field: 'itemCode', field: 'creator',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
}
},
{
label: '物品名称',
field: 'itemName',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false
},
{
label: '物品描述1',
field: 'itemDesc1',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false
},
{
label: '物品描述2',
field: 'itemDesc2',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false
},
{
label: '项目代码',
field: 'projectCode',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false
},
{
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6,
}
},
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6,
},
},
{
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'Select'
}
},
{
label: '最后更新者',
field: 'updater',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -715,6 +705,16 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
{
label: '最后更新者',
field: 'updater',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

Loading…
Cancel
Save