出库确认
This commit is contained in:
58
pages.json
58
pages.json
@@ -25,63 +25,7 @@
|
||||
}
|
||||
}
|
||||
,{
|
||||
"path" : "pages/manage/smck",
|
||||
"style" :
|
||||
{
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/manage/hnby",
|
||||
"style" :
|
||||
{
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/manage/task-manage",
|
||||
"style" :
|
||||
{
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/manage/inst-manage",
|
||||
"style" :
|
||||
{
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/manage/yzmlby",
|
||||
"style" :
|
||||
{
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/manage/bcpjb",
|
||||
"style" :
|
||||
{
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/manage/hnlgbd",
|
||||
"style" :
|
||||
{
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/manage/hnlgcx",
|
||||
"path" : "pages/manage/ckqr",
|
||||
"style" :
|
||||
{
|
||||
"navigationStyle": "custom"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<view class="userInfo-wrap">
|
||||
<view class="userInfo">
|
||||
<text v-if="userName !== ''" class="p1">{{userName}}</text>
|
||||
<text class="p2">欢迎进入华祥手持系统!</text>
|
||||
<text class="p2">欢迎进入宁波富佳手持系统!</text>
|
||||
</view>
|
||||
<view class="exit" @tap="Quit">
|
||||
<view class="icon-exit"></view>
|
||||
@@ -32,14 +32,7 @@
|
||||
return {
|
||||
userName: '',
|
||||
menuList: [
|
||||
{title: '任务管理', icon: 'RF06', path: '/pages/manage/task-manage'},
|
||||
{title: '指令管理', icon: 'RF05', path: '/pages/manage/inst-manage'},
|
||||
{title: '混碾搬运', icon: 'RF01', path: '/pages/manage/hnby'},
|
||||
{title: '扫码出入库', icon: 'RF11', path: '/pages/manage/smck'},
|
||||
{title: '压制满料搬运', icon: 'RF02', path: '/pages/manage/yzmlby'},
|
||||
{title: '半成品解绑', icon: 'RF08', path: '/pages/manage/bcpjb'},
|
||||
{title: '混碾料罐绑定', icon: 'RF10', path: '/pages/manage/hnlgbd'},
|
||||
{title: '料罐物料查询', icon: 'RF09', path: '/pages/manage/hnlgcx'}
|
||||
{title: '出库确认', icon: 'RF02', path: '/pages/manage/ckqr'}
|
||||
],
|
||||
show: false,
|
||||
secM: []
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="zd_content bg">
|
||||
<view class="p1">欢迎来到</view>
|
||||
<view class="p2">华祥手持系统!</view>
|
||||
<view class="p2">宁波富佳手持系统!</view>
|
||||
<view class="input-box">
|
||||
<input class="large-input" type="text" placeholder="请输入用户名" v-model="user">
|
||||
</view>
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
<script>
|
||||
import { RSAencrypt } from '@/utils/jsencrypt.js'
|
||||
import {handLogin, pdaUpdate} from '@/utils/getData2.js'
|
||||
import {handLogin, pdaUpdate} from '@/utils/getData.js'
|
||||
import UpGrade from './upgrade.vue'
|
||||
export default {
|
||||
components: {
|
||||
@@ -67,9 +67,9 @@
|
||||
})
|
||||
},
|
||||
async toLogin() {
|
||||
// uni.redirectTo({
|
||||
// url: '/pages/home/home'
|
||||
// })
|
||||
uni.redirectTo({
|
||||
url: '/pages/home/home'
|
||||
})
|
||||
this.disabled = true
|
||||
if (this.user === '') {
|
||||
uni.showToast({
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<view class="content-header"></view>
|
||||
<view class="content-body">
|
||||
<view class="title">
|
||||
<text>又有新版本了,升级到最新版本,享受更丰富、稳定、快速的功能和体验!</text>
|
||||
<text>宁波富佳又有新版本了,升级到最新版本,享受更丰富、稳定、快速的功能和体验!</text>
|
||||
</view>
|
||||
<view class="footer flex-center">
|
||||
<template>
|
||||
|
||||
@@ -1,89 +0,0 @@
|
||||
<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-7">
|
||||
<span class="filter_label">区域</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<view class="filter_input">缓存货架区域</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">点位</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<uni-data-select v-model="index2" :localdata="options2"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !index2}" :disabled="disabled" @tap="_vehicleUnbind">解绑</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {vehicleUnbind} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
options2: this.generateArray('CRYHCHJ', '出入窑缓存货架'),
|
||||
index2: '',
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
methods: {
|
||||
generateArray(prefix, suffix) {
|
||||
const array = []
|
||||
for (let i = 1; i <= 136; i++) {
|
||||
array.push({
|
||||
value: `${prefix}${String(i).padStart(3, '0')}`,
|
||||
text: `${suffix}${String(i).padStart(3, '0')}`
|
||||
})
|
||||
}
|
||||
return array
|
||||
},
|
||||
clearUp () {
|
||||
this.index2 = ''
|
||||
this.disabled = false
|
||||
},
|
||||
async _vehicleUnbind () {
|
||||
this.disabled = true
|
||||
if (!this.index2) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await vehicleUnbind(this.index2)
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
|
||||
</style>
|
||||
119
pages/manage/ckqr.vue
Normal file
119
pages/manage/ckqr.vue
Normal file
@@ -0,0 +1,119 @@
|
||||
<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">NFC</span>
|
||||
</view>
|
||||
<view class="zd-col-14 filter_select">
|
||||
<input type="text" class="filter_input" v-model="val1">
|
||||
</view>
|
||||
<view class="zd-col-5 zd-row jcflexend">
|
||||
<button type="primary" size="mini" style="margin-right:0;text-align: right;">读取</button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-5">
|
||||
<span class="filter_label">托盘</span>
|
||||
</view>
|
||||
<view class="zd-col-19 filter_select">
|
||||
<input type="text" class="filter_input" v-model="val2">
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-5">
|
||||
<span class="filter_label">站点</span>
|
||||
</view>
|
||||
<view class="zd-col-14 filter_select">
|
||||
<input type="text" class="filter_input" v-model="val3">
|
||||
</view>
|
||||
<view class="zd-col-5 zd-row jcflexend">
|
||||
<button type="primary" size="mini" style="margin-right:0;text-align: right;">查询</button>
|
||||
</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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.checked}">
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.pcsn}}</td>
|
||||
<td>{{e.num}}</td>
|
||||
<td>{{e.qty}}</td>
|
||||
<td>{{e.code}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val2 || !val3}" :disabled="disabled" @tap="_mlTask">确认出库</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {mlTask} from '@/utils/getData.js'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
val1: '',
|
||||
val2: '',
|
||||
val3: '',
|
||||
dataList: [],
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
methods: {
|
||||
clearUp () {
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.val3 = ''
|
||||
},
|
||||
async _mlTask () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2 || !this.val3) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await mlTask(this.val1, this.val2, this.val3)
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -1,104 +0,0 @@
|
||||
<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-7">
|
||||
<span class="filter_label">起点</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<zxz-uni-data-select v-model="index1" filterable :localdata="options1"></zxz-uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">终点</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<zxz-uni-data-select v-model="index2" filterable :localdata="options2"></zxz-uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">条码</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap.stop="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !index1 || !index2 || !val1}" :disabled="disabled1" @tap="_pdaHnby">混碾搬运</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {pdaHnby} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
options1: this.generateArray('HNJ', 'DJW', '混碾机', '', 8),
|
||||
index1: '',
|
||||
options2: this.generateArray('YJ', 'SLW01', '压机', '号上料位', 10),
|
||||
index2: '',
|
||||
val1: null,
|
||||
disabled1: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
methods: {
|
||||
generateArray(prefix, suffix, name1, name2, num) {
|
||||
const array = []
|
||||
for (let i = 1; i <= num; i++) {
|
||||
array.push({
|
||||
value: `${prefix}${String(i).padStart(2, '0')}${suffix}`,
|
||||
text: `${name1}${String(i).padStart(2, '0')}${name2}`
|
||||
})
|
||||
}
|
||||
return array
|
||||
},
|
||||
clearUp () {
|
||||
this.index1 = ''
|
||||
this.index2 = ''
|
||||
this.val1 = null
|
||||
this.disabled1 = false
|
||||
},
|
||||
async _pdaHnby () {
|
||||
this.disabled1 = true
|
||||
if (!this.index1 || !this.index2 || !this.val1) {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await pdaHnby(this.index1, this.index2, this.val1)
|
||||
this.disabled1 = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
@import '../../common/style/mixin.styl';
|
||||
</style>
|
||||
@@ -1,103 +0,0 @@
|
||||
<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-7">
|
||||
<span class="filter_label">设备</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<zxz-uni-data-select v-model="index1" filterable :localdata="options1"></zxz-uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">条码</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">重量</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<input type="number" class="filter_input" v-model="val2">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap.stop="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !index1 || !val1 || !val2}" :disabled="disabled1" @tap="_hnlgbd">混碾料罐绑定</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {hnlgbd} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
options1: this.generateArray('HNJ', '混碾机', 8),
|
||||
index1: '',
|
||||
val1: null,
|
||||
val2: null,
|
||||
disabled1: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
methods: {
|
||||
generateArray(prefix, name, num) {
|
||||
const array = []
|
||||
for (let i = 1; i <= num; i++) {
|
||||
array.push({
|
||||
value: `${prefix}${String(i).padStart(2, '0')}`,
|
||||
text: `${name}${String(i).padStart(2, '0')}`
|
||||
})
|
||||
}
|
||||
return array
|
||||
},
|
||||
clearUp () {
|
||||
this.index1 = ''
|
||||
this.val1 = null
|
||||
this.val2 = null
|
||||
this.disabled1 = false
|
||||
},
|
||||
async _hnlgbd () {
|
||||
this.disabled1 = true
|
||||
if (!this.index1 || !this.val1 || !this.val2) {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await hnlgbd(this.index1, this.val1, this.val2)
|
||||
this.disabled1 = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
@import '../../common/style/mixin.styl';
|
||||
</style>
|
||||
@@ -1,80 +0,0 @@
|
||||
<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-7">
|
||||
<span class="filter_label">料罐条码</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">物料编码</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<view class="filter_input" style="color: #E9B451; font-weight: 700;">{{code}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap.stop="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_hnlgcx(val1)">查询</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {hnlgcx} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
val1: '',
|
||||
code: null,
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
methods: {
|
||||
clearUp () {
|
||||
this.val1 = null
|
||||
this.code = null
|
||||
this.disabled = false
|
||||
},
|
||||
async _hnlgcx (e) {
|
||||
this.disabled = true
|
||||
try {
|
||||
let res = await hnlgcx(e)
|
||||
this.disabled = false
|
||||
if (res) {
|
||||
this.code = res.material_code
|
||||
}
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
@import '../../common/style/mixin.styl';
|
||||
.msg_wrapper
|
||||
height auto
|
||||
min-height 30%
|
||||
</style>
|
||||
@@ -1,152 +0,0 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content pdt0">
|
||||
<view class="filter_wrapper">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-8 font-style-1" v-for="e in state" :key="e.id" @tap="changeTab(e)">
|
||||
<view class="font-style-1" :class="{'font-style-2': e.id === tab}">{{e.text}}</view>
|
||||
<view class="tab-line" :class="{'tab-line_active': e.id === tab}"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-wrapper">
|
||||
<view class="item-wrap" v-for="(e, i) in dataList" :key="i" @tap="toCheck(e)" :class="{isChecked: pkId === e.inst_uuid}">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-15 item-font-1">{{e.task_no}} | {{e.inst_status_name}}</view>
|
||||
<view class="zd-col-9 item-font-2" style="text-align:right">{{e.create_time}}</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-16">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-6 item-font-3">指令号:</view>
|
||||
<view class="zd-col-18 item-font-4">{{e.inst_no}}</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-10 item-font-3">指令执行步骤:</view>
|
||||
<view class="zd-col-14 item-font-4">{{e.inst_step}}</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-6 item-font-3">载具号:</view>
|
||||
<view class="zd-col-18 item-font-4">{{e.carrier}}</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-6 item-font-3">车号:</view>
|
||||
<view class="zd-col-18 item-font-4">{{e.carno}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-col-8">
|
||||
<view class="item-font-5">{{e.priority}}</view>
|
||||
<view class="item-font-7">优先级</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-10 item-font-6">起始设备:{{e.start_devicecode}}</view>
|
||||
<view class="zd-col-2 item-font-7">––</view>
|
||||
<view class="zd-col-10 item-font-6">目标设备:{{e.next_devicecode}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !pkId}" :disabled="disabled" @tap="_handInst('1')">指令撤销</button>
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !pkId}" :disabled="disabled" @tap="_handInst('2')">重新下发</button>
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !pkId}" :disabled="disabled" @tap="_handInst('3')">强制完成</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {handInsts, handInst} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
state: [{id:'-1', text: '全部'}, {id:'0', text: '就绪'}, {id:'1', text: '执行中'}],
|
||||
tab: '-1',
|
||||
title: '',
|
||||
data: [],
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
created () {
|
||||
this._handInsts()
|
||||
},
|
||||
methods: {
|
||||
toSearch () {
|
||||
this.show = true
|
||||
this.tab = '-1'
|
||||
},
|
||||
async _handInsts () {
|
||||
try {
|
||||
let res = await handInsts(this.val1, this.val2, this.val3)
|
||||
if (res.code === '1') {
|
||||
this.data = [...res.result]
|
||||
this.dataList = [...this.data]
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.desc,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
uni.showToast({
|
||||
title: res.desc,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
changeTab (e) {
|
||||
this.tab = e.id
|
||||
if (e.id !== '-1') {
|
||||
let arr = this.data.filter(el => {return el.inst_status === e.id})
|
||||
this.dataList = [...arr]
|
||||
} else {
|
||||
this.dataList = [...this.data]
|
||||
}
|
||||
},
|
||||
async _handInst (type) {
|
||||
this.disabled = true
|
||||
if (!this.pkId) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await handInst(type, this.pkId)
|
||||
if (res.code === '1') {
|
||||
this.disabled = false
|
||||
this.tab = '-1'
|
||||
this._handInsts()
|
||||
uni.showToast({
|
||||
title: res.desc,
|
||||
icon: 'none'
|
||||
})
|
||||
} else {
|
||||
this.disabled = false
|
||||
}
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
},
|
||||
toCheck (e) {
|
||||
this.pkId = this.pkId === e.inst_uuid ? '' : e.inst_uuid
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.item-font-1
|
||||
font-size 28rpx
|
||||
</style>
|
||||
@@ -1,92 +0,0 @@
|
||||
<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-7">
|
||||
<span class="filter_label">木托盘编码</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-5 button-default" @tap.stop="clearUp">清空</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1}" :disabled="disabled1" @tap="toSure1">入库</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1}" :disabled="disabled2" @tap="toSure2">出库</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {pdaSmck} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
val1: '',
|
||||
disabled1: false,
|
||||
disabled2: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
methods: {
|
||||
clearUp () {
|
||||
this.val1 = null
|
||||
this.disabled1 = false
|
||||
this.disabled2 = false
|
||||
},
|
||||
toSure1 () {
|
||||
this.disabled1 = true
|
||||
if (!this.val1) {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
this._pdaSmck('1')
|
||||
},
|
||||
toSure2 () {
|
||||
this.disabled2 = true
|
||||
if (!this.val1) {
|
||||
this.disabled2 = false
|
||||
return
|
||||
}
|
||||
this._pdaSmck('2')
|
||||
},
|
||||
async _pdaSmck (type) {
|
||||
try {
|
||||
let res = await pdaSmck(this.val1, type)
|
||||
this.disabled1 = false
|
||||
this.disabled2 = false
|
||||
this.val1 = ''
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
this.disabled2 = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
@import '../../common/style/mixin.styl';
|
||||
.msg_wrapper
|
||||
height auto
|
||||
min-height 30%
|
||||
</style>
|
||||
@@ -1,136 +0,0 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content pdt0">
|
||||
<view class="filter_wrapper">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-8 font-style-1" v-for="e in state" :key="e.id" @tap="changeTab(e)">
|
||||
<view class="font-style-1" :class="{'font-style-2': e.id === tab}">{{e.text}}</view>
|
||||
<view class="tab-line" :class="{'tab-line_active': e.id === tab}"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-wrapper">
|
||||
<view class="item-wrap" v-for="(e, i) in dataList" :key="i" @tap="toCheck(e)" :class="{isChecked: pkId === e.task_uuid}">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-10 item-font-1">{{e.task_no}}</view>
|
||||
<view class="zd-col-10 item-font-2" style="text-align:right">{{e.create_time}}</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-16">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-7 item-font-3">任务状态:</view>
|
||||
<view class="zd-col-17 item-font-4">{{e.task_status_name}}</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-7 item-font-3">载具号:</view>
|
||||
<view class="zd-col-17 item-font-4">{{e.carrier}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-col-8">
|
||||
<view class="item-font-5">{{e.priority}}</view>
|
||||
<view class="item-font-7">优先级</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-10 item-font-6">起始设备:{{e.start_devicecode}}</view>
|
||||
<view class="zd-col-2 item-font-7">––</view>
|
||||
<view class="zd-col-10 item-font-6">目标设备:{{e.next_devicecode}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 button-primary" :class="{'button-info': !pkId}" :disabled="disabled" @tap="_handTaskoperation('1')">重新生成</button>
|
||||
<button class="zd-col-11 button-primary" :class="{'button-info': !pkId}" :disabled="disabled" @tap="_handTaskoperation('2')">强制完成</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {handTasks, handTaskoperation} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
state: [{id:'-1', text: '全部'}, {id:'0', text: '就绪'}, {id:'1', text: '执行中'}],
|
||||
tab: '-1',
|
||||
title: '',
|
||||
data: [],
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
created () {
|
||||
this._handTasks()
|
||||
},
|
||||
methods: {
|
||||
async _handTasks () {
|
||||
try {
|
||||
let res = await handTasks()
|
||||
if (res.code === '1') {
|
||||
this.data = [...res.result]
|
||||
this.dataList = [...this.data]
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.desc,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
} catch (e) {
|
||||
uni.showToast({
|
||||
title: res.desc,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
changeTab (e) {
|
||||
this.tab = e.id
|
||||
if (e.id !== '-1') {
|
||||
let arr = this.data.filter(el => {return el.task_status === e.id})
|
||||
this.dataList = [...arr]
|
||||
} else {
|
||||
this.dataList = [...this.data]
|
||||
}
|
||||
},
|
||||
async _handTaskoperation (type) {
|
||||
this.disabled = true
|
||||
if (!this.pkId) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await handTaskoperation(type, this.pkId)
|
||||
if (res.code === '1') {
|
||||
this.disabled = false
|
||||
this.tab = '-1'
|
||||
this._handTasks()
|
||||
uni.showToast({
|
||||
title: res.desc,
|
||||
icon: 'none'
|
||||
})
|
||||
} else {
|
||||
this.disabled = false
|
||||
}
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
},
|
||||
toCheck (e) {
|
||||
this.pkId = this.pkId === e.task_uuid ? '' : e.task_uuid
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
</style>
|
||||
@@ -1,131 +0,0 @@
|
||||
<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-7">
|
||||
<span class="filter_label">区域</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<view class="filter_input">压制区域</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">点位</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<uni-data-select v-model="index2" :localdata="options2"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">条码</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">重量</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<input type="number" class="filter_input" v-model="val2">
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">数量</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<input type="number" class="filter_input" v-model="val3">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !index2 || !val1 || !val2 || !val3}" :disabled="disabled" @tap="_mlTask">满料搬运</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {mlTask} from '@/utils/getData2.js'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
options2: this.generateArray(),
|
||||
index2: '',
|
||||
val1: '',
|
||||
val2: '',
|
||||
val3: '',
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
methods: {
|
||||
generateArray(prefix, suffix) {
|
||||
const array = []
|
||||
const baseText = '压制机'
|
||||
const baseValue = 'YJ'
|
||||
const maxMachines = 10
|
||||
const maxPositions = 2
|
||||
|
||||
for (let machine = 1; machine <= maxMachines; machine++) {
|
||||
for (let position = 1; position <= maxPositions; position++) {
|
||||
array.push({
|
||||
value: `${baseValue}${String(machine).padStart(2, '0')}XLW${String(position).padStart(2, '0')}`,
|
||||
text: `${baseText}${String(machine).padStart(2, '0')}下料位${String(position).padStart(2, '0')}`
|
||||
});
|
||||
}
|
||||
}
|
||||
return array
|
||||
},
|
||||
change (e) {
|
||||
this.options1.map((el, i) => {
|
||||
if (e === i) {
|
||||
this.options2 = el.point
|
||||
}
|
||||
})
|
||||
},
|
||||
clearUp () {
|
||||
this.index2 = ''
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.val3 = ''
|
||||
},
|
||||
async _mlTask () {
|
||||
this.disabled = true
|
||||
if (!this.index2 || !this.val1 || !this.val2 || !this.val3) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await mlTask(this.index2, this.val1, this.val2, this.val3)
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
32
utils/getData.js
Normal file
32
utils/getData.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import request from './request.js'
|
||||
|
||||
// 版本更新测试
|
||||
export const pdaUpdate = () => request({
|
||||
url:'api/pda/update'
|
||||
})
|
||||
// export const pdaUpdate = () => {
|
||||
// let res = {
|
||||
// versionName: '1.0.1',
|
||||
// url: 'https://mp-e979e0eb-882b-42b3-a4a1-923ad08ea194.cdn.bspapp.com/cloudstorage/f72ec59f-7b25-487d-a034-fead1b6654c6.apk'
|
||||
// }
|
||||
// return res
|
||||
// }
|
||||
|
||||
// 登录
|
||||
export const handLogin = (user, password) => request({
|
||||
url:'mobile/auth/login',
|
||||
data: {
|
||||
username: user,
|
||||
password: password
|
||||
}
|
||||
})
|
||||
|
||||
export const mlTask = (code, vcode, weight, qty) => request({
|
||||
url:'api/pda/mlTask',
|
||||
data: {
|
||||
deviceCode: code,
|
||||
vehicle_code: vcode,
|
||||
weight: weight,
|
||||
qty: qty
|
||||
}
|
||||
})
|
||||
@@ -1,123 +0,0 @@
|
||||
import request from './request.js'
|
||||
|
||||
// 版本更新测试
|
||||
export const pdaUpdate = () => request({
|
||||
url:'api/pda/update'
|
||||
})
|
||||
// export const pdaUpdate = () => {
|
||||
// let res = {
|
||||
// versionName: '1.0.1',
|
||||
// url: 'https://mp-e979e0eb-882b-42b3-a4a1-923ad08ea194.cdn.bspapp.com/cloudstorage/f72ec59f-7b25-487d-a034-fead1b6654c6.apk'
|
||||
// }
|
||||
// return res
|
||||
// }
|
||||
|
||||
// 登录
|
||||
export const handLogin = (user, password) => request({
|
||||
url:'mobile/auth/login',
|
||||
data: {
|
||||
username: user,
|
||||
password: password
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 混碾搬运
|
||||
*/
|
||||
export const pdaHnby = (sp, ep, code) => request({
|
||||
url:'api/pda/hnby',
|
||||
data: {
|
||||
startPoint: sp,
|
||||
endPoint: ep,
|
||||
barCode: code
|
||||
}
|
||||
})
|
||||
/**
|
||||
* 扫码出入库
|
||||
*/
|
||||
export const pdaSmck = (code, type) => request({
|
||||
url:'api/pda/smck',
|
||||
data: {
|
||||
barCode: code,
|
||||
type: type
|
||||
}
|
||||
})
|
||||
/**
|
||||
* 压制满料搬运
|
||||
*/
|
||||
export const mlTask = (code, vcode, weight, qty) => request({
|
||||
url:'api/pda/mlTask',
|
||||
data: {
|
||||
deviceCode: code,
|
||||
vehicle_code: vcode,
|
||||
weight: weight,
|
||||
qty: qty
|
||||
}
|
||||
})
|
||||
/**
|
||||
* 半成品解绑
|
||||
*/
|
||||
export const vehicleUnbind = (code) => request({
|
||||
url:'api/pda/vehicleUnbind',
|
||||
data: {
|
||||
point_code: code
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 任务管理
|
||||
*/
|
||||
// 1.1 1.1 查询无指令的任务(任务号为-开头)
|
||||
export const handTasks = () => request({
|
||||
url:'api/hand/tasks',
|
||||
acsurl: true,
|
||||
data: {}
|
||||
})
|
||||
// 1.2 任务操作
|
||||
export const handTaskoperation = (type, id) => request({
|
||||
url:'api/hand/taskoperation',
|
||||
acsurl: true,
|
||||
data: {
|
||||
type: type,
|
||||
task_uuid: id
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 指令管理
|
||||
*/
|
||||
// 1.1 查询未完成指令(生成任务号为-开头)
|
||||
export const handInsts = () => request({
|
||||
url:'api/hand/insts',
|
||||
acsurl: true,
|
||||
data: {}
|
||||
})
|
||||
// 1.2 指令操作
|
||||
export const handInst = (type, id) => request({
|
||||
url:'api/hand/inst',
|
||||
acsurl: true,
|
||||
data: {
|
||||
type: type,
|
||||
inst_uuid: id
|
||||
}
|
||||
})
|
||||
/**
|
||||
* 混碾料罐绑定
|
||||
*/
|
||||
export const hnlgbd = (code, vcode, weight) => request({
|
||||
url:'api/pda/hnlgbd',
|
||||
data: {
|
||||
deviceCode: code,
|
||||
barCode: vcode,
|
||||
weight: weight
|
||||
}
|
||||
})
|
||||
/**
|
||||
* 料罐物料查询
|
||||
*/
|
||||
export const hnlgcx = (vcode) => request({
|
||||
url:'api/pda/hnlgcx',
|
||||
data: {
|
||||
barCode: vcode
|
||||
}
|
||||
})
|
||||
632
utils/mork2.js
632
utils/mork2.js
@@ -1,632 +0,0 @@
|
||||
// 查询货架上未拆包料盅信息
|
||||
export const unpackShelfInfo = () => {
|
||||
let res = [
|
||||
{
|
||||
"pointCode": "KLHW03",
|
||||
"materialCode": "ML-60BT",
|
||||
"instorageTime": "2024-01-11 16:26:55"
|
||||
}
|
||||
]
|
||||
return res
|
||||
}
|
||||
// 查询拆包机点位
|
||||
export const getCbjPoint = () => {
|
||||
let res = [
|
||||
{
|
||||
"value": "CBJKLW",
|
||||
"text": "拆包机空料位"
|
||||
},
|
||||
{
|
||||
"value": "CBJMLW",
|
||||
"text": "拆包机满料位"
|
||||
},
|
||||
{
|
||||
"value": "CBJXLW ",
|
||||
"text": "拆包机下料位"
|
||||
}
|
||||
]
|
||||
return res
|
||||
}
|
||||
// 拆包机叫料
|
||||
export const cbjqlTask = () => {
|
||||
let res = {
|
||||
"message": "拆包机缺料请求成功"
|
||||
}
|
||||
return res
|
||||
}
|
||||
// 查询混碾工单
|
||||
export const hnWorkOrder = () => {
|
||||
let res = [
|
||||
{
|
||||
"workorder_id": "1762660775601770496",
|
||||
"workorder_code": "240228003",
|
||||
"plan_qty": 0,
|
||||
"real_qty": 66,
|
||||
"plan_weight": 1000,
|
||||
"real_weight": 33,
|
||||
"real_new_weight": 0,
|
||||
"real_old_weight": 0,
|
||||
"material_ratio": 0,
|
||||
"material_id": "1771048061557149696",
|
||||
"raw_material_code": "111",
|
||||
"produce_order": null,
|
||||
"batch_no": null,
|
||||
"team": null,
|
||||
"produce_date": "20240307",
|
||||
"vehicle_type": "LZ",
|
||||
"planproducestart_date": "2024-02-28 10:07:28",
|
||||
"planproduceend_date": "2024-02-29 00:00:00",
|
||||
"realproducestart_date": "2024-03-22 17:10:37",
|
||||
"realproduceend_date": "2024-03-22 17:40:58",
|
||||
"standing_time": 1,
|
||||
"point_code": "HNJ01",
|
||||
"point_name": "混碾机01",
|
||||
"region_code": "HN",
|
||||
"region_name": "混碾区域",
|
||||
"workorder_status": "5",
|
||||
"is_needmove": true,
|
||||
"workorder_type": "1",
|
||||
"production_order": null,
|
||||
"passback_status": null,
|
||||
"workshop_code": null,
|
||||
"ext_id": null,
|
||||
"ext_data": "0",
|
||||
"is_delete": false,
|
||||
"is_new": true,
|
||||
"create_id": "1",
|
||||
"create_name": "管理员",
|
||||
"create_time": "2024-02-28 10:07:32",
|
||||
"update_id": "1",
|
||||
"update_name": "管理员",
|
||||
"update_time": "2024-03-28 10:09:43",
|
||||
"is_urgent": false,
|
||||
"operator": "管理员",
|
||||
"customer": "",
|
||||
"inspector": null,
|
||||
"qualified_qty": 0,
|
||||
"unqualified_qty": 0,
|
||||
"material_name": null,
|
||||
"material_code": null,
|
||||
"material_spec": null,
|
||||
"half_material_code": null,
|
||||
"order_no": null,
|
||||
"custer_no": null,
|
||||
"order_subnum": 0,
|
||||
"guadansum": 0,
|
||||
"pack_method": null,
|
||||
"order_number": null,
|
||||
"product_code": null,
|
||||
"material_model": null
|
||||
},
|
||||
{
|
||||
"workorder_id": "1762660775601770496",
|
||||
"workorder_code": "2402280031",
|
||||
"plan_qty": 0,
|
||||
"real_qty": 66,
|
||||
"plan_weight": 1000,
|
||||
"real_weight": 33,
|
||||
"real_new_weight": 0,
|
||||
"real_old_weight": 0,
|
||||
"material_ratio": 0,
|
||||
"material_id": "1771048061557149696",
|
||||
"raw_material_code": "111",
|
||||
"produce_order": null,
|
||||
"batch_no": null,
|
||||
"team": null,
|
||||
"produce_date": "20240307",
|
||||
"vehicle_type": "LZ",
|
||||
"planproducestart_date": "2024-02-28 10:07:28",
|
||||
"planproduceend_date": "2024-02-29 00:00:00",
|
||||
"realproducestart_date": "2024-03-22 17:10:37",
|
||||
"realproduceend_date": "2024-03-22 17:40:58",
|
||||
"standing_time": 1,
|
||||
"point_code": "HNJ01",
|
||||
"point_name": "混碾机01",
|
||||
"region_code": "HN",
|
||||
"region_name": "混碾区域",
|
||||
"workorder_status": "5",
|
||||
"is_needmove": true,
|
||||
"workorder_type": "1",
|
||||
"production_order": null,
|
||||
"passback_status": null,
|
||||
"workshop_code": null,
|
||||
"ext_id": null,
|
||||
"ext_data": "0",
|
||||
"is_delete": false,
|
||||
"is_new": true,
|
||||
"create_id": "1",
|
||||
"create_name": "管理员",
|
||||
"create_time": "2024-02-28 10:07:32",
|
||||
"update_id": "1",
|
||||
"update_name": "管理员",
|
||||
"update_time": "2024-03-28 10:09:43",
|
||||
"is_urgent": false,
|
||||
"operator": "管理员",
|
||||
"customer": "",
|
||||
"inspector": null,
|
||||
"qualified_qty": 0,
|
||||
"unqualified_qty": 0,
|
||||
"material_name": null,
|
||||
"material_code": null,
|
||||
"material_spec": null,
|
||||
"half_material_code": null,
|
||||
"order_no": null,
|
||||
"custer_no": null,
|
||||
"order_subnum": 0,
|
||||
"guadansum": 0,
|
||||
"pack_method": null,
|
||||
"order_number": null,
|
||||
"product_code": null,
|
||||
"material_model": null
|
||||
}
|
||||
]
|
||||
return res
|
||||
}
|
||||
// 拆包机下料位满料入货架
|
||||
export const cbjmlTask = () => {
|
||||
let res = {"message":"满料入库请求成功"}
|
||||
return res
|
||||
}
|
||||
// 拆包机下料位叫空蛊
|
||||
export const cbjqkTask = () => {
|
||||
let res = {"message":"空蛊出库请求成功"}
|
||||
return res
|
||||
}
|
||||
// 压机上料位下拉框
|
||||
export const yjslwPointList = () => {
|
||||
let res = [
|
||||
{
|
||||
"value": "YJ01SLW01",
|
||||
"text": "压机01上料位01"
|
||||
},
|
||||
{
|
||||
"value": "YJ01SLW02",
|
||||
"text": "压机01上料位02"
|
||||
},
|
||||
{
|
||||
"value": "YJ02SLW01",
|
||||
"text": "压机02上料位01"
|
||||
},
|
||||
{
|
||||
"value": "YJ02SLW02",
|
||||
"text": "压机02上料位02"
|
||||
},
|
||||
{
|
||||
"value": "YJ03SLW01",
|
||||
"text": "压机03上料位01"
|
||||
},
|
||||
{
|
||||
"value": "YJ03SLW02",
|
||||
"text": "压机03上料位02"
|
||||
},
|
||||
{
|
||||
"value": "YJ04SLW01",
|
||||
"text": "压机04上料位01"
|
||||
},
|
||||
{
|
||||
"value": "YJ04SLW02",
|
||||
"text": "压机04上料位02"
|
||||
},
|
||||
{
|
||||
"value": "YJ05SLW01",
|
||||
"text": "压机05上料位01"
|
||||
},
|
||||
{
|
||||
"value": "YJ05SLW02",
|
||||
"text": "压机05上料位02"
|
||||
},
|
||||
{
|
||||
"value": "YJ06SLW01",
|
||||
"text": "压机06上料位01"
|
||||
},
|
||||
{
|
||||
"value": "YJ06SLW02",
|
||||
"text": "压机06上料位02"
|
||||
},
|
||||
{
|
||||
"value": "YJ07SLW01",
|
||||
"text": "压机07上料位01"
|
||||
},
|
||||
{
|
||||
"value": "YJ07SLW02",
|
||||
"text": "压机07上料位02"
|
||||
},
|
||||
{
|
||||
"value": "YJ08SLW01",
|
||||
"text": "压机08上料位01"
|
||||
},
|
||||
{
|
||||
"value": "YJ08SLW02",
|
||||
"text": "压机08上料位02"
|
||||
},
|
||||
{
|
||||
"value": "YJ09SLW01",
|
||||
"text": "压机09上料位01"
|
||||
},
|
||||
{
|
||||
"value": "YJ09SLW02",
|
||||
"text": "压机09上料位02"
|
||||
}
|
||||
]
|
||||
return res
|
||||
}
|
||||
// 压机上料位强制回货架
|
||||
export const qzhhjTask = (code) => {
|
||||
let res = {"message":"压制上料位强制回库请求成功"}
|
||||
return res
|
||||
}
|
||||
// 查询货架上已拆包料盅信息
|
||||
export const packShelfInfo = () => {
|
||||
let res = [
|
||||
{
|
||||
"pointCode": "KLHW10",
|
||||
"materialCode": "MT-14AT",
|
||||
"instorageTime": "2024-04-07 16:08:59"
|
||||
}
|
||||
]
|
||||
return res
|
||||
}
|
||||
// 困料货架点对点到布料机上料位
|
||||
export const yzqlTask = (sp, ep) => {
|
||||
let res = {
|
||||
"message": "布料机上料位请求成功"
|
||||
}
|
||||
return res
|
||||
}
|
||||
// 物料报废
|
||||
export const materialScrap = () => {
|
||||
let res = {"message":"物料作废成功"}
|
||||
return res
|
||||
}
|
||||
// 查询人工分拣点位
|
||||
export const rgfjPoint = () => {
|
||||
let res = [
|
||||
{
|
||||
"value": "RGFJC01",
|
||||
"text": "人工分拣拆01"
|
||||
},
|
||||
{
|
||||
"value": "RGFJC02",
|
||||
"text": "人工分拣拆02"
|
||||
},
|
||||
{
|
||||
"value": "RGFJC03",
|
||||
"text": "人工分拣拆03"
|
||||
},
|
||||
{
|
||||
"value": "RGFJC04",
|
||||
"text": "人工分拣拆04"
|
||||
},
|
||||
{
|
||||
"value": "RGFJC05",
|
||||
"text": "人工分拣拆05"
|
||||
},
|
||||
{
|
||||
"value": "RGFJC06",
|
||||
"text": "人工分拣拆06"
|
||||
}
|
||||
]
|
||||
return res
|
||||
}
|
||||
// 查询缓存货架点位
|
||||
export const hchjPoint = () => {
|
||||
let res = [
|
||||
{
|
||||
"value": "HCHJ01",
|
||||
"text": "缓存货架01"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ02",
|
||||
"text": "缓存货架02"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ03",
|
||||
"text": "缓存货架03"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ04",
|
||||
"text": "缓存货架04"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ05",
|
||||
"text": "缓存货架05"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ06",
|
||||
"text": "缓存货架06"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ07",
|
||||
"text": "缓存货架07"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ08",
|
||||
"text": "缓存货架08"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ09",
|
||||
"text": "缓存货架09"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ10",
|
||||
"text": "缓存货架10"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ11",
|
||||
"text": "缓存货架11"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ12",
|
||||
"text": "缓存货架12"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ13",
|
||||
"text": "缓存货架13"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ14",
|
||||
"text": "缓存货架14"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ15",
|
||||
"text": "缓存货架15"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ16",
|
||||
"text": "缓存货架16"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ17",
|
||||
"text": "缓存货架17"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ18",
|
||||
"text": "缓存货架18"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ19",
|
||||
"text": "缓存货架19"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ20",
|
||||
"text": "缓存货架20"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ21",
|
||||
"text": "缓存货架21"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ22",
|
||||
"text": "缓存货架22"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ23",
|
||||
"text": "缓存货架23"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ24",
|
||||
"text": "缓存货架24"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ25",
|
||||
"text": "缓存货架25"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ26",
|
||||
"text": "缓存货架26"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ27",
|
||||
"text": "缓存货架27"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ28",
|
||||
"text": "缓存货架28"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ29",
|
||||
"text": "缓存货架29"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ30",
|
||||
"text": "缓存货架30"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ31",
|
||||
"text": "缓存货架31"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ32",
|
||||
"text": "缓存货架32"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ33",
|
||||
"text": "缓存货架33"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ34",
|
||||
"text": "缓存货架34"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ35",
|
||||
"text": "缓存货架35"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ36",
|
||||
"text": "缓存货架36"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ37",
|
||||
"text": "缓存货架37"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ38",
|
||||
"text": "缓存货架38"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ39",
|
||||
"text": "缓存货架39"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ40",
|
||||
"text": "缓存货架40"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ41",
|
||||
"text": "缓存货架41"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ42",
|
||||
"text": "缓存货架42"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ43",
|
||||
"text": "缓存货架43"
|
||||
},
|
||||
{
|
||||
"value": "HCHJ44",
|
||||
"text": "缓存货架44"
|
||||
}
|
||||
]
|
||||
return res
|
||||
}
|
||||
// 人工分拣叫料
|
||||
export const rgfjqlTask = (sp, code) => {
|
||||
let res = {"message":"人工分拣缺料请求成功"}
|
||||
return res
|
||||
}
|
||||
// 人工分拣送空盘
|
||||
export const rgfjskTask = (code) => {
|
||||
let res = {"message":"人工分拣送空请求成功"}
|
||||
return res
|
||||
}
|
||||
// 任务管理
|
||||
export const handTasks = (key, scode, ncode) => {
|
||||
let res = {
|
||||
"result": [
|
||||
{
|
||||
"material_type": "",
|
||||
"task_status": "1",
|
||||
"carrier": "0033",
|
||||
"task_no": "1800358896351711233",
|
||||
"create_time": "2024-06-11 10:47:33",
|
||||
"task_status_name": "执行中",
|
||||
"next_devicecode": "HCHJ01",
|
||||
"start_devicecode": "CYHCX39",
|
||||
"material_type_name": "",
|
||||
"task_uuid": "718e14a17b744a81bc51a51945355daa",
|
||||
"task_type": "1",
|
||||
"priority": "1"
|
||||
},
|
||||
{
|
||||
"material_type": "",
|
||||
"task_status": "1",
|
||||
"carrier": "3010",
|
||||
"task_no": "1800768187059539969",
|
||||
"create_time": "2024-06-12 13:56:04",
|
||||
"task_status_name": "执行中",
|
||||
"next_devicecode": "HNJ03DJW",
|
||||
"start_devicecode": "KLHW19",
|
||||
"material_type_name": "",
|
||||
"task_uuid": "f8e5ab3341f64bee887f4acaf403a4be",
|
||||
"task_type": "1",
|
||||
"priority": "1"
|
||||
},
|
||||
{
|
||||
"material_type": "",
|
||||
"task_status": "1",
|
||||
"carrier": "3011",
|
||||
"task_no": "1800771496990347265",
|
||||
"create_time": "2024-06-12 14:06:44",
|
||||
"task_status_name": "执行中",
|
||||
"next_devicecode": "KLHW36",
|
||||
"start_devicecode": "HNJ03DJW",
|
||||
"material_type_name": "",
|
||||
"task_uuid": "177eb5d976d245efbe3d5d56c8e93e22",
|
||||
"task_type": "1",
|
||||
"priority": "1"
|
||||
},
|
||||
{
|
||||
"material_type": "",
|
||||
"task_status": "1",
|
||||
"carrier": "4011",
|
||||
"task_no": "1800773119993057281",
|
||||
"create_time": "2024-06-12 14:15:54",
|
||||
"task_status_name": "执行中",
|
||||
"next_devicecode": "HNJ04DJW",
|
||||
"start_devicecode": "KLHW23",
|
||||
"material_type_name": "",
|
||||
"task_uuid": "29053a22a18b489eb0af483d897c0468",
|
||||
"task_type": "1",
|
||||
"priority": "1"
|
||||
},
|
||||
{
|
||||
"material_type": "",
|
||||
"task_status": "1",
|
||||
"carrier": "0030",
|
||||
"task_no": "1800819807675879425",
|
||||
"create_time": "2024-06-12 17:18:44",
|
||||
"task_status_name": "执行中",
|
||||
"next_devicecode": "RYHCX01",
|
||||
"start_devicecode": "YJ02XLW02",
|
||||
"material_type_name": "",
|
||||
"task_uuid": "6f8642c70ee14bfc8d2699477fa977c7",
|
||||
"task_type": "1",
|
||||
"priority": "1"
|
||||
},
|
||||
{
|
||||
"material_type": "",
|
||||
"task_status": "0",
|
||||
"carrier": "",
|
||||
"task_no": "1800820183942696961",
|
||||
"create_time": "2024-06-12 17:20:14",
|
||||
"task_status_name": "就绪",
|
||||
"next_devicecode": "YJ02XLW02",
|
||||
"start_devicecode": "CPJCK",
|
||||
"material_type_name": "",
|
||||
"task_uuid": "f41e5bfb7b32472fa940a8085c1e6d5e",
|
||||
"task_type": "1",
|
||||
"priority": "1"
|
||||
}
|
||||
],
|
||||
"code": "1",
|
||||
"desc": "查询成功"
|
||||
}
|
||||
return res
|
||||
}
|
||||
// 1.2 任务操作
|
||||
export const handTaskoperation = (type, id) => {
|
||||
let res = {
|
||||
"message": "001"
|
||||
}
|
||||
return res
|
||||
}
|
||||
// 指令管理
|
||||
export const handInsts = () => {
|
||||
let res = {
|
||||
"data": [
|
||||
{
|
||||
"task_no": "-087",
|
||||
"inst_status": "2",
|
||||
"create_time": "2024-03-28 10:54:39",
|
||||
"carrier": '001',
|
||||
"carno": '1号车',
|
||||
"inst_uuid": "012bc5e653ce48949020f1147333aa7f",
|
||||
"inst_step": "3",
|
||||
"instruction_code": '11100',
|
||||
"next_devicecode": "L1",
|
||||
"start_devicecode": "RKSSX2",
|
||||
"instruction_code": "163",
|
||||
"priority": "1"
|
||||
}
|
||||
],
|
||||
"message": "操作成功"
|
||||
}
|
||||
return res
|
||||
}
|
||||
export const handInst = (code) => {
|
||||
let res = {
|
||||
"message": "001"
|
||||
}
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user