add 路线锁定
This commit is contained in:
@@ -74,6 +74,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
,{
|
||||||
|
"path" : "pages/manage/route-lock",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
// "pageOrientation": "landscape",
|
// "pageOrientation": "landscape",
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
// {title: '外协区空料架送回', icon: 'RF05', path: '/pages/manage/empty-material-racks-back'},
|
// {title: '外协区空料架送回', icon: 'RF05', path: '/pages/manage/empty-material-racks-back'},
|
||||||
// {title: '物料转运', icon: 'RF02', path: '/pages/manage/material-transfer'},
|
// {title: '物料转运', icon: 'RF02', path: '/pages/manage/material-transfer'},
|
||||||
{title: '区域锁定', icon: 'RF06', path: '/pages/manage/area-lock'},
|
{title: '区域锁定', icon: 'RF06', path: '/pages/manage/area-lock'},
|
||||||
|
{title: '路线锁定', icon: 'RF08', path: '/pages/manage/route-lock'},
|
||||||
{title: '补空框', icon: 'RF04', path: '/pages/manage/fill-tray'},
|
{title: '补空框', icon: 'RF04', path: '/pages/manage/fill-tray'},
|
||||||
{title: '修改订单工序', icon: 'RF07', path: '/pages/manage/modify-process'}
|
{title: '修改订单工序', icon: 'RF07', path: '/pages/manage/modify-process'}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<view class="zd_wrapper">
|
<view class="zd_wrapper">
|
||||||
<view class="zd-row">
|
<view class="zd-row">
|
||||||
<view class="zd-col-5">
|
<view class="zd-col-5">
|
||||||
<span class="filter_label">区域一</span>
|
<span class="filter_label">区域</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-19 filter_select">
|
<view class="zd-col-19 filter_select">
|
||||||
<zxz-uni-data-select
|
<zxz-uni-data-select
|
||||||
|
|||||||
101
pages/manage/route-lock.vue
Normal file
101
pages/manage/route-lock.vue
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
<template>
|
||||||
|
<view class="zd_container">
|
||||||
|
<nav-bar :title="title"></nav-bar>
|
||||||
|
<view class="zd_content">
|
||||||
|
<view class="zd_wrapper">
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-5">
|
||||||
|
<span class="filter_label">区域</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-19 filter_select">
|
||||||
|
<zxz-uni-data-select
|
||||||
|
v-model="index"
|
||||||
|
:localdata="options"
|
||||||
|
:multiple="true"
|
||||||
|
:collapseTags="true"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row">
|
||||||
|
<view class="zd-col-5">
|
||||||
|
<span class="filter_label">类型</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-19 filter_select">
|
||||||
|
<zxz-uni-data-select
|
||||||
|
v-model="index1"
|
||||||
|
:localdata="options1"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row submit-bar">
|
||||||
|
<button class="zd-col-5 button-default" @tap="clearUp">清空</button>
|
||||||
|
<button class="zd-col-8 button-primary" :class="{'button-info': index.length === 0 || !index1}" :disabled="disabled" @tap="_updateRouteStatus('1')">锁定</button>
|
||||||
|
<button class="zd-col-8 button-primary" :class="{'button-info': index.length === 0 || !index1}" :disabled="disabled" @tap="_updateRouteStatus('0')">释放</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
// import {regionList} from '@/utils/mork2.js'
|
||||||
|
import {regionList, updateRouteStatus} from '@/utils/getData2.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
title: '',
|
||||||
|
options: [],
|
||||||
|
index: [],
|
||||||
|
options1: [{value: '1', text: '外协到冲床一'}, {value: '2', text: '外协到冲床二'}, {value: '3', text: '外协到冲床三'}, {value: '4', text: '外协到激光'}],
|
||||||
|
index1: [],
|
||||||
|
multiple: true,
|
||||||
|
disabled: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad (options) {
|
||||||
|
this.title = options.title
|
||||||
|
this._regionList()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async _regionList () {
|
||||||
|
let res = await regionList()
|
||||||
|
this.options = [...res.content]
|
||||||
|
this.options.map(el => {
|
||||||
|
this.$set(el, 'text', el.label)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
async _updateRouteStatus (type) {
|
||||||
|
this.disabled = true
|
||||||
|
if (this.index.length === 0 || !this.index1) {
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await updateRouteStatus(this.index, this.index1, type)
|
||||||
|
this.clearUp()
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
clearUp () {
|
||||||
|
this.index = []
|
||||||
|
this.index1 = ''
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus">
|
||||||
|
@import '../../common/style/mixin.styl';
|
||||||
|
</style>
|
||||||
BIN
static/image/menu/RF08.png
Normal file
BIN
static/image/menu/RF08.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
@@ -73,3 +73,8 @@ export const updateOrder = (data) => request({
|
|||||||
url:'api/handheld/updateOrder',
|
url:'api/handheld/updateOrder',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
|
// 路线锁定
|
||||||
|
export const updateRouteStatus = (code, type, status) => request({
|
||||||
|
url:'api/handheld/updateRouteStatus',
|
||||||
|
data: {region_code: code, type: type, status: status}
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user