Browse Source

备货模块搜索框展示

master_hella_20240701
chenfang 8 months ago
parent
commit
93715be671
  1. 19
      src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts
  2. 5
      src/views/wms/deliversettlementManage/stockup/stockupMainRecord/stockupMainRecord.data.ts
  3. 11
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts

19
src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts

@ -437,8 +437,7 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '单据号', label: '单据号',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true, table: {
table: {
width: 150 width: 150
}, },
hiddenInMain:true hiddenInMain:true
@ -447,7 +446,6 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '包装号', label: '包装号',
field: 'packingNumber', field: 'packingNumber',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 150 width: 150
}, },
@ -457,7 +455,6 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '批次', label: '批次',
field: 'batch', field: 'batch',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 150 width: 150
}, },
@ -467,7 +464,6 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',
sort: 'custom', sort: 'custom',
isSearch: true,
form: { form: {
component: 'Radio' component: 'Radio'
}, },
@ -480,7 +476,6 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '货主代码', label: '货主代码',
field: 'ownerCode', field: 'ownerCode',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 120 width: 120
}, },
@ -490,7 +485,6 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '器具号', label: '器具号',
field: 'containerNumber', field: 'containerNumber',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 120 width: 120
}, },
@ -501,7 +495,6 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 150 width: 150
}, },
@ -510,7 +503,6 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '物品名称', label: '物品名称',
field: 'itemName', field: 'itemName',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 150 width: 150
}, },
@ -519,7 +511,6 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '物品描述1', label: '物品描述1',
field: 'itemDesc1', field: 'itemDesc1',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 120 width: 120
}, },
@ -529,7 +520,6 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '物品描述2', label: '物品描述2',
field: 'itemDesc2', field: 'itemDesc2',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 120 width: 120
}, },
@ -539,7 +529,6 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 120 width: 120
}, },
@ -549,7 +538,6 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '数量', label: '数量',
field: 'qty', field: 'qty',
sort: 'custom', sort: 'custom',
isSearch: true,
}, },
{ {
label: '计量单位', label: '计量单位',
@ -575,7 +563,6 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '从库位', label: '从库位',
field: 'fromLocationCode', field: 'fromLocationCode',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 120 width: 120
}, },
@ -584,7 +571,6 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '到库位', label: '到库位',
field: 'toLocationCode', field: 'toLocationCode',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 120 width: 120
}, },
@ -593,7 +579,6 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
isSearch: true,
hiddenInMain:true, hiddenInMain:true,
}, },
{ {
@ -601,7 +586,6 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
field: 'createTime', field: 'createTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true,
hiddenInMain:true, hiddenInMain:true,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
@ -620,6 +604,7 @@ export const StockupDetailJob = useCrudSchemas(reactive<CrudSchema[]>([
label: '操作', label: '操作',
field: 'action', field: 'action',
isForm: false, isForm: false,
hiddenInMain: true,
table: { table: {
width: 150, width: 150,
fixed: 'right' fixed: 'right'

5
src/views/wms/deliversettlementManage/stockup/stockupMainRecord/stockupMainRecord.data.ts

@ -323,7 +323,6 @@ export const StockupDetailRecord = useCrudSchemas(reactive<CrudSchema[]>([
label: '包装号', label: '包装号',
field: 'packingNumber', field: 'packingNumber',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 150 width: 150
}, },
@ -333,7 +332,6 @@ export const StockupDetailRecord = useCrudSchemas(reactive<CrudSchema[]>([
label: '批次', label: '批次',
field: 'batch', field: 'batch',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 150 width: 150
}, },
@ -353,7 +351,6 @@ export const StockupDetailRecord = useCrudSchemas(reactive<CrudSchema[]>([
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 150 width: 150
}, },
@ -362,7 +359,6 @@ export const StockupDetailRecord = useCrudSchemas(reactive<CrudSchema[]>([
label: '物品名称', label: '物品名称',
field: 'itemName', field: 'itemName',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 150 width: 150
}, },
@ -556,7 +552,6 @@ export const StockupDetailRecord = useCrudSchemas(reactive<CrudSchema[]>([
field: 'available', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true,
isTable: true, isTable: true,
hiddenInMain: true, hiddenInMain: true,
sort: 'custom', sort: 'custom',

11
src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts

@ -280,6 +280,7 @@ export const StockupMainRequest = useCrudSchemas(reactive<CrudSchema[]>([
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id == cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
isForm:false,
form: { form: {
value: userDept.id, value: userDept.id,
component: 'Select', component: 'Select',
@ -495,7 +496,6 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
label: '单据号', label: '单据号',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true,
isForm: false, isForm: false,
isTableForm: false, isTableForm: false,
table: { table: {
@ -593,7 +593,6 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 150 width: 150
}, },
@ -630,7 +629,6 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
label: '物品名称', label: '物品名称',
field: 'itemName', field: 'itemName',
sort: 'custom', sort: 'custom',
isSearch: true,
isTableForm: false, isTableForm: false,
table: { table: {
width: 150 width: 150
@ -640,7 +638,6 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
label: '物品描述1', label: '物品描述1',
field: 'itemDesc1', field: 'itemDesc1',
sort: 'custom', sort: 'custom',
isSearch: true,
isTableForm: false, isTableForm: false,
table: { table: {
width: 120 width: 120
@ -651,7 +648,6 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
label: '物品描述2', label: '物品描述2',
field: 'itemDesc2', field: 'itemDesc2',
sort: 'custom', sort: 'custom',
isSearch: true,
isTableForm: false, isTableForm: false,
table: { table: {
width: 120 width: 120
@ -662,7 +658,6 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
label: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',
sort: 'custom', sort: 'custom',
isSearch: true,
isTableForm: false, isTableForm: false,
table: { table: {
width: 120 width: 120
@ -673,7 +668,6 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
label: '数量', label: '数量',
field: 'qty', field: 'qty',
sort: 'custom', sort: 'custom',
isSearch: true,
tableForm: { tableForm: {
type: 'InputNumber', type: 'InputNumber',
min: 1, min: 1,
@ -712,7 +706,6 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
label: '到库位', label: '到库位',
field: 'toLocationCode', field: 'toLocationCode',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 120 width: 120
}, },
@ -759,7 +752,6 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
isSearch: true,
hiddenInMain: true hiddenInMain: true
}, },
{ {
@ -767,7 +759,6 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
field: 'createTime', field: 'createTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true,
table: { table: {
width: 120 width: 120
}, },

Loading…
Cancel
Save