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. 18
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  5. 18
      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') { //
console.log('列表-操作按钮事件-放弃')
await PurchasereceiptJobMainApi.abandonPurchasereceiptJobMainSpare(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
handleClose(row.masterId)
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
console.log('列表-操作按钮事件-承接')
await PurchasereceiptJobMainApi.acceptPurchasereceiptJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if(val == 'mainPlanCheckQualityReport'){
//
checkQualityReport(row)
@ -277,7 +278,7 @@ const handleClose = async (id: number) => {
await message.confirm(t('common.confirmColse'))
await PurchasereceiptJobMainApi.closePurchasereceiptJobMain(id)
message.success(t('common.closeSuccess'))
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
const resonSubmit = async (row)=>{
@ -308,7 +309,7 @@ const handleRefusal = async (id: number,refuseReason:string) => {
try {
await PurchasereceiptJobMainApi.refusalPurchasereceiptJobMain({id,refuseReason})
message.success(t('common.refusalSuccess'))
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

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

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

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

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

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

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

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

@ -607,7 +607,7 @@ const handleClose = async (id: number) => {
tableObject.loading = true
await PurchasereceiptRequestMainApi.closePurchasereceiptRequestMain(id)
message.success(t('common.closeSuccess'))
await getList()
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}
@ -620,7 +620,7 @@ const handleReAdd = async (id: number) => {
tableObject.loading = true
await PurchasereceiptRequestMainApi.reAddPurchasereceiptRequestMain(id)
message.success(t('common.reAddSuccess'))
await getList()
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}
@ -634,7 +634,7 @@ const handleAgree = async (id: number) => {
await PurchasereceiptRequestMainApi.agreePurchasereceiptRequestMain(id)
message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}
@ -648,7 +648,7 @@ const handleRefused = async (id: number) => {
await PurchasereceiptRequestMainApi.refusedPurchasereceiptRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}
@ -662,7 +662,7 @@ const handleHandle = async (id: number) => {
await PurchasereceiptRequestMainApi.handlePurchasereceiptRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}
@ -676,7 +676,7 @@ const handleSubmit = async (id: number) => {
await PurchasereceiptRequestMainApi.submitPurchasereceiptRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}
@ -747,7 +747,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
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 PurchasereceiptJobMainApi.executePurchasereceiptJobMainSpare(id)
message.success("执行成功")
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -217,7 +217,7 @@ const handleAbandon = async (id: number) => {
await message.confirm("是否确认取消承接!")
await PurchasereceiptJobMainApi.abandonPurchasereceiptJobMainSpare(id)
message.success("放弃成功")
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -227,7 +227,7 @@ const handleClose = async (id: number) => {
await message.confirm(t('common.confirmColse'))
await PurchasereceiptJobMainApi.closePurchasereceiptJobMain(id)
message.success(t('common.closeSuccess'))
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -237,7 +237,7 @@ const handleAccept = async (id: number) => {
await message.confirm("是否承接任务!")
await PurchasereceiptJobMainApi.acceptPurchasereceiptJobMain(id)
message.success("承接成功")
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
//

Loading…
Cancel
Save