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
869ad06e
Commit
869ad06e
authored
Aug 07, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of
http://git.mes123.com/zhouyx/mes-ui
into product
parents
7c454632
46e9df6b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
632 additions
and
88 deletions
+632
-88
zh-CN.js
i18n/locale/zh-CN.js
+65
-21
addAccessory.vue
pages/aps/plan/addAccessory.vue
+21
-51
api.js
pages/aps/plan/api.js
+4
-0
detailAccessory.vue
pages/aps/plan/detailAccessory.vue
+16
-11
editAccessory.vue
pages/aps/plan/editAccessory.vue
+521
-0
index.vue
pages/aps/plan/index.vue
+5
-5
No files found.
i18n/locale/zh-CN.js
View file @
869ad06e
...
@@ -359,8 +359,8 @@ export default {
...
@@ -359,8 +359,8 @@ export default {
productId
:
'产品id'
,
productId
:
'产品id'
,
productName
:
'产品名称'
,
productName
:
'产品名称'
,
quantity
:
'计划数量'
,
quantity
:
'计划数量'
,
productQuantity
:
'合格数量'
,
productQuantity
:
'合格数量'
,
qualifiedQuantity
:
'合格数量'
,
qualifiedQuantity
:
'合格数量'
,
actualFinishDate
:
'完成时间'
,
actualFinishDate
:
'完成时间'
,
productingPreparationPeople
:
'承制单位'
,
productingPreparationPeople
:
'承制单位'
,
uncertificateQuantity
:
'待开具数量'
,
uncertificateQuantity
:
'待开具数量'
,
...
@@ -1569,9 +1569,54 @@ export default {
...
@@ -1569,9 +1569,54 @@ export default {
unitPrice
:
'单价'
,
unitPrice
:
'单价'
,
originalManufacturer
:
'原厂家'
,
originalManufacturer
:
'原厂家'
,
remark
:
'备注'
,
remark
:
'备注'
,
materialCode
:
'物料编码'
,
materialCode
:
'物料编码'
,
},
},
stock_item
:{
stock_item
:
{
creationTime
:
'创建时间'
,
creatorUserId
:
'创建人'
,
lastModificationTime
:
'更新时间'
,
lastModifierUserId
:
'更新人'
,
isDeleted
:
'删除人'
,
deletionTime
:
'删除时间'
,
deleterUserId
:
'删除人'
,
name
:
'名称'
,
materialType
:
'类型'
,
brand
:
'牌号'
,
specifications
:
'规格'
,
originalManufacturer
:
'原厂家'
,
batch
:
'批次'
,
unitPrice
:
'单价'
,
certificateOfApproval
:
'合格证'
,
storeId
:
''
,
storeTitle
:
'库位'
,
creator
:
''
,
stockId
:
'物料库存主键'
,
total
:
'入库数量'
,
remark
:
'备注'
,
code
:
'入库编号'
,
materialId
:
'物料id'
,
materialCode
:
'物料编码'
,
nowTotal
:
'剩余数量'
,
},
support_main
:
{
creationTime
:
'创建时间'
,
creatorUserId
:
'创建人'
,
lastModificationTime
:
'更新时间'
,
lastModifierUserId
:
'更新人'
,
isDeleted
:
'删除人'
,
deletionTime
:
'删除时间'
,
deleterUserId
:
'删除人'
,
orderId
:
'订单id'
,
productName
:
'产品名称'
,
drawnNumber
:
'图号'
,
count
:
'订单数量'
,
creator
:
'申请人'
,
status
:
'状态'
,
finishDate
:
'齐套时间'
,
orderCode
:
'订单编号'
,
code
:
'申请单号'
,
},
support_item
:{
creationTime
:
'创建时间'
,
creationTime
:
'创建时间'
,
creatorUserId
:
'创建人'
,
creatorUserId
:
'创建人'
,
lastModificationTime
:
'更新时间'
,
lastModificationTime
:
'更新时间'
,
...
@@ -1579,23 +1624,22 @@ export default {
...
@@ -1579,23 +1624,22 @@ export default {
isDeleted
:
'删除人'
,
isDeleted
:
'删除人'
,
deletionTime
:
'删除时间'
,
deletionTime
:
'删除时间'
,
deleterUserId
:
'删除人'
,
deleterUserId
:
'删除人'
,
name
:
'名称'
,
supportMainId
:
'主表id'
,
materialType
:
'类型'
,
routingHeaderId
:
'工艺id'
,
brand
:
'牌号'
,
routingDeatilId
:
'工序id'
,
specifications
:
'规格'
,
routingDetailName
:
'工序'
,
originalManufacturer
:
'原厂家'
,
routingDetailSeq
:
'工序号'
,
batch
:
'批次'
,
routingDetailNo
:
'工序号'
,
unitPrice
:
'单价'
,
count
:
'申请数量'
,
certificateOfApproval
:
'合格证'
,
status
:
'状态'
,
storeId
:
''
,
storeTitle
:
'库位'
,
creator
:
''
,
stockId
:
'物料库存主键'
,
total
:
'入库数量'
,
remark
:
'备注'
,
code
:
'入库编号'
,
materialId
:
'物料id'
,
materialId
:
'物料id'
,
materialCode
:
'物料编码'
,
materialName
:
'物料名称'
,
nowTotal
:
'剩余数量'
,
nameMaterial
:
'物料名称'
,
materialNumber
:
'物料编号'
,
needCount
:
'需要数量'
,
totalCount
:
'需要数量'
,
outStockNumber
:
'出库数量'
,
orderId
:
''
,
remark
:
'备注'
,
}
}
}
}
pages/aps/plan/addAccessory.vue
View file @
869ad06e
...
@@ -23,14 +23,14 @@
...
@@ -23,14 +23,14 @@
>
>
<template
slot-scope=
"
{ row, index }" slot="counts">
<template
slot-scope=
"
{ row, index }" slot="counts">
<InputNumber
<InputNumber
:max=
"row.
materi
alCount"
:max=
"row.
tot
alCount"
:min=
"0"
:min=
"0"
v-model=
"row.count"
v-model=
"row.count"
@
on-blur=
"inputChange1(i,row,index)"
@
on-blur=
"inputChange1(i,row,index)"
/>
/>
</
template
>
</
template
>
<
template
slot-scope=
"{ row, index }"
slot=
"remarks"
>
<
template
slot-scope=
"{ row, index }"
slot=
"remarks"
>
<Input
type=
"text"
v-model=
"row.remark
s
"
@
on-blur=
"inputChange1(i,row,index)"
/>
<Input
type=
"text"
v-model=
"row.remark"
@
on-blur=
"inputChange1(i,row,index)"
/>
</
template
>
</
template
>
</Table>
</Table>
</div>
</div>
...
@@ -72,39 +72,39 @@ export default {
...
@@ -72,39 +72,39 @@ export default {
},
},
{
{
key
:
"routingDetailNo"
,
key
:
"routingDetailNo"
,
title
:
"工序号"
,
title
:
this
.
l
(
"routingDetailNo"
)
,
align
:
"left"
,
align
:
"left"
,
},
},
{
{
key
:
"routingDetailName"
,
key
:
"routingDetailName"
,
title
:
"工序"
,
title
:
this
.
l
(
"routingDetailName"
)
,
align
:
"left"
,
align
:
"left"
,
},
},
{
{
key
:
"nameMaterial"
,
key
:
"nameMaterial"
,
title
:
"物料名"
,
title
:
this
.
l
(
"nameMaterial"
)
,
align
:
"left"
,
align
:
"left"
,
},
},
{
{
key
:
"materialNumber"
,
key
:
"materialNumber"
,
title
:
"物料编号"
,
title
:
this
.
l
(
"materialNumber"
)
,
align
:
"left"
,
align
:
"left"
,
},
},
{
{
key
:
"
materi
alCount"
,
key
:
"
tot
alCount"
,
title
:
"需求数量"
,
title
:
this
.
l
(
"totalCount"
)
,
align
:
"left"
,
align
:
"left"
,
},
},
{
{
key
:
"count
s
"
,
key
:
"count"
,
title
:
"申请数量"
,
title
:
this
.
l
(
"count"
)
,
align
:
"right"
,
align
:
"right"
,
slot
:
"counts"
,
slot
:
"counts"
,
width
:
120
,
width
:
120
,
},
},
{
{
key
:
"remark
s
"
,
key
:
"remark"
,
title
:
"备注"
,
title
:
this
.
l
(
"remark"
)
,
align
:
"left"
,
align
:
"left"
,
slot
:
"remarks"
,
slot
:
"remarks"
,
},
},
...
@@ -155,14 +155,13 @@ export default {
...
@@ -155,14 +155,13 @@ export default {
r
.
result
.
forEach
((
e
)
=>
{
r
.
result
.
forEach
((
e
)
=>
{
let
i
=
0
;
let
i
=
0
;
e
.
suport
.
forEach
((
el
)
=>
{
e
.
suport
.
forEach
((
el
)
=>
{
el
.
count
=
el
.
materi
alCount
;
el
.
count
=
el
.
tot
alCount
;
el
.
_checked
=
true
;
el
.
_checked
=
true
;
el
.
_index
=
i
++
;
el
.
_index
=
i
++
;
//el._disabled=true
});
});
});
});
this
.
datas
=
r
.
result
;
this
.
datas
=
r
.
result
;
//----测试多个工艺start
//----测试多个工艺start
----
// let temre = this.$u.clone(r.result);
// let temre = this.$u.clone(r.result);
// temre.forEach((ele) => {
// temre.forEach((ele) => {
// ele.routingHeaderId = 281;
// ele.routingHeaderId = 281;
...
@@ -173,15 +172,10 @@ export default {
...
@@ -173,15 +172,10 @@ export default {
// });
// });
// });
// });
// this.datas = r.result.concat(temre);
// this.datas = r.result.concat(temre);
//----测试多个工艺end
//----测试多个工艺end
----
}
}
});
});
},
},
l
(
key
)
{
let
vkey
=
"plan_resource"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
},
getTimeQuotationFD
(
value
)
{
getTimeQuotationFD
(
value
)
{
this
.
orderForm
.
QuotationFinishDate
=
this
.
orderForm
.
QuotationFinishDate
=
value
!=
""
?
this
.
getFormatDateEnd
(
value
)
:
value
;
value
!=
""
?
this
.
getFormatDateEnd
(
value
)
:
value
;
...
@@ -222,44 +216,16 @@ export default {
...
@@ -222,44 +216,16 @@ export default {
this
.
$set
(
this
.
datas
[
v
].
suport
,
index
,
ele
);
this
.
$set
(
this
.
datas
[
v
].
suport
,
index
,
ele
);
});
});
}
}
// if (this.curArr.length == 0) {
// //取消全部时
// let temc = this.$u.clone(this.selectItems);
// let temb = this.delByHeadId(temc, v);
// this.selectItems = [];
// this.selectItems = temb;
// this.footerToolbar = this.selectItems.length > 0;
// //alert("this.selectAllCancel___" + JSON.stringify(this.selectItems));
// }
},
},
selectList
(
items
,
row
)
{
selectList
(
items
,
row
)
{
this
.
curArr
=
1
;
this
.
curArr
=
1
;
//this.selectItems.push(row);
// alert("this.selectItems___" + JSON.stringify(this.selectItems));
//this.footerToolbar = this.selectItems.length > 0;
this
.
cRow
=
row
;
this
.
cRow
=
row
;
},
},
selectListAll
(
items
)
{
selectListAll
(
items
)
{
this
.
curArr
=
2
;
this
.
curArr
=
2
;
// let tema = this.selectItems.concat(items);
// let temo = this.delSame(tema);
// this.selectItems = [];
// this.selectItems = temo;
//alert("this.selectListAlls___" + JSON.stringify(this.selectItems));
// this.footerToolbar = this.selectItems.length > 0;
},
},
selectListCancel
(
items
,
row
)
{
selectListCancel
(
items
,
row
)
{
this
.
curArr
=
3
;
this
.
curArr
=
3
;
// let tempSelectItems = this.$u.clone(this.selectItems);
//let delId = row.id;
// let arrs = this.delById(tempSelectItems, delId);
// this.selectItems = [];
// this.selectItems = arrs;
//alert("this.selectListCancel___" + JSON.stringify(this.selectItems));
//this.footerToolbar = this.selectItems.length > 0;
// this.$set(this.datas[i].suport, index, row);
this
.
cRow
=
row
;
this
.
cRow
=
row
;
},
},
selectAllCancel
(
items
)
{
selectAllCancel
(
items
)
{
...
@@ -317,7 +283,7 @@ export default {
...
@@ -317,7 +283,7 @@ export default {
materialId
:
ele
.
materialId
,
materialId
:
ele
.
materialId
,
materialName
:
ele
.
nameMaterial
,
materialName
:
ele
.
nameMaterial
,
materialNumber
:
ele
.
materialNumber
,
materialNumber
:
ele
.
materialNumber
,
needCount
:
ele
.
materi
alCount
,
needCount
:
ele
.
tot
alCount
,
count
:
ele
.
count
,
//
count
:
ele
.
count
,
//
remark
:
ele
.
remark
?
ele
.
remark
:
""
,
remark
:
ele
.
remark
?
ele
.
remark
:
""
,
};
};
...
@@ -343,7 +309,7 @@ export default {
...
@@ -343,7 +309,7 @@ export default {
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
$Message
.
success
(
"申请成功"
);
this
.
$Message
.
success
(
"申请成功"
);
//this.$emit("cancel");
//this.$emit("cancel");
this
.
$emit
(
'on-ok'
)
this
.
$emit
(
"on-ok"
);
}
}
});
});
}
}
...
@@ -359,6 +325,10 @@ export default {
...
@@ -359,6 +325,10 @@ export default {
});
});
this
.
footerToolbar
=
false
;
this
.
footerToolbar
=
false
;
},
},
l
(
key
)
{
let
vkey
=
"support_item"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
},
},
},
watch
:
{
watch
:
{
eid
(
v
)
{
eid
(
v
)
{
...
...
pages/aps/plan/api.js
View file @
869ad06e
...
@@ -53,5 +53,9 @@ export default {
...
@@ -53,5 +53,9 @@ export default {
batchdelete
(
params
){
//批量撤回
batchdelete
(
params
){
//批量撤回
return
Api
.
post
(
`
${
technologyUrl
}
supportitem/batchdelete`
,
params
);
return
Api
.
post
(
`
${
technologyUrl
}
supportitem/batchdelete`
,
params
);
},
},
matchdetaillist
(
params
){
//配套审核单列表
return
Api
.
get
(
`
${
technologyUrl
}
materiallist/matchdetaillist`
,
params
);
},
}
}
\ No newline at end of file
pages/aps/plan/detailAccessory.vue
View file @
869ad06e
...
@@ -19,13 +19,13 @@
...
@@ -19,13 +19,13 @@
</div>
</div>
</Content>
</Content>
<Sider
hide-trigger
style=
"background:#fff;color:black;"
width=
"300"
>
<Sider
hide-trigger
style=
"background:#fff;color:black;"
width=
"300"
>
<Collapse
value=
"1"
class=
"mt20"
style=
"position:fixed;width:260px"
>
<Collapse
value=
"1"
class=
"mt20
ml20
"
style=
"position:fixed;width:260px"
>
<Panel
name=
"1"
>
<Panel
name=
"1"
>
申请记录
申请记录
<div
slot=
"content"
class=
"pl
3
0 pb10 lh25"
>
<div
slot=
"content"
class=
"pl
2
0 pb10 lh25"
>
<p
v-for=
"(items,i) in datas"
:key=
"i"
>
<p
v-for=
"(items,i) in datas"
:key=
"i"
>
<a
:href=
"'#item'+i"
>
<a
:href=
"'#item'+i"
>
<span>
{{
items
.
applyTime
.
substring
(
0
,
10
)
}}
</span>
<span>
{{
items
.
applyTime
}}
</span>
<span
class=
"fr mr10"
>
{{
items
.
creator
}}
</span>
<span
class=
"fr mr10"
>
{{
items
.
creator
}}
</span>
</a>
</a>
</p>
</p>
...
@@ -50,39 +50,39 @@ export default {
...
@@ -50,39 +50,39 @@ export default {
cols
:
[
cols
:
[
{
{
key
:
"materialName"
,
key
:
"materialName"
,
title
:
"物料名"
,
title
:
this
.
l
(
"materialName"
)
,
align
:
"left"
,
align
:
"left"
,
},
},
{
{
key
:
"materialNumber"
,
key
:
"materialNumber"
,
title
:
"物料编号"
,
title
:
this
.
l
(
"materialNumber"
)
,
align
:
"left"
,
align
:
"left"
,
},
},
{
{
key
:
"needCount"
,
key
:
"needCount"
,
title
:
"需求数量"
,
title
:
this
.
l
(
"needCount"
)
,
align
:
"right"
,
align
:
"right"
,
},
},
{
{
key
:
"count"
,
key
:
"count"
,
title
:
"申请数量"
,
title
:
this
.
l
(
"count"
)
,
align
:
"right"
,
align
:
"right"
,
width
:
120
,
width
:
120
,
},
},
{
{
key
:
"
count
s"
,
key
:
"
statu
s"
,
title
:
"状态"
,
title
:
this
.
l
(
"status"
)
,
align
:
"center"
,
align
:
"center"
,
width
:
120
,
width
:
120
,
},
},
{
{
key
:
"remark"
,
key
:
"remark"
,
title
:
"备注"
,
title
:
this
.
l
(
"remark"
)
,
align
:
"left"
,
align
:
"left"
,
},
},
{
{
key
:
"action"
,
key
:
"action"
,
title
:
"
状态
"
,
title
:
"
操作
"
,
width
:
120
,
width
:
120
,
align
:
"center"
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
...
@@ -148,10 +148,15 @@ export default {
...
@@ -148,10 +148,15 @@ export default {
if
(
res
.
success
&&
res
.
result
)
if
(
res
.
success
&&
res
.
result
)
{
{
this
.
$Message
.
success
(
"撤销成功"
);
this
.
$Message
.
success
(
"撤销成功"
);
this
.
load
(
this
.
eid
);
this
.
$emit
(
'on-ok'
)
this
.
$emit
(
'on-ok'
)
}
}
})
})
},
},
l
(
key
)
{
let
vkey
=
"support_item"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
},
},
},
watch
:
{
watch
:
{
eid
(
v
)
{
eid
(
v
)
{
...
...
pages/aps/plan/editAccessory.vue
0 → 100644
View file @
869ad06e
This diff is collapsed.
Click to expand it.
pages/aps/plan/index.vue
View file @
869ad06e
...
@@ -244,8 +244,8 @@ export default {
...
@@ -244,8 +244,8 @@ export default {
},
},
},
},
this
.
setName
(
params
.
row
.
isSupportingFinish
).
name
this
.
setName
(
params
.
row
.
isSupportingFinish
).
name
)
;
)
}
,
}
},
},
{
{
key
:
"projectNumber"
,
key
:
"projectNumber"
,
...
@@ -805,7 +805,7 @@ export default {
...
@@ -805,7 +805,7 @@ export default {
};
};
}
}
}
}
return
outPar
;
return
outPar
},
},
openAccessory
(
row
)
{
openAccessory
(
row
)
{
this
.
orderId
=
row
.
id
;
this
.
orderId
=
row
.
id
;
...
@@ -817,8 +817,8 @@ export default {
...
@@ -817,8 +817,8 @@ export default {
this
.
title
=
"申请配套"
;
this
.
title
=
"申请配套"
;
this
.
details
=
()
=>
import
(
"./addAccessory"
);
this
.
details
=
()
=>
import
(
"./addAccessory"
);
}
else
{
}
else
{
this
.
title
=
"
申请
单"
;
this
.
title
=
"
配套清
单"
;
this
.
details
=
()
=>
import
(
"./
detail
Accessory"
);
this
.
details
=
()
=>
import
(
"./
edit
Accessory"
);
}
}
this
.
modalAccessory
=
true
;
this
.
modalAccessory
=
true
;
...
...
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