diff --git a/pages/manage/waste-foil-move.vue b/pages/manage/waste-foil-move.vue index d8e7a31..73ff67b 100644 --- a/pages/manage/waste-foil-move.vue +++ b/pages/manage/waste-foil-move.vue @@ -16,10 +16,11 @@ - - - - + + + + + @@ -28,7 +29,7 @@ import NavBar from '@/components/NavBar.vue' import SearchBox from '@/components/SearchBox.vue' import LinkScan from '@/components/LinkScan.vue' - import {startMoveWasteFoilv2, resumeMoveWasteFoilv2} from '@/utils/getData2.js' + import {startMoveWasteFoilv2, resumeMoveWasteFoilv2, resumeAutoMoveWasteFoil} from '@/utils/getData2.js' export default { components: { NavBar, @@ -115,6 +116,22 @@ clearUp () { this.val1 = '' this.disabled = false + }, + async _resumeAutoMoveWasteFoil () { + this.disabled = true + if (!this.val1) { + this.disabled = false + return + } + try { + let res = await resumeAutoMoveWasteFoil(this.val1) + uni.showToast({ + title: res.message, + icon: 'none' + }) + } catch (e) { + this.disabled = false + } } } } diff --git a/utils/getData2.js b/utils/getData2.js index 4a2d94e..cbd79b8 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -57,6 +57,10 @@ export const resumeMoveWasteFoilv2 = (flag, code) => request({ url:'api/pda/other/resumeMoveWasteFoil/v2', data: {flag: flag, point_code: code} }) +export const resumeAutoMoveWasteFoil = (code) => request({ + url:'api/pda/other/resumeAutoMoveWasteFoil', + data: {point_code: code} +}) // 管芯入库 export const gxgetGxSpecification = () => request({ url:'api/pda/gx/getGxSpecification',