Browse Source

增加loading关闭

master
zhaoxuebing 9 months ago
parent
commit
be06a9e772
  1. 4
      src/views/wms/productionManage/offlinesettlement/offlinesettlementRequestMain/index.vue
  2. 4
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
  3. 4
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  4. 4
      src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue
  5. 4
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
  6. 26
      src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
  7. 24
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue
  8. 31
      src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue
  9. 5
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  10. 27
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  11. 28
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue
  12. 4
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
  13. 20
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
  14. 32
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  15. 4
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierPackage/index.vue
  16. 28
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
  17. 28
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

4
src/views/wms/productionManage/offlinesettlement/offlinesettlementRequestMain/index.vue

@ -259,7 +259,9 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
//
await getList()
} catch {}
} catch {}finally{
tableObject.loading = false
}
}
/** 导出按钮操作 */

4
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue

@ -493,7 +493,9 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
//
await getList()
} catch {}
} catch {}finally{
tableObject.loading = false
}
}
/** 导出按钮操作 */

4
src/views/wms/productionManage/productionplan/productionMain/index.vue

@ -372,7 +372,9 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
//
await getList()
} catch {}
} catch {}finally{
tableObject.loading = false
}
}
/** 导出按钮操作 */

4
src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue

@ -312,7 +312,9 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
//
await getList()
} catch {}
} catch {}finally{
tableObject.loading = false
}
}
/** 导出按钮操作 */

4
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

@ -484,7 +484,9 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
//
await getList()
} catch {}
} catch {}finally{
tableObject.loading = false
}
}
/** 导出按钮操作 */

26
src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue

@ -387,62 +387,86 @@ const buttonTableClick = async (val, row) => {
/** 关闭按钮操作 */
const handleClose = async (id: number) => {
try{
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await ProductrepairRequestMainApi.closeProductrepairRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
}catch{}finally{
tableObject.loading = false
}
}
/** 重新添加按钮操作 */
const handleReAdd = async (id: number) => {
try{
await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await ProductrepairRequestMainApi.reAddProductrepairRequestMain(id)
message.success(t('common.reAddSuccess'))
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 ProductrepairRequestMainApi.submitProductrepairRequestMain(id)
message.success(t('common.submitSuccess'))
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 ProductrepairRequestMainApi.refusedProductrepairRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
}catch{}finally{
tableObject.loading = false
}
}
/** 审批通过按钮操作 */
const handleAgree = async (id: number) => {
const handleAgree = async (id: number) => {.
try{
await message.confirm(t('common.confirmAgree'))
tableObject.loading = true
await ProductrepairRequestMainApi.agreeProductrepairRequestMain(id)
message.success(t('common.agreeSuccess'))
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 ProductrepairRequestMainApi.handleProductrepairRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
}catch{}finally{
tableObject.loading = false
}
}
/** 添加/修改操作 */

24
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -396,62 +396,86 @@ const buttonTableClick = async (val, row) => {
/** 关闭按钮操作 */
const handleClose = async (id: number) => {
try{
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await ProductscrapRequestMainApi.closeProductscrapRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
}catch{}finally{
tableObject.loading = false
}
}
/** 重新添加按钮操作 */
const handleReAdd = async (id: number) => {
try{
await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await ProductscrapRequestMainApi.reAddProductscrapRequestMain(id)
message.success(t('common.reAddSuccess'))
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 ProductscrapRequestMainApi.submitProductscrapRequestMain(id)
message.success(t('common.submitSuccess'))
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 ProductscrapRequestMainApi.refusedProductscrapRequestMain(id)
message.success(t('common.refusedSuccess'))
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 ProductscrapRequestMainApi.agreeProductscrapRequestMain(id)
message.success(t('common.agreeSuccess'))
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 ProductscrapRequestMainApi.handleProductscrapRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
}catch{}finally{
tableObject.loading = false
}
}
/** 添加/修改操作 */

31
src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue

@ -199,62 +199,81 @@
/** 关闭按钮操作 */
const handleClose = async (id : number) => {
try{
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await InspectRequestMainApi.closeInspectRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
}catch{}finally{
tableObject.loading = false
}
}
/** 重新添加按钮操作 */
const handleReAdd = async (id : number) => {
try{
await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await InspectRequestMainApi.reAddInspectRequestMain(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 InspectRequestMainApi.agreeInspectRequestMain(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 InspectRequestMainApi.refusedInspectRequestMain(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 InspectRequestMainApi.handleInspectRequestMain(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 InspectRequestMainApi.submitInspectRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
}catch{}finally{
tableObject.loading = false
}
}
/** 添加/修改操作 */

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

@ -235,12 +235,15 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
/** 关闭按钮操作 */
const handleClose = async (id: number) => {
try{
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await PurchasereceiptRequestMainApi.closePurchasereceiptRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
}catch{}finally{
tableObject.loading = false
}
}
/** 重新添加按钮操作 */

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

@ -460,9 +460,10 @@ const handleClose = async (id: number) => {
tableObject.loading = true
await PurchasereturnRequestMainApi.closePurchasereturnRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
} catch {}
} catch {}finally{
tableObject.loading = false
}
}
/** 重新添加按钮操作 */
@ -472,9 +473,10 @@ const handleReAdd = async (id: number) => {
tableObject.loading = true
await PurchasereturnRequestMainApi.reAddPurchasereturnRequestMain(id)
message.success(t('common.reAddSuccess'))
tableObject.loading = false
await getList()
} catch {}
} catch {}finally{
tableObject.loading = false
}
}
/** 审批通过按钮操作 */
@ -484,9 +486,10 @@ const handleAgree = async (id: number) => {
tableObject.loading = true
await PurchasereturnRequestMainApi.agreePurchasereturnRequestMain(id)
message.success(t('common.agreeSuccess'))
tableObject.loading = false
await getList()
} catch {}
} catch {}finally{
tableObject.loading = false
}
}
/** 审批驳回按钮操作 */
@ -496,9 +499,10 @@ const handleRefused = async (id: number) => {
tableObject.loading = true
await PurchasereturnRequestMainApi.refusedPurchasereturnRequestMain(id)
message.success(t('common.refusedSuccess'))
tableObject.loading = false
await getList()
} catch {}
} catch {}finally{
tableObject.loading = false
}
}
/** 处理按钮操作 */
@ -508,9 +512,10 @@ const handleHandle = async (id: number) => {
tableObject.loading = true
await PurchasereturnRequestMainApi.handlePurchasereturnRequestMain(id)
message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList()
} catch {}
} catch {}finally{
tableObject.loading = false
}
}
/** 提交按钮操作 */
@ -520,8 +525,8 @@ const handleSubmit = async (id: number) => {
tableObject.loading = true
await PurchasereturnRequestMainApi.submitPurchasereturnRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
tableObject.loading = false
} catch {}
}

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

@ -232,62 +232,84 @@ const openForm =async (type: string, row?: number) => {
/** 关闭按钮操作 */
const handleClose = async (id: number) => {
try{
await message.confirm(t('common.confirmColse'))
tableObject.loading = true
await PutawayRequestMainApi.closePutawayRequestMain(id)
message.success(t('common.closeSuccess'))
tableObject.loading = false
await getList()
}catch{}finally{
tableObject.loading = false
}
}
/** 重新添加按钮操作 */
const handleReAdd = async (id: number) => {
try{
await message.confirm(t('common.confirmReAdd'))
tableObject.loading = true
await PutawayRequestMainApi.reAddPutawayRequestMain(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 PutawayRequestMainApi.agreePutawayRequestMain(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 PutawayRequestMainApi.refusedPutawayRequestMain(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 PutawayRequestMainApi.handlePutawayRequestMain(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 PutawayRequestMainApi.submitPutawayRequestMain(id)
message.success(t('common.submitSuccess'))
tableObject.loading = false
await getList()
}catch{}finally{
tableObject.loading = false
}
}
//

4
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

@ -246,7 +246,9 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
//
await getList()
} catch {}
} catch {}finally{
tableObject.loading = false
}
}
/** 导出按钮操作 */

20
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue

@ -293,7 +293,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch {}finally{
tableObject.loading = false
}
}
/** 关闭按钮操作 */
@ -308,7 +310,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 打开按钮操作 */
@ -323,7 +327,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 发布按钮操作 */
@ -338,7 +344,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 下架按钮操作 */
@ -353,7 +361,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 导出按钮操作 */

32
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -261,7 +261,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 关闭按钮操作 */
@ -275,7 +277,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 打开按钮操作 */
@ -290,7 +294,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
@ -306,7 +312,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 发布按钮操作 */
@ -321,7 +329,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 下架按钮操作 */
@ -336,7 +346,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 接受按钮操作 */
@ -351,7 +363,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 驳回按钮操作 */
@ -366,7 +380,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 导出按钮操作 */

4
src/views/wms/purchasereceiptManage/supplierdeliver/supplierPackage/index.vue

@ -216,7 +216,9 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
//
await getList()
} catch {}
} catch {}finally{
tableObject.loading = false
}
}
/** 导出按钮操作 */

28
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue

@ -281,7 +281,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
@ -297,7 +299,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 打开按钮操作 */
@ -312,7 +316,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 提交审批按钮操作 */
@ -327,7 +333,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 审批通过按钮操作 */
@ -342,7 +350,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 驳回按钮操作 */
@ -357,7 +367,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 处理按钮操作 */
@ -372,7 +384,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 导出按钮操作 */

28
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -238,7 +238,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 关闭按钮操作 */
@ -253,7 +255,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 打开按钮操作 */
@ -268,7 +272,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 提交审批按钮操作 */
@ -283,7 +289,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 审批通过按钮操作 */
@ -298,7 +306,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 驳回按钮操作 */
@ -313,7 +323,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 处理按钮操作 */
@ -328,7 +340,9 @@
tableObject.loading = false
//
await getList()
} catch { }
} catch { }finally{
tableObject.loading = false
}
}
/** 导出按钮操作 */

Loading…
Cancel
Save