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