困料管理
This commit is contained in:
@@ -126,6 +126,12 @@ export const callEmpty = (code) => post('api/pda/callEmpty', {
|
||||
point_code: code
|
||||
})
|
||||
|
||||
// 困料管理
|
||||
export const standStatus = (vcode, type) => post('api/pda/standStatus', {
|
||||
vehicle_code: vcode,
|
||||
type: type
|
||||
})
|
||||
|
||||
// 载具绑定
|
||||
export const vehicleBind = (code, vtype, vcode) => post('api/pda/vehicleBind', {
|
||||
point_code: code,
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
<li @click="goInner('/callmater')">叫料</li>
|
||||
<li @click="goInner('/sendempty')">送空</li>
|
||||
<li @click="goInner('/callempty')">叫空</li>
|
||||
<li @click="goInner('/KunliaoManage')">困料管理</li>
|
||||
<li @click="goInner('/VehicleBind')">载具绑定</li>
|
||||
<li @click="goInner('/VehicleUnbind')">载具解绑</li>
|
||||
</ul>
|
||||
|
||||
67
src/pages/proj/KunliaoManage.vue
Normal file
67
src/pages/proj/KunliaoManage.vue
Normal file
@@ -0,0 +1,67 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="困料管理"></nav-bar>
|
||||
<section class="content mgt186">
|
||||
<div class="filter-wraper">
|
||||
<search-box
|
||||
label="载具"
|
||||
v-model="val1"
|
||||
:seaShow="false"
|
||||
></search-box>
|
||||
</div>
|
||||
</section>
|
||||
<section class="submit-bar">
|
||||
<button class="btn submit-button" :class="{'btn-disabled' : val1 === ''}" :disabled="disabled1" @click="_standStatus('1')">强制完成</button>
|
||||
<button class="btn submit-button" :class="{'btn-disabled' : val1 === ''}" :disabled="disabled1" @click="_standStatus('2')">强制超时</button>
|
||||
<button class="btn submit-button" @click="toCancle">取消</button>
|
||||
</section>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@components/NavBar.vue'
|
||||
import SearchBox from '@components/SearchBox.vue'
|
||||
import {standStatus} from '@config/getData2'
|
||||
export default {
|
||||
name: 'KunliaoManage',
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
disabled1: false,
|
||||
val1: ''
|
||||
}
|
||||
},
|
||||
created () {
|
||||
},
|
||||
methods: {
|
||||
/** 确认 */
|
||||
async _standStatus (type) {
|
||||
this.disabled1 = true
|
||||
if (this.val1 === '') {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await standStatus(this.val1, type)
|
||||
if (res.code === '1') {
|
||||
this.toast(res.desc)
|
||||
this.toCancle()
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
this.disabled1 = false
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
/** 取消 */
|
||||
toCancle () {
|
||||
this.disabled1 = false
|
||||
this.val1 = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -12,6 +12,7 @@ const SendMater = r => require.ensure([], () => r(require('../pages/proj/SendMat
|
||||
const CallMater = r => require.ensure([], () => r(require('../pages/proj/CallMater')), 'CallMater')
|
||||
const SendEmpty = r => require.ensure([], () => r(require('../pages/proj/SendEmpty')), 'SendEmpty')
|
||||
const CallEmpty = r => require.ensure([], () => r(require('../pages/proj/CallEmpty')), 'CallEmpty')
|
||||
const KunliaoManage = r => require.ensure([], () => r(require('../pages/proj/KunliaoManage')), 'KunliaoManage')
|
||||
const VehicleBind = r => require.ensure([], () => r(require('../pages/proj/VehicleBind')), 'VehicleBind')
|
||||
const VehicleUnbind = r => require.ensure([], () => r(require('../pages/proj/VehicleUnbind')), 'VehicleUnbind')
|
||||
|
||||
@@ -70,6 +71,10 @@ export default new Router({
|
||||
path: '/callempty', // 叫空
|
||||
component: CallEmpty
|
||||
},
|
||||
{
|
||||
path: '/KunliaoManage', // 困料管理
|
||||
component: KunliaoManage
|
||||
},
|
||||
{
|
||||
path: '/VehicleBind', // 载具绑定
|
||||
component: VehicleBind
|
||||
|
||||
Reference in New Issue
Block a user