涂线板

This commit is contained in:
2024-02-22 16:33:18 +08:00
parent 2725e42919
commit f2c4e803c4
5 changed files with 224 additions and 7 deletions

View File

@@ -241,6 +241,9 @@ uni-button:after {
height: 100%;
overflow-y: auto;
}
.slide_h {
overflow-y: hidden;
}
.slide_new table {
table-layout: fixed;
min-width: 100%;
@@ -251,13 +254,18 @@ uni-button:after {
.slide_new table td, .slide_new table th {
box-sizing: border-box;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
white-space: nowrap;
padding: 0 20rpx;
border-bottom: 10rpx solid #f5f5f5;
text-align: center;
}
.slide_h table td, .slide_h table th {
white-space: wrap;
padding: 0 20rpx;
border-bottom: 10rpx solid #f5f5f5;
text-align: center;
}
.slide_new table td:first-child, .slide_new table th:first-child{
position: sticky;
left: 0;
@@ -268,7 +276,8 @@ uni-button:after {
top: 0;
background: #d7d7d7;
font-size: 26rpx;
line-height: 98rpx;
line-height: 28rpx;
padding: 35rpx 10rpx;
color: #7d7d7d;
background-color: #dcdfea;
font-weight: bold;
@@ -281,6 +290,13 @@ uni-button:after {
color: #7d7d7d;
background: #fff;
}
.slide_h table tbody tr td {
font-size: 28rpx;
line-height: 28rpx;
padding: 14rpx 20rpx;
color: #7d7d7d;
background: #fff;
}
.slide_new table tbody tr.checked td {
background-color: #f9efb6;
}
@@ -319,6 +335,76 @@ uni-button:after {
background-color: #f3ccb5;
color: #ff5e00;
}
.item-wrapper {
width: 100%;
height: auto;
}
.item-wrap {
background-color: #fff;
border-radius: 24rpx;
padding: 22rpx 14rpx;
margin-bottom: 20rpx;
box-shadow: 0 4rpx 10rpx 2rpx rgba(0,0,0,.1);
}
.item-font-1 {
font-size: 28rpx;
color: #42444a;
line-height: 30rpx;
padding: 14rpx 4rpx;
}
.item-font-2 {
font-size: 26rpx;
color: #2b87ff;
line-height: 30rpx;
padding: 14rpx 4rpx;
background-color: #edf6ff;
border-radius: 10rpx;
text-align: center;
}
.item-font-3 {
font-size: 26rpx;
color: #ff8824;
line-height: 30rpx;
padding: 14rpx 4rpx;
background-color: #fff4ea;
border-radius: 10rpx;
text-align: center;
}
.item-font-4 {
font-size: 26rpx;
color: #c1c1c3;
line-height: 30rpx;
padding: 14rpx 4rpx;
}
.item-status {
font-size: 26rpx;
color: #fff;
line-height: 14px;
padding: 6rpx 1rpx;
background-color: #fff;
border-radius: 10rpx;
text-align: center;
}
.item-status-1 {
background-color: #cfd2d4;
color: #5e5d5d;
}
.item-status-2 {
color: #bf8836;
background-color: #f0e2cd;
}
.item-status-3 {
background-color: #f3ccb5;
color: #ff5e00;
}
.item-status-4 {
background-color: #96f3b8;
color: #36744c;
}
.item-line-1 {
height: 1rpx;
background-color: #b8b8ba;
}
/** 提交栏 **/
.submit-bar {

View File

@@ -32,6 +32,14 @@
}
}
,{
"path" : "pages/modules/wire-board",
"style" :
{
"navigationStyle": "custom"
}
}
],
"globalStyle": {
// "pageOrientation": "landscape",

View File

@@ -33,7 +33,7 @@
userName: '',
menuList: [
{id: '1', name: '人工排产', icon: 'RF01', path: '/pages/modules/man-paichan'},
{id: '2', name: '涂线板', icon: 'RF02', path: '/pages/manage/man-group-disk'},
{id: '2', name: '涂线板', icon: 'RF02', path: '/pages/modules/wire-board'},
{id: '3', name: '物料库存', icon: 'RF03', path: '/pages/manage/man-group-disk'}
]
};

View 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-3 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-3 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-6 submit-button_new" @tap="toClear">清空</button>
<button class="zd-col-8 submit-button_new" @tap="_coatedWireIntoStorageTaskShow">刷新</button>
<button class="zd-col-8 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>

View File

@@ -96,10 +96,14 @@ export const productionComplete = (code, user) => request({
* 涂板线
*/
// 数据
export const coatedWireIntoStorageTaskShow = () => request({
url:'api/pda/manualSorting/coatedWireIntoStorageTaskShow',
data: {}
})
// export const coatedWireIntoStorageTaskShow = () => request({
// url:'api/pda/manualSorting/coatedWireIntoStorageTaskShow',
// data: {}
// })
export const coatedWireIntoStorageTaskShow = () => {
let res = [{"point_name1":"普涂线01对接位01","point_name2":'普涂线01对接位01',"point_name3":'普涂线01对接位01',"point_name4":'普涂线01对接位01',"task_status":"1","remark":"普涂线01对接位01"}, {"point_name1":"普涂线01对接位01","point_name2":'普涂线01对接位01',"point_name3":'普涂线01对接位01',"point_name4":'普涂线01对接位01',"task_status":"2","remark":"普涂线01对接位01"}, {"point_name1":"普涂线01对接位01","point_name2":'普涂线01对接位01',"point_name3":'普涂线01对接位01',"point_name4":'普涂线01对接位01',"task_status":"3","remark":"普涂线01对接位01"}, {"point_name1":"普涂线01对接位01","point_name2":'普涂线01对接位01',"point_name3":'普涂线01对接位01',"point_name4":'普涂线01对接位01',"task_status":"4","remark":"普涂线01对接位01"}]
return res
}
// 入库
export const coatedWireIntoStorageTask = (code, qty) => request({
url:'api/pda/manualSorting/coatedWireIntoStorageTask',