Browse Source

盘点任务-计量单位不展示中文

hella_online_20240919
yufei_wang 2 months ago
parent
commit
326a6c7343
  1. 23
      src/views/wms/countManage/count/countJobMain/index.vue

23
src/views/wms/countManage/count/countJobMain/index.vue

@ -326,17 +326,22 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
.find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
//
countJobDetailTableColumns.value.tableColumns = []
// countJobDetailTableColumns.value.tableColumns = []
// if (ro.isOpenCount == "FALSE") {
// CountJobDetail.allSchemas.tableColumns.forEach((item) => {
// if (item.field != 'qty') {
// countJobDetailTableColumns.value.tableColumns.push(item)
// }
// })
// } else {
// countJobDetailTableColumns.value.tableColumns = JSON.parse(
// JSON.stringify(CountJobDetail.allSchemas.tableColumns)
// )
// }w
if (row.isOpenCount == "FALSE") {
CountJobDetail.allSchemas.tableColumns.forEach((item) => {
if (item.field != 'qty') {
countJobDetailTableColumns.value.tableColumns.push(item)
}
})
countJobDetailTableColumns.value.tableColumns = CountJobDetail.allSchemas.tableColumns.filter(item=>item.field != 'qty')
}else{
countJobDetailTableColumns.value.tableColumns = JSON.parse(
JSON.stringify(CountJobDetail.allSchemas.tableColumns)
)
countJobDetailTableColumns.value.tableColumns = CountJobDetail.allSchemas.tableColumns.filter(item=>item.field)
}
detailRef.value.openDetail(row, titleName, titleValue, 'jobCountMain')

Loading…
Cancel
Save