分切子卷维护
This commit is contained in:
@@ -456,3 +456,11 @@ uni-button[disabled]:not([type]) {
|
||||
color: #8a8a8a;
|
||||
border: 1px solid #ffffff;
|
||||
}
|
||||
|
||||
.msg_item {
|
||||
font-size: 28rpx;
|
||||
line-height: 30rpx;
|
||||
font-weight: 700;
|
||||
color: #ff6a00;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
@@ -463,6 +463,14 @@
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/SecondPhase/slitting/ZjSave",
|
||||
"style" :
|
||||
{
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
|
||||
}
|
||||
],
|
||||
"globalStyle": {
|
||||
// "pageOrientation": "landscape",
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
},
|
||||
/** 选择器 */
|
||||
selectChange1(e) {
|
||||
this.index = e
|
||||
this.index1 = e
|
||||
},
|
||||
selectChange2(e) {
|
||||
this.index2 = e
|
||||
|
||||
@@ -168,7 +168,7 @@
|
||||
},
|
||||
/** 选择器 */
|
||||
selectChange1(e) {
|
||||
this.index = e
|
||||
this.index1 = e
|
||||
},
|
||||
selectChange2(e) {
|
||||
this.index2 = e
|
||||
|
||||
158
pages/SecondPhase/slitting/ZjSave.vue
Normal file
158
pages/SecondPhase/slitting/ZjSave.vue
Normal file
@@ -0,0 +1,158 @@
|
||||
<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_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 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_wraper">
|
||||
<span class="filter_label">子卷号</span>
|
||||
</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view v-show="msg !== ''" class="msg_item">提示:{{msg}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-5 btn-submit btn-default letter-30" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-6 btn-submit btn-success letter-30" :class="{'btn-info': !index3 || !val1}" @tap="_querySlitterSubVolumeInfo">查询</button>
|
||||
<button class="zd-col-6 btn-submit btn-success letter-30" :class="{'btn-info': !index3}" :disabled="disabled" @tap="_unBindSlitterSubVolumeInfo">清除</button>
|
||||
<button class="zd-col-6 btn-submit btn-success letter-30" :class="{'btn-info': !index3 || !val1}" :disabled="disabled" @tap="_bindSlitterSubVolumeInfo">绑定</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {queryProductArea, queryDeviceByarea, devicePointQuery} from '@/utils/getData2.js'
|
||||
import {querySlitterSubVolumeInfo, unBindSlitterSubVolumeInfo, bindSlitterSubVolumeInfo} from '@/utils/getData3.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
options1: [],
|
||||
index1: '',
|
||||
options2: [],
|
||||
index2: '',
|
||||
options3: [],
|
||||
index3: '',
|
||||
val1: '',
|
||||
msg: '',
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
onLoad () {
|
||||
// this._queryProductArea()
|
||||
},
|
||||
methods: {
|
||||
/** 生产区域下拉框查询 */
|
||||
async _queryProductArea () {
|
||||
let res = await queryProductArea()
|
||||
this.options1 = [...res.data]
|
||||
},
|
||||
selectChange1(e) {
|
||||
this.index1 = e
|
||||
if (e) {
|
||||
this._queryDeviceByarea(e)
|
||||
} else {
|
||||
this.index2 = ''
|
||||
}
|
||||
},
|
||||
/** 设备下拉框 */
|
||||
async _queryDeviceByarea (e) {
|
||||
let res = await queryDeviceByarea(e)
|
||||
this.options2 = [...res.data]
|
||||
},
|
||||
selectChange2(e) {
|
||||
this.index2 = e
|
||||
if (e) {
|
||||
this._devicePointQuery(e)
|
||||
} else {
|
||||
this.index3 = ''
|
||||
}
|
||||
},
|
||||
/** 点位下拉框查询 */
|
||||
async _devicePointQuery (e) {
|
||||
let res = await devicePointQuery(e)
|
||||
this.options3 = [...res.data]
|
||||
},
|
||||
selectChange3(e) {
|
||||
this.index3 = e
|
||||
},
|
||||
clearUp () {
|
||||
this.index1 = ''
|
||||
this.index2 = ''
|
||||
this.options2 = []
|
||||
this.index3 = ''
|
||||
this.options3 = []
|
||||
this.val1 = ''
|
||||
this.disabled = false
|
||||
},
|
||||
async _querySlitterSubVolumeInfo () {
|
||||
let res = await querySlitterSubVolumeInfo(this.index3, this.val1)
|
||||
this.msg = res.msg
|
||||
},
|
||||
async _unBindSlitterSubVolumeInfo () {
|
||||
this.disabled = true
|
||||
if (!this.index3) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await unBindSlitterSubVolumeInfo(this.index3)
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
},
|
||||
async _bindSlitterSubVolumeInfo () {
|
||||
this.disabled = true
|
||||
if (!this.index3 || !this.val1) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await bindSlitterSubVolumeInfo(this.index3, this.val1)
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -203,3 +203,18 @@ export const shaftMaintenanceInventory = (code, type) => request({
|
||||
url:'api/pda/slitter/shaftMaintenanceInventory',
|
||||
data: {point_code: code, type: type}
|
||||
})
|
||||
/**
|
||||
* 分切子卷维护
|
||||
*/
|
||||
export const querySlitterSubVolumeInfo = (code, name) => request({
|
||||
url:'api/pda/slitter/querySlitterSubVolumeInfo',
|
||||
data: {point_code: code, container_name: name}
|
||||
})
|
||||
export const unBindSlitterSubVolumeInfo = (code) => request({
|
||||
url:'api/pda/slitter/unBindSlitterSubVolumeInfo',
|
||||
data: {point_code: code}
|
||||
})
|
||||
export const bindSlitterSubVolumeInfo = (code, name) => request({
|
||||
url:'api/pda/slitter/bindSlitterSubVolumeInfo',
|
||||
data: {point_code: code, container_name: name}
|
||||
})
|
||||
@@ -84,7 +84,8 @@ export const allAuthority = () => {
|
||||
{menu_id: '8', title: '纸管绑定', path: '/pages/SecondPhase/slitting/PaperBind'},
|
||||
{menu_id: '8', title: '分切暂存下料', path: '/pages/SecondPhase/slitting/CacheCut'},
|
||||
{menu_id: '8', title: '分切暂存清除', path: '/pages/SecondPhase/slitting/CacheClean'},
|
||||
{menu_id: '8', title: '气胀轴库维护', path: '/pages/SecondPhase/slitting/ShaftSave'}
|
||||
{menu_id: '8', title: '气胀轴库维护', path: '/pages/SecondPhase/slitting/ShaftSave'},
|
||||
{menu_id: '8', title: '分切子卷维护', path: '/pages/SecondPhase/slitting/ZjSave'}
|
||||
]},
|
||||
{menu_id: '6', path: 'RF04', title: '点位管理', sonTree: [
|
||||
{menu_id: '1', title: '点位管理', path: '/pages/SecondPhase/point/PointManage'},
|
||||
@@ -124,7 +125,7 @@ export const authority = () => {
|
||||
{title: '空木箱入库',sonTree: [{title: '空木箱入库'}]},
|
||||
{title: '发货区',sonTree: [{title: '发货区解绑'}]},
|
||||
{title: '生产管理',sonTree: [{title: '生箔生产进度'},{title: '生箔工序'},{title: '烘烤工序'},{title: '表处工序'},{title: '人工烘烤'},{title: '子卷质检'}]},
|
||||
{title: '分切管理', sonTree: [{title: '分切上料'},{title: '分切下料'},{title: '空轴套管'},{title: '空轴配送'},{title: '空轴进站'},{title: '子卷出站'},{title: '穿拔轴初始化'},{title: '纸管绑定'},{title: '分切暂存下料'},{title: '分切暂存清除'},{title: '气胀轴库维护'}]},
|
||||
{title: '分切管理', sonTree: [{title: '分切上料'},{title: '分切下料'},{title: '空轴套管'},{title: '空轴配送'},{title: '空轴进站'},{title: '子卷出站'},{title: '穿拔轴初始化'},{title: '纸管绑定'},{title: '分切暂存下料'},{title: '分切暂存清除'},{title: '气胀轴库维护'}, {title: '分切子卷维护'}]},
|
||||
{title: '点位管理', sonTree: [{title: '点位管理'},{title: '异常出库解锁'}]},
|
||||
{title: '成品入库', sonTree: [{title: '退货口入库'},{title: '异常口入库'},{title: '木箱称重'}]}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user