人工分拣排产、操作
This commit is contained in:
@@ -16,6 +16,9 @@
|
|||||||
"autoclose" : true,
|
"autoclose" : true,
|
||||||
"delay" : 0
|
"delay" : 0
|
||||||
},
|
},
|
||||||
|
"compatible" : {
|
||||||
|
"ignoreVersion" : true
|
||||||
|
},
|
||||||
/* 模块配置 */
|
/* 模块配置 */
|
||||||
"modules" : {},
|
"modules" : {},
|
||||||
/* 应用发布信息 */
|
/* 应用发布信息 */
|
||||||
|
|||||||
@@ -111,7 +111,7 @@
|
|||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
this.index1 = ''
|
this.index1 = ''
|
||||||
this.index2 = ''
|
this.index2 = ''
|
||||||
this.remark = false
|
this.remark = ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,115 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<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_wraper">
|
||||||
|
<span class="filter_label">动作</span>
|
||||||
|
</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="submit-bar">
|
||||||
|
<button class="submit-button" :class="{'btn-disabled': !index1 || !index2}" :disabled="disabled1" @tap="toSure">确认</button>
|
||||||
|
<button class="submit-button" @tap="toCancle">取消</button>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {deviceInfo, deviceStatus, deviceCheckVerify} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
options1: [],
|
||||||
|
index1: '',
|
||||||
|
options2: [],
|
||||||
|
index2: '',
|
||||||
|
disabled1: false
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
this._deviceInfo()
|
||||||
|
this._deviceStatus()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 选择器 */
|
||||||
|
selectChange1(e) {
|
||||||
|
this.index1 = e
|
||||||
|
},
|
||||||
|
selectChange2(e) {
|
||||||
|
this.index2 = e
|
||||||
|
},
|
||||||
|
/** 获取设备下拉框 */
|
||||||
|
async _deviceInfo () {
|
||||||
|
let res = await deviceInfo()
|
||||||
|
this.options1 = [...res]
|
||||||
|
},
|
||||||
|
/** 获取设备状态下拉框 */
|
||||||
|
async _deviceStatus () {
|
||||||
|
let res = await deviceStatus()
|
||||||
|
this.options2 = [...res]
|
||||||
|
},
|
||||||
|
/** 确定 */
|
||||||
|
async toSure () {
|
||||||
|
this.disabled1 = true
|
||||||
|
if (!this.index1) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '设备号不能为空',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled1 = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!this.index2) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '状态不能为空',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled1 = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let userName = this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).username : ''
|
||||||
|
let res = await deviceCheckVerify(this.index1, userName, this.index2)
|
||||||
|
this.disabled1 = false
|
||||||
|
this.index1 = ''
|
||||||
|
this.index2 = ''
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled1 = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toCancle () {
|
||||||
|
this.disabled1 = false
|
||||||
|
this.index1 = ''
|
||||||
|
this.index2 = ''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus">
|
<style lang="stylus" scoped>
|
||||||
|
.filter_item_1, .filter_input_wraper_1
|
||||||
|
align-items: flex-start
|
||||||
|
height 210rpx
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,19 +1,115 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<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_wraper">
|
||||||
|
<span class="filter_label">动作</span>
|
||||||
|
</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="submit-bar">
|
||||||
|
<button class="submit-button" :class="{'btn-disabled': !index1 || !index2}" :disabled="disabled1" @tap="toSure">确认</button>
|
||||||
|
<button class="submit-button" @tap="toCancle">取消</button>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {deviceInfo, deviceStatus, deviceCheckVerify} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
options1: [],
|
||||||
|
index1: '',
|
||||||
|
options2: [],
|
||||||
|
index2: '',
|
||||||
|
disabled1: false
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
this._deviceInfo()
|
||||||
|
this._deviceStatus()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 选择器 */
|
||||||
|
selectChange1(e) {
|
||||||
|
this.index1 = e
|
||||||
|
},
|
||||||
|
selectChange2(e) {
|
||||||
|
this.index2 = e
|
||||||
|
},
|
||||||
|
/** 获取设备下拉框 */
|
||||||
|
async _deviceInfo () {
|
||||||
|
let res = await deviceInfo()
|
||||||
|
this.options1 = [...res]
|
||||||
|
},
|
||||||
|
/** 获取设备状态下拉框 */
|
||||||
|
async _deviceStatus () {
|
||||||
|
let res = await deviceStatus()
|
||||||
|
this.options2 = [...res]
|
||||||
|
},
|
||||||
|
/** 确定 */
|
||||||
|
async toSure () {
|
||||||
|
this.disabled1 = true
|
||||||
|
if (!this.index1) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '设备号不能为空',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled1 = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!this.index2) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '状态不能为空',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled1 = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let userName = this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).username : ''
|
||||||
|
let res = await deviceCheckVerify(this.index1, userName, this.index2)
|
||||||
|
this.disabled1 = false
|
||||||
|
this.index1 = ''
|
||||||
|
this.index2 = ''
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled1 = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toCancle () {
|
||||||
|
this.disabled1 = false
|
||||||
|
this.index1 = ''
|
||||||
|
this.index2 = ''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus">
|
<style lang="stylus" scoped>
|
||||||
|
.filter_item_1, .filter_input_wraper_1
|
||||||
|
align-items: flex-start
|
||||||
|
height 210rpx
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,19 +1,111 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<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" :class="{'checked': e.checked}">
|
||||||
|
<td><span class="iconfont icon_unchecked" :class="{'icon_checked': e.checked}" @tap="toCheck(e)"></span></td>
|
||||||
|
<td>{{e.device_code}}</td>
|
||||||
|
<td @tap="toJump(e)">{{e.device_name}}</td>
|
||||||
|
<td>{{e.status_name}}</td>
|
||||||
|
<td>{{e.plan_start_date}}</td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td><input type="number" class="sin_input"></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="submit-bar">
|
||||||
|
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="toSure1">开工</button>
|
||||||
|
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="toSure1">完工</button>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {coolIOQuery, confirmInstor, statusList} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
dataList: [],
|
||||||
|
checkArr: [],
|
||||||
|
disabled: false
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 下拉框查询 */
|
||||||
|
async _statusList () {
|
||||||
|
let res = await statusList()
|
||||||
|
this.options = [...res.data]
|
||||||
|
},
|
||||||
|
/** grid查询 */
|
||||||
|
async _empOutgetIvt (e) {
|
||||||
|
let res = await empOutgetIvt(e)
|
||||||
|
res.data.map(el => {
|
||||||
|
this.$set(el, 'checked', false)
|
||||||
|
})
|
||||||
|
this.dataList = [...res.data]
|
||||||
|
},
|
||||||
|
/** 确认 */
|
||||||
|
async _confirmInstor () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.val1 || !this.pkId || !this.index) {
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await confirmInstor(this.pkObj, this.val1, this.index)
|
||||||
|
this.disabled = false
|
||||||
|
this.pkId = ''
|
||||||
|
this.pkObj = {}
|
||||||
|
this.searchList()
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toCheck (e) {
|
||||||
|
e.checked = !e.checked
|
||||||
|
this.checkArr = this.dataList.filter(i => { return i.checked === true })
|
||||||
|
},
|
||||||
|
toJump (e) {
|
||||||
|
this.$store.dispatch('setPublicObj', e)
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/warehouse/WarehouseReceiptDetails'
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus">
|
<style lang="stylus">
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user