Browse Source

修改备件的采购方式属性

master
叶佳兴 1 week ago
parent
commit
273cc8c316
  1. 24
      src/views/eam/basic/item/item.data.ts
  2. 13
      src/views/eam/mold/moldAccounts/index.vue

24
src/views/eam/basic/item/item.data.ts

@ -139,18 +139,18 @@ export const Item = useCrudSchemas(
type: 'Select' type: 'Select'
} }
}, },
{ // {
label: '采购方式', // label: '采购方式',
field: 'purchaseWay', // field: 'purchaseWay',
sort: 'custom', // sort: 'custom',
dictType: DICT_TYPE.PURCHASE_WAY, // dictType: DICT_TYPE.PURCHASE_WAY,
dictClass: 'string', // dictClass: 'string',
isSearch: false, // isSearch: false,
isTable: true, // isTable: true,
tableForm: { // tableForm: {
type: 'Select' // type: 'Select'
} // }
}, // },
{ {
label: '物料类型', label: '物料类型',
field: 'itemType', field: 'itemType',

13
src/views/eam/mold/moldAccounts/index.vue

@ -251,6 +251,19 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const basicFormRef = ref() const basicFormRef = ref()
const openForm = (type: string, row?: any) => { const openForm = (type: string, row?: any) => {
if (type == 'create') {
MoldAccounts.allSchemas.formSchema.forEach((item) => {
if (item.field == 'number') {
item.componentProps.disabled = false
}
})
} else if (type == 'update') {
MoldAccounts.allSchemas.formSchema.forEach((item) => {
if (item.field == 'number') {
item.componentProps.disabled = true
}
})
}
basicFormRef.value.open(type, row) basicFormRef.value.open(type, row)
} }

Loading…
Cancel
Save