Browse Source

修复bug:SBBJ-745,SBBJ-744,SBBJ-743,SBBJ-742,SBBJ-741,SBBJ-740,SBBJ-739,SBBJ-738,SBBJ-737,SBBJ-734

master
ljlong_2630 2 months ago
parent
commit
0513bf1bd5
  1. 7
      src/views/eam/device/deviceAccounts/deviceAccounts.data.ts
  2. 2
      src/views/eam/device/deviceAccounts/index.vue
  3. 2
      src/views/eam/device/deviceRepair/deviceRepair.data.ts
  4. 8
      src/views/eam/device/deviceRepair/index.vue
  5. 73
      src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts
  6. 3
      src/views/eam/device/devicemaintenancejob/index.vue
  7. 2
      src/views/eam/device/techRepair/index.vue
  8. 3
      src/views/eam/device/techmaintenancejob/index.vue
  9. 86
      src/views/eam/device/techmaintenancejob/techMaintenanceMain.data.ts
  10. 2
      src/views/eam/mold/moldRepair/index.vue
  11. 2
      src/views/eam/mold/moldRepair/moldRepair.data.ts
  12. 3
      src/views/eam/mold/moldmaintenancejob/index.vue
  13. 72
      src/views/eam/mold/moldmaintenancejob/moldMaintenanceMain.data.ts

7
src/views/eam/device/deviceAccounts/deviceAccounts.data.ts

@ -98,9 +98,9 @@ export const DeviceAccounts = useCrudSchemas(reactive<CrudSchema[]>([
component: 'Select',
},
isTable: false,
isTableForm: false,
isDetail: false,
isForm: false,
isTableForm: true,
isDetail: true,
},
{
label: '设备类型',
@ -313,6 +313,9 @@ export const DeviceAccounts = useCrudSchemas(reactive<CrudSchema[]>([
type: 'datetime',
valueFormat: 'x'
}
},
detail: {
dateFormat: 'YYYY-MM-DD'
}
},
{

2
src/views/eam/device/deviceAccounts/index.vue

@ -238,7 +238,7 @@
const userListAll = await UserApi.getSimpleUserList()
const supplierList = await SupplierApi.getSupplierNoPage({})
row.factoryAreaNumberDetail = factoryDeptList.find((account) => account.id == row.factoryAreaNumber)?.name
row.principalDetail = userListAll.find((account) => account.id == row.maintenance)?.nickname
row.principalDetail = userListAll.find((account) => account.id == row.principal)?.nickname
row.supplierNumberDetail = supplierList.find((account) => account.number == row.supplierNumber)?.name
itemCodeRow.value = row.number
tabsExtend.value = 1

2
src/views/eam/device/deviceRepair/deviceRepair.data.ts

@ -153,7 +153,7 @@ export const DeviceRepair = useCrudSchemas(reactive<CrudSchema[]>([
},
{
label: '工单来源',
field: 'orderSourceType',
field: 'sourceType',
sort: 'custom',
isSearch: false,
isForm: false,

8
src/views/eam/device/deviceRepair/index.vue

@ -90,7 +90,7 @@ const viewKey = ref(0)
routeName.value = route.name
const tableColumns = ref(DeviceRepair.allSchemas.tableColumns)
const factoryAreaNumber = ref('');
const type = ref('');
const type = ref('DEVICE');
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {
@ -182,11 +182,7 @@ const buttonTableClick = async (val, row) => {
const basicFormRef = ref()
const basicFormViewRef = ref()
const openForm = (type: string, row?: any) => {
// if(type == 'create'){
// DeviceRepair.allSchemas.formSchema.find(item => {
// return item.field == 'type'
// }).value = 'DEVICE'
// }
if (type == 'view') {
showView.value = true
urls.value = row.filePathList

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

@ -224,20 +224,9 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: false,
table: {
width: '200',
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
{
label: '接单时间',
field: 'receivingTimeDetail',
sort: 'custom',
isSearch: false,
isDetail: true,
isTableForm: false,
isForm: false,
isTable: false,
table: {
width: '200',
},
@ -381,20 +370,9 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: false,
table: {
width: '200',
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
{
label: '完成时间',
field: 'completionTimeDetail',
sort: 'custom',
isTable: false,
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: true,
table: {
width: '200',
},
@ -457,20 +435,9 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: false,
table: {
width: '200',
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
{
label: '确认时间',
field: 'applyTimeDetail',
sort: 'custom',
isTable: false,
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: true,
table: {
width: '200',
},
@ -533,24 +500,26 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: false,
table: {
width: '200',
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
},
{
label: '验证时间',
field: 'verifyTimeDetail',
sort: 'custom',
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: true,
isTable: false,
table: {
width: '200',
},
},
// {
// label: '验证时间',
// field: 'verifyTimeDetail',
// sort: 'custom',
// isSearch: false,
// isTableForm: false,
// isForm: false,
// isDetail: true,
// isTable: false,
// table: {
// width: '200',
// },
// },
{
label: '操作',
field: 'action',

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

@ -733,6 +733,9 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const openForm = async (type: string, row?: any) => {
if(type == 'update'){
row.classes = String(row.classes)
}
tableData.value = [] //
await DeviceAccountsApi.getDeviceAccountsNoPage({}).then(res => {
DeviceMaintenanceMain.allSchemas.formSchema.find(item => {

2
src/views/eam/device/techRepair/index.vue

@ -90,7 +90,7 @@ const viewKey = ref(0)
routeName.value = route.name
const tableColumns = ref(DeviceRepair.allSchemas.tableColumns)
const factoryAreaNumber = ref('');
const type = ref('');
const type = ref('TECH');
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {

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

@ -693,6 +693,9 @@ const openForm = async (type: string, row?: any) => {
return item.field == 'type'
}).value = 'TECH'
}
if(type == 'update'){
row.classes = String(row.classes)
}
tableData.value = [] //
await DeviceAccountsApi.getDeviceAccountsNoPage({}).then(res => {
DeviceMaintenanceMain.allSchemas.formSchema.find(item => {

86
src/views/eam/device/techmaintenancejob/techMaintenanceMain.data.ts

@ -212,20 +212,9 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: false,
table: {
width: '200',
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
{
label: '接单时间',
field: 'receivingTimeDetail',
sort: 'custom',
isSearch: false,
isDetail: true,
isTableForm: false,
isForm: false,
isTable: false,
table: {
width: '200',
},
@ -370,20 +359,9 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: false,
table: {
width: '200',
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
{
label: '完成时间',
field: 'completionTimeDetail',
sort: 'custom',
isTable: false,
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: true,
table: {
width: '200',
},
@ -446,20 +424,9 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: false,
table: {
width: '200',
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
},
{
label: '确认时间',
field: 'applyTimeDetail',
sort: 'custom',
isTable: false,
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: true,
table: {
width: '200',
},
@ -522,20 +489,9 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: false,
table: {
width: '200',
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
{
label: '验证时间',
field: 'verifyTimeDetail',
sort: 'custom',
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: true,
isTable: false,
table: {
width: '200',
},
@ -615,19 +571,19 @@ export const DeviceMaintenanceDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'maintenances',
sort: 'custom',
isDetail: false,
// formatter: (_: Recordable, __: TableColumn, cellValue) => {
// let cellValueList = []
// if (Array.isArray(cellValue)) {
// cellValueList = cellValue
// } else {
// cellValueList = cellValue ? cellValue.split(',') : [];
// }
// // const cellValueList = cellValue ? cellValue.split(',') : [];
// return userListAll
// .filter(item => cellValueList.includes(item.id.toString()))
// .map(item => item.nickname)
// .join(',');
// },
formatter: (_: Recordable, __: TableColumn, cellValue) => {
let cellValueList = []
if (Array.isArray(cellValue)) {
cellValueList = cellValue
} else {
cellValueList = cellValue ? cellValue.split(',') : [];
}
// const cellValueList = cellValue ? cellValue.split(',') : [];
return userListAll
.filter(item => cellValueList.includes(item.id.toString()))
.map(item => item.nickname)
.join(',');
},
isTable:true,
tableForm: {
type: 'Select',

2
src/views/eam/mold/moldRepair/index.vue

@ -82,7 +82,7 @@ routeName.value = route.name
const tableColumns = ref(MoldRepair.allSchemas.tableColumns)
const factoryAreaNumber = ref('');
const type = ref('');
const type = ref('MOLD');
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {

2
src/views/eam/mold/moldRepair/moldRepair.data.ts

@ -154,7 +154,7 @@ export const MoldRepair = useCrudSchemas(reactive<CrudSchema[]>([
},
{
label: '工单来源',
field: 'orderSourceType',
field: 'sourceType',
sort: 'custom',
dictType: DICT_TYPE.ORDER_SOURCE_TYPE,
dictClass: 'string',

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

@ -547,6 +547,9 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const openForm = async (type: string, row?: any) => {
if(type == 'update'){
row.classes = String(row.classes)
}
await MoldAccountsApi.getMoldAccountsNoPage({}).then(res => {
MoldMaintenanceMain.allSchemas.formSchema.find(item => {
return item.field === 'deviceNumber'

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

@ -201,6 +201,18 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
isTable: false,
isTableForm: false,
},
{
label: '工单来源',
field: 'sourceType',
sort: 'custom',
isSearch: false,
isForm: false,
dictType: DICT_TYPE.ORDER_SOURCE_TYPE,
dictClass: 'string',
table: {
width: '150',
},
},
{
label: '接单人',
field: 'maintenance',
@ -259,20 +271,9 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: false,
table: {
width: '200',
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
},
{
label: '接单时间',
field: 'receivingTimeDetail',
sort: 'custom',
isSearch: false,
isDetail: true,
isTableForm: false,
isForm: false,
isTable: false,
table: {
width: '200',
},
@ -366,20 +367,9 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: false,
table: {
width: '200',
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
},
{
label: '完成时间',
field: 'completionTimeDetail',
sort: 'custom',
isTable: false,
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: true,
table: {
width: '200',
},
@ -442,20 +432,9 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: false,
table: {
width: '200',
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
},
{
label: '确认时间',
field: 'applyTimeDetail',
sort: 'custom',
isTable: false,
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: true,
table: {
width: '200',
},
@ -518,20 +497,9 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: false,
table: {
width: '200',
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
{
label: '验证时间',
field: 'verifyTimeDetail',
sort: 'custom',
isSearch: false,
isTableForm: false,
isForm: false,
isDetail: true,
isTable: false,
table: {
width: '200',
},

Loading…
Cancel
Save