|
|
@ -702,16 +702,16 @@ const buttonTableClick = async (val, row) => { |
|
|
|
handleRepeal(row.id) |
|
|
|
} |
|
|
|
} |
|
|
|
const procurementCreators = ref([]) |
|
|
|
SupplierinvoiceRequestMainApi.queryUserInfoByRoleCode({ |
|
|
|
roleCode: 'purchase', |
|
|
|
pageSize: 1000, |
|
|
|
pageNo: 1, |
|
|
|
sort: '', |
|
|
|
by: 'ASC' |
|
|
|
}).then((res) => { |
|
|
|
procurementCreators.value = res.list |
|
|
|
}) |
|
|
|
// const procurementCreators = ref([]) |
|
|
|
// SupplierinvoiceRequestMainApi.queryUserInfoByRoleCode({ |
|
|
|
// roleCode: 'purchase', |
|
|
|
// pageSize: 1000, |
|
|
|
// pageNo: 1, |
|
|
|
// sort: '', |
|
|
|
// by: 'ASC' |
|
|
|
// }).then((res) => { |
|
|
|
// procurementCreators.value = res.list |
|
|
|
// }) |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const formRef = ref() |
|
|
|
const openForm = async (type: string, row?: any) => { |
|
|
@ -787,10 +787,10 @@ const openForm = async (type: string, row?: any) => { |
|
|
|
item.componentProps.disabled = false |
|
|
|
} |
|
|
|
|
|
|
|
if (item.field == 'procurementCreator') { |
|
|
|
item.componentProps.options = procurementCreators.value |
|
|
|
// if (item.field == 'procurementCreator') { |
|
|
|
// item.componentProps.options = procurementCreators.value |
|
|
|
|
|
|
|
} |
|
|
|
// } |
|
|
|
}) |
|
|
|
} |
|
|
|
if (row && (row.status == '3' || row.status == '7')) { |
|
|
@ -813,13 +813,13 @@ const openForm = async (type: string, row?: any) => { |
|
|
|
} |
|
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
formRef.value.open(type, row) |
|
|
|
if(type=='create'){ |
|
|
|
nextTick(() => { |
|
|
|
formRef.value.formRef.setValues({ |
|
|
|
procurementCreator:procurementCreators.value[0].id |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
// if(type=='create'){ |
|
|
|
// nextTick(() => { |
|
|
|
// formRef.value.formRef.setValues({ |
|
|
|
// procurementCreator:procurementCreators.value[0].id |
|
|
|
// }) |
|
|
|
// }) |
|
|
|
// } |
|
|
|
}) |
|
|
|
} |
|
|
|
const defaultSupplierCode = ref('') |
|
|
|