ljlong_2630 8 months ago
parent
commit
a2d635ea53
  1. 2
      src/components/UploadFile/src/UploadFile.vue
  2. 2
      src/components/UploadFile/src/UploadImg.vue
  3. 2
      src/components/UploadFile/src/UploadImgs.vue
  4. 185
      src/views/eam/item/itemAccounts/itemAccounts.data.ts

2
src/components/UploadFile/src/UploadFile.vue

@ -59,7 +59,7 @@ const props = defineProps({
updateUrl: propTypes.string.def(import.meta.env.VITE_UPLOAD_URL), updateUrl: propTypes.string.def(import.meta.env.VITE_UPLOAD_URL),
upData: propTypes.object.def(), upData: propTypes.object.def(),
fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf', 'pdf','png', 'jpg', 'jpeg']), // , ['png', 'jpg', 'jpeg'] fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf', 'pdf','png', 'jpg', 'jpeg']), // , ['png', 'jpg', 'jpeg']
fileSize: propTypes.number.def(5), // (MB) fileSize: propTypes.number.def(50), // (MB)
limit: propTypes.number.def(5), // limit: propTypes.number.def(5), //
autoUpload: propTypes.bool.def(true), // autoUpload: propTypes.bool.def(true), //
drag: propTypes.bool.def(false), // drag: propTypes.bool.def(false), //

2
src/components/UploadFile/src/UploadImg.vue

@ -78,7 +78,7 @@ const props = defineProps({
upData: propTypes.object.def(), upData: propTypes.object.def(),
drag: propTypes.bool.def(true), // ==> true drag: propTypes.bool.def(true), // ==> true
disabled: propTypes.bool.def(false), // ==> false disabled: propTypes.bool.def(false), // ==> false
fileSize: propTypes.number.def(5), // ==> 5M fileSize: propTypes.number.def(50), // ==> 5M
fileType: propTypes.array.def(['image/jpeg', 'image/png', 'image/gif']), // ==> ["image/jpeg", "image/png", "image/gif"] fileType: propTypes.array.def(['image/jpeg', 'image/png', 'image/gif']), // ==> ["image/jpeg", "image/png", "image/gif"]
height: propTypes.string.def('150px'), // ==> 150px height: propTypes.string.def('150px'), // ==> 150px
width: propTypes.string.def('150px'), // ==> 150px width: propTypes.string.def('150px'), // ==> 150px

2
src/components/UploadFile/src/UploadImgs.vue

@ -79,7 +79,7 @@ const props = defineProps({
drag: propTypes.bool.def(true), // ==> true drag: propTypes.bool.def(true), // ==> true
disabled: propTypes.bool.def(false), // ==> false disabled: propTypes.bool.def(false), // ==> false
limit: propTypes.number.def(5), // ==> 5 limit: propTypes.number.def(5), // ==> 5
fileSize: propTypes.number.def(5), // ==> 5M fileSize: propTypes.number.def(50), // ==> 5M
fileType: propTypes.array.def(['image/jpeg', 'image/png', 'image/gif']), // ==> ["image/jpeg", "image/png", "image/gif"] fileType: propTypes.array.def(['image/jpeg', 'image/png', 'image/gif']), // ==> ["image/jpeg", "image/png", "image/gif"]
height: propTypes.string.def('150px'), // ==> 150px height: propTypes.string.def('150px'), // ==> 150px
width: propTypes.string.def('150px'), // ==> 150px width: propTypes.string.def('150px'), // ==> 150px

185
src/views/eam/item/itemAccounts/itemAccounts.data.ts

@ -21,7 +21,7 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '备件名称', label: '备件名称',
field: 'itemDO.name', field: 'name',
sort: 'custom', sort: 'custom',
table: { table: {
width: 110 width: 110
@ -78,21 +78,21 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ {
label: '规格', label: '规格',
field: 'itemDO.specifications', field: 'specifications',
sort: 'custom', sort: 'custom',
}, },
{ {
label: '是否储', label: '是否储',
field: 'itemDO.isConstant', field: 'isConstant',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: false,
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 110 width: 110,
}, },
tableForm: { tableForm: {
type: 'Select', type: 'Select',
@ -109,57 +109,84 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '是否存储', label: '科目',
field: 'itemDO.isRadeIn', field: 'subject',
dictType: DICT_TYPE.TRUE_FALSE, sort: 'custom',
dictType: DICT_TYPE.ITEM_SUBJECT,
dictClass: 'string', dictClass: 'string',
isSearch: false,
isTable: true, isTable: true,
sort: 'custom',
table: {
width: 110
},
tableForm: { tableForm: {
type: 'Select', type: 'Select'
inactiveValue: 'FALSE',
disabled: true
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
} }
}, },
{ {
label: '科目', label: '科目代码',
field: 'itemDO.subject', field: 'subjectCode',
sort: 'custom', sort: 'custom',
isTable: true,
}, },
{ {
label: '单位', label: '单位',
field: 'itemDO.uom', field: 'uom',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.UOM,
dictClass: 'string', dictClass: 'string',
isSearch: false,
isTable: true, isTable: true,
table: { tableForm: {
width: 150 type: 'Select'
}
},
{
label: '类别',
field: 'category',
sort: 'custom',
dictType: DICT_TYPE.ITEM_CATEGORY,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
}, },
{
label: '备件分类',
field: 'classification',
sort: 'custom',
dictType: DICT_TYPE.CLASSIFICATION,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: { tableForm: {
type: 'Select' type: 'Select'
} }
}, },
{ {
label: '单价', label: '区域',
field: 'itemDO.singlePrice', field: 'region',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.ITEM_REGION,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
}, },
// {
// label: '单价',
// field: 'singlePrice',
// sort: 'custom',
// },
{ {
label: '重点采购', label: '重采购',
field: 'itemDO.reprocurement', field: 'reprocurement',
sort: 'custom', sort: 'custom',
table: {
width: 110,
},
form: { form: {
component: 'InputNumber', component: 'InputNumber',
value: 0 value: 0
@ -167,8 +194,11 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '安全库存', label: '安全库存',
field: 'itemDO.safetyStock', field: 'safetyStock',
sort: 'custom', sort: 'custom',
table: {
width: 110,
},
form: { form: {
component: 'InputNumber', component: 'InputNumber',
value: 0 value: 0
@ -176,44 +206,75 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '成本中心', label: '成本中心',
field: 'itemDO.cost', field: 'cost',
sort: 'custom', sort: 'custom',
table: {
width: 110,
},
}, },
{ {
label: '采购员', label: '采购员',
field: 'itemDO.purchaser', field: 'purchaser',
sort: 'custom', sort: 'custom',
table: {
width: 100,
},
}, },
{ {
label: '财务', label: '财务',
field: 'itemDO.financer', field: 'financer',
sort: 'custom', sort: 'custom',
}, },
// { {
// label: '是否以旧换新', label: '是否以旧换新',
// field: 'itemDO.isRadeIn', field: 'isRadeIn',
// dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string', dictClass: 'string',
// isSearch: false, isSearch: false,
// isTable: true, isTable: true,
// sort: 'custom', sort: 'custom',
// table: { table: {
// width: 150 width: 140
// }, },
// tableForm: { tableForm: {
// type: 'Select', type: 'Select',
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// disabled: true disabled: true
// }, },
// form: { form: {
// component: 'Switch', component: 'Switch',
// value: 'TRUE', value: 'TRUE',
// componentProps: { componentProps: {
// inactiveValue: 'FALSE', inactiveValue: 'FALSE',
// activeValue: 'TRUE' activeValue: 'TRUE'
// } }
// } }
// }, },
{
label: '是否框架协议',
field: 'isFramework',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: false,
isTable: true,
sort: 'custom',
table: {
width: 140
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',

Loading…
Cancel
Save