add分切暂存维护

This commit is contained in:
2025-05-21 15:24:24 +08:00
parent 0d1d62712d
commit ca5a4c979c
4 changed files with 83 additions and 1 deletions

View File

@@ -695,6 +695,14 @@
}
}
,{
"path" : "pages/SecondPhase/slitting/CacheSave",
"style" :
{
"navigationStyle": "custom"
}
}
],
"globalStyle": {
// "pageOrientation": "landscape",

View File

@@ -0,0 +1,66 @@
<template>
<view class="zd_container">
<!-- <nav-bar title="分切暂存维护"></nav-bar> -->
<nav-bar :title="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">
<search-box v-model="val1" />
</view>
</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-8 btn-submit btn-success letter-30" :class="{'btn-info': !val1}" :disabled="disabled" @tap="_cutCacheInventory('0')">清除</button>
<button class="zd-col-8 btn-submit btn-success letter-30" :class="{'btn-info': !val1}" :disabled="disabled" @tap="_cutCacheInventory('1')">放轴</button>
</view>
</view>
</template>
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {cutCacheInventory} from '@/utils/getData3.js'
export default {
components: {
NavBar,
SearchBox
},
data() {
return {
title: '',
val1: '',
disabled: false
};
},
onLoad (options) {
this.title = options.title
},
methods: {
async _cutCacheInventory (type) {
this.disabled = true
if (!this.val1) {
this.disabled = false
return
}
try {
let res = await cutCacheInventory(this.val1, type)
uni.showToast({
title: res.message,
icon: 'none'
})
this.disabled = false
} catch (e) {
this.disabled = false
}
},
clearUp () {
this.val1 = ''
this.disabled = false
}
}
}
</script>

View File

@@ -557,4 +557,11 @@ export const downBait = (area, device, point, lk, lkv, rk, rkv, up) => request({
export const updatePackagePoint = (ivt, code) => request({
url:'api/twoPda/vehicle/updatePackagePoint',
data: {ivt_status: ivt, pointCode: code}
})
/**
* 分切暂存维护(二期-分切管理)
*/
export const cutCacheInventory = (code, type) => request({
url:'/api/pda/slitter/cutCacheInventory',
data: {point_code: code, type: type}
})

View File

@@ -108,7 +108,8 @@ export const allAuthority = () => {
{menu_id: '8', title: '母卷暂存管理', path: '/pages/SecondPhase/slitting/RollCacheManage'},
{menu_id: '8', title: '饵料下卷', path: '/pages/SecondPhase/slitting/BaitRoll'},
{menu_id: '8', title: '空轴绑定', path: '/pages/SecondPhase/slitting/EmptyAxisBind'},
{menu_id: '8', title: '空轴退回', path: '/pages/SecondPhase/slitting/EmptyAxisReturn'}
{menu_id: '8', title: '空轴退回', path: '/pages/SecondPhase/slitting/EmptyAxisReturn'},
{menu_id: '8', title: '分切暂存维护', path: '/pages/SecondPhase/slitting/CacheSave'},
]},
{menu_id: '10', path: 'RF15', title: '打包间管理', sonTree: [
{menu_id: '1', title: '子卷包装解绑', path: '/pages/SecondPhase/SubRollPackUnbind'},