Browse Source

HL-6311 修复前端展示字段顺序

hella_online_20241107
chenfang 3 weeks ago
parent
commit
c80e8fd2c2
  1. 40
      src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/initialContainerMainRequest.data.ts
  2. 8
      src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue
  3. 6
      src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts

40
src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/initialContainerMainRequest.data.ts

@ -465,6 +465,26 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '库存状态',
field: 'toInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true,
type: 'Select'
},
form: {
componentProps: {
disabled: true
}
}
},
{ {
label: '数量', label: '数量',
field: 'toQty', field: 'toQty',
@ -503,26 +523,6 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '库存状态',
field: 'toInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true,
type: 'Select'
},
form: {
componentProps: {
disabled: true
}
}
},
{ {
label: '子备注', label: '子备注',
field: 'remark', field: 'remark',

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

@ -158,7 +158,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
newRow['uom'] = item['uom'] newRow['uom'] = item['uom']
newRow['fromLocationCode'] = item['locationCode'] newRow['fromLocationCode'] = item['locationCode']
newRow['fromInventoryStatus'] = item['inventoryStatus'] newRow['fromInventoryStatus'] = item['inventoryStatus']
newRow['toInventoryStatus'] = 'SCRAP' newRow['toInventoryStatus'] = item['inventoryStatus']
newRow['toQty'] = item['qty'] newRow['toQty'] = item['qty']
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
@ -426,9 +426,9 @@ const isShowButton = ref(true)
const tableFormKeys = {} const tableFormKeys = {}
ContainerDetailRequest.allSchemas.tableFormColumns.forEach(item => { ContainerDetailRequest.allSchemas.tableFormColumns.forEach(item => {
tableFormKeys[item.field] = item.default ? item.default : '' tableFormKeys[item.field] = item.default ? item.default : ''
if(item.field == 'toInventoryStatus'){ // if(item.field == 'toInventoryStatus'){
tableFormKeys[item.field] = "SCRAP" // tableFormKeys[item.field] = "SCRAP"
} // }
}) })
const tableData = ref([]) const tableData = ref([])

6
src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts

@ -141,7 +141,9 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isForm: false, isSearch: false,
isForm: true,
isTable: false,
table: { table: {
width: 150 width: 150
}, },
@ -585,7 +587,7 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
label: '子备注', label: '子备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
isTable: true, isTable: false,
isForm: false, isForm: false,
isTableForm: false isTableForm: false
}, },

Loading…
Cancel
Save