Browse Source

Merge remote-tracking branch 'origin/hella_online_20240803' into hella_online_20240803

linshi20240813
gaojs 3 months ago
parent
commit
a8d3956001
  1. 10
      src/views/wms/inventoryManage/package/index.vue
  2. 273
      src/views/wms/inventoryManage/package/package.data.ts
  3. 9
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue

10
src/views/wms/inventoryManage/package/index.vue

@ -86,9 +86,8 @@ const updataTableColumns = (val) => {
//
const searchTableParams = ref([
])
//
const searchTableSuccess = (formField, searchField, val, basicFormRef, type, row ) => {
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
@ -98,8 +97,6 @@ const searchTableSuccess = (formField, searchField, val, basicFormRef, type, row
setV['itemDesc2'] = val[0]['desc2']
setV['uom'] = val[0]['uom']
setV['altUom'] = val[0]['altUom']
setV['packUnit'] = null
setV['packQty'] = null
}
else if (formField == 'packUnit'){
setV['packQty'] = val[0]['packQty']
@ -108,10 +105,9 @@ const searchTableSuccess = (formField, searchField, val, basicFormRef, type, row
setV['toLocationCode'] = null
}
else if(formField == 'supplierCode'){
setV['supplierItemCode'] = null
setV['supplierItemCode'] = val[0]['supplierItemCode']
}
basicFormRef.setValues(setV)
basicFormRef.setValues(setV)
formRef.setValues(setV)
})
}

273
src/views/wms/inventoryManage/package/package.data.ts

@ -15,6 +15,8 @@ import * as SupplierApi from "@/api/wms/supplier";
import {Itempackaging} from "@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data";
import * as ItempackagingApi from "@/api/wms/itempackage";
import * as SupplieritemApi from "@/api/wms/supplieritem";
import { formatTime } from '@/utils/index'
import {
Supplieritem
} from "@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data";
@ -121,6 +123,9 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
field: 'batch',
sort: 'custom',
isSearch: true,
form:{
value: formatTime(new Date(), 'yyyyMMdd')
},
table: {
width: 150,
},
@ -160,6 +165,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
},
form: {
component: 'DatePicker',
value: formatTime(new Date(), 'yyyy-MM-dd'),
componentProps: {
style: {width: '100%'},
type: 'date',
@ -290,20 +296,21 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
enterSearch:true,
isSearch:true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装规格', // 输入框占位文本
searchField: 'itemCode', // 查询弹窗赋值字段
searchTitle: '物料包装信息', // 查询弹窗标题
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
searchListPlaceholder: '请选择物料代码',
searchField: 'packUnit',
searchTitle: '物料包装信息',
searchAllSchemas: Itempackaging.allSchemas,
searchPage: ItempackagingApi.getItempackagingPageTree,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key: 'itemCode',
value: 'itemCode',
message: '请填写物料代码!',
isMainValue: true
key:'itemCode', // 查询列表中字段
value:'itemCode', // 指主表某字段
message: '请选择物料代码!', // 当前置条件为空时 弹出信息提示
isMainValue: true, // 表示查询条件是主表的字段的值
action: '==', // 查询拼接条件
}],
verificationParams: [{
key: 'packUnit',
@ -313,6 +320,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
}
},
@ -329,9 +337,90 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
}
},
},
// {
// label: '仓库代码',
// field: 'toWarehouseCode',
// sort: 'custom',
// table: {
// width: 150,
// },
// form: {
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// enterSearch:true,
// isSearch:true,
// isSearchList: true, // 开启查询弹窗
// searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
// searchField: 'code', // 查询弹窗赋值字段
// searchTitle: '仓库信息', // 查询弹窗标题
// searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
// searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法
// searchCondition: [{
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// }]
// }
// }
// },
// {
// label: '月台代码',
// field: 'toDockCode',
// sort: 'custom',
// table: {
// width: 150,
// },
// form: {
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// enterSearch: true,
// isSearchList: true,
// searchListPlaceholder: '请选择月台代码',
// searchField: 'code',
// searchTitle: '客户月台',
// searchAllSchemas: Dock.allSchemas,
// searchPage: DockApi.getDockPage,
// searchCondition: [{
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// }],
// }
// }
// },
// {
// label: '库位代码',
// field: 'toLocationCode',
// sort: 'custom',
// table: {
// width: 150,
// },
// form: {
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// enterSearch: true,
// isSearchList: true,
// searchListPlaceholder: '请选择库位代码',
// searchField: 'code',
// searchTitle: '库位信息',
// searchAllSchemas: Location.allSchemas,
// searchPage: LocationApi.getLocationPage,
// searchCondition: [{
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// },{
// key: 'warehouseCode',
// value: 'toWarehouseCode',
// message: '请填写仓库代码!',
// isMainValue: true
// }],
// }
// }
// },
{
label: '仓库代码',
field: 'toWarehouseCode',
label: '供应商代码',
field: 'supplierCode',
sort: 'custom',
table: {
width: 150,
@ -340,102 +429,22 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch:true,
isSearch:true,
isInpuFocusShow: true,
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
searchField: 'supplierCode', // 查询弹窗赋值字段
searchTitle: '供应商物料信息',
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '仓库信息', // 查询弹窗标题
searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
}
},
{
label: '月台代码',
field: 'toDockCode',
sort: 'custom',
table: {
width: 150,
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
isSearchList: true,
searchListPlaceholder: '请选择月台代码',
searchField: 'code',
searchTitle: '客户月台',
searchAllSchemas: Dock.allSchemas,
searchPage: DockApi.getDockPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}],
}
}
},
{
label: '库位代码',
field: 'toLocationCode',
sort: 'custom',
table: {
width: 150,
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
isSearchList: true,
searchListPlaceholder: '请选择库位代码',
searchField: 'code',
searchTitle: '库位信息',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.getLocationPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key: 'warehouseCode',
value: 'toWarehouseCode',
message: '请填写仓库代码!',
searchAllSchemas: Supplieritem.allSchemas, // 查询弹窗所需类
searchPage: SupplieritemApi.getSupplieritemPage, // 查询弹窗所需分页方法
searchCondition:[{
key: 'itemCode',
value: 'itemCode',
message: '请填写物料代码!',
isMainValue: true
}],
}
}
},
{
label: '供应商代码',
field: 'supplierCode',
sort: 'custom',
table: {
width: 150,
},
form: {
componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择供应商', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '供应商信息', // 查询弹窗标题
searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
searchPage: SupplierApi.getSupplierPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
],
verificationParams: [
{
key: 'code',
key: 'supplierCode',
action: '==',
value: '',
isMainValue: false,
@ -443,6 +452,7 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
isFormModel: true
}
] // 失去焦点校验参数
}
}
},
@ -455,35 +465,36 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
},
form: {
componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择供应商物料', // 输入框占位文本
searchField: 'supplierItemCode', // 查询弹窗赋值字段
searchTitle: '供应商信息', // 查询弹窗标题
searchAllSchemas: Supplieritem.allSchemas, // 查询弹窗所需类
searchPage: SupplieritemApi.getSupplieritemPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key: 'supplierCode',
value: 'supplierCode',
message: '请填写物料代码!',
isMainValue: true
}
],
verificationParams: [
{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true
}
] // 失去焦点校验参数
disabled: true
// enterSearch: true,
// isSearchList: true, // 开启查询弹窗
// searchListPlaceholder: '请选择供应商物料', // 输入框占位文本
// searchField: 'supplierItemCode', // 查询弹窗赋值字段
// searchTitle: '供应商信息', // 查询弹窗标题
// searchAllSchemas: Supplieritem.allSchemas, // 查询弹窗所需类
// searchPage: SupplieritemApi.getSupplieritemPage, // 查询弹窗所需分页方法
// searchCondition: [
// {
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// },{
// key: 'supplierCode',
// value: 'supplierCode',
// message: '请填写物料代码!',
// isMainValue: true
// }
// ],
// verificationParams: [
// {
// key: 'code',
// action: '==',
// value: '',
// isMainValue: false,
// isSearch: true,
// isFormModel: true
// }
// ] // 失去焦点校验参数
}
}
},

9
src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue

@ -1,7 +1,7 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="[...InventorymoveRecordMainNew.allSchemas.searchSchema,...InventorymoveRecordDetailNew.allSchemas.searchSchema]" @search="setSearchParams" @reset="setSearchParams" />
<Search :schema="[...InventorymoveRecordMainNew.allSchemas.searchSchema,...InventorymoveRecordDetailNew.allSchemas.searchSchema]" @search="setSearchParams({'business_type':'Move'})" @reset="setSearchParams({'business_type':'Move'})" />
</ContentWrap>
<!-- 列表头部 -->
@ -117,6 +117,7 @@ const updataTableColumns = (val) => {
}
const { tableObject, tableMethods } = useTable({
defaultParams:{'business_type':'Move'},
getListApi: InventorymoveRecordDetailApi.getInventorymoveRecordDetailPage //
})
@ -407,7 +408,11 @@ const importSuccess = () => {
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
filters: [...searchData.filters,{
action: "==",
column: "business_type",
value: "Move"
}]
}
getList() //
}

Loading…
Cancel
Save