Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
01126e1d
Commit
01126e1d
authored
Jul 30, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改出库申请内容
parent
ddd2b292
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
24 deletions
+7
-24
outboundManage.vue
src/components/orderMan/outboundManage.vue
+7
-24
No files found.
src/components/orderMan/outboundManage.vue
View file @
01126e1d
...
...
@@ -298,7 +298,7 @@
unique
(
arr
)
{
for
(
var
i
=
0
,
len
=
arr
.
length
;
i
<
len
;
i
++
)
{
for
(
var
j
=
i
+
1
,
len
=
arr
.
length
;
j
<
len
;
j
++
)
{
if
(
arr
[
i
].
NewGoodsId
===
arr
[
j
].
NewGoodsId
)
{
if
(
arr
[
i
].
NewGoodsId
===
arr
[
j
].
NewGoodsId
&&
arr
[
i
].
NewSpecificationSort
===
arr
[
j
].
NewSpecificationSort
)
{
arr
.
splice
(
j
,
1
);
j
--
;
// 每删除一个数j的值就减1
len
--
;
// j值减小时len也要相应减1(减少循环次数,节省性能)
...
...
@@ -343,7 +343,7 @@
}
array
=
this
.
unique
(
array
)
this
.
outobj
.
WarehouseOutGoodsList
=
array
;
console
.
log
(
this
.
outobj
.
WarehouseOutGoodsList
)
that
.
$confirm
(
'是否申请出库?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
...
...
@@ -439,31 +439,16 @@
this
.
Egoods
=
true
;
this
.
editGoodsindex
=
index
this
.
Goodsobj
=
obj
this
.
Goodsobj
.
NewGoodsId
=
''
,
this
.
Goodsobj
.
NewSpecificationSort
=
''
,
console
.
log
(
obj
)
// let objs={}
// objs.Id = obj.Id;
// objs.OrderNo = obj.OrderNo;
// objs.GoodsId = obj.GoodsId;
// objs.GoodsName = obj.GoodsName;
// objs.Number = obj.Number;
// objs.Specification = obj.Specification;
// objs.SpecificationSort = obj.SpecificationSort;
// objs.NewSpecification = obj.NewSpecification;
// objs.NewSpecificationSort = obj.NewSpecificationSort;
// objs.NewNumber = obj.NewNumber;
// this.tableData2.push(objs)
this
.
Goodsobj
.
NewGoodsId
=
''
;
this
.
Goodsobj
.
NewSpecificationSort
=
''
;
}
},
ChangeListName
(
val
){
this
.
goodsmsg
.
Name
=
val
;
// this.goodsmsg.Id = val;
this
.
getgoodsList
(
0
);
this
.
getgoodsList
();
},
getgoodsList
(
type
){
getgoodsList
(){
if
(
this
.
goodsmsg
.
Id
==
''
){
this
.
goodsmsg
.
Id
=
0
;
}
...
...
@@ -471,15 +456,13 @@
if
(
res
.
data
.
resultCode
==
1
){
let
pageData
=
res
.
data
.
data
.
pageData
;
this
.
GoodsList
=
pageData
if
(
type
==
1
){
}
}
})
},
chooseB
(){
//删除当前的对象 把tableData2数组插入当前的位置
this
.
tableData2
.
unshift
(
this
.
editGoodsindex
,
0
)
this
.
tableData
.
splice
(
this
.
editGoodsindex
,
1
)
Array
.
prototype
.
splice
.
apply
(
this
.
tableData
,
this
.
tableData2
);
...
...
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