|
|
@ -34,7 +34,8 @@ import { tr } from 'element-plus/es/locale' |
|
|
|
/** |
|
|
|
* @returns {Array} 供应商发货申请主表 |
|
|
|
*/ |
|
|
|
export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const SupplierdeliverRequestMain = useCrudSchemas( |
|
|
|
reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
@ -44,7 +45,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
fixed: 'left' |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
isSearch: true, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商代码', |
|
|
@ -111,9 +112,10 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: "TRUE", |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -124,7 +126,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '联系人电话', |
|
|
@ -133,7 +135,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '联系人电子邮件', |
|
|
@ -142,7 +144,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商发货仓库代码', |
|
|
@ -208,9 +210,9 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '承运商', |
|
|
@ -219,7 +221,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '运输方式', |
|
|
@ -229,7 +231,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '车牌号', |
|
|
@ -238,7 +240,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '业务类型',
|
|
|
@ -281,7 +283,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false |
|
|
@ -314,7 +316,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false |
|
|
@ -337,7 +339,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false |
|
|
@ -402,7 +404,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false |
|
|
@ -434,7 +436,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE', |
|
|
|
disabled: true, |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -455,7 +457,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE', |
|
|
|
disabled: true, |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -476,7 +478,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE', |
|
|
|
disabled: true, |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -497,7 +499,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE', |
|
|
|
disabled: true, |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -509,24 +511,17 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
table: { |
|
|
|
width: 450, |
|
|
|
fixed: 'right' |
|
|
|
}, |
|
|
|
} |
|
|
|
])) |
|
|
|
} |
|
|
|
]) |
|
|
|
) |
|
|
|
|
|
|
|
//表单校验
|
|
|
|
export const SupplierdeliverRequestMainRules = reactive({ |
|
|
|
supplierCode: [ |
|
|
|
{ required: true, message: '请输入供应商代码', trigger: 'blur' } |
|
|
|
], |
|
|
|
ppNumber: [ |
|
|
|
{ required: true, message: '请输入要货计划单号', trigger: 'blur' } |
|
|
|
], |
|
|
|
asnNumber: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
contactName: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
supplierCode: [{ required: true, message: '请输入供应商代码', trigger: 'blur' }], |
|
|
|
ppNumber: [{ required: true, message: '请输入要货计划单号', trigger: 'blur' }], |
|
|
|
asnNumber: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], |
|
|
|
contactName: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], |
|
|
|
contactPhone: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
{ validator: validateHanset, message: '请输入正确的手机号', trigger: 'blur' } |
|
|
@ -535,36 +530,20 @@ export const SupplierdeliverRequestMainRules = reactive({ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
{ validator: validateEmail, message: '请输入正确的邮箱地址', trigger: 'blur' } |
|
|
|
], |
|
|
|
carrierCode: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
transferMode: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
vehiclePlateNumber: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
remark: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
planArriveTime: [ |
|
|
|
{ required: true, message: '请输入计划到货时间', trigger: 'blur' } |
|
|
|
], |
|
|
|
carrierCode: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], |
|
|
|
transferMode: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], |
|
|
|
vehiclePlateNumber: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], |
|
|
|
remark: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], |
|
|
|
planArriveTime: [{ required: true, message: '请输入计划到货时间', trigger: 'blur' }], |
|
|
|
// departmentCode: [
|
|
|
|
// { required: true, message: '请输入部门', trigger: 'blur' }
|
|
|
|
// ],
|
|
|
|
autoCommit: [ |
|
|
|
{ required: true, message: '请选择是否自动提交', trigger: 'change' } |
|
|
|
], |
|
|
|
autoAgree: [ |
|
|
|
{ required: true, message: '请选择是否自动通过', trigger: 'change' } |
|
|
|
], |
|
|
|
autoExecute: [ |
|
|
|
{ required: true, message: '请选择是否自动执行', trigger: 'change' } |
|
|
|
], |
|
|
|
autoCommit: [{ required: true, message: '请选择是否自动提交', trigger: 'change' }], |
|
|
|
autoAgree: [{ required: true, message: '请选择是否自动通过', trigger: 'change' }], |
|
|
|
autoExecute: [{ required: true, message: '请选择是否自动执行', trigger: 'change' }], |
|
|
|
directCreateRecord: [ |
|
|
|
{ required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' } |
|
|
|
], |
|
|
|
] |
|
|
|
// businessType: [
|
|
|
|
// { required: true, message: '请输入业务类型', trigger: 'blur' }
|
|
|
|
// ],
|
|
|
@ -573,7 +552,8 @@ export const SupplierdeliverRequestMainRules = reactive({ |
|
|
|
/** |
|
|
|
* @returns {Array} 供应商发货申请子表 |
|
|
|
*/ |
|
|
|
export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const SupplierdeliverRequestDetail = useCrudSchemas( |
|
|
|
reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '采购订单号', |
|
|
|
field: 'poNumber', |
|
|
@ -603,7 +583,6 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
@ -625,7 +604,8 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -702,13 +682,13 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'date', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'FormDate', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@ -741,7 +721,7 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'date', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@ -749,7 +729,7 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
tableForm: { |
|
|
|
type: 'FormDate', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -770,7 +750,7 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'date', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
// tableForm: {
|
|
|
@ -1001,7 +981,7 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
sort: 'custom', |
|
|
@ -1009,7 +989,7 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
@ -1020,7 +1000,7 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
}, |
|
|
|
hiddenInMain: true, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新时间', |
|
|
@ -1035,7 +1015,7 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
hiddenInMain: true, |
|
|
@ -1044,7 +1024,7 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新者', |
|
|
@ -1055,7 +1035,7 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
}, |
|
|
|
hiddenInMain: true, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
@ -1064,7 +1044,7 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
hiddenInMain: true, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
@ -1076,20 +1056,21 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
width: 180, |
|
|
|
fixed: 'right' |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isTableForm: false |
|
|
|
} |
|
|
|
])) |
|
|
|
]) |
|
|
|
) |
|
|
|
|
|
|
|
// 批次校验
|
|
|
|
const validateBatch = (rule: any, value: any, callback: any) => { |
|
|
|
const reg = /^[_a-zA-Z0-9]+$/; |
|
|
|
const reg = /^[_a-zA-Z0-9]+$/ |
|
|
|
if (value == '' || value == undefined || value == null) { |
|
|
|
callback(); |
|
|
|
callback() |
|
|
|
} else { |
|
|
|
if (!reg.test(value)) { |
|
|
|
callback(new Error('英文字母、数字或下划线')); |
|
|
|
callback(new Error('英文字母、数字或下划线')) |
|
|
|
} else { |
|
|
|
callback(); |
|
|
|
callback() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1098,50 +1079,33 @@ export const SupplierdeliverRequestDetailRules = reactive({ |
|
|
|
// packingNumber: [
|
|
|
|
// { required: true, message: '请输入包装号', trigger: 'blur' }
|
|
|
|
// ],
|
|
|
|
qty:[ |
|
|
|
{ required: true, message: '请输入发货数量', trigger: 'change' }, |
|
|
|
], |
|
|
|
qty: [{ required: true, message: '请输入发货数量', trigger: 'change' }], |
|
|
|
batch: [ |
|
|
|
{ required: true, message: '请输入批次', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
{ validator: validateBatch, trigger: 'change' } |
|
|
|
], |
|
|
|
produceDate: [ |
|
|
|
{ required: true, message: '请输入生产日期', trigger: 'blur' } |
|
|
|
], |
|
|
|
produceDate: [{ required: true, message: '请输入生产日期', trigger: 'blur' }], |
|
|
|
packQty: [ |
|
|
|
{ required: true, message: '请输入包装数量', trigger: 'blur' }, |
|
|
|
{ validator: validateInteger, message: '请输入正确的整数', trigger: 'blur' } |
|
|
|
], |
|
|
|
poNumber: [ |
|
|
|
{ required: true, message: '请选择订单号', trigger: 'change' } |
|
|
|
], |
|
|
|
poLine: [ |
|
|
|
{ required: true, message: '请选择订单行', trigger: 'change' } |
|
|
|
], |
|
|
|
packUnit: [ |
|
|
|
{ required: true, message: '请选择包装规格', trigger: 'change' } |
|
|
|
], |
|
|
|
secondPackUnit: [ |
|
|
|
{ required: false, message: '请选择包装规格2', trigger: 'change' } |
|
|
|
{ required: true, message: '请输入包装数量', trigger: 'blur' } |
|
|
|
// { validator: validateInteger, message: '请输入正确的整数', trigger: 'blur' }
|
|
|
|
], |
|
|
|
poNumber: [{ required: true, message: '请选择订单号', trigger: 'change' }], |
|
|
|
poLine: [{ required: true, message: '请选择订单行', trigger: 'change' }], |
|
|
|
packUnit: [{ required: true, message: '请选择包装规格', trigger: 'change' }], |
|
|
|
secondPackUnit: [{ required: false, message: '请选择包装规格2', trigger: 'change' }], |
|
|
|
secondPackQty: [ |
|
|
|
{ required: false, message: '请输入包装数量2', trigger: 'blur' }, |
|
|
|
{ validator: validateInteger, message: '请输入正确的整数', trigger: 'blur' } |
|
|
|
], |
|
|
|
convertRate: [ |
|
|
|
{ required: true, message: '请输入转换率', trigger: 'blur' } |
|
|
|
], |
|
|
|
itemCode: [ |
|
|
|
{ required: true, message: '请选择物料代码', trigger: 'change' } |
|
|
|
], |
|
|
|
remark: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
{ required: false, message: '请输入包装数量2', trigger: 'blur' } |
|
|
|
// { validator: validateInteger, message: '请输入正确的整数', trigger: 'blur' }
|
|
|
|
], |
|
|
|
convertRate: [{ required: true, message: '请输入转换率', trigger: 'blur' }], |
|
|
|
itemCode: [{ required: true, message: '请选择物料代码', trigger: 'change' }], |
|
|
|
remark: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }] |
|
|
|
// secondPackQty:[{ validator:validateInteger, message: '请输入正确的整数', trigger: 'blur'}]
|
|
|
|
}) |
|
|
|
|
|
|
|
export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const SupplierdeliverRequestDetailLabel = useCrudSchemas( |
|
|
|
reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '批次', |
|
|
|
field: 'batch', |
|
|
@ -1171,15 +1135,14 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'date', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
|
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
type: 'FormDate', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
@ -1214,7 +1177,7 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'date', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
@ -1222,7 +1185,7 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch |
|
|
|
disabled: true, |
|
|
|
type: 'FormDate', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -1230,7 +1193,7 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch |
|
|
|
field: 'expireDate', |
|
|
|
formatter: dateFormatter2, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
dateFormat: 'YYYY-MM-DD' |
|
|
|
}, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
@ -1243,14 +1206,14 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'date', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
type: 'FormDate', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -1282,7 +1245,6 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
@ -1305,7 +1267,8 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -1504,7 +1467,6 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
@ -1527,7 +1489,8 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -1554,10 +1517,14 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -1588,7 +1555,6 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
@ -1612,7 +1578,8 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -1639,10 +1606,14 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -1684,10 +1655,12 @@ export const SupplierdeliverRequestDetailLabel = useCrudSchemas(reactive<CrudSch |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
])) |
|
|
|
} |
|
|
|
]) |
|
|
|
) |
|
|
|
|
|
|
|
export const SupplierdeliverRequestPackage = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const SupplierdeliverRequestPackage = useCrudSchemas( |
|
|
|
reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '包装号', |
|
|
|
field: 'number', |
|
|
@ -1695,30 +1668,27 @@ export const SupplierdeliverRequestPackage = useCrudSchemas(reactive<CrudSchema[ |
|
|
|
isSearch: true, |
|
|
|
table: { |
|
|
|
fixed: 'left' |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料代码', |
|
|
|
field: 'itemCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
table: { |
|
|
|
}, |
|
|
|
table: {} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '批次', |
|
|
|
field: 'batch', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
table: { |
|
|
|
}, |
|
|
|
table: {} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '数量', |
|
|
|
field: 'qty', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
}, |
|
|
|
table: {} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计量单位', |
|
|
@ -1729,8 +1699,7 @@ export const SupplierdeliverRequestPackage = useCrudSchemas(reactive<CrudSchema[ |
|
|
|
form: { |
|
|
|
component: 'SelectV2' |
|
|
|
}, |
|
|
|
table: { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
])) |
|
|
|
table: {} |
|
|
|
} |
|
|
|
]) |
|
|
|
) |
|
|
|