From 91fcaebddc817cc6bbb6d2693b51acf5af54fbeb Mon Sep 17 00:00:00 2001
From: caill <815519168@qq.com>
Date: Mon, 18 Sep 2023 10:14:38 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E5=85=A5=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/WarehouseManage/InStoreConfirm.vue | 31 ++++++++++++++++++++----
utils/getData2.js | 10 ++++++--
2 files changed, 34 insertions(+), 7 deletions(-)
diff --git a/pages/WarehouseManage/InStoreConfirm.vue b/pages/WarehouseManage/InStoreConfirm.vue
index 65a633f..f2c0133 100644
--- a/pages/WarehouseManage/InStoreConfirm.vue
+++ b/pages/WarehouseManage/InStoreConfirm.vue
@@ -9,7 +9,7 @@
-
+
@@ -32,6 +32,12 @@
虚拟库
+
+ 库区
+
+
+
+
@@ -59,7 +65,7 @@
-
+
@@ -71,7 +77,7 @@
import SearchBox from '@/components/SearchBox.vue'
import SearchBoxMx from '@/components/SearchBoxMx.vue'
import permision from "@/utils/permission.js"
- import {boxQuery, stConfirm, stPrint} from '@/utils/getData2.js'
+ import {boxQuery, stConfirm, stPrint, getStorSect} from '@/utils/getData2.js'
export default {
components: {
NavBar,
@@ -83,12 +89,17 @@
val1: '',
val2: '',
isV: '0',
+ options1: [],
+ index1: '',
dataList: [],
disabled: false,
disabled1: false,
focused: true
};
},
+ created () {
+ this._getStorSect()
+ },
mounted () {
setTimeout(() => {
uni.hideKeyboard()
@@ -99,6 +110,15 @@
isVirtual () {
this.isV = this.isV === '0' ? '1' : '0'
},
+ /** 选择器2 */
+ selectChange1(e) {
+ this.index1 = e
+ },
+ /** 库区下拉框查询 */
+ async _getStorSect () {
+ let res = await getStorSect()
+ this.options1 = [...res.data]
+ },
/** 初始化查询 */
async _boxQuery (e) {
let res = await boxQuery(e, '2')
@@ -107,17 +127,18 @@
/** 确认 */
async _stConfirm () {
this.disabled = true
- if (!this.val1 || this.dataList.length === 0) {
+ if (!this.val1 || this.dataList.length === 0 || (this.isV === '1' && this.index1 === '')) {
this.disabled = false
return
}
try {
- let res = await stConfirm(this.dataList, this.val2, '2', this.isV, '', this.val1)
+ let res = await stConfirm(this.dataList, this.val2, '2', this.isV, '', this.val1, this.index1)
this.disabled = false
// this._boxQuery(this.val1)
this.val1 = ''
this.val2 = ''
this.isV = '0'
+ this.index1 = ''
this.dataList = []
uni.showToast({
title: res.message,
diff --git a/utils/getData2.js b/utils/getData2.js
index fadbeff..90bb9f2 100644
--- a/utils/getData2.js
+++ b/utils/getData2.js
@@ -363,7 +363,7 @@ export const boxQuery = (no, option, code) => request({
}
})
// 1.2确认入库
-export const stConfirm = (box_jo, code, option, is, mcode, no) => request({
+export const stConfirm = (box_jo, code, option, is, mcode, no, sid) => request({
url:'api/pda/st/confirm',
data: {
box_jo: box_jo,
@@ -371,7 +371,8 @@ export const stConfirm = (box_jo, code, option, is, mcode, no) => request({
option: option,
is_virtual: is,
material_code: mcode,
- box_no: no
+ box_no: no,
+ sect_id: sid
}
})
@@ -385,6 +386,11 @@ export const stPrint = (box_jo) => request({
box_jo: box_jo
}
})
+// 库区
+export const getStorSect = () => request({
+ url:'api/sectattr/getStorSect',
+ data: {}
+})
/**
* 客户标签打印