|
|
@ -131,7 +131,15 @@ |
|
|
|
:footButttondata="undefined" |
|
|
|
@success="submitFormFinance" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 采购通过窗口--> |
|
|
|
<BasicForm |
|
|
|
ref="formPurchasePassRef" |
|
|
|
:rules="PurchasePassRules" |
|
|
|
:formAllSchemas="PurchasePass.allSchemas" |
|
|
|
:isBusiness="false" |
|
|
|
:footButttondata="undefined" |
|
|
|
@success="submitPurchasePass" |
|
|
|
/> |
|
|
|
<!-- 详情 --> |
|
|
|
<Detail |
|
|
|
ref="detailRef" |
|
|
@ -234,7 +242,9 @@ import dayjs from 'dayjs' |
|
|
|
SupplierinvoiceRequestDetail, |
|
|
|
SupplierinvoiceRequestDetailRules, |
|
|
|
SupplierinvoiceRequestFinance, |
|
|
|
SupplierinvoiceRequestFinanceRules |
|
|
|
SupplierinvoiceRequestFinanceRules, |
|
|
|
PurchasePass, |
|
|
|
PurchasePassRules |
|
|
|
} from './supplierinvoiceRequestMain.data' |
|
|
|
import * as SupplierinvoiceRequestMainApi from '@/api/wms/supplierinvoiceRequestMain' |
|
|
|
import * as SupplierinvoiceRequestDetailApi from '@/api/wms/supplierinvoiceRequestDetail' |
|
|
@ -270,7 +280,7 @@ import dayjs from 'dayjs' |
|
|
|
searchTablePage: SupplierApi.getSupplierPage |
|
|
|
} |
|
|
|
]) |
|
|
|
|
|
|
|
const formPurchasePassRef = ref() |
|
|
|
const searchList = (model)=>{ |
|
|
|
selectionRows.value = [] |
|
|
|
setSearchParams(model) |
|
|
@ -522,7 +532,12 @@ const handleImport = () => { |
|
|
|
} else if (val == 'open_detail') { // 查看明细 |
|
|
|
openDetail(row, '单据号', row.number) |
|
|
|
}else if (val == 'purchase_mainPlanSub') { // 采购审批通过 |
|
|
|
handleApp(row.id) |
|
|
|
// handleApp(row.id) |
|
|
|
if(row.balanceStatementStatus){ |
|
|
|
formPurchasePassRef.value.open('update', row,null,'采购审批通过','采购审批通过') |
|
|
|
}else{ |
|
|
|
submitPurchasePass(row.id) |
|
|
|
} |
|
|
|
} else if (val == 'purchase_mainPlanTur') { // 采购驳回按钮 |
|
|
|
resonSubmit(val, row) |
|
|
|
// handleTur(row.id) |
|
|
@ -777,15 +792,20 @@ const handleImport = () => { |
|
|
|
} |
|
|
|
|
|
|
|
/** 采购审批通过按钮操作 */ |
|
|
|
const handleApp = async (id : number) => { |
|
|
|
const submitPurchasePass = async (id, submitData) => { |
|
|
|
console.log(submitData) |
|
|
|
const id1 =submitData?.id || id |
|
|
|
|
|
|
|
console.log(id1) |
|
|
|
try { |
|
|
|
// 审批通过的二次确认 |
|
|
|
await message.confirm(t('ts.是否审批通过所选中数据?')) |
|
|
|
tableObject.loading = true |
|
|
|
// 发起审批通过 |
|
|
|
await SupplierinvoiceRequestMainApi.appSupplierinvoiceRequestMain(id) |
|
|
|
await SupplierinvoiceRequestMainApi.appSupplierinvoiceRequestMain(id1,submitData?.balanceStatement) |
|
|
|
message.success(t('ts.审批通过成功!')) |
|
|
|
tableObject.loading = false |
|
|
|
formPurchasePassRef.value.dialogVisible = false |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|
} catch { }finally{ |
|
|
|