|
|
@ -106,85 +106,85 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商包装单位', |
|
|
|
field: 'packUnit', |
|
|
|
dictType: DICT_TYPE.PACK_UNIT, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商包装量', |
|
|
|
field: 'packQty', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '默认收货仓库', |
|
|
|
field: 'defaultWarehouseCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '仓库信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '默认收货库位', |
|
|
|
field: 'defaultLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '库位信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'warehouseCode', |
|
|
|
value: 'defaultWarehouseCode', |
|
|
|
message: '请填写默认收货仓库!', |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '供应商包装单位',
|
|
|
|
// field: 'packUnit',
|
|
|
|
// dictType: DICT_TYPE.PACK_UNIT,
|
|
|
|
// dictClass: 'string',
|
|
|
|
// isTable: true,
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: '供应商包装量',
|
|
|
|
// field: 'packQty',
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// form: {
|
|
|
|
// component: 'InputNumber',
|
|
|
|
// componentProps: {
|
|
|
|
// min: 1,
|
|
|
|
// precision: 6
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: '默认收货仓库',
|
|
|
|
// field: 'defaultWarehouseCode',
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// form: {
|
|
|
|
// // labelMessage: '信息提示说明!!!',
|
|
|
|
// componentProps: {
|
|
|
|
// isSearchList: true, // 开启查询弹窗
|
|
|
|
// searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
|
|
|
|
// searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
// searchTitle: '仓库信息', // 查询弹窗标题
|
|
|
|
// searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
|
|
|
|
// searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法
|
|
|
|
// searchCondition: [{
|
|
|
|
// key: 'available',
|
|
|
|
// value: 'TRUE',
|
|
|
|
// isMainValue: false
|
|
|
|
// }]
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: '默认收货库位',
|
|
|
|
// field: 'defaultLocationCode',
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// form: {
|
|
|
|
// // labelMessage: '信息提示说明!!!',
|
|
|
|
// componentProps: {
|
|
|
|
// isSearchList: true, // 开启查询弹窗
|
|
|
|
// searchListPlaceholder: '请选择库位代码', // 输入框占位文本
|
|
|
|
// searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
// searchTitle: '库位信息', // 查询弹窗标题
|
|
|
|
// searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
|
|
|
|
// searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
|
|
|
|
// searchCondition: [{
|
|
|
|
// key: 'available',
|
|
|
|
// value: 'TRUE',
|
|
|
|
// isMainValue: false
|
|
|
|
// },{
|
|
|
|
// key: 'warehouseCode',
|
|
|
|
// value: 'defaultWarehouseCode',
|
|
|
|
// message: '请填写默认收货仓库!',
|
|
|
|
// isMainValue: true
|
|
|
|
// }]
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: '结算方式',
|
|
|
|
// field: 'settlementType',
|
|
|
@ -326,15 +326,12 @@ export const SupplieritemRules = reactive({ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }, |
|
|
|
{ validator:validateYS, message: '请输入正确的代码', trigger: 'blur'} |
|
|
|
], |
|
|
|
packUnit: [ |
|
|
|
{ required: true, message: '请选择供应商包装单位', trigger: 'change' } |
|
|
|
], |
|
|
|
packQty: [ |
|
|
|
{ required: true, message: '请输入供应商包装量', trigger: 'blur' } |
|
|
|
], |
|
|
|
packQtyOfContainer: [ |
|
|
|
{ required: true, message: '请输入每器具包装数', trigger: 'blur' } |
|
|
|
], |
|
|
|
// packUnit: [
|
|
|
|
// { required: true, message: '请选择供应商包装单位', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
// packQty: [
|
|
|
|
// { required: true, message: '请输入供应商包装量', trigger: 'blur' }
|
|
|
|
// ],
|
|
|
|
available: [ |
|
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' } |
|
|
|
], |
|
|
|