You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38148 lines
659 KiB
38148 lines
659 KiB
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
import * as getRequestsettingApi from '@/api/wms/requestsetting/index.ts'
|
|
// import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
|
|
// import { h } from 'vue'
|
|
|
|
// 获取当前操作人的部门
|
|
import { useUserStore } from '@/store/modules/user'
|
|
const userStore = useUserStore()
|
|
const userDept = userStore.userSelfInfo.dept
|
|
|
|
|
|
// console.log(12, h(BasicForm))
|
|
// const BasicFormType = h(BasicForm).type
|
|
// const { formLoading } = BasicFormType.setup
|
|
// console.log(12, formLoading)
|
|
// BasicFormType.setup.opensearchTable('asnNumber', 'asnNumber')
|
|
|
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
const queryParams = {
|
|
pageSize:10,
|
|
pageNo:1,
|
|
code:'PurchaseClaimRequest'
|
|
}
|
|
const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
|
|
const requestsettingData =data?.list[0]||{}
|
|
|
|
/**
|
|
* @returns {Array} 基础物料信息
|
|
*/
|
|
export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
table: {
|
|
width: 150
|
|
},
|
|
// tableForm:{
|
|
// minWidth:200,
|
|
// sortable:false
|
|
// }
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '描述1',
|
|
field: 'desc1',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
} ,
|
|
// isTableForm:false
|
|
},
|
|
{
|
|
label: '描述2',
|
|
field: 'desc2',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
} ,
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.ITEM_STATUS,
|
|
dictClass: 'string',
|
|
isForm: true,
|
|
isSearch: true,
|
|
isTable: true,
|
|
table: {
|
|
width: 100
|
|
} ,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
table: {
|
|
width: 120
|
|
} ,
|
|
},
|
|
{
|
|
label: '替代计量单位',
|
|
field: 'altUom',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 150
|
|
} ,
|
|
},
|
|
{
|
|
label: '是否标包',
|
|
field: 'isStdPack',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 120
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
// tableForm:{
|
|
// width: 180,
|
|
// type:'Radio',
|
|
// }
|
|
},
|
|
{
|
|
label: '可采购',
|
|
field: 'enableBuy',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 100
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '可制造',
|
|
field: 'enableMake',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 100
|
|
} ,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '可委外加工',
|
|
field: 'enableOutsourcing',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 120
|
|
} ,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '回收件',
|
|
field: 'isRecycled',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 100
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '虚零件',
|
|
field: 'isPhantom',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 100
|
|
} ,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: 'ABC类',
|
|
field: 'abcClass',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.ABC_CLASS,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 100
|
|
} ,
|
|
},
|
|
{
|
|
label: '类型',
|
|
field: 'type',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.ITEM_TYPE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 100
|
|
} ,
|
|
},
|
|
{
|
|
label: '种类',
|
|
field: 'category',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.ITEM_CATEGORY,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 100
|
|
} ,
|
|
},
|
|
{
|
|
label: '分组',
|
|
field: 'itemGroup',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.ITEM_GROUP,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 100
|
|
} ,
|
|
},
|
|
{
|
|
label: '颜色',
|
|
field: 'color',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.ITEM_COLOR,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 100
|
|
} ,
|
|
},
|
|
{
|
|
label: '配置',
|
|
field: 'configuration',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.ITEM_CONFIGURATION,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 100
|
|
} ,
|
|
},
|
|
{
|
|
label: '项目',
|
|
field: 'project',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 100
|
|
} ,
|
|
},
|
|
{
|
|
label: '质量等级',
|
|
field: 'eqLevel',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.EQ_LEVEL,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 120
|
|
} ,
|
|
},
|
|
{
|
|
label: '有效天数',
|
|
field: 'validityDays',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 120
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 120
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
sort: 'custom',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
} ,
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
// tableForm:{
|
|
// width: 200,
|
|
// type:'FormDateTime',
|
|
// }
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
sort: 'custom',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
} ,
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
sort: 'custom',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
isForm: false,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
} ,
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
isForm: false,
|
|
isTable: false
|
|
},
|
|
{ label: '备注', field: 'remark', sort: 'custom', isTable: false},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
},
|
|
}
|
|
]))
|
|
|
|
// 表单校验
|
|
export const ItembasicRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
name: [
|
|
{ required: true, message: '请输入名称', trigger: 'blur' }
|
|
],
|
|
status: [
|
|
{ required: true, message: '请选择状态', trigger: 'change' }
|
|
],
|
|
uom: [
|
|
{ required: true, message: '请选择计量单位', trigger: 'change' }
|
|
],
|
|
altUom: [
|
|
{ required: true, message: '请选择替代计量单位', trigger: 'change' }
|
|
],
|
|
isStdPack: [
|
|
{ required: true, message: '请选择是否标包', trigger: 'change' }
|
|
],
|
|
enableBuy: [
|
|
{ required: true, message: '请选择是否可采购', trigger: 'change' }
|
|
],
|
|
enableMake: [
|
|
{ required: true, message: '请选择是否可制造', trigger: 'change' }
|
|
],
|
|
enableOutsourcing: [
|
|
{ required: true, message: '请选择是否可委外加工', trigger: 'change' }
|
|
],
|
|
isRecycled: [
|
|
{ required: true, message: '请选择回收件', trigger: 'change' }
|
|
],
|
|
isPhantom: [
|
|
{ required: true, message: '请选择虚零件', trigger: 'change' }
|
|
],
|
|
abcClass: [
|
|
{ required: true, message: '请选择ABC类', trigger: 'change' }
|
|
],
|
|
type: [
|
|
{ required: true, message: '请选择类型', trigger: 'change' }
|
|
],
|
|
category: [
|
|
{ required: true, message: '请选择种类', trigger: 'change' }
|
|
],
|
|
itemGroup: [
|
|
{ required: true, message: '请选择分组', trigger: 'change' }
|
|
],
|
|
color: [
|
|
{ required: true, message: '请选择颜色', trigger: 'change' }
|
|
],
|
|
configuration: [
|
|
{ required: true, message: '请选择配置', trigger: 'change' }
|
|
],
|
|
project: [
|
|
{ required: true, message: '请输入项目', trigger: 'blur' }
|
|
],
|
|
eqLevel: [
|
|
{ required: true, message: '请选择质量等级', trigger: 'change' }
|
|
],
|
|
validityDays: [
|
|
{ required: true, message: '请输入有效天数', trigger: 'change' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
activeTime: [
|
|
{ required: true, message: '请输入生效时间', trigger: 'change' }
|
|
],
|
|
expireTime: [
|
|
{ required: true, message: '请输入失效时间', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 基础包装信息
|
|
*/
|
|
export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
table: {
|
|
width: 120
|
|
}
|
|
},
|
|
{
|
|
label: '包装单位',
|
|
field: 'stdPackUnit',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
table: {
|
|
width: 120
|
|
}
|
|
},
|
|
{
|
|
label: '包装数量',
|
|
field: 'stdPackQty',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
table: {
|
|
width: 120
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '替代包装单位1',
|
|
field: 'altPackUnit1',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '替代包装量1',
|
|
field: 'altPackQty1',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 130
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '替代包装量2',
|
|
field: 'altPackQty2',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 130
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '替代包装单位3',
|
|
field: 'altPackUnit3',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '替代包装量3',
|
|
field: 'altPackQty3',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 130
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '替代包装单位4',
|
|
field: 'altPackUnit4',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '替代包装量4',
|
|
field: 'altPackQty4',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 130
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
table: {
|
|
width: 120
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
sort: 'custom',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
sort: 'custom',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
sort: 'custom',
|
|
isForm: false,
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
isForm: false,
|
|
isTable: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
// 表单校验
|
|
export const ItempackagingRules = reactive({
|
|
itemCode: [{ required: true, message: '物品代码不能为空', trigger: 'blur' }],
|
|
uom: [{ required: true, message: '计量单位不能为空', trigger: 'change' }],
|
|
stdPackUnit: [{ required: true, message: '包装单位不能为空', trigger: 'change' }],
|
|
stdPackQty: [{ required: true, message: '包装数量不能为空', trigger: 'blur' }],
|
|
available: [{ required: true, message: '是否可用不能为空', trigger: 'change' }]
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 基础物料清单
|
|
*/
|
|
export const Bom = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '父物料代码',
|
|
field: 'productItemCode',
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '子物料代码',
|
|
field: 'componentItemCode',
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '子物料计量单位',
|
|
field: 'componentUom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
isTable: true,
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '子物料数量',
|
|
field: 'componentQty',
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
table: {
|
|
width: 120
|
|
}
|
|
},
|
|
{
|
|
label: '工序代码',
|
|
field: 'processCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 120
|
|
}
|
|
},
|
|
{
|
|
label: '版本',
|
|
field: 'version',
|
|
sort: 'custom'
|
|
},
|
|
{
|
|
label: '层级',
|
|
field: 'layer',
|
|
sort: 'custom',
|
|
// form: {
|
|
// component: 'Input',
|
|
// componentProps: {
|
|
// // focus: ()=>{console.log('111111111111111111111')},
|
|
// modelValue: '11111'
|
|
// }
|
|
// }
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
formatter : dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
table: {
|
|
width: 120
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
formatter: dateFormatter,
|
|
isForm: false,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
isForm: false,
|
|
isTable: false
|
|
},
|
|
{ label: '备注', field: 'remark', isTable: false },
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const BomRules = reactive({
|
|
productItemCode: [
|
|
{ required: true, message: '请输入父物料代码', trigger: 'blur' }
|
|
],
|
|
componentItemCode: [
|
|
{ required: true, message: '请输入子物料代码', trigger: 'blur' }
|
|
],
|
|
componentUom: [
|
|
{ required: true, message: '请选择子物料计量单位', trigger: 'change' }
|
|
],
|
|
componentQty: [
|
|
{ required: true, message: '请输入子物料数量', trigger: 'blur' }
|
|
],
|
|
processCode: [
|
|
{ required: true, message: '请输入工序代码', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 基础标准成本价格单
|
|
*/
|
|
export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode',
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '物料代码',
|
|
field: 'itemCode',
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '货币',
|
|
field: 'currency',
|
|
dictType: DICT_TYPE.CURRENCY,
|
|
dictClass: 'string',
|
|
sort: 'custom',
|
|
isSearch : true,
|
|
isTable : true
|
|
},
|
|
{
|
|
label: '价格',
|
|
field: 'price',
|
|
sort: 'custom',
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 120
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
formatter : dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
formatter : dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isForm: false,
|
|
sort: 'custom',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
isForm: false,
|
|
isTable: false
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
isTable: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const StdcostpriceRules = reactive({
|
|
supplierCode: [
|
|
{ required: true, message: '请输入供应商代码', trigger: 'blur' }
|
|
],
|
|
itemCode: [
|
|
{ required: true, message: '请输入物料代码', trigger: 'blur' }
|
|
],
|
|
currency: [
|
|
{ required: true, message: '请选择货币', trigger: 'change' }
|
|
],
|
|
price: [
|
|
{ required: true, message: '请输入价格', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 生产线物料关系
|
|
*/
|
|
export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '完工收货库位',
|
|
field: 'fgLocationCode',
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '产线代码' ,
|
|
field: 'productionLineCode',
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode',
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
isTable: true,
|
|
table: {
|
|
width: 120
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
sort: 'custom',
|
|
formatter : dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
sort: 'custom',
|
|
formatter : dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label:'备注',
|
|
field: 'remark',
|
|
isTable: false
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isForm: false,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat : 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
isForm: false,
|
|
isTable: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const ProductionlineitemRules = reactive({
|
|
fgLocationCode: [
|
|
{ required: true, message: '请输入完工收货库位', trigger: 'blur' }
|
|
],
|
|
productionLineCode: [
|
|
{ required: true, message: '请输入产线代码', trigger: 'blur' }
|
|
],
|
|
itemCode: [
|
|
{ required: true, message: '请输入物品代码', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 供应商
|
|
*/
|
|
export const Supplier = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '简称',
|
|
field: 'shortName',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '地址',
|
|
field: 'address',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '国家',
|
|
field: 'country',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '城市',
|
|
field: 'city',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '电话',
|
|
field: 'phone',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '传真',
|
|
field: 'fax',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '邮编',
|
|
field: 'postId',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '联系人',
|
|
field: 'contacts',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label:'银行',
|
|
field: 'bank',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '币种',
|
|
field: 'currency',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.CURRENCY,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '税率',
|
|
field: 'taxRate',
|
|
sort: 'custom',
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '类型',
|
|
field: 'type',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.SUPPLIER_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
sort: 'custom',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
sort: 'custom',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
table: {
|
|
width: 180
|
|
}
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
sort: 'custom',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
table: {
|
|
width: 180
|
|
}
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
isTable: false,
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
sort: 'custom',
|
|
isTable: false,
|
|
isForm: false,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
table: {
|
|
width: 180
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
isTable: false,
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const SupplierRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
shortName: [
|
|
{ required: true, message: '请输入简称', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 供应商物品
|
|
*/
|
|
export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '物料代码',
|
|
field: 'itemCode',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '供应商物料代码',
|
|
field: 'supplierItemCode',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '供应商计量单位',
|
|
field: 'supplierUom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '转换率',
|
|
field: 'convertRate',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '供应商包装单位',
|
|
field: 'packUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '供应商包装量',
|
|
field: 'packQty',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '供应商替代包装单位',
|
|
field: 'altPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '供应商替代包装量',
|
|
field: 'altPackQty',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '每器具包装数',
|
|
field: 'packQtyOfContainer',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '默认收货仓库',
|
|
field: 'defaultWarehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '默认收货库位',
|
|
field: 'defaultLocationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '结算方式',
|
|
field: 'settlementType',
|
|
dictType: DICT_TYPE.SETTLEMENT_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
formatter: dateFormatter,
|
|
isTable: true,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: true,
|
|
isForm: false,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
isTable: true,
|
|
isForm: false,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const SupplieritemRules = reactive({
|
|
supplierCode: [
|
|
{ required: true, message: '请输入供应商代码', trigger: 'blur' }
|
|
],
|
|
itemCode: [
|
|
{ required: true, message: '请输入物料代码', trigger: 'blur' }
|
|
],
|
|
packUnit: [
|
|
{ required: true, message: '请选择供应商包装单位', trigger: 'change' }
|
|
],
|
|
packQty: [
|
|
{ required: true, message: '请输入供应商包装量', trigger: 'blur' }
|
|
],
|
|
packQtyOfContainer: [
|
|
{ required: true, message: '请输入每器具包装数', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 采购价格单
|
|
*/
|
|
export const Purchaseprice = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '物料代码',
|
|
field: 'itemCode',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '货币',
|
|
field: 'currency',
|
|
dictType: DICT_TYPE.CURRENCY,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '价格',
|
|
field: 'price',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
details: {
|
|
dateFormatter: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
details: {
|
|
dateFormatter: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: false,
|
|
isForm:false,
|
|
formatter: dateFormatter,
|
|
details: {
|
|
dateFormatter: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
isTable: false,
|
|
isForm:false,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const PurchasepriceRules = reactive({
|
|
supplierCode: [
|
|
{ required: true, message: '请输入供应商代码', trigger: 'blur' }
|
|
],
|
|
itemCode: [
|
|
{ required: true, message: '请输入物品代码', trigger: 'blur' }
|
|
],
|
|
currency: [
|
|
{ required: true, message: '请选择货币', trigger: 'change' }
|
|
],
|
|
price: [
|
|
{ required: true, message: '请输入价格', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 客户
|
|
*/
|
|
export const Customer = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '简称',
|
|
field: 'shortName',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label:'地址',
|
|
field: 'address',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '国家',
|
|
field: 'country',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '城市',
|
|
field: 'city',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '电话',
|
|
field: 'phone',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '传真',
|
|
field: 'fax',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '邮编',
|
|
field: 'postId',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '联系人',
|
|
field: 'contacts',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '银行',
|
|
field: 'bank',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '币种',
|
|
field: 'currency',
|
|
dictType: DICT_TYPE.CURRENCY,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '税率',
|
|
field: 'taxRate',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.CUSTOMER_TYPE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: false,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isForm: false,
|
|
isTable: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const CustomerRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
shortName: [
|
|
{ required: true, message: '请输入简称', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 客户月台
|
|
*/
|
|
export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '描述',
|
|
field: 'description',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '城市',
|
|
field: 'city',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '地址',
|
|
field: 'address',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '联系人姓名',
|
|
field: 'contactPerson',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '联系人电话',
|
|
field: 'contactPhone',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '仓库',
|
|
field: 'warehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '默认库位',
|
|
field: 'defaultLocationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: false,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
isSearch: false,
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
isSearch: false,
|
|
isTable: false,
|
|
isForm: false,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const CustomerdockRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
customerCode: [
|
|
{ required: true, message: '请输入客户代码', trigger: 'blur' }
|
|
],
|
|
defaultLocationCode: [
|
|
{ required: true, message: '请输入默认库位', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 客户物品
|
|
*/
|
|
export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '物料代码',
|
|
field: 'itemCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '客户物料代码',
|
|
field: 'customerItemCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '客户计量单位',
|
|
field: 'cusotmerUom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '转换率',
|
|
field: 'convertRate',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '客户包装单位',
|
|
field: 'packUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '客户包装量',
|
|
field: 'packQty',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '客户替代包装单位',
|
|
field: 'altPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '客户替代包装量',
|
|
field: 'altPackQty',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '每器具包装数',
|
|
field: 'packQtyOfContainer',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const CustomeritemRules = reactive({
|
|
customerCode: [
|
|
{ required: true, message: '请输入客户代码', trigger: 'blur' }
|
|
],
|
|
itemCode: [
|
|
{ required: true, message: '请输入物品代码', trigger: 'blur' }
|
|
],
|
|
packUnit: [
|
|
{ required: true, message: '请选择客户包装单位', trigger: 'change' }
|
|
],
|
|
packQty: [
|
|
{ required: true, message: '请输入客户包装量', trigger: 'blur' }
|
|
],
|
|
packQtyOfContainer: [
|
|
{ required: true, message: '请输入每器具包装数', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 项目
|
|
*/
|
|
export const Project = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
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',
|
|
}
|
|
},
|
|
isTable: false,
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isTable: false,
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const ProjectRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 销售价格单
|
|
*/
|
|
export const Saleprice = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '物料代码',
|
|
field: 'itemCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '货币',
|
|
field: 'currency',
|
|
dictType: DICT_TYPE.CURRENCY,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '价格',
|
|
field: 'price',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
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',
|
|
}
|
|
},
|
|
isForm: false,
|
|
isTable: false,
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isForm: false,
|
|
isTable: false,
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const SalepriceRules = reactive({
|
|
customercode: [
|
|
{ required: true, message: '请输入客户代码', trigger: 'blur' }
|
|
],
|
|
itemcode: [
|
|
{ required: true, message: '请输入物料代码', trigger: 'blur' }
|
|
],
|
|
currency: [
|
|
{ required: true, message: '请选择货币', trigger: 'change' }
|
|
],
|
|
price: [
|
|
{ required: true, message: '请输入价格', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 仓库
|
|
*/
|
|
export const Warehouse = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '描述',
|
|
field: 'description',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.WAREHOUSE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
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',
|
|
}
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const WarehouseRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 月台
|
|
*/
|
|
export const Dock = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '城市',
|
|
field: 'city',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '地址',
|
|
field: 'address',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.DOCK_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '默认库位代码',
|
|
field: 'defaultLocationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '联系人姓名',
|
|
field: 'contactPerson',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '联系人电话',
|
|
field: 'contactPhone',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const DockRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
type: [
|
|
{ required: true, message: '请输入类型', trigger: 'change' }
|
|
],
|
|
warehouseCode: [
|
|
{ required: true, message: '请输入仓库代码', trigger: 'blur' }
|
|
],
|
|
defaultLocationCode: [
|
|
{ required: true, message: '请输入默认库位代码', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 库区
|
|
*/
|
|
export const Area = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.AREA_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否是功能区',
|
|
field: 'isFunctional',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
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',
|
|
}
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const AreaRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
warehouseCode: [
|
|
{ required: true, message: '请输入仓库代码', trigger: 'blur' }
|
|
],
|
|
isFunctional: [
|
|
{ required: true, message: '请选择是否是功能区', trigger: 'change' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 库位组
|
|
*/
|
|
export const Locationgroup = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '区域代码',
|
|
field: 'areaCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
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',
|
|
}
|
|
},
|
|
isForm: false,
|
|
isTable: false
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isForm: false,
|
|
isTable: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const LocationgroupRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
warehouseCode: [
|
|
{ required: true, message: '请输入仓库代码', trigger: 'blur' }
|
|
],
|
|
areaCode: [
|
|
{ required: true, message: '请输入区域代码', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 库位
|
|
*/
|
|
export const Location = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '区域代码',
|
|
field: 'areaCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '库位组代码',
|
|
field: 'locationGroupCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: 'ERP库位代码',
|
|
field: 'erpLocationCode',
|
|
dictType: DICT_TYPE.ERP_LOCATION,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '巷道',
|
|
field: 'aisle',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '货架',
|
|
field: 'shelf',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '行',
|
|
field: 'locationRow',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '列',
|
|
field: 'locationColum',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '拣料优先级',
|
|
field: 'pickPriority',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '最大承重',
|
|
field: 'maxWeight',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '最大面积',
|
|
field: 'maxArea',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '最大体积',
|
|
field: 'maxVolume',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '用户组代码',
|
|
field: 'userGroupCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
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',
|
|
}
|
|
},
|
|
isForm: false,
|
|
isTable: false
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isForm: false,
|
|
isTable: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const LocationRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
warehouseCode: [
|
|
{ required: true, message: '请输入仓库代码', trigger: 'blur' }
|
|
],
|
|
areaCode: [
|
|
{ required: true, message: '请输入库区代码', trigger: 'blur' }
|
|
],
|
|
locationGroupCode: [
|
|
{ required: true, message: '请输入库位组代码', trigger: 'blur' }
|
|
],
|
|
erpLocationCode: [
|
|
{ required: true, message: '请选择ERP库位代码', trigger: 'change' }
|
|
],
|
|
type: [
|
|
{ required: true, message: '请选择类型', trigger: 'change' }
|
|
],
|
|
pickPriority: [
|
|
{ required: true, message: '请输入拣料优先级', trigger: 'blur' }
|
|
],
|
|
userGroupCode: [
|
|
{ required: true, message: '请输入用户组代码', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 车间
|
|
*/
|
|
export const Workshop = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.WORKSHOP_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isForm: false,
|
|
isTable: false
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isForm: false,
|
|
isTable: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const WorkshopRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 生产线
|
|
*/
|
|
export const Productionline = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.PRODUCTION_LINE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '原料库位',
|
|
field: 'rawLocationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '成品库位',
|
|
field: 'fgLocationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const ProductionlineRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
workshopCode: [
|
|
{ required: true, message: '请输入车间代码', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 工位
|
|
*/
|
|
export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.WORK_STATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '原料库位',
|
|
field: 'rawLocationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '成品库位',
|
|
field: 'fgLocationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isForm: false,
|
|
isTable: false,
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isForm: false,
|
|
isTable: false,
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单检验
|
|
export const WorkstationRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
workshopCode: [
|
|
{ required: true, message: '请输入车间代码', trigger: 'blur' }
|
|
],
|
|
productionLineCode: [
|
|
{ required: true, message: '请输入生产线代码', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 工序
|
|
*/
|
|
export const Process = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.PROCESS_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单检验
|
|
export const ProcessRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
workshopCode: [
|
|
{ required: true, message: '请输入车间代码', trigger: 'blur' }
|
|
],
|
|
productionLineCode: [
|
|
{ required: true, message: '请输入生产线代码', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 系统日历
|
|
*/
|
|
export const Systemcalendar = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '模块',
|
|
field: 'module',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '开始时间',
|
|
field: 'startTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '结束时间',
|
|
field: 'stopTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const SystemcalendarRules = reactive({
|
|
module: [
|
|
{ required: true, message: '请输入模块', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 账期日历
|
|
*/
|
|
export const Accountcalendar = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '年',
|
|
field: 'year',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '月',
|
|
field: 'month',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '描述',
|
|
field: 'descriiption',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '开始时间',
|
|
field: 'beginTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '结束时间',
|
|
field: 'endTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '转换生效时间',
|
|
field: 'converttotime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const AccountcalendarRules = reactive({
|
|
year: [
|
|
{ required: true, message: '请输入年', trigger: 'blur' }
|
|
],
|
|
month: [
|
|
{ required: true, message: '请输入月', trigger: 'blur' }
|
|
],
|
|
beginTime: [
|
|
{ required: true, message: '请输入开始时间', trigger: 'blur' }
|
|
],
|
|
endTime: [
|
|
{ required: true, message: '请输入结束时间', trigger: 'blur' }
|
|
],
|
|
converttotime: [
|
|
{ required: true, message: '请输入转换生效时间', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 货币转换
|
|
*/
|
|
export const Currencyexchange = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '货币',
|
|
field: 'currency',
|
|
dictType: DICT_TYPE.CURRENCY,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '基础货币',
|
|
field: 'basiccurrency',
|
|
dictType: DICT_TYPE.CURRENCY,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '比率',
|
|
field: 'rate',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isForm: false,
|
|
isTable: false,
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isForm: false,
|
|
isTable: false,
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const CurrencyexchangeRules = reactive({
|
|
currency: [
|
|
{ required: true, message: '请选择货币', trigger: 'change' }
|
|
],
|
|
basiccurrency: [
|
|
{ required: true, message: '请选择基础货币', trigger: 'change' }
|
|
],
|
|
rate: [
|
|
{ required: true, message: '请输入比率', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 货主
|
|
*/
|
|
export const Owner = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '简称',
|
|
field: 'shortName',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '地址',
|
|
field: 'address',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '国家',
|
|
field: 'country',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '城市',
|
|
field: 'city',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '电话',
|
|
field: 'phone',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '传真',
|
|
field: 'fax',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '邮编',
|
|
field: 'postId',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '联系人',
|
|
field: 'contacts',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '银行',
|
|
field: 'bank',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '币种',
|
|
field: 'currency',
|
|
dictType: DICT_TYPE.CURRENCY,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '税率',
|
|
field: 'taxRate',
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.OWNER_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
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',
|
|
}
|
|
},
|
|
isForm: false,
|
|
isTable: false,
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isForm: false,
|
|
isTable: false,
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const OwnerRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
shortName: [
|
|
{ required: true, message: '请输入简称', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 承运商
|
|
*/
|
|
export const Carrier = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '简称',
|
|
field: 'shortName',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '地址',
|
|
field: 'address',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '国家',
|
|
field: 'country',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '城市',
|
|
field: 'city',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '电话',
|
|
field: 'phone',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '传真',
|
|
field: 'fax',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '邮编',
|
|
field: 'postId',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '联系人',
|
|
field: 'contacts',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '银行',
|
|
field: 'bank',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '币种',
|
|
field: 'currency',
|
|
dictType: DICT_TYPE.CURRENCY,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '税率',
|
|
field: 'taxRate',
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.CARRIER_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isForm: false,
|
|
isTable: false,
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isForm: false,
|
|
isTable: false,
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const CarrierRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
shortName: [
|
|
{ required: true, message: '请输入简称', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 班次
|
|
*/
|
|
export const Shift = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '开始时间',
|
|
field: 'beginTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '结束时间',
|
|
field: 'entTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '是否跨天',
|
|
field: 'endAtNextDay',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
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',
|
|
}
|
|
},
|
|
isForm: false,
|
|
isTable: false,
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isForm: false,
|
|
isTable: false,
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const ShiftRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
beginTime: [
|
|
{ required: true, message: '请输入开始时间', trigger: 'blur' }
|
|
],
|
|
entTime: [
|
|
{ required: true, message: '请输入结束时间', trigger: 'blur' }
|
|
],
|
|
endAtNextDay: [
|
|
{ required: true, message: '请选择是否跨天', trigger: 'change' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 班组
|
|
*/
|
|
export const Team = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '成员',
|
|
field: 'members',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
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',
|
|
}
|
|
},
|
|
isForm: false,
|
|
isTable: false,
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isForm: false,
|
|
isTable: false,
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const TeamRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 策略
|
|
*/
|
|
export const Strategy = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '描述',
|
|
field: 'description',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.STRATEGY_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '是否生效',
|
|
field: 'isActive',
|
|
dictType: DICT_TYPE.STRATEGY_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'creationTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isTable: false,
|
|
isForm: false
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const StrategyRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
priority: [
|
|
{ required: true, message: '请输入优先级', trigger: 'blur' }
|
|
],
|
|
type: [
|
|
{ required: true, message: '请选择类型', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 规则
|
|
*/
|
|
export const Rule = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '策略代码',
|
|
field: 'strategyCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '条件',
|
|
field: 'condition',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '配置',
|
|
field: 'configuration',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const RuleRules = reactive({
|
|
strategyCode: [
|
|
{ required: true, message: '请输入策略代码', trigger: 'blur' }
|
|
],
|
|
priority: [
|
|
{ required: true, message: '请输入优先级', trigger: 'blur' }
|
|
],
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
configuration: [
|
|
{ required: true, message: '请输入配置', trigger: 'blur' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 条件
|
|
*/
|
|
export const Condition = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '策略代码',
|
|
field: 'strategyCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '规则代码',
|
|
field: 'ruleCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '参数',
|
|
field: 'paramCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '操作符',
|
|
field: 'operator',
|
|
dictType: DICT_TYPE.STRATEGY_PARAM_OPEARTOR,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '值',
|
|
field: 'value',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '条件分组',
|
|
field: 'groupCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const ConditionRules = reactive({
|
|
strategyCode: [
|
|
{ required: true, message: '请输入策略代码', trigger: 'blur' }
|
|
],
|
|
ruleCode: [
|
|
{ required: true, message: '请输入规则代码', trigger: 'blur' }
|
|
],
|
|
paramCode: [
|
|
{ required: true, message: '请输入参数', trigger: 'blur' }
|
|
],
|
|
operator: [
|
|
{ required: true, message: '请选择操作符', trigger: 'change' }
|
|
],
|
|
value: [
|
|
{ required: true, message: '请输入值', trigger: 'blur' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 配置
|
|
*/
|
|
export const Configuration = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '策略代码',
|
|
field: 'strategyCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '规则代码',
|
|
field: 'ruleCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '配置名称',
|
|
field: 'configurationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '描述',
|
|
field: 'description',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '配置值',
|
|
field: 'configurationValue',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '配置分组',
|
|
field: 'groupCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const ConfigurationRules = reactive({
|
|
strategyCode: [
|
|
{ required: true, message: '请输入策略代码', trigger: 'blur' }
|
|
],
|
|
ruleCode: [
|
|
{ required: true, message: '请输入规则代码', trigger: 'blur' }
|
|
],
|
|
configurationCode: [
|
|
{ required: true, message: '请输入配置名称', trigger: 'blur' }
|
|
],
|
|
configurationValue: [
|
|
{ required: true, message: '请输入配置值', trigger: 'blur' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 配置设置
|
|
*/
|
|
export const Configurationsetting = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '策略类型',
|
|
field: 'strategyType',
|
|
dictType: DICT_TYPE.STRATEGY_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '配置代码',
|
|
field: 'configurationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '配置名称',
|
|
field: 'configurationName',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '数据类型',
|
|
field: 'dataType',
|
|
dictType: DICT_TYPE.DATA_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '值范围',
|
|
field: 'valueScope',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '关联到',
|
|
field: 'relatedTo',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '描述',
|
|
field: 'description',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '必填',
|
|
field: 'isRequired',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const ConfigurationsettingRules = reactive({
|
|
strategyType: [
|
|
{ required: true, message: '请选择策略类型', trigger: 'change' }
|
|
],
|
|
configurationCode: [
|
|
{ required: true, message: '请输入配置代码', trigger: 'blur' }
|
|
],
|
|
configurationName: [
|
|
{ required: true, message: '请输入配置名称', trigger: 'blur' }
|
|
],
|
|
isRequired: [
|
|
{ required: true, message: '请选择必填', trigger: 'change' }
|
|
],
|
|
dataType: [
|
|
{ required: true, message: '请选择数据类型', trigger: 'change' }
|
|
],
|
|
valueScope: [
|
|
{ required: true, message: '请输入值范围', trigger: 'blur' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 参数设置
|
|
*/
|
|
export const Paramsetting = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '策略类型',
|
|
field: 'strategyType',
|
|
dictType: DICT_TYPE.STRATEGY_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '参数代码',
|
|
field: 'paramCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '参数名称',
|
|
field: 'paramName',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '可用操作符',
|
|
field: 'usableOpeartors',
|
|
dictType: DICT_TYPE.STRATEGY_PARAM_OPEARTOR,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '数据类型',
|
|
field: 'dataType',
|
|
dictType: DICT_TYPE.DATA_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '值范围',
|
|
field: 'valueScope',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '关联到',
|
|
field: 'relatedTo',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '描述',
|
|
field: 'description',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '必填',
|
|
field: 'isRequired',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const ParamsettingRules = reactive({
|
|
strategyType: [
|
|
{ required: true, message: '请选择策略类型', trigger: 'change' }
|
|
],
|
|
paramCode: [
|
|
{ required: true, message: '请输入参数代码', trigger: 'blur' }
|
|
],
|
|
usableOpeartors: [
|
|
{ required: true, message: '请选择可用操作符', trigger: 'change' }
|
|
],
|
|
isRequired: [
|
|
{ required: true, message: '请选择必填', trigger: 'change' }
|
|
],
|
|
dataType: [
|
|
{ required: true, message: '请选择数据类型', trigger: 'change' }
|
|
],
|
|
valueScope: [
|
|
{ required: true, message: '请输入值范围', trigger: 'blur' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 事务类型
|
|
*/
|
|
export const Transactiontype = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '描述',
|
|
field: 'description',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '库存动作',
|
|
field: 'inventoryAction',
|
|
dictType: DICT_TYPE.INVENTORY_ACTION,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '允许负数',
|
|
field: 'allowNegative',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '是否软删除',
|
|
field: 'isSoftDeleted',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isTable: false,
|
|
isForm: false,
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
isTable: false,
|
|
isForm: false,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const TransactiontypeRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
name: [
|
|
{ required: true, message: '请输入名称', trigger: 'blur' }
|
|
],
|
|
inventoryAction: [
|
|
{ required: true, message: '请选择库存动作', trigger: 'change' }
|
|
],
|
|
allowNegative: [
|
|
{ required: true, message: '请选择允许复数', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 业务类型
|
|
*/
|
|
export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '描述',
|
|
field: 'description',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '可用物品类型范围',
|
|
field: 'itemTypes',
|
|
dictType: DICT_TYPE.ITEM_TYPE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
},
|
|
{
|
|
label: '可用物品状态范围',
|
|
field: 'itemStatuses',
|
|
dictType: DICT_TYPE.ITEM_STATUS,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
},
|
|
{
|
|
label: '出库库位类型范围',
|
|
field: 'outLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
},
|
|
{
|
|
label: '入库库位类型范围',
|
|
field: 'inLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
},
|
|
{
|
|
label: '出库库区范围',
|
|
field: 'outAreaCodes',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '入库库区范围',
|
|
field: 'inAreaCodes',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '出库库存状态范围',
|
|
field: 'outInventoryStatuses',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
},
|
|
{
|
|
label: '入库库存状态范围',
|
|
field: 'inInventoryStatuses',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否使用在途库',
|
|
field: 'useOnTheWay',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '在途库区',
|
|
field: 'onTheWayArea',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
isTable: false,
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
isTable: false,
|
|
isForm: false,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const BusinesstypeRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
name: [
|
|
{ required: true, message: '请输入名称', trigger: 'blur' }
|
|
],
|
|
itemTypes: [
|
|
{ required: true, message: '请选择可用物品类型范围', trigger: 'change' }
|
|
],
|
|
itemStatuses: [
|
|
{ required: true, message: '请选择可用物品状态范围', trigger: 'change' }
|
|
],
|
|
outTransactionType: [
|
|
{ required: true, message: '请输入出库事务类型', trigger: 'blur' }
|
|
],
|
|
inTransactionType: [
|
|
{ required: true, message: '请输入入库事务类型', trigger: 'blur' }
|
|
],
|
|
useOnTheWay: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 单据设置
|
|
*/
|
|
export const Documentsetting = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '描述',
|
|
field: 'description',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '单据类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.DOCUMENT_TYPE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '号码前缀',
|
|
field: 'numberPrefix',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '号码时间格式',
|
|
field: 'dateFormat',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '号码流水长度',
|
|
field: 'serialLength',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '号码分隔符',
|
|
field: 'separatorStr',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '流水重置周期',
|
|
field: 'resetPeriod',
|
|
dictType: DICT_TYPE.RESET_PERIOD,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
isForm: false,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
isTable: false,
|
|
isForm: false,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const DocumentsettingRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
name: [
|
|
{ required: true, message: '请输入名称', trigger: 'blur' }
|
|
],
|
|
type: [
|
|
{ required: true, message: '请选择单据类型', trigger: 'change' }
|
|
],
|
|
businessType: [
|
|
{ required: true, message: '请输入业务类型', trigger: 'blur' }
|
|
],
|
|
numberPrefix: [
|
|
{ required: true, message: '请输入号码前缀', trigger: 'blur' }
|
|
],
|
|
dateFormat: [
|
|
{ required: true, message: '请输入号码时间格式', trigger: 'blur' }
|
|
],
|
|
serialLength: [
|
|
{ required: true, message: '请输入号码流水长度', trigger: 'blur' }
|
|
],
|
|
resetPeriod: [
|
|
{ required: true, message: '请选择流水重置周期', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 申请设置
|
|
*/
|
|
export const Requestsetting = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '申请模式',
|
|
field: 'requestMode',
|
|
dictType: DICT_TYPE.REQEUST_MODE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoExecute',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '跳过任务直接删生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
isTable: false,
|
|
isForm: false,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
isTable: false,
|
|
isForm: false,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const RequestsettingRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
requestMode: [
|
|
{ required: true, message: '请选择申请模式', trigger: 'change' }
|
|
],
|
|
autoCommit: [
|
|
{ required: true, message: '请选择是否自动提交', trigger: 'change' }
|
|
],
|
|
autoAgree: [
|
|
{ required: true, message: '请选择是否自动通过', trigger: 'change' }
|
|
],
|
|
autoExecute: [
|
|
{ required: true, message: '请选择是否自动执行', trigger: 'change' }
|
|
],
|
|
directCreateRecord: [
|
|
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 任务设置
|
|
*/
|
|
export const Jobsetting = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '有效分钟',
|
|
field: 'validMinutes',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
},
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBach',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许修改包装号',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '是否软删除',
|
|
field: 'isSoftDeleted',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
isForm: false,
|
|
isTable: false,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
isTable: false,
|
|
isForm: false,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const JobsettingRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
validMinutes: [
|
|
{ required: true, message: '请输入有效分钟', trigger: 'blur' }
|
|
],
|
|
autoComplete: [
|
|
{ required: true, message: '请选择是否自动完成', trigger: 'change' }
|
|
],
|
|
allowModifyLocation: [
|
|
{ required: true, message: '请选择是否允许修改库位', trigger: 'change' }
|
|
],
|
|
allowModifyQty: [
|
|
{ required: true, message: '请选择是否允许修改数量', trigger: 'change' }
|
|
],
|
|
allowBiggerQty: [
|
|
{ required: true, message: '请选择是否允许大于推荐数量', trigger: 'change' }
|
|
],
|
|
allowSmallerQty: [
|
|
{ required: true, message: '请选择是否允许小于推荐数量', trigger: 'change' }
|
|
],
|
|
allowModifyInventoryStatus: [
|
|
{ required: true, message: '请选择是否允许修改库存状态', trigger: 'change' }
|
|
],
|
|
allowContinuousScanning: [
|
|
{ required: true, message: '请选择是否允许连续扫描', trigger: 'change' }
|
|
],
|
|
allowPartialComplete: [
|
|
{ required: true, message: '请选择是否允许部分完成', trigger: 'change' }
|
|
],
|
|
allowModifyBach: [
|
|
{ required: true, message: '请选择是否允许修改批次', trigger: 'change' }
|
|
],
|
|
allowModifyPackingNumber: [
|
|
{ required: true, message: '请选择是否允许修改包装号', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 记录设置
|
|
*/
|
|
export const Recordsetting = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '失效时间',
|
|
field: 'expireTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: false,
|
|
formatter: dateFormatter,
|
|
isForm: false,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
isTable: false,
|
|
isForm: false,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 150
|
|
}
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const RecordsettingRules = reactive({
|
|
code: [
|
|
{ required: true, message: '请输入代码', trigger: 'blur' }
|
|
],
|
|
interfaceType: [
|
|
{ required: true, message: '请选择接口类型', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 库位容量
|
|
*/
|
|
export const Locationcapacity = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '已用容量百分比',
|
|
field: 'usedCapacity',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '可用容量百分比',
|
|
field: 'availableCapacity',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '可承受过载容量百分比',
|
|
field: 'bearableOverloadCapacity',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否无限容量',
|
|
field: 'isInfinity',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 包装
|
|
*/
|
|
export const Package = 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: '替代批次',
|
|
field: 'altBatch',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '有效期',
|
|
field: 'validityDays',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '失效日期',
|
|
field: 'expireDate',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '替代计量单位',
|
|
field: 'altUom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '替代计量数量',
|
|
field: 'altQty',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '转换率',
|
|
field: 'convertRate',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'toWarehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '月台代码',
|
|
field: 'toDockCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '库位代码',
|
|
field: 'toLocationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '供应商物品代码',
|
|
field: 'supplierItemCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '采购订单号',
|
|
field: 'poNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '采购订单行',
|
|
field: 'poLine',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '采购计划单号',
|
|
field: 'rpNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '发货单号',
|
|
field: 'asnNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '生产订单号',
|
|
field: 'woNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '生产订单行',
|
|
field: 'woLine',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '班组代码',
|
|
field: 'teamCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '班次代码',
|
|
field: 'shiftCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '客户月台代码',
|
|
field: 'customerDockCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '客户物品代码',
|
|
field: 'customerItemCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '销售订单号',
|
|
field: 'soNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '销售订单行',
|
|
field: 'soLine',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '质量等级',
|
|
field: 'eqLevel',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '货主',
|
|
field: 'ownerCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '重量',
|
|
field: 'weight',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '面积',
|
|
field: 'area',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '体积',
|
|
field: 'volume',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 器具主表
|
|
*/
|
|
export const ContainerMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '号码',
|
|
field: 'number',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.CONTAINER_TYPE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isForm: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '总容量',
|
|
field: 'capacity',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 器具子表
|
|
*/
|
|
export const ContainerDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '内容物类型',
|
|
field: 'containerContentType',
|
|
dictType: DICT_TYPE.CONTAINER_CONTENT_TYPE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isForm: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '内容物号',
|
|
field: 'contentNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '物料代码',
|
|
field: 'itemCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isForm: true,
|
|
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,
|
|
isForm: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 预计出库存
|
|
*/
|
|
export const Expectout = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '任务号',
|
|
field: 'jobNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '物料代码',
|
|
field: 'itemCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 预计入库存
|
|
*/
|
|
export const Expectin = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '任务号',
|
|
field: 'jobNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '物料代码',
|
|
field: 'itemCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存余额
|
|
*/
|
|
export const Balance = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '器具代码',
|
|
field: 'containerNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '物料代码',
|
|
field: 'itemCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到货日期',
|
|
field: 'arriveDate',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '失效日期',
|
|
field: 'expireDate',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '库位组代码',
|
|
field: 'locationGroupCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '库区代码',
|
|
field: 'areaCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: 'ERP库位代码',
|
|
field: 'erpLocationCode',
|
|
dictType: DICT_TYPE.ERP_LOCATION,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '锁定数量',
|
|
field: 'lockedQty',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '可用数量',
|
|
field: 'usableQty',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '入库时间',
|
|
field: 'putInTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '是否冻结',
|
|
field: 'frozen',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '冻结原因',
|
|
field: 'frozenReason',
|
|
dictType: DICT_TYPE.FROZEN_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '最后事务号',
|
|
field: 'lastTransNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '重量',
|
|
field: 'weight',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '面积',
|
|
field: 'area',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '体积',
|
|
field: 'volume',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存事务
|
|
*/
|
|
export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '事务号',
|
|
field: 'number',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '事务类型',
|
|
field: 'transactionType',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '库存动作',
|
|
field: 'inventoryAction',
|
|
dictType: DICT_TYPE.INVENTORY_ACTION,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '操作员',
|
|
field: 'worker',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '记录号',
|
|
field: 'recordNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '物料代码',
|
|
field: 'itemCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到货日期',
|
|
field: 'arriveDate',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '失效日期',
|
|
field: 'expireDate',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '库区代码',
|
|
field: 'areaCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '库位组代码',
|
|
field: 'locationGroupCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: 'ERP库位代码',
|
|
field: 'erpLocationCode',
|
|
dictType: DICT_TYPE.ERP_LOCATION,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存转移日志
|
|
*/
|
|
export const Transferlog = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '日志号',
|
|
field: 'number',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '事务类型',
|
|
field: 'transactionType',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '操作员',
|
|
field: 'worker',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'recordNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '生效时间',
|
|
field: 'activeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '物料代码',
|
|
field: 'itemCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到货日期',
|
|
field: 'arriveDate',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '失效日期',
|
|
field: 'expireDate',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '从事务号',
|
|
field: 'fomTransactionNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '从库存状态',
|
|
field: 'fromInventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '从ERP库位代码',
|
|
field: 'fromErpLocationCode',
|
|
dictType: DICT_TYPE.ERP_LOCATION,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到事务号',
|
|
field: 'toTransactionNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到库存状态',
|
|
field: 'toInventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到ERP库位代码',
|
|
field: 'toErpLocationCode',
|
|
dictType: DICT_TYPE.ERP_LOCATION,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 标签定义
|
|
*/
|
|
export const Labeltype = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '标签类型',
|
|
field: 'labelType',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '描述',
|
|
field: 'description',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '数据协议',
|
|
field: 'dataProtocol',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '拆分方法',
|
|
field: 'splitMehod',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '数据头',
|
|
field: 'header',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '版本号',
|
|
field: 'version',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '分隔符',
|
|
field: 'separators',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '校验方法',
|
|
field: 'validateMethod',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '校验数',
|
|
field: 'validateNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '加密方法',
|
|
field: 'encyptEthod',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '压缩方法',
|
|
field: 'compressMethod',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '模板名称',
|
|
field: 'templateName',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '模板文件',
|
|
field: 'templateFile',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '标签代码',
|
|
field: 'labelCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否加密',
|
|
field: 'isEncypt',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '是否压缩',
|
|
field: 'isCompress',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 条码片段
|
|
*/
|
|
export const Barcode = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '代码',
|
|
field: 'code',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '名称',
|
|
field: 'name',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '描述',
|
|
field: 'description',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '顺序',
|
|
field: 'order',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '长度',
|
|
field: 'length',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '前缀长度',
|
|
field: 'prefixLenght',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'InputNumber',
|
|
}
|
|
},
|
|
{
|
|
label: '前缀字符',
|
|
field: 'prefixChar',
|
|
dictType: DICT_TYPE.BARCODE_PREFIX,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '实体属性',
|
|
field: 'entityProperties',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '加密方法',
|
|
field: 'encyptMethod',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '主表ID',
|
|
field: 'masterId',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '截断尾部空格',
|
|
field: 'trimEnd',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '是否加密',
|
|
field: 'isEncypt',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 采购订单主表
|
|
*/
|
|
export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '订单类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.PURCHASE_ORDER_TYPE,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.PURCHASE_ORDER_STATUS,
|
|
dictClass: 'string',
|
|
isTable: true,
|
|
isSearch: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '订单日期',
|
|
field: 'orderDate',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '截止日期',
|
|
field: 'dueDate',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail:{
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '版本',
|
|
field: 'version',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '税率',
|
|
field: 'taxRate',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '联系人姓名',
|
|
field: 'contactName',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '联系人电话',
|
|
field: 'contactPhone',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '联系人电子邮件',
|
|
field: 'contactEmail',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否寄存订单',
|
|
field: 'isConsignment',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '当前阶段',
|
|
field: 'currentStage',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 采购订单子表
|
|
*/
|
|
export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '行号',
|
|
field: 'lineNumber'
|
|
},
|
|
{
|
|
label: 'ERP库位',
|
|
field: 'erpLocationCode'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty'
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '供应商计量数量',
|
|
field: 'supplierQty'
|
|
},
|
|
{
|
|
label: '供应商计量单位',
|
|
field: 'supplierUom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '转换率',
|
|
field: 'convertRate'
|
|
},
|
|
{
|
|
label: '已发货数量',
|
|
field: 'shippedQty'
|
|
},
|
|
{
|
|
label: '已收货数量',
|
|
field: 'receivedQty'
|
|
},
|
|
{
|
|
label: '已退货数量',
|
|
field: 'returnedQty'
|
|
},
|
|
{
|
|
label: '已上架数量',
|
|
field: 'putawayQty'
|
|
},
|
|
{
|
|
label: '超收百分比',
|
|
field: 'overReceivingPercent'
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '订单数量',
|
|
field: 'orderQty'
|
|
},
|
|
{
|
|
lable: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'nuumber'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: 'status',
|
|
field: '明细状态',
|
|
dictType: DICT_TYPE.PURCHASE_ORDER_DETAIL_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '备注',
|
|
fielc: 'remark'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater',
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 采购索赔申请主表
|
|
*/
|
|
export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '单据号',
|
|
field: 'number',
|
|
isForm:false,
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '发货单号',
|
|
field: 'asnNumber',
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '要货计划单号',
|
|
field: 'ppNumber',
|
|
form:{
|
|
componentProps:{
|
|
disabled:true,
|
|
}
|
|
},
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode',
|
|
form:{
|
|
componentProps:{
|
|
disabled:true,
|
|
}
|
|
},
|
|
table: {
|
|
width: 150
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
value:'1',
|
|
componentProps:{
|
|
disabled:true,
|
|
}
|
|
},
|
|
table: {
|
|
width: 100
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
form: {
|
|
value: new Date(),
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
},
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode',
|
|
form: {
|
|
value:userDept.name,
|
|
componentProps:{
|
|
disabled:true,
|
|
}
|
|
},
|
|
table: {
|
|
width: 100
|
|
}
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType',
|
|
form:{
|
|
value:'PurchaseClaim',
|
|
componentProps:{
|
|
disabled:true,
|
|
}
|
|
},
|
|
table: {
|
|
width: 130
|
|
}
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
isTable: false
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
table: {
|
|
width: 100
|
|
},
|
|
form:{
|
|
component:'Switch',
|
|
value:requestsettingData.autoCommit,
|
|
componentProps:{
|
|
disabled:true,
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
table: {
|
|
width: 100
|
|
},
|
|
form:{
|
|
component:'Switch',
|
|
value:requestsettingData.autoAgree,
|
|
componentProps:{
|
|
disabled:true,
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoExecute',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
table: {
|
|
width: 100
|
|
},
|
|
form:{
|
|
component:'Switch',
|
|
value:requestsettingData.autoExecute,
|
|
componentProps:{
|
|
disabled:true,
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: false,
|
|
isTable: true,
|
|
table: {
|
|
width: 120
|
|
},
|
|
form:{
|
|
component:'Switch',
|
|
value:requestsettingData.available,
|
|
componentProps:{
|
|
disabled:true,
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
isForm:false,
|
|
table: {
|
|
width: 120
|
|
}
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
isForm:false,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater',
|
|
isForm:false,
|
|
table: {
|
|
width: 120
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
isForm:false,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
table: {
|
|
width: 180
|
|
}
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isDetail: false,
|
|
isForm: false ,
|
|
table: {
|
|
width: 300
|
|
}
|
|
}
|
|
]))
|
|
// 表单校验
|
|
export const PurchaseclaimRequestMainRules = reactive({
|
|
asnNumber: [
|
|
{ required: true, message: '请输入发货单号', trigger: 'blur' }
|
|
],
|
|
ppNumber: [
|
|
{ required: true, message: '请输入要货计划单号', trigger: 'blur' }
|
|
],
|
|
supplierCode: [
|
|
{ required: true, message: '请输入供应商代码', trigger: 'change' }
|
|
],
|
|
businessType: [
|
|
{ required: true, message: '请输入业务类型', trigger: 'change' }
|
|
],
|
|
requestTime: [
|
|
{ required: true, message: '请选择申请时间', trigger: 'change' }
|
|
],
|
|
dueTime: [
|
|
{ required: true, message: '请选择截止时间', trigger: 'change' }
|
|
],
|
|
departmentCode: [
|
|
{ required: true, message: '请选择部门', trigger: 'change' }
|
|
],
|
|
status: [
|
|
{ required: true, message: '请选择状态', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 采购索赔申请子表
|
|
*/
|
|
export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber',
|
|
tableForm:{
|
|
isInpuFocusShow: true
|
|
}
|
|
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch'
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
dictType: DICT_TYPE.PURCHASE_RETURN_REASON,
|
|
dictClass: 'string'
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
isTableForm:false
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
isTableForm:false
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater',
|
|
isTableForm:false
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
isTableForm:false
|
|
},
|
|
]))
|
|
// 表单校验
|
|
export const PurchaseclaimRequestDetailRules = reactive({
|
|
batch: [
|
|
{ required: true, message: '请输入批次', trigger: 'blur' }
|
|
],
|
|
altBatch: [
|
|
{ required: true, message: '请输入替代批次', trigger: 'blur' }
|
|
],
|
|
poNumber: [
|
|
{ required: true, message: '请输入订单号', trigger: 'change' }
|
|
],
|
|
poLine: [
|
|
{ required: true, message: '请输入订单行', trigger: 'change' }
|
|
],
|
|
singlePrice: [
|
|
{ required: true, message: '请输入单价', trigger: 'change' }
|
|
],
|
|
amount: [
|
|
{ required: true, message: '请输入金额', trigger: 'change' }
|
|
],
|
|
number: [
|
|
{ required: true, message: '请输入单据号', trigger: 'change' }
|
|
],
|
|
itemCode: [
|
|
{ required: true, message: '请输入物品代码', trigger: 'change' }
|
|
],
|
|
projectCode: [
|
|
{ required: true, message: '请输入项目代码', trigger: 'change' }
|
|
],
|
|
qty: [
|
|
{ required: true, message: '请输入数量', trigger: 'change' }
|
|
],
|
|
uom: [
|
|
{ required: true, message: '请输入计量单位', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 采购索赔记录主表
|
|
*/
|
|
export const PurchaseclaimRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '发货单号',
|
|
field: 'asnNumber'
|
|
},
|
|
{
|
|
label: '要货计划单号',
|
|
field: 'ppNumber'
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
deatil: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
deatil: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
deatil: {
|
|
dateFormatter: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
deatil: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
table: {
|
|
width: 150
|
|
},
|
|
form:{
|
|
component:'Switch',
|
|
componentProps:{
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 采购索赔记录子表
|
|
*/
|
|
|
|
export const PurchaseclaimRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch'
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
isSearch: true,
|
|
isTable: true,
|
|
dictType: DICT_TYPE.PURCHASE_RETURN_REASON,
|
|
dictClass: 'string'
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
table: {
|
|
width: 150
|
|
},
|
|
form:{
|
|
component:'Switch',
|
|
componentProps:{
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 供应商发票申请主表
|
|
*/
|
|
export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '调增金额',
|
|
field: 'adjustAmount'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: 'businessType',
|
|
field: '业务类型'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater',
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoExecute',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '跳过任务直接删生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 供应商发票申请子表
|
|
*/
|
|
export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '收货单号',
|
|
field: 'recordNumber'
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch'
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty'
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '供应商计量数量',
|
|
field: 'supplierPackQty'
|
|
},
|
|
{
|
|
label: '供应商计量单位',
|
|
field: 'supplierPackUnit',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '转换率',
|
|
field: 'convertRate'
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 供应商发票记录主表
|
|
*/
|
|
export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '调增金额',
|
|
field: 'adjustAmount'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field:'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field:'businessType'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
deatil: {
|
|
dateFormatter: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
deatil: {
|
|
dateFormatter: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
deatil: {
|
|
dateFormatter: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
deatil: {
|
|
dateFormatter: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 供应商发票记录子表
|
|
*/
|
|
export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '收货单号',
|
|
field: 'recordNumber'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch'
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty'
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '供应商计量数量',
|
|
field: 'supplierPackQty'
|
|
},
|
|
{
|
|
label: '供应商计量单位',
|
|
field: 'supplierPackUnit',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '转换率',
|
|
field: 'convertRate'
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 要货预测主表
|
|
*/
|
|
export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '版本号',
|
|
field: 'version',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '发布时间',
|
|
field: 'publishTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '开始时间',
|
|
field: 'beginTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '结束时间',
|
|
field: 'endTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
]))
|
|
|
|
//表单校验
|
|
export const DemandforecastingMainRules = reactive({
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
status: [
|
|
{ required: true, message: '请选择状态', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 要货预测子表
|
|
*/
|
|
export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '预测时间类型',
|
|
field: 'predictTimeType'
|
|
},
|
|
{
|
|
label: '预测日期',
|
|
field: 'predictTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itremCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '计划数量',
|
|
field: 'planQty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const DemandforecastingDetailRules = reactive({
|
|
predictTimeType: [
|
|
{ required: true, message: '请选择预测时间类型', trigger: 'change' }
|
|
],
|
|
predictTime: [
|
|
{ required: true, message: '请输入预测时间', trigger: 'blur' }
|
|
],
|
|
planQty: [
|
|
{ required: true, message: '请输入计划数量', trigger: 'blur' }
|
|
],
|
|
uom: [
|
|
{ required: true, message: '请选择计量单位', trigger: 'change' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 要货计划主表
|
|
*/
|
|
export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '时间窗口',
|
|
field: 'timeWindow',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '月台代码',
|
|
field: 'dockCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '开始时间',
|
|
field: 'beginTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '结束时间',
|
|
field: 'endTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
isTable: true,
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
form: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
type: 'datetime',
|
|
}
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
}
|
|
]))
|
|
|
|
//表单校验
|
|
export const PurchasePlanMainRules = reactive({
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
]
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 要货计划子表
|
|
*/
|
|
export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '已发货数量',
|
|
field: 'shippedQty'
|
|
},
|
|
{
|
|
label: '计划数量',
|
|
field: 'planQty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
//表单校验
|
|
export const PurchasePlanDetailRules = reactive({
|
|
available: [
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' }
|
|
],
|
|
poNumber: [
|
|
{ required: true, message: '请输入订单号', trigger: 'blur' }
|
|
],
|
|
shippedQty: [
|
|
{ required: true, message: '请输入已发货数量', trigger: 'blur' }
|
|
],
|
|
})
|
|
|
|
/**
|
|
* @returns {Array} 供应商发货申请主表
|
|
*/
|
|
export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '要货计划单号',
|
|
field: 'ppNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '发货单号',
|
|
field: 'asnNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '联系人姓名',
|
|
field: 'contactName',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '联系人电话',
|
|
field: 'contactPhone',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '联系人电子邮件',
|
|
field: 'contactEmail',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到月台代码',
|
|
field: 'toDockCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '时间窗口',
|
|
field: 'timeWindow',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '计划到货时间',
|
|
field: 'planArriveTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detaul: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detaul: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoExecute',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 供应商发货申请子表
|
|
*/
|
|
export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '到货日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
},
|
|
sort: 'custom',
|
|
table: {
|
|
width: 180
|
|
},
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty',
|
|
sort: 'custom',
|
|
table: {
|
|
width: 150
|
|
},
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '供应商计量数量',
|
|
field: 'supplierPackQty'
|
|
},
|
|
{
|
|
label: '供应商计量单位',
|
|
field: 'supplierPackUnit',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '转换率',
|
|
field: 'convertRate'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 供应商发货记录主表
|
|
*/
|
|
export const SupplierdeliverRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '要货计划单号',
|
|
field: 'ppNumber'
|
|
},
|
|
{
|
|
label: '发货单号',
|
|
field: 'asnNumber'
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '联系人姓名',
|
|
field: 'contactName'
|
|
},
|
|
{
|
|
label: '联系人电话',
|
|
field: 'contactPhone'
|
|
},
|
|
{
|
|
label: '联系人电子邮件',
|
|
field: 'contactEmail'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到月台代码',
|
|
field: 'toDockCode'
|
|
},
|
|
{
|
|
label: '时间窗口',
|
|
field: 'timeWindow'
|
|
},
|
|
{
|
|
label: '计划到货时间',
|
|
field: 'planArriveTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransaction'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransaction'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 供应商发货记录子表
|
|
*/
|
|
export const SupplierdeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
{
|
|
label: '到货日期',
|
|
field: 'arriveDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty'
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '供应商计量数量',
|
|
field: 'supplierQty'
|
|
},
|
|
{
|
|
label: '供应商计量单位',
|
|
field: 'supplierUom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 采购收货申请主表
|
|
*/
|
|
export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '发货单号',
|
|
field: 'asnNumber'
|
|
},
|
|
{
|
|
label: '要货计划单号',
|
|
field: 'ppNumber'
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '到月台代码',
|
|
field: 'toDockCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoExecute',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 采购收货申请子表
|
|
*/
|
|
export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch'
|
|
},
|
|
{
|
|
label: '到货日期',
|
|
field: 'arriveDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty'
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '供应商计量数量',
|
|
field: 'supplierPackQty'
|
|
},
|
|
{
|
|
label: '供应商计量单位',
|
|
field: 'supplierPackUnit',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '转换率',
|
|
field: 'convertRate'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 采购收货任务主表
|
|
*/
|
|
export const PurchasereceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '发货单号',
|
|
field: 'asnNumber'
|
|
},
|
|
{
|
|
label: '要货计划单号',
|
|
field: 'ppNumber'
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '到月台代码',
|
|
field: 'toDockCode'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime'
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '岗位',
|
|
field: 'userPositionCode'
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 采购收货任务子表
|
|
*/
|
|
export const PurchasereceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch'
|
|
},
|
|
{
|
|
label: '到货日期',
|
|
field: 'arriveDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty'
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '供应商计量数量',
|
|
field: 'supplierQty'
|
|
},
|
|
{
|
|
label: '供应商计量单位',
|
|
field: 'supplierUom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '转换率',
|
|
field: 'convertRate'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
fiield: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 采购收货记录主表
|
|
*/
|
|
export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '发货单号',
|
|
field: 'asnNumber'
|
|
},
|
|
{
|
|
label: '要货计划单号',
|
|
field: 'ppNumber'
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '到月台代码',
|
|
field: 'toDockCode'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransaction'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransaction'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 采购收货记录子表
|
|
*/
|
|
export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch'
|
|
},
|
|
{
|
|
label: '到货日期',
|
|
field: 'arriveDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty'
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '供应商计量数量',
|
|
field: 'supplierQty'
|
|
},
|
|
{
|
|
label: '供应商计量单位',
|
|
field: 'supplierUom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '转换率',
|
|
field: 'convertRate'
|
|
},
|
|
{
|
|
label: '目检结果',
|
|
field: 'visualInspectResult'
|
|
},
|
|
{
|
|
label: '目检照片',
|
|
field: 'visualInspectPhotos'
|
|
},
|
|
{
|
|
label: '不合格原因',
|
|
field: 'failedReason',
|
|
dictType: DICT_TYPE.PURCHASE_RETURN_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 采购退货申请主表
|
|
*/
|
|
export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '采购收货记录单号',
|
|
field: 'purchaseReceiptRecordNumber'
|
|
},
|
|
{
|
|
label: '发货单号',
|
|
field: 'asnNumber'
|
|
},
|
|
{
|
|
label: '要货计划单号',
|
|
field: 'ppNumber'
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '从月台代码',
|
|
field: 'fromDockCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoExecute',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 采购退货申请子表
|
|
*/
|
|
export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 采购退货任务主表
|
|
*/
|
|
export const PurchasereturnJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '采购收货记录单号',
|
|
field: 'purchaseReceiptRecordNumber'
|
|
},
|
|
{
|
|
label: '发货单号',
|
|
field: 'asnNumber'
|
|
},
|
|
{
|
|
label: '要货计划单号',
|
|
field: 'ppNumber'
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '发货月台',
|
|
field: 'deliverDock'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '从月台代码',
|
|
field: 'fromDockCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 采购退货任务子表
|
|
*/
|
|
export const PurchasereturnJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
dictType: DICT_TYPE.PURCHASE_RETURN_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 采购退货记录主表
|
|
*/
|
|
export const PurchasereturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '采购收货记录单号',
|
|
field: 'purchaseReceiptRecordNumber'
|
|
},
|
|
{
|
|
label: '发货单号',
|
|
field: 'asnNumber'
|
|
},
|
|
{
|
|
label: '要货计划单号',
|
|
field: 'ppNumber'
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '从月台代码',
|
|
field: 'fromDockCode'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'available'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 采购退货记录子表
|
|
*/
|
|
export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poline'
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
dictType: DICT_TYPE.PURCHASE_RETURN_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 检验申请主表
|
|
*/
|
|
export const InspectRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '采购收货记录单号',
|
|
field: 'purchaseReceiptRecordNumber'
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemcode'
|
|
},
|
|
{
|
|
label: '检验类型',
|
|
field: 'inspectType',
|
|
dictType: DICT_TYPE.INSPECT_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '下一步检验动作',
|
|
field: 'nextAction',
|
|
dictType: DICT_TYPE.NEXT_ACTION,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '抽检方式',
|
|
field: 'sampleMethod',
|
|
dictType: DICT_TYPE.SAMPLE_METHOD,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '收货数量',
|
|
field: 'receiveQty'
|
|
},
|
|
{
|
|
label: '样品数量',
|
|
field: 'sampleQty'
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoExecute',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 检验申请子表
|
|
*/
|
|
export const InspectRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 检验任务主表
|
|
*/
|
|
export const InspectJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '采购收货记录单号',
|
|
field: 'purchaseReceiptRecordNumber'
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'update'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人用户名',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人用户名',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '检验类型',
|
|
field: 'inspectType',
|
|
dictType: DICT_TYPE.INSPECT_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '下一步检验动作',
|
|
field: 'nextAction',
|
|
dictType: DICT_TYPE.NEXT_ACTION,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '抽检方式',
|
|
field: 'sampleMethod',
|
|
dictType: DICT_TYPE.SAMPLE_METHOD,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '收货数量',
|
|
field: 'receiveQty'
|
|
},
|
|
{
|
|
label: '样品数量',
|
|
field: 'sampleQty'
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'owner'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 检验任务子表
|
|
*/
|
|
export const InspectJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 检验记录主表
|
|
*/
|
|
export const InspectRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '采购收货记录单号',
|
|
field: 'purchaseReceiptRecordNumber'
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter : dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter : dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter : dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter : dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
isSearch: true,
|
|
isTable: true,
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter : dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '检验类型',
|
|
field: 'inspectType',
|
|
isSearch: true,
|
|
isTable: true,
|
|
dictType: DICT_TYPE.INSPECT_TYPE,
|
|
dictClass: 'string'
|
|
},
|
|
{
|
|
label: '下一步检验动作',
|
|
field: 'nextAction',
|
|
isSearch: true,
|
|
isTable: true,
|
|
dictType: DICT_TYPE.NEXT_ACTION,
|
|
dictClass: 'string'
|
|
},
|
|
{
|
|
label: '抽检方式',
|
|
field: 'sampleMethod',
|
|
isSearch: true,
|
|
isTable: true,
|
|
dictType: DICT_TYPE.SAMPLE_METHOD,
|
|
dictClass: 'string'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
isSearch: true,
|
|
isTable: true,
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string'
|
|
},
|
|
{
|
|
label: '收货数量',
|
|
field: 'receiveQty'
|
|
},
|
|
{
|
|
label: '样品数量',
|
|
field: 'sampleQty'
|
|
},
|
|
{
|
|
label: '合格数量',
|
|
field: 'batchGoodQty'
|
|
},
|
|
{
|
|
label: '不合格数量',
|
|
field: 'batchFaildQty'
|
|
},
|
|
{
|
|
label: '破坏数量',
|
|
field: 'batchCrackQty'
|
|
},
|
|
{
|
|
label: '最终不合格数量',
|
|
field: 'batchNotPassedQty'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
isSearch: true,
|
|
isTable: true,
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
isSearch: true,
|
|
isTable: true,
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 检验记录子表
|
|
*/
|
|
export const InspectRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '样品数量',
|
|
field: 'sampleQty'
|
|
},
|
|
{
|
|
label: '合格数量',
|
|
field: 'goodQty'
|
|
},
|
|
{
|
|
label: '不合格数量',
|
|
field: 'failedQty'
|
|
},
|
|
{
|
|
label: '破坏数量',
|
|
field: 'crackQty'
|
|
},
|
|
{
|
|
label: '最终不合格数量',
|
|
field: 'notPassedQty'
|
|
},
|
|
{
|
|
label: '不合格原因',
|
|
field: 'failedReason',
|
|
dictType: DICT_TYPE.INSPECT_FAILED_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '异常照片',
|
|
field: 'photos'
|
|
},
|
|
{
|
|
label: '检验人',
|
|
field: 'inspectUser'
|
|
},
|
|
{
|
|
label: '检验结果',
|
|
field: 'inspectResult',
|
|
dictType: DICT_TYPE.INSPECT_RESULT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '外观',
|
|
field: 'appearance'
|
|
},
|
|
{
|
|
label: '尺寸',
|
|
field: 'volume'
|
|
},
|
|
{
|
|
label: '重量',
|
|
field: 'weight'
|
|
},
|
|
{
|
|
label: '其他属性',
|
|
field: 'otherProperties'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'creationTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 上架申请主表
|
|
*/
|
|
export const PutawayRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
|
|
/**
|
|
* @returns {Array} 上架申请子表
|
|
*/
|
|
export const PutawayRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 上架任务主表
|
|
*/
|
|
export const PutawayJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'update'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人用户名',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人用户名',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 上架任务子表
|
|
*/
|
|
export const PutawayJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemdesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 上架记录主表
|
|
*/
|
|
export const PutawayRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 上架记录子表
|
|
*/
|
|
export const PutawayRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 备料计划主表
|
|
*/
|
|
export const PreparetoissueMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '生产计划单号',
|
|
field: 'productionPlanNumber'
|
|
},
|
|
{
|
|
label: '车间',
|
|
field: 'workshop'
|
|
},
|
|
{
|
|
label: '生产线',
|
|
field: 'prodLine'
|
|
},
|
|
{
|
|
label: '班次',
|
|
field: 'shift'
|
|
},
|
|
{
|
|
label: '班组',
|
|
field: 'team'
|
|
},
|
|
{
|
|
label: '计划日期',
|
|
field: 'planDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '开始时间',
|
|
field: 'beginTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '结束时间',
|
|
field: 'endTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 备料计划子表
|
|
*/
|
|
export const PreparetoissueDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '目标库位',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '工位',
|
|
field: 'workStation'
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '计划数量',
|
|
field: 'planQty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 补料申请主表
|
|
*/
|
|
export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 补料申请子表
|
|
*/
|
|
export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 补料任务主表
|
|
*/
|
|
export const RepleinshJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'update'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人用户名',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人用户名',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 补料任务子表
|
|
*/
|
|
export const RepleinshJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemdesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 补料记录主表
|
|
*/
|
|
export const RepleinshRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 补料记录子表
|
|
*/
|
|
export const RepleinshRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 拣料申请主表
|
|
*/
|
|
export const PickRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 拣料申请子表
|
|
*/
|
|
export const PickRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 拣料任务主表
|
|
*/
|
|
export const PickJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'update'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人用户名',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人用户名',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 拣料任务子表
|
|
*/
|
|
export const PickJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemdesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 拣料记录主表
|
|
*/
|
|
export const PickRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 拣料记录子表
|
|
*/
|
|
export const PickRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 发料申请主表
|
|
*/
|
|
export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '使用在途库',
|
|
field: 'useOnTheWayLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 发料申请子表
|
|
*/
|
|
export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode'
|
|
},
|
|
{
|
|
label: '工位代码',
|
|
field: 'workStationCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 发料任务主表
|
|
*/
|
|
export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '车间代码',
|
|
field: 'workShopCode'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'update'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人用户名',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人用户名',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '使用在途库',
|
|
field: 'useOnTheWayLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 发料任务子表
|
|
*/
|
|
export const IssueJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode'
|
|
},
|
|
{
|
|
label: '工位代码',
|
|
field: 'workStationCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '在途库库位',
|
|
field: 'onTheWayLocationCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemmDesc2'
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty'
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '供应商计量数量',
|
|
field: 'supplierQty'
|
|
},
|
|
{
|
|
label: '供应商计量单位',
|
|
field: 'supplierUom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 发料记录主表
|
|
*/
|
|
export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '使用在途库',
|
|
field: 'useOnTheWayLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 发料记录子表
|
|
*/
|
|
export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode'
|
|
},
|
|
{
|
|
label: '工位代码',
|
|
field: 'workStationCode'
|
|
},
|
|
{
|
|
label: '在途库库位',
|
|
field: 'onTheWayLocationCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 生产收料任务主表
|
|
*/
|
|
export const ProductionreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '发料任务单号',
|
|
field: 'issueJobNumber'
|
|
},
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'update'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '使用在途库',
|
|
field: 'useOnTheWayLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 生产收料任务子表
|
|
*/
|
|
export const ProductionreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode'
|
|
},
|
|
{
|
|
label: '工位代码',
|
|
field: 'workStationCode'
|
|
},
|
|
{
|
|
label: '在途库库位',
|
|
field: 'onTheWayLocationCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formater: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 生产收料记录主表
|
|
*/
|
|
export const ProductionreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '发料任务单号',
|
|
field: 'issueJobNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detai: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detai: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detai: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detai: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detai: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '使用在途库',
|
|
field: 'useOnTheWayLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 生产收料记录子表
|
|
*/
|
|
export const ProductionreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode'
|
|
},
|
|
{
|
|
label: '工位代码',
|
|
field: 'workStationCode'
|
|
},
|
|
{
|
|
label: '在途库库位',
|
|
field: 'onTheWayLocationCode'
|
|
},
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 上线结算申请主表
|
|
*/
|
|
export const OnlinesettlementRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '发料记录单号',
|
|
field: 'issueRecordNumber'
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoExecute',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 上线结算申请子表
|
|
*/
|
|
export const OnlinesettlementRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 上线结算记录主表
|
|
*/
|
|
export const OnlinesettlementRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '发料记录单号',
|
|
field: 'issueRecordNumber'
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 上线结算记录子表
|
|
*/
|
|
export const OnlinesettlementRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode'
|
|
},
|
|
{
|
|
label: '库位组代码',
|
|
field: 'locationGroupCode'
|
|
},
|
|
{
|
|
label: '库区代码',
|
|
field: 'areaCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 生产退料申请主表
|
|
*/
|
|
export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoExecute',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 生产退料申请子表
|
|
*/
|
|
export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode'
|
|
},
|
|
{
|
|
label: '工位代码',
|
|
field: 'workStationCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 生产退料任务主表
|
|
*/
|
|
export const ProductionreturnJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 生产退料任务子表
|
|
*/
|
|
export const ProductionreturnJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode'
|
|
},
|
|
{
|
|
label: '工位代码',
|
|
field: 'workStationCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 生产退料记录主表
|
|
*/
|
|
export const ProductionreturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 生产退料记录子表
|
|
*/
|
|
export const ProductionreturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode'
|
|
},
|
|
{
|
|
label: '工位代码',
|
|
field: 'workStationCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '从包装号',
|
|
field: 'frompackingNumber'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromcontainerNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'frombatch'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromlocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromlocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromareaCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'topackingNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'tocontainerNumber'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'tobatch'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 生产订单主表
|
|
*/
|
|
export const WorkMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '供应商代码',
|
|
field: 'customerCode'
|
|
},
|
|
{
|
|
label: '订单类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.WORK_ORDER_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '订单日期',
|
|
field: 'orderDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止日期',
|
|
field: 'dueDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '版本',
|
|
field: 'version'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '当前阶段',
|
|
field: 'currentStage'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 生产订单子表
|
|
*/
|
|
export const WorkDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '行号',
|
|
field: 'lineNumber'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '完工数量',
|
|
field: 'finishedQty'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '订单数量',
|
|
field: 'orderQty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 生产计划主表
|
|
*/
|
|
export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '顺序',
|
|
field: 'displayOrder'
|
|
},
|
|
{
|
|
label: '车间',
|
|
field: 'workshop'
|
|
},
|
|
{
|
|
label: '生产线',
|
|
field: 'productionLine'
|
|
},
|
|
{
|
|
label: '班次',
|
|
field: 'shift'
|
|
},
|
|
{
|
|
label: '班组',
|
|
field: 'team'
|
|
},
|
|
{
|
|
label: '计划日期',
|
|
field: 'planDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remrk'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status'
|
|
},
|
|
{
|
|
label: '开始时间',
|
|
field: 'beginTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '结束时间',
|
|
field: 'endTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 生产计划子表
|
|
*/
|
|
export const ProductionDeatil = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '订单号',
|
|
field: 'woNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'woLine'
|
|
},
|
|
{
|
|
label: 'Bom版本',
|
|
field: 'bomVersion'
|
|
},
|
|
{
|
|
label: '合格数量',
|
|
field: 'goodQty'
|
|
},
|
|
{
|
|
label: '不合格数量',
|
|
field: 'notGoodQty'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '计划数量',
|
|
field: 'planQty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品收货申请主表
|
|
*/
|
|
export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '生产计划单号',
|
|
field: 'productionPlanNumber'
|
|
},
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode'
|
|
},
|
|
{
|
|
label: '班组',
|
|
field: 'team'
|
|
},
|
|
{
|
|
label: '班次',
|
|
field: 'shift'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoExecute',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品收货申请子表
|
|
*/
|
|
export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode'
|
|
},
|
|
{
|
|
label: '工位代码',
|
|
field: 'workStationCode'
|
|
},
|
|
{
|
|
label: '工序代码',
|
|
field: 'processCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'woNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'woLine'
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty'
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品收货申请子表
|
|
*/
|
|
export const BackflushRequestDetailb = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '工序代码',
|
|
field: 'processCode'
|
|
},
|
|
{
|
|
label: 'BOM版本',
|
|
field: 'bomVersion'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品收货任务主表
|
|
*/
|
|
export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionPlanNumber'
|
|
},
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode'
|
|
},
|
|
{
|
|
label: '班组',
|
|
field: 'team'
|
|
},
|
|
{
|
|
label: '班次',
|
|
field: 'shift'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品收货任务子表
|
|
*/
|
|
export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode'
|
|
},
|
|
{
|
|
label: '工位代码',
|
|
field: 'workStationCode'
|
|
},
|
|
{
|
|
label: '工序代码',
|
|
field: 'processCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'woNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'woLine'
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty'
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品收货记录主表
|
|
*/
|
|
export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '生产计划单号',
|
|
field: 'productionPlanNumber'
|
|
},
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode'
|
|
},
|
|
{
|
|
label: '班组',
|
|
field: 'team'
|
|
},
|
|
{
|
|
label: '班次',
|
|
field: 'shift'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品收货记录子表
|
|
*/
|
|
export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode'
|
|
},
|
|
{
|
|
label: '工位代码',
|
|
field: 'workStationCode'
|
|
},
|
|
{
|
|
label: '工序代码',
|
|
field: 'processCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'woNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'woLine'
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty'
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品收货记录子表
|
|
*/
|
|
export const BackflushRecordDetailb = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '工序代码',
|
|
field: 'processCode'
|
|
},
|
|
{
|
|
label: 'BOM版本',
|
|
field: 'bomVersion'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品拆解申请主表
|
|
*/
|
|
export const ProductdismantleRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode'
|
|
},
|
|
{
|
|
label: '班组',
|
|
field: 'team'
|
|
},
|
|
{
|
|
label: '班次',
|
|
field: 'shift'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoExecute',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品拆解申请子表
|
|
*/
|
|
export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode'
|
|
},
|
|
{
|
|
label: '工位代码',
|
|
field: 'workStationCode'
|
|
},
|
|
{
|
|
label: '工序代码',
|
|
field: 'processCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty'
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品拆解申请子表
|
|
*/
|
|
export const DismantleRequestDetailb = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '工序代码',
|
|
field: 'processCode'
|
|
},
|
|
{
|
|
label: 'BOM版本',
|
|
field: 'bomVersion'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品拆解任务主表
|
|
*/
|
|
export const ProductdismantleJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode'
|
|
},
|
|
{
|
|
label: '班组',
|
|
field: 'team'
|
|
},
|
|
{
|
|
label: '班次',
|
|
field: 'shift'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品拆解任务子表
|
|
*/
|
|
export const ProductdismantleJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode'
|
|
},
|
|
{
|
|
label: '工位代码',
|
|
field: 'workStationCode'
|
|
},
|
|
{
|
|
label: '工序代码',
|
|
field: 'processCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty'
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品拆解记录主表
|
|
*/
|
|
export const ProductdismantleRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode'
|
|
},
|
|
{
|
|
label: '班组',
|
|
field: 'team'
|
|
},
|
|
{
|
|
label: '班次',
|
|
field: 'shift'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品拆解记录子表
|
|
*/
|
|
export const ProductdismantleRecordDetaila = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode'
|
|
},
|
|
{
|
|
label: '工位代码',
|
|
field: 'workStationCode'
|
|
},
|
|
{
|
|
label: '工序代码',
|
|
field: 'processCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品拆解记录子表
|
|
*/
|
|
export const DismantleRecordDetailb = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '工序代码',
|
|
field: 'processCode'
|
|
},
|
|
{
|
|
label: 'BOM版本',
|
|
field: 'bomVersion'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品返修申请主表
|
|
*/
|
|
export const ProductrepairRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode'
|
|
},
|
|
{
|
|
label: '班组',
|
|
field: 'team'
|
|
},
|
|
{
|
|
label: '班次',
|
|
field: 'shift'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoExecute',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品返修申请子表
|
|
*/
|
|
export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode'
|
|
},
|
|
{
|
|
label: '工位代码',
|
|
field: 'workStationCode'
|
|
},
|
|
{
|
|
label: '工序代码',
|
|
field: 'processCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品返修申请子表
|
|
*/
|
|
export const ConsumereRequestDetailb = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品返修记录主表
|
|
*/
|
|
export const ProductrepairRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '车间代码',
|
|
field: 'workshopCode'
|
|
},
|
|
{
|
|
label: '班组',
|
|
field: 'team'
|
|
},
|
|
{
|
|
label: '班次',
|
|
field: 'shift'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品返修记录子表
|
|
*/
|
|
export const ProductrepairRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '生产线代码',
|
|
field: 'productionLineCode'
|
|
},
|
|
{
|
|
label: '工位代码',
|
|
field: 'workStationCode'
|
|
},
|
|
{
|
|
label: '工序代码',
|
|
field: 'processCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品返修记录子表
|
|
*/
|
|
export const ConsumeRecordDetailb = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品报废申请主表
|
|
*/
|
|
export const ProductscrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品报废申请子表
|
|
*/
|
|
export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
dictType: DICT_TYPE.SCRAP_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品报废任务主表
|
|
*/
|
|
export const ProductscrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品报废任务子表
|
|
*/
|
|
export const ProductscrapJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
dictType: DICT_TYPE.SCRAP_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品报废记录主表
|
|
*/
|
|
export const ProductscrapRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品报废记录子表
|
|
*/
|
|
export const ProductscrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
dictType: DICT_TYPE.SCRAP_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品上架申请主表
|
|
*/
|
|
export const ProductputawayRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品上架申请子表
|
|
*/
|
|
export const ProductputawayRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品上架任务主表
|
|
*/
|
|
export const ProductputawayJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'update'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人用户名',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人用户名',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品上架任务子表
|
|
*/
|
|
export const ProductputawayJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemdesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品上架记录主表
|
|
*/
|
|
export const ProductputawayRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '供应商代码',
|
|
field: 'supplierCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 制品上架记录子表
|
|
*/
|
|
export const ProductputawayRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 下线结算申请主表
|
|
*/
|
|
export const OfflinesettlementRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '制品收货记录单号',
|
|
field: 'productReceiptRecordNumber'
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 下线结算申请子表
|
|
*/
|
|
export const OfflinesettlementRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 下线结算记录主表
|
|
*/
|
|
export const OfflinesettlementRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '制品收货记录单号',
|
|
field: 'productReceiptRecordNumber'
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 下线结算记录子表
|
|
*/
|
|
export const OfflinesettlementRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode'
|
|
},
|
|
{
|
|
label: '库位组代码',
|
|
field: 'locationGroupCode'
|
|
},
|
|
{
|
|
label: '库区代码',
|
|
field: 'areaCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 销售订单主表
|
|
*/
|
|
export const SaleMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode'
|
|
},
|
|
{
|
|
label: '订单类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.SALE_ORDER_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '订单日期',
|
|
field: 'orderDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止日期',
|
|
field: 'dueDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '版本',
|
|
field: 'version'
|
|
},
|
|
{
|
|
label: '税率',
|
|
field: 'taxRate'
|
|
},
|
|
{
|
|
label: '联系人姓名',
|
|
field: 'contactName'
|
|
},
|
|
{
|
|
label: '联系人电话',
|
|
field: 'contactPhone'
|
|
},
|
|
{
|
|
label: '联系人电子邮件',
|
|
field: 'contactEmail'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '当前阶段',
|
|
field: 'currentStage'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 销售订单子表
|
|
*/
|
|
export const SaleDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '行号',
|
|
field: 'lineNumber'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty'
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '客户计量数量',
|
|
field: 'customerPackQty'
|
|
},
|
|
{
|
|
label: '客户计量单位',
|
|
field: 'customerPackUnit',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '转换率',
|
|
field: 'convertRate'
|
|
},
|
|
{
|
|
label: '已发货数量',
|
|
field: 'shippedQty'
|
|
},
|
|
{
|
|
label: '已收货数量',
|
|
field: 'receivedQty'
|
|
},
|
|
{
|
|
label: '已退货数量',
|
|
field: 'returnedQty'
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creater'
|
|
},
|
|
{
|
|
label: '订单数量',
|
|
field: 'orderQty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 发货计划主表
|
|
*/
|
|
export const DeliverPlanMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode'
|
|
},
|
|
{
|
|
label: '计划日期',
|
|
field: 'planDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '开始时间',
|
|
field: 'beginTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '结束时间',
|
|
field: 'endTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status'
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 发货计划子表
|
|
*/
|
|
export const DeliverPlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '销售订单号',
|
|
field: 'soNumber'
|
|
},
|
|
{
|
|
label: '销售订单行',
|
|
field: 'soLine'
|
|
},
|
|
{
|
|
label: '客户月台',
|
|
field: 'customerDockCode'
|
|
},
|
|
{
|
|
label: '项目',
|
|
field: 'project'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '计划数量',
|
|
field: 'planQty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 发货申请主表
|
|
*/
|
|
export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '发货计划单号',
|
|
field: 'deliverPlanNumber'
|
|
},
|
|
{
|
|
label: '客户发货单号',
|
|
field: 'customerDeliverNumber'
|
|
},
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode'
|
|
},
|
|
{
|
|
label: '客户月台代码',
|
|
field: 'customerDockCode'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '从月台代码',
|
|
field: 'fromDockCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 发货申请子表
|
|
*/
|
|
export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '销售订单号',
|
|
field: 'soNumber'
|
|
},
|
|
{
|
|
label: '销售订单行',
|
|
field: 'soLine'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 发货任务主表
|
|
*/
|
|
export const DeliverJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '发货计划单号',
|
|
field: 'deliverPlanNumber'
|
|
},
|
|
{
|
|
label: '客户发货单号',
|
|
field: 'customerDeliverNumber'
|
|
},
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode'
|
|
},
|
|
{
|
|
label: '客户月台代码',
|
|
field: 'customerDockCode'
|
|
},
|
|
{
|
|
label: '发货月台',
|
|
field: 'deliverDock'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '从月台代码',
|
|
field: 'fromDockCode'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 发货任务子表
|
|
*/
|
|
export const DeliverJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '销售订单号',
|
|
field: 'soNumber'
|
|
},
|
|
{
|
|
label: '销售订单行',
|
|
field: 'soLine'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemdesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 发货记录主表
|
|
*/
|
|
export const DeliverRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '发货计划单号',
|
|
field: 'deliverPlanNumber'
|
|
},
|
|
{
|
|
label: '客户发货单号',
|
|
field: 'customerDeliverNumber'
|
|
},
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode'
|
|
},
|
|
{
|
|
label: '客户月台代码',
|
|
field: 'customerDockCode'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '从月台代码',
|
|
field: 'fromDockCode'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 发货记录子表
|
|
*/
|
|
export const DeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '销售订单号',
|
|
field: 'soNumber'
|
|
},
|
|
{
|
|
label: '销售订单行',
|
|
field: 'soLine'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 客户收货申请主表
|
|
*/
|
|
export const CustomerreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '发货申请单号',
|
|
field: 'deliverRequestNumber'
|
|
},
|
|
{
|
|
label: '发货计划单号',
|
|
field: 'deliverPlanNumber'
|
|
},
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode'
|
|
},
|
|
{
|
|
label: '客户月台代码',
|
|
field: 'customerDockCode'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 客户收货申请子表
|
|
*/
|
|
export const CustomerreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '销售订单号',
|
|
field: 'soNumber'
|
|
},
|
|
{
|
|
label: '销售订单行',
|
|
field: 'soLine'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 客户收货记录主表
|
|
*/
|
|
export const CustomerreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '发货记录单号',
|
|
field: 'deliverRecordNumber'
|
|
},
|
|
{
|
|
label: '发货计划单号',
|
|
field: 'deliverPlanNumber'
|
|
},
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode'
|
|
},
|
|
{
|
|
label: '客户月台代码',
|
|
field: 'customerDockCode'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 客户收货记录子表
|
|
*/
|
|
export const CustomerreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '销售订单号',
|
|
field: 'soNumber'
|
|
},
|
|
{
|
|
label: '销售订单行',
|
|
field: 'soLine'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 客户退货申请主表
|
|
*/
|
|
export const CustomerreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '发货记录单号',
|
|
field: 'deliverRecordNumber'
|
|
},
|
|
{
|
|
label: '发货计划单号',
|
|
field: 'deliverPlanNumber'
|
|
},
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode'
|
|
},
|
|
{
|
|
label: '客户月台代码',
|
|
field: 'customerDockCode'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到月台代码',
|
|
field: 'toDockCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 客户退货申请子表
|
|
*/
|
|
export const CustomerreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '销售订单号',
|
|
field: 'soNumber'
|
|
},
|
|
{
|
|
label: '销售订单行',
|
|
field: 'soLine'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 客户退货任务主表
|
|
*/
|
|
export const CustomerreturnJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '发货记录单号',
|
|
field: 'deliverRecordNumber'
|
|
},
|
|
{
|
|
label: '发货计划单号',
|
|
field: 'deliverPlanNumber'
|
|
},
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode'
|
|
},
|
|
{
|
|
label: '客户月台代码',
|
|
field: 'customerDockCode'
|
|
},
|
|
{
|
|
label: '收货月台',
|
|
field: 'receiptDock'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '到月台代码',
|
|
field: 'toDockCode'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 客户退货任务子表
|
|
*/
|
|
export const CustomerreturnJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '销售订单号',
|
|
field: 'soNumber'
|
|
},
|
|
{
|
|
label: '销售订单行',
|
|
field: 'soLine'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemdesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 客户退货记录主表
|
|
*/
|
|
export const CustomerreturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '发货记录单号',
|
|
field: 'deliverRecordNumber'
|
|
},
|
|
{
|
|
label: '发货计划单号',
|
|
field: 'deliverPlanNumber'
|
|
},
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode'
|
|
},
|
|
{
|
|
label: '客户月台代码',
|
|
field: 'customerDockCode'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '到月台代码',
|
|
field: 'toDockCode'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 客户退货记录子表
|
|
*/
|
|
export const CustomerreturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '销售订单号',
|
|
field: 'soNumber'
|
|
},
|
|
{
|
|
label: '销售订单行',
|
|
field: 'soLine'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
}
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 客户结算申请主表
|
|
*/
|
|
export const CustomersettleRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '发货记录单号',
|
|
field: 'deliverRecordNumber'
|
|
},
|
|
{
|
|
label: '发货计划单号',
|
|
field: 'deliverPlanNumber'
|
|
},
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 客户结算申请子表
|
|
*/
|
|
export const CustomersettleRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '销售订单号',
|
|
field: 'soNumber'
|
|
},
|
|
{
|
|
label: '销售订单行',
|
|
field: 'soLine'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 客户结算记录主表
|
|
*/
|
|
export const CustomersettleRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '发货记录单号',
|
|
field: 'deliverRecordNumber'
|
|
},
|
|
{
|
|
label: '发货计划单号',
|
|
field: 'deliverPlanNumber'
|
|
},
|
|
{
|
|
label: '客户代码',
|
|
field: 'customerCode'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 客户结算记录子表
|
|
*/
|
|
export const CustomersettleRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '销售订单号',
|
|
field: 'soNumber'
|
|
},
|
|
{
|
|
label: '销售订单行',
|
|
field: 'soLine'
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
isTable: true,
|
|
isSearch: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存初始化申请主表
|
|
*/
|
|
export const InventoryinitRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'creationTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存初始化申请子表
|
|
*/
|
|
export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch'
|
|
},
|
|
{
|
|
label: '到货日期',
|
|
field: 'arriveDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode'
|
|
},
|
|
{
|
|
label: '库位组代码',
|
|
field: 'locationGroupCode'
|
|
},
|
|
{
|
|
label: '库区代码',
|
|
field: 'areaCode'
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty'
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存初始化记录主表
|
|
*/
|
|
export const InventoryinitRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存初始化记录子表
|
|
*/
|
|
export const InventoryinitRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch'
|
|
},
|
|
{
|
|
label: '到货日期',
|
|
field: 'arriveDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode'
|
|
},
|
|
{
|
|
label: '库位组代码',
|
|
field: 'locationGroupCode'
|
|
},
|
|
{
|
|
label: '库区代码',
|
|
field: 'areaCode'
|
|
},
|
|
{
|
|
label: '标包数量',
|
|
field: 'stdPackQty'
|
|
},
|
|
{
|
|
label: '标包单位',
|
|
field: 'stdPackUnit',
|
|
dictType: DICT_TYPE.PACK_UNIT,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存转移申请主表
|
|
*/
|
|
export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseOde'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '使用在途库',
|
|
field: 'useOnTheWayLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存转移申请子表
|
|
*/
|
|
export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库存状态',
|
|
field: 'fromInventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库存状态',
|
|
field: 'toInventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存转移任务主表
|
|
*/
|
|
export const InventorymoveJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '使用在途库',
|
|
field: 'useOnTheWayLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存转移任务子表
|
|
*/
|
|
export const InventorymoveJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '订单号',
|
|
field: 'poNumber'
|
|
},
|
|
{
|
|
label: '订单行',
|
|
field: 'poLine'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createtime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存转移记录主表
|
|
*/
|
|
export const InventorymoveRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '使用在途库',
|
|
field: 'useOnTheWayLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存转移记录子表
|
|
*/
|
|
export const InventorymoveRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '在途库库位',
|
|
field: 'onTheWayLocationCode'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '从库存状态',
|
|
field: 'fromInventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '到库存状态',
|
|
field: 'toInventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存修改申请主表
|
|
*/
|
|
export const InventorychangeRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存修改申请子表
|
|
*/
|
|
export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode'
|
|
},
|
|
{
|
|
label: '库位组代码',
|
|
field: 'locationGroupCode'
|
|
},
|
|
{
|
|
label: '库区代码',
|
|
field: 'areaCode'
|
|
},
|
|
{
|
|
label: '从数量',
|
|
field: 'fromQty'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '从替代批次',
|
|
field: 'fromAltbatch'
|
|
},
|
|
{
|
|
label: '从到货日期',
|
|
field: 'fromArriveDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从生产日期',
|
|
field: 'fromProduceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从过期日期',
|
|
field: 'fromExpireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库存状态',
|
|
field: 'frominventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到数量',
|
|
field: 'toQty'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
},
|
|
{
|
|
label: '到替代批次',
|
|
field: 'toAltBatch'
|
|
},
|
|
{
|
|
label: '到到货日期',
|
|
field: 'toArrivdAte',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '到生产日期',
|
|
field: 'toProduceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '到过期日期',
|
|
field: 'toExpireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '到库存状态',
|
|
field: 'toInventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存修改记录主表
|
|
*/
|
|
export const InventorychangeRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 库存修改记录子表
|
|
*/
|
|
export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode'
|
|
},
|
|
{
|
|
label: '库位组代码',
|
|
field: 'locationGroupCode'
|
|
},
|
|
{
|
|
label: '库区代码',
|
|
field: 'areaCode'
|
|
},
|
|
{
|
|
label: '从数量',
|
|
field: 'fromQty'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '从替代批次',
|
|
field: 'fromAltbatch'
|
|
},
|
|
{
|
|
label: '从到货日期',
|
|
field: 'fromArriveDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从生产日期',
|
|
field: 'fromProduceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从过期日期',
|
|
field: 'fromExpireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库存状态',
|
|
field: 'frominventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到数量',
|
|
field: 'toQty'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
},
|
|
{
|
|
label: '到替代批次',
|
|
field: 'toAltBatch'
|
|
},
|
|
{
|
|
label: '到到货日期',
|
|
field: 'toArrivdAte',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '到生产日期',
|
|
field: 'toProduceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '到过期日期',
|
|
field: 'toExpireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '到库存状态',
|
|
field: 'toInventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 调拨出库申请主表
|
|
*/
|
|
export const TransferissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromDockCode'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '从月台代码',
|
|
field: 'fromDockCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 调拨出库申请子表
|
|
*/
|
|
export const TransferissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 调拨出库任务主表
|
|
*/
|
|
export const TransferissueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '发货月台',
|
|
field: 'deliverDock'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '从月台代码',
|
|
field: 'fromDockCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 调拨出库任务子表
|
|
*/
|
|
export const TransferissueJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 调拨出库记录主表
|
|
*/
|
|
export const TransferissueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '从月台代码',
|
|
field: 'fromDockCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 调拨出库记录子表
|
|
*/
|
|
export const TransferissueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 调拨入库申请主表
|
|
*/
|
|
export const TransferreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromDockCode'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '到月台代码',
|
|
field: 'toDockCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 调拨入库申请子表
|
|
*/
|
|
export const TransferreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 调拨入库任务主表
|
|
*/
|
|
export const TransferreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '到月台代码',
|
|
field: 'toDockCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 调拨入库任务子表
|
|
*/
|
|
export const TransferreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 调拨入库记录主表
|
|
*/
|
|
export const TransferreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '收货月台',
|
|
field: 'receiptDock'
|
|
},
|
|
{
|
|
label: '承运商',
|
|
field: 'carrierCode'
|
|
},
|
|
{
|
|
label: '运输方式',
|
|
field: 'transferMode'
|
|
},
|
|
{
|
|
label: '车牌号',
|
|
field: 'vehiclePlateNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '到月台代码',
|
|
field: 'toDockCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 调拨入库记录子表
|
|
*/
|
|
export const TransferreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
{
|
|
label: '从批次',
|
|
field: 'fromBatch'
|
|
},
|
|
{
|
|
label: '到批次',
|
|
field: 'toBatch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 计划外出库申请主表
|
|
*/
|
|
export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 计划外出库申请子表
|
|
*/
|
|
export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 计划外出库任务主表
|
|
*/
|
|
export const UnplannedissueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 计划外出库任务子表
|
|
*/
|
|
export const UnplannedissueJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 计划外出库记录主表
|
|
*/
|
|
export const UnplannedissueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '从月台代码',
|
|
field: 'fromDockCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 计划外出库记录子表
|
|
*/
|
|
export const UnplannedissueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 计划外入库申请主表
|
|
*/
|
|
export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 计划外入库申请子表
|
|
*/
|
|
export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch'
|
|
},
|
|
{
|
|
label: '到货日期',
|
|
field: 'arriveDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到货主代码',
|
|
field: 'toOwnerCode'
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
dictType: DICT_TYPE.UNPLANNED_RECEIPT_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 计划外入库任务主表
|
|
*/
|
|
export const UnplannedreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 计划外入库任务子表
|
|
*/
|
|
export const UnplannedreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '替代批次',
|
|
field: 'altBatch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
dictType: DICT_TYPE.UNPLANNED_RECEIPT_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '到货日期',
|
|
field: 'arriveDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 计划外入库记录主表
|
|
*/
|
|
export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '到仓库代码',
|
|
field: 'toWarehouseCode'
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库区代码范围',
|
|
field: 'toAreaCodes'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 计划外入库记录子表
|
|
*/
|
|
export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到货日期',
|
|
field: 'arriveDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生产日期',
|
|
field: 'produceDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '过期日期',
|
|
field: 'expireDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '到库位代码',
|
|
field: 'toLocationCode'
|
|
},
|
|
{
|
|
label: '到库位组代码',
|
|
field: 'toLocationGroupCode'
|
|
},
|
|
{
|
|
label: '到库区代码',
|
|
field: 'toAreaCode'
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
dictType: DICT_TYPE.UNPLANNED_RECEIPT_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 报废出库申请主表
|
|
*/
|
|
export const ScrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 报废出库申请子表
|
|
*/
|
|
export const ScrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
dictType: DICT_TYPE.SCRAP_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 报废出库任务主表
|
|
*/
|
|
export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 报废出库任务子表
|
|
*/
|
|
export const ScrapJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
dictType: DICT_TYPE.SCRAP_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 报废出库记录主表
|
|
*/
|
|
export const ScrapRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '从仓库代码',
|
|
field: 'fromWarehouseCode'
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 报废出库记录子表
|
|
*/
|
|
export const ScrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '从货主代码',
|
|
field: 'fromOwnerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '从库位代码',
|
|
field: 'fromLocationCode'
|
|
},
|
|
{
|
|
label: '从库位组代码',
|
|
field: 'fromLocationGroupCode'
|
|
},
|
|
{
|
|
label: '从库区代码',
|
|
field: 'fromAreaCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '原因',
|
|
field: 'reason',
|
|
dictType: DICT_TYPE.SCRAP_REASON,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单价',
|
|
field: 'singlePrice'
|
|
},
|
|
{
|
|
label: '金额',
|
|
field: 'amount'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 盘点计划主表
|
|
*/
|
|
export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '盘点类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.COUNT_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '执行周期',
|
|
field: 'crontab'
|
|
},
|
|
{
|
|
label: '维度',
|
|
field: 'dimension',
|
|
dictType: DICT_TYPE.COUNT_DIMENSION,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '限值',
|
|
field: 'limitedValue'
|
|
},
|
|
{
|
|
label: '物品忽略名单',
|
|
field: 'ignoreListOfItem'
|
|
},
|
|
{
|
|
label: '库位忽略名单',
|
|
field: 'ignoreListOfLocation'
|
|
},
|
|
{
|
|
label: '盘点范围列表',
|
|
field: 'scopeList'
|
|
},
|
|
{
|
|
label: '快照盘点',
|
|
field: 'isSnapshot',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '冻结盘点',
|
|
field: 'isFreeze',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '盘点空库位',
|
|
field: 'isCountEmptyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '盘点零库存',
|
|
field: 'isCountZeroInventory',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '盘点负库存',
|
|
field: 'isCountNegativeInventory',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '明盘',
|
|
field: 'isOpenCount',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '开始时间',
|
|
field: 'beginTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '结束时间',
|
|
field: 'endTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.COUNT_PLAN_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 盘点计划子表
|
|
*/
|
|
export const CountPlanDetail = useCrudSchemas(<CrudSchema[]>([
|
|
{
|
|
label: '盘点范围类型',
|
|
field: 'type',
|
|
dictType: DICT_TYPE.COUNT_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '盘点范围值',
|
|
field: 'value'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '计划数量',
|
|
field: 'planQty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 盘点申请主表
|
|
*/
|
|
export const CountRequestMain = useCrudSchemas(<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '计划单号',
|
|
field: 'planNumber'
|
|
},
|
|
{
|
|
label: '阶段',
|
|
field: 'stage',
|
|
dictType: DICT_TYPE.COUNT_STAGE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 盘点申请子表
|
|
*/
|
|
export const CountRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '从包装号',
|
|
field: 'fromPackingNumber'
|
|
},
|
|
{
|
|
label: '从器具号',
|
|
field: 'fromContainerNumber'
|
|
},
|
|
{
|
|
label: '到包装号',
|
|
field: 'toPackingNumber'
|
|
},
|
|
{
|
|
label: '到器具号',
|
|
field: 'toContainerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '盘点明细号',
|
|
field: 'countDetailNumber'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 盘点任务主表
|
|
*/
|
|
export const CountJobMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '计划单号',
|
|
field: 'planNumber'
|
|
},
|
|
{
|
|
label: '阶段',
|
|
field: 'stage',
|
|
dictType: DICT_TYPE.COUNT_STAGE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode'
|
|
},
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '要求截止时间',
|
|
field: 'requestDueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.JOB_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '过期时间',
|
|
field: 'expiredTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'jobStageStatus'
|
|
},
|
|
{
|
|
label: '优先级',
|
|
field: 'priority'
|
|
},
|
|
{
|
|
label: '优先级增量',
|
|
field: 'priorityIncrement'
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '承接人',
|
|
field: 'acceptUserId'
|
|
},
|
|
{
|
|
label: '承接时间',
|
|
field: 'acceptTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '完成人',
|
|
field: 'completeUserId'
|
|
},
|
|
{
|
|
label: '完成时间',
|
|
field: 'completeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '从库位类型范围',
|
|
field: 'fromLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '到库位类型范围',
|
|
field: 'toLocationTypes',
|
|
dictType: DICT_TYPE.LOCATION_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '从库区代码范围',
|
|
field: 'fromAreaCodes'
|
|
},
|
|
{
|
|
label: '自动完成',
|
|
field: 'autoComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许修改库位',
|
|
field: 'allowModifyLocation',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许修改数量',
|
|
field: 'allowModifyQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许大于推荐数量',
|
|
field: 'allowBiggerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许小于推荐数量',
|
|
field: 'allowSmallerQty',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许修改库存状态',
|
|
field: 'allowModifyInventoryStatus',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许连续扫描',
|
|
field: 'allowContinuousScanning',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许部分完成',
|
|
field: 'allowPartialComplete',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许修改批次',
|
|
field: 'allowModifyBatch',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '允许修改箱码',
|
|
field: 'allowModifyPackingNumber',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 盘点任务子表
|
|
*/
|
|
export const CountJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '盘点明细号',
|
|
field: 'countDetailNumber'
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 盘点记录主表
|
|
*/
|
|
export const CountRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '任务单号',
|
|
field: 'jobNumber'
|
|
},
|
|
{
|
|
label: '计划单号',
|
|
field: 'planNumber'
|
|
},
|
|
{
|
|
label: '阶段',
|
|
field: 'stage',
|
|
dictType: DICT_TYPE.COUNT_STAGE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 盘点记录子表
|
|
*/
|
|
export const CountRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '盘点明细号',
|
|
field: 'countDetailNumber'
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode'
|
|
},
|
|
{
|
|
label: '库位组代码',
|
|
field: 'locationGroupCode'
|
|
},
|
|
{
|
|
label: '库区代码',
|
|
field: 'areaCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '盘点数量',
|
|
field: 'countQty'
|
|
},
|
|
{
|
|
label: '盘点时间',
|
|
field: 'countTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '盘点人',
|
|
field: 'countUser'
|
|
},
|
|
{
|
|
label: '盘点描述',
|
|
field: 'countDescription'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 盘点调整申请主表
|
|
*/
|
|
export const CountadjustRequestMain = useCrudSchemas(<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '盘点记录单号',
|
|
field: 'countRecordNumber'
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '状态',
|
|
field: 'status',
|
|
dictType: DICT_TYPE.REQUEST_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '自动提交',
|
|
field: 'autoCommit',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '自动通过',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '自动执行',
|
|
field: 'autoAgree',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
{
|
|
label: '直接生成记录',
|
|
field: 'directCreateRecord',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 盘点调整申请子表
|
|
*/
|
|
export const CountadjustRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '盘点明细号',
|
|
field: 'countDetailNumber'
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '库存数量',
|
|
field: 'inventoryQty'
|
|
},
|
|
{
|
|
label: '盘点数量',
|
|
field: 'countQty'
|
|
},
|
|
{
|
|
label: '调整数量',
|
|
field: 'adjustQty'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '最后更新时间',
|
|
field: 'updateTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '最后更新者',
|
|
field: 'updater'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 盘点调整记录主表
|
|
*/
|
|
export const CountadjustRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '申请单号',
|
|
field: 'requestNumber'
|
|
},
|
|
{
|
|
label: '盘点记录单号',
|
|
field: 'countRecordNumber'
|
|
},
|
|
{
|
|
label: '仓库代码',
|
|
field: 'warehouseCode'
|
|
},
|
|
{
|
|
label: '出库事务类型',
|
|
field: 'outTransactionType'
|
|
},
|
|
{
|
|
label: '入库事务类型',
|
|
field: 'inTransactionType'
|
|
},
|
|
{
|
|
label: '执行时间',
|
|
field: 'executeTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '生效日期',
|
|
field: 'activeDate',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '申请时间',
|
|
field: 'requestTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '截止时间',
|
|
field: 'dueTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '部门',
|
|
field: 'departmentCode'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '业务类型',
|
|
field: 'businessType'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '是否可用',
|
|
field: 'available',
|
|
dictType: DICT_TYPE.TRUE_FALSE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true,
|
|
form: {
|
|
component: 'Switch',
|
|
value: 'TRUE',
|
|
componentProps: {
|
|
inactiveValue: 'FALSE',
|
|
activeValue: 'TRUE'
|
|
}
|
|
},
|
|
},
|
|
]))
|
|
|
|
/**
|
|
* @returns {Array} 盘点调整记录子表
|
|
*/
|
|
export const CountadjustRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
|
|
{
|
|
label: '盘点明细号',
|
|
field: 'countDetailNumber'
|
|
},
|
|
{
|
|
label: '货主代码',
|
|
field: 'ownerCode'
|
|
},
|
|
{
|
|
label: '包装号',
|
|
field: 'packingNumber'
|
|
},
|
|
{
|
|
label: '器具号',
|
|
field: 'containerNumber'
|
|
},
|
|
{
|
|
label: '批次',
|
|
field: 'batch'
|
|
},
|
|
{
|
|
label: '库位代码',
|
|
field: 'locationCode'
|
|
},
|
|
{
|
|
label: '库存状态',
|
|
field: 'inventoryStatus',
|
|
dictType: DICT_TYPE.INVENTORY_STATUS,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '盘点数量',
|
|
field: 'countQty'
|
|
},
|
|
{
|
|
label: '库存数量',
|
|
field: 'inventoryQty'
|
|
},
|
|
{
|
|
label: '调整数量',
|
|
field: 'adjustQty'
|
|
},
|
|
{
|
|
label: '单据号',
|
|
field: 'number'
|
|
},
|
|
{
|
|
label: '物品代码',
|
|
field: 'itemCode'
|
|
},
|
|
{
|
|
label: '备注',
|
|
field: 'remark'
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
formatter: dateFormatter,
|
|
detail: {
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
}
|
|
},
|
|
{
|
|
label: '创建者',
|
|
field: 'creator'
|
|
},
|
|
{
|
|
label: '物品名称',
|
|
field: 'itemName'
|
|
},
|
|
{
|
|
label: '物品描述1',
|
|
field: 'itemDesc1'
|
|
},
|
|
{
|
|
label: '物品描述2',
|
|
field: 'itemDesc2'
|
|
},
|
|
{
|
|
label: '项目代码',
|
|
field: 'projectCode'
|
|
},
|
|
{
|
|
label: '数量',
|
|
field: 'qty'
|
|
},
|
|
{
|
|
label: '计量单位',
|
|
field: 'uom',
|
|
dictType: DICT_TYPE.UOM,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
{
|
|
label: '任务明细ID',
|
|
field: 'jobDetailId'
|
|
},
|
|
{
|
|
label: '代码',
|
|
field: 'code'
|
|
},
|
|
{
|
|
label: '接口类型',
|
|
field: 'interfaceType',
|
|
dictType: DICT_TYPE.INTERFACE_TYPE,
|
|
dictClass: 'string',
|
|
isSearch: true,
|
|
isTable: true
|
|
},
|
|
]))
|