Browse Source

去除showloading 警告

wms3.0_pda
lijuncheng 11 months ago
parent
commit
e5701c0032
  1. 10
      pages/issue/request/issueRequest.vue
  2. 10
      pages/productPutaway/request/putawayRequest.vue
  3. 10
      pages/productionReturn/coms/comReturnCommonRequest.vue
  4. 10
      pages/purchaseReturn/request/returnRequest.vue
  5. 10
      pages/scrap/request/scrapRrequest.vue
  6. 12
      pages/unPlanned/request/issueRequest.vue
  7. 11
      pages/unPlanned/request/receiptRequest.vue

10
pages/issue/request/issueRequest.vue

@ -293,10 +293,10 @@
issueRequestSubmitApprove(id) { issueRequestSubmitApprove(id) {
issueRequestSubmitApprove(id).then(res => { issueRequestSubmitApprove(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请提交审批成功" title: "申请提交审批成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请提交审批失败") this.showMessage("申请提交审批失败")
} }
@ -310,10 +310,10 @@
issueRequestClose(id) { issueRequestClose(id) {
issueRequestClose(id).then(res => { issueRequestClose(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请关闭成功" title: "申请关闭成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请关闭失败") this.showMessage("申请关闭失败")
} }
@ -326,10 +326,10 @@
issueRequestSubmitApproveAgree(id) { issueRequestSubmitApproveAgree(id) {
issueRequestSubmitApproveAgree(id).then(res => { issueRequestSubmitApproveAgree(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请审批通过成功" title: "申请审批通过成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请审批通过失败") this.showMessage("申请审批通过失败")
} }
@ -342,10 +342,10 @@
issueRequestSubmitApproveRefused(id) { issueRequestSubmitApproveRefused(id) {
issueRequestSubmitApproveRefused(id).then(res => { issueRequestSubmitApproveRefused(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请审批驳回成功" title: "申请审批驳回成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请审批驳回失败") this.showMessage("申请审批驳回失败")
} }
@ -358,10 +358,10 @@
issueRequestHandle(id) { issueRequestHandle(id) {
issueRequestHandle(id).then(res => { issueRequestHandle(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请处理成功" title: "申请处理成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请处理失败") this.showMessage("申请处理失败")
} }

10
pages/productPutaway/request/putawayRequest.vue

@ -297,10 +297,10 @@
productPutawayRequestApprove(id) { productPutawayRequestApprove(id) {
productPutawayRequestApprove(id).then(res => { productPutawayRequestApprove(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请提交审批成功" title: "申请提交审批成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请提交审批失败") this.showMessage("申请提交审批失败")
} }
@ -314,10 +314,10 @@
productPutawayRequestClose(id) { productPutawayRequestClose(id) {
productPutawayRequestClose(id).then(res => { productPutawayRequestClose(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请关闭成功" title: "申请关闭成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请关闭失败") this.showMessage("申请关闭失败")
} }
@ -329,10 +329,10 @@
productPutawayRequestApproveAgree(id) { productPutawayRequestApproveAgree(id) {
productPutawayRequestApproveAgree(id).then(res => { productPutawayRequestApproveAgree(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请审批通过成功" title: "申请审批通过成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请审批通过失败") this.showMessage("申请审批通过失败")
} }
@ -344,10 +344,10 @@
productPutawayRequestApproveRefused(id) { productPutawayRequestApproveRefused(id) {
productPutawayRequestApproveRefused(id).then(res => { productPutawayRequestApproveRefused(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请审批驳回成功" title: "申请审批驳回成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请审批驳回失败") this.showMessage("申请审批驳回失败")
} }
@ -359,10 +359,10 @@
productPutawayRequestHandle(id) { productPutawayRequestHandle(id) {
productPutawayRequestHandle(id).then(res => { productPutawayRequestHandle(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请处理成功" title: "申请处理成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请处理失败") this.showMessage("申请处理失败")
} }

10
pages/productionReturn/coms/comReturnCommonRequest.vue

@ -326,10 +326,10 @@
productionReturnRequestSubmitApprove(id) { productionReturnRequestSubmitApprove(id) {
productionReturnRequestSubmitApprove(id).then(res => { productionReturnRequestSubmitApprove(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请提交审批成功" title: "申请提交审批成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请提交审批失败") this.showMessage("申请提交审批失败")
} }
@ -342,10 +342,10 @@
productionReturnRequestClose(id) { productionReturnRequestClose(id) {
productionReturnRequestClose(id).then(res => { productionReturnRequestClose(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请关闭成功" title: "申请关闭成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请关闭失败") this.showMessage("申请关闭失败")
} }
@ -357,10 +357,10 @@
productionReturnRequestSubmitApproveAgree(id) { productionReturnRequestSubmitApproveAgree(id) {
productionReturnRequestSubmitApproveAgree(id).then(res => { productionReturnRequestSubmitApproveAgree(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请审批通过成功" title: "申请审批通过成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请审批通过失败") this.showMessage("申请审批通过失败")
} }
@ -372,10 +372,10 @@
productionReturnRequestSubmitApproveRefused(id) { productionReturnRequestSubmitApproveRefused(id) {
productionReturnRequestSubmitApproveRefused(id).then(res => { productionReturnRequestSubmitApproveRefused(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请审批驳回成功" title: "申请审批驳回成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请审批驳回失败") this.showMessage("申请审批驳回失败")
} }
@ -387,10 +387,10 @@
productionReturnRequestHandle(id) { productionReturnRequestHandle(id) {
productionReturnRequestHandle(id).then(res => { productionReturnRequestHandle(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请处理成功" title: "申请处理成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请处理失败") this.showMessage("申请处理失败")
} }

10
pages/purchaseReturn/request/returnRequest.vue

@ -293,10 +293,10 @@
purchaseReturnRequestApprove(id) { purchaseReturnRequestApprove(id) {
purchaseReturnRequestApprove(id).then(res => { purchaseReturnRequestApprove(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请提交审批成功" title: "申请提交审批成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请提交审批失败") this.showMessage("申请提交审批失败")
} }
@ -310,10 +310,10 @@
purchaseReturnRequestClose(id) { purchaseReturnRequestClose(id) {
purchaseReturnRequestClose(id).then(res => { purchaseReturnRequestClose(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请关闭成功" title: "申请关闭成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请关闭失败") this.showMessage("申请关闭失败")
} }
@ -325,10 +325,10 @@
purchaseReturnRequestApproveAgree(id) { purchaseReturnRequestApproveAgree(id) {
purchaseReturnRequestApproveAgree(id).then(res => { purchaseReturnRequestApproveAgree(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请审批通过成功" title: "申请审批通过成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请审批通过失败") this.showMessage("申请审批通过失败")
} }
@ -340,10 +340,10 @@
purchaseReturnRequestApproveRefused(id) { purchaseReturnRequestApproveRefused(id) {
purchaseReturnRequestApproveRefused(id).then(res => { purchaseReturnRequestApproveRefused(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请审批驳回成功" title: "申请审批驳回成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请审批驳回失败") this.showMessage("申请审批驳回失败")
} }
@ -355,10 +355,10 @@
purchaseReturnRequestHandle(id) { purchaseReturnRequestHandle(id) {
purchaseReturnRequestHandle(id).then(res => { purchaseReturnRequestHandle(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请处理成功" title: "申请处理成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请处理失败") this.showMessage("申请处理失败")
} }

10
pages/scrap/request/scrapRrequest.vue

@ -287,10 +287,10 @@
scrapRequestApprove(id) { scrapRequestApprove(id) {
scrapRequestApprove(id).then(res => { scrapRequestApprove(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请提交审批成功" title: "申请提交审批成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请提交审批失败") this.showMessage("申请提交审批失败")
} }
@ -304,10 +304,10 @@
scrapRequestClose(id) { scrapRequestClose(id) {
scrapRequestClose(id).then(res => { scrapRequestClose(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请关闭成功" title: "申请关闭成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请关闭失败") this.showMessage("申请关闭失败")
} }
@ -319,10 +319,10 @@
scrapRequestApproveAgree(id) { scrapRequestApproveAgree(id) {
scrapRequestApproveAgree(id).then(res => { scrapRequestApproveAgree(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请审批通过成功" title: "申请审批通过成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请审批通过失败") this.showMessage("申请审批通过失败")
} }
@ -334,10 +334,10 @@
scrapRequestApproveRefused(id) { scrapRequestApproveRefused(id) {
scrapRequestApproveRefused(id).then(res => { scrapRequestApproveRefused(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请审批驳回成功" title: "申请审批驳回成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请审批驳回失败") this.showMessage("申请审批驳回失败")
} }
@ -349,10 +349,10 @@
scrapRequestHandle(id) { scrapRequestHandle(id) {
scrapRequestHandle(id).then(res => { scrapRequestHandle(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请处理成功" title: "申请处理成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请处理失败") this.showMessage("申请处理失败")
} }

12
pages/unPlanned/request/issueRequest.vue

@ -295,10 +295,10 @@
unPlannedIssueRequestApprove(id) { unPlannedIssueRequestApprove(id) {
unPlannedIssueRequestApprove(id).then(res => { unPlannedIssueRequestApprove(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请提交审批成功" title: "申请提交审批成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请提交审批失败") this.showMessage("申请提交审批失败")
} }
@ -312,10 +312,11 @@
unPlannedIssueRequestClose(id) { unPlannedIssueRequestClose(id) {
unPlannedIssueRequestClose(id).then(res => { unPlannedIssueRequestClose(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请关闭成功" title: "申请关闭成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请关闭失败") this.showMessage("申请关闭失败")
} }
@ -327,10 +328,11 @@
unPlannedIssueRequestApproveAgree(id) { unPlannedIssueRequestApproveAgree(id) {
unPlannedIssueRequestApproveAgree(id).then(res => { unPlannedIssueRequestApproveAgree(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请审批通过成功" title: "申请审批通过成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请审批通过失败") this.showMessage("申请审批通过失败")
} }
@ -342,10 +344,10 @@
unPlannedIssueRequestApproveRefused(id) { unPlannedIssueRequestApproveRefused(id) {
unPlannedIssueRequestApproveRefused(id).then(res => { unPlannedIssueRequestApproveRefused(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请审批驳回成功" title: "申请审批驳回成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请审批驳回失败") this.showMessage("申请审批驳回失败")
} }
@ -357,10 +359,10 @@
unPlannedIssueRequestHandle(id) { unPlannedIssueRequestHandle(id) {
unPlannedIssueRequestHandle(id).then(res => { unPlannedIssueRequestHandle(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请处理成功" title: "申请处理成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请处理失败") this.showMessage("申请处理失败")
} }

11
pages/unPlanned/request/receiptRequest.vue

@ -293,10 +293,10 @@
unPlannedReceiptRequestApprove(id) { unPlannedReceiptRequestApprove(id) {
unPlannedReceiptRequestApprove(id).then(res => { unPlannedReceiptRequestApprove(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请提交审批成功" title: "申请提交审批成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请提交审批失败") this.showMessage("申请提交审批失败")
} }
@ -310,10 +310,10 @@
unPlannedReceiptRequestClose(id) { unPlannedReceiptRequestClose(id) {
unPlannedReceiptRequestClose(id).then(res => { unPlannedReceiptRequestClose(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请关闭成功" title: "申请关闭成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请关闭失败") this.showMessage("申请关闭失败")
} }
@ -325,10 +325,11 @@
unPlannedReceiptRequestApproveAgree(id) { unPlannedReceiptRequestApproveAgree(id) {
unPlannedReceiptRequestApproveAgree(id).then(res => { unPlannedReceiptRequestApproveAgree(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请审批通过成功" title: "申请审批通过成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请审批通过失败") this.showMessage("申请审批通过失败")
} }
@ -340,10 +341,10 @@
unPlannedReceiptRequestApproveRefused(id) { unPlannedReceiptRequestApproveRefused(id) {
unPlannedReceiptRequestApproveRefused(id).then(res => { unPlannedReceiptRequestApproveRefused(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请审批驳回成功" title: "申请审批驳回成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请审批驳回失败") this.showMessage("申请审批驳回失败")
} }
@ -355,10 +356,10 @@
unPlannedReceiptRequestHandle(id) { unPlannedReceiptRequestHandle(id) {
unPlannedReceiptRequestHandle(id).then(res => { unPlannedReceiptRequestHandle(id).then(res => {
if (res.data) { if (res.data) {
this.getList("refresh")
uni.showToast({ uni.showToast({
title: "申请处理成功" title: "申请处理成功"
}) })
this.getList("refresh")
} else { } else {
this.showMessage("申请处理失败") this.showMessage("申请处理失败")
} }

Loading…
Cancel
Save