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