Browse Source

刷新

linshi20240813
wangyufei 3 months ago
parent
commit
77b1a3c348
  1. 20
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue
  2. 6
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue
  3. 16
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  4. 16
      src/views/wms/purchasereceiptManage/purchasereturnspare/purchasereturnRequestSpareMain/index.vue
  5. 6
      src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue
  6. 18
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

20
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -301,7 +301,7 @@ const buttonTableClick = async (val, row) => {
PreparetoissueMainApi.open(row.masterId).then(() => { PreparetoissueMainApi.open(row.masterId).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false tableObject.loading = false
getList() buttonBaseClick('refresh',null)
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
@ -312,7 +312,7 @@ const buttonTableClick = async (val, row) => {
PreparetoissueMainApi.close(row.masterId).then(() => { PreparetoissueMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false tableObject.loading = false
getList() buttonBaseClick('refresh',null)
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
@ -324,7 +324,7 @@ const buttonTableClick = async (val, row) => {
PreparetoissueMainApi.submit(row.masterId).then(() => { PreparetoissueMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false tableObject.loading = false
getList() buttonBaseClick('refresh',null)
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
@ -335,7 +335,7 @@ const buttonTableClick = async (val, row) => {
PreparetoissueMainApi.reject(row.masterId).then(() => { PreparetoissueMainApi.reject(row.masterId).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false tableObject.loading = false
getList() buttonBaseClick('refresh',null)
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
@ -347,7 +347,7 @@ const buttonTableClick = async (val, row) => {
PreparetoissueMainApi.agree(row.masterId).then(() => { PreparetoissueMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false tableObject.loading = false
getList() buttonBaseClick('refresh',null)
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
@ -358,7 +358,7 @@ const buttonTableClick = async (val, row) => {
PreparetoissueMainApi.publish(row.masterId).then(() => { PreparetoissueMainApi.publish(row.masterId).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false tableObject.loading = false
getList() buttonBaseClick('refresh',null)
PreparetoissueMainApi.generateIssueRequest(row.number) PreparetoissueMainApi.generateIssueRequest(row.number)
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
@ -370,7 +370,7 @@ const buttonTableClick = async (val, row) => {
PreparetoissueMainApi.resetting(row.masterId).then(() => { PreparetoissueMainApi.resetting(row.masterId).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
tableObject.loading = false tableObject.loading = false
getList() buttonBaseClick('refresh',null)
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
@ -382,7 +382,7 @@ const buttonTableClick = async (val, row) => {
await PreparetoissueMainApi.generateIssueRequest(row.number).then(() => { await PreparetoissueMainApi.generateIssueRequest(row.number).then(() => {
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
tableObject.loading = false tableObject.loading = false
getList() buttonBaseClick('refresh',null)
}).catch(err => { }).catch(err => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
@ -445,7 +445,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false tableObject.loading = false
// //
await getList() buttonBaseClick('refresh',null)
} catch {} } catch {}
} }
@ -514,7 +514,7 @@ const submitForm = async (formType, submitData) => {
} else { } else {
await PreparetoissueMainApi.updatePreparetoissueMain(data) await PreparetoissueMainApi.updatePreparetoissueMain(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
getList() buttonBaseClick('refresh',null)
} }
formRef.value.dialogVisible = false formRef.value.dialogVisible = false
// //

6
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue

@ -200,13 +200,13 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainJobAba') { // } else if (val == 'mainJobAba') { //
console.log('列表-操作按钮事件-放弃') console.log('列表-操作按钮事件-放弃')
await PurchasereturnJobMainApi.abandonPurchasereturnJobMain(row.masterId) await PurchasereturnJobMainApi.abandonPurchasereturnJobMain(row.masterId)
getList() buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { // } else if (val == 'mainJobClo') { //
handleClose(row.masterId) handleClose(row.masterId)
} else if (val == 'mainJobAcc') { // } else if (val == 'mainJobAcc') { //
console.log('列表-操作按钮事件-承接') console.log('列表-操作按钮事件-承接')
await PurchasereturnJobMainApi.acceptPurchasereturnJobMain(row.masterId) await PurchasereturnJobMainApi.acceptPurchasereturnJobMain(row.masterId)
getList() buttonBaseClick('refresh',null)
} }
} }
@ -216,7 +216,7 @@ const handleClose = async (id: number) => {
await message.confirm(t('common.confirmColse')) await message.confirm(t('common.confirmColse'))
await PurchasereturnJobMainApi.closePurchasereturnJobMain(id) await PurchasereturnJobMainApi.closePurchasereturnJobMain(id)
message.success(t('common.closeSuccess')) message.success(t('common.closeSuccess'))
await getList() buttonBaseClick('refresh',null)
} catch {} } catch {}
} }
// //

16
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -669,7 +669,7 @@ const handleClose = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PurchasereturnRequestMainApi.closePurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.closePurchasereturnRequestMain(id)
message.success(t('common.closeSuccess')) message.success(t('common.closeSuccess'))
await getList() buttonBaseClick('refresh',null)
} catch { } catch {
} finally { } finally {
tableObject.loading = false tableObject.loading = false
@ -683,7 +683,7 @@ const handleReAdd = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PurchasereturnRequestMainApi.reAddPurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.reAddPurchasereturnRequestMain(id)
message.success(t('common.reAddSuccess')) message.success(t('common.reAddSuccess'))
await getList() buttonBaseClick('refresh',null)
} catch { } catch {
} finally { } finally {
tableObject.loading = false tableObject.loading = false
@ -697,7 +697,7 @@ const handleAgree = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PurchasereturnRequestMainApi.agreePurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.agreePurchasereturnRequestMain(id)
message.success(t('common.agreeSuccess')) message.success(t('common.agreeSuccess'))
await getList() buttonBaseClick('refresh',null)
} catch { } catch {
} finally { } finally {
tableObject.loading = false tableObject.loading = false
@ -711,7 +711,7 @@ const handleRefused = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PurchasereturnRequestMainApi.refusedPurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.refusedPurchasereturnRequestMain(id)
message.success(t('common.refusedSuccess')) message.success(t('common.refusedSuccess'))
await getList() buttonBaseClick('refresh',null)
} catch { } catch {
} finally { } finally {
tableObject.loading = false tableObject.loading = false
@ -725,7 +725,7 @@ const handleHandle = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PurchasereturnRequestMainApi.handlePurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.handlePurchasereturnRequestMain(id)
message.success(t('common.handleSuccess')) message.success(t('common.handleSuccess'))
await getList() buttonBaseClick('refresh',null)
} catch { } catch {
} finally { } finally {
tableObject.loading = false tableObject.loading = false
@ -739,7 +739,7 @@ const handleSubmit = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PurchasereturnRequestMainApi.submitPurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.submitPurchasereturnRequestMain(id)
message.success(t('common.submitSuccess')) message.success(t('common.submitSuccess'))
await getList() buttonBaseClick('refresh',null)
tableObject.loading = false tableObject.loading = false
} catch { } catch {
} finally { } finally {
@ -951,7 +951,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/purchasereturnspare/purchasereturnRequestSpareMain/index.vue

@ -619,7 +619,7 @@ const handleClose = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PurchasereturnRequestMainApi.closePurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.closePurchasereturnRequestMain(id)
message.success(t('common.closeSuccess')) message.success(t('common.closeSuccess'))
await getList() buttonBaseClick('refresh',null)
} catch { } catch {
} finally { } finally {
tableObject.loading = false tableObject.loading = false
@ -633,7 +633,7 @@ const handleReAdd = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PurchasereturnRequestMainApi.reAddPurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.reAddPurchasereturnRequestMain(id)
message.success(t('common.reAddSuccess')) message.success(t('common.reAddSuccess'))
await getList() buttonBaseClick('refresh',null)
} catch { } catch {
} finally { } finally {
tableObject.loading = false tableObject.loading = false
@ -647,7 +647,7 @@ const handleAgree = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PurchasereturnRequestMainApi.agreePurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.agreePurchasereturnRequestMain(id)
message.success(t('common.agreeSuccess')) message.success(t('common.agreeSuccess'))
await getList() buttonBaseClick('refresh',null)
} catch { } catch {
} finally { } finally {
tableObject.loading = false tableObject.loading = false
@ -661,7 +661,7 @@ const handleRefused = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PurchasereturnRequestMainApi.refusedPurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.refusedPurchasereturnRequestMain(id)
message.success(t('common.refusedSuccess')) message.success(t('common.refusedSuccess'))
await getList() buttonBaseClick('refresh',null)
} catch { } catch {
} finally { } finally {
tableObject.loading = false tableObject.loading = false
@ -675,7 +675,7 @@ const handleHandle = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PurchasereturnRequestMainApi.handlePurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.handlePurchasereturnRequestMain(id)
message.success(t('common.handleSuccess')) message.success(t('common.handleSuccess'))
await getList() buttonBaseClick('refresh',null)
} catch { } catch {
} finally { } finally {
tableObject.loading = false tableObject.loading = false
@ -689,7 +689,7 @@ const handleSubmit = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PurchasereturnRequestMainApi.submitPurchasereturnRequestMain(id) await PurchasereturnRequestMainApi.submitPurchasereturnRequestMain(id)
message.success(t('common.submitSuccess')) message.success(t('common.submitSuccess'))
await getList() buttonBaseClick('refresh',null)
tableObject.loading = false tableObject.loading = false
} catch { } catch {
} finally { } finally {
@ -901,7 +901,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
} }

6
src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue

@ -270,14 +270,14 @@ const buttonTableClick = async (val, row) => {
console.log('列表-操作按钮事件-执行') console.log('列表-操作按钮事件-执行')
} else if (val == 'mainJobAba') { // } else if (val == 'mainJobAba') { //
await PutawayJobMainApi.abandonPutawayJobMain(row.masterId) await PutawayJobMainApi.abandonPutawayJobMain(row.masterId)
await getList() buttonBaseClick('refresh',null)
console.log('列表-操作按钮事件-放弃') console.log('列表-操作按钮事件-放弃')
} else if (val == 'mainJobClo') { // } else if (val == 'mainJobClo') { //
handleClose(row.masterId) handleClose(row.masterId)
} else if (val == 'mainJobAcc') { // } else if (val == 'mainJobAcc') { //
console.log('列表-操作按钮事件-承接') console.log('列表-操作按钮事件-承接')
await PutawayJobMainApi.acceptPutawayJobMain(row.masterId) await PutawayJobMainApi.acceptPutawayJobMain(row.masterId)
await getList() buttonBaseClick('refresh',null)
} else if (val == 'documentPrint') { } else if (val == 'documentPrint') {
// //
handleDocumentPrint(row) handleDocumentPrint(row)
@ -335,7 +335,7 @@ const handleClose = async (id: number) => {
await message.confirm(t('common.confirmColse')) await message.confirm(t('common.confirmColse'))
await PutawayJobMainApi.closePutawayJobMain(id) await PutawayJobMainApi.closePutawayJobMain(id)
message.success(t('common.closeSuccess')) message.success(t('common.closeSuccess'))
await getList() buttonBaseClick('refresh',null)
} catch {} } catch {}
} }

18
src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

@ -266,7 +266,7 @@ const handleClose = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PutawayRequestMainApi.closePutawayRequestMain(id) await PutawayRequestMainApi.closePutawayRequestMain(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
} }
@ -279,7 +279,7 @@ const handleReAdd = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PutawayRequestMainApi.reAddPutawayRequestMain(id) await PutawayRequestMainApi.reAddPutawayRequestMain(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
} }
@ -292,7 +292,7 @@ const handleAgree = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await PutawayRequestMainApi.agreePutawayRequestMain(id) await PutawayRequestMainApi.agreePutawayRequestMain(id)
message.success(t('common.agreeSuccess')) message.success(t('common.agreeSuccess'))
await getList() buttonBaseClick('refresh',null)
}catch{}finally{ }catch{}finally{
tableObject.loading = false tableObject.loading = false
} }
@ -307,7 +307,7 @@ const handleRefused = async (id: number) => {
await PutawayRequestMainApi.refusedPutawayRequestMain(id) await PutawayRequestMainApi.refusedPutawayRequestMain(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
} }
@ -321,7 +321,7 @@ const handleHandle = async (id: number) => {
await PutawayRequestMainApi.handlePutawayRequestMain(id) await PutawayRequestMainApi.handlePutawayRequestMain(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
} }
@ -335,7 +335,7 @@ const handleSubmit = async (id: number) => {
await PutawayRequestMainApi.submitPutawayRequestMain(id) await PutawayRequestMainApi.submitPutawayRequestMain(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
} }
@ -393,7 +393,7 @@ const handleDelete = async (id: number) => {
await PutawayRequestMainApi.deletePutawayRequestMain(id) await PutawayRequestMainApi.deletePutawayRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
// //
await getList() buttonBaseClick('refresh',null)
} catch {} } catch {}
} }
@ -456,7 +456,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
} }

Loading…
Cancel
Save