nlpower
This commit is contained in:
139
pages/modules/carry-task.vue
Normal file
139
pages/modules/carry-task.vue
Normal file
@@ -0,0 +1,139 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar title="搬运任务"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">起始区域</view>
|
||||
<view class="filter_input_wraper">
|
||||
<uni-data-select v-model="index3" :localdata="options3" @change="selectChange3"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">目标区域</view>
|
||||
<view class="filter_input_wraper">
|
||||
<uni-data-select v-model="index4" :localdata="options4" @change="selectChange4"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">起始点位</view>
|
||||
<view class="filter_input_wraper">
|
||||
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">目标点位</view>
|
||||
<view class="filter_input_wraper">
|
||||
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar_new">
|
||||
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
|
||||
<button class="zd-col-15 submit-button_new" :class="{'btn-disabled': !index1 || !index2}" :disabled="disabled" @tap="_taskCarry">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import {regionSearch, pointSearch, taskCarry} from '@/utils/getData1.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dataList: [],
|
||||
disabled: false,
|
||||
options1: [],
|
||||
index1: '',
|
||||
options2: [],
|
||||
index2: '',
|
||||
options3: [],
|
||||
index3: '',
|
||||
options4: [],
|
||||
index4: '',
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this._regionSearch3('')
|
||||
this._regionSearch4('')
|
||||
},
|
||||
methods: {
|
||||
selectChange1 (e) {
|
||||
this.index1 = e
|
||||
},
|
||||
selectChange2 (e) {
|
||||
this.index2 = e
|
||||
},
|
||||
selectChange3 (e) {
|
||||
this.index3 = e
|
||||
this._pointSearch1(e)
|
||||
},
|
||||
selectChange4 (e) {
|
||||
this.index4 = e
|
||||
this._pointSearch2(e)
|
||||
},
|
||||
async _regionSearch3 (a) {
|
||||
let res = await regionSearch(a)
|
||||
this.options3 = [...res]
|
||||
this.options3.map(el => {
|
||||
this.$set(el, 'value', el.region_code)
|
||||
this.$set(el, 'text', el.region_name)
|
||||
})
|
||||
},
|
||||
async _regionSearch4 (a) {
|
||||
let res = await regionSearch(a)
|
||||
this.options4 = [...res]
|
||||
this.options4.map(el => {
|
||||
this.$set(el, 'value', el.region_code)
|
||||
this.$set(el, 'text', el.region_name)
|
||||
})
|
||||
},
|
||||
/** 点位查询1 */
|
||||
async _pointSearch1 (a) {
|
||||
let res = await pointSearch(a)
|
||||
this.options1 = [...res]
|
||||
this.options1.map(el => {
|
||||
this.$set(el, 'value', el.point_code)
|
||||
this.$set(el, 'text', el.point_name)
|
||||
})
|
||||
},
|
||||
/** 点位查询2 */
|
||||
async _pointSearch2 (a) {
|
||||
let res = await pointSearch(a)
|
||||
this.options2 = [...res]
|
||||
this.options2.map(el => {
|
||||
this.$set(el, 'value', el.point_code)
|
||||
this.$set(el, 'text', el.point_name)
|
||||
})
|
||||
},
|
||||
toClear () {
|
||||
this.index1 = ''
|
||||
this.index2 = ''
|
||||
},
|
||||
async _taskCarry () {
|
||||
this.disabled = true
|
||||
if (!this.index1 || !this.index2) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await taskCarry(this.index1, this.index2)
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
</style>
|
||||
43
pages/modules/error-outstore.vue
Normal file
43
pages/modules/error-outstore.vue
Normal file
@@ -0,0 +1,43 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar title="废包材位异常出库"></nav-bar>
|
||||
<view class="zd-row submit-bar_new">
|
||||
<button class="zd-col-22 submit-button_new" :disabled="disabled" @tap="_ycck">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import {ycck} from '@/utils/getData1.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
created () {
|
||||
},
|
||||
methods: {
|
||||
async _ycck () {
|
||||
this.disabled = true
|
||||
try {
|
||||
let res = await ycck()
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
</style>
|
||||
140
pages/modules/man-paichan.vue
Normal file
140
pages/modules/man-paichan.vue
Normal file
@@ -0,0 +1,140 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar title="人工排产"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper grid-wraper">
|
||||
<view class="slide_new">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>工单号</th>
|
||||
<th>物料编码</th>
|
||||
<th>物料名称</th>
|
||||
<th>工单状态</th>
|
||||
<th>开工人</th>
|
||||
<th>创建者</th>
|
||||
<th>计划量</th>
|
||||
<th>实际量</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i" @tap="toCheck(e)" :class="{'checked': e.workorder_code === pkId}">
|
||||
<td class="fontcol1">{{e.workorder_code}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td><view class="fontbg" :class="'fontbg' + e.workorder_status">{{textState(e.workorder_status)}}</view></td>
|
||||
<td>{{e.operator}}</td>
|
||||
<td>{{e.create_name}}</td>
|
||||
<!-- <td><input class="td_input" type="number" v-model="e.plan_qty"></td> -->
|
||||
<td class="fontcol2">{{e.plan_qty}}</td>
|
||||
<td class="fontcol2">{{e.real_qty}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar_new">
|
||||
<button class="zd-col-11 submit-button_new" :class="{'btn-disabled': !pkId}" :disabled="disabled1" @tap="_productionScheduling">开工</button>
|
||||
<button class="zd-col-11 submit-button_new" :class="{'btn-disabled': !pkId}" :disabled="disabled2" @tap="_productionComplete">完工</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import {manualSortingOrders, productionScheduling, productionComplete} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dataList: [],
|
||||
disabled1: false,
|
||||
disabled2: false,
|
||||
pkId: ''
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this._manualSortingOrders()
|
||||
},
|
||||
methods: {
|
||||
textState (e) {
|
||||
switch (e) {
|
||||
case '1':
|
||||
return '未生产'
|
||||
break
|
||||
case '3':
|
||||
return '生产中'
|
||||
break
|
||||
case '4':
|
||||
return '暂停'
|
||||
break
|
||||
default:
|
||||
return ''
|
||||
break
|
||||
}
|
||||
},
|
||||
/** grid查询 */
|
||||
async _manualSortingOrders () {
|
||||
let res = await manualSortingOrders()
|
||||
this.dataList = [...res]
|
||||
},
|
||||
toCheck (e) {
|
||||
this.pkId = this.pkId === e.workorder_code ? '' : e.workorder_code
|
||||
},
|
||||
/** 开工 */
|
||||
async _productionScheduling () {
|
||||
this.disabled1 = true
|
||||
if (!this.pkId) {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let user = ''
|
||||
if (this.$store.getters.userInfo) {
|
||||
user = JSON.parse(this.$store.getters.userInfo).username
|
||||
}
|
||||
let res = await productionScheduling(this.pkId, user)
|
||||
this.disabled1 = false
|
||||
this.pkId = ''
|
||||
this._manualSortingOrders()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
/** 完工 */
|
||||
async _productionComplete () {
|
||||
this.disabled2 = true
|
||||
if (!this.pkId) {
|
||||
this.disabled2 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let user = ''
|
||||
if (this.$store.getters.userInfo) {
|
||||
user = JSON.parse(this.$store.getters.userInfo).username
|
||||
}
|
||||
let res = await productionComplete(this.pkId, user)
|
||||
this.disabled2 = false
|
||||
this.pkId = ''
|
||||
this._manualSortingOrders()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled2 = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
</style>
|
||||
113
pages/modules/mater-inventory.vue
Normal file
113
pages/modules/mater-inventory.vue
Normal file
@@ -0,0 +1,113 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar title="物料库存"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">物料</view>
|
||||
<view class="filter_input_wraper">
|
||||
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-wrapper">
|
||||
<view class="item-wrap" v-for="(e, i) in dataList" :key="i">
|
||||
<view class="zd-row jcflexstart mgb10">
|
||||
<view class="item-font-1 item-font-5">{{e.material_code}}</view>
|
||||
<view class="item-line-2"></view>
|
||||
<view class="item-font-1 item-font-6">{{e.material_name}}</view>
|
||||
</view>
|
||||
<view class="zd-row jcflexstart">
|
||||
<view class="item-font-1 item-font-6">点位:</view>
|
||||
<view class="item-font-1">{{e.point_code}}{{e.point_name}}</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-20 zd-row jcflexstart">
|
||||
<view class="item-font-4">设备:</view>
|
||||
<view class="item-font-4">{{e.vehicle_code}}</view>
|
||||
</view>
|
||||
<view class="zd-col-4 item-status" :class="'item-status-' + e.vehicle_type">{{textState(e.vehicle_type)}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar_new">
|
||||
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
|
||||
<button class="zd-col-15 submit-button_new" @tap="_getInventoryMaterialInfo">查询</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import {materialList, getInventoryMaterialInfo} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dataList: [],
|
||||
disabled: false,
|
||||
options1: [],
|
||||
index1: '',
|
||||
pkId: ''
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this._materialList()
|
||||
},
|
||||
methods: {
|
||||
textState (e) {
|
||||
switch (e) {
|
||||
case '1':
|
||||
return '普涂'
|
||||
break
|
||||
case '2':
|
||||
return '连涂'
|
||||
break
|
||||
default:
|
||||
return ''
|
||||
break
|
||||
}
|
||||
},
|
||||
selectChange1 (e) {
|
||||
this.index1 = e
|
||||
},
|
||||
/** 下拉框查询 */
|
||||
async _materialList () {
|
||||
let res = await materialList()
|
||||
this.options1 = [...res]
|
||||
},
|
||||
async _getInventoryMaterialInfo () {
|
||||
let res = await getInventoryMaterialInfo(this.index1)
|
||||
this.dataList = [...res]
|
||||
},
|
||||
toClear () {
|
||||
this.index1 = ''
|
||||
this.dataList = []
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
.item-font-5
|
||||
color #2b87ff
|
||||
font-weight bold
|
||||
.item-font-6
|
||||
color #000
|
||||
.item-font-4
|
||||
color #323232
|
||||
.item-status
|
||||
border-top-left-radius: 15rpx
|
||||
border-bottom-left-radius: 0
|
||||
border-top-right-radius: 0
|
||||
border-bottom-right-radius: 15rpx
|
||||
.item-status-1
|
||||
background-color: #f3ccb5;
|
||||
color: #ff5e00;
|
||||
.item-status-2
|
||||
background-color: #96f3b8;
|
||||
color: #36744c;
|
||||
</style>
|
||||
74
pages/modules/pallet-add-record.vue
Normal file
74
pages/modules/pallet-add-record.vue
Normal file
@@ -0,0 +1,74 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar title="托盘号补录"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">子托盘号</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">母托盘号</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box
|
||||
v-model="val2"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar_new">
|
||||
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
|
||||
<button class="zd-col-15 submit-button_new" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled" @tap="_handRecord">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import {handRecord} from '@/utils/getData02.js'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
val1: '',
|
||||
val2: '',
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
toClear () {
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
},
|
||||
async _handRecord () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await handRecord(this.val1, this.val2)
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
</style>
|
||||
107
pages/modules/rawmater-instore.vue
Normal file
107
pages/modules/rawmater-instore.vue
Normal file
@@ -0,0 +1,107 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar title="原材料入库"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">起始点位</view>
|
||||
<view class="filter_input_wraper">
|
||||
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">子托盘号</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box
|
||||
v-model="val2"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">母托盘号</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box
|
||||
v-model="val3"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">重量</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="number" class="filter_input" v-model="val4">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar_new">
|
||||
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
|
||||
<button class="zd-col-15 submit-button_new" :class="{'btn-disabled': !index1 || !val2 || !val3 || !val4}" :disabled="disabled" @tap="_yclrk">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import {pointSearch, yclrk} from '@/utils/getData1.js'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dataList: [],
|
||||
disabled: false,
|
||||
options1: [],
|
||||
index1: '',
|
||||
val2: '',
|
||||
val3: '',
|
||||
val4: ''
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this._pointSearch('SSX')
|
||||
},
|
||||
methods: {
|
||||
selectChange1 (e) {
|
||||
this.index1 = e
|
||||
},
|
||||
/** 点位查询 下拉框显示 */
|
||||
async _pointSearch (a) {
|
||||
let res = await pointSearch(a)
|
||||
this.options1 = [...res]
|
||||
this.options1.map(el => {
|
||||
this.$set(el, 'value', el.point_code)
|
||||
this.$set(el, 'text', el.point_name)
|
||||
})
|
||||
},
|
||||
toClear () {
|
||||
this.index1 = ''
|
||||
this.val2 = ''
|
||||
this.val3 = ''
|
||||
this.val4 = ''
|
||||
},
|
||||
async _yclrk () {
|
||||
this.disabled = true
|
||||
if (!this.index1 || !this.val2 || !this.val3 || !this.val4) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await yclrk(this.index1, this.val2, this.val3, this.val4)
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
</style>
|
||||
119
pages/modules/rawmater-outstore.vue
Normal file
119
pages/modules/rawmater-outstore.vue
Normal file
@@ -0,0 +1,119 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar title="原材料出库"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="filter_item">
|
||||
<view class="filter_label_wraper">
|
||||
<span class="filter_label">起始点位</span>
|
||||
</view>
|
||||
<view class="filter_input_wraper">
|
||||
<zxz-uni-data-select v-model="index1" filterable :localdata="options1" @inputChange="inputChange1" @change="selectChange1"></zxz-uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="filter_item">
|
||||
<view class="filter_label">起始点位</view>
|
||||
<view class="filter_input_wraper">
|
||||
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">回温模式</view>
|
||||
<view class="filter_input_wraper">
|
||||
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">回温时间</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="number" class="filter_input" v-model="val2">
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">工单号</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="number" class="filter_input" v-model="val3">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar_new">
|
||||
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
|
||||
<button class="zd-col-15 submit-button_new" :class="{'btn-disabled': !index1 || !index2 || !val2 || !val3}" :disabled="disabled" @tap="_yclck">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import {pointSearch, yclck} from '@/utils/getData1.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dataList: [],
|
||||
disabled: false,
|
||||
options1: [],
|
||||
index1: '',
|
||||
options2: [{value: '0',text: '普通'}, {value: '1',text: '快速'}],
|
||||
index2: '',
|
||||
val2: '',
|
||||
val3: ''
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this._pointSearch('YL')
|
||||
},
|
||||
methods: {
|
||||
inputChange1 (e) {
|
||||
// console.log(e)
|
||||
},
|
||||
selectChange1(e) {
|
||||
if (e) {
|
||||
this.index1 = e.point_code
|
||||
}
|
||||
},
|
||||
// selectChange1 (e) {
|
||||
// this.index1 = e
|
||||
// },
|
||||
selectChange2 (e) {
|
||||
this.index2 = e
|
||||
},
|
||||
/** 点位查询 下拉框显示 */
|
||||
async _pointSearch (a) {
|
||||
let res = await pointSearch(a)
|
||||
this.options1 = [...res]
|
||||
this.options1.map(el => {
|
||||
this.$set(el, 'value', el.point_code)
|
||||
this.$set(el, 'text', el.point_name)
|
||||
})
|
||||
},
|
||||
toClear () {
|
||||
this.index1 = ''
|
||||
this.val2 = ''
|
||||
},
|
||||
async _yclck () {
|
||||
this.disabled = true
|
||||
if (!this.index1 || !this.index2 || !this.val2 || !this.val3) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await yclck(this.index1, this.index2, this.val2, this.val3)
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
</style>
|
||||
152
pages/modules/taskmanage.vue
Normal file
152
pages/modules/taskmanage.vue
Normal file
@@ -0,0 +1,152 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar title="任务管理"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">关键字</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="text" class="filter_input" v-model="val1">
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">起始设备</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box
|
||||
v-model="val2"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">目标设备</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box
|
||||
v-model="val3"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd_wrapper grid-wraper">
|
||||
<view class="slide_new">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>任务号</th>
|
||||
<th>起点</th>
|
||||
<th>终点</th>
|
||||
<th>状态</th>
|
||||
<th>优先级</th>
|
||||
<th>时间</th>
|
||||
<th>载具号</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i">
|
||||
<!-- <tr v-for="(e, i) in dataList" :key="i" @click="toCheck(e)" :class="{'checked': e.task_uuid === pkId}"> -->
|
||||
<td>{{e.task_no}}</td>
|
||||
<td>{{e.start_devicecode}}</td>
|
||||
<td>{{e.next_devicecode}}</td>
|
||||
<td>{{e.task_status_name}}</td>
|
||||
<td>{{e.priority}}</td>
|
||||
<td>{{e.create_time}}</td>
|
||||
<td>{{e.carrier}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<!-- <button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="toSure1('1')">重新生成</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="toSure2('2')">强制完成</button> -->
|
||||
<button class="submit-button" :disabled="disabled" @tap="_handTasks">查询</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {handTasks, handTaskoperation} from '@/utils/getData02.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
val1: '',
|
||||
val2: '',
|
||||
val3: '',
|
||||
data: [],
|
||||
dataList: [],
|
||||
disabled: false,
|
||||
pkId: ''
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this._handTasks()
|
||||
},
|
||||
methods: {
|
||||
async _handTasks () {
|
||||
this.show = false
|
||||
try {
|
||||
let res = await handTasks(this.val1, this.val2, this.val3)
|
||||
this.data = [...res.data]
|
||||
this.dataList = [...this.data]
|
||||
|
||||
} catch (e) {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
async _handTaskoperation (type) {
|
||||
this.disabled = true
|
||||
if (!this.pkId) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await handTaskoperation(type, this.pkId)
|
||||
this.disabled = false
|
||||
this.pkId = ''
|
||||
this._handTasks()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
},
|
||||
toCheck (e) {
|
||||
this.pkId = this.pkId === e.task_uuid ? '' : e.task_uuid
|
||||
},
|
||||
toSure1 (type) {
|
||||
this.disabled1 = true
|
||||
if (!this.pkId) {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
this._handTaskoperation(type)
|
||||
},
|
||||
toSure2 (type) {
|
||||
this.disabled2 = true
|
||||
if (!this.pkId) {
|
||||
this.disabled2 = false
|
||||
return
|
||||
}
|
||||
this._handTaskoperation(type)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
// .submit-bar
|
||||
// justify-content: space-around;
|
||||
// .submit-button
|
||||
// margin: 0 0px 10px 0;
|
||||
</style>
|
||||
119
pages/modules/wire-board.vue
Normal file
119
pages/modules/wire-board.vue
Normal file
@@ -0,0 +1,119 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar title="涂线板"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">点位编码</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="text" class="filter_input" v-model="val1">
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">物料数量</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="number" class="filter_input" v-model="val2">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-wrapper">
|
||||
<view class="item-wrap" v-for="(e, i) in dataList" :key="i">
|
||||
<view class="zd-row mgb10">
|
||||
<view class="zd-col-4 item-font-1">点位1:</view>
|
||||
<view class="zd-col-9 item-font-2">{{e.point_name1}}</view>
|
||||
<view class="zd-col-1 item-line-1"></view>
|
||||
<view class="zd-col-9 item-font-3">{{e.point_name2}}</view>
|
||||
</view>
|
||||
<view class="zd-row mgb10">
|
||||
<view class="zd-col-4 item-font-1">点位2:</view>
|
||||
<view class="zd-col-9 item-font-2">{{e.point_name3}}</view>
|
||||
<view class="zd-col-1 item-line-1"></view>
|
||||
<view class="zd-col-9 item-font-3">{{e.point_name4}}</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-3 item-font-1">备注:</view>
|
||||
<view class="zd-col-17 item-font-4">{{e.remark}}</view>
|
||||
<view class="zd-col-4 item-status" :class="'item-status-' + e.task_status">{{textState(e.task_status)}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar_new">
|
||||
<button class="zd-col-5 submit-button_c" @tap="toClear">清空</button>
|
||||
<button class="zd-col-5 submit-button_c" @tap="_coatedWireIntoStorageTaskShow">刷新</button>
|
||||
<button class="zd-col-13 submit-button_new" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled" @tap="_coatedWireIntoStorageTask">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import {coatedWireIntoStorageTaskShow, coatedWireIntoStorageTask} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dataList: [],
|
||||
disabled: false,
|
||||
val1: '',
|
||||
val2: ''
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this._coatedWireIntoStorageTaskShow()
|
||||
},
|
||||
methods: {
|
||||
textState (e) {
|
||||
switch (e) {
|
||||
case '1':
|
||||
return '创建'
|
||||
break
|
||||
case '2':
|
||||
return '创建完成'
|
||||
break
|
||||
case '3':
|
||||
return '下发'
|
||||
break
|
||||
case '4':
|
||||
return '执行中'
|
||||
break
|
||||
default:
|
||||
return ''
|
||||
break
|
||||
}
|
||||
},
|
||||
/** grid查询 */
|
||||
async _coatedWireIntoStorageTaskShow () {
|
||||
let res = await coatedWireIntoStorageTaskShow()
|
||||
this.dataList = [...res]
|
||||
},
|
||||
toClear () {
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
},
|
||||
async _coatedWireIntoStorageTask () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await coatedWireIntoStorageTask(this.val1, this.val2)
|
||||
this.disabled = false
|
||||
this._coatedWireIntoStorageTaskShow()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
</style>
|
||||
167
pages/modules/zlmanage.vue
Normal file
167
pages/modules/zlmanage.vue
Normal file
@@ -0,0 +1,167 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar title="指令管理"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">关键字</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="text" class="filter_input" v-model="val1">
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">起始设备</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box
|
||||
v-model="val2"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">目标设备</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box
|
||||
v-model="val3"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd_wrapper grid-wraper">
|
||||
<view class="slide_new">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>任务号</th>
|
||||
<th>指令号</th>
|
||||
<th>起点</th>
|
||||
<th>终点</th>
|
||||
<th>状态</th>
|
||||
<th>执行步骤</th>
|
||||
<th>载具号</th>
|
||||
<th>优先级</th>
|
||||
<th>时间</th>
|
||||
<th>agv车号</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i">
|
||||
<!-- <tr v-for="(e, i) in dataList" :key="i" @click="toCheck(e)" :class="{'checked': e.inst_uuid === pkId}"> -->
|
||||
<td>{{e.task_no}}</td>
|
||||
<td>{{e.instruction_code}}</td>
|
||||
<td>{{e.start_devicecode}}</td>
|
||||
<td>{{e.next_devicecode}}</td>
|
||||
<td>{{e.inst_status_name}}</td>
|
||||
<td>{{e.inst_step}}</td>
|
||||
<td>{{e.carrier}}</td>
|
||||
<td>{{e.priority}}</td>
|
||||
<td>{{e.create_time}}</td>
|
||||
<td>{{e.carno}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<!-- <button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="toSure1('1')">指令撤销</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="toSure2('2')">重新下发</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="toSure3('3')">强制完成</button> -->
|
||||
<button class="submit-button" :disabled="disabled" @tap="_handInsts">查询</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {handInsts, handInst} from '@/utils/getData02.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
val1: '',
|
||||
val2: '',
|
||||
val3: '',
|
||||
data: [],
|
||||
dataList: [],
|
||||
disabled: false,
|
||||
pkId: ''
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this._handInsts(this.val1, this.val2, this.val3)
|
||||
},
|
||||
methods: {
|
||||
async _handInsts () {
|
||||
this.show = false
|
||||
try {
|
||||
let res = await handInsts(this.val1, this.val2, this.val3)
|
||||
this.data = [...res.data]
|
||||
this.dataList = [...this.data]
|
||||
|
||||
} catch (e) {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
async _handInst (type) {
|
||||
this.disabled = true
|
||||
if (!this.pkId) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await handInst(type, this.pkId)
|
||||
this.disabled = false
|
||||
this.pkId = ''
|
||||
this._handInsts()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
},
|
||||
toCheck (e) {
|
||||
this.pkId = this.pkId === e.inst_uuid ? '' : e.inst_uuid
|
||||
},
|
||||
toSure1 (type) {
|
||||
this.disabled = true
|
||||
if (!this.pkId) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
this._handInst(type)
|
||||
},
|
||||
toSure2 (type) {
|
||||
this.disabled = true
|
||||
if (!this.pkId) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
this._handInst(type)
|
||||
},
|
||||
toSure3 (type) {
|
||||
this.disabled = true
|
||||
if (!this.pkId) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
this._handInst(type)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
// .submit-bar
|
||||
// justify-content: space-around;
|
||||
// .submit-button
|
||||
// margin: 0 0px 10px 0;
|
||||
</style>
|
||||
95
pages/modules/zupan-unbind.vue
Normal file
95
pages/modules/zupan-unbind.vue
Normal file
@@ -0,0 +1,95 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar title="组盘解绑"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">子托盘号</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">母托盘号</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box
|
||||
v-model="val2"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar_new">
|
||||
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
|
||||
<button class="zd-col-15 submit-button_new" :class="{'btn-disabled': !(val1 || val2)}" :disabled="disabled" @tap="_zpjb">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {zpjb} from '@/utils/getData1.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dataList: [],
|
||||
disabled: false,
|
||||
val1: '',
|
||||
val2: '',
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
textState (e) {
|
||||
switch (e) {
|
||||
case '1':
|
||||
return '创建'
|
||||
break
|
||||
case '2':
|
||||
return '创建完成'
|
||||
break
|
||||
case '3':
|
||||
return '下发'
|
||||
break
|
||||
case '4':
|
||||
return '执行中'
|
||||
break
|
||||
default:
|
||||
return ''
|
||||
break
|
||||
}
|
||||
},
|
||||
toClear () {
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
},
|
||||
async _zpjb () {
|
||||
this.disabled = true
|
||||
if (!(this.val1 || this.val2)) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await zpjb(this.val1, this.val2)
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.toClear()
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
</style>
|
||||
Reference in New Issue
Block a user