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
be522b16
Commit
be522b16
authored
May 31, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'online'
parents
436a3549
444c12cd
Show whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
689 additions
and
78 deletions
+689
-78
message-icon.png
...tions/architecture-dee/public/icons/home/message-icon.png
+0
-0
config.js
...c/commonComponents/components/orgLazyLoadSelect/config.js
+0
-1
index.vue
...c/commonComponents/components/orgLazyLoadSelect/index.vue
+6
-4
props.js
...rc/commonComponents/components/orgLazyLoadSelect/props.js
+1
-1
index.vue
...rivateComponents/components/AddOutStorageUseCom/index.vue
+8
-1
index.vue
...mponents/components/BatchSignEditInstorageItems/index.vue
+12
-0
index.vue
...omponents/components/ExtDxProductWorkUnitSelect/index.vue
+1
-1
config.js
...ivateComponents/components/GeneralLinkageSelect/config.js
+88
-0
index.vue
...ivateComponents/components/GeneralLinkageSelect/index.vue
+142
-0
index.vue
...ponents/components/InStorageMoveWarehouseSelect/index.vue
+25
-10
index.vue
...ateComponents/components/InStorageRecallItemCom/index.vue
+4
-1
index.vue
...rivateComponents/components/MoveProductWorkUnit/index.vue
+7
-4
config.js
...privateComponents/components/ProblemProgressCom/config.js
+31
-0
index.vue
...privateComponents/components/ProblemProgressCom/index.vue
+170
-0
index.vue
...nents/components/PurchasingWarehousingNewOrEdit/index.vue
+4
-1
warehouseSelect.vue
...singWarehousingProcess_view/component/warehouseSelect.vue
+1
-1
config.js
.../src/privateComponents/components/StationSelect/config.js
+41
-0
index.vue
.../src/privateComponents/components/StationSelect/index.vue
+29
-4
warehouseSelect.vue
...ehousingConfirmationConfirm/component/warehouseSelect.vue
+1
-1
index.vue
...-mes/src/privateComponents/components/backApply/index.vue
+20
-13
http.js
applications/dee-mes/src/utils/http.js
+1
-0
index.vue
...c/views/taskExecution/components/ProblemDeclare/index.vue
+13
-10
news-detail.vue
...message/src/views/message/home/components/news-detail.vue
+23
-3
index.vue
.../privateComponents/components/TaskDetailProcess/index.vue
+4
-8
index.vue
applications/dee-task-center/src/views/home/index.vue
+38
-3
index.vue
...task-center/myPlanTask/inStorageUseOutBackApply/index.vue
+16
-11
index.vue
...instructionIdentificationBatch/components/right/index.vue
+3
-0
No files found.
applications/architecture-dee/public/icons/home/message-icon.png
0 → 100644
View file @
be522b16
1.02 KB
applications/architecture-dee/src/commonComponents/components/orgLazyLoadSelect/config.js
View file @
be522b16
...
@@ -35,7 +35,6 @@ export default {
...
@@ -35,7 +35,6 @@ export default {
key
:
'component.bindKey'
,
key
:
'component.bindKey'
,
title
:
'绑定属性'
,
title
:
'绑定属性'
,
component
:
{
component
:
{
obscure
:
`this.form.component.bindType !== 'key'`
,
defaultValue
:
'id'
,
defaultValue
:
'id'
,
name
:
'el-input'
name
:
'el-input'
}
}
...
...
applications/architecture-dee/src/commonComponents/components/orgLazyLoadSelect/index.vue
View file @
be522b16
...
@@ -88,7 +88,7 @@ export default {
...
@@ -88,7 +88,7 @@ export default {
return
return
}
}
const
ids
=
this
.
getIds
(
val
)
const
ids
=
this
.
getIds
(
val
)
this
.
getNodeDatByIdS
(
ids
,
this
.
initB
indKey
)
this
.
getNodeDatByIdS
(
ids
,
this
.
b
indKey
)
}
}
}
}
},
},
...
@@ -218,12 +218,14 @@ export default {
...
@@ -218,12 +218,14 @@ export default {
return
o
&&
Object
.
prototype
.
toString
.
call
(
o
)
===
'[object Object]'
return
o
&&
Object
.
prototype
.
toString
.
call
(
o
)
===
'[object Object]'
},
},
/**
/**
* 判断一个数据是 null, undefined, NAN, 空字符串 这些类型
* 判断一个数据是 null, undefined, NAN, 空字符串
('')、空字对象({})、空数组([])
这些类型
* @param {Any} o 要判断类型的数据
* @param {Any} o 要判断类型的数据
*/
*/
isInvalidType
(
o
)
{
isInvalidType
(
o
)
{
const
type
=
typeof
o
// type 的值:number、string、boolean、object、set、undefined、null
return
type
===
'undefined'
||
(
type
===
'string'
&&
!
o
.
trim
().
length
)
||
isNaN
(
o
)
||
(
!
o
&&
Object
.
prototype
.
toString
.
call
(
o
)
===
'[object Object]'
)
// 判断 NaN 要用 Number.isNaN(),他会不先做转数字操作,而 NaN() 会先做转数据操作
const
type
=
Object
.
prototype
.
toString
.
call
(
o
).
replace
(
/^
\[
object
\s
+/
,
''
).
replace
(
/]$/
,
''
).
toLowerCase
()
return
[
null
,
undefined
].
includes
(
o
)
||
Number
.
isNaN
(
o
)
||
(
type
===
'string'
&&
!
o
.
trim
().
length
)
||
(
type
===
'object'
&&
!
Object
.
keys
(
o
).
length
)
||
(
Array
.
isArray
(
o
)
&&
!
o
.
length
)
},
},
// 取出绑定数据的id
// 取出绑定数据的id
getIds
(
val
)
{
getIds
(
val
)
{
...
...
applications/architecture-dee/src/commonComponents/components/orgLazyLoadSelect/props.js
View file @
be522b16
...
@@ -20,7 +20,7 @@ export default {
...
@@ -20,7 +20,7 @@ export default {
type
:
String
,
type
:
String
,
default
:
'String'
default
:
'String'
},
},
initB
indKey
:
{
b
indKey
:
{
type
:
String
,
type
:
String
,
default
:
'id'
default
:
'id'
},
},
...
...
applications/dee-mes/src/privateComponents/components/AddOutStorageUseCom/index.vue
View file @
be522b16
...
@@ -89,7 +89,14 @@ export default {
...
@@ -89,7 +89,14 @@ export default {
// 组件方法
// 组件方法
methods
:
{
methods
:
{
async
getUseRequestTypes
()
{
async
getUseRequestTypes
()
{
this
.
options
=
await
this
.
$utils
.
getDicListByCode
(
'UseRequestType'
)
const
user
=
localStorage
.
getItem
(
'user'
)
const
dicData
=
await
this
.
$utils
.
getDicListByCode
(
'UseRequestType'
)
// 当前登陆人为孙瑶雪 和dexadmin的时候下拉可以看到试验领用,其他人看不到
if
(
user
===
'孙瑶雪'
||
user
===
'dexadmin'
)
{
this
.
options
=
dicData
.
filter
(
item
=>
item
.
label
!==
'无指令领用'
)
}
else
{
this
.
options
=
dicData
.
filter
(
item
=>
item
.
label
!==
'试验领用'
&&
item
.
label
!==
'无指令领用'
)
}
},
},
dataChangeHandler
(
val
)
{
dataChangeHandler
(
val
)
{
if
(
val
)
{
if
(
val
)
{
...
...
applications/dee-mes/src/privateComponents/components/BatchSignEditInstorageItems/index.vue
View file @
be522b16
...
@@ -260,6 +260,7 @@ export default {
...
@@ -260,6 +260,7 @@ export default {
}
}
},
},
'form.airModel'
:
{
'form.airModel'
:
{
immediate
:
true
,
handler
:
function
(
val
)
{
handler
:
function
(
val
)
{
val
&&
this
.
changeSorties
()
val
&&
this
.
changeSorties
()
}
}
...
@@ -1824,6 +1825,14 @@ export default {
...
@@ -1824,6 +1825,14 @@ export default {
},
},
// 默认带出接收仓库
// 默认带出接收仓库
defaultStorage
()
{
defaultStorage
()
{
// let extDxProductAreaItem = []
// if (this.basicData.extDxProductAreaId) {
// extDxProductAreaItem = [{
// 'fieldName': 'source.extDxProductAreaId',
// 'operator': 'EQ',
// 'value': this.basicData.extDxProductAreaId || ''
// }]
// }
const
params
=
{
const
params
=
{
'pageFrom'
:
1
,
'pageFrom'
:
1
,
'pageSize'
:
9999
,
'pageSize'
:
9999
,
...
@@ -1840,6 +1849,7 @@ export default {
...
@@ -1840,6 +1849,7 @@ export default {
// 'operator': 'EQ',
// 'operator': 'EQ',
// 'value': this.basicData.extDxProductAreaId || ''
// 'value': this.basicData.extDxProductAreaId || ''
// }
// }
// ...extDxProductAreaItem
],
],
'operator'
:
'AND'
'operator'
:
'AND'
}
}
...
@@ -1855,7 +1865,9 @@ export default {
...
@@ -1855,7 +1865,9 @@ export default {
const
STORAGE
=
this
.
formFileds
[
0
].
data
.
find
(
const
STORAGE
=
this
.
formFileds
[
0
].
data
.
find
(
(
item
)
=>
item
.
key
===
'storageZone'
(
item
)
=>
item
.
key
===
'storageZone'
)
)
// if (!this.basicData.extDxProductAreaId) {
res
.
items
.
content
=
res
.
items
.
content
.
filter
(
item
=>
{
return
item
.
source
})
res
.
items
.
content
=
res
.
items
.
content
.
filter
(
item
=>
{
return
item
.
source
})
// }
STORAGE
.
component
.
options
=
res
.
items
.
content
.
map
((
item
)
=>
{
STORAGE
.
component
.
options
=
res
.
items
.
content
.
map
((
item
)
=>
{
return
{
return
{
label
:
item
.
source
&&
item
.
source
.
extname
,
label
:
item
.
source
&&
item
.
source
.
extname
,
...
...
applications/dee-mes/src/privateComponents/components/ExtDxProductWorkUnitSelect/index.vue
View file @
be522b16
...
@@ -91,7 +91,7 @@ export default {
...
@@ -91,7 +91,7 @@ export default {
this
.
remoteFlag
=
false
this
.
remoteFlag
=
false
const
params
=
{
const
params
=
{
'pageFrom'
:
1
,
'pageFrom'
:
1
,
'pageSize'
:
1
0
,
'pageSize'
:
3
0
,
'searchItems'
:
{
'searchItems'
:
{
'items'
:
[
'items'
:
[
{
{
...
...
applications/dee-mes/src/privateComponents/components/GeneralLinkageSelect/config.js
0 → 100644
View file @
be522b16
export
default
{
props
:
{},
layoutConfigData
:
[
{
title
:
'高级组件配置'
,
data
:
[
{
key
:
'linkageAttr'
,
title
:
'联动属性'
,
component
:
{
defaultValue
:
''
,
name
:
'el-input'
}
},
{
key
:
'requestMethod'
,
title
:
'请求方式'
,
width
:
1
,
component
:
{
name
:
'el-select'
,
isLabelTop
:
true
,
options
:
[
{
label
:
'get'
,
value
:
'get'
},
{
label
:
'post'
,
value
:
'post'
}
]
}
},
{
key
:
'requestURL'
,
title
:
'请求url'
,
width
:
1
,
component
:
{
isLabelTop
:
true
,
defaultValue
:
'requestURL=""'
,
name
:
'btnCodeEdit'
,
remindText
:
`requestURL为接口地址变量,直接给赋值,该变量必须有值`
}
},
{
key
:
'requestParameters'
,
title
:
'请求参数'
,
width
:
1
,
component
:
{
isLabelTop
:
true
,
defaultValue
:
'requestParameters = {}'
,
name
:
'btnCodeEdit'
,
remindText
:
`requestParameters为请求参数变量,直接给赋值,该变量必须有值`
}
},
{
key
:
'formateResponse'
,
title
:
'接口返回数据格式化'
,
width
:
1
,
component
:
{
isLabelTop
:
true
,
defaultValue
:
`responseData = res.items.content.map(row => {
return {
value: row.id,
label: row.name
}
})`
,
name
:
'btnCodeEdit'
,
remindText
:
`responseData为接口返回数据`
}
}
]
}
],
data
()
{
return
{
}
},
created
()
{
},
computed
:
{
},
methods
:
{
}
}
applications/dee-mes/src/privateComponents/components/GeneralLinkageSelect/index.vue
0 → 100644
View file @
be522b16
<
template
>
<div
class=
"generalLinkageSelect-select"
>
<el-select
ref=
"selectCom"
v-model=
"selVal"
placeholder=
"请选择"
size=
"mini"
:disabled=
"disabledVal"
@
change=
"changeVal"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</div>
</
template
>
<
script
>
import
http
from
'@/utils/http'
import
config
from
'./config'
import
_get
from
'lodash.get'
export
default
{
componentName
:
'通用联动属性配置'
,
name
:
'GeneralLinkageSelectSelect'
,
// name写在组件的最前方,自定义组件为必填
components
:
{},
mixins
:
[
config
],
props
:
{
item
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
},
form
:
{
type
:
Object
,
default
:
()
=>
{}
},
middleForm
:
{
type
:
Object
,
default
:
()
=>
{}
},
value
:
{
type
:
[
Number
,
String
,
Object
],
default
:
()
=>
''
}
},
data
()
{
return
{
options
:
[],
selVal
:
''
,
disabledVal
:
false
,
linkageValue
:
''
}
},
computed
:
{},
watch
:
{
form
:
{
immediate
:
true
,
deep
:
true
,
handler
(
val
)
{
if
(
val
)
{
if
(
!
this
.
item
.
linkageAttr
)
{
return
}
const
_val
=
_get
(
this
.
form
,
this
.
item
.
linkageAttr
)
if
(
_val
!==
this
.
linkageValue
)
{
this
.
options
=
[]
this
.
selVal
=
''
this
.
linkageValue
=
_val
this
.
getData
(
_val
)
}
}
}
},
item
:
{
immediate
:
true
,
deep
:
true
,
handler
(
v
)
{
if
(
v
.
component
.
hasOwnProperty
(
'disabled'
))
{
this
.
disabledVal
=
v
.
component
.
disabled
}
}
},
value
:
{
immediate
:
true
,
deep
:
true
,
handler
(
v
)
{
if
(
v
)
{
this
.
selVal
=
this
.
value
}
}
}
},
created
()
{
// 初始化数据
},
methods
:
{
getData
(
val
)
{
var
requestURL
=
''
var
requestParameters
=
{}
if
(
this
.
item
.
requestURL
)
{
try
{
let
fun
eval
(
`fun = function (obtainedParams, functionParams){
${
this
.
item
.
requestURL
}
}`
)
// eslint-disable-line
fun
.
apply
(
this
)
// eslint-disable-line
}
catch
(
error
)
{
console
.
error
(
error
)
}
}
if
(
this
.
item
.
requestParameters
)
{
try
{
let
fun1
eval
(
`fun1 = function (obtainedParams, functionParams){
${
this
.
item
.
requestParameters
}
}`
)
// eslint-disable-line
fun1
.
apply
(
this
)
// eslint-disable-line
}
catch
(
error
)
{
console
.
error
(
error
)
}
}
http
[
this
.
item
.
requestMethod
](
requestURL
,
requestParameters
).
then
(
res
=>
{
let
responseData
=
[]
if
(
this
.
item
.
formateResponse
)
{
try
{
let
fun2
eval
(
`fun2 = function (obtainedParams, functionParams){
${
this
.
item
.
formateResponse
}
}`
)
// eslint-disable-line
fun2
.
apply
(
this
)
// eslint-disable-line
}
catch
(
error
)
{
console
.
error
(
error
)
}
}
else
{
responseData
=
res
.
items
.
content
.
map
(
row
=>
{
return
{
value
:
row
.
id
,
label
:
row
.
name
}
})
}
this
.
options
=
responseData
})
},
changeVal
()
{
this
.
$emit
(
'input'
,
this
.
selVal
)
}
}
}
</
script
>
<
style
lang=
'scss'
>
</
style
>
applications/dee-mes/src/privateComponents/components/InStorageMoveWarehouseSelect/index.vue
View file @
be522b16
...
@@ -120,6 +120,15 @@ export default {
...
@@ -120,6 +120,15 @@ export default {
handler
(
v
)
{
handler
(
v
)
{
if
(
v
!==
this
.
selVal
)
{
if
(
v
!==
this
.
selVal
)
{
this
.
selVal
=
this
.
value
this
.
selVal
=
this
.
value
// 解决虚拟滚动后返回界面数据展示为id/code的问题
if
(
!
this
.
options
.
length
&&
this
.
selVal
&&
this
.
selVal
.
includes
(
'/'
))
{
this
.
options
=
[{
label
:
this
.
selVal
.
split
(
'/'
)[
1
],
value
:
this
.
selVal
}]
}
else
{
this
.
options
=
[]
}
}
}
}
}
}
}
...
@@ -133,9 +142,9 @@ export default {
...
@@ -133,9 +142,9 @@ export default {
beforeDestroy
()
{
beforeDestroy
()
{
// 在组件销毁之前做一些清理工作
// 在组件销毁之前做一些清理工作
// 清除定时器、取消订阅等
// 清除定时器、取消订阅等
sessionStorage
.
setItem
(
'InStorageMoveform-InStorageMoveTable'
,
''
)
//
sessionStorage.setItem('InStorageMoveform-InStorageMoveTable', '')
this
.
selVal
=
null
//
this.selVal = null
this
.
options
=
[]
//
this.options = []
},
},
methods
:
{
methods
:
{
changeVal
()
{
changeVal
()
{
...
@@ -160,6 +169,11 @@ export default {
...
@@ -160,6 +169,11 @@ export default {
},
},
// 远程搜索物料类别
// 远程搜索物料类别
remoteMethod
(
query
)
{
remoteMethod
(
query
)
{
this
.
stopLoading
=
false
this
.
pageData
=
{
// 懒加载相关参数,这里代表从第一条数据开始加载,一次加载二十项
pageNumber
:
1
,
pageSize
:
10
}
if
(
sessionStorage
.
getItem
(
'InStorageMoveform-InStorageMoveTable'
))
{
if
(
sessionStorage
.
getItem
(
'InStorageMoveform-InStorageMoveTable'
))
{
this
.
linkageValue
=
sessionStorage
.
getItem
(
'InStorageMoveform-InStorageMoveTable'
)
this
.
linkageValue
=
sessionStorage
.
getItem
(
'InStorageMoveform-InStorageMoveTable'
)
}
}
...
@@ -180,14 +194,15 @@ export default {
...
@@ -180,14 +194,15 @@ export default {
// 有内容则搜索
// 有内容则搜索
if
(
query
!==
''
)
{
if
(
query
!==
''
)
{
querys
.
searchItems
.
items
.
push
({
'fieldName'
:
'extcode'
,
operator
:
'LIKE'
,
value
:
query
})
querys
.
searchItems
.
items
.
push
({
'fieldName'
:
'extcode'
,
operator
:
'LIKE'
,
value
:
query
})
}
else
{
// 重置懒加载
this
.
stopLoading
=
false
this
.
pageData
=
{
// 懒加载相关参数,这里代表从第一条数据开始加载,一次加载二十项
pageNumber
:
1
,
pageSize
:
10
}
}
}
// else {
// // 重置懒加载
// this.stopLoading = false
// this.pageData = {// 懒加载相关参数,这里代表从第一条数据开始加载,一次加载二十项
// pageNumber: 1,
// pageSize: 10
// }
// }
// 调用接口
// 调用接口
this
.
selectLoading
=
true
this
.
selectLoading
=
true
this
.
getdata
(
querys
)
this
.
getdata
(
querys
)
...
...
applications/dee-mes/src/privateComponents/components/InStorageRecallItemCom/index.vue
View file @
be522b16
...
@@ -871,7 +871,10 @@ export default {
...
@@ -871,7 +871,10 @@ export default {
'extDxProductAreaId'
:
this
.
form
.
extDxProductAreaId
,
'extDxProductAreaId'
:
this
.
form
.
extDxProductAreaId
,
'extDxSipplierId'
:
this
.
form
.
extDxSipplierId
,
'extDxSipplierId'
:
this
.
form
.
extDxSipplierId
,
'materialTypeId'
:
this
.
form
.
materialTypeId
,
'materialTypeId'
:
this
.
form
.
materialTypeId
,
'inStorageRequestItems'
:
tableData
'inStorageRequestItems'
:
tableData
&&
tableData
.
map
(
r
=>
{
delete
r
.
objOrg
return
r
})
||
[]
}
}
if
(
paramOperator
===
'MODIFY'
)
{
if
(
paramOperator
===
'MODIFY'
)
{
param
.
id
=
this
.
newDataImportResId
||
this
.
form
.
id
param
.
id
=
this
.
newDataImportResId
||
this
.
form
.
id
...
...
applications/dee-mes/src/privateComponents/components/MoveProductWorkUnit/index.vue
View file @
be522b16
...
@@ -44,11 +44,14 @@ export default {
...
@@ -44,11 +44,14 @@ export default {
},
},
computed
:
{
computed
:
{
resultData
()
{
resultData
()
{
return
this
.
basicData
.
inventory
.
map
(
item
=>
{
const
items
=
this
.
basicData
.
inventory
.
map
(
item
=>
{
item
.
inWorkCenter
=
'Y'
item
.
inWorkCenter
=
'Y'
item
.
currExtWorkUnitId
=
null
item
.
currOutsideAmount
=
null
item
.
currDisposeDes
=
null
return
item
return
item
}
}
)
)
return
JSON
.
parse
(
JSON
.
stringify
(
items
)
)
}
}
},
},
watch
:
{
watch
:
{
...
@@ -62,7 +65,7 @@ export default {
...
@@ -62,7 +65,7 @@ export default {
}
}
const
extWorkCenterId
=
this
.
$refs
.
inStorageMoveform
.
$refs
.
asCom
.
form
.
extWorkCenterId
const
extWorkCenterId
=
this
.
$refs
.
inStorageMoveform
.
$refs
.
asCom
.
form
.
extWorkCenterId
const
params
=
this
.
basicData
.
inventory
.
map
(
item
=>
{
const
params
=
this
.
resultData
.
map
(
item
=>
{
return
{
return
{
inventoryId
:
item
.
id
,
inventoryId
:
item
.
id
,
extWorkCenterId
:
extWorkCenterId
,
extWorkCenterId
:
extWorkCenterId
,
...
...
applications/dee-mes/src/privateComponents/components/ProblemProgressCom/config.js
0 → 100644
View file @
be522b16
export
default
{
props
:
{},
layoutConfigData
:
[
{
title
:
'高级组件配置'
,
data
:
[
{
key
:
'bindValue'
,
title
:
'绑定属性'
,
component
:
{
defaultValue
:
''
,
name
:
'el-input'
}
}
]
}
],
data
()
{
return
{
}
},
created
()
{
},
computed
:
{
},
methods
:
{
}
}
applications/dee-mes/src/privateComponents/components/ProblemProgressCom/index.vue
0 → 100644
View file @
be522b16
<
template
>
<div
class=
"problemProgressCom"
>
<el-form
ref=
"form"
class=
"processForm"
:inline=
"true"
:model=
"formData"
label-width=
"40px"
>
<el-row
v-for=
"(item, index) in resultFormData"
:key=
"index"
>
<el-col
:span=
"5"
>
<el-form-item
label=
"日期"
:prop=
"'progresss.' + index + '.progressTime'"
>
<!-- :rules="
{
required: true, message: '该项必填', trigger: 'blur'
}" -->
<el-date-picker
v-model=
"item.progressTime"
size=
"small"
type=
"date"
value-format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"选择日期"
/>
</el-form-item>
</el-col>
<el-col
:span=
"17"
>
<el-form-item
label=
"答复"
:prop=
"'progresss.' + index + '.progressItem'"
class=
"textareaItem"
>
<!-- :rules="[
{required: true, message: '该项必填', trigger: 'blur'},
]" -->
<el-input
v-model=
"item.progressItem"
autosize
type=
"textarea"
size=
"small"
@
change=
"changeVal"
/>
</el-form-item>
</el-col>
<el-col
:span=
"2"
>
<el-form-item
class=
"btn-box"
>
<span
v-if=
"index+1 == resultFormData.length"
class=
"btn-item"
title=
"新增"
@
click=
"addItem"
@
change=
"changeVal"
>
<img
src=
"/icons/c-add.png"
alt=
""
>
</span>
<span
v-if=
"index !== 0"
class=
"btn-item"
title=
"删除"
@
click=
"deleteItem(item,index)"
>
<img
src=
"/icons/c-creatbackups.png"
alt=
""
>
</span>
</el-form-item>
</el-col>
</el-row></el-form>
</div>
</
template
>
<
script
>
import
config
from
'./config'
import
moment
from
'moment'
export
default
{
componentName
:
'问题进展'
,
name
:
'ProblemProgressCom'
,
// name写在组件的最前方,自定义组件为必填
components
:
{},
mixins
:
[
config
],
props
:
{
itemObj
:
{
type
:
Object
,
default
:
null
},
form
:
{
type
:
Object
,
default
:
()
=>
{}
},
middleForm
:
{
type
:
Object
,
default
:
()
=>
{}
},
value
:
{
type
:
[
Number
,
String
,
Object
,
Array
],
default
:
()
=>
''
}
},
data
()
{
return
{
formData
:
{
progresss
:
[
{
progressTime
:
moment
(
new
Date
()).
format
(
'YYYY-MM-DD HH:mm:ss'
),
progressItem
:
''
,
operator
:
'ADD'
}
]
}
}
},
computed
:
{
resultFormData
()
{
return
this
.
formData
.
progresss
.
filter
(
item
=>
item
.
operator
!==
'REMOVE'
)
}
},
watch
:
{
value
:
{
immediate
:
true
,
deep
:
true
,
handler
(
v
)
{
if
(
v
)
{
this
.
$set
(
this
.
formData
,
'progresss'
,
this
.
value
.
map
(
item
=>
{
if
(
!
item
.
operator
)
{
if
(
item
.
id
)
{
item
.
operator
=
'MODIFY'
}
else
{
item
.
operator
=
'ADD'
}
}
return
item
}))
}
}
}
},
created
()
{
// 初始化数据
},
methods
:
{
addItem
()
{
this
.
formData
.
progresss
.
push
({
progressTime
:
moment
(
new
Date
()).
format
(
'YYYY-MM-DD HH:mm:ss'
),
progressItem
:
''
,
operator
:
'ADD'
})
this
.
changeVal
()
},
deleteItem
(
item
,
index
)
{
item
.
operator
=
'REMOVE'
this
.
changeVal
()
},
changeVal
()
{
this
.
$emit
(
'input'
,
this
.
formData
.
progresss
)
}
}
}
</
script
>
<
style
lang=
'scss'
>
.problemProgressCom
{
.processForm
{
width
:
100%
;
.el-form-item
{
width
:
100%
;
.el-form-item__content
{
width
:
calc
(
100%
-
50px
);
}
}
.btn-box
{
width
:
100%
;
height
:
100%
;
margin-bottom
:
0px
;
.el-form-item__content
{
width
:
100%
;
}
.btn-item
{
display
:
inline-block
;
padding
:
4px
;
width
:
16px
;
height
:
16px
;
img
{
height
:
100%
;
width
:
100%
;
}
// line-height: 16px;
}
}
}
}
</
style
>
applications/dee-mes/src/privateComponents/components/PurchasingWarehousingNewOrEdit/index.vue
View file @
be522b16
...
@@ -951,7 +951,10 @@ export default {
...
@@ -951,7 +951,10 @@ export default {
'extDxProductAreaId'
:
this
.
form
.
extDxProductAreaId
,
'extDxProductAreaId'
:
this
.
form
.
extDxProductAreaId
,
'extDxSipplierId'
:
this
.
form
.
extDxSipplierId
,
'extDxSipplierId'
:
this
.
form
.
extDxSipplierId
,
'materialTypeId'
:
this
.
form
.
materialTypeId
,
'materialTypeId'
:
this
.
form
.
materialTypeId
,
'inStorageRequestItems'
:
tableData
'inStorageRequestItems'
:
tableData
&&
tableData
.
map
(
r
=>
{
delete
r
.
objOrg
return
r
})
||
[]
}
}
if
(
paramOperator
===
'MODIFY'
)
{
if
(
paramOperator
===
'MODIFY'
)
{
param
.
id
=
this
.
newDataImportResId
||
this
.
form
.
id
param
.
id
=
this
.
newDataImportResId
||
this
.
form
.
id
...
...
applications/dee-mes/src/privateComponents/components/PurchasingWarehousingProcess_view/component/warehouseSelect.vue
View file @
be522b16
...
@@ -77,7 +77,7 @@ export default {
...
@@ -77,7 +77,7 @@ export default {
this
.
tableColumnSelect
=
true
this
.
tableColumnSelect
=
true
const
params
=
{
const
params
=
{
'pageFrom'
:
1
,
'pageFrom'
:
1
,
'pageSize'
:
1
0
,
'pageSize'
:
3
0
,
'searchItems'
:
{
'searchItems'
:
{
'children'
:
[
'children'
:
[
{
{
...
...
applications/dee-mes/src/privateComponents/components/StationSelect/config.js
0 → 100644
View file @
be522b16
export
default
{
props
:
{},
layoutConfigData
:
[
{
title
:
'高级组件配置'
,
data
:
[
{
key
:
'bindKey'
,
title
:
'绑定属性'
,
disabled
:
true
,
component
:
{
defaultValue
:
'positionNumber'
,
name
:
'el-input'
}
},
{
key
:
'relatedAttribute'
,
title
:
'受关联属性'
,
disabled
:
true
,
component
:
{
defaultValue
:
''
,
name
:
'el-input'
}
}
]
}
],
data
()
{
return
{
}
},
created
()
{
},
computed
:
{
},
methods
:
{
}
}
applications/dee-mes/src/privateComponents/components/StationSelect/index.vue
View file @
be522b16
<
template
>
<
template
>
<div>
<div>
<el-select
<el-select
:value=
"
value
"
:value=
"
selVal
"
:loading=
"loading"
:loading=
"loading"
filterable
filterable
remote
remote
...
@@ -22,10 +22,11 @@
...
@@ -22,10 +22,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
config
from
'./config'
export
default
{
export
default
{
name
:
'StationSelect'
,
name
:
'StationSelect'
,
componentName
:
'架次关联站位编号'
,
componentName
:
'架次关联站位编号'
,
mixins
:
[
config
],
props
:
{
props
:
{
value
:
{
value
:
{
type
:
[
String
,
Number
],
type
:
[
String
,
Number
],
...
@@ -47,20 +48,35 @@ export default {
...
@@ -47,20 +48,35 @@ export default {
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
loading
:
false
,
options
:
[]
options
:
[],
// linkageValue: '',
selVal
:
''
}
}
},
},
computed
:
{},
computed
:
{},
watch
:
{
watch
:
{
'form.sorties'
:
{
'form.sorties'
:
{
immediate
:
true
,
immediate
:
true
,
deep
:
true
,
//
deep: true,
handler
(
val
)
{
handler
(
val
)
{
// if (val !== this.linkageValue) {
if
(
this
.
item
.
key
!==
'position'
)
{
if
(
this
.
item
.
key
!==
'position'
)
{
// this.linkageValue = val
this
.
$set
(
this
.
form
,
'positionNumber'
,
''
)
this
.
$set
(
this
.
form
,
'positionNumber'
,
''
)
this
.
selVal
=
''
}
}
// }
val
&&
this
.
getOptions
()
val
&&
this
.
getOptions
()
}
}
},
value
:
{
immediate
:
true
,
deep
:
true
,
handler
(
v
)
{
if
(
v
)
{
this
.
selVal
=
this
.
value
}
}
}
}
},
},
methods
:
{
methods
:
{
...
@@ -104,6 +120,15 @@ export default {
...
@@ -104,6 +120,15 @@ export default {
},
},
change
(
val
)
{
change
(
val
)
{
this
.
$emit
(
'input'
,
val
)
this
.
$emit
(
'input'
,
val
)
this
.
clearRelativeAttr
()
},
clearRelativeAttr
()
{
if
(
this
.
item
.
relatedAttribute
)
{
const
attributes
=
this
.
item
.
relatedAttribute
.
split
(
','
)
||
[]
attributes
.
forEach
(
el
=>
{
el
&&
this
.
$set
(
this
.
form
,
el
,
''
)
})
}
},
},
clear
()
{
clear
()
{
this
.
$emit
(
'input'
)
this
.
$emit
(
'input'
)
...
...
applications/dee-mes/src/privateComponents/components/WarehousingConfirmationConfirm/component/warehouseSelect.vue
View file @
be522b16
...
@@ -96,7 +96,7 @@ export default {
...
@@ -96,7 +96,7 @@ export default {
this
.
tableColumnSelect
=
true
this
.
tableColumnSelect
=
true
const
params
=
{
const
params
=
{
'pageFrom'
:
1
,
'pageFrom'
:
1
,
'pageSize'
:
1
0
,
'pageSize'
:
3
0
,
'searchItems'
:
{
'searchItems'
:
{
'children'
:
[
'children'
:
[
{
{
...
...
applications/dee-mes/src/privateComponents/components/backApply/index.vue
View file @
be522b16
...
@@ -190,6 +190,7 @@ export default {
...
@@ -190,6 +190,7 @@ export default {
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
})
})
}
else
{
}
else
{
this
.
setPersonVisible
=
false
this
.
$utils
.
showMessageWarning
(
'退库原因为退库单退库的领用退库和配套退库不能一起提交'
)
this
.
$utils
.
showMessageWarning
(
'退库原因为退库单退库的领用退库和配套退库不能一起提交'
)
}
}
})
})
...
@@ -199,10 +200,12 @@ export default {
...
@@ -199,10 +200,12 @@ export default {
this
.
$refs
.
applyTable
.
$refs
.
asCom
.
getData
()
this
.
$refs
.
applyTable
.
$refs
.
asCom
.
getData
()
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
$utils
.
showMessageWarning
(
'出现异常,提交失败'
)
this
.
$utils
.
showMessageWarning
(
'出现异常,提交失败'
)
console
.
log
(
err
)
}).
finally
(()
=>
{
}).
finally
(()
=>
{
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
})
})
}
else
{
}
else
{
this
.
dialogVisible
=
false
this
.
$utils
.
showMessageWarning
(
'退库原因为退库单退库的不能与其他退库类型一起提交'
)
this
.
$utils
.
showMessageWarning
(
'退库原因为退库单退库的不能与其他退库类型一起提交'
)
}
}
},
},
...
@@ -214,6 +217,7 @@ export default {
...
@@ -214,6 +217,7 @@ export default {
if
(
this
.
selectionRows
&&
this
.
selectionRows
.
length
)
{
if
(
this
.
selectionRows
&&
this
.
selectionRows
.
length
)
{
this
.
selectionRows
.
forEach
(
item
=>
item
.
inStorageRequestItems
.
forEach
(
i
=>
ids
.
push
(
i
.
id
)))
this
.
selectionRows
.
forEach
(
item
=>
item
.
inStorageRequestItems
.
forEach
(
i
=>
ids
.
push
(
i
.
id
)))
}
}
if
(
this
.
form
.
userIds
&&
this
.
form
.
userIds
.
length
!==
0
)
{
post
(
'/InStorageRequestItem/creator/apply?userIds='
+
this
.
form
.
userIds
,
ids
).
then
(
res
=>
{
post
(
'/InStorageRequestItem/creator/apply?userIds='
+
this
.
form
.
userIds
,
ids
).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
'提交成功'
)
this
.
$utils
.
showMessageSuccess
(
'提交成功'
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
@@ -227,6 +231,9 @@ export default {
...
@@ -227,6 +231,9 @@ export default {
this
.
setPersonVisible
=
false
this
.
setPersonVisible
=
false
this
.
$set
(
this
.
form
,
'userIds'
,
''
)
this
.
$set
(
this
.
form
,
'userIds'
,
''
)
})
})
}
else
{
this
.
$utils
.
showMessageWarning
(
'请选择工艺员'
)
}
},
},
setPersonCancle
()
{
setPersonCancle
()
{
this
.
setPersonVisible
=
false
this
.
setPersonVisible
=
false
...
...
applications/dee-mes/src/utils/http.js
View file @
be522b16
...
@@ -25,5 +25,6 @@ function downloadFile(url, type, params, userAction) {
...
@@ -25,5 +25,6 @@ function downloadFile(url, type, params, userAction) {
function
downloadZip
(
url
,
type
)
{
function
downloadZip
(
url
,
type
)
{
return
http
.
downloadZip
(
url
,
type
)
return
http
.
downloadZip
(
url
,
type
)
}
}
export
default
{
get
,
post
,
put
,
del
,
patch
,
downloadFile
,
downloadZip
}
export
{
get
,
post
,
put
,
del
,
patch
,
downloadFile
,
downloadZip
}
export
{
get
,
post
,
put
,
del
,
patch
,
downloadFile
,
downloadZip
}
applications/dee-mes/src/views/taskExecution/components/ProblemDeclare/index.vue
View file @
be522b16
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
ref=
"form"
ref=
"form"
class=
"AlodinDeploysCard-form"
class=
"AlodinDeploysCard-form"
:model=
"form"
:model=
"form"
label-width=
"1
0
0px"
label-width=
"1
1
0px"
:rules=
"rules"
:rules=
"rules"
>
>
<el-row
style=
"margin-bottom: 10px"
>
<el-row
style=
"margin-bottom: 10px"
>
...
@@ -120,12 +120,11 @@
...
@@ -120,12 +120,11 @@
/>
/>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
<el-row>
<
!--
<
el-row>
<el-form-item
label=
"站位长/站位计划员/站位工程师"
prop=
"receiver"
label-width=
"250px"
>
<el-form-item
label=
"站位长/站位计划员/站位工程师"
prop=
"receiver"
label-width=
"250px"
>
<!--
<DxUserSelect
/>
-->
<GeneralUserSelect
v-model=
"form.receiver"
:item=
"
{multiple:true}" />
<GeneralUserSelect
v-model=
"form.receiver"
:item=
"
{multiple:true}" />
</el-form-item>
</el-form-item>
</el-row>
</el-row>
-->
</el-form>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
<el-button
...
@@ -182,6 +181,9 @@ export default {
...
@@ -182,6 +181,9 @@ export default {
sptype
:
[
sptype
:
[
{
required
:
true
,
message
:
'请选择问题类型'
,
trigger
:
'change'
}
{
required
:
true
,
message
:
'请选择问题类型'
,
trigger
:
'change'
}
],
],
tfpause
:
[
{
required
:
true
,
message
:
'请选择是否加工暂停'
,
trigger
:
'change'
}
],
receiver
:
[
receiver
:
[
{
required
:
true
,
message
:
'请选择站位长/站位计划员/站位工程师'
,
trigger
:
'change'
}
{
required
:
true
,
message
:
'请选择站位长/站位计划员/站位工程师'
,
trigger
:
'change'
}
]
]
...
@@ -327,10 +329,10 @@ export default {
...
@@ -327,10 +329,10 @@ export default {
res
.
forEach
(
item
=>
{
res
.
forEach
(
item
=>
{
result
.
push
({
operator
:
'ADD'
,
target
:
item
})
result
.
push
({
operator
:
'ADD'
,
target
:
item
})
})
})
var
receiver
=
''
//
var receiver = ''
this
.
form
.
receiver
.
forEach
((
item
,
i
)
=>
{
//
this.form.receiver.forEach((item, i) => {
receiver
+=
(
item
+
(
this
.
form
.
receiver
.
length
-
1
>
i
?
','
:
''
))
//
receiver += (item + (this.form.receiver.length - 1 > i ? ',' : ''))
})
//
})
const
params
=
{
const
params
=
{
operator
:
'ADD'
,
operator
:
'ADD'
,
subTypeName
:
'SpotProblem'
,
subTypeName
:
'SpotProblem'
,
...
@@ -347,8 +349,9 @@ export default {
...
@@ -347,8 +349,9 @@ export default {
airModel
:
this
.
form
.
airModel
,
airModel
:
this
.
form
.
airModel
,
sorties
:
this
.
form
.
sorties
,
sorties
:
this
.
form
.
sorties
,
standPosition
:
this
.
form
.
standPosition
,
standPosition
:
this
.
form
.
standPosition
,
receiver
:
receiver
,
// receiver: receiver,
objFileLinks
:
result
objFileLinks
:
result
,
opener
:
true
}
}
post
(
'/SpotProblem/recursion'
,
params
)
post
(
'/SpotProblem/recursion'
,
params
)
...
...
applications/dee-message/src/views/message/home/components/news-detail.vue
View file @
be522b16
...
@@ -43,14 +43,34 @@ export default {
...
@@ -43,14 +43,34 @@ export default {
getDetail
()
{
getDetail
()
{
msgDetail
(
this
.
id
).
then
(
res
=>
{
msgDetail
(
this
.
id
).
then
(
res
=>
{
this
.
message
=
res
.
items
this
.
message
=
res
.
items
res
.
items
.
templateId
&&
this
.
getTemplate
(
res
.
items
.
templateId
)
if
(
res
.
items
.
templateId
)
{
this
.
getTemplate
(
res
.
items
.
templateId
)
}
else
{
this
.
showObjFlag
=
true
}
})
})
},
},
getTemplate
(
id
)
{
getTemplate
(
id
)
{
getTemplateDetail
(
id
).
then
(
res
=>
{
getTemplateDetail
(
id
).
then
(
res
=>
{
this
.
showObjFlag
=
res
.
items
.
showObjFlag
this
.
showObjFlag
=
res
.
items
?
res
.
items
.
showObjFlag
:
true
const
businessObject
=
JSON
.
parse
(
this
.
message
.
businessObject
)
const
businessObject
=
JSON
.
parse
(
this
.
message
.
businessObject
)
this
.
taskTitle
=
`
${
businessObject
.
subTypeDisplayName
}
-
${
businessObject
.
number
}
${
businessObject
.
name
}
${
businessObject
.
displayVersion
}
`
const
taskTitle
=
[]
this
.
taskTitle
=
''
if
(
businessObject
.
number
)
{
taskTitle
.
push
(
businessObject
.
number
)
}
if
(
businessObject
.
name
)
{
taskTitle
.
push
(
businessObject
.
name
)
}
if
(
businessObject
.
displayVersion
)
{
taskTitle
.
push
(
businessObject
.
displayVersion
)
}
if
(
businessObject
.
subTypeDisplayName
)
{
this
.
taskTitle
=
`
${
businessObject
.
subTypeDisplayName
}
-`
}
if
(
taskTitle
.
length
>
0
)
{
this
.
taskTitle
+=
taskTitle
.
join
(
' '
)
}
})
})
},
},
goDetail
()
{
goDetail
()
{
...
...
applications/dee-task-center/src/privateComponents/components/TaskDetailProcess/index.vue
View file @
be522b16
...
@@ -7,16 +7,13 @@
...
@@ -7,16 +7,13 @@
<div
v-dee-loading=
"loading"
class=
"task-detail-process-common-com"
>
<div
v-dee-loading=
"loading"
class=
"task-detail-process-common-com"
>
<div
class=
"name"
>
<div
class=
"name"
>
<div
class=
"message-popper-flow"
>
<div
class=
"message-popper-flow"
>
<div>
<div
v-if=
"processInstanceId"
>
<div
<div
v-for=
"(pitem, id) in historyInfo"
v-for=
"(pitem, id) in historyInfo"
:key=
"id"
:key=
"id"
class=
"program-item"
class=
"program-item"
>
>
<div
class=
"program-left"
>
<div
class=
"program-left"
>
<!--
<div
class=
"program-left-content"
>
<div>
{{
pitem
.
completed
?
'已完成'
:
'待完成'
}}
</div>
</div>
-->
<div
v-show=
"pitem.endTime"
class=
"program-circle-finished"
/>
<div
v-show=
"pitem.endTime"
class=
"program-circle-finished"
/>
<div
v-show=
"!pitem.endTime"
class=
"program-circle-unfinished"
/>
<div
v-show=
"!pitem.endTime"
class=
"program-circle-unfinished"
/>
</div>
</div>
...
@@ -37,7 +34,7 @@
...
@@ -37,7 +34,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<
!--
<div
v-else
style=
"line-height: 88px;text-align: center"
>
暂无数据
</div>
--
>
<
div
v-else
style=
"line-height: 88px;text-align: center"
>
暂无审签历史记录
</div
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -57,7 +54,7 @@ export default {
...
@@ -57,7 +54,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
loading
:
tru
e
,
loading
:
fals
e
,
item
:
{},
item
:
{},
historyInfo
:
[],
historyInfo
:
[],
businessObject
:
{}
businessObject
:
{}
...
@@ -78,14 +75,13 @@ export default {
...
@@ -78,14 +75,13 @@ export default {
processInstanceId
:
{
processInstanceId
:
{
handler
:
function
(
val
)
{
handler
:
function
(
val
)
{
this
.
$nextTick
(
function
()
{
this
.
$nextTick
(
function
()
{
this
.
getDetail
(
val
)
val
&&
this
.
getDetail
(
val
)
})
})
},
},
immediate
:
true
immediate
:
true
}
}
},
},
created
()
{
created
()
{
// this.getDetail('678df986-9c26-11eb-9fc3-fa163ee7db6d')
},
},
methods
:
{
methods
:
{
handleClose
()
{
handleClose
()
{
...
...
applications/dee-task-center/src/views/home/index.vue
View file @
be522b16
...
@@ -11,7 +11,10 @@
...
@@ -11,7 +11,10 @@
<!-- 左侧 -->
<!-- 左侧 -->
<div
class=
"Left-pane"
>
<div
class=
"Left-pane"
>
<div
v-for=
"(item, i) in cardList"
:key=
"i"
class=
"card"
:class=
"item.title===activeTitle?'dee-active-card':''"
@
click=
"handClick(item.title)"
>
<div
v-for=
"(item, i) in cardList"
:key=
"i"
class=
"card"
:class=
"item.title===activeTitle?'dee-active-card':''"
@
click=
"handClick(item.title)"
>
<div
class=
"icon"
>
<el-badge
v-if=
"item.title==='我的消息'&&messageInfo.unReadCount"
:value=
"messageInfo.unReadCount"
class=
"item"
>
<img
:src=
"item.icon"
alt=
"Icon"
>
</el-badge>
<div
v-else
class=
"icon"
>
<img
:src=
"item.icon"
alt=
"Icon"
>
<img
:src=
"item.icon"
alt=
"Icon"
>
</div>
</div>
<div
class=
"title"
>
<div
class=
"title"
>
...
@@ -27,7 +30,7 @@
...
@@ -27,7 +30,7 @@
@
tabClick=
"tabClick"
@
tabClick=
"tabClick"
>
>
<div
:slot=
"activeTitle"
style=
"height: 100%;"
>
<div
:slot=
"activeTitle"
style=
"height: 100%;"
>
<MyTask
ref=
"myTask"
/>
<MyTask
v-if=
"activeTitle!=='我的消息'"
ref=
"myTask"
/>
</div>
</div>
<div
slot=
"批量签审"
style=
"height: 100%;"
>
<div
slot=
"批量签审"
style=
"height: 100%;"
>
<module-task-list
ref=
"moduleTaskList"
@
goModuleTaskDetail=
"getTaskDetail"
/>
<module-task-list
ref=
"moduleTaskList"
@
goModuleTaskDetail=
"getTaskDetail"
/>
...
@@ -77,8 +80,10 @@ import ApplyApp from './compontents/apply-app.vue'
...
@@ -77,8 +80,10 @@ import ApplyApp from './compontents/apply-app.vue'
import
PersonalAssistant
from
'./compontents/personal-assistant.vue'
import
PersonalAssistant
from
'./compontents/personal-assistant.vue'
import
RightCenterPaneTop
from
'./compontents/rightCenterPaneTop.vue'
import
RightCenterPaneTop
from
'./compontents/rightCenterPaneTop.vue'
import
RightCenterPaneBottom
from
'./compontents/rightCenterPaneBottom.vue'
import
RightCenterPaneBottom
from
'./compontents/rightCenterPaneBottom.vue'
import
{
get
}
from
'@/utils/http'
export
default
{
export
default
{
name
:
'NewHome'
,
components
:
{
MyTask
,
ModuleTaskList
,
ApplyApp
,
PersonalAssistant
,
RightCenterPaneTop
,
RightCenterPaneBottom
},
components
:
{
MyTask
,
ModuleTaskList
,
ApplyApp
,
PersonalAssistant
,
RightCenterPaneTop
,
RightCenterPaneBottom
},
data
()
{
data
()
{
return
{
return
{
...
@@ -90,6 +95,10 @@ export default {
...
@@ -90,6 +95,10 @@ export default {
{
{
icon
:
'/icons/home/已办任务.png'
,
icon
:
'/icons/home/已办任务.png'
,
title
:
'已办任务'
title
:
'已办任务'
},
{
icon
:
'/icons/home/message-icon.png'
,
title
:
'我的消息'
}
}
],
],
materialLists
:
[
materialLists
:
[
...
@@ -101,7 +110,8 @@ export default {
...
@@ -101,7 +110,8 @@ export default {
],
],
activeTitle
:
'我的待办'
,
activeTitle
:
'我的待办'
,
userInfo
:
localStorage
.
getItem
(
'user'
)
userInfo
:
localStorage
.
getItem
(
'user'
),
messageInfo
:
{}
}
}
},
},
computed
:
{
computed
:
{
...
@@ -115,6 +125,7 @@ export default {
...
@@ -115,6 +125,7 @@ export default {
watch
:
{},
watch
:
{},
created
()
{
created
()
{
// 初始化数据
// 初始化数据
this
.
getMessageInfo
()
},
},
mounted
()
{
mounted
()
{
this
.
tabClick
({
label
:
'单个签审'
})
this
.
tabClick
({
label
:
'单个签审'
})
...
@@ -134,6 +145,20 @@ export default {
...
@@ -134,6 +145,20 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
if
(
title
===
'已办任务'
)
{
if
(
title
===
'已办任务'
)
{
this
.
$refs
.
myTask
.
getTasks
(
1
,
this
.
activeTitle
)
this
.
$refs
.
myTask
.
getTasks
(
1
,
this
.
activeTitle
)
}
else
if
(
title
===
'我的消息'
)
{
this
.
$router
.
push
({
path
:
`/dee-message/message/home`
,
query
:
{
title
:
'我的消息'
}
})
this
.
$store
.
dispatch
(
'menu/activeModel'
,
{
appId
:
'myMessage'
,
pageInfo
:
{
path
:
'/dee-message/message/home'
}
})
}
else
{
}
else
{
this
.
tabClick
({
label
:
'单个签审'
})
this
.
tabClick
({
label
:
'单个签审'
})
}
}
...
@@ -146,6 +171,16 @@ export default {
...
@@ -146,6 +171,16 @@ export default {
path
:
`/task-detail-
${
this
.
id
}
`
,
path
:
`/task-detail-
${
this
.
id
}
`
,
query
:
{
id
:
this
.
id
,
insId
:
this
.
processInstanceId
,
title
:
this
.
title
,
showMenu
:
false
}
query
:
{
id
:
this
.
id
,
insId
:
this
.
processInstanceId
,
title
:
this
.
title
,
showMenu
:
false
}
})
})
},
getMessageInfo
()
{
const
params
=
{
receiver
:
localStorage
.
getItem
(
'userId'
)
}
get
(
`/Notify/findIsReadNum`
,
params
).
then
(
res
=>
{
this
.
messageInfo
=
{
unReadCount
:
res
.
items
.
unReadCount
}
})
}
}
}
}
}
}
...
...
applications/dee-task-center/src/views/workflow/task-center/myPlanTask/inStorageUseOutBackApply/index.vue
View file @
be522b16
...
@@ -187,6 +187,7 @@ export default {
...
@@ -187,6 +187,7 @@ export default {
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
})
})
}
else
{
}
else
{
this
.
setPersonVisible
=
false
this
.
$utils
.
showMessageWarning
(
'退库原因为退库单退库的领用退库和配套退库不能一起提交'
)
this
.
$utils
.
showMessageWarning
(
'退库原因为退库单退库的领用退库和配套退库不能一起提交'
)
}
}
})
})
...
@@ -200,6 +201,7 @@ export default {
...
@@ -200,6 +201,7 @@ export default {
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
})
})
}
else
{
}
else
{
this
.
dialogVisible
=
false
this
.
$utils
.
showMessageWarning
(
'退库原因为退库单退库的不能与其他退库类型一起提交'
)
this
.
$utils
.
showMessageWarning
(
'退库原因为退库单退库的不能与其他退库类型一起提交'
)
}
}
},
},
...
@@ -208,10 +210,10 @@ export default {
...
@@ -208,10 +210,10 @@ export default {
},
},
setPersonConfirm
()
{
setPersonConfirm
()
{
let
ids
=
[]
let
ids
=
[]
console
.
log
(
this
.
selectionRows
)
if
(
this
.
selectionRows
&&
this
.
selectionRows
.
length
)
{
if
(
this
.
selectionRows
&&
this
.
selectionRows
.
length
)
{
ids
=
this
.
selectionRows
.
map
(
item
=>
item
.
processTaskId
)
ids
=
this
.
selectionRows
.
map
(
item
=>
item
.
processTaskId
)
}
}
if
(
this
.
form
.
userIds
&&
this
.
form
.
userIds
.
length
!==
0
)
{
post
(
'/InStorageRequestItem/creator/applyByItems?userIds='
+
this
.
form
.
userIds
,
ids
).
then
(
res
=>
{
post
(
'/InStorageRequestItem/creator/applyByItems?userIds='
+
this
.
form
.
userIds
,
ids
).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
'提交成功'
)
this
.
$utils
.
showMessageSuccess
(
'提交成功'
)
this
.
$refs
.
applyTable
.
$refs
.
asCom
.
getData
()
this
.
$refs
.
applyTable
.
$refs
.
asCom
.
getData
()
...
@@ -222,6 +224,9 @@ export default {
...
@@ -222,6 +224,9 @@ export default {
this
.
setPersonVisible
=
false
this
.
setPersonVisible
=
false
this
.
$set
(
this
.
form
,
'userIds'
,
''
)
this
.
$set
(
this
.
form
,
'userIds'
,
''
)
})
})
}
else
{
this
.
$utils
.
showMessageWarning
(
'请选择工艺员'
)
}
},
},
setPersonCancle
()
{
setPersonCancle
()
{
this
.
setPersonVisible
=
false
this
.
setPersonVisible
=
false
...
...
applications/dee-task-center/src/views/workflow/task-center/myPlanTask/instructionIdentificationBatch/components/right/index.vue
View file @
be522b16
...
@@ -436,6 +436,7 @@ export default {
...
@@ -436,6 +436,7 @@ export default {
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
message
.
includes
(
'成功'
))
{
if
(
res
.
message
.
includes
(
'成功'
))
{
this
.
$bus
.
$emit
(
'getPositionData'
)
this
.
$bus
.
$emit
(
'getPositionData'
)
this
.
getTableData
()
// this.$parent.$refs.left.$refs.tree.getTreeData()
// this.$parent.$refs.left.$refs.tree.getTreeData()
this
.
$message
({
this
.
$message
({
showClose
:
true
,
showClose
:
true
,
...
@@ -473,6 +474,7 @@ export default {
...
@@ -473,6 +474,7 @@ export default {
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
message
.
includes
(
'成功'
))
{
if
(
res
.
message
.
includes
(
'成功'
))
{
this
.
$bus
.
$emit
(
'getPositionData'
)
this
.
$bus
.
$emit
(
'getPositionData'
)
this
.
getTableData
()
this
.
$message
({
this
.
$message
({
showClose
:
true
,
showClose
:
true
,
message
:
res
.
message
,
message
:
res
.
message
,
...
@@ -509,6 +511,7 @@ export default {
...
@@ -509,6 +511,7 @@ export default {
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
message
.
includes
(
'成功'
))
{
if
(
res
.
message
.
includes
(
'成功'
))
{
this
.
$bus
.
$emit
(
'getPositionData'
)
this
.
$bus
.
$emit
(
'getPositionData'
)
this
.
getTableData
()
this
.
$message
({
this
.
$message
({
showClose
:
true
,
showClose
:
true
,
message
:
res
.
message
,
message
:
res
.
message
,
...
...
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