Browse Source

WMS电脑端筛选条件保持不住---采购收货-维修备件收货

linshi20240813
wangyufei 4 months ago
parent
commit
1e60826a46
  1. 9
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue
  2. 4
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
  3. 4
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordRefuseMain/index.vue
  4. 16
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  5. 16
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue
  6. 8
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue

9
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue

@ -247,13 +247,14 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainJobAba') { // } else if (val == 'mainJobAba') { //
console.log('列表-操作按钮事件-放弃') console.log('列表-操作按钮事件-放弃')
await PurchasereceiptJobMainApi.abandonPurchasereceiptJobMainSpare(row.masterId) await PurchasereceiptJobMainApi.abandonPurchasereceiptJobMainSpare(row.masterId)
getList() buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { // } else if (val == 'mainJobClo') { //
handleClose(row.masterId) handleClose(row.masterId)
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { // } else if (val == 'mainJobAcc') { //
console.log('列表-操作按钮事件-承接') console.log('列表-操作按钮事件-承接')
await PurchasereceiptJobMainApi.acceptPurchasereceiptJobMain(row.masterId) await PurchasereceiptJobMainApi.acceptPurchasereceiptJobMain(row.masterId)
getList() buttonBaseClick('refresh',null)
} else if(val == 'mainPlanCheckQualityReport'){ } else if(val == 'mainPlanCheckQualityReport'){
// //
checkQualityReport(row) checkQualityReport(row)
@ -277,7 +278,7 @@ const handleClose = async (id: number) => {
await message.confirm(t('common.confirmColse')) await message.confirm(t('common.confirmColse'))
await PurchasereceiptJobMainApi.closePurchasereceiptJobMain(id) await PurchasereceiptJobMainApi.closePurchasereceiptJobMain(id)
message.success(t('common.closeSuccess')) message.success(t('common.closeSuccess'))
await getList() buttonBaseClick('refresh',null)
} catch {} } catch {}
} }
const resonSubmit = async (row)=>{ const resonSubmit = async (row)=>{
@ -308,7 +309,7 @@ const handleRefusal = async (id: number,refuseReason:string) => {
try { try {
await PurchasereceiptJobMainApi.refusalPurchasereceiptJobMain({id,refuseReason}) await PurchasereceiptJobMainApi.refusalPurchasereceiptJobMain({id,refuseReason})
message.success(t('common.refusalSuccess')) message.success(t('common.refusalSuccess'))
await getList() buttonBaseClick('refresh',null)
} catch {} } catch {}
} }

4
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue

@ -215,7 +215,7 @@ const handleCreatePutawayRequest = async (number:string) => {
tableObject.loading = true tableObject.loading = true
await PurchasereceiptRecordMainApi.createPutawayRequest(number) await PurchasereceiptRecordMainApi.createPutawayRequest(number)
message.success(t('ts.上架申请生成成功')) message.success(t('ts.上架申请生成成功'))
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }
@ -228,7 +228,7 @@ const handleCreateInspectRequest = async (number:string) => {
tableObject.loading = true tableObject.loading = true
await PurchasereceiptRecordMainApi.createInspectRequest(number) await PurchasereceiptRecordMainApi.createInspectRequest(number)
message.success(t('ts.到货检验申请生成成功')) message.success(t('ts.到货检验申请生成成功'))
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }

4
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordRefuseMain/index.vue

@ -204,7 +204,7 @@ const handleCreatePutawayRequest = async (number:string) => {
tableObject.loading = true tableObject.loading = true
await PurchasereceiptRecordMainApi.createPutawayRequest(number) await PurchasereceiptRecordMainApi.createPutawayRequest(number)
message.success(t('ts.上架申请生成成功')) message.success(t('ts.上架申请生成成功'))
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }
@ -217,7 +217,7 @@ const handleCreateInspectRequest = async (number:string) => {
tableObject.loading = true tableObject.loading = true
await PurchasereceiptRecordMainApi.createInspectRequest(number) await PurchasereceiptRecordMainApi.createInspectRequest(number)
message.success(t('ts.到货检验申请生成成功')) message.success(t('ts.到货检验申请生成成功'))
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }

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

@ -678,7 +678,7 @@ const handleClose = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PurchasereceiptRequestMainApi.closePurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.closePurchasereceiptRequestMain(id)
message.success(t('common.closeSuccess')) message.success(t('common.closeSuccess'))
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }
@ -691,7 +691,7 @@ const handleReAdd = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PurchasereceiptRequestMainApi.reAddPurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.reAddPurchasereceiptRequestMain(id)
message.success(t('common.reAddSuccess')) message.success(t('common.reAddSuccess'))
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }
@ -705,7 +705,7 @@ const handleAgree = async (id: number) => {
await PurchasereceiptRequestMainApi.agreePurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.agreePurchasereceiptRequestMain(id)
message.success(t('common.agreeSuccess')) message.success(t('common.agreeSuccess'))
tableObject.loading = false tableObject.loading = false
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }
@ -719,7 +719,7 @@ const handleRefused = async (id: number) => {
await PurchasereceiptRequestMainApi.refusedPurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.refusedPurchasereceiptRequestMain(id)
message.success(t('common.refusedSuccess')) message.success(t('common.refusedSuccess'))
tableObject.loading = false tableObject.loading = false
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }
@ -733,7 +733,7 @@ const handleHandle = async (id: number) => {
await PurchasereceiptRequestMainApi.handlePurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.handlePurchasereceiptRequestMain(id)
message.success(t('common.handleSuccess')) message.success(t('common.handleSuccess'))
tableObject.loading = false tableObject.loading = false
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }
@ -747,7 +747,7 @@ const handleSubmit = async (id: number) => {
await PurchasereceiptRequestMainApi.submitPurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.submitPurchasereceiptRequestMain(id)
message.success(t('common.submitSuccess')) message.success(t('common.submitSuccess'))
tableObject.loading = false tableObject.loading = false
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }
@ -819,7 +819,11 @@ const submitForm = async (formType, submitData) => {
} }
formRef.value.dialogVisible = false formRef.value.dialogVisible = false
// //
if (formType === 'create') {
getList() getList()
}else{
buttonBaseClick('refresh',null)
}
} finally { } finally {
formRef.value.formLoading = false formRef.value.formLoading = false
} }

16
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue

@ -607,7 +607,7 @@ const handleClose = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PurchasereceiptRequestMainApi.closePurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.closePurchasereceiptRequestMain(id)
message.success(t('common.closeSuccess')) message.success(t('common.closeSuccess'))
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }
@ -620,7 +620,7 @@ const handleReAdd = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PurchasereceiptRequestMainApi.reAddPurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.reAddPurchasereceiptRequestMain(id)
message.success(t('common.reAddSuccess')) message.success(t('common.reAddSuccess'))
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }
@ -634,7 +634,7 @@ const handleAgree = async (id: number) => {
await PurchasereceiptRequestMainApi.agreePurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.agreePurchasereceiptRequestMain(id)
message.success(t('common.agreeSuccess')) message.success(t('common.agreeSuccess'))
tableObject.loading = false tableObject.loading = false
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }
@ -648,7 +648,7 @@ const handleRefused = async (id: number) => {
await PurchasereceiptRequestMainApi.refusedPurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.refusedPurchasereceiptRequestMain(id)
message.success(t('common.refusedSuccess')) message.success(t('common.refusedSuccess'))
tableObject.loading = false tableObject.loading = false
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }
@ -662,7 +662,7 @@ const handleHandle = async (id: number) => {
await PurchasereceiptRequestMainApi.handlePurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.handlePurchasereceiptRequestMain(id)
message.success(t('common.handleSuccess')) message.success(t('common.handleSuccess'))
tableObject.loading = false tableObject.loading = false
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }
@ -676,7 +676,7 @@ const handleSubmit = async (id: number) => {
await PurchasereceiptRequestMainApi.submitPurchasereceiptRequestMain(id) await PurchasereceiptRequestMainApi.submitPurchasereceiptRequestMain(id)
message.success(t('common.submitSuccess')) message.success(t('common.submitSuccess'))
tableObject.loading = false tableObject.loading = false
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }
@ -747,7 +747,11 @@ const submitForm = async (formType, submitData) => {
} }
formRef.value.dialogVisible = false formRef.value.dialogVisible = false
// //
if (formType === 'create') {
getList() getList()
}else{
buttonBaseClick('refresh',null)
}
} finally { } finally {
formRef.value.formLoading = false formRef.value.formLoading = false
} }

8
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue

@ -207,7 +207,7 @@ const handleExecuteSpare = async (id: number) => {
await message.confirm("是否确认执行任务!") await message.confirm("是否确认执行任务!")
await PurchasereceiptJobMainApi.executePurchasereceiptJobMainSpare(id) await PurchasereceiptJobMainApi.executePurchasereceiptJobMainSpare(id)
message.success("执行成功") message.success("执行成功")
await getList() buttonBaseClick('refresh',null)
} catch {} } catch {}
} }
@ -217,7 +217,7 @@ const handleAbandon = async (id: number) => {
await message.confirm("是否确认取消承接!") await message.confirm("是否确认取消承接!")
await PurchasereceiptJobMainApi.abandonPurchasereceiptJobMainSpare(id) await PurchasereceiptJobMainApi.abandonPurchasereceiptJobMainSpare(id)
message.success("放弃成功") message.success("放弃成功")
await getList() buttonBaseClick('refresh',null)
} catch {} } catch {}
} }
@ -227,7 +227,7 @@ const handleClose = async (id: number) => {
await message.confirm(t('common.confirmColse')) await message.confirm(t('common.confirmColse'))
await PurchasereceiptJobMainApi.closePurchasereceiptJobMain(id) await PurchasereceiptJobMainApi.closePurchasereceiptJobMain(id)
message.success(t('common.closeSuccess')) message.success(t('common.closeSuccess'))
await getList() buttonBaseClick('refresh',null)
} catch {} } catch {}
} }
@ -237,7 +237,7 @@ const handleAccept = async (id: number) => {
await message.confirm("是否承接任务!") await message.confirm("是否承接任务!")
await PurchasereceiptJobMainApi.acceptPurchasereceiptJobMain(id) await PurchasereceiptJobMainApi.acceptPurchasereceiptJobMain(id)
message.success("承接成功") message.success("承接成功")
await getList() buttonBaseClick('refresh',null)
} catch {} } catch {}
} }
// //

Loading…
Cancel
Save