Browse Source

HL-6058物料转隔离申请&隔离转合格申请明细行中字段调整

syhx
yufei_wang 2 months ago
parent
commit
d27cb93b4f
  1. 10
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  2. 2
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts

10
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -603,6 +603,11 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const formRef = ref() const formRef = ref()
const openForm =async (type: string, row?: number) => { const openForm =async (type: string, row?: number) => {
InventorymoveRequestDetail.allSchemas.tableFormColumns.forEach(item=>{
if(item.field == 'qty'){
item.tableForm.disabled = routeName.value == "HoldtookRequestMain"
}
})
tableData.value = [] // tableData.value = [] //
formRef.value.open(type, row) formRef.value.open(type, row)
} }
@ -611,6 +616,11 @@ const openForm =async (type: string, row?: number) => {
* 详情 新增/编辑事件 * 详情 新增/编辑事件
*/ */
const detailOpenForm = (type, row) => { const detailOpenForm = (type, row) => {
InventorymoveRequestDetail.allSchemas.formSchema.forEach(item=>{
if(item.field == 'qty'){
item.componentProps.disabled = routeName.value == "HoldtookRequestMain"
}
})
if(InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.find(item => (item.key == 'warehouseCode')) == undefined){ if(InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.find(item => (item.key == 'warehouseCode')) == undefined){
InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.push({ InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.push({
key: 'warehouseCode', key: 'warehouseCode',

2
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts

@ -1197,11 +1197,13 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
disabled:true,
min: 0, min: 0,
precision: 6 precision: 6
} }
}, },
tableForm: { tableForm: {
disabled:true,
type: 'InputNumber', type: 'InputNumber',
min: 0, min: 0,
precision: 6 precision: 6

Loading…
Cancel
Save