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
fd322d84
Commit
fd322d84
authored
Oct 08, 2023
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购入库新建时导入不显示及保存不生效,台账验收单号点击弹框报错修改
parent
78b7ffe8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
9 deletions
+15
-9
index.vue
...eComponents/components/JobResponseInTestProcess/index.vue
+2
-0
importFile.vue
...s/PurchasingWarehousingNewOrEdit/component/importFile.vue
+4
-3
index.vue
...nents/components/PurchasingWarehousingNewOrEdit/index.vue
+9
-6
No files found.
applications/dee-mes/src/privateComponents/components/JobResponseInTestProcess/index.vue
View file @
fd322d84
...
...
@@ -64,6 +64,7 @@ export default {
},
methods
:
{
getInventoryRequest
(
id
)
{
if
(
!
id
)
return
get
(
`InventoryRequest/
${
id
}
`
).
then
(
res
=>
{
const
type
=
res
.
items
.
billType
// switch (type) {
...
...
@@ -80,6 +81,7 @@ export default {
// this.initData('OutSource')
// break
// }
if
(
!
type
)
return
this
.
$utils
.
showMessageWarning
(
'未查询到验收单信息!'
)
this
.
initData
(
type
)
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
...
...
applications/dee-mes/src/privateComponents/components/PurchasingWarehousingNewOrEdit/component/importFile.vue
View file @
fd322d84
...
...
@@ -110,7 +110,7 @@ export default {
}
else
{
post
(
'/InventoryRequest/batch/recursionAdd'
,
this
.
param
).
then
(
res
=>
{
if
(
res
.
items
.
id
)
{
this
.
upLoadExcel
(
res
.
items
.
id
)
this
.
upLoadExcel
(
res
.
items
.
id
,
'newData'
)
}
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
...
...
@@ -118,13 +118,14 @@ export default {
}
},
// 上传excel
upLoadExcel
(
id
)
{
upLoadExcel
(
id
,
isNew
)
{
const
formData
=
new
FormData
()
formData
.
append
(
'file'
,
this
.
file
.
raw
)
this
.
$api
.
apiUploadFile
(
`/InStorageRequestItem/importByExcel?id=
${
id
}
`
,
formData
).
then
(
res
=>
{
// 调用接口
this
.
uploading
=
false
this
.
$utils
.
showMessageSuccess
(
res
.
data
.
message
)
this
.
$emit
(
'refreshTable'
)
const
reqId
=
isNew
?
id
:
null
this
.
$emit
(
'refreshTable'
,
reqId
)
this
.
close
()
}).
catch
(
err
=>
{
this
.
uploading
=
false
...
...
applications/dee-mes/src/privateComponents/components/PurchasingWarehousingNewOrEdit/index.vue
View file @
fd322d84
...
...
@@ -470,7 +470,8 @@ export default {
tableParam
:
[],
operator
:
null
,
addData
:
{},
emptyContent
:
{
'icon'
:
'/icons/dee-doc/noData.png'
,
'text'
:
'暂无数据'
}
emptyContent
:
{
'icon'
:
'/icons/dee-doc/noData.png'
,
'text'
:
'暂无数据'
},
newDataImportResId
:
''
// 初次创建申请单导入时返回的id
}
},
computed
:
{
...
...
@@ -645,7 +646,8 @@ export default {
})
},
// 编辑采购入库明细查询InStorageRequestItem/search
searchInStorageRequestItem
()
{
searchInStorageRequestItem
(
id
)
{
this
.
newDataImportResId
=
id
const
param
=
{
'rootCondition'
:
{
'pageFrom'
:
this
.
pagination
.
currentPage
,
...
...
@@ -657,7 +659,7 @@ export default {
{
'fieldName'
:
'inventoryReq.id'
,
'operator'
:
'EQ'
,
'value'
:
this
.
currBasicData
.
id
'value'
:
id
||
this
.
currBasicData
.
id
},
{
'fieldName'
:
'isRoot'
,
...
...
@@ -828,8 +830,9 @@ export default {
})
const
isVirtualHasChild
=
tableData
.
find
(
item
=>
item
.
isVirtual
&&
(
!
item
.
children
||
!
item
.
children
.
length
||
item
.
children
&&
!
(
item
.
children
.
find
(
child
=>
child
.
operator
!==
'REMOVE'
))))
if
(
isVirtualHasChild
)
return
this
.
$utils
.
showMessageWarning
(
'父件为虚拟件时,必须添加子件!'
)
const
paramOperator
=
this
.
newDataImportResId
?
'MODIFY'
:
this
.
operator
const
param
=
{
'operator'
:
this
.
o
perator
,
'operator'
:
paramO
perator
,
'billType'
:
this
.
form
.
billType
,
'arrivalDate'
:
this
.
form
.
arrivalDate
,
'materialTypeIdType'
:
'ExtDxProcessResourceType'
,
...
...
@@ -842,8 +845,8 @@ export default {
'materialTypeId'
:
this
.
form
.
materialTypeId
,
'inStorageRequestItems'
:
tableData
}
if
(
this
.
o
perator
===
'MODIFY'
)
{
param
.
id
=
this
.
form
.
id
if
(
paramO
perator
===
'MODIFY'
)
{
param
.
id
=
this
.
newDataImportResId
||
this
.
form
.
id
}
post
(
'/InventoryRequest/batch/recursionAdd'
,
param
).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
'保存成功'
)
...
...
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