虚拟库
This commit is contained in:
@@ -107,11 +107,26 @@ uni-button:after {
|
||||
text-align-last: justify;
|
||||
text-justify: inter-ideograph;/*兼容ie*/
|
||||
}
|
||||
.filter_label_1 {
|
||||
line-height: 30rpx;
|
||||
}
|
||||
.filter_input_wraper {
|
||||
flex: 1;
|
||||
height: 80rpx;
|
||||
padding: 5rpx 0;
|
||||
margin-left: 30rpx;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
}
|
||||
.filter_input_wraper_1 {
|
||||
height: 30rpx;
|
||||
}
|
||||
.filter_input_wraper_inn_text {
|
||||
line-height: 30rpx;
|
||||
font-size: 28rpx;
|
||||
color: #606266;
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
.filter_input {
|
||||
width: 100%;
|
||||
|
||||
@@ -23,6 +23,15 @@
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label_wraper">
|
||||
<span class="filter_label filter_label_1"></span>
|
||||
</view>
|
||||
<view class="filter_input_wraper filter_input_wraper_1">
|
||||
<view class="iconfont icon_unchecked" :class="{'icon_checked': isV === '1'}" @tap="isVirtual"></view>
|
||||
<view class="filter_input_wraper_inn_text">虚拟库</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd_wrapper grid-wraper">
|
||||
<view class="slide_new">
|
||||
@@ -50,7 +59,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId || !val2}" :disabled="disabled" @tap="_stConfirm">入库确认</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="_stConfirm">入库确认</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled1" @tap="_stPrint">补码</button>
|
||||
<button class="submit-button" @tap="_boxQuery">查询</button>
|
||||
</view>
|
||||
@@ -70,6 +79,7 @@
|
||||
return {
|
||||
val1: '',
|
||||
val2: '',
|
||||
isV: '0',
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
@@ -81,6 +91,10 @@
|
||||
this._boxQuery()
|
||||
},
|
||||
methods: {
|
||||
/** 虚拟库 */
|
||||
isVirtual () {
|
||||
this.isV = this.isV === '0' ? '1' : '0'
|
||||
},
|
||||
/** 初始化查询 */
|
||||
async _boxQuery () {
|
||||
let res = await boxQuery(this.val1, this.val2, '2')
|
||||
@@ -89,12 +103,12 @@
|
||||
/** 确认 */
|
||||
async _stConfirm () {
|
||||
this.disabled = true
|
||||
if (!this.val2 || !this.pkId) {
|
||||
if (!this.pkId) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await stConfirm(this.pkObj, this.val2)
|
||||
let res = await stConfirm(this.pkObj, this.val2, '2', this.isV)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
|
||||
@@ -23,6 +23,21 @@
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label_wraper">
|
||||
<span class="filter_label filter_label_1"></span>
|
||||
</view>
|
||||
<view class="filter_input_wraper filter_input_wraper_1">
|
||||
<view class="iconfont icon_unchecked" :class="{'icon_checked': isV === '1'}" @tap="isVirtual"></view>
|
||||
<view class="filter_input_wraper_inn_text">虚拟库</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">木箱料号</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="text" class="filter_input" v-model="val3">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd_wrapper grid-wraper">
|
||||
<view class="slide_new">
|
||||
@@ -50,7 +65,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId || !val2}" :disabled="disabled" @tap="_stConfirm">入库确认</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="_stConfirm">入库确认</button>
|
||||
<button class="submit-button" @tap="_boxQuery">查询</button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -69,6 +84,8 @@
|
||||
return {
|
||||
val1: '',
|
||||
val2: '',
|
||||
val3: '',
|
||||
isV: '0',
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
@@ -79,6 +96,10 @@
|
||||
this._boxQuery()
|
||||
},
|
||||
methods: {
|
||||
/** 虚拟库 */
|
||||
isVirtual () {
|
||||
this.isV = this.isV === '0' ? '1' : '0'
|
||||
},
|
||||
/** 初始化查询 */
|
||||
async _boxQuery () {
|
||||
let res = await boxQuery(this.val1, this.val2, '3')
|
||||
@@ -87,12 +108,12 @@
|
||||
/** 确认 */
|
||||
async _stConfirm () {
|
||||
this.disabled = true
|
||||
if (!this.val2 || !this.pkId) {
|
||||
if (!this.pkId) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await stConfirm(this.pkObj, this.val2)
|
||||
let res = await stConfirm(this.pkObj, this.val2, '3', this.isV, this.val3)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
|
||||
@@ -23,6 +23,15 @@
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label_wraper">
|
||||
<span class="filter_label filter_label_1"></span>
|
||||
</view>
|
||||
<view class="filter_input_wraper filter_input_wraper_1">
|
||||
<view class="iconfont icon_unchecked" :class="{'icon_checked': isV === '1'}" @tap="isVirtual"></view>
|
||||
<view class="filter_input_wraper_inn_text">虚拟库</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd_wrapper grid-wraper">
|
||||
<view class="slide_new">
|
||||
@@ -50,7 +59,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId || !val2}" :disabled="disabled" @tap="_stConfirm">入库确认</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="_stConfirm">入库确认</button>
|
||||
<button class="submit-button" @tap="_boxQuery">查询</button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -69,6 +78,7 @@
|
||||
return {
|
||||
val1: '',
|
||||
val2: '',
|
||||
isV: '0',
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
@@ -79,6 +89,10 @@
|
||||
this._boxQuery()
|
||||
},
|
||||
methods: {
|
||||
/** 虚拟库 */
|
||||
isVirtual () {
|
||||
this.isV = this.isV === '0' ? '1' : '0'
|
||||
},
|
||||
/** 初始化查询 */
|
||||
async _boxQuery () {
|
||||
let res = await boxQuery(this.val1, this.val2, '1')
|
||||
@@ -87,12 +101,12 @@
|
||||
/** 确认 */
|
||||
async _stConfirm () {
|
||||
this.disabled = true
|
||||
if (!this.val2 || !this.pkId) {
|
||||
if (!this.pkId) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await stConfirm(this.pkObj, this.val2)
|
||||
let res = await stConfirm(this.pkObj, this.val2, '1', this.isV)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="_outconfirmInstor">确认出库</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId || !val1}" :disabled="disabled" @tap="_outconfirmInstor">确认出库</button>
|
||||
<button class="submit-button" @tap="_outcoolIOQuery">查询</button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -104,18 +104,18 @@
|
||||
},
|
||||
/** 初始化查询 */
|
||||
async _outcoolIOQuery () {
|
||||
let res = await outcoolIOQuery(this.val2, this.index, this.val1)
|
||||
let res = await outcoolIOQuery(this.val2, this.index)
|
||||
this.dataList = [...res.data]
|
||||
},
|
||||
/** 确认 */
|
||||
async _outconfirmInstor () {
|
||||
this.disabled = true
|
||||
if (!this.pkId) {
|
||||
if (!this.pkId || !this.val1) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await outconfirmInstor(this.pkObj)
|
||||
let res = await outconfirmInstor(this.pkObj, this.val1)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
|
||||
@@ -122,15 +122,15 @@ export const outcoolIOQuery = (name, area, code) => request({
|
||||
url:'api/pda/coolOut/coolIOQuery',
|
||||
data: {
|
||||
container_name: name,
|
||||
product_area: area,
|
||||
point_code: code
|
||||
product_area: area
|
||||
}
|
||||
})
|
||||
// 1.2确认出库
|
||||
export const outconfirmInstor = (raw_jo, code, is_bake) => request({
|
||||
url:'api/pda/coolOut/confirmInstor',
|
||||
data: {
|
||||
raw_jo: raw_jo
|
||||
raw_jo: raw_jo,
|
||||
point_code: code
|
||||
}
|
||||
})
|
||||
|
||||
@@ -146,17 +146,20 @@ export const boxQuery = (no, option, code) => request({
|
||||
point_code: code
|
||||
}
|
||||
})
|
||||
// 1.2确认出库
|
||||
export const stConfirm = (box_jo, code) => request({
|
||||
// 1.2确认入库
|
||||
export const stConfirm = (box_jo, code, option, is, mcode) => request({
|
||||
url:'api/pda/st/confirm',
|
||||
data: {
|
||||
box_jo: box_jo,
|
||||
point_code: code
|
||||
point_code: code,
|
||||
option: option,
|
||||
is_virtual: is,
|
||||
material_code: mcode
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 入库确认
|
||||
* 生产入库
|
||||
*/
|
||||
// 1.3补码
|
||||
export const stPrint = (box_jo) => request({
|
||||
|
||||
Reference in New Issue
Block a user