Browse Source

采购退货记录

master_hella_20240701
yufei0306 7 months ago
parent
commit
786c67045c
  1. 152
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/purchasereturnRecordMain.data.ts

152
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/purchasereturnRecordMain.data.ts

@ -13,6 +13,7 @@ export const PurchasereturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 180, width: 180,
fixed: 'left' fixed: 'left'
}, },
sortTableDefault: 1012,
sortSearchDefault:1, sortSearchDefault:1,
isSearch: true isSearch: true
}, },
@ -331,7 +332,7 @@ export const PurchasereturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '备注', label: '原因',
field: 'available', field: 'available',
sort: 'custom', sort: 'custom',
table: { table: {
@ -456,7 +457,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
isSearch: true, isSearch: true,
hiddenInMain: true, hiddenInMain: true,
sortSearchDefault: 1002, sortSearchDefault: 1002,
sortTableDefault: 1001,
}, },
{ {
label: '包装规格', label: '包装规格',
@ -469,6 +470,43 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
}, },
sortTableDefault: 1004, sortTableDefault: 1004,
}, },
{
label: '包装数量',
field: 'packQty',
sort: 'custom',
table: {
width: 150
},
sortTableDefault: 1004,
form: {
component: 'InputNumber',
}
},
{
label: '退货数量',
field: 'returnedQty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
min: 0,
precision: 6,
disabled:false
}
},
sortTableDefault: 1004,
hiddenInMain:true,
isForm:false,
tableForm:{
type:'InputNumber',
min:0,
precision: 6,
disabled:false
}
},
{ {
label: '从器具号', label: '从器具号',
field: 'fromContainerNumber', field: 'fromContainerNumber',
@ -476,6 +514,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTable:false,
hiddenInMain: true hiddenInMain: true
}, },
{ {
@ -485,6 +524,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTable:false,
hiddenInMain: true hiddenInMain: true
}, },
{ {
@ -505,6 +545,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
isSearch: true, isSearch: true,
sortTableDefault: 1000,
hiddenInMain: true hiddenInMain: true
}, },
{ {
@ -514,6 +555,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTable:false,
hiddenInMain: true hiddenInMain: true
}, },
{ {
@ -523,6 +565,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 1009,
hiddenInMain: true hiddenInMain: true
}, },
{ {
@ -532,6 +575,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 1009,
hiddenInMain: true hiddenInMain: true
}, },
{ {
@ -541,6 +585,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 1010,
hiddenInMain: true hiddenInMain: true
}, },
{ {
@ -550,6 +595,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 1010,
hiddenInMain: true hiddenInMain: true
}, },
{ {
@ -559,6 +605,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 1010,
hiddenInMain: true hiddenInMain: true
}, },
{ {
@ -568,6 +615,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 1010,
hiddenInMain: true hiddenInMain: true
}, },
{ {
@ -577,6 +625,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 1010,
hiddenInMain: true hiddenInMain: true
}, },
{ {
@ -586,6 +635,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 1010,
hiddenInMain: true hiddenInMain: true
}, },
{ {
@ -598,6 +648,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 1008,
hiddenInMain: true hiddenInMain: true
}, },
{ {
@ -607,6 +658,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 4,
}, },
{ {
label: '订单行', label: '订单行',
@ -615,44 +667,33 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 5,
}, },
{ {
label: '原因', label: '单据号',
field: 'reason', field: 'number',
dictType: DICT_TYPE.PURCHASE_RETURN_REASON,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
hiddenInMain: true
},
{
label: '单价',
field: 'singlePrice',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 180,
},
form: {
component: 'InputNumber',
}, },
hiddenInMain: true sortTableDefault: 1013,
hiddenInMain: true,
isSearch: true
}, },
{ {
label: '金额', label: '原因',
field: 'amount', field: 'reason',
dictType: DICT_TYPE.PURCHASE_RETURN_REASON,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: { sortTableDefault: 1013,
component: 'InputNumber',
},
hiddenInMain: true hiddenInMain: true
}, },
{ {
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
@ -670,6 +711,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortSearchDefault: 6,
}, },
{ {
label: '物料描述1', label: '物料描述1',
@ -678,6 +720,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortSearchDefault: 7,
hiddenInMain: true hiddenInMain: true
}, },
{ {
@ -687,6 +730,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortSearchDefault: 7,
hiddenInMain: true hiddenInMain: true
}, },
{ {
@ -696,6 +740,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTable:true,
sortTableDefault: 1005, sortTableDefault: 1005,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
@ -713,6 +758,32 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
}, },
{
label: '单价',
field: 'singlePrice',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
sortTableDefault: 1006,
form: {
component: 'InputNumber',
}
},
{
label: '金额',
field: 'amount',
sort: 'custom',
table: {
width: 150
},
hiddenInMain:true,
sortTableDefault: 1006,
form: {
component: 'InputNumber',
}
},
{ {
label: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',
@ -720,6 +791,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 1011,
hiddenInMain: true hiddenInMain: true
}, },
// { // {
@ -735,7 +807,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
field: 'interfaceType', field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE, dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -751,14 +823,25 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
// }, // },
// }, // },
{ {
label: '备注', label: '原因',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 1007,
hiddenInMain: true hiddenInMain: true
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
sortTableDefault: 1014,
hiddenInMain: true,
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -771,6 +854,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
width: 180 width: 180
}, },
hiddenInMain: true, hiddenInMain: true,
sortTableDefault: 1014,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -780,15 +864,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
hiddenInMain: true,
},
])) ]))
//表单校验 //表单校验

Loading…
Cancel
Save