wrc修改
This commit is contained in:
@@ -38,7 +38,8 @@
|
|||||||
<button class="zd-col-7 button-primary" :disabled="disabled" @tap="_callCar">呼叫无人车</button>
|
<button class="zd-col-7 button-primary" :disabled="disabled" @tap="_callCar">呼叫无人车</button>
|
||||||
<button class="zd-col-6 button-primary" :class="{'button-info': dataList.length}" @tap="toXzwl">选择物料</button>
|
<button class="zd-col-6 button-primary" :class="{'button-info': dataList.length}" @tap="toXzwl">选择物料</button>
|
||||||
<button class="zd-col-4 button-primary" :class="{'button-info': !dataList.length}" @tap="toZh">装货</button>
|
<button class="zd-col-4 button-primary" :class="{'button-info': !dataList.length}" @tap="toZh">装货</button>
|
||||||
<button class="zd-col-6 button-primary" :class="{'button-info': !dataList.length}" :disabled="disabled" @tap="_installConfirm">装货完成</button>
|
<!-- <button class="zd-col-6 button-primary" :class="{'button-info': !dataList.length}" :disabled="disabled" @tap="_installConfirm">装货完成</button> -->
|
||||||
|
<button class="zd-col-6 button-primary" :disabled="disabled" @tap="_cleanTask">清除任务</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -46,7 +47,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import {callCar, install, installConfirm} from '@/utils/getData3.js'
|
import {callCar, install, installConfirm, cleanTask} from '@/utils/getData3.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -133,6 +134,22 @@
|
|||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
async _cleanTask () {
|
||||||
|
this.disabled = true
|
||||||
|
try {
|
||||||
|
let res = await cleanTask()
|
||||||
|
if (res) {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.toEmpty()
|
||||||
|
this.disabled = false
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
async _installConfirm () {
|
async _installConfirm () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -138,8 +138,8 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async _authority () {
|
async _authority () {
|
||||||
// let res = await authority()
|
let res = await authority()
|
||||||
let res = await allAuthority()
|
// let res = await allAuthority()
|
||||||
if (res.code === '1') {
|
if (res.code === '1') {
|
||||||
this.menuList = [...res.result.rf_menu1.sonTree]
|
this.menuList = [...res.result.rf_menu1.sonTree]
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user