From 5524690c75bac7f3c3f27e68f2f008c0f55678fd Mon Sep 17 00:00:00 2001
From: zhang_li
Date: Sun, 27 Apr 2025 15:59:59 +0800
Subject: [PATCH] =?UTF-8?q?=E9=9A=94=E7=A6=BB=E5=87=BA=E5=BA=93=E6=8F=90?=
=?UTF-8?q?=E7=A4=BA=E4=BB=93=E5=BA=93=E5=92=8C=E5=BA=93=E4=BD=8D=E4=B8=8D?=
=?UTF-8?q?=E5=90=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../scrap/scrapRequestMain/index.vue | 42 +++++++++----------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue b/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
index d2c151fe2..51f2d4547 100644
--- a/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
+++ b/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
@@ -280,7 +280,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
if (formField === 'projectCode') {
setV['projectCode'] = val[0]['projectCode']
}
- if (formField === 'fromWarehouseCode' &&formRef.formModel.fromWarehouseCode != val[0]['code']) {
+ if (formField === 'fromLocationCode') {
+ setV['fromWarehouseCode'] = val[0]['warehouseCode']
tableData.value = []
}
if (formField === 'costcentreDescription') {
@@ -567,26 +568,25 @@ const handleHandle = async (id: number) => {
const formRef = ref()
const openForm = async (type: string, row?: any) => {
if (type == 'create') {
- const params = {
- by: 'ASC',
- filters: [
- { column: 'available', action: '==', value: 'TRUE' },
- ],
- pageNo: 1,
- pageSize: 500,
- sort: ''
- }
- params.isSearch = true
- WarehouseApi.getWarehouseByBusinessTypeSenior(params).then((res) => {
- if (res.list?.length > 0) {
- nextTick(() => {
- formRef.value.formRef.setValues({
- fromWarehouseCode: res.list[0].code
- })
- })
- }
- })
-
+ // const params = {
+ // by: 'ASC',
+ // filters: [
+ // { column: 'available', action: '==', value: 'TRUE' },
+ // ],
+ // pageNo: 1,
+ // pageSize: 500,
+ // sort: ''
+ // }
+ // params.isSearch = true
+ // WarehouseApi.getWarehouseByBusinessTypeSenior(params).then((res) => {
+ // if (res.list?.length > 0) {
+ // nextTick(() => {
+ // formRef.value.formRef.setValues({
+ // fromWarehouseCode: res.list[0].code
+ // })
+ // })
+ // }
+ // })
ScrapRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'q1Number' || item.field == 'q2Number' || item.field == 'q3Number') {
item.componentProps.enterSearch = true