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
d5acf231
Commit
d5acf231
authored
Sep 06, 2023
by
xioln
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购入库抽屉、工厂日历抽屉、库位选择修改
parent
b705226a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
109 additions
and
51 deletions
+109
-51
config.js
...ponents/components/InStorageMoveWarehouseSelect/config.js
+31
-0
index.vue
...ponents/components/InStorageMoveWarehouseSelect/index.vue
+34
-33
index.vue
...nents/components/PurchasingWarehousingNewOrEdit/index.vue
+39
-13
index.vue
...-mes/src/privateComponents/components/Warehouse/index.vue
+1
-1
calendar.vue
...omponents/components/WordCalendar/components/calendar.vue
+1
-1
dialog.vue
...eComponents/components/WordCalendar/components/dialog.vue
+2
-2
header.vue
...eComponents/components/WordCalendar/components/header.vue
+1
-1
No files found.
applications/dee-mes/src/privateComponents/components/InStorageMoveWarehouseSelect/config.js
0 → 100644
View file @
d5acf231
export
default
{
props
:
{},
layoutConfigData
:
[
{
title
:
'高级组件配置'
,
data
:
[
{
key
:
'linkageAttr'
,
title
:
'联动属性'
,
component
:
{
defaultValue
:
'extWorkCenterId'
,
name
:
'el-input'
}
}
]
}
],
data
()
{
return
{
}
},
created
()
{
},
computed
:
{
},
methods
:
{
}
}
applications/dee-mes/src/privateComponents/components/InStorageMoveWarehouseSelect/index.vue
View file @
d5acf231
...
...
@@ -23,9 +23,11 @@
</div>
</
template
>
<
script
>
import
config
from
'./config'
import
_get
from
'lodash.get'
export
default
{
componentName
:
'
移库入库
库位选择'
,
name
:
'InStorageMoveWarehouseSelect'
,
// name写在组件的最前方,自定义组件为必填
componentName
:
'库位选择'
,
name
:
'InStorageMoveWarehouseSelect'
,
components
:
{},
// 自定义指令(和method同级)
directives
:
{
...
...
@@ -50,7 +52,8 @@ export default {
})
}
}
},
},
// name写在组件的最前方,自定义组件为必填
mixins
:
[
config
],
props
:
{
itemObj
:
{
type
:
Object
,
...
...
@@ -80,17 +83,25 @@ export default {
pageNumber
:
1
,
pageSize
:
10
},
loading
:
false
loading
:
false
,
linkageValue
:
''
}
},
computed
:
{},
watch
:
{
'form.extWorkCenterId'
:
{
form
:
{
immediate
:
true
,
deep
:
true
,
handler
(
val
)
{
if
(
val
)
{
// this.getdata()
if
(
!
this
.
itemObj
.
linkageAttr
)
{
return
}
const
_val
=
_get
(
this
.
form
,
this
.
itemObj
.
linkageAttr
)
if
(
_val
!==
this
.
linkageValue
)
{
this
.
linkageValue
=
_val
}
}
}
}
...
...
@@ -105,12 +116,12 @@ export default {
loadmore
()
{
if
(
!
this
.
stopLoading
)
{
const
querys
=
{
pageFrom
:
this
.
pageData
.
pageNumber
++
,
pageFrom
:
++
this
.
pageData
.
pageNumber
,
pageSize
:
10
,
searchItems
:
{
items
:
[
{
'fieldName'
:
'extname'
,
operator
:
'LIKE'
,
value
:
this
.
querys
},
{
'fieldName'
:
'extCenterId'
,
operator
:
'EQ'
,
value
:
this
.
form
.
extWorkCenterId
}
{
'fieldName'
:
'extCenterId'
,
operator
:
'EQ'
,
value
:
this
.
linkageValue
}
],
operator
:
'AND'
}
...
...
@@ -121,32 +132,20 @@ export default {
// 远程搜索物料类别
remoteMethod
(
query
)
{
this
.
querys
=
query
// 保存搜索内容
let
querys
=
{}
const
querys
=
{
pageFrom
:
1
,
pageSize
:
10
,
searchItems
:
{
items
:
[
{
'fieldName'
:
'extCenterId'
,
operator
:
'EQ'
,
value
:
this
.
linkageValue
}
],
operator
:
'AND'
}
}
// 有内容则搜索
if
(
query
!==
''
)
{
querys
=
{
pageFrom
:
1
,
pageSize
:
10
,
searchItems
:
{
items
:
[
{
'fieldName'
:
'extname'
,
operator
:
'LIKE'
,
value
:
query
},
{
'fieldName'
:
'extCenterId'
,
operator
:
'EQ'
,
value
:
this
.
form
.
extWorkCenterId
}
],
operator
:
'AND'
}
}
querys
.
searchItems
.
items
.
push
({
'fieldName'
:
'extname'
,
operator
:
'LIKE'
,
value
:
query
})
}
else
{
// 没有内容搜10
querys
=
{
pageFrom
:
1
,
pageSize
:
10
,
searchItems
:
{
items
:
[
{
'fieldName'
:
'extCenterId'
,
operator
:
'EQ'
,
value
:
this
.
form
.
extWorkCenterId
}
],
operator
:
'AND'
}
}
// 重置懒加载
this
.
stopLoading
=
false
this
.
pageData
=
{
// 懒加载相关参数,这里代表从第一条数据开始加载,一次加载二十项
...
...
@@ -178,6 +177,7 @@ export default {
this
.
selectLoading
=
true
this
.
$api
.
searchApi
(
'ExtDxProductWorkUnit'
,
querys
).
then
(
res
=>
{
const
arr
=
res
.
items
.
content
let
options
=
[]
// 如果某次返回值是[],表示已经加载完了,不必再加载
if
(
arr
.
length
===
0
)
{
this
.
stopLoading
=
true
...
...
@@ -185,20 +185,21 @@ export default {
}
// 保存数据
if
(
querys
.
pageNumber
===
1
)
{
this
.
options
=
arr
.
map
(
row
=>
{
options
=
arr
.
map
(
row
=>
{
return
{
value
:
row
.
id
,
label
:
row
.
extname
}
})
}
else
{
this
.
options
=
[...
this
.
options
,
...
arr
.
map
(
row
=>
{
options
=
[...
this
.
options
,
...
arr
.
map
(
row
=>
{
return
{
value
:
row
.
id
,
label
:
row
.
extname
}
})]
}
this
.
options
=
options
}).
finally
(()
=>
{
this
.
selectLoading
=
false
})
...
...
applications/dee-mes/src/privateComponents/components/PurchasingWarehousingNewOrEdit/index.vue
View file @
d5acf231
...
...
@@ -43,15 +43,15 @@ export default {
name
:
'PurchasingWarehousingNewOrEdit'
,
// name写在组件的最前方,自定义组件为必填
components
:
{
StorageDetails
,
ImportFile
},
props
:
{
//
basicData: {
//
type: Object,
//
default: () => null
//
}
basicData
:
{
type
:
Object
,
default
:
()
=>
null
}
},
data
()
{
const
that
=
this
return
{
b
asicData
:
null
,
currB
asicData
:
null
,
form
:
{},
formData
:
[{
title
:
'基本信息'
,
...
...
@@ -226,6 +226,24 @@ export default {
}
}
}
// {
// name: '模版下载',
// icon: '/icons/c-down.png',
// handler: {
// click: () => {
// this.$utils.downLoadFileUrl('/download/template/器材导入模板.xlsx', '器材导入模板.xlsx')
// this.$refs.form.validate((isok) => {
// if (isok) {
// // 校验通过
// // this.$utils.downLoadFileUrl('/download/template/器材导入模板.xlsx', '器材导入模板.xlsx')
// } else {
// this.$utils.showMessageWarning('请填写基本信息!')
// }
// })
// }
// }
// }
],
topTools
:
[
{
...
...
@@ -436,6 +454,13 @@ export default {
}
}
},
watch
:
{
basicData
:
{
handler
(
val
)
{
},
deep
:
true
}
},
created
()
{
// 初始化数据
this
.
initData
()
...
...
@@ -456,17 +481,17 @@ export default {
this
.
getExtDxProductArea
()
this
.
getExtDxSipplier
()
},
editInit
(
b
asicData
)
{
this
.
basicData
=
b
asicData
this
.
form
=
b
asicData
editInit
(
currB
asicData
)
{
this
.
currBasicData
=
currB
asicData
this
.
form
=
currB
asicData
this
.
searchInStorageRequestItem
()
this
.
operator
=
'MODIFY'
this
.
form
.
operator
=
'MODIFY'
this
.
getExtDxProcessResourceType
(
b
asicData
.
billType
)
this
.
getExtDxProcessResourceType
(
currB
asicData
.
billType
)
},
// 获取验收单数据InventoryRequest/search
getInventoryRequest
()
{
if
(
!
this
.
$route
.
query
.
hasOwnProperty
(
'id'
))
return
if
(
!
this
.
basicData
.
hasOwnProperty
(
'id'
))
return
const
param
=
{
'pageFrom'
:
1
,
'pageSize'
:
9999
,
...
...
@@ -488,7 +513,8 @@ export default {
{
'fieldName'
:
'id'
,
'operator'
:
'EQ'
,
'value'
:
this
.
$route
.
query
.
id
// 'value': this.$route.query.id
'value'
:
this
.
basicData
.
id
}
],
'operator'
:
'AND'
...
...
@@ -523,7 +549,7 @@ export default {
]
}
post
(
'InventoryRequest/search'
,
param
).
then
(
res
=>
{
this
.
b
asicData
=
res
.
items
.
content
[
0
]
this
.
currB
asicData
=
res
.
items
.
content
[
0
]
this
.
editInit
(
res
.
items
.
content
[
0
])
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
...
...
@@ -587,7 +613,7 @@ export default {
{
'fieldName'
:
'inventoryReq.id'
,
'operator'
:
'EQ'
,
'value'
:
this
.
b
asicData
.
id
'value'
:
this
.
currB
asicData
.
id
},
{
'fieldName'
:
'isRoot'
,
...
...
applications/dee-mes/src/privateComponents/components/Warehouse/index.vue
View file @
d5acf231
...
...
@@ -62,7 +62,7 @@ export default {
}
}
},
'form.extProductAreaId'
:
{
form
:
{
immediate
:
true
,
deep
:
true
,
handler
()
{
...
...
applications/dee-mes/src/privateComponents/components/WordCalendar/components/calendar.vue
View file @
d5acf231
...
...
@@ -75,7 +75,7 @@ export default {
default
:
()
=>
null
},
year
:
{
type
:
String
,
type
:
Number
,
default
:
()
=>
null
},
unitNo
:
{
...
...
applications/dee-mes/src/privateComponents/components/WordCalendar/components/dialog.vue
View file @
d5acf231
<
template
>
<!-- 弹出框 -->
<dee-d
ialog
<dee-d
rawer
:title=
"title"
:dialog-visible
.
sync=
"visible"
width=
"50%"
...
...
@@ -26,7 +26,7 @@
<!--
<div
v-show=
"loading"
class=
"loading"
>
<img
src=
"/icons/loading.gif"
alt=
""
>
</div>
-->
</dee-d
ialog
>
</dee-d
rawer
>
</
template
>
<
script
>
import
Form
from
'./form'
...
...
applications/dee-mes/src/privateComponents/components/WordCalendar/components/header.vue
View file @
d5acf231
...
...
@@ -47,7 +47,7 @@ export default {
default
:
()
=>
[]
},
year
:
{
type
:
String
,
type
:
Number
,
default
:
()
=>
null
}
},
...
...
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