Browse Source

BUG修改

master_hella_20240701
parent
commit
4079fe2936
  1. 7
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue
  2. 11
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts

7
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -111,6 +111,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
// //
if (formField == 'itemCode') { if (formField == 'itemCode') {
row['itemCode'] = val[0]['componentItemCode'] row['itemCode'] = val[0]['componentItemCode']
row['uom'] = val[0]['componentUom']
} else { } else {
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
row['toLocationCode'] = val[0]['rawLocationCode'] row['toLocationCode'] = val[0]['rawLocationCode']
@ -151,9 +152,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
if(item.field == 'planQty') { if(item.field == 'planQty') {
item.tableForm.disabled = true item.tableForm.disabled = true
} }
if(item.field == 'uom') {
item.tableForm.disabled = true
}
if(item.field == 'available') { if(item.field == 'available') {
item.tableForm.disabled = true item.tableForm.disabled = true
} }
@ -498,9 +496,6 @@ const resetShow = async () => {
if(item.field == 'planQty') { if(item.field == 'planQty') {
item.tableForm.disabled = false item.tableForm.disabled = false
} }
if(item.field == 'uom') {
item.tableForm.disabled = false
}
if(item.field == 'available') { if(item.field == 'available') {
item.tableForm.disabled = false item.tableForm.disabled = false
} }

11
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts

@ -580,11 +580,18 @@ export const PreparetoissueDetail = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
disabled: true
}
},
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm:{
type: 'Select' type: 'Select',
disabled: true
}, },
}, },
{ {
@ -791,4 +798,4 @@ export const PreparetoissueDetailRules = reactive({
dueTime: [ dueTime: [
{ required: true, message: '请选择截止时间', trigger: 'change' } { required: true, message: '请选择截止时间', trigger: 'change' }
] ]
}) })

Loading…
Cancel
Save