新增点位管理
This commit is contained in:
@@ -129,6 +129,17 @@ uni-button:after {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
color: #ff6a00;
|
color: #ff6a00;
|
||||||
}
|
}
|
||||||
|
.unchecked {
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.checked-filled {
|
||||||
|
background-color: #ff6a00;
|
||||||
|
border-color: #ff6a00;
|
||||||
|
}
|
||||||
|
|
||||||
/** 内容 */
|
/** 内容 */
|
||||||
.zd_container {
|
.zd_container {
|
||||||
|
|||||||
@@ -50,6 +50,9 @@ input[type="button"], input[type="submit"], input[type="search"], input[type="re
|
|||||||
.jcflexstart {
|
.jcflexstart {
|
||||||
justify-content: flex-start !important;
|
justify-content: flex-start !important;
|
||||||
}
|
}
|
||||||
|
.jccenter {
|
||||||
|
justify-content: center !important;
|
||||||
|
}
|
||||||
|
|
||||||
.zd-row {
|
.zd-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -48,6 +48,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
,{
|
||||||
|
"path" : "pages/modules/point-manage",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
// "pageOrientation": "landscape",
|
// "pageOrientation": "landscape",
|
||||||
|
|||||||
@@ -32,9 +32,10 @@
|
|||||||
return {
|
return {
|
||||||
userName: '',
|
userName: '',
|
||||||
menuList: [
|
menuList: [
|
||||||
{id: '1', name: '人工排产', icon: 'RF01', path: '/pages/modules/man-paichan'},
|
{id: '1', name: '工单管理', icon: 'RF01', path: '/pages/modules/man-paichan'},
|
||||||
{id: '2', name: '涂线板', icon: 'RF02', path: '/pages/modules/wire-board'},
|
{id: '2', name: '涂线板', icon: 'RF02', path: '/pages/modules/wire-board'},
|
||||||
{id: '3', name: '物料库存', icon: 'RF03', path: '/pages/modules/mater-inventory'}
|
{id: '3', name: '物料库存', icon: 'RF03', path: '/pages/modules/mater-inventory'},
|
||||||
|
{id: '4', name: '点位管理', icon: 'RF04', path: '/pages/modules/point-manage'}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="zd_container">
|
<view class="zd_container">
|
||||||
<nav-bar title="人工排产"></nav-bar>
|
<nav-bar title="工单管理"></nav-bar>
|
||||||
<view class="zd_content">
|
<view class="zd_content">
|
||||||
<view class="zd_wrapper grid-wraper">
|
<view class="zd_wrapper grid-wraper">
|
||||||
<view class="slide_new">
|
<view class="slide_new">
|
||||||
|
|||||||
93
pages/modules/point-manage.vue
Normal file
93
pages/modules/point-manage.vue
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
<template>
|
||||||
|
<view class="zd_container">
|
||||||
|
<nav-bar title="点位管理"></nav-bar>
|
||||||
|
<view class="zd_content">
|
||||||
|
<view class="item-wrapper">
|
||||||
|
<view class="item-wrap" v-for="(e, i) in dataList" :key="i" @tap="toCheck(e)">
|
||||||
|
<view class="zd-row">
|
||||||
|
<view class="zd-row jccenter unchecked" :class="{'checked-filled': e.group_id === pkId}">
|
||||||
|
<uni-icons type="checkmarkempty" size="20" color="#fff"></uni-icons>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-21">
|
||||||
|
<view class="zd-row">
|
||||||
|
<view class="zd-col-24 item-font-1">{{e.point_code}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row">
|
||||||
|
<view class="zd-col-24 item-font-4">{{e.vehicle_name}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row">
|
||||||
|
<view class="zd-col-24 item-font-3">{{e.material_qty}}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row submit-bar_new">
|
||||||
|
<button class="zd-col-11 submit-button_new" @tap="_getGhsPointList">查询</button>
|
||||||
|
<button class="zd-col-11 submit-button_new" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="_changePointQty">更改固化室库存</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import {getGhsPointList, changePointQty} from '@/utils/getData2.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
dataList: [],
|
||||||
|
disabled: false,
|
||||||
|
pkId: ''
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
this._getGhsPointList()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async _getGhsPointList () {
|
||||||
|
let res = await getGhsPointList()
|
||||||
|
this.dataList = [...res]
|
||||||
|
},
|
||||||
|
toCheck (e) {
|
||||||
|
this.pkId = e.group_id === this.pkId ? '' : e.group_id
|
||||||
|
},
|
||||||
|
async _changePointQty () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.pkId) {
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await changePointQty(this.pkId)
|
||||||
|
this.disabled = false
|
||||||
|
this.pkId = ''
|
||||||
|
this._getGhsPointList()
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
.item-font-1
|
||||||
|
font-size 36rpx
|
||||||
|
color #333
|
||||||
|
font-weight 700
|
||||||
|
padding 0
|
||||||
|
.item-font-4
|
||||||
|
color #999
|
||||||
|
.item-font-3
|
||||||
|
font-size 36rpx
|
||||||
|
background-color transparent
|
||||||
|
text-align left
|
||||||
|
</style>
|
||||||
BIN
static/image/menu/RF04.png
Normal file
BIN
static/image/menu/RF04.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
@@ -80,3 +80,21 @@ export const getInventoryMaterialInfo = (code) => request({
|
|||||||
material_code: code
|
material_code: code
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 点位管理
|
||||||
|
*/
|
||||||
|
// 点位编码列表
|
||||||
|
export const getGhsPointList = () => request({
|
||||||
|
url:'api/pda/getGhsPointList',
|
||||||
|
data: {}
|
||||||
|
})
|
||||||
|
|
||||||
|
// 更改固化室库存
|
||||||
|
export const changePointQty = (id, qty) => request({
|
||||||
|
url:'api/pda/changePointQty',
|
||||||
|
data: {
|
||||||
|
group_id: id,
|
||||||
|
qty: qty
|
||||||
|
}
|
||||||
|
})
|
||||||
@@ -210,4 +210,19 @@ export const materialList = () => {
|
|||||||
export const getInventoryMaterialInfo = (code) => {
|
export const getInventoryMaterialInfo = (code) => {
|
||||||
let res = [{"material_code":"FJB","material_name":"负极板","point_code":"01-09-01","point_name":"01排09列01层","vehicle_code":"T202312060006","vehicle_type":"1"}]
|
let res = [{"material_code":"FJB","material_name":"负极板","point_code":"01-09-01","point_name":"01排09列01层","vehicle_code":"T202312060006","vehicle_type":"1"}]
|
||||||
return res
|
return res
|
||||||
|
}
|
||||||
|
export const getGhsPointList = () => {
|
||||||
|
let res = [
|
||||||
|
{
|
||||||
|
"point_code": "GHS0101",
|
||||||
|
"vehicle_name": "负涂片极板/真黑金/6-DZM-13.2",
|
||||||
|
"group_id": "1739900219769884672",
|
||||||
|
"material_qty": 9942
|
||||||
|
}
|
||||||
|
]
|
||||||
|
return res
|
||||||
|
}
|
||||||
|
export const changePointQty = (id, qty) => {
|
||||||
|
let res = {"message":"涂板线入库请求成功"}
|
||||||
|
return res
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user