|
@ -440,61 +440,107 @@ const isStatic = ref(true) |
|
|
const addTableType = ref('') |
|
|
const addTableType = ref('') |
|
|
const handleAddTable = (type)=>{ |
|
|
const handleAddTable = (type)=>{ |
|
|
addTableType.value = type |
|
|
addTableType.value = type |
|
|
let allSchemas = CellDevice.allSchemas |
|
|
|
|
|
let apiPage = CellDeviceApi.getCellDevicePage |
|
|
|
|
|
let tableTitle = '' |
|
|
|
|
|
if(type == 'Device'){ |
|
|
if(type == 'Device'){ |
|
|
// 设备 |
|
|
// 设备 |
|
|
tableTitle = '单体产线设备' |
|
|
let tableFormKeys = {} |
|
|
allSchemas = CellDevice.allSchemas |
|
|
CellDevice.allSchemas.tableFormColumns.forEach(item => { |
|
|
apiPage = CellDeviceApi.getCellDevicePage |
|
|
tableFormKeys[item.field] = item.default ? item.default : '' |
|
|
|
|
|
}) |
|
|
|
|
|
tableDataDevice.value.push(JSON.parse(JSON.stringify(tableFormKeys))) |
|
|
}else if(type == 'Env'){ |
|
|
}else if(type == 'Env'){ |
|
|
// 环境 |
|
|
// 环境 |
|
|
tableTitle = '单体产线环境' |
|
|
let tableFormKeys = {} |
|
|
allSchemas = CellEnv.allSchemas |
|
|
CellEnv.allSchemas.tableFormColumns.forEach(item => { |
|
|
apiPage = CellEnvApi.getCellEnvPage |
|
|
tableFormKeys[item.field] = item.default ? item.default : '' |
|
|
|
|
|
}) |
|
|
|
|
|
tableDataEnv.value.push(JSON.parse(JSON.stringify(tableFormKeys))) |
|
|
}else if(type == 'Plate'){ |
|
|
}else if(type == 'Plate'){ |
|
|
// 单体极片 |
|
|
// 单体极片 |
|
|
tableTitle = '单体极片' |
|
|
let tableFormKeys = {} |
|
|
allSchemas = CellPlate.allSchemas |
|
|
CellPlate.allSchemas.tableFormColumns.forEach(item => { |
|
|
apiPage = CellPlateApi.getCellPlatePage |
|
|
tableFormKeys[item.field] = item.default ? item.default : '' |
|
|
|
|
|
}) |
|
|
|
|
|
tableDataPlate.value.push(JSON.parse(JSON.stringify(tableFormKeys))) |
|
|
}else if(type == 'Core'){ |
|
|
}else if(type == 'Core'){ |
|
|
// 单体卷芯或叠芯 |
|
|
// 单体卷芯或叠芯 |
|
|
tableTitle = '单体卷芯或叠芯' |
|
|
let tableFormKeys = {} |
|
|
allSchemas = CellCore.allSchemas |
|
|
CellCore.allSchemas.tableFormColumns.forEach(item => { |
|
|
apiPage = CellCoreApi.getCellCorePage |
|
|
tableFormKeys[item.field] = item.default ? item.default : '' |
|
|
|
|
|
}) |
|
|
|
|
|
tableDataCore.value.push(JSON.parse(JSON.stringify(tableFormKeys))) |
|
|
}else if(type == 'Prod'){ |
|
|
}else if(type == 'Prod'){ |
|
|
// 单体产品 |
|
|
// 单体产品 |
|
|
tableTitle = '单体产品' |
|
|
let tableFormKeys = {} |
|
|
allSchemas = CellProd.allSchemas |
|
|
CellProd.allSchemas.tableFormColumns.forEach(item => { |
|
|
apiPage = CellProdApi.getCellProdPage |
|
|
tableFormKeys[item.field] = item.default ? item.default : '' |
|
|
|
|
|
}) |
|
|
|
|
|
tableDataProd.value.push(JSON.parse(JSON.stringify(tableFormKeys))) |
|
|
}else if(type == 'Pass'){ |
|
|
}else if(type == 'Pass'){ |
|
|
// 单体直通率 |
|
|
// 单体直通率 |
|
|
tableTitle = '单体直通率' |
|
|
let tableFormKeys = {} |
|
|
allSchemas = CellPass.allSchemas |
|
|
CellPass.allSchemas.tableFormColumns.forEach(item => { |
|
|
apiPage = CellPassApi.getCellPassPage |
|
|
tableFormKeys[item.field] = item.default ? item.default : '' |
|
|
} |
|
|
}) |
|
|
|
|
|
tableDataPass.value.push(JSON.parse(JSON.stringify(tableFormKeys))) |
|
|
|
|
|
} |
|
|
searchTableRef.value.open( |
|
|
} |
|
|
tableTitle, |
|
|
// const handleAddTable = (type)=>{ |
|
|
allSchemas, |
|
|
// addTableType.value = type |
|
|
apiPage, |
|
|
// let allSchemas = CellDevice.allSchemas |
|
|
"hahaha", |
|
|
// let apiPage = CellDeviceApi.getCellDevicePage |
|
|
"hahaha", |
|
|
// let tableTitle = '' |
|
|
!isStatic.value, |
|
|
// if(type == 'Device'){ |
|
|
'tableForm', |
|
|
// // 设备 |
|
|
null, |
|
|
// tableTitle = '单体产线设备' |
|
|
{ |
|
|
// allSchemas = CellDevice.allSchemas |
|
|
// 参数 |
|
|
// apiPage = CellDeviceApi.getCellDevicePage |
|
|
// supplierCode:formRef.value.formRef.formModel.supplierCode, |
|
|
// }else if(type == 'Env'){ |
|
|
// itemCode:formRef.value.formRef.formModel.itemCode |
|
|
// // 环境 |
|
|
}, |
|
|
// tableTitle = '单体产线环境' |
|
|
undefined, |
|
|
// allSchemas = CellEnv.allSchemas |
|
|
false, |
|
|
// apiPage = CellEnvApi.getCellEnvPage |
|
|
undefined |
|
|
// }else if(type == 'Plate'){ |
|
|
) |
|
|
// // 单体极片 |
|
|
} |
|
|
// tableTitle = '单体极片' |
|
|
|
|
|
// allSchemas = CellPlate.allSchemas |
|
|
|
|
|
// apiPage = CellPlateApi.getCellPlatePage |
|
|
|
|
|
// }else if(type == 'Core'){ |
|
|
|
|
|
// // 单体卷芯或叠芯 |
|
|
|
|
|
// tableTitle = '单体卷芯或叠芯' |
|
|
|
|
|
// allSchemas = CellCore.allSchemas |
|
|
|
|
|
// apiPage = CellCoreApi.getCellCorePage |
|
|
|
|
|
// }else if(type == 'Prod'){ |
|
|
|
|
|
// // 单体产品 |
|
|
|
|
|
// tableTitle = '单体产品' |
|
|
|
|
|
// allSchemas = CellProd.allSchemas |
|
|
|
|
|
// apiPage = CellProdApi.getCellProdPage |
|
|
|
|
|
// }else if(type == 'Pass'){ |
|
|
|
|
|
// // 单体直通率 |
|
|
|
|
|
// tableTitle = '单体直通率' |
|
|
|
|
|
// allSchemas = CellPass.allSchemas |
|
|
|
|
|
// apiPage = CellPassApi.getCellPassPage |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// searchTableRef.value.open( |
|
|
|
|
|
// tableTitle, |
|
|
|
|
|
// allSchemas, |
|
|
|
|
|
// apiPage, |
|
|
|
|
|
// "hahaha", |
|
|
|
|
|
// "hahaha", |
|
|
|
|
|
// !isStatic.value, |
|
|
|
|
|
// 'tableForm', |
|
|
|
|
|
// null, |
|
|
|
|
|
// { |
|
|
|
|
|
// // 参数 |
|
|
|
|
|
// // supplierCode:formRef.value.formRef.formModel.supplierCode, |
|
|
|
|
|
// // itemCode:formRef.value.formRef.formModel.itemCode |
|
|
|
|
|
// }, |
|
|
|
|
|
// undefined, |
|
|
|
|
|
// false, |
|
|
|
|
|
// undefined |
|
|
|
|
|
// ) |
|
|
|
|
|
// } |
|
|
// 删除明细 |
|
|
// 删除明细 |
|
|
const handleDeleteTable = (item, index, type) => { |
|
|
const handleDeleteTable = (item, index, type) => { |
|
|
if(type == 'Device'){ |
|
|
if(type == 'Device'){ |
|
|