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
e7546366
Commit
e7546366
authored
Sep 18, 2023
by
xioln
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购、三期、返厂入库流程签审对象
parent
64ab6727
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
340 additions
and
164 deletions
+340
-164
index.vue
...nents/components/AddOutStorageOfferDetailDialog/index.vue
+0
-3
index.vue
...e-mes/src/privateComponents/components/FlowEdit/index.vue
+81
-0
addOutStorageOfferDetailDialog1.vue
...fferDetail/components/addOutStorageOfferDetailDialog1.vue
+0
-124
index.vue
...nents/components/PurchasingWarehousingNewOrEdit/index.vue
+0
-5
index.vue
...ponents/components/PurchasingWarehousingProcess/index.vue
+32
-32
index.vue
...ts/components/PurchasingWarehousingProcess_view/index.vue
+227
-0
No files found.
applications/dee-mes/src/privateComponents/components/AddOutStorageOfferDetailDialog/index.vue
View file @
e7546366
...
@@ -46,21 +46,18 @@ export default {
...
@@ -46,21 +46,18 @@ export default {
},
},
created
()
{
created
()
{
// 初始化数据
// 初始化数据
console
.
log
(
'basicData'
,
this
.
basicData
)
},
},
methods
:
{
methods
:
{
selectionChange
(
val
)
{
selectionChange
(
val
)
{
this
.
selection
=
val
this
.
selection
=
val
},
},
submitEvent
()
{
submitEvent
()
{
console
.
log
(
'this.basicData'
,
this
.
basicData
)
const
selection
=
this
.
selection
.
filter
(
r
=>
{
const
selection
=
this
.
selection
.
filter
(
r
=>
{
if
(
!
this
.
basicData
.
inStorageRequestItems
)
{
if
(
!
this
.
basicData
.
inStorageRequestItems
)
{
return
true
return
true
}
}
return
!
this
.
basicData
.
inStorageRequestItems
.
find
(
item
=>
r
.
id
===
item
.
extMaterialId
)
return
!
this
.
basicData
.
inStorageRequestItems
.
find
(
item
=>
r
.
id
===
item
.
extMaterialId
)
})
})
console
.
log
(
'selection'
,
selection
)
if
(
selection
.
length
)
{
if
(
selection
.
length
)
{
const
data
=
selection
.
map
(
r
=>
{
const
data
=
selection
.
map
(
r
=>
{
return
{
return
{
...
...
applications/dee-mes/src/privateComponents/components/FlowEdit/index.vue
0 → 100644
View file @
e7546366
/**
* @Description: 流程编辑
* @author xioln
* @date 2023-09-16
* @FilePath: applications/dee-mes/src/privateComponents/components/FlowEdit/index.vue
*/
<
template
>
<div
class=
"flow-edit"
>
<edit-purchase
v-if=
"purchaseVis"
:basic-data=
"basicData"
/>
<dee-as-com
v-else
:key=
"refreshKey"
ref=
"itemTable"
style=
"border:none;"
model-name=
"InStorageUse"
:lay-config=
"cmpOptions"
:basic-data=
"basicData"
/>
</div>
</
template
>
<
script
>
import
EditPurchase
from
'@/privateComponents/components/PurchasingWarehousingProcess'
export
default
{
name
:
'FlowEdit'
,
// name写在组件的最前方,自定义组件为必填
components
:
{
EditPurchase
},
props
:
{
basicData
:
{
type
:
Object
,
default
:
()
=>
null
}
},
data
()
{
return
{
cmpOptions
:
{
typeName
:
'InStorageRecall'
,
layKey
:
'edit'
},
purchaseVis
:
false
}
},
computed
:
{},
watch
:
{
basicData
:
{
immediate
:
true
,
deep
:
true
,
handler
(
val
)
{
if
(
val
&&
val
.
subTypeName
)
{
switch
(
val
.
subTypeName
)
{
case
'InStorageRecall'
:
this
.
cmpOptions
=
{
typeName
:
'InStorageRecall'
,
// 返厂入库
layKey
:
'edit'
}
break
case
'InStorageExpire'
:
this
.
cmpOptions
=
{
typeName
:
'InStorageExpire'
,
// 三期入库
layKey
:
'basicInfo_edit_sanqiruku'
}
break
case
'InStoragePurchase'
:
// 采购入库
this
.
purchaseVis
=
true
break
default
:
break
}
}
}
}
},
created
()
{
// 初始化数据
console
.
log
(
' this.basicData'
,
this
.
basicData
)
console
.
log
(
' this.form'
,
this
.
form
)
},
methods
:
{
}
}
</
script
>
<
style
lang=
'scss'
></
style
>
applications/dee-mes/src/privateComponents/components/OutStorageOfferDetail/components/addOutStorageOfferDetailDialog1.vue
deleted
100644 → 0
View file @
64ab6727
/**
* @Description: 供外出库添加明细弹框
* @author xioln
* @date 2023-08-09
* @FilePath: applications/dee-mes/src/privateComponents/components/OutStorageOfferDetail/components/addOutStorageOfferDetailDialog.vue
*/
<
template
>
<div
class=
"addOutStorageOfferDetail-dialog"
>
<dee-as-com
ref=
"OfferTable"
class=
"list-table"
:lay-config=
"
{ typeName: 'ExtDxProcessMaterial', layKey: 'table' }"
@selectionChange="selectionChange"
/>
<el-form
:model=
"form"
:rules=
"formRules"
style=
"margin-top: 50px;"
>
<el-form-item
label=
"申领数量"
>
<el-input-number
v-model=
"reqAmount"
:min=
"0"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"foot-btn-box"
>
<el-button
type=
"primary"
@
click=
"addEvent"
>
添加
</el-button>
<el-button
type=
"primary"
@
click=
"submitEvent"
>
确认
</el-button>
<el-button
@
click=
"cancelEvent"
>
取消
</el-button>
</div>
</div>
</
template
>
<
script
>
export
default
{
// componentName: '供外出库添加明细弹窗',
// name: 'AddOutStorageOfferDetailDialog',
components
:
{},
props
:
{
basicData
:
{
type
:
Object
,
default
:
()
=>
{
}
}
},
data
()
{
return
{
selection
:
[],
defaultData
:
{},
form
:
{
},
reqAmount
:
0
,
formRules
:
{
reqAmount
:
[{
required
:
true
,
message
:
'申领数量'
}]
},
submitData
:
[]
}
},
computed
:
{
// maxNum: {
// get() {
// // this.selection
// return 0
// }
// }
},
created
()
{
// 初始化数据
},
methods
:
{
selectionChange
(
val
)
{
this
.
selection
=
val
},
addEvent
()
{
this
.
submit
()
},
submitEvent
()
{
this
.
submit
()
this
.
$emit
(
'submitEvent'
,
{
formData
:
this
.
submitData
})
},
submit
()
{
var
arr
=
[]
this
.
selection
.
forEach
(
sel
=>
{
if
(
!
this
.
submitData
)
{
arr
.
push
(
sel
)
}
this
.
submitData
.
forEach
(
item
=>
{
if
(
sel
.
id
===
item
.
extMaterialId
)
{
item
.
reqAmount
=
this
.
reqAmount
}
else
{
arr
.
push
(
sel
)
}
})
})
console
.
log
(
'arr'
,
arr
)
if
(
arr
.
length
)
{
const
data
=
arr
.
map
(
r
=>
{
return
{
'subTypeName'
:
'OutStorageOutItem'
,
'extMaterial'
:
r
,
'extMaterialId'
:
r
.
id
,
'operator'
:
'ADD'
,
'reqAmount'
:
this
.
reqAmount
}
})
this
.
submitData
=
[...
data
,
...
this
.
submitData
]
console
.
log
(
'this.submitData'
,
this
.
submitData
)
this
.
$refs
.
OfferTable
.
$refs
.
asCom
.
getData
()
this
.
$utils
.
showMessageSuccess
(
'添加成功!'
)
}
},
cancelEvent
()
{
this
.
$emit
(
'cancel'
)
}
}
}
</
script
>
<
style
lang=
'scss'
>
.addOutStorageOfferDetail-dialog
{
.list-table
{
height
:
310px
!
important
;
}
.foot-btn-box
{
display
:
flex
;
margin-top
:
10px
;
justify-content
:
center
;
align-content
:
center
;
}
}
</
style
>
applications/dee-mes/src/privateComponents/components/PurchasingWarehousingNewOrEdit/index.vue
View file @
e7546366
...
@@ -473,11 +473,6 @@ export default {
...
@@ -473,11 +473,6 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
basicData
:
{
handler
(
val
)
{
},
deep
:
true
}
},
},
created
()
{
created
()
{
// 初始化数据
// 初始化数据
...
...
applications/dee-mes/src/privateComponents/components/PurchasingWarehousingProcess/index.vue
View file @
e7546366
...
@@ -6,13 +6,9 @@
...
@@ -6,13 +6,9 @@
*/
*/
<
template
>
<
template
>
<div
class=
"purchasingwarehousing-process"
>
<div
class=
"purchasingwarehousing-process"
>
<dee-table
<dee-as-com
:lay-config=
"
{ typeName: 'InStoragePurchase', layKey: 'flowView' }" :basic-data="{id:basicData.inventoryReqId}" />
v-if=
"basicData.id"
<div
class=
"form-row-title"
>
查看明细
</div>
ref=
"treeTable"
<dee-up-table
v-if=
"basicData.id"
ref=
"treeTable"
:data=
"tableData"
:columns=
"columns"
:options=
"optionsTree"
/>
:data=
"tableData"
:columns=
"columns"
:options=
"optionsTree"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -64,20 +60,26 @@ export default {
...
@@ -64,20 +60,26 @@ export default {
},
},
// { title: '是否合格供应商', key: 'extDxSipplier.isValid', headerAlign: 'center' },
// { title: '是否合格供应商', key: 'extDxSipplier.isValid', headerAlign: 'center' },
{
title
:
'制造商'
,
key
:
'manufacturer'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'制造商'
,
key
:
'manufacturer'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'到货日期'
,
key
:
'arrivalDate'
,
align
:
'center'
,
headerAlign
:
'center'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
{
title
:
'到货日期'
,
key
:
'arrivalDate'
,
align
:
'center'
,
headerAlign
:
'center'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
return
row
.
arrivalDate
&&
row
.
arrivalDate
.
split
(
' '
)[
0
]
return
row
.
arrivalDate
&&
row
.
arrivalDate
.
split
(
' '
)[
0
]
}
},
}
{
title
:
'生产日期'
,
key
:
'producedTime'
,
align
:
'center'
,
headerAlign
:
'center'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
},
{
title
:
'生产日期'
,
key
:
'producedTime'
,
align
:
'center'
,
headerAlign
:
'center'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
return
row
.
producedTime
&&
row
.
producedTime
.
split
(
' '
)[
0
]
return
row
.
producedTime
&&
row
.
producedTime
.
split
(
' '
)[
0
]
}
},
}
},
{
{
title
:
'随产品资料'
,
key
:
'withProductMaterial'
,
align
:
'center'
,
headerAlign
:
'center'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
title
:
'随产品资料'
,
key
:
'withProductMaterial'
,
align
:
'center'
,
headerAlign
:
'center'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
return
Array
.
isArray
(
row
.
withProductMaterial
)
?
row
.
withProductMaterial
.
join
(
';'
)
:
row
.
withProductMaterial
return
Array
.
isArray
(
row
.
withProductMaterial
)
?
row
.
withProductMaterial
.
join
(
';'
)
:
row
.
withProductMaterial
}
}
},
},
{
title
:
'紧急程度'
,
key
:
'urgency'
,
align
:
'center'
,
headerAlign
:
'center'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
{
title
:
'紧急程度'
,
key
:
'urgency'
,
align
:
'center'
,
headerAlign
:
'center'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
return
row
.
urgency
?
'紧急'
:
'正常'
return
row
.
urgency
?
'紧急'
:
'正常'
}
},
}
},
{
title
:
'入库单价'
,
key
:
'stockUnitPrice'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'入库单价'
,
key
:
'stockUnitPrice'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'入库金额'
,
key
:
'stockPrice'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'入库金额'
,
key
:
'stockPrice'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'含税单价'
,
key
:
'taxUnitPrice'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'含税单价'
,
key
:
'taxUnitPrice'
,
align
:
'center'
,
headerAlign
:
'center'
},
...
@@ -93,9 +95,11 @@ export default {
...
@@ -93,9 +95,11 @@ export default {
{
title
:
'合同号'
,
key
:
'contractNo'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'合同号'
,
key
:
'contractNo'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'备注'
,
key
:
'remark'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'备注'
,
key
:
'remark'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'状态'
,
key
:
'state'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'状态'
,
key
:
'state'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'创建时间'
,
key
:
'createTime'
,
align
:
'center'
,
headerAlign
:
'center'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
{
title
:
'创建时间'
,
key
:
'createTime'
,
align
:
'center'
,
headerAlign
:
'center'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
return
row
.
createTime
&&
row
.
createTime
.
split
(
' '
)[
0
]
return
row
.
createTime
&&
row
.
createTime
.
split
(
' '
)[
0
]
}
}
}
}
],
],
optionsTree
:
{
optionsTree
:
{
rowKey
:
'id'
,
rowKey
:
'id'
,
...
@@ -106,24 +110,11 @@ export default {
...
@@ -106,24 +110,11 @@ export default {
},
},
computed
:
{},
computed
:
{},
watch
:
{
watch
:
{
// 'basicData.id': {
// immediate: true,
// deep: true,
// handler: function(val) {
// this.searchInStorageRequestItem(val)
// }
// }
},
},
created
()
{
created
()
{
// 初始化数据
// 初始化数据
},
},
mounted
()
{
mounted
()
{
// this.timerId = setInterval(() => {
// if (this.basicData.id) {
// clearInterval(this.timerId)
// this.timerId = null
// }
// }, 200)
if
(
this
.
basicData
.
subTypeName
===
'InStoragePurchase'
)
{
if
(
this
.
basicData
.
subTypeName
===
'InStoragePurchase'
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
if
(
this
.
basicData
.
inStorageRequestItems
[
0
])
{
if
(
this
.
basicData
.
inStorageRequestItems
[
0
])
{
...
@@ -224,4 +215,13 @@ export default {
...
@@ -224,4 +215,13 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
'scss'
>
<
style
lang=
'scss'
>
.purchasingwarehousing-process
{
.form-row-title
{
padding-left
:
10px
;
line-height
:
32px
;
font-size
:
14px
;
font-weight
:
700
;
color
:
#3590BE
;
}
}
</
style
>
</
style
>
applications/dee-mes/src/privateComponents/components/PurchasingWarehousingProcess_view/index.vue
0 → 100644
View file @
e7546366
/**
* @Description: 验收入库申请流程详情
* @author xioln
* @date 2023-07-14
* @FilePath: applications/dee-mes/src/privateComponents/components/PurchasingWarehousingProcessView/index.vue
*/
<
template
>
<div
class=
"purchasingwarehousing-process"
>
<dee-as-com
:lay-config=
"
{ typeName: 'InStoragePurchase', layKey: 'flowView_view' }" :basic-data="{id:basicData.inventoryReqId}" />
<div
class=
"form-row-title"
>
查看明细
</div>
<dee-up-table
v-if=
"basicData.id"
ref=
"treeTable"
:data=
"tableData"
:columns=
"columns"
:options=
"optionsTree"
/>
</div>
</
template
>
<
script
>
import
{
post
}
from
'@/utils/http'
export
default
{
// componentName: '验收入库申请流程详情',
name
:
'PurchasingWarehousingProcessView'
,
// name写在组件的最前方,自定义组件为必填
components
:
{},
// name写在组件的最前方,自定义组件为必填
props
:
{
basicData
:
{
type
:
Object
,
default
:
()
=>
null
}
},
data
()
{
return
{
tableData
:
[],
columns
:
[
{
title
:
'序号'
,
key
:
'parentIndex'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'单据编号'
,
key
:
'inventoryReq.reqNo'
,
width
:
'120'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'所属设备'
,
key
:
'subEquipment'
,
headerAlign
:
'center'
,
align
:
'center'
},
{
title
:
'物料类型'
,
key
:
'typeName'
,
align
:
'center'
,
headerAlign
:
'center'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
const
value
=
row
.
extMaterial
?
row
.
extMaterial
.
resType2
.
typeName
:
row
.
materialTypeName
return
value
}
},
{
title
:
'编码'
,
key
:
'typeCode'
,
align
:
'center'
,
headerAlign
:
'center'
,
width
:
'100'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
const
value
=
row
.
resCode
?
row
.
resCode
:
row
.
extMaterial
?
row
.
extMaterial
.
resCode
:
''
return
value
}
},
{
title
:
'机型'
,
key
:
'airModel'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'架次'
,
key
:
'sorties'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'计量单位'
,
key
:
'unitName'
,
align
:
'center'
,
headerAlign
:
'center'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
const
value
=
row
.
reqUnit
?
row
.
reqUnit
:
row
.
extMaterial
?
row
.
extMaterial
.
extUnit
.
unitName
:
''
return
value
}
},
{
title
:
'入库数量'
,
key
:
'reqAmount'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'供应商'
,
key
:
'supplierFullName'
,
align
:
'center'
,
headerAlign
:
'center'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
const
value
=
row
.
extDxSipplier
?
row
.
extDxSipplier
.
supplierFullName
:
row
.
supplier
return
value
}
},
// { title: '是否合格供应商', key: 'extDxSipplier.isValid', headerAlign: 'center' },
{
title
:
'制造商'
,
key
:
'manufacturer'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'到货日期'
,
key
:
'arrivalDate'
,
align
:
'center'
,
headerAlign
:
'center'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
return
row
.
arrivalDate
&&
row
.
arrivalDate
.
split
(
' '
)[
0
]
}
},
{
title
:
'生产日期'
,
key
:
'producedTime'
,
align
:
'center'
,
headerAlign
:
'center'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
return
row
.
producedTime
&&
row
.
producedTime
.
split
(
' '
)[
0
]
}
},
{
title
:
'随产品资料'
,
key
:
'withProductMaterial'
,
align
:
'center'
,
headerAlign
:
'center'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
return
Array
.
isArray
(
row
.
withProductMaterial
)
?
row
.
withProductMaterial
.
join
(
';'
)
:
row
.
withProductMaterial
}
},
{
title
:
'紧急程度'
,
key
:
'urgency'
,
align
:
'center'
,
headerAlign
:
'center'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
return
row
.
urgency
?
'紧急'
:
'正常'
}
},
{
title
:
'入库单价'
,
key
:
'stockUnitPrice'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'入库金额'
,
key
:
'stockPrice'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'含税单价'
,
key
:
'taxUnitPrice'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'含税金额'
,
key
:
'taxPrice'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'税率'
,
key
:
'taxRate'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'报检人'
,
key
:
'applyUserName'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'接受仓库'
,
key
:
'extname'
,
align
:
'center'
,
headerAlign
:
'center'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
const
value
=
row
.
storageZone
?
row
.
storageZone
.
extname
:
row
.
storageZoneName
return
value
}
},
{
title
:
'合同号'
,
key
:
'contractNo'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'备注'
,
key
:
'remark'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'状态'
,
key
:
'state'
,
align
:
'center'
,
headerAlign
:
'center'
},
{
title
:
'创建时间'
,
key
:
'createTime'
,
align
:
'center'
,
headerAlign
:
'center'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
return
row
.
createTime
&&
row
.
createTime
.
split
(
' '
)[
0
]
}
}
],
optionsTree
:
{
rowKey
:
'id'
,
'tree-props'
:
{
children
:
'children'
}
},
timerId
:
null
}
},
computed
:
{},
watch
:
{
},
created
()
{
// 初始化数据
},
mounted
()
{
if
(
this
.
basicData
.
subTypeName
===
'InStoragePurchase'
)
{
this
.
$nextTick
(()
=>
{
if
(
this
.
basicData
.
inStorageRequestItems
[
0
])
{
this
.
searchInStorageRequestItem
(
this
.
basicData
.
inStorageRequestItems
[
0
].
inventoryReqId
,
'inventoryReq.id'
)
}
})
}
else
{
this
.
searchInStorageRequestItem
(
this
.
basicData
.
id
,
'id'
)
}
},
methods
:
{
// 编辑采购入库明细查询InStorageRequestItem/search
searchInStorageRequestItem
(
id
,
fieldName
)
{
const
param
=
{
'rootCondition'
:
{
'pageFrom'
:
1
,
'pageSize'
:
10
,
'searchItems'
:
{
'children'
:
[
{
'items'
:
[
{
'fieldName'
:
fieldName
,
'operator'
:
'EQ'
,
'value'
:
id
},
{
'fieldName'
:
'parentId'
,
'operator'
:
'ISNULL'
}
],
'operator'
:
'AND'
}
],
'items'
:
[
]
},
'openProps'
:
[{
'name'
:
'extMaterial'
,
'openProps'
:
[{
'name'
:
'resType2'
},
{
'name'
:
'extUnit'
}]
},
{
'name'
:
'extDxSipplier'
},
{
'name'
:
'storageZone'
},
{
'name'
:
'inventoryReq'
}],
'sortItem'
:
[
{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
}
]
},
'childCondition'
:
{
'pageFrom'
:
1
,
'pageSize'
:
9999
,
'searchItems'
:
{
'children'
:
[
],
'items'
:
[
]
},
'openProps'
:
[
{
'name'
:
'extMaterial'
,
'openProps'
:
[
{
'name'
:
'resType2'
},
{
'name'
:
'extUnit'
}
]
},
{
'name'
:
'extDxSipplier'
},
{
'name'
:
'storageZone'
},
{
'name'
:
'inventoryReq'
}
],
'sortItem'
:
[
{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
}
]
}
}
post
(
'InStorageRequestItem/treeSearch'
,
param
).
then
(
res
=>
{
const
data
=
res
.
items
this
.
treeTableNoArrange
(
data
)
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
})
},
treeTableNoArrange
(
tableData
)
{
tableData
.
forEach
((
item
,
i
)
=>
{
item
.
parentIndex
=
i
+
1
if
(
item
.
children
)
{
item
.
children
.
forEach
((
child
,
j
)
=>
{
child
.
parentIndex
=
item
.
parentIndex
+
'.'
+
(
j
+
1
)
})
}
})
this
.
tableData
=
tableData
}
}
}
</
script
>
<
style
lang=
'scss'
>
.purchasingwarehousing-process
{
.form-row-title
{
padding-left
:
10px
;
line-height
:
32px
;
font-size
:
14px
;
font-weight
:
700
;
color
:
#3590BE
;
}
}
</
style
>
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