Browse Source

采购收货导入开发完成

master
zhaoxuebing 9 months ago
parent
commit
16dd940f81
  1. 31
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

31
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -74,7 +74,15 @@
/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/purchasereceipt-request-main/import" :importTemplateData="importTemplateData" @success="importSuccess" />
<ImportForm
ref="importFormRef"
url="/wms/purchasereceipt-request-main/import"
:importTemplateData="importTemplateData"
@success="importSuccess"
:updateIsDisable="true"
:coverIsDisable="true"
:mode="2"
/>
<!-- 创建标签 -->
<BasicForm
@ -355,52 +363,71 @@ const handleClose = async (id: number) => {
/** 重新添加按钮操作 */
const handleReAdd = async (id: number) => {
try{
await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.reAddPurchasereceiptRequestMain(id)
message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList()
}catch{}finally{
tableObject.loading = false
}
}
/** 审批通过按钮操作 */
const handleAgree = async (id: number) => {
try{
await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.agreePurchasereceiptRequestMain(id)
message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList()
}catch{}finally{
tableObject.loading = false
}
}
/** 审批驳回按钮操作 */
const handleRefused = async (id: number) => {
try{
await message.confirm(t('common.confirmRefused'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.refusedPurchasereceiptRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
}catch{}finally{
tableObject.loading = false
}
}
/** 处理按钮操作 */
const handleHandle = async (id: number) => {
try{
await message.confirm(t('common.confirmHandle'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.handlePurchasereceiptRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
}catch{}finally{
tableObject.loading = false
}
}
/** 提交按钮操作 */
const handleSubmit = async (id: number) => {
try{
await message.confirm(t('common.confirmSubmit'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.submitPurchasereceiptRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
}catch{}finally{
tableObject.loading = false
}
}
/** 导出按钮操作 */

Loading…
Cancel
Save