Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TFMOM
TF-MOM-WEB
Commits
9a37e807
Commit
9a37e807
authored
Sep 07, 2023
by
jingnan
👀
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://94.191.100.41/tfmom/tf-mom-web
into dev
parents
ecaf8cb9
eccf2fcf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1912 additions
and
18 deletions
+1912
-18
exportExcelTable.vue
...c/customComponent/StationPlanDetails/exportExcelTable.vue
+149
-0
index.vue
.../dee-mes/src/customComponent/StationPlanDetails/index.vue
+1729
-0
index.vue
...nents/components/PurchasingWarehousingNewOrEdit/index.vue
+34
-18
No files found.
applications/dee-mes/src/customComponent/StationPlanDetails/exportExcelTable.vue
0 → 100644
View file @
9a37e807
<!--
* @Author:fangk
* @Date: 2021-03-23
* @Description: 生产准备检查-生产准备检查
* @setAuthor:fangk 2021-03-22
-->
<
template
>
<div
class=
"production-preparation-inspection-confirmation"
>
<el-table
:ref=
"onlyUuid"
:data=
"confirmaData"
row-key=
"id"
default-expand-all
:tree-props=
"
{ children: 'children', hasChildren: 'hasChildren' }"
>
<el-table-column
type=
"index"
align=
"center"
label=
"序号"
:width=
"65"
/>
<el-table-column
prop=
"materNo"
label=
"装配单元/AO号"
sortable
:min-width=
"150"
/>
<el-table-column
v-if=
"conStatus === 'Y'"
prop=
"planStateCode"
align=
"center"
label=
"状态"
sortable
:width=
"90"
:formatter=
"planStateCodeFormatter"
/>
<el-table-column
prop=
"fitRates"
align=
"center"
label=
"齐套率"
sortable
:width=
"90"
:formatter=
"fitRatesFormatter"
/>
<el-table-column
prop=
"workHour"
align=
"center"
label=
"工期(h)"
:width=
"70"
/>
<el-table-column
prop=
"scheduledStart"
align=
"center"
label=
"计划开工时间"
sortable
:min-width=
"170"
/>
<el-table-column
prop=
"scheduledEnd"
align=
"center"
label=
"计划完工时间"
sortable
:min-width=
"170"
/>
<el-table-column
prop=
"index"
align=
"center"
label=
"前置节点"
:width=
"100"
:formatter=
"preposeFormatter"
/>
</el-table>
</div>
</
template
>
<
script
>
import
{
v4
as
uuidv4
}
from
'uuid'
// import { exportExcel } from '@/api/exportExcel-elementUI.js'
export
default
{
props
:
{
confirmaData
:
{
type
:
Array
,
default
:
()
=>
[]
},
conStatus
:
{
type
:
String
,
default
:
'N'
}
},
data
()
{
return
{
onlyUuid
:
''
}
},
mounted
()
{
this
.
onlyUuid
=
uuidv4
()
},
created
()
{},
methods
:
{
/**
*格式化齐套率
*/
fitRatesFormatter
(
row
,
column
,
cellValue
,
index
)
{
return
cellValue
===
1
?
'符合'
:
'不符合'
},
/**
*格式化前置
*/
preposeFormatter
(
row
,
column
,
cellValue
,
index
)
{
const
that
=
this
var
linkTitle
=
[]
if
(
row
.
executorVoList
&&
row
.
executorVoList
.
length
)
{
row
.
executorVoList
.
forEach
((
p
)
=>
{
if
(
row
.
parenId
)
{
const
data
=
that
.
confirmaData
.
filter
(
(
t
)
=>
t
.
id
===
row
.
parenId
)[
0
].
children
const
item
=
data
.
filter
((
t
)
=>
t
.
id
===
p
.
prevNodeId
)
if
(
item
&&
item
.
length
)
{
linkTitle
.
push
(
item
[
0
].
index
)
}
}
else
{
const
item
=
that
.
confirmaData
.
filter
((
t
)
=>
t
.
id
===
p
.
prevNodeId
)
if
(
item
&&
item
.
length
)
{
linkTitle
.
push
(
item
[
0
].
index
)
}
}
})
}
return
linkTitle
.
join
(
','
)
},
/**
* 状态
*/
planStateCodeFormatter
(
row
,
column
,
cellValue
,
index
)
{
if
(
!
cellValue
)
return
var
dictValue
=
this
.
$parent
.
joExecutePlanStateData
.
filter
(
(
p
)
=>
p
.
dictKey
===
cellValue
)
if
(
dictValue
&&
dictValue
.
length
)
{
return
dictValue
[
0
].
dictValue
}
return
''
}
/**
* 导出数据
*/
// exportTable() {
// exportExcel(this.$refs[this.onlyUuid].$el, '总装制造执行系统')
// },
// exportTable2() {
// exportExcel(this.$parent.$refs[this.$parent.onlyUuid].$el, '准备情况')
// }
}
}
</
script
>
applications/dee-mes/src/customComponent/StationPlanDetails/index.vue
0 → 100644
View file @
9a37e807
This diff is collapsed.
Click to expand it.
applications/dee-mes/src/privateComponents/components/PurchasingWarehousingNewOrEdit/index.vue
View file @
9a37e807
...
@@ -38,6 +38,8 @@
...
@@ -38,6 +38,8 @@
import
{
post
,
del
,
get
}
from
'@/utils/http'
import
{
post
,
del
,
get
}
from
'@/utils/http'
import
StorageDetails
from
'./component/storageDetailsCreateCom'
import
StorageDetails
from
'./component/storageDetailsCreateCom'
import
ImportFile
from
'./component/importFile'
import
ImportFile
from
'./component/importFile'
import
{
downloadFile
}
from
'@/utils/http'
export
default
{
export
default
{
componentName
:
'采购入库申请创建编辑'
,
componentName
:
'采购入库申请创建编辑'
,
name
:
'PurchasingWarehousingNewOrEdit'
,
// name写在组件的最前方,自定义组件为必填
name
:
'PurchasingWarehousingNewOrEdit'
,
// name写在组件的最前方,自定义组件为必填
...
@@ -225,25 +227,39 @@ export default {
...
@@ -225,25 +227,39 @@ export default {
})
})
}
}
}
}
}
},
// {
{
// name: '模版下载',
name
:
'模版下载'
,
// icon: '/icons/c-down.png',
icon
:
'/icons/c-down.png'
,
// handler: {
handler
:
{
// click: () => {
click
:
()
=>
{
// this.$utils.downLoadFileUrl('/download/template/器材导入模板.xlsx', '器材导入模板.xlsx')
this
.
$refs
.
form
.
validate
((
isok
)
=>
{
if
(
isok
)
{
let
fileName
=
''
// 使用一个映射来将不同的billType映射到对应的文件名
const
billTypeToFileNameMap
=
{
'Material'
:
'器材导入模板.xlsx'
,
'AirEquipment'
:
'机载设备导入模板.xlsx'
,
'OutSource'
:
'外包产品导入模板.xlsx'
}
if
(
billTypeToFileNameMap
[
this
.
form
.
billType
])
{
fileName
=
billTypeToFileNameMap
[
this
.
form
.
billType
]
}
// this.$refs.form.validate((isok) => {
// 然后下载文件
// if (isok) {
if
(
fileName
)
{
// // 校验通过
downloadFile
(
`/download/template/
${
fileName
}
`
,
'get'
).
then
(
res
=>
{
// // this.$utils.downLoadFileUrl('/download/template/器材导入模板.xlsx', '器材导入模板.xlsx')
this
.
$utils
.
downLoadFile
(
res
,
fileName
)
// } else {
})
// this.$utils.showMessageWarning('请填写基本信息!')
}
// }
}
else
{
// })
this
.
$utils
.
showMessageWarning
(
'请填写基本信息!'
)
// }
}
// }
})
// }
}
}
}
],
],
topTools
:
[
topTools
:
[
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment