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
1002b33c
Commit
1002b33c
authored
Aug 23, 2023
by
xioln
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
供外物料类型选择
parent
fc83cdf4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
212 additions
and
88 deletions
+212
-88
index.vue
...vateComponents/components/ExtResourceTypeSelect/index.vue
+96
-0
importFile.vue
...s/PurchasingWarehousingNewOrEdit/component/importFile.vue
+10
-7
storageDetailsCreateCom.vue
...arehousingNewOrEdit/component/storageDetailsCreateCom.vue
+100
-73
index.vue
...nents/components/PurchasingWarehousingNewOrEdit/index.vue
+6
-8
No files found.
applications/dee-mes/src/privateComponents/components/ExtResourceTypeSelect/index.vue
0 → 100644
View file @
1002b33c
/**
* @Description: 物料类型
* @author xioln
* @date 2023-08-23
* @FilePath: applications/dee-mes/src/privateComponents/components/extResourceTypeSelect/index.vue
*/
<
template
>
<div>
<el-select
v-model=
"form.materialType"
:disabled=
"disabledVal"
>
<el-option
v-for=
"(item,i) in materialTypeOptions"
:key=
"i"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</div>
</
template
>
<
script
>
export
default
{
componentName
:
'物料类型'
,
name
:
'ExtResourceTypeSelect'
,
components
:
{},
props
:
{
form
:
{},
itemObj
:
{
type
:
Object
,
default
:
null
}
},
data
()
{
return
{
materialTypeOptions
:
[],
isFirst
:
true
,
disabledVal
:
false
}
},
computed
:
{},
watch
:
{
'form.extWorkCenterId'
(
val
)
{
if
(
val
)
{
this
.
$set
(
this
.
form
,
'materialType'
,
this
.
form
.
materialTypeId
||
''
)
if
(
!
this
.
isFirst
)
{
this
.
$set
(
this
.
form
,
'materialType'
,
''
)
}
this
.
getMaterialType
(
val
)
}
},
itemObj
:
{
immediate
:
true
,
deep
:
true
,
handler
(
v
)
{
if
(
v
.
component
.
hasOwnProperty
(
'disabled'
))
{
this
.
disabledVal
=
v
.
component
.
disabled
}
}
}
},
// 生命周期 - 创建完成(可以访问当前this 实例)
created
()
{
},
// 生命周期 - 挂载之前
beforeMount
()
{
},
// 生命周期 - 挂载完成(可以访问 DOM 元素)
mounted
()
{
},
methods
:
{
getMaterialType
(
val
)
{
this
.
isFirst
=
false
const
params
=
{
searchItems
:
{
items
:
[{
'fieldName'
:
'sourceId'
,
operator
:
'EQ'
,
value
:
val
}],
operator
:
'AND'
},
openProps
:
[{
'name'
:
'target'
}]
}
this
.
$api
.
searchApi
(
'ExtCenterResourceTypeLink'
,
params
).
then
(
res
=>
{
const
materialTypeOptions
=
res
.
items
.
content
.
map
(
row
=>
{
return
{
value
:
row
.
target
.
id
,
label
:
row
.
target
.
typeName
}
})
this
.
materialTypeOptions
=
materialTypeOptions
})
}
}
}
</
script
>
<
style
lang=
'scss'
scoped
>
</
style
>
applications/dee-mes/src/privateComponents/components/PurchasingWarehousingNewOrEdit/component/importFile.vue
View file @
1002b33c
...
...
@@ -6,10 +6,12 @@
*/
<
template
>
<div
class=
"procurement-Warehousing-import"
>
<
dee
-dialog
:
dialog-visible
=
"dialogVisible"
<
el
-dialog
:
visible
.
sync
=
"dialogVisible"
title=
"导入"
width=
"40%"
close-on-click-modal
show-close
>
<el-form
ref=
"fileForm"
label-width=
"100px"
>
<el-form-item
label=
"选择文件"
>
...
...
@@ -38,7 +40,7 @@
@
click=
"handleImportExcel"
>
确定导入
</el-button>
</div>
</
dee
-dialog>
</
el
-dialog>
</div>
</
template
>
<
script
>
...
...
@@ -123,13 +125,14 @@ export default {
this
.
$api
.
apiUploadFile
(
`/InStorageRequestItem/importByExcel?id=
${
id
}
`
,
formData
).
then
(
res
=>
{
// 调用接口
this
.
uploading
=
false
if
(
res
.
code
===
'0'
)
{
this
.
$
message
.
s
uccess
(
res
.
message
)
this
.
$
utils
.
showMessageS
uccess
(
res
.
message
)
this
.
close
()
}
else
{
this
.
$
message
.
e
rror
(
res
.
message
)
this
.
$
utils
.
showMessageE
rror
(
res
.
message
)
}
}).
catch
(
err
=>
{
this
.
$message
.
error
(
err
)
// this.$utils.showMessageError(err)
console
.
log
(
'err'
,
err
)
})
}
}
...
...
@@ -138,7 +141,7 @@ export default {
<
style
lang=
'scss'
>
.procurement-Warehousing-import
{
.dialog-footer
{
float
:
right
;
margin-right
:
25px
;
}
}
</
style
>
applications/dee-mes/src/privateComponents/components/PurchasingWarehousingNewOrEdit/component/storageDetailsCreateCom.vue
View file @
1002b33c
This diff is collapsed.
Click to expand it.
applications/dee-mes/src/privateComponents/components/PurchasingWarehousingNewOrEdit/index.vue
View file @
1002b33c
...
...
@@ -442,13 +442,11 @@ export default {
},
methods
:
{
back
()
{
setTimeout
(()
=>
{
this
.
$store
.
dispatch
(
'tagsView/delView'
,
this
.
$route
)
this
.
$router
.
replace
({
path
:
'/page/86a5fa19-e245-4732-aff6-c48b18e2b5c7'
,
query
:
{
title
:
'采购入库'
,
menuRootAppId
:
'1626781924331'
}
})
},
2000
)
this
.
$store
.
dispatch
(
'tagsView/delView'
,
this
.
$route
)
this
.
$router
.
replace
({
path
:
'/page/86a5fa19-e245-4732-aff6-c48b18e2b5c7'
,
query
:
{
title
:
'采购入库'
,
menuRootAppId
:
'1626781924331'
}
})
},
initData
()
{
this
.
getInventoryRequest
()
...
...
@@ -547,7 +545,7 @@ export default {
if
(
targetItem
)
{
targetItem
.
component
.
options
=
res
.
items
.
content
.
map
(
row
=>
({
value
:
row
.
id
,
label
:
row
.
typeName
}))
}
this
.
form
.
materialTypeId
=
''
//
this.form.materialTypeId = ''
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
})
...
...
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