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