解警
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2 || !val3 || !val4}" :disabled="disabled" @tap="_ovenInAndOut1('1')">入箱</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled" @tap="_ovenInAndOut2('2')">出箱</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled3" @tap="_inCoolIvt">入冷却</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !val1}" :disabled="disabled4" @tap="_bakingrelease">解警</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -44,7 +45,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {ovenInAndOut, inCoolIvt} from '@/utils/getData1.js'
|
||||
import {ovenInAndOut, inCoolIvt, bakingrelease} from '@/utils/getData1.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -57,7 +58,8 @@
|
||||
val3: '',
|
||||
val4: '',
|
||||
disabled: false,
|
||||
disabled3: false
|
||||
disabled3: false,
|
||||
disabled4: false
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -114,6 +116,23 @@
|
||||
} catch (e) {
|
||||
this.disabled3 = false
|
||||
}
|
||||
},
|
||||
async _bakingrelease () {
|
||||
this.disabled4 = true
|
||||
if (!this.val1) {
|
||||
this.disabled4 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await bakingrelease(this.val1)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled4 = false
|
||||
} catch (e) {
|
||||
this.disabled4 = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,6 +86,14 @@ export const inCoolIvt = (pcode, cname) => request({
|
||||
}
|
||||
})
|
||||
|
||||
// 1.3解警
|
||||
export const bakingrelease = (pcode) => request({
|
||||
url: 'api/pda/baking/release',
|
||||
data: {
|
||||
point_code: pcode
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 人工烘烤
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user