Browse Source

修复测试bug

master
ljlong_2630 7 months ago
parent
commit
341c678f18
  1. 2
      src/api/eam/mold/moldMaintainOrderMain/index.ts
  2. 1
      src/views/eam/basic/fixedAssets/fixedAssets.data.ts
  3. 4
      src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts
  4. 32
      src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts
  5. 3
      src/views/eam/device/devicemaintenancejob/index.vue
  6. 4
      src/views/eam/mold/moldinspectionjob/moldInspectionMain.data.ts
  7. 3
      src/views/eam/mold/moldmaintenancejob/index.vue
  8. 30
      src/views/eam/mold/moldmaintenancejob/moldMaintenanceMain.data.ts

2
src/api/eam/mold/moldMaintainOrderMain/index.ts

@ -73,7 +73,7 @@ export const orderClickFinish = (id: number) => {
// 验证 // 验证
export const orderClickApprove = (id: number,status: string,verifyContent: string) => { export const orderClickApprove = (id: number,status: string,verifyContent: string) => {
return request.get({ url: '/eam/device-maintain-job-main/orderClickVerify?id=' + id + '&status=' + status + '&approveOpinion=' + verifyContent }) return request.get({ url: '/eam/device-maintain-job-main/orderClickVerify?id=' + id + '&status=' + status + '&verifyContent=' + verifyContent })
} }

1
src/views/eam/basic/fixedAssets/fixedAssets.data.ts

@ -149,6 +149,7 @@ export const FixedAssets = useCrudSchemas(reactive<CrudSchema[]>([
labelField: 'name', labelField: 'name',
valueField: 'number' valueField: 'number'
}, },
filterable: true,
placeholder: "请选择供应商" placeholder: "请选择供应商"
} }
} }

4
src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts

@ -15,7 +15,7 @@ const factoryList = await selectAllFactoryArea()
const factoryListSelf = factoryList.filter(item => item.id == userStore.userSelfInfo.dept.parentId) const factoryListSelf = factoryList.filter(item => item.id == userStore.userSelfInfo.dept.parentId)
const deviceList = await DeviceAccountsApi.getDeviceAccountsNoPage({}) const deviceList = await DeviceAccountsApi.getDeviceAccountsNoPage({})
const deviceListAll = await DeviceAccountsApi.getDeviceAccountsAllNoPage({}) const deviceListAll = await DeviceAccountsApi.getDeviceAccountsAllNoPage({})
const deviceListByFactory = deviceListAll.filter(item => item.factoryAreaNumber == userStore.userSelfInfo.dept.parentId) const deviceListByFactory = deviceListAll.filter(item => item.factoryAreaNumber == userStore.userSelfInfo.deptId)
// const deviceListByFactoryAndStatus = deviceListByFactory.filter(item => item.status == '0') // const deviceListByFactoryAndStatus = deviceListByFactory.filter(item => item.status == '0')
const userList = await selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 }) const userList = await selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 })
const dutyUserList = await selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '' }) const dutyUserList = await selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '' })
@ -140,7 +140,7 @@ export const DeviceInspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
search: { search: {
show: true, show: true,
component: 'Select', component: 'Select',
api: () => deviceListAll, api: () => deviceListByFactory,
componentProps: { componentProps: {
optionsAlias: { optionsAlias: {
labelField: 'name', labelField: 'name',

32
src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts

@ -338,6 +338,8 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'declarer', field: 'declarer',
sort: 'custom', sort: 'custom',
isDetail: false, isDetail: false,
isForm: false,
isSearch: true,
table: { table: {
width: '150', width: '150',
}, },
@ -345,20 +347,6 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userListAll.find((account) => account.id == cellValue)?.nickname return userListAll.find((account) => account.id == cellValue)?.nickname
}, },
form: {
component: 'Select',
api: () => userListAll,
componentProps: {
disabled: true,
optionsAlias: {
labelField: 'nickname',
valueField: 'id'
},
filterable: true,
placeholder: "请先选择设备"
},
},
isSearch: true,
search: { search: {
component: 'Select', component: 'Select',
api: () => userListAll, api: () => userListAll,
@ -390,6 +378,7 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '报修人意见', label: '报修人意见',
field: 'applyContent', field: 'applyContent',
sort: 'custom', sort: 'custom',
isForm: false,
table: { table: {
width: 150 width: 150
} }
@ -399,6 +388,7 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'verifyer', field: 'verifyer',
sort: 'custom', sort: 'custom',
isDetail: false, isDetail: false,
isForm: false,
table: { table: {
width: '150', width: '150',
}, },
@ -406,19 +396,6 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userListAll.find((account) => account.id == cellValue)?.nickname return userListAll.find((account) => account.id == cellValue)?.nickname
}, },
form: {
component: 'Select',
api: () => userListAll,
componentProps: {
disabled: true,
optionsAlias: {
labelField: 'nickname',
valueField: 'id'
},
filterable: true,
placeholder: "请先选择设备"
},
},
isSearch: true, isSearch: true,
search: { search: {
component: 'Select', component: 'Select',
@ -451,6 +428,7 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '验证人意见', label: '验证人意见',
field: 'verifyContent', field: 'verifyContent',
sort: 'custom', sort: 'custom',
isForm: false,
table: { table: {
width: 150 width: 150
} }

3
src/views/eam/device/devicemaintenancejob/index.vue

@ -947,7 +947,8 @@ function verifyCancel(row) {
// //
function confirmOrder(row) { function confirmOrder(row) {
openRowValue.value = row openRowValue.value = row
verifyFormValue.value.verifyContent = '' confirmFormValue.value.confirmContent = ''
confirmFormValue.value.confirmStatus = 'APPLYPASS'
confirmDialogVisible.value = true confirmDialogVisible.value = true
} }

4
src/views/eam/mold/moldinspectionjob/moldInspectionMain.data.ts

@ -14,7 +14,7 @@ const userListAll = await UserApi.getSimpleUserList()
const factoryList = await selectAllFactoryArea() const factoryList = await selectAllFactoryArea()
const moldList = await MoldAccountsApi.getMoldAccountsNoPage({}) const moldList = await MoldAccountsApi.getMoldAccountsNoPage({})
const moldListAll = await MoldAccountsApi.getMoldAccountsAllNoPage({}) const moldListAll = await MoldAccountsApi.getMoldAccountsAllNoPage({})
const moldListByFactory = moldListAll.filter(item => item.factoryAreaNumber == userStore.userSelfInfo.dept.parentId) const moldListByFactory = moldListAll.filter(item => item.factoryAreaNumber == userStore.userSelfInfo.deptId)
const userList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 1 }) const userList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 1 })
const dutyUserList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: null }) const dutyUserList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: null })
const engineerList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 2}) const engineerList = await selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 2})
@ -101,7 +101,7 @@ export const MoldInspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
search: { search: {
show: true, show: true,
component: 'Select', component: 'Select',
api: () => moldList, api: () => moldListByFactory,
componentProps: { componentProps: {
optionsAlias: { optionsAlias: {
labelField: 'name', labelField: 'name',

3
src/views/eam/mold/moldmaintenancejob/index.vue

@ -660,7 +660,8 @@ function verifyCancel(row) {
// //
function confirmOrder(row) { function confirmOrder(row) {
openRowValue.value = row openRowValue.value = row
verifyFormValue.value.verifyContent = '' confirmFormValue.value.confirmContent = ''
confirmFormValue.value.confirmStatus = 'APPLYPASS'
confirmDialogVisible.value = true confirmDialogVisible.value = true
} }

30
src/views/eam/mold/moldmaintenancejob/moldMaintenanceMain.data.ts

@ -334,6 +334,7 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'declarer', field: 'declarer',
sort: 'custom', sort: 'custom',
isDetail: false, isDetail: false,
isForm: false,
table: { table: {
width: '150', width: '150',
}, },
@ -341,19 +342,6 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userListAll.find((account) => account.id == cellValue)?.nickname return userListAll.find((account) => account.id == cellValue)?.nickname
}, },
form: {
component: 'Select',
api: () => userListAll,
componentProps: {
disabled: true,
optionsAlias: {
labelField: 'nickname',
valueField: 'id'
},
filterable: true,
placeholder: "请先选择设备"
},
},
isSearch: true, isSearch: true,
search: { search: {
component: 'Select', component: 'Select',
@ -386,6 +374,7 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '报修人意见', label: '报修人意见',
field: 'applyContent', field: 'applyContent',
sort: 'custom', sort: 'custom',
isForm: false,
table: { table: {
width: 150 width: 150
} }
@ -395,6 +384,7 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'verifyer', field: 'verifyer',
sort: 'custom', sort: 'custom',
isDetail: false, isDetail: false,
isForm: false,
table: { table: {
width: '150', width: '150',
}, },
@ -402,19 +392,6 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userListAll.find((account) => account.id == cellValue)?.nickname return userListAll.find((account) => account.id == cellValue)?.nickname
}, },
form: {
component: 'Select',
api: () => userListAll,
componentProps: {
disabled: true,
optionsAlias: {
labelField: 'nickname',
valueField: 'id'
},
filterable: true,
placeholder: "请先选择设备"
},
},
isSearch: true, isSearch: true,
search: { search: {
component: 'Select', component: 'Select',
@ -447,6 +424,7 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '验证人意见', label: '验证人意见',
field: 'verifyContent', field: 'verifyContent',
sort: 'custom', sort: 'custom',
isForm: false,
table: { table: {
width: 150 width: 150
} }

Loading…
Cancel
Save