Browse Source

WMS 需求:HL-6059 物料隔离申请选择时没有供应商代码或者名称

hella_online_20240927
高竟松 5 months ago
parent
commit
d7883e48e4
  1. 19
      src/views/wms/moveManage/inventorymove/inventorymoveJobMain/inventorymoveJobMain.data.ts
  2. 17
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/inventorymoveRecordMainOKHOLD.data.ts
  3. 22
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts

19
src/views/wms/moveManage/inventorymove/inventorymoveJobMain/inventorymoveJobMain.data.ts

@ -1,5 +1,7 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import {Supplier} from "@/views/wms/basicDataManage/supplierManage/supplier/supplier.data";
import * as SupplierApi from "@/api/wms/supplier";
/**
* @returns {Array}
@ -680,6 +682,23 @@ export const InventorymoveJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
},
{
label: '供应商代码',
field: 'supplierCode',
sort: 'custom',
isDetail: true,
table: {
width: 150,
},
},
{
label: '供应商名称',
field: 'supplierName',
isDetail: true,
table: {
width: 180
},
},
{
label: '供应商批次',
field: 'altBatch',

17
src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/inventorymoveRecordMainOKHOLD.data.ts

@ -487,6 +487,23 @@ export const InventorymoveRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
},
{
label: '供应商代码',
field: 'supplierCode',
sort: 'custom',
isDetail: true,
table: {
width: 150,
},
},
{
label: '供应商名称',
field: 'supplierName',
isDetail: true,
table: {
width: 180
},
},
{
label: '供应商批次',
field: 'altBatch',

22
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts

@ -25,9 +25,11 @@ const queryParams = {
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
import {Supplier} from "@/views/wms/basicDataManage/supplierManage/supplier/supplier.data";
import * as SupplierApi from "@/api/wms/supplier";
import * as SupplierItemApi from "@/api/wms/supplieritem";
import {
Supplieritem
} from "@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data";
import {getSupplieritemPage} from "@/api/wms/supplieritem";
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
@ -1142,8 +1144,18 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
searchListPlaceholder: '请选择供应商',
searchField: 'code',
searchTitle: '供应商信息',
searchAllSchemas: Supplier.allSchemas,
searchPage: SupplierApi.getSupplierPage,
searchAllSchemas: Supplieritem.allSchemas,
searchPage: SupplierItemApi.getSupplieritemPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key: 'costcentreType',
value: 'costCenterType',
message: '成本中心类型不能为空!',
isMainValue: true
}]
}
},
{

Loading…
Cancel
Save