Browse Source

BUG修改

master
parent
commit
47e5d0693b
  1. 3
      src/views/eam/basic/item/item.data.ts
  2. 18
      src/views/eam/device/deviceInternalAudit/deviceInternalAudit.data.ts
  3. 77
      src/views/eam/item/itemAccounts/itemAccounts.data.ts
  4. 1
      src/views/eam/item/itemApplyMain/index.vue
  5. 32
      src/views/eam/item/itemApplyMain/itemApplyMain.data.ts

3
src/views/eam/basic/item/item.data.ts

@ -11,6 +11,9 @@ export const ItemRules = reactive({
{ required: true, message: '请选择备件单位', trigger: 'blur' }, { required: true, message: '请选择备件单位', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
classification: [
{ required: true, message: '请选择备件分类', trigger: 'blur' },
],
}) })
export const Item = useCrudSchemas(reactive<CrudSchema[]>([ export const Item = useCrudSchemas(reactive<CrudSchema[]>([

18
src/views/eam/device/deviceInternalAudit/deviceInternalAudit.data.ts

@ -9,39 +9,39 @@ export const DeviceInternalAuditRules = reactive({
], ],
fitOut: [ fitOut: [
{ required: true, message: '请输入装配', trigger: 'blur' }, { required: true, message: '请输入装配', trigger: 'blur' },
{ max: 200, message: '不得超过200', trigger: 'blur' } // { max: 200, message: '不得超过200', trigger: 'blur' }
], ],
coating: [ coating: [
{ required: true, message: '请输入涂装', trigger: 'blur' }, { required: true, message: '请输入涂装', trigger: 'blur' },
{ max: 200, message: '不得超过200', trigger: 'blur' } // { max: 200, message: '不得超过200', trigger: 'blur' }
], ],
injectionMolding: [ injectionMolding: [
{ required: true, message: '请输入注塑', trigger: 'blur' }, { required: true, message: '请输入注塑', trigger: 'blur' },
{ max: 200, message: '不得超过200', trigger: 'blur' } // { max: 200, message: '不得超过200', trigger: 'blur' }
], ],
business: [ business: [
{ required: true, message: '请输入商务', trigger: 'blur' }, { required: true, message: '请输入商务', trigger: 'blur' },
{ max: 200, message: '不得超过200', trigger: 'blur' } // { max: 200, message: '不得超过200', trigger: 'blur' }
], ],
laboratory: [ laboratory: [
{ required: true, message: '请输入实验室', trigger: 'blur' }, { required: true, message: '请输入实验室', trigger: 'blur' },
{ max: 200, message: '不得超过200', trigger: 'blur' } // { max: 200, message: '不得超过200', trigger: 'blur' }
], ],
it: [ it: [
{ required: true, message: '请输入IT', trigger: 'blur' }, { required: true, message: '请输入IT', trigger: 'blur' },
{ max: 200, message: '不得超过200', trigger: 'blur' } // { max: 200, message: '不得超过200', trigger: 'blur' }
], ],
qualityDepartment: [ qualityDepartment: [
{ required: true, message: '请输入质量保障部', trigger: 'blur' }, { required: true, message: '请输入质量保障部', trigger: 'blur' },
{ max: 200, message: '不得超过200', trigger: 'blur' } // { max: 200, message: '不得超过200', trigger: 'blur' }
], ],
materialFlow: [ materialFlow: [
{ required: true, message: '请输入物流', trigger: 'blur' }, { required: true, message: '请输入物流', trigger: 'blur' },
{ max: 200, message: '不得超过200', trigger: 'blur' } // { max: 200, message: '不得超过200', trigger: 'blur' }
], ],
moldPre: [ moldPre: [
{ required: true, message: '请输入模具前期', trigger: 'blur' }, { required: true, message: '请输入模具前期', trigger: 'blur' },
{ max: 200, message: '不得超过200', trigger: 'blur' } // { max: 200, message: '不得超过200', trigger: 'blur' }
], ],
}) })

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

@ -78,6 +78,7 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ {
label: '规格', label: '规格',
field: 'itemDO.specifications', field: 'itemDO.specifications',
@ -107,6 +108,30 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '是否存储',
field: 'itemDO.isRadeIn',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 110
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{ {
label: '科目', label: '科目',
field: 'itemDO.subject', field: 'itemDO.subject',
@ -164,33 +189,31 @@ export const ItemAccounts = useCrudSchemas(reactive<CrudSchema[]>([
field: 'itemDO.financer', field: 'itemDO.financer',
sort: 'custom', sort: 'custom',
}, },
{ // {
label: '是否以旧换新', // label: '是否以旧换新',
field: 'itemDO.isRadeIn', // field: 'itemDO.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: 150
}, // },
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: '是否可用', label: '是否可用',
field: 'available', field: 'available',

1
src/views/eam/item/itemApplyMain/index.vue

@ -115,7 +115,6 @@
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
if (formField == 'itemNumber') { if (formField == 'itemNumber') {
setV['itemNumber'] = val[0]['itemNumber'] setV['itemNumber'] = val[0]['itemNumber']
setV['isInAccount'] = val[0]['isInAccount'] setV['isInAccount'] = val[0]['isInAccount']
setV['currentQty'] = val[0]['qty'] setV['currentQty'] = val[0]['qty']
setV['available'] = val[0]['available'] setV['available'] = val[0]['available']

32
src/views/eam/item/itemApplyMain/itemApplyMain.data.ts

@ -23,21 +23,21 @@ export const ItemApplyMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '申领人', label: '申领人',
field: 'applyName', field: 'applyId',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isSearch: false, isSearch: false,
}, },
{ {
label: '审批人', label: '审批人',
field: 'approveName', field: 'approveId',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isSearch: false, isSearch: false,
}, },
{ {
label: '出库人', label: '出库人',
field: 'outName', field: 'outId',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isSearch: false, isSearch: false,
@ -260,11 +260,9 @@ export const ItemApplyDetail = useCrudSchemas(reactive<CrudSchema[]>([
precision: 2 precision: 2
} }
}, },
{ {
label: '是否可用', label: '是否账内库',
field: 'available', field: 'isInAccount',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
@ -276,13 +274,16 @@ export const ItemApplyDetail = useCrudSchemas(reactive<CrudSchema[]>([
tableForm: { tableForm: {
type: 'Select', type: 'Select',
disabled: true disabled: true
} },
form: {
componentProps: {
disabled: true,
}
},
}, },
{ {
label: '是否以旧换新', label: '是否可用',
field: 'isRadeIn', field: 'available',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
@ -294,12 +295,7 @@ export const ItemApplyDetail = useCrudSchemas(reactive<CrudSchema[]>([
tableForm: { tableForm: {
type: 'Select', type: 'Select',
disabled: true disabled: true
}, }
form: {
componentProps: {
disabled: true,
}
},
}, },
{ {
label: '备注', label: '备注',

Loading…
Cancel
Save