贴标补码
This commit is contained in:
@@ -221,6 +221,13 @@
|
|||||||
{
|
{
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/WarehouseManage/LabelBind",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="submit-bar">
|
<view class="submit-bar">
|
||||||
<button class="submit-button" :class="{'btn-disabled': !val1 || dataList.length === 0}" :disabled="disabled" @tap="_stConfirm">入库确认</button>
|
<button class="submit-button" :class="{'btn-disabled': !val1 || dataList.length === 0}" :disabled="disabled" @tap="_stConfirm">入库确认</button>
|
||||||
<button class="submit-button" :class="{'btn-disabled': dataList.length === 0}" :disabled="disabled1" @tap="_stPrint">补码</button>
|
<!-- <button class="submit-button" :class="{'btn-disabled': dataList.length === 0}" :disabled="disabled1" @tap="_stPrint">补码</button> -->
|
||||||
<button class="submit-button" @tap="_boxQuery(val1)">查询</button>
|
<button class="submit-button" @tap="_boxQuery(val1)">查询</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
95
pages/WarehouseManage/LabelBind.vue
Normal file
95
pages/WarehouseManage/LabelBind.vue
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
<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_wraper">
|
||||||
|
<span class="filter_label">木箱</span>
|
||||||
|
</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<search-box
|
||||||
|
v-model="val1"
|
||||||
|
/>
|
||||||
|
</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="val2"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="submit-bar">
|
||||||
|
<button class="submit-button" :class="{'btn-disabled': !val1 }" :disabled="disabled1" @tap="_mendCode">贴标</button>
|
||||||
|
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled2" @tap="_stBale">捆扎</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {mendCode, stBale} from '@/utils/getData2.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
val1: '',
|
||||||
|
val2: '',
|
||||||
|
disabled1: false,
|
||||||
|
disabled2: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async _mendCode () {
|
||||||
|
this.disabled1 = true
|
||||||
|
if (!this.val1) {
|
||||||
|
this.disabled1 = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await mendCode(this.val1)
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.val1 = ''
|
||||||
|
this.disabled1 = false
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled1 = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async _stBale () {
|
||||||
|
this.disabled2 = true
|
||||||
|
if (!this.val1 || !this.val2) {
|
||||||
|
this.disabled2 = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await stBale(this.val1, this.val2)
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.val1 = ''
|
||||||
|
this.val2 = ''
|
||||||
|
this.disabled2 = false
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled2 = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus">
|
||||||
|
</style>
|
||||||
@@ -60,6 +60,7 @@ export const authority = () => {
|
|||||||
{menu_id: '4', name: '拆分入库', path: '/pages/WarehouseManage/InStoreSplit'},
|
{menu_id: '4', name: '拆分入库', path: '/pages/WarehouseManage/InStoreSplit'},
|
||||||
{menu_id: '5', name: '生产区发货', path: '/pages/WarehouseManage/ProdDeliveryConfirm'},
|
{menu_id: '5', name: '生产区发货', path: '/pages/WarehouseManage/ProdDeliveryConfirm'},
|
||||||
{menu_id: '6', name: '虚拟区发货', path: '/pages/WarehouseManage/XuniDelivery'},
|
{menu_id: '6', name: '虚拟区发货', path: '/pages/WarehouseManage/XuniDelivery'},
|
||||||
|
{menu_id: '7', name: '贴标捆扎', path: '/pages/WarehouseManage/LabelBind'}
|
||||||
]},
|
]},
|
||||||
{menu_id: '7', path: 'RF07', name: '在库管理', sonTree: [
|
{menu_id: '7', path: 'RF07', name: '在库管理', sonTree: [
|
||||||
{menu_id: '1', name: '盘点管理', path: '/pages/WarehouseManage/CheckList'},
|
{menu_id: '1', name: '盘点管理', path: '/pages/WarehouseManage/CheckList'},
|
||||||
@@ -440,4 +441,22 @@ url:'api/pda/task/confirm',
|
|||||||
data: {
|
data: {
|
||||||
task_rows: row
|
task_rows: row
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
/**
|
||||||
|
* 贴标捆扎
|
||||||
|
*/
|
||||||
|
// 1.1贴标
|
||||||
|
export const mendCode = (no) => request({
|
||||||
|
url:'api/pda/st/mendCode',
|
||||||
|
data: {
|
||||||
|
box_no: no
|
||||||
|
}
|
||||||
|
})
|
||||||
|
//1.2捆扎
|
||||||
|
export const stBale = (no, code) => request({
|
||||||
|
url:'api/pda/st/bale',
|
||||||
|
data: {
|
||||||
|
box_no: no,
|
||||||
|
point_code: code
|
||||||
|
}
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user