点位取放货确认

This commit is contained in:
2022-06-29 16:17:41 +08:00
parent 6714c8c8e5
commit d38ac8a1c2
5 changed files with 39 additions and 41 deletions

View File

@@ -49,7 +49,7 @@ export const handTask2 = (code, mtype, type, batch) => post('api/aja/hand/task2'
batch: batch batch: batch
}) })
// 1.5点位放货确认 // 1.5点位放货确认
export const handpointPut = (code, type) => post('api/aja/hand/pointPut', { export const handpointPut = (code, type) => post('api/aja/hand/pointPut', {
device_code: code, device_code: code,
status_type: type status_type: type

View File

@@ -18,7 +18,7 @@
<!-- <li @click="toPage('taskgenerate')">任务生成</li> --> <!-- <li @click="toPage('taskgenerate')">任务生成</li> -->
<li @click="toPage('painttask')">任务生成</li> <li @click="toPage('painttask')">任务生成</li>
<li @click="toPage('sitemanage')">站点管理</li> <li @click="toPage('sitemanage')">站点管理</li>
<li @click="toPage('PointRelease')">点位放货确认</li> <li @click="toPage('PointRelease')">点位放货确认</li>
<li @click="toPage('taskmanage')">任务管理</li> <li @click="toPage('taskmanage')">任务管理</li>
<li @click="toPage('zlmanage')">指令管理</li> <li @click="toPage('zlmanage')">指令管理</li>
</ul> </ul>

View File

@@ -1,6 +1,6 @@
<template> <template>
<section> <section>
<nav-bar title="点位放货确认"></nav-bar> <nav-bar title="点位放货确认"></nav-bar>
<section class="content mgt15"> <section class="content mgt15">
<div class="clear icons"> <div class="clear icons">
<div class="fl item_icon"> <div class="fl item_icon">
@@ -39,7 +39,7 @@
</div> </div>
</div> </div>
</section> </section>
<div v-if="obj.status === ('0' || '1' || '2' || '3')" class="msg_wrapper"> <div v-if="obj.status === '0' || obj.status === '1' || obj.status === '2' || obj.status === '3'" class="msg_wrapper">
<div class="msg_box"> <div class="msg_box">
<div class="msg_item"> <div class="msg_item">
<div class="label_item">当前设备</div> <div class="label_item">当前设备</div>
@@ -110,12 +110,14 @@ export default {
obj: {}, obj: {},
batch: '', batch: '',
disabled1: false, disabled1: false,
disabled2: false disabled2: false,
disabled: false
} }
}, },
mounted () { mounted () {
document.body.removeAttribute('class', 'login-bg') document.body.removeAttribute('class', 'login-bg')
this.initArea() this.initArea()
this.initHandMatrial()
}, },
beforeDestroy () { beforeDestroy () {
clearInterval(this.timer) clearInterval(this.timer)
@@ -226,47 +228,43 @@ export default {
if (res.code === '1') { if (res.code === '1') {
this.toast(res.desc) this.toast(res.desc)
clearInterval(this.timer) clearInterval(this.timer)
var that = this
setTimeout(() => { setTimeout(() => {
that.initPonit(this.regobj) this.initPonit(this.regobj)
this.refresh(this.regobj) this.refresh(this.regobj)
this.value = '' }, 200)
this.batch = ''
this.disabled1 = false
this.disabled2 = false
}, 2000)
} else { } else {
this.Dialog(res.desc) this.Dialog(res.desc)
this.value = ''
this.batch = ''
this.disabled1 = false
this.disabled2 = false
} }
this.msgCancle()
this.disabled1 = false
this.disabled2 = false
} catch (err) { } catch (err) {
console.log(err) this.msgCancle()
this.value = ''
this.batch = ''
this.disabled1 = false this.disabled1 = false
this.disabled2 = false this.disabled2 = false
} }
}, },
cancle () { cancle () {
this.active = false this.active = false
this.obj = {}
this.value = ''
this.batch = ''
}, },
async toSure () { async toSure () {
this.disabled = true this.disabled = true
try { try {
let res = await handpointPut(this.obj.device_code, '1') let res = await handpointPut(this.obj.device_code, '2')
if (res.code === '1') { if (res.code === '1') {
clearInterval(this.timer)
this.toast(res.desc) this.toast(res.desc)
this.initPonit(this.reg) clearInterval(this.timer)
this.refresh(this.reg) setTimeout(() => {
this.obj = {} this.initPonit(this.regobj)
this.refresh(this.regobj)
}, 200)
} else { } else {
this.Dialog(res.desc) this.Dialog(res.desc)
} }
this.active = false this.cancle()
this.disabled = false this.disabled = false
} catch (e) { } catch (e) {
this.active = false this.active = false
@@ -280,17 +278,17 @@ export default {
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~@style/mixin' @import '~@style/mixin'
.icons .icons
height 24px height .24rem
margin-bottom .12rem margin-bottom .12rem
.item_icon .item_icon
_fj() _fj()
margin-right .1rem margin-right .1rem
.color_icon .color_icon
_wh(15px,15px) _wh(.2rem,.2rem)
border-radius 50% border-radius 50%
margin-right .1rem margin-right .1rem
.font_icon .font_icon
_font(16px, 24px, #000) _font(.28rem, .24rem, #000)
.locate_block .locate_block
width 100% width 100%
background-color #fff background-color #fff
@@ -299,15 +297,15 @@ export default {
margin-bottom .12rem margin-bottom .12rem
.locate_name .locate_name
position relative position relative
_wh(100%,24px) _wh(100%,.48rem)
h2 h2
_font(16px,24px,#000,500) _font(.32rem,.48rem,#000,500)
.site_block .site_block
_wh(100%,auto) _wh(100%,auto)
overflow hidden overflow hidden
transition height .3s transition height .3s
.site_item .site_item
_wh(32%,50px) _wh(32%,1rem)
padding 0 .1rem padding 0 .1rem
margin-top .12rem margin-top .12rem
background-color #e5e5e5 background-color #e5e5e5
@@ -317,17 +315,17 @@ export default {
&:nth-child(3n) &:nth-child(3n)
margin-right 0 margin-right 0
.site_item_box .site_item_box
_wh(100%, 40px) _wh(100%, .8rem)
margin 5px 0 margin 0.1rem 0
overflow hidden overflow hidden
h3 h3
display block display block
width 18px width .36rem
_font(14px,20px,#000,500) _font(.28rem,.4rem,#000,500)
p p
display block display block
width calc(100% - 18px) width calc(100% - .36rem)
_font(14px,20px,#999) _font(.28rem,.4rem,#999)
background-color #fff background-color #fff
border-radius 3px border-radius 3px
padding 0 .05rem padding 0 .05rem
@@ -335,8 +333,8 @@ export default {
position absolute position absolute
right 0 right 0
top 0 top 0
_wh(24px,24px) _wh(.48rem,.48rem)
_font(20px,24px,$red,,right) _font(.4rem,.48rem,$red,,right)
transition all .3s transition all .3s
transform rotateZ(180deg) transform rotateZ(180deg)
.is_reverse .is_reverse

View File

@@ -1,6 +1,6 @@
<template> <template>
<section> <section>
<nav-bar title="点位放货确认"></nav-bar> <nav-bar title="点位放货确认"></nav-bar>
<section class="content mgt15"> <section class="content mgt15">
<div class="clear icons"> <div class="clear icons">
<div class="fl item_icon"> <div class="fl item_icon">

View File

@@ -65,7 +65,7 @@ export default new Router({
component: siteManage component: siteManage
}, },
{ {
path: '/pointrelease', // 点位放货确认 path: '/pointrelease', // 点位放货确认
component: PointRelease component: PointRelease
}, },
{ {