入窑管理

This commit is contained in:
2023-06-02 14:56:33 +08:00
parent 91615f9500
commit 81fcf4583b
3 changed files with 73 additions and 0 deletions

View File

@@ -24,6 +24,7 @@
<li @click="goInner('/sendempty')">送空</li>
<li @click="goInner('/callempty')">叫空</li>
<li @click="goInner('/KunliaoManage')">困料管理</li>
<li @click="goInner('/RuyaoManage')">入窑管理</li>
<li @click="goInner('/VehicleBind')">载具绑定</li>
<li @click="goInner('/VehicleUnbind')">载具解绑</li>
</ul>

View 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="_inKiln('1')">可入窑</button>
<button class="btn submit-button" :class="{'btn-disabled' : val1 === ''}" :disabled="disabled1" @click="_inKiln('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 {inKiln} from '@config/getData2'
export default {
name: 'RuyaoManage',
components: {
NavBar,
SearchBox
},
data () {
return {
disabled1: false,
val1: ''
}
},
created () {
},
methods: {
/** 确认 */
async _inKiln (type) {
this.disabled1 = true
if (this.val1 === '') {
this.disabled1 = false
return
}
try {
let res = await inKiln(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>

View File

@@ -13,6 +13,7 @@ const CallMater = r => require.ensure([], () => r(require('../pages/proj/CallMat
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 RuyaoManage = r => require.ensure([], () => r(require('../pages/proj/RuyaoManage')), 'RuyaoManage')
const VehicleBind = r => require.ensure([], () => r(require('../pages/proj/VehicleBind')), 'VehicleBind')
const VehicleUnbind = r => require.ensure([], () => r(require('../pages/proj/VehicleUnbind')), 'VehicleUnbind')
@@ -75,6 +76,10 @@ export default new Router({
path: '/KunliaoManage', // 困料管理
component: KunliaoManage
},
{
path: '/RuyaoManage', // 入窑管理
component: RuyaoManage
},
{
path: '/VehicleBind', // 载具绑定
component: VehicleBind