Browse Source

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

master_hella_20240701
chenfang 7 months ago
parent
commit
4ae6ec744b
  1. 6
      src/api/mes/orderDay/index.ts
  2. 20
      src/api/mes/workScheduling/index.ts
  3. 4
      src/views/mes/orderDay/components/BasicFormV2.vue
  4. 42
      src/views/mes/orderDay/components/schedule.vue
  5. 48
      src/views/mes/orderDay/index.vue
  6. 21
      src/views/mes/orderDay/orderDay.data.ts
  7. 75
      src/views/mes/workScheduling/index.vue
  8. 34
      src/views/mes/workScheduling/workScheduling.data.ts
  9. 30
      src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts
  10. 29
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts
  11. 107
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/productreceiptscrapJobMain.data.ts
  12. 141
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts

6
src/api/mes/orderDay/index.ts

@ -99,9 +99,9 @@ export const getPlanDevices = async (params) => {
///发布计划 ///发布计划
export const publishPlan = async (data: OrderDayVO) => { export const publishPlan = async (data: OrderDayVO) => {
return await request.post({ url: `/mes/orderday/publishPlan`,data }) return await request.postOriginal({ url: `/mes/orderday/publishPlan`,data })
} }
//终止计划 //终止计划
export const stopPlan = async (params) => { export const stopPlan = async (id) => {
return await request.post({ url: `/mes/orderday/stopPlan`,params }) return await request.post({ url: `/mes/orderday/stopPlan/`+id })
} }

20
src/api/mes/workScheduling/index.ts

@ -9,38 +9,42 @@ export const getWorkSchedulingPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/mes/work-scheduling/senior', data }) return await request.post({ url: '/mes/workScheduling/senior', data })
} else { } else {
return await request.get({ url: `/mes/work-scheduling/page`, params }) return await request.get({ url: `/mes/workScheduling/page`, params })
} }
} }
// 查询生产任务排产详情 // 查询生产任务排产详情
export const getWorkScheduling = async (id: number) => { export const getWorkScheduling = async (id: number) => {
return await request.get({ url: `/mes/work-scheduling/get?id=` + id }) return await request.get({ url: `/mes/workScheduling/get?id=` + id })
} }
// 新增生产任务排产 // 新增生产任务排产
export const createWorkScheduling = async (data: WorkSchedulingVO) => { export const createWorkScheduling = async (data: WorkSchedulingVO) => {
return await request.post({ url: `/mes/work-scheduling/create`, data }) return await request.post({ url: `/mes/workScheduling/create`, data })
} }
// 修改生产任务排产 // 修改生产任务排产
export const updateWorkScheduling = async (data: WorkSchedulingVO) => { export const updateWorkScheduling = async (data: WorkSchedulingVO) => {
return await request.put({ url: `/mes/work-scheduling/update`, data }) return await request.put({ url: `/mes/workScheduling/update`, data })
}
// 更改生产任务状态
export const updateWorkSchedulingStatus = async (data: any) => {
return await request.put({ url: `/mes/workScheduling/updateStatus`, data })
} }
// 删除生产任务排产 // 删除生产任务排产
export const deleteWorkScheduling = async (id: number) => { export const deleteWorkScheduling = async (id: number) => {
return await request.delete({ url: `/mes/work-scheduling/delete?id=` + id }) return await request.delete({ url: `/mes/workScheduling/delete?id=` + id })
} }
// 导出生产任务排产 Excel // 导出生产任务排产 Excel
export const exportWorkScheduling = async (params) => { export const exportWorkScheduling = async (params) => {
return await request.download({ url: `/mes/work-scheduling/export-excel`, params }) return await request.download({ url: `/mes/workScheduling/export-excel`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/mes/work-scheduling/get-import-template' }) return request.download({ url: '/mes/workScheduling/get-import-template' })
} }

4
src/views/mes/orderDay/components/BasicFormV2.vue

@ -4,11 +4,11 @@
v-model="dialogVisible" v-model="dialogVisible"
:width="dialogWidth" :width="dialogWidth"
:close-on-click-modal="false" :close-on-click-modal="false"
:vLoading="formLoading"
> >
<div style="max-height: 60vh;overflow-y: auto;"> <div style="max-height: 60vh;overflow-y: auto;">
<Form <Form
ref="formRef" ref="formRef"
v-loading="formLoading"
:rules="rules" :rules="rules"
:schema="formSchema" :schema="formSchema"
:is-col="true" :is-col="true"
@ -304,7 +304,9 @@ if (props.isShowFooterButtton) {
const buttonBaseClick = (val) => { const buttonBaseClick = (val) => {
// //
if (val == 'save') { if (val == 'save') {
submitForm() submitForm()
} }
// //
else if (val == 'close') { else if (val == 'close') {

42
src/views/mes/orderDay/components/schedule.vue

@ -4,6 +4,7 @@
v-model="dialogVisible" v-model="dialogVisible"
:width="dialogWidth" :width="dialogWidth"
:close-on-click-modal="false" :close-on-click-modal="false"
:vLoading="formLoading"
> >
<ContentWrap> <ContentWrap>
<Descriptions <Descriptions
@ -178,7 +179,7 @@
</el-dialog> </el-dialog>
</ContentWrap> </ContentWrap>
<template #footer> <template #footer>
<el-button @click="publishPlan">发布计划</el-button> <el-button @click="publishPlan" >发布计划</el-button>
</template> </template>
<SearchTable ref="searchTableRef" @search-table-success="searchTableSuccess" /> <SearchTable ref="searchTableRef" @search-table-success="searchTableSuccess" />
</Dialog> </Dialog>
@ -211,11 +212,11 @@ const graph = ref<Graph>()
const message = useMessage() // const message = useMessage() //
const { t } = useI18n() // const { t } = useI18n() //
const activeName = ref('process') const activeName = ref('process')
const loading = ref(true) const formLoading = ref(false)
const dialogFormVisibleUser = ref(false) const dialogFormVisibleUser = ref(false)
const processData = ref([]) const processData = ref([])
const processCode = ref('') const processCode = ref('')
//const isPublish=ref(false)
const queryParams:orderDayconfigApi.OrderDayQueryParamVo=ref() const queryParams:orderDayconfigApi.OrderDayQueryParamVo=ref()
const props = defineProps({ const props = defineProps({
// //
@ -411,7 +412,26 @@ const opensearchTable = (
true true
) )
} }
const publishPlan= async ()=>{ const publishPlan=()=>{
message.confirm("确认发布当前计划?","question").then(async () => {
//isPublish.value=true
//loading.value = true,
try{formLoading.value=true
doPublishPlan() }finally{
formLoading.value=false;
}
// loading.value = false,
dialogVisible.value = false,
//isPublish.value=false,
emit('close')
}).catch(() => {
message.info("已取消发布")
})
}
const doPublishPlan= ()=>{
let data ={ let data ={
updateId: detailData.value.id, updateId: detailData.value.id,
status: detailData.value.status, status: detailData.value.status,
@ -432,8 +452,14 @@ const publishPlan= async ()=>{
endTime: detailData.value.endTime, endTime: detailData.value.endTime,
taskMode: detailData.value.taskMode taskMode: detailData.value.taskMode
} }
console.log("-------",data) //console.log("-------",data)
await OrderDayApi.publishPlan(data) let res = OrderDayApi.publishPlan(data)
if(res.code==0){
message.success("计划发布成功")
}else {
message.error(res.msg)
}
} }
// //
const searchTableSuccess = (formField, searchField, val, type, row) => { const searchTableSuccess = (formField, searchField, val, type, row) => {
@ -623,6 +649,10 @@ const getTeamList = async (params:any) => {
defineOptions({ name: 'SechledDetail' }) defineOptions({ name: 'SechledDetail' })
defineExpose({ open }) // open defineExpose({ open }) // open
//
const emit = defineEmits([
'close'
])
</script> </script>
<style lang="scss"> <style lang="scss">
.el-drawer__body { .el-drawer__body {

48
src/views/mes/orderDay/index.vue

@ -57,11 +57,12 @@
:isBusiness="false" :isBusiness="false"
:isSearchFilterButtonHide="true" :isSearchFilterButtonHide="true"
@onChange="valueChange" @onChange="valueChange"
/> />
<!-- 详情 --> <!-- 详情 -->
<orderDetail ref="detailRef" :all-schemas="OrderDay.allSchemas" /> <orderDetail ref="detailRef" :all-schemas="OrderDay.allSchemas" />
<scheduleDetail ref="scheduleDetailRef" :all-schemas="OrderDay.allSchemas" :basicFormWidth="75"/> <scheduleDetail ref="scheduleDetailRef" :all-schemas="OrderDay.allSchemas" :basicFormWidth="75" @close="publishClosed" />
<!-- 导入 --> <!-- 导入 -->
<ImportForm <ImportForm
ref="importFormRef" ref="importFormRef"
@ -81,8 +82,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import orderDetail from './components/orderDetail.vue' import orderDetail from './components/orderDetail.vue'
import scheduleDetail from './components/schedule.vue' import scheduleDetail from './components/schedule.vue'
import { Loading } from 'node_modules/element-plus/es/components/loading/src/service'
import { loadavg } from 'os'
defineOptions({ name: 'MesOrderDay' }) defineOptions({ name: 'MesOrderDay' })
const message = useMessage() // const message = useMessage() //
@ -195,6 +195,10 @@ const buttonBaseClick = (val, item) => {
console.log('其他按钮', item) console.log('其他按钮', item)
} }
} }
const publishClosed=()=>{
//console.log('publishClosed')
getList()
}
// //
const isShowMainButton = (row,val) => { const isShowMainButton = (row,val) => {
//console.log('row',row) //console.log('row',row)
@ -206,6 +210,7 @@ const isShowMainButton = (row,val) => {
} }
// - // -
// - // -
//TERMINALE("4", ""),PROCESSING("3", ""),PUBLISHED("2", ""),WAITSECHUDLE("1", ""),CANCELED("-2", ""),WAITREADY("-1", "");
const butttondata = (row) => { const butttondata = (row) => {
//console.log('row2',row) //console.log('row2',row)
return [ return [
@ -227,11 +232,11 @@ const butttondata = (row) => {
// hasPermi: ''}), // // hasPermi: ''}), //
defaultButtons.mainListHandleBtn({label: '终止', defaultButtons.mainListHandleBtn({label: '终止',
name: 'stopPlan', name: 'stopPlan',
hide: isShowMainButton(row,['1','2','3']), hide: isShowMainButton(row,['-1','1','2','3']),
type: 'warning', type: 'warning',
icon: '', icon: '',
color: '', color: '',
hasPermi: ''}), // hasPermi: 'mes:orderDay:update'}), //
] ]
} }
@ -244,6 +249,8 @@ const buttonTableClick = async (val, row) => {
handleDelete(row.id) handleDelete(row.id)
} else if(val=='publish'){ // } else if(val=='publish'){ //
openScheduledDetail( '发布计划', row,row.planNoDay) openScheduledDetail( '发布计划', row,row.planNoDay)
}else if(val=='stopPlan'){ //
stopPlan(row.id)
} }
} }
@ -256,24 +263,22 @@ const openForm = (type: string, row?: any) => {
// form // form
const formsSuccess = async (formType,data) => { const formsSuccess = async (formType,data) => {
var isHave =OrderDay.allSchemas.formSchema.some(function (item) {
return item.field === 'activeTime' || item.field === 'expireTime';
});
if(isHave){
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
message.error('失效时间要大于生效时间')
return;
}
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') { if (formType === 'create') {
await OrderDayApi.createOrderDay(data) let ret=await OrderDayApi.createOrderDay(data)
if(ret===undefined || ret===null){
message.error(t('common.networkError'))
}else{
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
}
} else { } else {
await OrderDayApi.updateOrderDay(data) let ret=await OrderDayApi.updateOrderDay(data)
if(ret.code==0){
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
}else{
message.error(t('common.networkError'))
}
} }
basicFormRef.value.dialogVisible = false basicFormRef.value.dialogVisible = false
@ -318,7 +323,10 @@ const handleExport = async () => {
exportLoading.value = false exportLoading.value = false
} }
} }
const stopPlan = async (id) => {
await OrderDayApi.stopPlan(id)
getList()
}
/** 导入 */ /** 导入 */
const importFormRef = ref() const importFormRef = ref()
const handleImport = () => { const handleImport = () => {

21
src/views/mes/orderDay/orderDay.data.ts

@ -263,7 +263,9 @@ export const OrderDay = useCrudSchemas(reactive<CrudSchema[]>([
field: 'planDate', field: 'planDate',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true, isSearch: false,
isForm:false,
isTable:false,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -286,11 +288,12 @@ export const OrderDay = useCrudSchemas(reactive<CrudSchema[]>([
formatter: dateFormatter, formatter: dateFormatter,
required: true, required: true,
form: { form: {
component: 'TimePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'time', type: 'datetime',
dateFormat: 'HH:mm', dateFormat: 'YYYY-MM-DD',
//valueFormat: 'x', valueFormat: 'x',
timeFormat:"HH:mm"
} }
}, },
}, },
@ -301,10 +304,12 @@ export const OrderDay = useCrudSchemas(reactive<CrudSchema[]>([
formatter: dateFormatter, formatter: dateFormatter,
isReadonly:true, isReadonly:true,
form: { form: {
component: 'TimePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'time', type: 'datetime',
dateFormat: 'HH:mm', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
timeFormat:"HH:mm"
} }
}, },
}, },

75
src/views/mes/workScheduling/index.vue

@ -27,13 +27,13 @@
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #planMaserCode="{row}"> <template #schedulingCode="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.planMaserCode)"> <el-button type="primary" link @click="openDetail(row, '工单详情', row.schedulingCode)">
<span>{{ row.planMaserCode }}</span> <span>{{ row.planMaserCode }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" /> <ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event,row)" />
</template> </template>
</Table> </Table>
</ContentWrap> </ContentWrap>
@ -81,6 +81,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from './components/Detail.vue' import Detail from './components/Detail.vue'
import { async } from '@antv/x6/lib/registry/marker/async'
defineOptions({ name: 'MesWorkScheduling' }) defineOptions({ name: 'MesWorkScheduling' })
@ -100,7 +101,15 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
formRef.setValues(setV) formRef.setValues(setV)
}) })
} }
//
const isShowMainButton = (row,val) => {
//console.log('row',row)
if (val.indexOf(row.status) > -1) {
return false
} else {
return true
}
}
// //
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
@ -115,9 +124,9 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:workScheduling:create'}), // //defaultButtons.defaultAddBtn({hasPermi:'mes:workScheduling:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:workScheduling:import'}), // defaultButtons.defaultImportBtn({hasPermi:'mes:workScheduling:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:workScheduling:export'}), // defaultButtons.defaultExportBtn({hasPermi:'mes:workScheduling:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -146,19 +155,36 @@ const buttonBaseClick = (val, item) => {
console.log('其他按钮', item) console.log('其他按钮', item)
} }
} }
// ONERROR("-3", ""),
// TERMINALE("-2", ""),
// WAITBEGIN("-1", ""),
// READYTODO("0", ""),
// WORKING("1", ""),
// WAITMATERIAL("2", ""),
// PAUSE("3", ""),
// WAITREPORT("4", ""),
// WAITFCHECK("5", ""),
// FINISHED("9", "");
// - // -
const butttondata = [ const butttondata=(row) =>{ return [
defaultButtons.mainListEditBtn({hasPermi:'wms:workScheduling:update'}), // defaultButtons.mainListEditBtn({label:"调序",hasPermi:'mes:workScheduling:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:workScheduling:delete'}), // //defaultButtons.mainListDeleteBtn({hasPermi:'mes:workScheduling:delete'}), //
] defaultButtons.mainListHandleBtn({label:"终止",name:'terminate',hide: isShowMainButton(row,['-1','0']),hasPermi:'mes:workScheduling:update'}), //
defaultButtons.mainListHandleBtn({label:"暂停",name:'pause',hide: isShowMainButton(row,['1']),hasPermi:'mes:workScheduling:update'}),
defaultButtons.mainListHandleBtn({label:"恢复",name:'resume',hide: isShowMainButton(row,['3']),hasPermi:'mes:workScheduling:update'}),
//defaultButtons.mainListHandleBtn({label:"",name:'change', hasPermi:'mes:workScheduling:update'}), //
]}
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'edit') { // if (val == 'edit') { //
openForm('update', row) openForm('update', row)
} else if (val == 'delete') { // } else if (val == 'terminate') { //
handleDelete(row.id) changeBillStatus(row,"-2")
}else if (val == 'pause') { //
changeBillStatus(row,"3")
}else if (val == 'resume') { //
changeBillStatus(row,"0")
} }
} }
@ -197,18 +223,15 @@ const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicWorkScheduling') detailRef.value.openDetail(row, titleName, titleValue, 'basicWorkScheduling')
} }
//
/** 删除按钮操作 */ const changeBillStatus=async(row,status)=>{
const handleDelete = async (id: number) => { ///message.alertWarning("")
try { let data={
// id:row.id,
await message.delConfirm() status:status
// }
await WorkSchedulingApi.deleteWorkScheduling(id) WorkSchedulingApi.updateWorkSchedulingStatus(data);
message.success(t('common.delSuccess')) getList()
//
await getList()
} catch {}
} }
/** 导出按钮操作 */ /** 导出按钮操作 */

34
src/views/mes/workScheduling/workScheduling.data.ts

@ -41,17 +41,16 @@ export const WorkScheduling = useCrudSchemas(reactive<CrudSchema[]>([
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, },
isForm: false,
}, },
{ {
label: '计划编号', label: '计划编号',
field: 'planMaserCode', field: 'planMaserCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
isForm: false, isForm: true,
}, },
{ {
label: '任务编号', label: '工单编号',
field: 'schedulingCode', field: 'schedulingCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -89,7 +88,7 @@ export const WorkScheduling = useCrudSchemas(reactive<CrudSchema[]>([
label: '计划数量', label: '计划数量',
field: 'planCount', field: 'planCount',
sort: 'custom', sort: 'custom',
isForm: false, isForm: true,
}, },
{ {
label: '完工数量', label: '完工数量',
@ -114,6 +113,12 @@ export const WorkScheduling = useCrudSchemas(reactive<CrudSchema[]>([
field: 'flagDo', field: 'flagDo',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
isForm:false,
dictType: DICT_TYPE.MESDO_STATUS,
dictClass: 'string',
form: {
component: 'Select',
},
}, },
{ {
label: '当前工序', label: '当前工序',
@ -121,24 +126,31 @@ export const WorkScheduling = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
}, },
{
label: '加工序号',
field: 'workSort',
sort: 'custom',
isForm: false,
},
{ {
label: '当前任务号', label: '当前任务号',
field: 'workingTaskSort', field: 'workingTaskSort',
sort: 'custom', sort: 'custom',
isForm: false, isForm: true,
}, },
{ {
label: '工单模式', label: '工单模式',
field: 'formType', field: 'formType',
sort: 'custom', sort: 'custom',
isForm: false, isForm: true,
dictType: DICT_TYPE.MES_WORKBILL_MODEL,
dictClass: 'string',
form: {
component: 'Select',
}, },
{
label: '生产序号',
field: 'workSort',
sort: 'custom',
isForm: false,
}, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

30
src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts

@ -652,6 +652,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '器具号', label: '器具号',
field: 'containerNumber', field: 'containerNumber',
isTable:false,
hiddenInMain:true, hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
@ -670,6 +671,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
sortTableDefault:1008,
formatter: dateFormatter2, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD' dateFormat: 'YYYY-MM-DD'
@ -691,6 +693,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
hiddenInMain:true,
isTable:false,
formatter: dateFormatter2, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD' dateFormat: 'YYYY-MM-DD'
@ -712,6 +716,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',
sortTableDefault:1007,
dictType: DICT_TYPE.INVENTORY_STATUS, dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
@ -722,8 +727,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '到库位代码', label: '到库位代码',
field: 'toLocationCode', field: 'toLocationCode',
sortTableDefault:1009,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -731,6 +736,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '订单号', label: '订单号',
hiddenInMain:true,
isTable:false,
field: 'woNumber', field: 'woNumber',
sort: 'custom', sort: 'custom',
table: { table: {
@ -740,6 +747,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '订单行', label: '订单行',
field: 'woLine', field: 'woLine',
hiddenInMain:true,
isTable:false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -748,6 +757,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '包装数量', label: '包装数量',
field: 'packQty', field: 'packQty',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -759,6 +770,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '包装规格', label: '包装规格',
field: 'packUnit', field: 'packUnit',
sortTableDefault:1004,
// dictType: DICT_TYPE.PACK_UNIT, // dictType: DICT_TYPE.PACK_UNIT,
// dictClass: 'string', // dictClass: 'string',
isTable: true, isTable: true,
@ -788,6 +800,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '物料描述1', label: '物料描述1',
field: 'itemDesc1', field: 'itemDesc1',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -796,6 +810,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '物料描述2', label: '物料描述2',
field: 'itemDesc2', field: 'itemDesc2',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -804,6 +820,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -813,6 +831,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '数量', label: '数量',
field: 'qty', field: 'qty',
sort: 'custom', sort: 'custom',
sortTableDefault:1005,
table: { table: {
width: 150 width: 150
}, },
@ -824,6 +843,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '计量单位', label: '计量单位',
field: 'uom', field: 'uom',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.UOM,
sortTableDefault:1006,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
@ -834,6 +854,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '单据号', label: '单据号',
field: 'number', field: 'number',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
@ -842,6 +864,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -850,6 +874,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sortTableDefault:1011,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -858,6 +883,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sortTableDefault:1010,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -878,6 +904,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '到货主代码', label: '到货主代码',
field: 'toOwnerCode', field: 'toOwnerCode',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150

29
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleJobMain/productreceiptAssembleJobMain.data.ts

@ -654,6 +654,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '器具号', label: '器具号',
field: 'containerNumber', field: 'containerNumber',
isTable:false,
hiddenInMain:true, hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
@ -672,6 +673,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
sortTableDefault:1008,
formatter: dateFormatter2, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD' dateFormat: 'YYYY-MM-DD'
@ -693,6 +695,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
hiddenInMain:true,
isTable:false,
formatter: dateFormatter2, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD' dateFormat: 'YYYY-MM-DD'
@ -714,6 +718,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',
sortTableDefault:1007,
dictType: DICT_TYPE.INVENTORY_STATUS, dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
@ -725,6 +730,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '到库位代码', label: '到库位代码',
field: 'toLocationCode', field: 'toLocationCode',
sortTableDefault:1009,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -733,6 +739,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '订单号', label: '订单号',
field: 'woNumber', field: 'woNumber',
hiddenInMain:true,
isTable:false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -741,6 +749,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '订单行', label: '订单行',
field: 'woLine', field: 'woLine',
hiddenInMain:true,
isTable:false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -749,6 +759,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '包装数量', label: '包装数量',
field: 'packQty', field: 'packQty',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -760,6 +772,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '包装规格', label: '包装规格',
field: 'packUnit', field: 'packUnit',
sortTableDefault:1004,
// dictType: DICT_TYPE.PACK_UNIT, // dictType: DICT_TYPE.PACK_UNIT,
// dictClass: 'string', // dictClass: 'string',
isTable: true, isTable: true,
@ -789,6 +802,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '物料描述1', label: '物料描述1',
field: 'itemDesc1', field: 'itemDesc1',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -797,6 +812,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '物料描述2', label: '物料描述2',
field: 'itemDesc2', field: 'itemDesc2',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -805,6 +822,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -814,6 +833,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '数量', label: '数量',
field: 'qty', field: 'qty',
sort: 'custom', sort: 'custom',
sortTableDefault:1005,
table: { table: {
width: 150 width: 150
}, },
@ -825,6 +845,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '计量单位', label: '计量单位',
field: 'uom', field: 'uom',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.UOM,
sortTableDefault:1006,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
@ -835,6 +856,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '单据号', label: '单据号',
field: 'number', field: 'number',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
@ -843,6 +866,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -851,6 +876,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sortTableDefault:1011,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -859,6 +885,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sortTableDefault:1010,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -879,6 +906,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '到货主代码', label: '到货主代码',
field: 'toOwnerCode', field: 'toOwnerCode',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150

107
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapJobMain/productreceiptscrapJobMain.data.ts

@ -25,8 +25,12 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
}, },
{ {
label: '生产线代码', label: '状态',
field: 'productionPlanNumber', field: 'status',
dictType: DICT_TYPE.JOB_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -40,10 +44,20 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{
label: '生产线代码',
field: 'productionPlanNumber',
isTable:false,
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '班组', label: '班组',
field: 'team', field: 'team',
sort: 'custom', sort: 'custom',
isTable:false,
table: { table: {
width: 150 width: 150
}, },
@ -52,6 +66,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '班次', label: '班次',
field: 'shift', field: 'shift',
sort: 'custom', sort: 'custom',
isTable:false,
table: { table: {
width: 150 width: 150
}, },
@ -60,6 +75,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '到仓库代码', label: '到仓库代码',
field: 'toWarehouseCode', field: 'toWarehouseCode',
sort: 'custom', sort: 'custom',
isTable:false,
table: { table: {
width: 150 width: 150
}, },
@ -67,6 +83,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '申请时间', label: '申请时间',
field: 'requestTime', field: 'requestTime',
isTable:false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -87,6 +104,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '要求截止时间', label: '要求截止时间',
field: 'requestDueTime', field: 'requestDueTime',
isTable:false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -104,21 +122,10 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '状态',
field: 'status',
dictType: DICT_TYPE.JOB_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '过期时间', label: '过期时间',
field: 'expiredTime', field: 'expiredTime',
isTable:false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -139,6 +146,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '最后更新时间', label: '最后更新时间',
field: 'updateTime', field: 'updateTime',
isTable:false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -160,6 +168,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '最后更新者', label: '最后更新者',
field: 'updater', field: 'updater',
sort: 'custom', sort: 'custom',
isTable:false,
table: { table: {
width: 150 width: 150
}, },
@ -176,6 +185,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '优先级', label: '优先级',
field: 'priority', field: 'priority',
sort: 'custom', sort: 'custom',
isTable:false,
table: { table: {
width: 150 width: 150
}, },
@ -186,6 +196,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '优先级增量', label: '优先级增量',
field: 'priorityIncrement', field: 'priorityIncrement',
isTable:false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -198,6 +209,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '部门', label: '部门',
field: 'departmentCode', field: 'departmentCode',
sort: 'custom', sort: 'custom',
isTable:false,
table: { table: {
width: 150 width: 150
}, },
@ -205,6 +217,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '承接人', label: '承接人',
field: 'acceptUserId', field: 'acceptUserId',
isTable:false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -213,6 +226,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '承接时间', label: '承接时间',
field: 'acceptTime', field: 'acceptTime',
isTable:false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -233,6 +247,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '完成人', label: '完成人',
field: 'completeUserId', field: 'completeUserId',
isTable:false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -241,6 +256,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '完成时间', label: '完成时间',
field: 'completeTime', field: 'completeTime',
isTable:false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -261,9 +277,9 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '从库区类型范围', label: '从库区类型范围',
field: 'fromAreaTypes', field: 'fromAreaTypes',
isTable:false,
dictType: DICT_TYPE.AREA_TYPE, dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string', dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -274,7 +290,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'toAreaTypes', field: 'toAreaTypes',
dictType: DICT_TYPE.AREA_TYPE, dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -283,6 +299,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '业务类型', label: '业务类型',
field: 'businessType', field: 'businessType',
isTable:false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -291,6 +308,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
isTable:false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -299,6 +317,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isTable:false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -319,6 +338,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
isTable:false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -327,6 +347,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '到库区代码范围', label: '到库区代码范围',
field: 'toAreaCodes', field: 'toAreaCodes',
isTable:false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -337,7 +358,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'autoComplete', field: 'autoComplete',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -356,7 +377,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'allowModifyLocation', field: 'allowModifyLocation',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -375,7 +396,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'allowModifyQty', field: 'allowModifyQty',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -394,7 +415,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'allowBiggerQty', field: 'allowBiggerQty',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -413,7 +434,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'allowSmallerQty', field: 'allowSmallerQty',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -432,7 +453,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'allowModifyInventoryStatus', field: 'allowModifyInventoryStatus',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -451,7 +472,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'allowContinuousScanning', field: 'allowContinuousScanning',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -470,7 +491,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'allowPartialComplete', field: 'allowPartialComplete',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -489,7 +510,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'allowModifyBatch', field: 'allowModifyBatch',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -508,7 +529,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'allowModifyPackingNumber', field: 'allowModifyPackingNumber',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -617,6 +638,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '包装号', label: '包装号',
field: 'packingNumber', field: 'packingNumber',
sortTableDefault:1003,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -625,6 +647,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '器具号', label: '器具号',
field: 'containerNumber', field: 'containerNumber',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -633,6 +657,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '批次', label: '批次',
field: 'batch', field: 'batch',
sortTableDefault:1002,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -641,6 +666,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
sortTableDefault:1008,
formatter: dateFormatter2, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD' dateFormat: 'YYYY-MM-DD'
@ -662,6 +688,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
hiddenInMain:true,
isTable:false,
formatter: dateFormatter2, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD' dateFormat: 'YYYY-MM-DD'
@ -683,6 +711,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',
sortTableDefault:1007,
dictType: DICT_TYPE.INVENTORY_STATUS, dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
@ -694,6 +723,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '到库位代码', label: '到库位代码',
field: 'toLocationCode', field: 'toLocationCode',
sortTableDefault:1009,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -702,6 +732,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '订单号', label: '订单号',
field: 'woNumber', field: 'woNumber',
hiddenInMain:true,
isTable:false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -710,6 +742,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '订单行', label: '订单行',
field: 'woLine', field: 'woLine',
hiddenInMain:true,
isTable:false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -718,6 +752,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '包装数量', label: '包装数量',
field: 'packQty', field: 'packQty',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -729,6 +765,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '包装规格', label: '包装规格',
field: 'packUnit', field: 'packUnit',
sortTableDefault:1004,
// dictType: DICT_TYPE.PACK_UNIT, // dictType: DICT_TYPE.PACK_UNIT,
// dictClass: 'string', // dictClass: 'string',
isTable: true, isTable: true,
@ -740,6 +777,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
sortTableDefault:1000,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -748,6 +786,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '物料名称', label: '物料名称',
field: 'itemName', field: 'itemName',
sortTableDefault:1001,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -756,6 +795,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '物料描述1', label: '物料描述1',
field: 'itemDesc1', field: 'itemDesc1',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -764,6 +805,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '物料描述2', label: '物料描述2',
field: 'itemDesc2', field: 'itemDesc2',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -772,6 +815,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -781,6 +826,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '数量', label: '数量',
field: 'qty', field: 'qty',
sort: 'custom', sort: 'custom',
sortTableDefault:1005,
table: { table: {
width: 150 width: 150
}, },
@ -792,6 +838,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '计量单位', label: '计量单位',
field: 'uom', field: 'uom',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.UOM,
sortTableDefault:1006,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
@ -803,6 +850,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '单据号', label: '单据号',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isTable:false,
hiddenInMain:true,
table: { table: {
width: 180 width: 180
}, },
@ -810,6 +859,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
isTable:false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -818,6 +869,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sortTableDefault:1011,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -826,6 +878,7 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sortTableDefault:1010,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -847,6 +900,8 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '到货主代码', label: '到货主代码',
field: 'toOwnerCode', field: 'toOwnerCode',
sort: 'custom', sort: 'custom',
isTable:false,
hiddenInMain:true,
table: { table: {
width: 150 width: 150
}, },

141
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts

@ -67,6 +67,25 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
isSearch: true, isSearch: true,
}, },
{
label: '状态',
field: 'status',
dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
isForm:false,
sort: 'custom',
table: {
width: 150
},
form: {
value: '1',
componentProps: {
disabled: true
}
}
},
{ {
label: '生产计划单号', label: '生产计划单号',
field: 'productionPlanNumber', field: 'productionPlanNumber',
@ -76,6 +95,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isSearch: true, isSearch: true,
isForm: false, isForm: false,
isTable:false,
}, },
{ {
label: '车间代码', label: '车间代码',
@ -109,6 +129,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 1000,
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
@ -133,6 +154,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 1001,
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
@ -150,6 +172,24 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '收货类型',
field: 'type',
dictType: DICT_TYPE.PLAN_PRODUCTION_TYPE,
dictClass: 'string',
sort: 'custom',
table: {
width: 150
},
form: {
value: 'scrap',
componentProps: {
disabled: true
}
},
isForm: false,
isTable: false,
},
{ {
label: '到仓库代码', label: '到仓库代码',
field: 'toWarehouseCode', field: 'toWarehouseCode',
@ -157,6 +197,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable:false,
isForm: false, isForm: false,
}, },
{ {
@ -164,11 +205,11 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'toAreaTypes', field: 'toAreaTypes',
dictType: DICT_TYPE.AREA_TYPE, dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string', dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTable:false,
isForm: false, isForm: false,
}, },
{ {
@ -178,6 +219,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false,
isForm: false, isForm: false,
}, },
{ {
@ -193,6 +235,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled: true disabled: true
} }
}, },
isTable: false,
isForm: false, isForm: false,
}, },
{ {
@ -224,6 +267,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isTable: false,
isForm: false isForm: false
}, },
{ {
@ -233,6 +277,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false,
isForm: false isForm: false
}, },
{ {
@ -255,6 +300,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isTable: false,
isForm: false isForm: false
}, },
{ {
@ -277,6 +323,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isTable: false,
}, },
{ {
label: '部门', label: '部门',
@ -300,27 +347,10 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
valueField: 'id' valueField: 'id'
} }
} }
}
}, },
{ isTable: false,
label: '状态',
field: 'status',
dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
isForm:false,
sort: 'custom',
table: {
width: 150
},
form: {
value: '1',
componentProps: {
disabled: true
}
}
}, },
{ {
label: '最后更新时间', label: '最后更新时间',
field: 'updateTime', field: 'updateTime',
@ -341,7 +371,8 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isForm: false isForm: false,
isTable: false,
}, },
{ {
label: '最后更新者', label: '最后更新者',
@ -350,14 +381,15 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isForm: false isForm: false,
isTable: false,
}, },
{ {
label: '自动提交', label: '自动提交',
field: 'autoCommit', field: 'autoCommit',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
isForm:false, isForm:false,
sort: 'custom', sort: 'custom',
table: { table: {
@ -378,7 +410,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'autoAgree', field: 'autoAgree',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
isForm:false, isForm:false,
sort: 'custom', sort: 'custom',
table: { table: {
@ -399,7 +431,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'autoExecute', field: 'autoExecute',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
isForm:false, isForm:false,
sort: 'custom', sort: 'custom',
table: { table: {
@ -436,22 +468,6 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '收货类型',
field: 'type',
dictType: DICT_TYPE.PLAN_PRODUCTION_TYPE,
dictClass: 'string',
sort: 'custom',
table: {
width: 150
},
form: {
value: 'scrap',
componentProps: {
disabled: true
}
},
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -637,6 +653,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true,
isTable:false,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
@ -647,6 +665,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true,
isTable:false,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
@ -655,8 +675,9 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
field: 'inventoryStatus', field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS, dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
sort: 'custom', sort: 'custom',
hiddenInMain:true,
table: { table: {
width: 150 width: 150
}, },
@ -670,6 +691,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
isTable: false,
hiddenInMain:true,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
@ -680,6 +703,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
isTable: false,
hiddenInMain:true,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
@ -690,6 +715,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
isTable: false,
hiddenInMain:true,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
@ -705,8 +732,9 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
field: 'packUnit', field: 'packUnit',
// dictType: DICT_TYPE.PACK_UNIT, // dictType: DICT_TYPE.PACK_UNIT,
// dictClass: 'string', // dictClass: 'string',
isTable: true, isTable: false,
sort: 'custom', sort: 'custom',
hiddenInMain:true,
table: { table: {
width: 150 width: 150
}, },
@ -717,6 +745,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
label: '到货主代码', label: '到货主代码',
field: 'toOwnerCode', field: 'toOwnerCode',
sort: 'custom', sort: 'custom',
isTable: false,
hiddenInMain:true,
table: { table: {
width: 150 width: 150
}, },
@ -730,6 +760,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 180 width: 180
}, },
isTable: false,
hiddenInMain:true,
isTableForm: false, isTableForm: false,
form: { form: {
componentProps: { componentProps: {
@ -744,6 +776,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:1003,
tableForm:{ tableForm:{
isInpuFocusShow: true, isInpuFocusShow: true,
searchListPlaceholder: '请选择物料代码', searchListPlaceholder: '请选择物料代码',
@ -791,6 +824,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
sortTableDefault:1004,
tableForm: { tableForm: {
isInpuFocusShow: true, isInpuFocusShow: true,
searchListPlaceholder: '请选择Bom版本', // 输入框占位文本 searchListPlaceholder: '请选择Bom版本', // 输入框占位文本
@ -835,6 +869,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
label: '批次', label: '批次',
field: 'batch', field: 'batch',
sort: 'custom', sort: 'custom',
sortTableDefault:1006,
table: { table: {
width: 150 width: 150
}, },
@ -856,6 +891,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true,
isTable: false,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
@ -866,6 +903,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true,
isTable: false,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
@ -876,6 +915,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:true,
isTable: false,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
@ -883,6 +924,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
label: '数量', label: '数量',
field: 'qty', field: 'qty',
sort: 'custom', sort: 'custom',
sortTableDefault:1006,
table: { table: {
width: 150 width: 150
}, },
@ -904,6 +946,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
field: 'uom', field: 'uom',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.UOM,
dictClass: 'string', dictClass: 'string',
sortTableDefault:1007,
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
@ -921,6 +964,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
detail: { detail: {
dateFormat: 'YYYY-MM-DD' dateFormat: 'YYYY-MM-DD'
}, },
sortTableDefault:1008,
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
@ -942,6 +986,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
hiddenInMain:true,
isTable: false,
formatter: dateFormatter2, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD' dateFormat: 'YYYY-MM-DD'
@ -967,6 +1013,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
isTable: false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -975,6 +1023,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sortTableDefault:1009,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -998,6 +1047,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sortTableDefault:1010,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -1008,6 +1058,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '最后更新时间', label: '最后更新时间',
field: 'updateTime', field: 'updateTime',
isTable: false,
hiddenInMain:true,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -1031,6 +1083,8 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '最后更新者', label: '最后更新者',
field: 'updater', field: 'updater',
isTable: false,
hiddenInMain:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -1041,6 +1095,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
hiddenInMain:true,
isDetail: false, isDetail: false,
isForm: false , isForm: false ,
table: { table: {

Loading…
Cancel
Save