Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
295002b2
Commit
295002b2
authored
Nov 04, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'product'
parent
e39c6288
Show whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
201 additions
and
1635 deletions
+201
-1635
zh-CN.js
i18n/locale/zh-CN.js
+0
-38
index.vue
pages/aps/aps/index.vue
+1
-1
index.vue
pages/aps/dispatch/index.vue
+0
-4
index.vue
pages/aps/results/index.vue
+0
-122
index.vue
pages/basicData/userManagent/index.vue
+0
-4
userInfo.vue
pages/basicData/userManagent/userInfo.vue
+0
-11
index.vue
pages/bug/index.vue
+0
-227
add.vue
pages/crm/contract/add.vue
+0
-6
detail.vue
pages/crm/sales/detail.vue
+14
-14
projectList.vue
pages/crm/sales/projectList.vue
+0
-4
api.js
pages/home/api.js
+0
-8
approval.vue
pages/home/component/approval.vue
+0
-119
unreadMessage.vue
pages/home/component/unreadMessage.vue
+0
-89
index.vue
pages/home/index.vue
+0
-255
productReport.vue
pages/implement/components/productReport.vue
+186
-208
sendCheck.vue
pages/implement/components/sendCheck.vue
+0
-14
usercard.vue
pages/implement/components/usercard.vue
+0
-8
index.vue
pages/mordent/dispose/index.vue
+0
-6
index.vue
...rocessDesign/ChangeSingle/technicalcoordination/index.vue
+0
-4
index.vue
pages/processDesign/ChangeSingle/unqualifiedorder/index.vue
+0
-15
index.vue
pages/processDesign/Process/index.vue
+0
-10
routingchangeorder.vue
pages/processDesign/Process/routingchangeorder.vue
+0
-160
index.vue
pages/processManage/Process/index.vue
+0
-4
orderMaterial.vue
pages/processManage/setProcess/components/orderMaterial.vue
+0
-11
index.vue
pages/processManage/setProcess/index.vue
+0
-13
backCheck.vue
pages/qcimplement/components/backCheck.vue
+0
-12
add.vue
pages/resource/Store/add.vue
+0
-15
return.vue
pages/resource/resource/return.vue
+0
-5
newEquipment.vue
...eManagement/EquipmentCalendar/components/newEquipment.vue
+0
-10
newEquipment.vue
...ceManagement/deviceManagement/components/newEquipment.vue
+0
-85
newEquipment.vue
...Management/deviceManagementCP/components/newEquipment.vue
+0
-96
index.vue
pages/resourceManagement/deviceManagementCP/index.vue
+0
-57
No files found.
i18n/locale/zh-CN.js
View file @
295002b2
...
@@ -1211,44 +1211,6 @@ export default {
...
@@ -1211,44 +1211,6 @@ export default {
lastModificationTime
:
'最近修改时间'
,
lastModificationTime
:
'最近修改时间'
,
lastModifierUserId
:
'最近修改人'
,
lastModifierUserId
:
'最近修改人'
,
},
},
routing_header
:{
id
:
''
,
creationTime
:
''
,
creatorUserId
:
''
,
lastModificationTime
:
''
,
lastModifierUserId
:
''
,
deleterUserId
:
''
,
deletionTime
:
''
,
classId
:
'类id'
,
unicode
:
'unicode'
,
name
:
'工艺名称'
,
code
:
'工艺编号'
,
productId
:
'产品id'
,
productName
:
'产品名称'
,
productCode
:
'产品图号'
,
version
:
'工艺文件版本'
,
author
:
'编制人'
,
departmentId
:
''
,
isMain
:
''
,
upId
:
''
,
upDetailId
:
''
,
routingType
:
'工艺类型'
,
status
:
''
,
approvalStatus
:
'状态'
,
remark
:
'工艺说明'
,
roufile
:
'多媒体附件'
,
approvalStatusRemark
:
''
,
auditUserId1
:
'审核人'
,
auditUserId2
:
'审批人'
,
isDeleted
:
''
,
platesnum
:
''
,
isEffect
:
''
,
developmentMode
:
'研制方式'
,
changeOrderCode
:
'更改单编号'
,
changeOrderDate
:
'更改单日期'
,
changeMethod
:
'更改办法'
,
taskType
:
'任务类型'
,
},
routing_detail
:
{
routing_detail
:
{
id
:
''
,
id
:
''
,
creationTime
:
'创建时间'
,
creationTime
:
'创建时间'
,
...
...
pages/aps/aps/index.vue
View file @
295002b2
<
template
>
<
template
>
<div
class=
"aps-activ"
>
<div>
<DataGrid
<DataGrid
:columns=
"columns"
:columns=
"columns"
ref=
"grid"
ref=
"grid"
...
...
pages/aps/dispatch/index.vue
View file @
295002b2
...
@@ -229,10 +229,6 @@
...
@@ -229,10 +229,6 @@
<UserSelect
<UserSelect
ref=
"userSelected"
ref=
"userSelected"
v-model=
"entity.userIds"
v-model=
"entity.userIds"
<<<<<<<
HEAD
:type=
"3"
=======
>
>>>>>> product
:multiple=
"true"
:multiple=
"true"
style=
"width: 500px"
style=
"width: 500px"
/>
<!-- :type="3" -->
/>
<!-- :type="3" -->
...
...
pages/aps/results/index.vue
View file @
295002b2
...
@@ -68,84 +68,6 @@ export default {
...
@@ -68,84 +68,6 @@ export default {
detail
:
null
,
detail
:
null
,
isactive
:
null
,
isactive
:
null
,
list
:
[],
list
:
[],
<<<<<<<
HEAD
id
:
""
,
columns
:
[
{
type
:
"expand"
,
width
:
50
,
render
:
(
h
,
params
)
=>
{
return
h
(
expandRow
,
{
props
:
{
row
:
params
.
row
}
});
}
},
{
title
:
"超期预警"
,
key
:
"id"
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
[
h
(
"Icon"
,
{
props
:
{
type
:
params
.
row
.
id
==
1
?
"ios-information-circle-outline"
:
"ios-remove-circle-outline"
},
style
:
{
marginRight
:
"5px"
,
fontSize
:
"18px"
,
fontWeight
:
"bold"
,
color
:
params
.
row
.
id
==
1
?
"#FE7777"
:
"#0DD78D"
}
})
]);
}
},
{
title
:
"零件图号"
,
key
:
"part_id"
,
align
:
"center"
},
{
title
:
"零件名称"
,
key
:
"part_name"
,
align
:
"center"
},
{
title
:
"计划开始时间"
,
key
:
"plan_start"
,
width
:
200
,
align
:
"center"
},
{
title
:
"计划结束时间"
,
key
:
"plan_start"
,
width
:
200
,
align
:
"center"
},
{
title
:
"投料时间"
,
key
:
"demand_start"
,
width
:
200
,
align
:
"center"
},
{
title
:
"节点时间"
,
key
:
"demand_finish"
,
width
:
200
,
align
:
"center"
},
{
title
:
"计划数量"
,
key
:
"plan_qty"
,
align
:
"center"
}
]
=======
name
:
"name1"
,
name
:
"name1"
,
id
:
null
,
id
:
null
,
contrastList
:
[],
contrastList
:
[],
...
@@ -157,7 +79,6 @@ export default {
...
@@ -157,7 +79,6 @@ export default {
gant
:
false
,
gant
:
false
,
gantt
:
null
,
gantt
:
null
,
curPage
:
null
curPage
:
null
>>>>>>>
product
};
};
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
...
@@ -188,19 +109,7 @@ export default {
...
@@ -188,19 +109,7 @@ export default {
this
.
detail
=
()
=>
import
(
"./result"
);
this
.
detail
=
()
=>
import
(
"./result"
);
this
.
isactive
=
index
;
this
.
isactive
=
index
;
this
.
id
=
id
;
this
.
id
=
id
;
<<<<<<<
HEAD
Api
.
paged
({
scheduleId
:
id
})
.
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
data
=
r
.
result
;
}
})
.
catch
(
error
=>
{
this
.
$$Message
.
error
(
"请求失败"
);
});
=======
this
.
title
=
"排产方案结果"
;
this
.
title
=
"排产方案结果"
;
>>>>>>>
product
},
},
clear
()
{
clear
()
{
if
(
this
.
list
.
length
>
0
)
{
if
(
this
.
list
.
length
>
0
)
{
...
@@ -223,36 +132,6 @@ export default {
...
@@ -223,36 +132,6 @@ export default {
});
});
}
}
},
},
<<<<<<<
HEAD
parameter
()
{
Api
.
processschemedispatch
({
id
:
this
.
id
}).
then
(
r
=>
{
if
(
r
.
result
)
{
this
.
$Message
.
success
(
r
.
result
.
retmsg
);
this
.
orderlist
();
}
else
{
this
.
$Message
.
success
(
"下发失败"
);
}
});
},
comeBlck
()
{
this
.
$router
.
push
({
path
:
"/aps/aps"
});
Api
.
moveintoaps
().
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
result
.
res
)
{
this
.
$router
.
push
({
name
:
"aps-aps"
});
}
else
{
this
.
$router
.
push
({
name
:
"aps-plan"
});
}
}
});
=======
clearS
()
{
clearS
()
{
this
.
id
=
0
;
this
.
id
=
0
;
Api
.
clearall
().
then
(
r
=>
{
Api
.
clearall
().
then
(
r
=>
{
...
@@ -297,7 +176,6 @@ export default {
...
@@ -297,7 +176,6 @@ export default {
},
},
cancel
()
{
cancel
()
{
this
.
showFooter
=
false
;
this
.
showFooter
=
false
;
>>>>>>>
product
}
}
},
},
computed
:
{
computed
:
{
...
...
pages/basicData/userManagent/index.vue
View file @
295002b2
...
@@ -781,11 +781,7 @@ export default {
...
@@ -781,11 +781,7 @@ export default {
var
url
=
`
${
systemUrl
}
/MyUserRole/CreateOrUpdate`
var
url
=
`
${
systemUrl
}
/MyUserRole/CreateOrUpdate`
service
service
.
post
(
.
post
(
<<<<<<<
HEAD
`
${
url
}
`
,{
=======
`
${
url
}
`
,
{
`
${
url
}
`
,
{
>>>>>>>
product
myUserRole
:
{
myUserRole
:
{
userId
:
this
.
selectedRow
.
id
,
userId
:
this
.
selectedRow
.
id
,
RoleIds
:
this
.
allChecked
.
join
(
','
)
RoleIds
:
this
.
allChecked
.
join
(
','
)
...
...
pages/basicData/userManagent/userInfo.vue
View file @
295002b2
...
@@ -278,20 +278,9 @@ export default {
...
@@ -278,20 +278,9 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
<<<<<<< HEAD
.img_top01{
width:350px;
float:left;
.ivu-card-body {
padding: 0px;
}
}
.user_info_right{
=======
.img_top01 {
.img_top01 {
width: 350px;
width: 350px;
float: left;
float: left;
>>>>>>> product
.ivu-card-body {
.ivu-card-body {
padding: 0px;
padding: 0px;
}
}
...
...
pages/bug/index.vue
View file @
295002b2
...
@@ -414,232 +414,6 @@ export default {
...
@@ -414,232 +414,6 @@ export default {
}
else
{
}
else
{
this
.
modalInfo
=
true
;
this
.
modalInfo
=
true
;
}
}
<<<<<<<
HEAD
}
},
'编辑'
)
])
}
],
statusList
:
[
{
name
:
'确认'
,
value
:
'1'
},
{
name
:
'解决'
,
value
:
'2'
},
{
name
:
'冻结'
,
value
:
'4'
},
{
name
:
'关闭'
,
value
:
'3'
}
],
modalEdit
:
false
,
modalDetail
:
false
,
searchForm
:
{
Status
:
0
,
PageSize
:
20
,
Current
:
1
},
listBatch
:
{
ids
:
[],
statusNew
:
0
,
auditUser
:
''
,
workHours
:
0
,
remark
:
''
,
alloter
:
''
,
alloterId
:
null
},
selectBatch
:
100
,
auditUser
:
null
,
alloter
:
{},
formMyCheck
:
{
selectAlloter
:
null
},
ruleValidate
:
{
selectAlloter
:
[
{
required
:
true
,
message
:
'请选择驳指派人'
,
type
:
'number'
,
trigger
:
'change'
}
]
}
}
},
computed
:
{},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
methods
:
{
//选项卡切换
tab
(
data
)
{
if
(
data
==
'0'
)
{
this
.
easySearch
.
creatorUserId
.
value
=
this
.
$store
.
state
.
userInfo
.
userId
}
else
{
this
.
easySearch
.
creatorUserId
.
value
=
null
}
this
.
search
()
},
search
()
{
this
.
$refs
.
grid
.
easySearch
(
this
.
easySearch
)
},
//打开修改窗口
editInfo
(
value
)
{
this
.
modalEdit
=
true
this
.
$refs
.
edit
.
editeInfo
(
value
)
},
//修改事件
addSave
()
{
let
param
=
this
.
$refs
.
edit
.
addBugInfo
()
param
.
auditUser
=
this
.
$store
.
state
.
userInfo
.
userName
if
(
param
.
id
!=
null
)
{
//增加确定
this
.
$http
.
bug
.
createorupdate
(
param
).
then
((
res
)
=>
{
if
(
res
.
result
.
status
)
{
this
.
$Message
.
success
(
'修改成功!'
)
this
.
search
()
}
else
{
this
.
$Message
.
error
(
'修改失败!'
)
}
this
.
modalEdit
=
false
})
}
else
{
this
.
$Message
.
error
(
'修改失败!'
)
}
},
//打开确定/操作窗口
detailInfo
(
value
)
{
this
.
modalDetail
=
true
this
.
$refs
.
detail
.
detailInfo
(
value
)
},
//确定/关闭操作
detailSave
()
{
let
param
=
this
.
$refs
.
detail
.
addBugInfo
()
param
.
auditUser
=
this
.
$store
.
state
.
userInfo
.
userName
param
.
ids
=
[
param
.
id
]
if
(
param
.
id
!=
null
)
{
//增加确定
this
.
$http
.
bug
.
doaction
(
param
).
then
((
res
)
=>
{
if
(
res
.
result
)
{
this
.
$Message
.
success
(
'操作成功!'
)
this
.
search
()
}
else
{
this
.
$Message
.
error
(
'操作失败!'
)
}
this
.
modalDetail
=
false
})
}
else
{
this
.
$Message
.
error
(
'操作失败!'
)
}
},
//取消窗口,查看状态
canselModal
(
type
)
{
let
param
if
(
type
==
1
)
{
param
=
this
.
$refs
.
edit
.
addBugInfo
()
}
else
{
param
=
this
.
$refs
.
detail
.
addBugInfo
()
}
param
.
auditUser
=
this
.
$store
.
state
.
userInfo
.
userName
param
.
ids
=
[
param
.
id
]
param
.
statusNew
=
5
if
(
param
.
id
!=
null
)
{
//增加改变状态为5/查看
this
.
$http
.
bug
.
doaction
(
param
).
then
((
res
)
=>
{
if
(
res
.
result
)
{
//this.search(this.searchForm)
}
else
{
this
.
$Message
.
error
(
'操作失败!'
)
}
})
}
else
{
this
.
$Message
.
error
(
'操作失败!'
)
}
this
.
modalDetail
=
false
this
.
modalEdit
=
false
},
selectInfo
(
value
)
{
this
.
selectList
=
[]
this
.
selectList
=
value
let
statueArry
=
[]
value
.
forEach
((
data
)
=>
{
var
that
=
this
statueArry
.
push
(
data
.
id
)
})
this
.
results
=
[]
this
.
results
=
statueArry
this
.
getListId
(
statueArry
)
},
//得到需要批量操作的ids
getListId
(
value
)
{
this
.
listBatch
.
ids
=
value
if
(
this
.
listBatch
.
ids
.
length
>
0
)
{
this
.
footerBar
=
true
//this.showBt = false
this
.
selectBatch
=
100
}
else
{
this
.
footerBar
=
false
//this.showBt = false
this
.
selectBatch
=
100
}
this
.
listBatch
.
auditUser
=
this
.
$store
.
state
.
userInfo
.
userName
},
//批量操作
statuChange
(
value
)
{
this
.
listBatch
.
statusNew
=
value
},
upChange
()
{
if
(
this
.
selectBatch
!=
100
)
{
if
(
this
.
listBatch
.
ids
.
length
!=
0
)
{
if
(
this
.
selectBatch
==
5
)
{
this
.
$refs
[
'formValidate'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
let
alloterInfo
=
this
.
$refs
[
'userSelected'
].
getSelectItems
()
this
.
listBatch
.
alloter
=
alloterInfo
[
0
].
userName
this
.
listBatch
.
alloterId
=
alloterInfo
[
0
].
id
this
.
modalInfo
=
true
}
})
}
else
{
this
.
modalInfo
=
true
}
}
else
{
this
.
$Message
.
error
(
'请选择操作列表!'
)
this
.
selectBatch
=
100
}
}
else
{
this
.
$Message
.
error
(
'请选择操作!'
)
}
},
changeUserSelect
(
val
)
{
if
(
val
!=
undefined
&&
val
.
length
!=
''
&&
val
.
length
!=
0
)
{
this
.
formMyCheck
.
selectAlloter
=
1
}
else
{
this
.
formMyCheck
.
selectAlloter
=
null
this
.
listBatch
.
alloter
=
''
this
.
listBatch
.
alloterId
=
null
}
},
upSave
()
{
//增加确定
this
.
$http
.
bug
.
doaction
(
this
.
listBatch
).
then
((
res
)
=>
{
if
(
res
.
result
)
{
this
.
$Message
.
success
(
'操作成功!'
)
this
.
search
()
this
.
footerBar
=
false
this
.
showBt
=
false
this
.
modalInfo
=
false
this
.
selectBatch
=
100
}
else
{
this
.
$Message
.
error
(
'操作失败!'
)
}
})
},
arry2Name
(
arryList
,
values
)
{
//预警类别转换
var
codes
=
arryList
var
name
=
''
for
(
let
i
in
codes
)
{
if
(
values
==
codes
[
i
].
value
)
{
name
=
codes
[
i
].
name
=======
}
else
{
}
else
{
this
.
$Message
.
error
(
"请选择操作列表!"
);
this
.
$Message
.
error
(
"请选择操作列表!"
);
this
.
selectBatch
=
100
;
this
.
selectBatch
=
100
;
...
@@ -690,7 +464,6 @@ export default {
...
@@ -690,7 +464,6 @@ export default {
l
(
key
)
{
l
(
key
)
{
let
vkey
=
"bug"
+
"."
+
key
;
let
vkey
=
"bug"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
return
this
.
$t
(
vkey
)
||
key
;
>>>>>>>
product
}
}
},
},
created
()
{
created
()
{
...
...
pages/crm/contract/add.vue
View file @
295002b2
...
@@ -49,14 +49,8 @@ export default {
...
@@ -49,14 +49,8 @@ export default {
name
:
"Add"
,
name
:
"Add"
,
data
()
{
data
()
{
return
{
return
{
<<<<<<<
HEAD
disabled
:
false
,
entity
:
{
projectId
:
1
=======
entity
:
{
entity
:
{
projectId
:
1
,
projectId
:
1
,
>>>>>>>
product
},
},
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
...
...
pages/crm/sales/detail.vue
View file @
295002b2
...
@@ -19,42 +19,42 @@
...
@@ -19,42 +19,42 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
"./api"
;
import
Api
from
'./api'
export
default
{
export
default
{
name
:
"Add"
,
name
:
'Add'
,
data
()
{
data
()
{
return
{
return
{
entity
:
{},
entity
:
{},
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
name
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
code
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
code
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}]
}
}
}
};
},
},
props
:
{
props
:
{
eid
:
Number
eid
:
Number
},
},
methods
:
{
methods
:
{
load
(
v
)
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
Api
.
get
({
id
:
v
}).
then
(
(
r
)
=>
{
this
.
entity
=
r
.
result
;
this
.
entity
=
r
.
result
this
.
$emit
(
"on-load"
);
this
.
$emit
(
'on-load'
)
})
;
})
},
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
"on-close"
);
this
.
$emit
(
'on-close'
)
},
},
l
(
key
)
{
l
(
key
)
{
key
=
"Follow"
+
"."
+
key
;
key
=
'Follow'
+
'.'
+
key
return
this
.
$t
(
key
)
;
return
this
.
$t
(
key
)
}
}
},
},
watch
:
{
watch
:
{
eid
(
v
)
{
eid
(
v
)
{
if
(
v
!=
0
)
{
if
(
v
!=
0
)
{
this
.
load
(
v
)
;
this
.
load
(
v
)
}
}
}
}
}
}
}
;
}
</
script
>
</
script
>
\ No newline at end of file
pages/crm/sales/projectList.vue
View file @
295002b2
...
@@ -108,11 +108,7 @@
...
@@ -108,11 +108,7 @@
<Modal
v-model=
"editModal"
title=
"编辑"
footer-hide
>
<Modal
v-model=
"editModal"
title=
"编辑"
footer-hide
>
<Edit
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
<Edit
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"addOk"
/>
</Modal>
</Modal>
<
<<<<<<
HEAD
<
Modal
v-model=
"detailModal"
title=
"详情"
footer-hide
width=
"1100"
>
=======
<Modal
v-model=
"detailModal"
title=
"详情"
footer-hide
width=
"1000"
>
<Modal
v-model=
"detailModal"
title=
"详情"
footer-hide
width=
"1000"
>
>>>>>>> product
<Detail
:eid=
"curId"
/>
<Detail
:eid=
"curId"
/>
</Modal>
</Modal>
<Modal
v-model=
"deletelModal"
title=
"删除"
@
on-ok=
"removeOk"
@
on-cancel=
"cancel"
>
<Modal
v-model=
"deletelModal"
title=
"删除"
@
on-ok=
"removeOk"
@
on-cancel=
"cancel"
>
...
...
pages/home/api.js
View file @
295002b2
import
Api
from
'@/plugins/request'
import
Api
from
'@/plugins/request'
export
default
{
export
default
{
<<<<<<<
HEAD
getUserInfo
(
params
)
{
return
Api
.
get
(
`
${
systemUrl
}
/user/getuserinfo`
,
params
);
=======
index
:
`
${
systemUrl
}
/usermessage/paged`
,
index
:
`
${
systemUrl
}
/usermessage/paged`
,
paged
(
params
)
{
paged
(
params
)
{
return
Api
.
get
(
`
${
systemUrl
}
/usermessage/paged`
,
params
);
//消息历史记录列表
return
Api
.
get
(
`
${
systemUrl
}
/usermessage/paged`
,
params
);
//消息历史记录列表
...
@@ -16,14 +12,11 @@ export default {
...
@@ -16,14 +12,11 @@ export default {
},
},
sendmessagetousers
(
params
)
{
//给指定用户发送消息
sendmessagetousers
(
params
)
{
//给指定用户发送消息
return
Api
.
post
(
`
${
systemUrl
}
/usermessage/sendmessagetousers`
,
params
);
return
Api
.
post
(
`
${
systemUrl
}
/usermessage/sendmessagetousers`
,
params
);
>>>>>>>
product
},
},
// 获取打你审批数据
// 获取打你审批数据
getpaged
(
params
)
{
getpaged
(
params
)
{
return
Api
.
post
(
`
${
workflowUrl
}
/instance/getpaged`
,
params
);
return
Api
.
post
(
`
${
workflowUrl
}
/instance/getpaged`
,
params
);
},
},
<<<<<<<
HEAD
=======
planorderstatuscount
(
params
)
{
planorderstatuscount
(
params
)
{
return
Api
.
post
(
`
${
PlanUrl
}
/mesplan/planorderstatuscount`
,
params
);
//年度计划各产品类型总数量和各状态数量
return
Api
.
post
(
`
${
PlanUrl
}
/mesplan/planorderstatuscount`
,
params
);
//年度计划各产品类型总数量和各状态数量
},
},
...
@@ -39,5 +32,4 @@ export default {
...
@@ -39,5 +32,4 @@ export default {
list
(
params
)
{
list
(
params
)
{
return
Api
.
post
(
`
${
systemUrl
}
/newmessage/list`
,
params
);
//获取列表信息
return
Api
.
post
(
`
${
systemUrl
}
/newmessage/list`
,
params
);
//获取列表信息
},
},
>>>>>>>
product
}
}
\ No newline at end of file
pages/home/component/approval.vue
View file @
295002b2
<
template
>
<
template
>
<<<<<<<
HEAD
<div>
<Card
class=
"todolist"
>
=======
<div
class=
"approval"
>
<div
class=
"approval"
>
<div
class=
"todolist"
>
<div
class=
"todolist"
>
>>>>>>> product
<p
class=
"row_head"
>
<p
class=
"row_head"
>
<Icon
type=
"md-contact"
class=
"f20"
/>
<Icon
type=
"md-contact"
class=
"f20"
/>
<span
class=
"ml10"
>
待审批
</span>
<span
class=
"ml10"
>
待审批
</span>
<a
class=
"row_more fr"
@
click=
"toivew"
>
更多
</a>
<a
class=
"row_more fr"
@
click=
"toivew"
>
更多
</a>
</p>
</p>
<<<<<<<
HEAD
<div
class=
"row_card_body"
>
<Table
border
:columns=
"columns1"
:data=
"data1"
height=
"230"
></Table>
</div>
</Card>
<Modal
v-model=
"viewModal"
width=
"800"
title=
"详情"
>
<Row
class=
"mo_cont"
>
<Col
span=
"12"
class=
"label"
>
<span
class=
"title"
>
编号:
</span>
{{
viewData
.
code
}}
</Col>
<Col
span=
"12"
class=
"label"
>
<span
class=
"title"
>
审批类型:
</span>
{{
viewData
.
schemaName
}}
</Col>
<Col
span=
"12"
class=
"label"
>
<span
class=
"title"
>
当前环节:
</span>
{{
viewData
.
currentNodeName
}}
</Col>
<Col
span=
"12"
class=
"label"
>
<span
class=
"title"
>
下一环节:
</span>
{{
viewData
.
nextNodeName
}}
</Col>
<Col
span=
"12"
class=
"label"
>
<span
class=
"title"
>
创建人:
</span>
{{
viewData
.
creator
}}
</Col>
<Col
span=
"12"
class=
"label"
>
<span
class=
"title"
>
创建时间:
</span>
{{
viewData
.
creationTime
}}
</Col>
</Row>
=======
<!--
<div
class=
"row_card_body"
>
-->
<!--
<div
class=
"row_card_body"
>
-->
<!--
<Table
:row-class-name=
"rowClassName"
:columns=
"columns1"
:data=
"data1"
height=
"250"
:disabled-hover=
'true'
></Table>
-->
<!--
<Table
:row-class-name=
"rowClassName"
:columns=
"columns1"
:data=
"data1"
height=
"250"
:disabled-hover=
'true'
></Table>
-->
<div
class=
"msg"
>
<div
class=
"msg"
>
...
@@ -105,7 +67,6 @@
...
@@ -105,7 +67,6 @@
<Filed
:span=
"12"
name=
"创建时间:"
>
{{
viewData
.
creationTime
}}
</Filed>
<Filed
:span=
"12"
name=
"创建时间:"
>
{{
viewData
.
creationTime
}}
</Filed>
</Row>
</Row>
</div>
</div>
>>>>>>> product
</Modal>
</Modal>
</div>
</div>
</
template
>
</
template
>
...
@@ -118,40 +79,6 @@ export default {
...
@@ -118,40 +79,6 @@ export default {
imgUrl
:
iconImg
,
imgUrl
:
iconImg
,
viewModal
:
false
,
//详情弹框
viewModal
:
false
,
//详情弹框
viewData
:
{},
//详情数据
viewData
:
{},
//详情数据
<<<<<<<
HEAD
columns1
:
[
{
type
:
"index"
,
title
:
"序号"
,
width
:
70
,
align
:
"center"
},
{
key
:
"schemaName"
,
title
:
"类别"
,
align
:
"center"
,
width
:
150
},
{
key
:
"currentNodeName"
,
title
:
"环节"
,
align
:
"center"
},
{
key
:
"nextNodeName"
,
title
:
"下一环节"
,
align
:
"center"
},
{
key
:
"creationTime"
,
title
:
"创建时间"
,
align
:
"center"
,
width
:
170
},
{
key
:
"id"
,
title
:
"操作"
,
align
:
"center"
,
width
:
90
,
render
:
(
h
,
parmse
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
"op"
,
{
attrs
:
{
oprate
:
"add"
},
on
:
{
click
:
()
=>
{
this
.
viewRow
(
parmse
.
row
);
}
}
},
"查看"
)
]);
}
}
],
data1
:
[]
=======
// columns1: [
// columns1: [
// { type: "index", title: "序号", width: 70, align: "center" },
// { type: "index", title: "序号", width: 70, align: "center" },
// { key: "schemaName", title: "类别", align: "center" },
// { key: "schemaName", title: "类别", align: "center" },
...
@@ -185,7 +112,6 @@ export default {
...
@@ -185,7 +112,6 @@ export default {
// },
// },
// ],
// ],
data1
:
[],
data1
:
[],
>>>>>>>
product
};
};
},
},
created
()
{
created
()
{
...
@@ -195,8 +121,6 @@ export default {
...
@@ -195,8 +121,6 @@ export default {
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
},
methods
:
{
methods
:
{
<<<<<<<
HEAD
=======
rowClassName
(
row
,
index
)
{
rowClassName
(
row
,
index
)
{
if
(
index
%
2
==
0
)
{
if
(
index
%
2
==
0
)
{
return
"demo-table-info-row"
;
return
"demo-table-info-row"
;
...
@@ -205,23 +129,15 @@ export default {
...
@@ -205,23 +129,15 @@ export default {
}
}
return
""
;
return
""
;
},
},
>>>>>>>
product
getlaoed
()
{
getlaoed
()
{
let
parme
=
{
let
parme
=
{
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
20
,
pageSize
:
20
,
conditions
:
[
conditions
:
[
<<<<<<<
HEAD
{
fieldName
:
"type"
,
fieldValue
:
2
,
conditionalType
:
"Equal"
}
]
};
Api
.
getpaged
(
parme
).
then
(
res
=>
{
=======
{
fieldName
:
"type"
,
fieldValue
:
2
,
conditionalType
:
"Equal"
},
{
fieldName
:
"type"
,
fieldValue
:
2
,
conditionalType
:
"Equal"
},
],
],
};
};
Api
.
getpaged
(
parme
).
then
((
res
)
=>
{
Api
.
getpaged
(
parme
).
then
((
res
)
=>
{
>>>>>>>
product
let
arry
=
res
.
result
.
items
;
let
arry
=
res
.
result
.
items
;
let
arr
=
arry
.
slice
(
0
,
4
);
let
arr
=
arry
.
slice
(
0
,
4
);
this
.
data1
=
arr
;
this
.
data1
=
arr
;
...
@@ -235,40 +151,6 @@ export default {
...
@@ -235,40 +151,6 @@ export default {
var
info
=
{
id
:
"123"
,
message
:
"成功"
};
var
info
=
{
id
:
"123"
,
message
:
"成功"
};
this
.
$router
.
push
({
name
:
"handle"
,
params
:
info
});
this
.
$router
.
push
({
name
:
"handle"
,
params
:
info
});
// tab(1)
// tab(1)
<<<<<<<
HEAD
}
},
mounted
()
{}
};
</
script
>
<
style
lang=
"less"
scoped
>
.row_head {
height: 30px;
color: #249e91;
a {
color: #249e91;
}
}
.mo_cont {
border-top: 1px solid #ddd;
border-left: 1px solid #ddd;
.label {
display: table-cell;
border-bottom: 1px solid #ddd;
border-right: 1px solid #ddd;
// margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing: border-box;
.title {
background: #e8eaf1;
display: inline-block;
width: 100px;
text-align: right;
padding: 0 5px;
}
}
}
=======
},
},
},
},
mounted
()
{},
mounted
()
{},
...
@@ -349,5 +231,4 @@ export default {
...
@@ -349,5 +231,4 @@ export default {
// background-color: #292a4e;
// background-color: #292a4e;
// color: #fff;
// color: #fff;
// }
// }
>>>>>>> product
</
style
>
</
style
>
\ No newline at end of file
pages/home/component/unreadMessage.vue
View file @
295002b2
<
<<<<<<
HEAD
<
template
>
<Card
class=
"todolist"
>
<p
class=
"row_head"
>
<Icon
type=
"ios-chatbubbles"
class=
"f20"
/>
<Badge
:count=
"3"
:offset=
"[9,-5]"
>
<span
class=
"ml10"
>
未读消息
</span>
</Badge>
<a
href
class=
"row_more fr"
>
更多
</a>
</p>
<div
class=
"msg"
>
<Row
v-for=
"(item,index) in listTask"
:key=
"index"
class=
"row-text"
>
<Col
:span=
"2"
>
<div></div>
</Col>
<Col
:span=
"6"
>
{{index+1}}
&
nbsp
&
nbsp {{item.name}}
</Col>
<Col
:span=
"8"
>
{{item.data}}
<Icon
type=
"md-link"
/>
</Col>
<Col
:span=
"8"
>
{{item.Date}}
</Col>
</Row>
</div>
</Card>
</template>
<
script
>
=======
<
template
>
<
template
>
<div
class=
"todolist-u"
>
<div
class=
"todolist-u"
>
<p
class=
"row_head"
>
<p
class=
"row_head"
>
...
@@ -61,70 +32,11 @@
...
@@ -61,70 +32,11 @@
<
script
>
<
script
>
import
Api
from
"../api"
;
import
Api
from
"../api"
;
import
{
mapState
}
from
"vuex"
;
import
{
mapState
}
from
"vuex"
;
>>>>>>>
product
export
default
{
export
default
{
name
:
"UnreadMessage"
,
name
:
"UnreadMessage"
,
data
()
{
data
()
{
return
{
return
{
imgUrl
:
iconImg
,
imgUrl
:
iconImg
,
<<<<<<<
HEAD
listTask
:
[
{
name
:
"张飞"
,
data
:
"生产订单缺料"
,
Date
:
"2020-03-12 11.30"
},
{
name
:
"张飞"
,
data
:
"送审订单待审批"
,
Date
:
"2020-03-12 11.30"
},
{
name
:
"张飞"
,
data
:
"排产未完成"
,
Date
:
"2020-03-12 11.30"
},
{
name
:
"张飞"
,
data
:
"物料补料中"
,
Date
:
"2020-03-12 11.30"
},
{
name
:
"张飞"
,
data
:
"物料补料中"
,
Date
:
"2020-03-12 11.30"
},
{
name
:
"张飞"
,
data
:
"物料补料中"
,
Date
:
"2020-03-12 11.30"
}
]
};
},
methods
:
{
link
()
{
console
.
log
(
"路径"
);
}
}
};
</
script
>
<
style
lang=
"less"
scoped
>
.row_head {
height: 35px;
line-height: 30px;
color: #0099ff;
}
.msg {
height: 225px;
overflow-y: auto;
.row-text {
height: 40px;
line-height: 40px;
border-top: 1px solid #eee;
}
}
=======
// listTask: [],
// listTask: [],
messageList
:
[],
messageList
:
[],
title
:
"消息"
,
title
:
"消息"
,
...
@@ -231,5 +143,4 @@ export default {
...
@@ -231,5 +143,4 @@ export default {
// .msg .row-text:nth-child(even){
// .msg .row-text:nth-child(even){
// }
// }
>>>>>>> product
</
style
>
</
style
>
\ No newline at end of file
pages/home/index.vue
View file @
295002b2
<
template
>
<
template
>
<<<<<<<
HEAD
<div
class=
"home"
>
<Card
class=
"card-user"
>
<div
class=
"img-header"
>
<img
src=
"@/assets/images/home/user.png"
/>
</div>
<div
class=
"user-text"
>
<p>
你好:张飞,欢迎登陆MES系统!
</p>
<p>
<span>
xx公司/xx车间xx班组
</span>
&
nbsp
&
nbsp
<span>
工艺技术员
</span>
</p>
</div>
<div
class=
"incon-carousel"
>
<div
class=
"bg-b"
>
<Icon
type=
"ios-arrow-back"
/>
</div>
<div
class=
"bg bg0"
>
<Icon
type=
"ios-cube"
/>
<p>
电子对账单
</p>
</div>
<div
class=
"bg bg1"
>
<Icon
type=
"md-mail"
/>
<p>
站内邮件
</p>
</div>
<div
class=
"bg bg2"
>
<Icon
type=
"md-map"
/>
<p>
站内邮件
</p>
</div>
<div
class=
"bg bg3"
>
<Icon
type=
"ios-cube"
/>
<p>
电子对账单
</p>
</div>
<div
class=
"bg bg0"
>
<Icon
type=
"ios-cube"
/>
<p>
电子对账单
</p>
</div>
<div
class=
"bg bg1"
>
<Icon
type=
"md-mail"
/>
<p>
站内邮件
</p>
</div>
<div
class=
"bg bg2"
>
<Icon
type=
"md-mail"
/>
<p>
站内邮件
</p>
</div>
<div
class=
"bg-l"
>
<Icon
type=
"ios-arrow-forward"
/>
</div>
</div>
</Card>
<div
class=
"card-list"
>
<div
class=
"bg-b"
>
<Icon
type=
"ios-arrow-back"
/>
</div>
<Card
v-for=
"(item,index) in listTask"
:key=
"index"
:class=
"item.name=='物料复验' ? 'img_bg02':(item.name=='产品合格证' ? 'img_bg03':(item.name=='生产执行' ? 'img_bg04' : 'img_bg01'))"
@
click
.
native=
"goPage(item)"
>
<div
class=
"leftIco"
>
<img
class=
"img_icon"
src=
"@/assets/imgicon/u1640.png"
alt
/>
</div>
<div
class=
"text-p"
>
<p>
{{
item
.
totalUrl
}}
</p>
<p>
{{
item
.
name
}}
</p>
</div>
</Card>
<div
class=
"bg-l"
>
<Icon
type=
"ios-arrow-forward"
/>
</div>
</div>
<Row
class=
"table"
:gutter=
"16"
>
<Col
:span=
"12"
>
<Approval
ref=
"approval"
/>
</Col>
<Col
:span=
"12"
>
<UnreadMessage
/>
</Col>
</Row>
<div
class=
"url-img"
></div>
</div>
</
template
>
=======
<div
class=
"home"
>
<div
class=
"home"
>
<div
class=
"card-user"
>
<div
class=
"card-user"
>
<div
class=
"img-header"
>
<div
class=
"img-header"
>
...
@@ -227,180 +143,10 @@
...
@@ -227,180 +143,10 @@
</div>
</div>
</
template
>
</
template
>
>>>>>>> product
<
script
>
<
script
>
import
Api
from
"./api"
;
import
Api
from
"./api"
;
import
Approval
from
"./component/approval"
;
import
Approval
from
"./component/approval"
;
import
UnreadMessage
from
"./component/unreadMessage"
;
import
UnreadMessage
from
"./component/unreadMessage"
;
<<<<<<<
HEAD
export
default
{
components
:
{
Approval
,
UnreadMessage
},
data
()
{
return
{
listTask
:
[],
imgUrl
:
iconImg
};
},
created
()
{
this
.
get
();
},
methods
:
{
get
()
{
let
list
=
[];
let
url
=
`
${
systemUrl
}
/backlog/get`
;
this
.
$api
.
get
(
url
).
then
(
r
=>
{
list
=
r
.
result
;
list
.
forEach
(
data
=>
{
// console.log(data.totalUrl)
let
ulrt
=
`http://
${
address
}
:`
+
data
.
totalUrl
;
data
.
totalUrl
=
0
;
this
.
$api
.
get
(
ulrt
).
then
(
r
=>
{
return
(
data
.
totalUrl
=
r
.
result
);
});
});
console
.
log
(
list
);
this
.
listTask
=
list
;
});
},
goPage
(
u
)
{
// alert(u.menuUrl)
this
.
$router
.
push
(
u
.
menuUrl
);
}
}
};
</
script
>
<
style
lang=
"less"
scoped
>
.home {
padding: 10px 0;
.card-user {
height: 100px;
.img-header {
margin-top: -8px;
float: left;
}
.user-text {
float: left;
p {
margin: 10px;
}
}
.incon-carousel {
float: right;
// margin-top: 8px;
width: 800px;
.bg-b {
float: left;
margin-top: 10px;
font-size: 30px;
color: #dcdfe6;
}
.bg-l {
float: right;
margin-top: 10px;
font-size: 30px;
color: #dcdfe6;
}
.bg {
text-align: center;
width: 100px;
float: left;
.ivu-icon {
font-size: 35px;
}
p {
margin-top: 8px;
}
}
.bg0 {
.ivu-icon {
color: #ffc300;
}
}
.bg1 {
.ivu-icon {
color: #0099ff;
}
}
.bg2 {
.ivu-icon {
color: #ff7a8b;
}
}
.bg3 {
.ivu-icon {
color: #ffc300;
}
}
}
}
.card-list {
display: flex;
display: -webkit-flex;
margin-top: 15px;
justify-content: space-around;
.bg-b {
margin-top: 18px;
font-size: 30px;
color: #dcdfe6;
width: 35px;
}
.bg-l {
margin-top: 18px;
font-size: 30px;
color: #dcdfe6;
width: 35px;
}
.img_bg01 {
background-color: #ff9100;
width: 200px;
cursor: pointer;
background: linear-gradient(to left, #ff9100, #ffcf87);
}
.img_bg02 {
width: 200px;
cursor: pointer;
background: linear-gradient(to left, #003fd4, #8ac7fc);
}
.img_bg03 {
cursor: pointer;
width: 200px;
background: linear-gradient(to left, #fe1b1b, #fc9c92);
}
.img_bg04 {
cursor: pointer;
width: 200px;
background: linear-gradient(to left, #249e91, #79ece0);
}
.img_icon {
width: 24px;
margin: 23% 0 0 0;
}
.text-p {
text-align: center;
color: #fff;
p:first-child {
font-size: 20px;
font-weight: bold;
margin-bottom: 5px;
}
}
}
.url-img {
width: 100%;
height: 370px;
background: url("../../assets/images/home/echars.png") no-repeat;
background-size: 100% 100%;
}
.table {
margin-top: 15px;
}
}
</
style
>
=======
import
StaChart
from
"./component/staChart"
;
import
StaChart
from
"./component/staChart"
;
import
UnqualifiedEcharts
from
"./component/unqualifiedEcharts"
;
import
UnqualifiedEcharts
from
"./component/unqualifiedEcharts"
;
import
WorkChart
from
"./component/workChart"
;
import
WorkChart
from
"./component/workChart"
;
...
@@ -900,4 +646,3 @@ export default {
...
@@ -900,4 +646,3 @@ export default {
}
}
}
}
</
style
>
</
style
>
>>>>>>> product
pages/implement/components/productReport.vue
View file @
295002b2
...
@@ -25,19 +25,7 @@
...
@@ -25,19 +25,7 @@
<Button
type=
"primary"
@
click=
"save()"
class=
"title_btn ml10"
v-noClick
>
汇报
</Button>
<Button
type=
"primary"
@
click=
"save()"
class=
"title_btn ml10"
v-noClick
>
汇报
</Button>
</div>
</div>
<div
class=
"table01"
>
<div
class=
"table01"
>
<
<<<<<<
HEAD
<
Table
stripe
ref=
"table"
border
:columns=
"moviecolumn"
:height=
"taHeight"
:data=
"data1"
class=
"tableCommon"
>
=======
<Table
stripe
ref=
"table"
:columns=
"moviecolumn"
:height=
"taHeight"
:data=
"data1"
class=
"tableCommon"
>
<Table
stripe
ref=
"table"
:columns=
"moviecolumn"
:height=
"taHeight"
:data=
"data1"
class=
"tableCommon"
>
>>>>>>> product
<
template
slot-scope=
"{ row,index }"
slot=
"hg"
>
<
template
slot-scope=
"{ row,index }"
slot=
"hg"
>
<template
v-if=
"row.status==0"
>
<template
v-if=
"row.status==0"
>
<template
v-if=
"row.productstatus1==0"
>
<template
v-if=
"row.productstatus1==0"
>
...
@@ -104,10 +92,10 @@
...
@@ -104,10 +92,10 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
service
from
"@/plugins/request"
;
import
service
from
'@/plugins/request'
import
QS
from
"querystring"
;
import
QS
from
'querystring'
export
default
{
export
default
{
name
:
"productReport"
,
name
:
'productReport'
,
components
:
{},
components
:
{},
data
()
{
data
()
{
return
{
return
{
...
@@ -117,20 +105,20 @@ export default {
...
@@ -117,20 +105,20 @@ export default {
datasearch
:
{
datasearch
:
{
isMain
:
0
,
isMain
:
0
,
entryID
:
0
,
entryID
:
0
,
order_id
:
""
,
order_id
:
''
,
product_code
:
""
,
product_code
:
''
,
board_code
:
""
,
board_code
:
''
,
productstatus
:
null
,
productstatus
:
null
,
MaxResultCount
:
10
,
MaxResultCount
:
10
,
SkipCount
:
0
SkipCount
:
0
},
},
taHeight
:
""
,
taHeight
:
''
,
checked
:
true
,
checked
:
true
,
newModel
:
false
,
newModel
:
false
,
ids
:
[],
ids
:
[],
isedit
:
false
,
isedit
:
false
,
productobj
:
0
,
productobj
:
0
,
product_ID
:
""
,
product_ID
:
''
,
board_ID
:
0
,
board_ID
:
0
,
product_List
:
[],
product_List
:
[],
board_List
:
[],
board_List
:
[],
...
@@ -139,16 +127,16 @@ export default {
...
@@ -139,16 +127,16 @@ export default {
record_id
:
0
,
record_id
:
0
,
dispatch_id
:
0
,
dispatch_id
:
0
,
execute_id
:
0
,
execute_id
:
0
,
order_id
:
""
,
order_id
:
''
,
qc_card_id
:
0
,
qc_card_id
:
0
,
fill_in_user_type
:
0
,
fill_in_user_type
:
0
,
data_type
:
3
,
data_type
:
3
,
data_content1
:
""
,
data_content1
:
''
,
data_content2
:
""
,
data_content2
:
''
,
data_content3
:
""
,
data_content3
:
''
,
data_content4
:
""
,
data_content4
:
''
,
product_code
:
""
,
product_code
:
''
,
board_code
:
""
board_code
:
''
},
},
ishgCheckAll
:
false
,
ishgCheckAll
:
false
,
isbfCheckAll
:
false
,
isbfCheckAll
:
false
,
...
@@ -159,401 +147,391 @@ export default {
...
@@ -159,401 +147,391 @@ export default {
// { title: '序号', type: 'index', width: '100', align: 'center' },
// { title: '序号', type: 'index', width: '100', align: 'center' },
{
{
title
:
"产品号"
,
title
:
'产品号'
,
width
:
"90"
,
width
:
'90'
,
align
:
"center"
,
align
:
'center'
,
key
:
"product_str"
key
:
'product_str'
},
},
{
{
title
:
"板号"
,
title
:
'板号'
,
width
:
"90"
,
width
:
'90'
,
align
:
"center"
,
align
:
'center'
,
key
:
"board_code"
key
:
'board_code'
},
},
{
{
title
:
"检验结果"
,
title
:
'检验结果'
,
width
:
"100"
,
width
:
'100'
,
align
:
"center"
,
align
:
'center'
,
key
:
"status"
,
key
:
'status'
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
let
content
=
""
;
let
content
=
''
if
(
params
.
row
.
status
==
-
1
)
{
if
(
params
.
row
.
status
==
-
1
)
{
content
=
"待自检"
;
content
=
'待自检'
}
else
if
(
params
.
row
.
status
==
2
)
{
}
else
if
(
params
.
row
.
status
==
2
)
{
content
=
"待互检"
;
content
=
'待互检'
}
else
if
(
params
.
row
.
status
==
3
||
params
.
row
.
status
==
4
)
{
}
else
if
(
params
.
row
.
status
==
3
||
params
.
row
.
status
==
4
)
{
content
=
"待检验"
;
content
=
'待检验'
}
else
{
}
else
{
content
=
"完成"
;
content
=
'完成'
}
}
return
h
(
"div"
,
[
return
h
(
'div'
,
[
h
(
h
(
"span"
,
'span'
,
{
{
props
:
{
props
:
{
type
:
"text"
,
type
:
'text'
,
ghost
:
true
ghost
:
true
}
}
},
},
content
content
)
)
])
;
])
}
}
},
},
{
{
title
:
"汇报结果"
,
title
:
'汇报结果'
,
width
:
"100"
,
width
:
'100'
,
align
:
"center"
,
align
:
'center'
,
key
:
"productstatus"
,
key
:
'productstatus'
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
let
content
=
""
;
let
content
=
''
if
(
params
.
row
.
productstatus1
==
1
)
{
if
(
params
.
row
.
productstatus1
==
1
)
{
content
=
"合格"
;
content
=
'合格'
}
else
if
(
params
.
row
.
productstatus1
==
2
)
{
}
else
if
(
params
.
row
.
productstatus1
==
2
)
{
content
=
"报废"
;
content
=
'报废'
}
else
if
(
params
.
row
.
productstatus1
==
3
)
{
}
else
if
(
params
.
row
.
productstatus1
==
3
)
{
content
=
"让步"
;
content
=
'让步'
}
else
{
}
else
{
content
=
"待汇报"
;
content
=
'待汇报'
}
}
return
h
(
"div"
,
[
return
h
(
'div'
,
[
h
(
h
(
"span"
,
'span'
,
{
{
props
:
{
props
:
{
type
:
"text"
,
type
:
'text'
,
ghost
:
true
ghost
:
true
}
}
},
},
content
content
)
)
])
;
])
}
}
},
},
{
{
title
:
"合格"
,
title
:
'合格'
,
key
:
"productstatus"
,
key
:
'productstatus'
,
width
:
"95"
,
width
:
'95'
,
align
:
"center"
,
align
:
'center'
,
renderHeader
:
(
h
,
params
)
=>
{
renderHeader
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
[
return
h
(
'div'
,
[
h
(
h
(
"Checkbox"
,
'Checkbox'
,
{
{
props
:
{
props
:
{
value
:
this
.
ishgCheckAll
value
:
this
.
ishgCheckAll
},
},
on
:
{
on
:
{
"on-change"
:
()
=>
{
'on-change'
:
()
=>
{
this
.
handlehgCheckAll
()
;
//点击修改下面Checkbox的状态
this
.
handlehgCheckAll
()
//点击修改下面Checkbox的状态
}
}
}
}
},
},
"合格"
'合格'
)
)
])
;
])
},
},
slot
:
"hg"
slot
:
'hg'
},
},
{
{
title
:
"报废"
,
title
:
'报废'
,
key
:
"productstatus"
,
key
:
'productstatus'
,
width
:
"95"
,
width
:
'95'
,
align
:
"center"
,
align
:
'center'
,
renderHeader
:
(
h
,
params
)
=>
{
renderHeader
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
[
return
h
(
'div'
,
[
h
(
h
(
"Checkbox"
,
'Checkbox'
,
{
{
props
:
{
props
:
{
value
:
this
.
isbfCheckAll
value
:
this
.
isbfCheckAll
},
},
on
:
{
on
:
{
"on-change"
:
()
=>
{
'on-change'
:
()
=>
{
this
.
handlebfCheckAll
()
;
//点击修改下面Checkbox的状态
this
.
handlebfCheckAll
()
//点击修改下面Checkbox的状态
}
}
}
}
},
},
"报废"
'报废'
)
)
])
;
])
},
},
slot
:
"bf"
slot
:
'bf'
},
},
{
{
title
:
"让步"
,
title
:
'让步'
,
key
:
"productstatus"
,
key
:
'productstatus'
,
width
:
"95"
,
width
:
'95'
,
align
:
"center"
,
align
:
'center'
,
renderHeader
:
(
h
,
params
)
=>
{
renderHeader
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
[
return
h
(
'div'
,
[
h
(
h
(
"Checkbox"
,
'Checkbox'
,
{
{
props
:
{
props
:
{
value
:
this
.
isrbCheckAll
value
:
this
.
isrbCheckAll
},
},
on
:
{
on
:
{
"on-change"
:
()
=>
{
'on-change'
:
()
=>
{
this
.
handlerbCheckAll
()
;
//点击修改下面Checkbox的状态
this
.
handlerbCheckAll
()
//点击修改下面Checkbox的状态
}
}
}
}
},
},
"让步"
'让步'
)
)
])
;
])
},
},
slot
:
"rb"
slot
:
'rb'
},
},
{
{
title
:
"审理单编号"
,
title
:
'审理单编号'
,
key
:
"docket_number"
,
key
:
'docket_number'
,
slot
:
"docket"
slot
:
'docket'
},
},
{
{
title
:
"问题原因"
,
title
:
'问题原因'
,
key
:
"cause"
,
key
:
'cause'
,
slot
:
"cause"
slot
:
'cause'
},
},
{
{
title
:
"汇报人"
,
title
:
'汇报人'
,
key
:
"report_user_name"
,
key
:
'report_user_name'
,
width
:
"100"
,
width
:
'100'
,
align
:
"center"
align
:
'center'
},
},
{
{
title
:
"汇报时间"
,
title
:
'汇报时间'
,
key
:
"report_time"
,
key
:
'report_time'
,
width
:
"180"
,
width
:
'180'
,
align
:
"center"
,
align
:
'center'
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
let
content
=
let
content
=
params
.
row
.
report_time
.
indexOf
(
"0001"
)
>
-
1
params
.
row
.
report_time
.
indexOf
(
'0001'
)
>
-
1
?
""
?
''
:
params
.
row
.
report_time
;
:
params
.
row
.
report_time
return
h
(
"div"
,
[
return
h
(
'div'
,
[
h
(
h
(
"span"
,
'span'
,
{
{
props
:
{
props
:
{
type
:
"text"
,
type
:
'text'
,
ghost
:
true
ghost
:
true
}
}
},
},
content
content
)
)
])
;
])
}
}
}
}
]
]
}
;
}
},
},
created
()
{
created
()
{
this
.
taHeight
=
window
.
innerHeight
-
375
;
this
.
taHeight
=
window
.
innerHeight
-
375
},
},
mounted
()
{
mounted
()
{
window
.
onresize
=
()
=>
{
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
///浏览器窗口大小变化
return
(()
=>
{
return
(()
=>
{
this
.
taHeight
=
window
.
innerHeight
-
375
;
this
.
taHeight
=
window
.
innerHeight
-
375
})()
;
})()
}
;
}
},
},
methods
:
{
methods
:
{
loadpage
(
dispatch_id
,
order_id
,
isMain
)
{
loadpage
(
dispatch_id
,
order_id
,
isMain
)
{
this
.
datasearch
.
entryID
=
dispatch_id
;
this
.
datasearch
.
entryID
=
dispatch_id
this
.
datasearch
.
order_id
=
order_id
;
this
.
datasearch
.
order_id
=
order_id
this
.
datasearch
.
isMain
=
isMain
;
this
.
datasearch
.
isMain
=
isMain
this
.
loaddata
()
;
this
.
loaddata
()
this
.
loadproduct
()
;
this
.
loadproduct
()
},
},
onPageChanged
(
page_index
)
{
onPageChanged
(
page_index
)
{
this
.
pageindex
=
page_index
;
this
.
pageindex
=
page_index
this
.
loaddata
()
;
this
.
loaddata
()
},
},
onPagesizeChanged
(
page_size
)
{
onPagesizeChanged
(
page_size
)
{
this
.
datasearch
.
MaxResultCount
=
page_size
;
this
.
datasearch
.
MaxResultCount
=
page_size
this
.
loaddata
()
;
this
.
loaddata
()
},
},
loaddata
()
{
loaddata
()
{
this
.
data1
=
[]
;
this
.
data1
=
[]
this
.
datasearch
.
SkipCount
=
this
.
datasearch
.
SkipCount
=
(
this
.
pageindex
-
1
)
*
this
.
datasearch
.
MaxResultCount
;
(
this
.
pageindex
-
1
)
*
this
.
datasearch
.
MaxResultCount
var
url
=
var
url
=
`
${
PlanUrl
}
/orderexecutequalityrecord/getentryproductlist?`
+
`
${
PlanUrl
}
/orderexecutequalityrecord/getentryproductlist?`
+
QS
.
stringify
(
this
.
datasearch
)
;
QS
.
stringify
(
this
.
datasearch
)
service
.
get
(
`
${
url
}
`
).
then
(
response
=>
{
service
.
get
(
`
${
url
}
`
).
then
(
(
response
)
=>
{
if
(
response
.
result
!=
null
)
{
if
(
response
.
result
!=
null
)
{
this
.
data1
=
response
.
result
.
items
;
this
.
data1
=
response
.
result
.
items
this
.
datatotal
=
response
.
result
.
totalCount
;
this
.
datatotal
=
response
.
result
.
totalCount
}
}
})
;
})
},
},
loadproduct
()
{
loadproduct
()
{
var
url
=
var
url
=
`
${
PlanUrl
}
/orderexecutequalityrecord/getentryproductcode?entryID=`
+
`
${
PlanUrl
}
/orderexecutequalityrecord/getentryproductcode?entryID=`
+
this
.
datasearch
.
entryID
;
this
.
datasearch
.
entryID
service
.
get
(
`
${
url
}
`
).
then
(
response
=>
{
service
.
get
(
`
${
url
}
`
).
then
(
(
response
)
=>
{
this
.
product_List
=
response
.
result
;
this
.
product_List
=
response
.
result
this
.
board_List
=
response
.
result
;
this
.
board_List
=
response
.
result
if
(
this
.
datasearch
.
isMain
==
1
)
{
if
(
this
.
datasearch
.
isMain
==
1
)
{
this
.
product_List
=
[]
;
this
.
product_List
=
[]
for
(
let
i
=
0
;
i
<
this
.
board_List
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
board_List
.
length
;
i
++
)
{
let
obj
=
this
.
board_List
[
i
]
;
let
obj
=
this
.
board_List
[
i
]
let
productids
=
obj
.
productids
.
split
(
","
);
let
productids
=
obj
.
productids
.
split
(
','
)
let
productcodes
=
obj
.
productcodes
.
split
(
","
);
let
productcodes
=
obj
.
productcodes
.
split
(
','
)
for
(
let
j
=
0
;
j
<
productids
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
productids
.
length
;
j
++
)
{
let
p
=
{}
;
let
p
=
{}
p
.
productids
=
productids
[
j
]
;
p
.
productids
=
productids
[
j
]
p
.
productcodes
=
productcodes
[
j
]
;
p
.
productcodes
=
productcodes
[
j
]
this
.
product_List
.
push
(
p
)
;
this
.
product_List
.
push
(
p
)
}
}
}
}
}
}
})
;
})
},
},
productonchange
(
e
)
{
productonchange
(
e
)
{
this
.
datasearch
.
product_code
=
e
;
this
.
datasearch
.
product_code
=
e
this
.
loaddata
()
;
this
.
loaddata
()
},
},
boardonchange
(
e
)
{
boardonchange
(
e
)
{
for
(
let
i
=
0
;
i
<
this
.
board_List
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
board_List
.
length
;
i
++
)
{
let
obj
=
this
.
board_List
[
i
]
;
let
obj
=
this
.
board_List
[
i
]
if
(
obj
.
boardNumber
==
e
)
{
if
(
obj
.
boardNumber
==
e
)
{
this
.
product_List
=
[]
;
this
.
product_List
=
[]
let
productids
=
obj
.
productids
.
split
(
","
);
let
productids
=
obj
.
productids
.
split
(
','
)
let
productcodes
=
obj
.
productcodes
.
split
(
","
);
let
productcodes
=
obj
.
productcodes
.
split
(
','
)
for
(
let
j
=
0
;
j
<
productids
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
productids
.
length
;
j
++
)
{
let
p
=
{}
;
let
p
=
{}
p
.
productids
=
productids
[
j
]
;
p
.
productids
=
productids
[
j
]
p
.
productcodes
=
productcodes
[
j
]
;
p
.
productcodes
=
productcodes
[
j
]
this
.
product_List
.
push
(
p
)
;
this
.
product_List
.
push
(
p
)
}
}
}
}
}
}
this
.
datasearch
.
board_code
=
e
;
this
.
datasearch
.
board_code
=
e
this
.
loaddata
()
;
this
.
loaddata
()
},
},
handlehgCheckAll
()
{
handlehgCheckAll
()
{
this
.
ishgCheckAll
=
!
this
.
ishgCheckAll
;
this
.
ishgCheckAll
=
!
this
.
ishgCheckAll
for
(
let
i
=
0
;
i
<
this
.
data1
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
data1
.
length
;
i
++
)
{
if
(
this
.
data1
[
i
].
productstatus1
==
0
&&
this
.
data1
[
i
].
status
==
0
)
{
if
(
this
.
data1
[
i
].
productstatus1
==
0
&&
this
.
data1
[
i
].
status
==
0
)
{
this
.
data1
[
i
].
productstatus
=
this
.
ishgCheckAll
?
1
:
0
;
this
.
data1
[
i
].
productstatus
=
this
.
ishgCheckAll
?
1
:
0
}
}
}
}
},
},
handlebfCheckAll
()
{
handlebfCheckAll
()
{
this
.
isbfCheckAll
=
!
this
.
isbfCheckAll
;
this
.
isbfCheckAll
=
!
this
.
isbfCheckAll
for
(
let
i
=
0
;
i
<
this
.
data1
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
data1
.
length
;
i
++
)
{
if
(
this
.
data1
[
i
].
productstatus1
==
0
&&
this
.
data1
[
i
].
status
==
0
)
{
if
(
this
.
data1
[
i
].
productstatus1
==
0
&&
this
.
data1
[
i
].
status
==
0
)
{
this
.
data1
[
i
].
productstatus
=
this
.
isbfCheckAll
?
2
:
0
;
this
.
data1
[
i
].
productstatus
=
this
.
isbfCheckAll
?
2
:
0
}
}
}
}
},
},
handlerbCheckAll
()
{
handlerbCheckAll
()
{
this
.
isrbCheckAll
=
!
this
.
isrbCheckAll
;
this
.
isrbCheckAll
=
!
this
.
isrbCheckAll
for
(
let
i
=
0
;
i
<
this
.
data1
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
data1
.
length
;
i
++
)
{
if
(
this
.
data1
[
i
].
productstatus1
==
0
&&
this
.
data1
[
i
].
status
==
0
)
{
if
(
this
.
data1
[
i
].
productstatus1
==
0
&&
this
.
data1
[
i
].
status
==
0
)
{
this
.
data1
[
i
].
productstatus
=
this
.
isrbCheckAll
?
3
:
0
;
this
.
data1
[
i
].
productstatus
=
this
.
isrbCheckAll
?
3
:
0
}
}
}
}
},
},
hgcheck
(
index
,
e
)
{
hgcheck
(
index
,
e
)
{
this
.
data1
[
index
].
productstatus
=
e
?
1
:
0
;
this
.
data1
[
index
].
productstatus
=
e
?
1
:
0
},
},
bfcheck
(
index
,
e
)
{
bfcheck
(
index
,
e
)
{
this
.
data1
[
index
].
productstatus
=
e
?
2
:
0
;
this
.
data1
[
index
].
productstatus
=
e
?
2
:
0
},
},
rbcheck
(
index
,
e
)
{
rbcheck
(
index
,
e
)
{
this
.
data1
[
index
].
productstatus
=
e
?
3
:
0
;
this
.
data1
[
index
].
productstatus
=
e
?
3
:
0
},
},
docketinput
(
index
,
e
)
{
docketinput
(
index
,
e
)
{
this
.
data1
[
index
].
docket_number
=
e
.
target
.
value
;
this
.
data1
[
index
].
docket_number
=
e
.
target
.
value
},
},
causeinput
(
index
,
e
)
{
causeinput
(
index
,
e
)
{
this
.
data1
[
index
].
cause
=
e
.
target
.
value
;
this
.
data1
[
index
].
cause
=
e
.
target
.
value
},
},
save
()
{
save
()
{
// this.$parent.$parent.loadproduct()
let
datalist
=
[];
let
userInfo
=
this
.
$store
.
state
.
admin
.
user
.
info
;
<<<<<<<
HEAD
=======
// this.$parent.$parent.loadproduct()
// this.$parent.$parent.loadproduct()
let
datalist
=
[]
let
datalist
=
[]
let
userInfo
=
this
.
$store
.
state
.
admin
.
user
.
info
;
let
userInfo
=
this
.
$store
.
state
.
admin
.
user
.
info
;
>>>>>>>
product
for
(
let
i
=
0
;
i
<
this
.
data1
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
data1
.
length
;
i
++
)
{
let
obj
=
this
.
data1
[
i
]
;
let
obj
=
this
.
data1
[
i
]
if
(
obj
.
productstatus1
==
0
&&
obj
.
productstatus
!=
0
)
{
if
(
obj
.
productstatus1
==
0
&&
obj
.
productstatus
!=
0
)
{
<<<<<<<
HEAD
obj
.
report_user_name
=
userInfo
.
name
;
datalist
.
push
(
obj
);
=======
obj
.
report_user_name
=
userInfo
.
name
obj
.
report_user_name
=
userInfo
.
name
datalist
.
push
(
obj
)
datalist
.
push
(
obj
)
>>>>>>>
product
}
}
}
}
if
(
datalist
.
length
==
0
)
{
if
(
datalist
.
length
==
0
)
{
this
.
$Message
.
success
(
"请进行填报"
);
this
.
$Message
.
success
(
'请进行填报'
)
return
;
return
}
}
console
.
log
(
datalist
)
;
console
.
log
(
datalist
)
var
url
=
`
${
PlanUrl
}
/orderexecutequalityrecord/saveentryproduct`
;
var
url
=
`
${
PlanUrl
}
/orderexecutequalityrecord/saveentryproduct`
service
service
.
post
(
`
${
url
}
`
,
{
.
post
(
`
${
url
}
`
,
{
dispatch_id
:
this
.
datasearch
.
entryID
,
dispatch_id
:
this
.
datasearch
.
entryID
,
order_id
:
this
.
datasearch
.
order_id
,
order_id
:
this
.
datasearch
.
order_id
,
list
:
datalist
list
:
datalist
})
}
.
then
(
response
=>
{
)
.
then
((
response
)
=>
{
if
(
response
.
success
)
{
if
(
response
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$Message
.
success
(
'保存成功'
)
this
.
loaddata
()
;
this
.
loaddata
()
this
.
$parent
.
$parent
.
$parent
.
loadEntry
(
this
.
$parent
.
$parent
.
$parent
.
loadEntry
(
this
.
$parent
.
$parent
.
$parent
.
data
.
id
);
this
.
$parent
.
$parent
.
$parent
.
data
.
id
);
}
}
})
})
.
catch
(
error
=>
{
.
catch
(
(
error
)
=>
{
this
.
$Message
.
error
(
"保存失败"
);
this
.
$Message
.
error
(
'保存失败'
)
})
;
})
},
},
updateentrystatus
()
{
updateentrystatus
()
{
let
stat
=
true
;
let
stat
=
true
for
(
let
i
=
0
;
i
<
this
.
data1
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
data1
.
length
;
i
++
)
{
let
obj
=
this
.
data1
[
i
]
;
let
obj
=
this
.
data1
[
i
]
if
(
obj
.
productstatus
==
0
)
{
if
(
obj
.
productstatus
==
0
)
{
stat
=
false
;
stat
=
false
break
;
break
}
}
}
}
if
(
stat
)
{
if
(
stat
)
{
this
.
$parent
.
$parent
.
updateentrystatus
(
this
.
datasearch
.
dispatch_id
,
0
)
;
this
.
$parent
.
$parent
.
updateentrystatus
(
this
.
datasearch
.
dispatch_id
,
0
)
}
}
}
}
}
}
}
;
}
</
script
>
</
script
>
\ No newline at end of file
pages/implement/components/sendCheck.vue
View file @
295002b2
...
@@ -225,20 +225,6 @@ export default {
...
@@ -225,20 +225,6 @@ export default {
}
}
}
}
}
}
<<<<<<<
HEAD
},
getCurrentUser
(
e
)
{
if
(
e
)
{
let
userInfo
=
this
.
$store
.
state
.
admin
.
user
.
info
;
this
.
user
.
cardno
=
userInfo
.
login_id
this
.
user
.
user_name
=
userInfo
.
name
this
.
user
.
user_id
=
userInfo
.
userId
}
else
{
this
.
user
.
cardno
=
''
}
=======
>>>>>>>
product
}
}
}
}
...
...
pages/implement/components/usercard.vue
View file @
295002b2
...
@@ -232,20 +232,12 @@ export default {
...
@@ -232,20 +232,12 @@ export default {
},
},
getCurrentUser
(
e
)
{
getCurrentUser
(
e
)
{
if
(
e
)
{
if
(
e
)
{
<<<<<<<
HEAD
let
userInfo
=
this
.
$store
.
state
.
admin
.
user
.
info
;
this
.
user
.
cardno
=
userInfo
.
login_id
this
.
user
.
user_name
=
userInfo
.
name
this
.
user
.
user_id
=
userInfo
.
userId
=======
console
.
log
(
this
.
$store
.
state
.
admin
.
user
.
info
);
console
.
log
(
this
.
$store
.
state
.
admin
.
user
.
info
);
let
userInfo
=
this
.
$store
.
state
.
admin
.
user
.
info
;
let
userInfo
=
this
.
$store
.
state
.
admin
.
user
.
info
;
this
.
user
.
cardno
=
userInfo
.
cardNo
;
this
.
user
.
cardno
=
userInfo
.
cardNo
;
this
.
user
.
user_name
=
userInfo
.
name
;
this
.
user
.
user_name
=
userInfo
.
name
;
this
.
user
.
user_id
=
userInfo
.
id
;
this
.
user
.
user_id
=
userInfo
.
id
;
>>>>>>>
product
}
else
{
}
else
{
this
.
user
.
cardno
=
""
;
this
.
user
.
cardno
=
""
;
}
}
...
...
pages/mordent/dispose/index.vue
View file @
295002b2
...
@@ -383,16 +383,10 @@ export default {
...
@@ -383,16 +383,10 @@ export default {
service
service
.
post
(
.
post
(
<<<<<<<
HEAD
`
${
url
}
`
,{
routingQcCard
:
this
.
cardModeldata
})
=======
`
${
url
}
`
,{
`
${
url
}
`
,{
routingQcCard
:
this
.
cardModeldata
routingQcCard
:
this
.
cardModeldata
}
}
)
)
>>>>>>>
product
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
if
(
response
.
success
)
{
if
(
response
.
success
)
{
this
.
$Message
.
success
(
'保存成功'
)
this
.
$Message
.
success
(
'保存成功'
)
...
...
pages/processDesign/ChangeSingle/technicalcoordination/index.vue
View file @
295002b2
...
@@ -473,11 +473,7 @@ export default {
...
@@ -473,11 +473,7 @@ export default {
this
.
formdata
.
compilation_temporary_process
=
""
;
this
.
formdata
.
compilation_temporary_process
=
""
;
this
.
formdata
.
inspection_date
=
""
;
this
.
formdata
.
inspection_date
=
""
;
this
.
formdata
.
inspection_person_name
=
this
.
$store
.
state
.
userInfo
.
userName
;
this
.
formdata
.
inspection_person_name
=
this
.
$store
.
state
.
userInfo
.
userName
;
<<<<<<<
HEAD
this
.
formdata
.
status
=
1
;
=======
this
.
formdata
.
status
=
this
.
wfstatu
;
this
.
formdata
.
status
=
this
.
wfstatu
;
>>>>>>>
product
this
.
formdata
.
note
=
""
;
this
.
formdata
.
note
=
""
;
var
url1
=
`
${
designUrl
}
/routingheader/GetCodeByType?code=JJXTD`
;
var
url1
=
`
${
designUrl
}
/routingheader/GetCodeByType?code=JJXTD`
;
...
...
pages/processDesign/ChangeSingle/unqualifiedorder/index.vue
View file @
295002b2
...
@@ -488,20 +488,6 @@ export default {
...
@@ -488,20 +488,6 @@ export default {
// 添加/编辑 弹框的保存
// 添加/编辑 弹框的保存
saveOk
()
{
saveOk
()
{
var
url
=
`
${
designUrl
}
/unqualifiedorder/createorupdate`
;
var
url
=
`
${
designUrl
}
/unqualifiedorder/createorupdate`
;
<<<<<<<
HEAD
service
.
post
(
`
${
url
}
`
,
{
unqualifiedOrder
:
this
.
formdata
})
.
then
(
res
=>
{
console
.
log
(
res
);
if
(
res
.
success
)
{
let
itemId
=
res
.
result
.
id
;
this
.
dataListRetrunNew
.
idList
.
push
(
itemId
);
this
.
loadchangelist
();
this
.
$Message
.
success
(
"保存成功"
);
this
.
show
=
false
;
}
});
=======
service
.
post
(
`
${
url
}
`
,
{
unqualifiedOrder
:
this
.
formdata
}).
then
(
res
=>
{
service
.
post
(
`
${
url
}
`
,
{
unqualifiedOrder
:
this
.
formdata
}).
then
(
res
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
if
(
res
.
success
)
{
if
(
res
.
success
)
{
...
@@ -512,7 +498,6 @@ export default {
...
@@ -512,7 +498,6 @@ export default {
this
.
show
=
false
;
this
.
show
=
false
;
}
}
});
});
>>>>>>>
product
// 如果选择送审,则打开送审页面
// 如果选择送审,则打开送审页面
if
(
this
.
submitShow
&&
this
.
checked
==
true
)
{
if
(
this
.
submitShow
&&
this
.
checked
==
true
)
{
this
.
$refs
.
orderSendReview
.
intData
(
this
.
formdata
);
this
.
$refs
.
orderSendReview
.
intData
(
this
.
formdata
);
...
...
pages/processDesign/Process/index.vue
View file @
295002b2
...
@@ -677,22 +677,12 @@ export default {
...
@@ -677,22 +677,12 @@ export default {
return
;
return
;
}
}
if
(
a
.
formValidate
.
code
!=
null
)
{
if
(
a
.
formValidate
.
code
!=
null
)
{
<<<<<<<
HEAD
var
url
=
`
${
designUrl
}
/routingheader/createorupdate`
service
.
post
(
`
${
url
}
`
,{
routingHeaderEntity
:
a
.
formValidate
,
FileList
:
filelist
})
=======
var
url
=
`
${
designUrl
}
/routingheader/createorupdate`
;
var
url
=
`
${
designUrl
}
/routingheader/createorupdate`
;
service
service
.
post
(
`
${
url
}
`
,
{
.
post
(
`
${
url
}
`
,
{
routingHeaderEntity
:
a
.
formValidate
,
routingHeaderEntity
:
a
.
formValidate
,
FileList
:
filelist
,
FileList
:
filelist
,
})
})
>>>>>>>
product
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
if
(
response
.
success
)
{
if
(
response
.
success
)
{
if
(
!
next
)
{
if
(
!
next
)
{
...
...
pages/processDesign/Process/routingchangeorder.vue
View file @
295002b2
...
@@ -361,165 +361,6 @@ export default {
...
@@ -361,165 +361,6 @@ export default {
previousStep
()
{
previousStep
()
{
this
.
modalShow
=
false
;
this
.
modalShow
=
false
;
},
},
<<<<<<<
HEAD
modalOk
()
{
// let url = `${designUrl}/routingheaderchangeorder/getpaged1`
// service
// .get(`${url}`, {changeorder_code: "JSWJGGD_20200219_15", pageindex:1,pageSize:10 })
// .then((res) => {
// console.log(res)
// this.$refs.changeSendReview.info.changeInfo = res.result.items[0];
// this.$refs.changeSendReview.changeorder_code = "JSWJGGD_20200219_15";
// })
// this.$refs.changeSendReview.modalInfo = true;
var
url
=
`
${
designUrl
}
/routingheaderchangeorder/createorupdate`
;
if
(
this
.
flag
==
0
)
{
let
paramsdata
=
{
"id"
:
""
,
"changeorder_code"
:
this
.
changeorder_code
,
"routing_header_Id"
:
this
.
routing_header_Id
,
"propose_user_name"
:
this
.
formValidate
.
propose_user_name
,
"department_name"
:
this
.
formValidate
.
department_name
,
"technical_name"
:
this
.
formValidate
.
technical_name
,
"technical_code"
:
this
.
formValidate
.
technical_code
,
"changed_version"
:
this
.
formValidate
.
changed_version
,
"quantity"
:
this
.
formValidate
.
quantity
,
"print_data"
:
this
.
formValidate
.
print_data
,
"executive_branch"
:
this
.
formValidate
.
executive_branch
,
"handling_opinions"
:
this
.
formValidate
.
handling_opinions
,
"before_change_content"
:
this
.
formValidate
.
before_change_content
,
"after_change_content"
:
this
.
formValidate
.
after_change_content
,
"change_reason"
:
this
.
formValidate
.
change_reason
,
"effective_date"
:
this
.
formValidate
.
effective_date
,
// "class_id": 0,
// "propose_user_id": 0,
// "department_id": 0,
// "executive_branch_id": 0,
// "handling_opinions_id": 0,
};
console
.
log
(
paramsdata
);
service
.
post
(
`
${
url
}
`
,
{
routingHeaderChangeorder
:
paramsdata
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$Message
.
success
(
'新增成功'
)
this
.
modelChange
=
false
;
if
(
this
.
checked
==
true
){
let
url
=
`
${
designUrl
}
/routingheaderchangeorder/getpaged1`
service
.
get
(
`
${
url
}
`
,
{
changeorder_code
:
this
.
changeorder_code
,
pageindex
:
1
,
pageSize
:
10
})
.
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
$refs
.
changeSendReview
.
info
.
changeInfo
=
res
.
result
.
items
[
0
];
this
.
$refs
.
changeSendReview
.
changeorder_code
=
this
.
changeorder_code
;
})
this
.
$refs
.
changeSendReview
.
modalInfo
=
true
;
}
}
});
}
else
{
let
paramsdata
=
{
"id"
:
this
.
formValidate
.
id
,
"changeorder_code"
:
this
.
changeorder_code
,
"routing_header_Id"
:
this
.
routing_header_Id
,
"propose_user_name"
:
this
.
formValidate
.
propose_user_name
,
"department_name"
:
this
.
formValidate
.
department_name
,
"technical_name"
:
this
.
formValidate
.
technical_name
,
"technical_code"
:
this
.
formValidate
.
technical_code
,
"changed_version"
:
this
.
formValidate
.
changed_version
,
"quantity"
:
this
.
formValidate
.
quantity
,
"print_data"
:
this
.
formValidate
.
print_data
,
"executive_branch"
:
this
.
formValidate
.
executive_branch
,
"handling_opinions"
:
this
.
formValidate
.
handling_opinions
,
"before_change_content"
:
this
.
formValidate
.
before_change_content
,
"after_change_content"
:
this
.
formValidate
.
after_change_content
,
"change_reason"
:
this
.
formValidate
.
change_reason
,
"effective_date"
:
this
.
formValidate
.
effective_date
,
"status"
:
this
.
formValidate
.
status
,
"note"
:
this
.
formValidate
.
note
,
// "class_id": 0,
// "propose_user_id": 0,
// "department_id": 0,
// "executive_branch_id": 0,
// "handling_opinions_id": 0,
};
console
.
log
(
paramsdata
);
service
.
post
(
`
${
url
}
`
,
{
routingHeaderChangeorder
:
paramsdata
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$Message
.
success
(
'编辑成功'
)
this
.
modelChange
=
false
;
this
.
$emit
(
'getMessage'
);
if
(
this
.
checked
==
true
){
let
url
=
`
${
designUrl
}
/routingheaderchangeorder/getpaged1`
service
.
get
(
`
${
url
}
`
,
{
changeorder_code
:
this
.
changeorder_code
,
pageindex
:
1
,
pageSize
:
10
})
.
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
$refs
.
changeSendReview
.
info
.
changeInfo
=
res
.
result
.
items
[
0
];
this
.
$refs
.
changeSendReview
.
changeorder_code
=
this
.
changeorder_code
;
})
this
.
$refs
.
changeSendReview
.
modalInfo
=
true
;
}
// let url = `${designUrl}/routingheaderchangeorder/getpaged1`
// service
// .get(`${url}`, {changeorder_code: this.changeorder_code, pageindex:1,pageSize:10 })
// .then((res) => {
// console.log(res)
// this.data3 = res.result.items
// console.log(this.data3[0].id)
// let url = `${workflowUrl}/instance/start`
// service
// .post(
// `${url}`,
// {
// idList: [this.data3[0].id],
// schemaId: 'd0cdafe3-2341-4499-a4f5-278ef0f30740',
// operatorIdList: this.userlist,
// data: {},
// userId: 0
// }
// )
// .then((response) => {
// if (response.success) {
// console.log(response)
// }
// })
// })
}
});
}
},
upSave
()
{
// Api.start(this.formExamine.approveUser).then((r) => {
// // this.results = r.result
// })
// let url = `${designUrl}/routingheaderchangeorder/getpaged1`
// service
// .get(`${url}`, {changeorder_code: this.changeorder_code, pageindex:1,pageSize:10 })
// .then((res) => {
// console.log(res)
// this.data3 = res.result.items
// console.log(this.data3[0].id)
// let url = `${workflowUrl}/instance/start`
// service
// .post(
// `${url}`,
// {
// idList: [this.data3[0].id],
// schemaId: 'd0cdafe3-2341-4499-a4f5-278ef0f30740',
// operatorIdList: this.userlist,
// data: {},
// userId: 0
// }
// )
// .then((response) => {
// if (response.success) {
// console.log(response)
// }
// })
// })
=======
modalOk
()
{
modalOk
()
{
// let url = `${designUrl}/routingheaderchangeorder/getpaged1`
// let url = `${designUrl}/routingheaderchangeorder/getpaged1`
// service
// service
...
@@ -688,7 +529,6 @@ export default {
...
@@ -688,7 +529,6 @@ export default {
// }
// }
// })
// })
// })
// })
>>>>>>>
product
},
},
saveCancelModel
()
{
saveCancelModel
()
{
this
.
modelChange
=
false
;
this
.
modelChange
=
false
;
...
...
pages/processManage/Process/index.vue
View file @
295002b2
...
@@ -662,11 +662,7 @@ export default {
...
@@ -662,11 +662,7 @@ export default {
return
;
return
;
}
}
if
(
a
.
formValidate
.
code
!=
null
)
{
if
(
a
.
formValidate
.
code
!=
null
)
{
<<<<<<<
HEAD
var
url
=
`
${
designUrl
}
/routingheader/createorupdate`
=======
var
url
=
`
${
designUrl
}
/routingheader/createorupdate`
;
var
url
=
`
${
designUrl
}
/routingheader/createorupdate`
;
>>>>>>>
product
service
service
.
post
(
`
${
url
}
`
,
{
.
post
(
`
${
url
}
`
,
{
routingHeaderEntity
:
a
.
formValidate
,
routingHeaderEntity
:
a
.
formValidate
,
...
...
pages/processManage/setProcess/components/orderMaterial.vue
View file @
295002b2
...
@@ -546,23 +546,12 @@ export default {
...
@@ -546,23 +546,12 @@ export default {
this
.
formValidate
.
ordercodes
=
mesCodes
.
toString
(
","
);
this
.
formValidate
.
ordercodes
=
mesCodes
.
toString
(
","
);
service
service
<<<<<<<
HEAD
.
post
(
`
${
url
}
`
,{
orderMaterial
:
this
.
formValidate
,
orderMaterialList
:
this
.
formValidate1
}
)
.
then
((
response
)
=>
{
let
itemId
=
response
.
result
.
orderMaterial
.
id
=======
.
post
(
`
${
url
}
`
,
{
.
post
(
`
${
url
}
`
,
{
orderMaterial
:
this
.
formValidate
,
orderMaterial
:
this
.
formValidate
,
orderMaterialList
:
this
.
formValidate1
orderMaterialList
:
this
.
formValidate1
})
})
.
then
(
response
=>
{
.
then
(
response
=>
{
let
itemId
=
response
.
result
.
orderMaterial
.
id
;
let
itemId
=
response
.
result
.
orderMaterial
.
id
;
>>>>>>>
product
// let idIteme = this.$parent.$parent.dataListRetrunNew.idList
// let idIteme = this.$parent.$parent.dataListRetrunNew.idList
// if(idIteme == []){
// if(idIteme == []){
// idIteme.push(itemId)
// idIteme.push(itemId)
...
...
pages/processManage/setProcess/index.vue
View file @
295002b2
...
@@ -1093,13 +1093,8 @@ export default {
...
@@ -1093,13 +1093,8 @@ export default {
}
}
if
(
a
.
formValidate
.
code
!=
null
)
{
if
(
a
.
formValidate
.
code
!=
null
)
{
<<<<<<<
HEAD
let
orders
=
a
.
dataTop
var
url
=
`
${
designUrl
}
/routingheader/createorupdate`
=======
let
orders
=
a
.
dataTop
;
let
orders
=
a
.
dataTop
;
var
url
=
`
${
designUrl
}
/routingheader/createorupdate`
;
var
url
=
`
${
designUrl
}
/routingheader/createorupdate`
;
>>>>>>>
product
service
service
.
post
(
`
${
url
}
`
,
{
.
post
(
`
${
url
}
`
,
{
routingHeaderEntity
:
a
.
formValidate
,
routingHeaderEntity
:
a
.
formValidate
,
...
@@ -1215,11 +1210,7 @@ export default {
...
@@ -1215,11 +1210,7 @@ export default {
platesnum
:
this
.
addpdefm
.
formValidate
.
platesnum
,
platesnum
:
this
.
addpdefm
.
formValidate
.
platesnum
,
};
};
<<<<<<<
HEAD
var
url
=
`
${
designUrl
}
/orderrouting/createorupdate`
=======
var
url
=
`
${
designUrl
}
/orderrouting/createorupdate`
;
var
url
=
`
${
designUrl
}
/orderrouting/createorupdate`
;
>>>>>>>
product
service
service
.
post
(
`
${
url
}
`
,
{
.
post
(
`
${
url
}
`
,
{
orderRouting
:
orderRoutingobj
,
orderRouting
:
orderRoutingobj
,
...
@@ -1287,11 +1278,7 @@ export default {
...
@@ -1287,11 +1278,7 @@ export default {
},
},
saveOK
()
{
saveOK
()
{
<<<<<<<
HEAD
var
url
=
`
${
PlanUrl
}
/OrderMaterial/createorupdate`
=======
var
url
=
`
${
PlanUrl
}
/OrderMaterial/createorupdate`
;
var
url
=
`
${
PlanUrl
}
/OrderMaterial/createorupdate`
;
>>>>>>>
product
service
service
.
post
(
`
${
url
}
`
,
{
orderMaterial
:
this
.
formValidate
})
.
post
(
`
${
url
}
`
,
{
orderMaterial
:
this
.
formValidate
})
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
...
...
pages/qcimplement/components/backCheck.vue
View file @
295002b2
...
@@ -118,17 +118,6 @@ export default {
...
@@ -118,17 +118,6 @@ export default {
this
.
mod
.
routingHeaderId
=
entryModel
.
routingHeaderId
;
this
.
mod
.
routingHeaderId
=
entryModel
.
routingHeaderId
;
this
.
mod
.
routingDetailId
=
entryModel
.
routingDetailId
;
this
.
mod
.
routingDetailId
=
entryModel
.
routingDetailId
;
<<<<<<<
HEAD
this
.
mod
.
checkName
=
this
.
$store
.
state
.
userInfo
.
userName
this
.
mod
.
check_Status
=
3
this
.
product_code
=
''
this
.
board_code
=
''
this
.
isCurrentUser
=
false
this
.
isMain
=
entryModel
.
isMain
this
.
product_ID
=
[]
this
.
board_ID
=
[]
this
.
productisabled
=
fillModel
.
productisabled
=======
this
.
mod
.
checkName
=
this
.
$store
.
state
.
userInfo
.
userName
;
this
.
mod
.
checkName
=
this
.
$store
.
state
.
userInfo
.
userName
;
this
.
mod
.
check_Status
=
3
;
this
.
mod
.
check_Status
=
3
;
this
.
product_code
=
""
;
this
.
product_code
=
""
;
...
@@ -138,7 +127,6 @@ export default {
...
@@ -138,7 +127,6 @@ export default {
this
.
product_ID
=
[];
this
.
product_ID
=
[];
this
.
board_ID
=
[];
this
.
board_ID
=
[];
this
.
productisabled
=
fillModel
.
productisabled
;
this
.
productisabled
=
fillModel
.
productisabled
;
>>>>>>>
product
this
.
product_ID
.
push
(
fillModel
.
product_ID
);
this
.
product_ID
.
push
(
fillModel
.
product_ID
);
this
.
board_ID
.
push
(
fillModel
.
board_ID
);
this
.
board_ID
.
push
(
fillModel
.
board_ID
);
...
...
pages/resource/Store/add.vue
View file @
295002b2
...
@@ -88,20 +88,6 @@ export default {
...
@@ -88,20 +88,6 @@ export default {
description
:
this
.
entity
.
description02
,
//位置
description
:
this
.
entity
.
description02
,
//位置
levels
:
0
,
levels
:
0
,
user_name
:
userNam
,
//库管员
user_name
:
userNam
,
//库管员
<<<<<<<
HEAD
user_ids
:
this
.
entity
.
user_ids
.
join
(
','
)
//库管员id
}
console
.
log
(
paramsdata
)
Api
.
create
({
storeroomLocation
:
paramsdata
}).
then
(
(
r
)
=>
{
this
.
disabled
=
false
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'保存成功'
)
this
.
$emit
(
'on-ok'
)
}
else
{
this
.
$Message
.
error
(
'保存失败'
)
}
=======
user_ids
:
this
.
entity
.
user_ids
.
join
(
","
),
//库管员id
user_ids
:
this
.
entity
.
user_ids
.
join
(
","
),
//库管员id
};
};
console
.
log
(
paramsdata
);
console
.
log
(
paramsdata
);
...
@@ -111,7 +97,6 @@ export default {
...
@@ -111,7 +97,6 @@ export default {
this
.
$emit
(
"on-ok"
);
this
.
$emit
(
"on-ok"
);
}
else
{
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
this
.
$Message
.
error
(
"保存失败"
);
>>>>>>>
product
}
}
});
});
},
},
...
...
pages/resource/resource/return.vue
View file @
295002b2
...
@@ -119,10 +119,6 @@ export default {
...
@@ -119,10 +119,6 @@ export default {
},
},
resource
:
[],
resource
:
[],
selectList
:
[],
selectList
:
[],
<<<<<<<
HEAD
libraryTube
:
this
.
$store
.
state
.
userInfo
.
userName
//库管员
}
=======
libraryTube
:
this
.
$store
.
state
.
userInfo
.
userName
,
//库管员
libraryTube
:
this
.
$store
.
state
.
userInfo
.
userName
,
//库管员
};
};
},
},
...
@@ -132,7 +128,6 @@ export default {
...
@@ -132,7 +128,6 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
get
();
this
.
get
();
>>>>>>>
product
},
},
methods
:
{
methods
:
{
get
(
name
)
{
get
(
name
)
{
...
...
pages/resourceManagement/EquipmentCalendar/components/newEquipment.vue
View file @
295002b2
...
@@ -38,11 +38,7 @@
...
@@ -38,11 +38,7 @@
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<!-- class="footers" -->
<!-- class="footers" -->
<Button
@
click=
"close"
>
取消
</Button>
<Button
@
click=
"close"
>
取消
</Button>
<<<<<<<
HEAD
<Button
@
click=
"saveOk"
type=
"primary"
>
保存
</Button>
=======
<Button
@
click=
"saveOk"
type=
"primary"
v-noClick
>
保存
</Button>
<Button
@
click=
"saveOk"
type=
"primary"
v-noClick
>
保存
</Button>
>>>>>>> product
</div>
</div>
</Modal>
</Modal>
<Department
<Department
...
@@ -139,15 +135,9 @@ export default {
...
@@ -139,15 +135,9 @@ export default {
// 添加/编辑 弹框的保存
// 添加/编辑 弹框的保存
saveOk
()
{
saveOk
()
{
var
url
=
`
${
systemUrl
}
/equipcalendarwork/createorupdate`
var
url
=
`
${
systemUrl
}
/equipcalendarwork/createorupdate`
<<<<<<<
HEAD
console
.
log
(
this
.
formItem1
)
console
.
log
(
this
.
formItem2
)
console
.
log
(
this
.
editId
)
=======
// console.log(this.formItem1)
// console.log(this.formItem1)
// console.log(this.formItem2)
// console.log(this.formItem2)
// console.log(this.editId)
// console.log(this.editId)
>>>>>>>
product
service
.
post
(
`
${
url
}
`
,{
equipCalendarWork
:
this
.
formItem1
,
equipCalendarOverTime
:
this
.
formItem2
})
service
.
post
(
`
${
url
}
`
,{
equipCalendarWork
:
this
.
formItem1
,
equipCalendarOverTime
:
this
.
formItem2
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
...
...
pages/resourceManagement/deviceManagement/components/newEquipment.vue
View file @
295002b2
...
@@ -154,90 +154,6 @@ export default {
...
@@ -154,90 +154,6 @@ export default {
close
()
{
close
()
{
this
.
modalShow
=
false
;
this
.
modalShow
=
false
;
},
},
<<<<<<<
HEAD
// 添加/编辑 弹框的保存
saveOk
(){
if
(
!
this
.
formItem
.
equip_id
)
{
this
.
$Message
.
error
(
'设备编号不能为空!'
)
return
}
if
(
!
this
.
formItem
.
shop_name
)
{
this
.
$Message
.
error
(
'所属部门不能为空!'
)
return
}
let
saveId
=
this
.
editId
,
url
=
`
${
systemUrl
}
/equipinfo/createorupdate`
;
// console.log(saveId);
if
(
!
saveId
){
saveId
==
""
}
if
(
this
.
title
==
'编辑设备'
){
//this.$Message.success(saveId);
// if(this.formItem.selectName){
let
arr
=
this
.
formItem
.
equip_type
;
let
str
=
arr
.
join
(
','
);
let
url
=
`
${
systemUrl
}
/equipinfo/createorupdate`
;
var
ar1
=
this
.
data1
.
find
((
val
)
=>
{
if
(
val
.
id
!=
saveId
)
return
val
.
equip_id
==
this
.
formItem
.
equip_id
})
if
(
ar1
)
{
this
.
$Message
.
error
(
'设备编号已存在!'
);
return
}
let
paramsdata
=
{
"id"
:
saveId
,
"equip_id"
:
this
.
formItem
.
equip_id
,
"equip_name"
:
this
.
formItem
.
equip_name
,
"equip_status"
:
this
.
formItem
.
equip_status
,
"equip_pic"
:
this
.
formItem
.
equip_pic
,
"equip_ip"
:
this
.
formItem
.
equip_ip
,
"shop_id"
:
this
.
formItem
.
shop_id
,
"eqstyle"
:
str
,
};
// console.log(paramsdata);
service
.
post
(
`
${
url
}
`
,
{
equipInfo
:
paramsdata
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$emit
(
'getMessage'
);
this
.
modalShow
=
false
;
this
.
$Message
.
success
(
'编辑成功'
);
}
});
// }
}
if
(
this
.
title
==
'新增设备'
){
let
arr
=
this
.
formItem
.
equip_type
;
let
str
=
arr
.
join
(
','
);
//console.log(str);
let
url
=
`
${
systemUrl
}
/equipinfo/createorupdate`
;
var
ar
=
this
.
data1
.
find
((
val
)
=>
{
return
val
.
equip_id
==
this
.
formItem
.
equip_id
})
if
(
ar
)
{
this
.
$Message
.
error
(
'设备编号已存在!'
);
return
}
let
paramsdata
=
{
"id"
:
this
.
saveId
,
"equip_id"
:
this
.
formItem
.
equip_id
,
"equip_name"
:
this
.
formItem
.
equip_name
,
"equip_status"
:
this
.
formItem
.
equip_status
,
"equip_pic"
:
this
.
formItem
.
equip_pic
,
"equip_ip"
:
this
.
formItem
.
equip_ip
,
"shop_id"
:
this
.
formItem
.
shop_id
,
"eqstyle"
:
str
,
};
//console.log(this.formItem.equip_type);
service
.
post
(
`
${
url
}
`
,
{
equipInfo
:
paramsdata
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$emit
(
'getMessage'
);
this
.
modalShow
=
false
;
this
.
$Message
.
success
(
'新增成功'
)
}
});
}
},
}
}
=======
// 添加/编辑 弹框的保存
// 添加/编辑 弹框的保存
saveOk
()
{
saveOk
()
{
if
(
!
this
.
formItem
.
equip_id
)
{
if
(
!
this
.
formItem
.
equip_id
)
{
...
@@ -321,7 +237,6 @@ export default {
...
@@ -321,7 +237,6 @@ export default {
},
},
},
},
};
};
>>>>>>>
product
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
...
...
pages/resourceManagement/deviceManagementCP/components/newEquipment.vue
View file @
295002b2
...
@@ -77,11 +77,7 @@
...
@@ -77,11 +77,7 @@
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<!-- class="footers" -->
<!-- class="footers" -->
<Button
@
click=
"close"
>
取消
</Button>
<Button
@
click=
"close"
>
取消
</Button>
<<<<<<<
HEAD
<Button
@
click=
"saveOk"
type=
"primary"
>
保存
</Button>
=======
<Button
@
click=
"saveOk"
type=
"primary"
v-noClick
>
保存
</Button>
<Button
@
click=
"saveOk"
type=
"primary"
v-noClick
>
保存
</Button>
>>>>>>> product
</div>
</div>
</Modal>
</Modal>
<Department
<Department
...
@@ -186,97 +182,6 @@ export default {
...
@@ -186,97 +182,6 @@ export default {
close
()
{
close
()
{
this
.
modalShow
=
false
;
this
.
modalShow
=
false
;
},
},
<<<<<<<
HEAD
// 添加/编辑 弹框的保存
saveOk
(){
if
(
!
this
.
formItem
.
equip_id
)
{
this
.
$Message
.
error
(
'设备编号不能为空!'
)
return
}
if
(
!
this
.
formItem
.
shop_name
)
{
this
.
$Message
.
error
(
'所属部门不能为空!'
)
return
}
let
saveId
=
this
.
editId
,
url
=
`
${
systemUrl
}
/equipinfo/createorupdate`
;
// console.log(saveId);
if
(
!
saveId
){
saveId
==
""
}
if
(
this
.
title
==
'编辑设备'
){
//this.$Message.success(saveId);
// if(this.formItem.selectName){
let
arr
=
this
.
formItem
.
equip_type
;
let
str
=
arr
.
join
(
','
);
let
url
=
`
${
systemUrl
}
/equipinfo/createorupdate`
;
var
ar1
=
this
.
data1
.
find
((
val
)
=>
{
if
(
val
.
id
!=
saveId
)
return
val
.
equip_id
==
this
.
formItem
.
equip_id
})
if
(
ar1
)
{
this
.
$Message
.
error
(
'设备编号已存在!'
);
return
}
let
paramsdata
=
{
"id"
:
saveId
,
"equip_id"
:
this
.
formItem
.
equip_id
,
"equip_name"
:
this
.
formItem
.
equip_name
,
"equip_status"
:
this
.
formItem
.
equip_status
,
"equip_pic"
:
this
.
formItem
.
equip_pic
,
"equip_ip"
:
this
.
formItem
.
equip_ip
,
"shop_id"
:
this
.
formItem
.
shop_id
,
"eqstyle"
:
str
,
"isimportant"
:
this
.
isimportant
,
"location"
:
this
.
formItem
.
location
,
"capability_value"
:
this
.
formItem
.
capability_value
,
};
// console.log(paramsdata);
service
.
post
(
`
${
url
}
`
,
{
equipInfo
:
paramsdata
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$emit
(
'getMessage'
);
this
.
modalShow
=
false
;
this
.
$Message
.
success
(
'编辑成功'
);
}
});
// }
}
if
(
this
.
title
==
'新增设备'
){
let
arr
=
this
.
formItem
.
equip_type
;
let
str
=
arr
.
join
(
','
);
//console.log(str);
let
url
=
`
${
systemUrl
}
/equipinfo/createorupdate`
;
var
ar
=
this
.
data1
.
find
((
val
)
=>
{
return
val
.
equip_id
==
this
.
formItem
.
equip_id
})
if
(
ar
)
{
this
.
$Message
.
error
(
'设备编号已存在!'
);
return
}
let
paramsdata
=
{
"id"
:
this
.
saveId
,
"equip_id"
:
this
.
formItem
.
equip_id
,
"equip_name"
:
this
.
formItem
.
equip_name
,
"equip_status"
:
this
.
formItem
.
equip_status
,
"equip_pic"
:
this
.
formItem
.
equip_pic
,
"equip_ip"
:
this
.
formItem
.
equip_ip
,
"shop_id"
:
this
.
formItem
.
shop_id
,
"eqstyle"
:
str
,
"isimportant"
:
this
.
isimportant
,
"location"
:
this
.
formItem
.
location
,
"capability_value"
:
this
.
formItem
.
capability_value
,
};
//console.log(this.formItem.equip_type);
service
.
post
(
`
${
url
}
`
,
{
equipInfo
:
paramsdata
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$emit
(
'getMessage'
);
this
.
modalShow
=
false
;
this
.
$Message
.
success
(
'新增成功'
)
}
});
}
},
}
}
=======
// 添加/编辑 弹框的保存
// 添加/编辑 弹框的保存
saveOk
()
{
saveOk
()
{
if
(
!
this
.
formItem
.
equip_id
)
{
if
(
!
this
.
formItem
.
equip_id
)
{
...
@@ -395,7 +300,6 @@ export default {
...
@@ -395,7 +300,6 @@ export default {
},
},
},
},
};
};
>>>>>>>
product
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
...
...
pages/resourceManagement/deviceManagementCP/index.vue
View file @
295002b2
...
@@ -904,23 +904,6 @@ export default {
...
@@ -904,23 +904,6 @@ export default {
equip_down_type
:
this
.
formItemMain
.
equip_down_type
,
equip_down_type
:
this
.
formItemMain
.
equip_down_type
,
plan_start
:
this
.
formItemMain
.
plan_start
,
plan_start
:
this
.
formItemMain
.
plan_start
,
plan_finish
:
this
.
formItemMain
.
plan_finish
,
plan_finish
:
this
.
formItemMain
.
plan_finish
,
<<<<<<<
HEAD
maintain_type
:
'1'
}
console
.
log
(
paramsdata
)
service
.
post
(
`
${
url
}
`
,
{
equipMaintainPlan
:
paramsdata
})
.
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
changestatus
(
this
.
eid
)
this
.
show
=
false
setTimeout
(()
=>
{
this
.
laodaction
()
},
1000
)
this
.
$Message
.
success
(
'新增成功'
)
}
})
=======
maintain_type
:
"1"
,
maintain_type
:
"1"
,
};
};
console
.
log
(
paramsdata
);
console
.
log
(
paramsdata
);
...
@@ -934,7 +917,6 @@ export default {
...
@@ -934,7 +917,6 @@ export default {
this
.
$Message
.
success
(
"新增成功"
);
this
.
$Message
.
success
(
"新增成功"
);
}
}
});
});
>>>>>>>
product
},
},
downFile
(
path
)
{
downFile
(
path
)
{
console
.
log
(
path
);
console
.
log
(
path
);
...
@@ -961,24 +943,6 @@ export default {
...
@@ -961,24 +943,6 @@ export default {
equip_pk
:
this
.
eid
,
equip_pk
:
this
.
eid
,
notes
:
this
.
formItemMain
.
notes
,
notes
:
this
.
formItemMain
.
notes
,
input_time
:
this
.
formItemMain
.
input_time
,
input_time
:
this
.
formItemMain
.
input_time
,
<<<<<<<
HEAD
equip_down_type
:
'设备故障'
,
maintain_type
:
'2'
}
console
.
log
(
paramsdata
)
service
.
post
(
`
${
url
}
`
,
{
equipMaintainPlan
:
paramsdata
})
.
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
changestatus
(
this
.
eid
)
this
.
show
=
false
setTimeout
(()
=>
{
this
.
laodaction
()
},
1000
)
this
.
$Message
.
success
(
'新增成功'
)
}
})
=======
equip_down_type
:
"设备故障"
,
equip_down_type
:
"设备故障"
,
maintain_type
:
"2"
,
maintain_type
:
"2"
,
};
};
...
@@ -993,7 +957,6 @@ export default {
...
@@ -993,7 +957,6 @@ export default {
this
.
$Message
.
success
(
"新增成功"
);
this
.
$Message
.
success
(
"新增成功"
);
}
}
});
});
>>>>>>>
product
},
},
edit
(
data
)
{
edit
(
data
)
{
// this.$refs.equipment.$refs.refqcFile.newName = data.row.equip_pic;
// this.$refs.equipment.$refs.refqcFile.newName = data.row.equip_pic;
...
@@ -1128,25 +1091,6 @@ export default {
...
@@ -1128,25 +1091,6 @@ export default {
failure_notes
:
this
.
formItemMain1
.
failure_notes
,
failure_notes
:
this
.
formItemMain1
.
failure_notes
,
input_time
:
this
.
inputtime
,
input_time
:
this
.
inputtime
,
maintain_type
:
this
.
borw
,
maintain_type
:
this
.
borw
,
<<<<<<<
HEAD
status
:
this
.
formItemMain1
.
status
}
console
.
log
(
paramsdata
)
service
.
post
(
`
${
url
}
`
,
{
equipMaintainPlan
:
paramsdata
})
.
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
changestatus
(
this
.
eid
)
this
.
loadmain
(
this
.
eid
)
setTimeout
(()
=>
{
this
.
laodaction
()
},
1000
)
this
.
eid1
=
''
this
.
show4
=
false
this
.
$Message
.
success
(
'更新成功'
)
}
})
=======
status
:
this
.
formItemMain1
.
status
,
status
:
this
.
formItemMain1
.
status
,
};
};
console
.
log
(
paramsdata
);
console
.
log
(
paramsdata
);
...
@@ -1162,7 +1106,6 @@ export default {
...
@@ -1162,7 +1106,6 @@ export default {
this
.
$Message
.
success
(
"更新成功"
);
this
.
$Message
.
success
(
"更新成功"
);
}
}
});
});
>>>>>>>
product
},
},
selectTreeNode
(
value
)
{
selectTreeNode
(
value
)
{
if
(
value
!=
""
)
{
if
(
value
!=
""
)
{
...
...
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