add 子卷下线

This commit is contained in:
蔡玲
2024-09-13 15:41:45 +08:00
parent 1232fd7c5c
commit 940254749e
4 changed files with 117 additions and 1 deletions

View File

@@ -130,6 +130,14 @@
}
}
,{
"path" : "pages/manage/sub-vol-offline",
"style" :
{
"navigationStyle": "custom"
}
}
],
"globalStyle": {
// "pageOrientation": "landscape",

View File

@@ -0,0 +1,99 @@
<template>
<view class="zd_container">
<nav-bar :title="title"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">子卷号</span>
</view>
<view class="zd-col-17">
<search-box
v-model="val1"
/>
</view>
</view>
<view class="zd-row">
<view class="zd-col-7">
<span class="filter_label">成品称重暂存区</span>
</view>
<view class="zd-col-17 filter_select">
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">载具号</span>
</view>
<view class="zd-col-17">
<search-box
v-model="val2"
/>
</view>
</view>
</view>
</view>
<view class="zd-row submit-bar">
<button class="zd-col-8 button-default" @tap="clearUp">清空</button>
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !index}" :disabled="disabled" @tap="_doSubVolumeDown">子卷下线</button>
</view>
</view>
</template>
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {getWeightCacheInfos, doSubVolumeDown} from '@/utils/getData2.js'
export default {
components: {
NavBar,
SearchBox
},
data() {
return {
title: '',
val1: '',
index: '',
options: [],
val2: '',
disabled: false
};
},
onLoad (options) {
this.title = options.title
this._getWeightCacheInfos()
},
methods: {
async _getWeightCacheInfos () {
let res = await getWeightCacheInfos()
this.options = [...res]
},
async _doSubVolumeDown () {
this.disabled = true
if (!this.val1 || !this.index) {
this.disabled = false
return
}
try {
let res = await doSubVolumeDown(this.index, this.val1, this.val2)
this.clearUp()
uni.showToast({
title: res.message,
icon: 'none'
})
} catch (e) {
this.disabled = false
}
},
clearUp () {
this.val1 = ''
this.index = ''
this.val2 = ''
this.disabled = false
}
}
}
</script>
<style lang="stylus">
</style>

View File

@@ -183,4 +183,13 @@ export const bakingQuality = (code, quality) => request({
export const requestTubeShaft = (row) => request({
url:'api/pda/slitter/requestTubeShaft',
data: {row: row}
})
// 子卷下线
export const getWeightCacheInfos = () => request({
url:'api/pda/nbj/getWeightCacheInfos',
data: {}
})
export const doSubVolumeDown = (code, cn, vcode) => request({
url:'api/pda/nbj/doSubVolumeDown',
data: {point_code: code, container_name: cn, vehicle_code: vcode}
})

View File

@@ -10,7 +10,7 @@ export const authority = () => {
{path: 'RF03', title: '废箔处理', sonTree: [{title: '废箔搬运', path: '/pages/manage/waste-foil-move'}]},
{path: 'RF04', title: '内包间', sonTree: [{title: '管芯入库', path: '/pages/manage/tube-core-storage'}, {title: '管芯出库', path: '/pages/manage/tube-core-out'}, {title: '套轴绑定', path: '/pages/manage/axis-bind'}, {title: '重量维护', path: '/pages/manage/weight-bind'}, {title: '套轴申请', path: '/pages/manage/axis-application'}]},
{path: 'RF05', title: '装箱区', sonTree: [{title: '装箱暂存管理', path: '/pages/manage/pack-storage'}]},
{path: 'RF06', title: '分切管理', sonTree: [{title: '分切上料', path: '/pages/manage/split-feed'}, {title: '分切下料', path: '/pages/manage/split-cut'}, {title: '子卷维护', path: '/pages/manage/sub-vol-bind'}]},
{path: 'RF06', title: '分切管理', sonTree: [{title: '分切上料', path: '/pages/manage/split-feed'}, {title: '分切下料', path: '/pages/manage/split-cut'}, {title: '子卷维护', path: '/pages/manage/sub-vol-bind'}, {title: '子卷下线', path: '/pages/manage/sub-vol-offline'}]},
{path: 'RF07', title: '生产管理', sonTree: [{title: '生箔工序', path: '/pages/manage/raw-foil-progess'}, {title: '烘烤工序', path: '/pages/manage/bake-process'}]}
]
}