|
|
@ -329,27 +329,27 @@ const handleImport = () => { |
|
|
|
// 列表-操作按钮事件 |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'mainPurPlanOpe') { // 打开 |
|
|
|
handleOpe(row.id) |
|
|
|
handleOpe(row.masterId) |
|
|
|
} else if (val == 'mainPurPlanClo') {// 关闭 |
|
|
|
handleClo(row.id) |
|
|
|
handleClo(row.masterId) |
|
|
|
} else if (val == 'mainPlanSub') { // 提交审批 |
|
|
|
handleSub(row.id) |
|
|
|
handleSub(row.masterId) |
|
|
|
} else if (val == 'purchase_mainPlanSub') { // 采购审批通过 |
|
|
|
handleApp(row.id) |
|
|
|
handleApp(row.masterId) |
|
|
|
} else if (val == 'purchase_mainPlanTur') { // 采购驳回按钮 |
|
|
|
handleTur(row.id) |
|
|
|
handleTur(row.masterId) |
|
|
|
} else if (val == 'invoice_sent_out') { // 发票寄出确认 |
|
|
|
handleInvoiceSentOut(row.id) |
|
|
|
handleInvoiceSentOut(row.masterId) |
|
|
|
} else if(val == 'finance_mainPlanSub'){ // 财务审批通过 |
|
|
|
handleFinanceApp(row.id) |
|
|
|
handleFinanceApp(row.masterId) |
|
|
|
} else if(val == 'finance_mainPlanTur'){ //财务审批拒绝 |
|
|
|
handleFinaceTur(row.id) |
|
|
|
handleFinaceTur(row.masterId) |
|
|
|
} else if (val == 'genRecords') { // 处理 |
|
|
|
genRecords(row.id) |
|
|
|
genRecords(row.masterId) |
|
|
|
} else if (val == 'edit') { // 编辑 |
|
|
|
openForm('update', row) |
|
|
|
} else if (val == 'delete') { // 删除 |
|
|
|
handleDelete(row.id) |
|
|
|
handleDelete(row.masterId) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -368,7 +368,7 @@ const handleImport = () => { |
|
|
|
const openDetail = (row : any, titleName : any, titleValue : any) => { |
|
|
|
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name |
|
|
|
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) |
|
|
|
clicKRowId.value = row.id |
|
|
|
clicKRowId.value = row.masterId |
|
|
|
detailRef.value.openDetail(row, titleName, titleValue) |
|
|
|
} |
|
|
|
|
|
|
|